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"> |
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
@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
/******* 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
/********** 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
<!--[if gte mso 9]> | |
<v:image xmlns:v="urn:schemas-microsoft-com:vml" id="theImage" style='behavior: url(#default#VML); display: inline-block; position: absolute; width: 374px; height: 246px; top: 0; left: 130px; border: 0; z-index: 1;' src="/imgs/myPhoto.png" /> | |
<v:shape xmlns:v="urn:schemas-microsoft-com:vml" id="theText" style='behavior: url(#default#VML); display: inline-block; position: absolute; width: 374px; height: 246px; top: -5; left: 125px; border: 0; z-index: 2;'> | |
<div> | |
<![endif]--> | |
<table style="background: /imgs/myPhoto.png”> | |
</table> | |
<!--[if gte mso 9]> | |
</div> | |
</v:shape> |
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
$meta_boxes[] = array( | |
'id' => 'home_page_metabox2', | |
'title' => 'Preview', | |
'pages' => array( 'page', ), // Post type | |
'context' => 'normal', | |
'priority' => 'high', | |
'show_names' => true, // Show field names on the left | |
'show_on' => array( 'key' => 'page-template', 'value' => 'page_home.php' ), | |
'fields' => array( | |
array( |
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
//NAMESPCING APP | |
var App = { | |
Models : {}, | |
Collections: {}, | |
Views: {}, | |
Router: {} | |
}; | |
//DECLARING MODEL | |
App.Models.Post = Backbone.Model.extend({}); |
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
/// PHONEGAP + jQUERY MOBILE (page from android app) | |
$(document).on("pageinit", ".ui-page", function () { | |
$('input').focus(function(){ | |
$('#signin-footer').hide(); | |
}); | |
$('input').blur(function(){ | |
$('#signin-footer').show(); | |
}) |
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(exports, document, $) { | |
var window = exports; | |
var RecentGiftsController = function(mediator) { | |
var mediator = mediator; | |
var pollingProcess = null; | |
var url = '/ajax/get-recent-gifts'; | |
var buffer = []; |
OlderNewer