Revisions
-
brycejacobson revised this gist
Aug 14, 2013 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,6 @@ <?php //* Do NOT include the opening php tag /** Load scripts on Portfolio page */ add_action('genesis_after_footer', 'child_load_portfolio'); function child_load_portfolio() { -
brycejacobson renamed this gist
Jul 23, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
jonbellah created this gist
Jan 21, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ /** Load scripts on Portfolio page */ add_action('genesis_after_footer', 'child_load_portfolio'); function child_load_portfolio() { if(is_page('Portfolio')) { wp_register_script( 'isotope', get_bloginfo('stylesheet_directory').'/lib/js/jquery.isotope.min.js' ); wp_enqueue_script ( 'isotope' ); } } /** Isotope vars */ add_action('genesis_after', 'child_script_portfolio'); function child_script_portfolio() { if(is_page('Portfolio')) { ?> <script type="text/javascript"> var $container = $('#container'); // initialize isotope $container.isotope({ layoutMode: 'fitRows', }); // filter items when filter link is clicked $('#filters a').click(function(){ var selector = $(this).attr('data-filter'); $container.isotope({ filter: selector }); return false; }); </script> <?php } }