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
| /** | |
| * This file is enqueued by means of wp_enqueue_script() - variables are passed | |
| * in from PHP by means of wp_localize_script() | |
| * | |
| */ | |
| /* TM: We use an anonymous function to invoke the JavaScript. Also refactored for proper | |
| * WordPress coding standards. | |
| */ | |
| (function( $ ) { |
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 | |
| /* Template Name: Featured Blog with excerpts */ | |
| /** | |
| * Excerpt Length | |
| * | |
| */ | |
| function be_custom_excerpt_length( $length ) { | |
| return 50; |
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 | |
| /** | |
| * Javascript for Load More | |
| * | |
| */ | |
| function be_load_more_js() { | |
| global $wp_query; | |
| $args = array( |
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 | |
| /** | |
| * Template Name: Residential Portfolio | |
| * | |
| */ | |
| remove_action ('genesis_loop', 'genesis_do_loop'); // Remove the standard loop | |
| add_action( 'genesis_loop', 'custom_do_press_loop' ); // Add custom loop | |
| function custom_do_press_loop() { |
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 | |
| /** | |
| * | |
| * Infinite Scroll | |
| * | |
| * @since 1.0.0 | |
| * | |
| * @author Lauren Gray | |
| * @author Bill Erickson |
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 | |
| $images = get_post_meta( get_the_ID(), 'images', true ); | |
| if ( $images ) { | |
| for( $i = 0; $i < $images; $i++ ) { | |
| $image_name = get_post_meta( get_the_ID(), 'images_' . $i . '_image_name', true ); | |
| $image_path = get_post_meta( get_the_ID(), 'images_' . $i . '_image_path', true ); |
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 | |
| // This file handles single entries, but only exists for the sake of child theme forward compatibility. | |
| remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); | |
| add_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 12 ); | |
| remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
| add_action( 'genesis_entry_header', 'genesis_post_info', 3 ); |
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 menu item to header-right menu | |
| add_filter( 'wp_nav_menu_items', 'custom_nav_item', 10, 2 ); | |
| function custom_nav_item( $menu, $args ) { | |
| //* make sure we are in the primary menu | |
| if ( 'ana-menu' !== $args->menu ) { | |
| return $menu; | |
| } | |
| //* see if a nav extra was already specified with Theme options | |
| if ( genesis_get_option( 'nav_extras' ) ) { | |
| return $menu; |