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($) { | |
| $(window).load(function() { | |
| if (window.innerWidth > 1024) { | |
| $('.footer-widgets .widget-area').equalHeights(); | |
| } | |
| }); | |
| $(window).resize(function(){ | |
| if (window.innerWidth > 1024) { |
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 xLBD = {}; | |
| xLBD.c = function (){ | |
| xLBD.f = unescape(document.querySelector("[flashvars]").getAttribute("flashvars")).substring(7); | |
| xLBD.f = JSON.parse(xLBD.f.substring(0, xLBD.f.lastIndexOf("}") + 1)).video_data[0].hd_src; | |
| xLBD.a = "<div style='position:absolute;top:100px;height:300px;left:15%;background:#fff;border:10px solid #000;font-size:5em;padding:100px;'>Click <a download='lookback.mp4' href='"+xLBD.f+"'>here<\/a> to download your lookBack video.</div>"; | |
| document.body.innerHTML += xLBD.a; | |
| } | |
| if(document.readyState == "complete") | |
| xLBD.c(); | |
| else window.onload = xLBD.c; |
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 | |
| /** | |
| * Grid Content | |
| * Change the number of words in excerpt if in the grid loop | |
| */ | |
| function be_grid_content() { | |
| // First, we make sure we're in the grid loop. | |
| if( ! apply_filters( 'is_genesis_grid_loop', false ) ) | |
| return; |
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
| // iframes | |
| var $iframes = $( document.querySelectorAll( '.videos iframe' ) ); | |
| function iframeSizing() { | |
| var $this = $( this ), | |
| width = $this.width(), | |
| height = $this.height(), | |
| containerWidth = $this.parent().width(), | |
| heightRatio = height / width, | |
| newHeight = heightRatio * containerWidth; |
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 | |
| $argsSamaj = array( 'post_type' => 'videos_gallery','cat'=>$on_draught,'posts_per_page' => 10); | |
| $loopSamaj = new WP_Query( $argsSamaj ); | |
| if( $loopSamaj->have_posts() ): | |
| echo '<ul>'; | |
| while( $loopSamaj->have_posts() ): $loop->the_post(); | |
| echo '<li><a href="' . get_permalink() . '">' . get_the_title() . '</a></li>'; | |
| endwhile; | |
| echo '</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
| /*Transparent pattern placed over an image, like we see on the bootstrap homepage: http://twitter.github.com/bootstrap/index.html*/ | |
| div { | |
| width: 200px; | |
| height: 200px; | |
| display: block; | |
| position: relative; | |
| background: url(images/background-image.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
| DELETE pm | |
| FROM wp_postmeta pm | |
| LEFT JOIN wp_posts wp ON wp.ID = pm.post_id | |
| WHERE wp.ID IS NULL |
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 | |
| // usage: get the gist ID and place the shortcode in the site: [gist id="THE_ID"] | |
| // allows for an optional title to display above, i.e [gist id="THE_ID" title="Some Title"] | |
| // embed gists | |
| function gist_shortcode($atts, $content = NULL) { | |
| extract( shortcode_atts( array( | |
| 'id' => '', | |
| 'user' => 'norcross', | |
| 'title' => '' |
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 | |
| //Plugin Name: Faster CPT Archive Custom Links | |
| $faster_archive_links = new Faster_Archive_Links(); | |
| class Faster_Archive_Links { | |
| function __construct() { | |
| add_action( 'admin_init', array( &$this, 'admin_init' ) ); | |
| add_action( 'admin_footer-nav-menus.php', array( &$this, 'admin_footer' ) ); | |
| } |
NewerOlder