This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo 'Ok'; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// install it in mu-plugins | |
add_action('activated_plugin', 'dbg_log_error', 0, 2); | |
function dbg_log_error($plugin, $network_wide) { | |
if (ob_get_length() == 0) { | |
return ; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp_enqueue_script( 'jquery' ); | |
wp_enqueue_script( 'jquery-ui-core ' ); | |
wp_enqueue_script( 'jquery-ui-slider' ); | |
wp_register_style('my_jq_ui', '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/base/jquery.ui.all.css', __FILE__, false); | |
wp_enqueue_style('my_jq_ui'); | |
<div id="slider-range"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This function accepts lat latitude from a string | |
// e.g. 123,-234 | |
function getLatLngFromString(ll) { | |
var lat = ll.replace(/\s*\,.*/, ''); // first 123 | |
var lng = ll.replace(/.*,\s*/, ''); // second ,456 | |
var latLng = new google.maps.LatLng(parseFloat(lat), parseFloat(lng)); | |
return latLng; | |
}; |
NewerOlder