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 | |
| //Please do not include the opening PHP tag. | |
| function mycustom_filter_gettext( $translated, $original, $context, $domain ) { | |
| // This is an array of original strings | |
| // and what they should be replaced with | |
| $strings = array( | |
| 'Attendee Information' => 'Participant Information', |
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
| Block is a house that is nice and square, | |
| Element is a room with its walls all bare, | |
| Modifier is the wallpaper, hang with care! | |
| .house | |
| .house__room | |
| .house__room—-paisley |
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
| // loadDesktopImages is looking for spans with a data-img-src attribute, whose parent is visible | |
| // Any parent visible with CSS will trigger the replacement of the span with an image tag | |
| // We use gridset m-hide on images we want to hide from small devices | |
| // <noscript> is there as a backup | |
| /* | |
| <div class="m-hide"> | |
| <span title="" class="media__image" data-img-src="http://fillmurray.com/200/300" style=""></span> | |
| <noscript><img title="" alt="" class="media__image" src="http://fillmurray.com/200/300" style=""></noscript> | |
| </div> |
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
| // Painless Retina Images: | |
| // ======================= | |
| // https://gist.github.com/adamjohnson/5406454 | |
| // http://blog.andrewckor.com/post/43347215341/retina-background-images-sass-mixin | |
| // Requires Compass | |
| // Suffix retina imagery with "@2x" & put in the same directory as normal assets (or specifiy a different directory in the @include) | |
| @mixin bg-with-retina( $path, $img, $filetype, $size ) { | |
| background-image: image-url( $path + $img + '.' + $filetype ); | |
| @include background-size( $size ); | |
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 | |
| // Based on http://www.realisingdesigns.com/2009/10/29/using-google-docs-as-a-quick-and-easy-cms/ | |
| function getUrl($url, $expires = 5) | |
| { | |
| $cache_file = __DIR__ . '/cache/' . preg_replace('~\W+~', '-', $url) . '.txt'; | |
| if( ! is_dir(__DIR__ . '/cache') AND ! mkdir(__DIR__ . '/cache')) { | |
| die('Please create /cache directory'); | |
| } |
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() { | |
| var script, | |
| scripts = document.getElementsByTagName('script')[0]; | |
| function load(url) { | |
| script = document.createElement('script'); | |
| script.async = true; | |
| script.src = url; | |
| scripts.parentNode.insertBefore(script, scripts); |
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
| /* ---------------------------------------------------------- */ | |
| /* */ | |
| /* A media query that captures: */ | |
| /* */ | |
| /* - Retina iOS devices */ | |
| /* - Retina Macs running Safari */ | |
| /* - High DPI Windows PCs running IE 8 and above */ | |
| /* - Low DPI Windows PCs running IE, zoomed in */ | |
| /* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
| /* - Android hdpi devices and above */ |