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
/********** iOS rotation zoom fix **********/ | |
var viewport = $('meta[name="viewport"]'); | |
var nua = navigator.userAgent; | |
if ((nua.match(/iPad/i)) || (nua.match(/iPhone/i)) || (nua.match(/iPod/i))) { | |
viewport.attr('content', 'width=device-width, minimum-scale=1.0, maximum-scale=1.0'); | |
$('body')[0].addEventListener("gesturestart", gestureStart, false); | |
} | |
function gestureStart() { |
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
/******* RELATED PAGES METABOX *********/ | |
add_action( 'cmb_render_select_post', 'rrh_cmb_render_select_post', 10, 2 ); | |
function rrh_cmb_render_select_post( $field, $meta ) { | |
global $posts; | |
$posts = get_posts( array( 'post_type' => 'page', 'posts_per_page' => -1 )); | |
echo '<select name="', $field['id'], '" id="', $field['id'], '">'; | |
foreach ($posts as $option) { | |
echo '<option value="', $option->ID, '"', $meta == $option->ID ? ' selected="selected"' : '', '>', $option->post_title, '</option>'; | |
} | |
echo '</select>'; |
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
@mixin box-shadow($shadow) { | |
-moz-box-shadow: $shadow; | |
-webkit-box-shadow: $shadow; | |
box-shadow: $shadow | |
} | |
@mixin transition($trans) { | |
-webkit-transition:$trans; | |
-moz-transition:$trans; | |
-o-transition:$trans; |
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 class slider_widget extends WP_Widget { | |
function slider_widget() { | |
$widget_options = array( | |
'classname' => 'slider', | |
'description' => 'add promo slider' | |
); | |
parent::WP_Widget(false, 'Promotional Slider', $widget_options); |
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 | |
/** | |
* Template Name: Business Rankings | |
* @package WordPress | |
*/ | |
get_header(); | |
?> | |
<aside class="right-sidebar"> | |
<ul class="widgets"> |
NewerOlder