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 | |
| /* | |
| GeoRSS formatted output for Google Maps | |
| Authors: Alastair Mucklow, Chris Toppon | |
| */ | |
| //header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); | |
| //$more = 1; | |
| echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'" standalone="yes"?'.'>'; ?> |
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
| // Showtime JSON loader | |
| if ($('#showtime-json').length){ | |
| var feedUrl = $('#showtime-json').data('url'); | |
| var limit = $('#showtime-json').data('limit'); | |
| $.getJSON( feedUrl + '&limit=' + limit + '&callback=?', function(data) { | |
| $('.loader').hide(); | |
| var container = $('#showtime-json'); | |
| var outputNode = container.find('ul'); |
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
| // UTILITY CLASSES | |
| // --------------- | |
| // Positioning | |
| .relative { | |
| position: relative; | |
| } | |
| .affix { | |
| position: fixed; | |
| } |
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
| /* Remove plugin CSS & JS */ | |
| /* Next Gen Gallery */ | |
| function dequeue_nextGen_style() { | |
| wp_dequeue_style('NextGEN'); | |
| } | |
| add_action('template_redirect', 'dequeue_nextGen_style'); | |
| function dequeue_nextGen_js() { | |
| if (!is_singular()) { |
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 | |
| include($_SERVER['DOCUMENT_ROOT'].'GeoIP.inc'); | |
| $gi = geoip_open($_SERVER['DOCUMENT_ROOT'].'country.dat', GEOIP_STANDARD); // not recommended, better for server to query maintained file | |
| $country = geoip_country_code_by_addr($gi,$_SERVER['REMOTE_ADDR']); | |
| if (( $country == "IE")) { ?> | |
| <h2>Welcome Irish visitors</h2> | |
| <?php } else if (($country == "US")) { ?> | |
| <h2>Welcome American visitors</h2> |
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
| RewriteEngine On | |
| RewriteBase / | |
| # Redirection for CSS versioning | |
| RewriteRule ^(.*)\.[\d]{10}\.(css|js)$ $1.$2 [L] |
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
| switch (e.which || e.keyCode) { | |
| case 71: | |
| var gw = document.getElementById('gridsetoverlaywrap'); | |
| if (!gw) gs.show(); | |
| else gs.remove(gw); | |
| gs.prevent(e); | |
| break; |
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 class="box-out bg-gray-bg"> | |
| <h3>Critical time-sensitive</h3> | |
| <p><a href="#">We're running to the quad! We're streaking!</a></p> | |
| </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
| <ul class="blocks three-up"> | |
| <li> | |
| <div class="media-block region heading-bottom"> | |
| <figure> | |
| <a href="#" title="Link title"> | |
| <img src="http://placehold.it/290x290" alt="Image Alt"> | |
| </a> | |
| </figure> | |
| </div> | |
| </li> |
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
| <ul class="blocks four-up"> | |
| <li> | |
| <div class="media-block region heading-top"> | |
| <h2 class="media-heading-top">Media Heading</h2> | |
| <figure> | |
| <a href="#" title="Link title"> | |
| <img src="http://placehold.it/258x212" alt="Image Alt"> | |
| </a> | |
| <figcaption>Curabitur blandit tempus porttitor, Odio. Original by <a href="#">Lorem Ipsum</a></figcaption> | |
| </figure> |
OlderNewer