I hereby claim:
- I am cgrymala on github.
- I am cgrymala (https://keybase.io/cgrymala) on keybase.
- I have a public key whose fingerprint is CD74 D412 8F46 B475 3502 596F 907D 518E 88AF 87A1
To claim this, I am signing this object:
define( 'JETPACK_DEV_DEBUG', true ); |
// Get the latitude and longitude of the search result | |
lat = Math.round( lat * 100000 ) / 100000; | |
long = Math.round( long * 100000 ) / 100000; | |
for ( var i = 0; i < limit; i++ ) { | |
// Retrieve the latitude and longitude of the marker | |
var markLat = Math.round( markers[i].position.Ra * 100000 ) / 100000; | |
var markLong = Math.round( markers[i].position.Sa * 100000 ) / 100000; | |
// Compare the search result to the current marker |
// Retrieve the latitude and longitude of the search result | |
lat = Math.round( lat * 100000 ) / 100000; | |
long = Math.round( long * 100000 ) / 100000; | |
for ( var i = 0; i < limit; i++ ) { | |
// Retrieve a new LatLng object for the marker | |
var markLatLng = markers[i].getPosition(); | |
// Retrieve the latitude and longitude of the marker, separately | |
var markLat = Math.round( markLatLng.lat() * 100000 ) / 100000; | |
var markLong = Math.round( markLatLng.lng() * 100000 ) / 100000; |
<?php | |
function output_featured_image() { | |
echo '<figure class="featured-image">'; | |
the_post_thumbnail( 'archive-feature', array( 'class' => 'alignnone' ) ); | |
// First, check to see if the Sharing buttons are supposed to display on content or excerpt | |
// Remove those sharing buttons if they are | |
$sharecontent = false; | |
$shareexcerpt = false; | |
if ( has_filter( 'the_content', 'sharing_display' ) ) { |
<?php | |
if ( ! class_exists( 'Sample_Plugin' ) ) { | |
class Sample_Plugin { | |
var $text_domain = 'sample_plugin'; | |
var $options_page_slug = 'sample-options-page'; /* Because you will use this in a lot of places, we'll define it here */ | |
function __construct() { | |
add_action( 'admin_menu', array( $this, 'admin_menu' ) ); | |
} | |
function admin_menu() { |
<?php | |
if ( ! class_exists( 'Sample_Plugin' ) ) { | |
class Sample_Plugin { | |
var $text_domain = 'sample_plugin'; | |
var $options_page_slug = 'sample-options-page'; /* Because you will use this in a lot of places, we'll define it here */ | |
function __construct() { | |
add_action( 'admin_menu', array( $this, 'admin_menu' ) ); | |
add_action( 'admin_init', array( $this, 'admin_init' ) ); | |
} | |
body { | |
background: url(my-main-image.png); | |
} | |
.site-container { | |
width: 100%; | |
max-width: 100%; | |
background: url(my-secondary-image.png); | |
} | |
.site-header, | |
.site-inner, |
/** | |
* Check to see if an element exists in the page | |
* Avoids potential XSS attack outlined in https://eamann.com/tech/jquery-xss/ | |
* @see https://eamann.com/tech/jquery-xss/ | |
*/ | |
function doesElementExist( el ) { | |
try { | |
var tmpLen = document.querySelectorAll( el ).length; | |
if ( 0 < tmpLen ) { | |
return true; |
I hereby claim:
To claim this, I am signing this object:
<?php | |
add_action( 'admin_init', 'hide_backend_from_user' ); | |
/** | |
* Hide the backend from specific user levels | |
* @uses VFH_User_Controls::$options['login_redirect_to'] to determine where the user should be redirected | |
* @uses VFH_User_Controls::$user_levels to see if the user needs to be redirected | |
*/ | |
function hide_backend_from_user( $level='edit_posts' ) { | |
/** | |
* Attempt not to short-circuit AJAX requests |