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
| .ir { | |
| border:0; | |
| font: 0/0 a; | |
| text-shadow: none; | |
| color: transparent; | |
| background-color: transparent; | |
| } |
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
| .ir { | |
| display: block; | |
| text-indent: -999em; | |
| overflow: hidden; | |
| background-repeat: no-repeat; | |
| text-align: left; | |
| direction: ltr; | |
| } |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Bootstrap, from Twitter</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta name="description" content=""> | |
| <meta name="author" content=""> | |
| <!-- Le styles --> |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset=utf-8> | |
| <title></title> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
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
| //Works in modern browsers + IE9, but Modernizr has a polyfill baked in for function.bind | |
| var o = $( {} ); | |
| $.subscribe = o.on.bind(o); | |
| $.unsubscribe = o.off.bind(o); | |
| $.publish = o.trigger.bind(o); |
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 o = $( {} ); | |
| $.each({ | |
| on: 'subscribe', | |
| trigger: 'publish', | |
| off: 'unsubscribe' | |
| }, function( key, api ) { | |
| $[api] = function() { | |
| o[key].apply( o, arguments ); |
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 to functions.php | |
| add_action('wp_head', 'show_template'); | |
| function show_template() { | |
| global $template; | |
| echo '<span style="color: #000;">' . $template . '</span>'; | |
| } |
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
| <script> | |
| var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']]; | |
| (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; | |
| g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js'; | |
| s.parentNode.insertBefore(g,s)}(document,'script')); | |
| </script> |
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
| $.ajax({ | |
| url: '//third-party.com/resource.js', | |
| dataType: 'script', | |
| cache: true, // otherwise will get fresh copy every page load | |
| success: function() { | |
| // script loaded, do stuff! | |
| } | |
| } |
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 | |
| $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; //this line only needed for pagination | |
| $args = array( | |
| 'cat' => 7, | |
| 'paged' => $paged //this line only needed for pagination | |
| ); | |
| // The Query | |
| $the_query = new WP_Query( $args ); | |
| // The Loop |
OlderNewer