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 | |
function grizzly_colors($presets) { | |
$grizPresets = array( | |
'color-presets' => array( | |
'primary' => '#672965', | |
'primary-90' => '#6E4B69', | |
'primary-80' => '#8D7A8A', | |
'primary-70' => '#B3A7AD', |
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 aniEnd = 'animationend webkitAnimationEnd MSAnimationEnd oAnimationEnd'; | |
$('.some-els').bind(aniEnd, function(){ | |
// Do something! | |
$(this).removeClass('animation-class'); | |
}); |
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 | |
// check if the flexible content field has rows of data | |
if( have_rows('flexible_content_field_name') ): | |
// loop through the rows of data | |
while ( have_rows('flexible_content_field_name') ) : the_row(); | |
if( get_row_layout() == 'paragraph' ): | |
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
<img data-png="potato.png" data-svg="potato.svg"> | |
<noscript><img src="potato.png" alt="Heyo, my potato!"></noscript> | |
<script> | |
if (!Modernizr.svg) { | |
$('img[data-svg$=svg]').each(function(index, item) { | |
var png = $(item).attr('data-png'); | |
$(item).attr('src', png); | |
}); |
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 video_image($url){ | |
if(preg_match('/youtu\.be/i', $url) || preg_match('/youtube\.com\/watch/i', $url)){ | |
preg_match('/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/', $url, $matches); | |
return "http://img.youtube.com/vi/".$matches[7]."/0.jpg";; | |
} else if(preg_match('/vimeo\.com/i', $url)){ | |
preg_match('/\/\/(www\.)?vimeo.com\/(\d+)($|\/)/', $url, $matches); | |
$hash = unserialize(file_get_contents("http://vimeo.com/api/v2/video/".$matches[2].".php";)); | |
return $hash[0]["thumbnail_large"]; | |
} | |
} |
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
^DATA$ | |
^.idea$ | |
^wp-config.php$ | |
^media$ | |
^stats$ | |
^wp-content/w3tc-config$ | |
^wp-content/cache$ | |
syntax: glob | |
wp-content/advanced-cache.php | |
wp-content/object-cache.php |
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
// Mixins | |
.font-size(@sizeValue: 1.4) { | |
@remValue: @sizeValue; | |
@pxValue: (@sizeValue * 10); | |
font-size: ~"@{pxValue}px"; | |
font-size: ~"@{remValue}rem"; | |
} | |
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
// Variables | |
// Fonts | |
@baseFont: 'PT Sans', 'Helvetica', Arial,sans-serif; | |
@fontHeading: 'Arvo', 'Georgia', 'Times New Roman', serif; | |
@fontSecondary: 'Ubuntu', 'Helvetica', Arial, sans-serif; | |
@fontTertiary: 'Courier', sans-serif; | |
@baseFontSize: 14px; | |
@baseFontLineHeight: 1.5em; |
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 echo $_helper->productAttribute($_product, $_product->getHighlights(), 'highlights') ?> |
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
<div id="twitterfeed" class="twitterfeed"></div> | |
<script> | |
/********************************************************************* | |
* #### Twitter Post Fetcher v10.0 #### | |
* Coded by Jason Mayes 2013. A present to all the developers out there. | |
* www.jasonmayes.com | |
* Please keep this disclaimer with my code if you use it. Thanks. :-) | |
* Got feedback or questions, ask here: | |
* http://www.jasonmayes.com/projects/twitterApi/ |
NewerOlder