Skip to content

Instantly share code, notes, and snippets.

View kalenjohnson's full-sized avatar

Kalen Johnson kalenjohnson

View GitHub Profile
class autoloader {
public static $loader;
public static function init()
{
if (self::$loader == NULL)
self::$loader = new self();
return self::$loader;
add_action('plugins_loaded', 'remove_jetpack_widget_conditions',11);
function remove_jetpack_widget_conditions(){
remove_action( 'init', array('Jetpack_Widget_Conditions','init') );
}
<div id="primary" class="content-area site-archives col-xs-12">
<?php if( function_exists('bcn_display') ) {
bcn_display();
} ?>
<main id="main" class="site-main" role="main">
<?php while ( have_posts() ) : the_post();
get_template_part( 'content', 'page' );
jQuery(document).ready(function($) {
$(window).on('load resize orientationchange',aspectRatioRespond);
aspectRatioRespond();
});
function aspectRatioRespond(){
mobileMax = 480;
elements = jQuery('[data-ratio]');
elements.each(function(){
container = jQuery(this);