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
// Enable PHP in widgets | |
add_filter('widget_text','execute_php',100); | |
function execute_php($html){ | |
if(strpos($html,"<"."?php")!==false){ | |
ob_start(); | |
eval("?".">".$html); | |
$html=ob_get_contents(); | |
ob_end_clean(); | |
} | |
return $html; |
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 closePage(href) { | |
var pageSwitching = new TimelineMax({ paused: true}); | |
pageSwitching.insert(TweenLite.to($('#contentShell'), 1.25, {css:{ autoAlpha: 0, top: 1400 }, ease: Expo.easeInOut}), .1); | |
pageSwitching.insert(TweenLite.to('#top_bg', 1, {css:{autoAlpha:0, top:-900}, ease: Expo.easeInOut}), 0.15); | |
pageSwitching.play(); | |
setTimeout(function() { | |
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
// main navigation | |
var subMenus = $("#main_menu .dropdown"); | |
$.each($("li.has-dropdown"), function(index, element) | |
{ | |
var subMenu = $(element).children('ul'), | |
tl; | |
if(subMenu.length != 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
'orderby'=>'CAST( sort_order.meta_value AS SIGNED ) DESC' |
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
add_filter('walker_nav_menu_start_el', 'description_in_nav_el', 10, 4); | |
function description_in_nav_el($item_output, $item, $depth, $args) | |
{ | |
return preg_replace('/(<a.*?>[^<]*?)</', "<span>{$item->attr_title}</span>" . '$1' . "<", $item_output); | |
} |
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
// Add this to your js | |
/* start cart age check */ | |
$('input[name="checkout"], input[name="goto_pp"], input[name="goto_gc"]').click(function() { | |
var day = $("#theDay").val(); | |
var month = $("#theMonth").val(); | |
var year = $("#theYear").val(); | |
var age = 21; | |
var birthdate = new Date(); |
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 | |
$counter = 0; | |
$marqueesParams = array('limit'=> 20); | |
$marquees = pods('marquee'); | |
$marquees->find($marqueesParams); | |
if (0 < $marquees->total()){ | |
while ($marquees->fetch()) { | |
$artwork = $item->field('marquee_artwork'); | |
foreach($artwork as $art) { |
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(document).ready(function ($) { | |
resizeDiv(); | |
function resizeDiv() { |
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
var isOpera = !!window.opera || navigator.userAgent.indexOf('Opera') >= 0; | |
// Opera 8.0+ (UA detection to detect Blink/v8-powered Opera) | |
var isFirefox = typeof InstallTrigger !== 'undefined'; // Firefox 1.0+ | |
var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0; | |
// At least Safari 3+: "[object HTMLElementConstructor]" | |
var isChrome = !!window.chrome; // Chrome 1+ | |
var isIE = /*@cc_on!@*/false; // At least IE6 | |
document.write('isFirefox: ' + isFirefox + '<br>'); | |
document.write('isChrome: ' + isChrome + '<br>'); |
NewerOlder