This file contains hidden or 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 | |
/* | |
Plugin Name: Spalon Staff Plugin | |
Plugin URI: https://spalon.com | |
Description: A plugin to handle Spalon Montage staff profiles. | |
Version: 0.0.1 | |
Author: Brandography | |
Author URI: https://brandography.com | |
Text Domain: spalon-staff | |
*/ |
This file contains hidden or 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
/*! | |
Theme Name: Starter Theme | |
Theme URI: https://starter.codyogden.com | |
Author: Cody Ogden | |
Author URI: https://codyogden.com | |
Description: A custom starter theme for WordPress. | |
Version: 0.0.1 | |
License: MIT | |
Tags: one-column, two-column, accessibility | |
Text Domain: starter |
This file contains hidden or 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
function ready(fn) { | |
if (document.readyState != 'loading'){ | |
fn(); | |
} else { | |
document.addEventListener('DOMContentLoaded', fn); | |
} | |
} |
This file contains hidden or 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
// Show two decimal places, returns a string | |
VARIABLE.toFixed(2); | |
// Show as USD Currency | |
VARIABLE.toLocaleString( 'USD', { style: 'currency', currency: 'USD' } ); | |
// Show as USD Currency with commas | |
VARIABLE.toLocaleString( 'en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 } ); | |
// Hi matt! |
This file contains hidden or 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
/* jQuery plugin that tells if the element is in the viewport */ | |
$.fn.inVP = function(){ | |
var element = this.get(0); | |
var bounds = element.getBoundingClientRect(); | |
return bounds.top < window.innerHeight && bounds.bottom > 0; | |
} |
This file contains hidden or 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
SELECT *, ( 3959 * acos( cos( radians( :oldlat ) ) * cos( radians( latitude ) ) * cos( radians( longitude ) - radians( :oldlng ) ) + sin( radians(:oldlat) ) * sin( radians( latitude ) ) ) ) AS distance FROM agency HAVING distance < :dist ORDER BY distance LIMIT :numb | |
NewerOlder