This file contains 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: Portfolio View | |
*/ | |
# Force full width content | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
//* Add portfolio view body class to the head | |
add_filter( 'body_class', 'executive_add_portfolio_view_body_class' ); |
This file contains 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 new image sizes | |
add_image_size( 'home-featured-left', 555, 350, true ); | |
add_image_size( 'home-featured-right', 150, 90, true ); | |
//* Register Left and Right Home Featured widget areas | |
genesis_register_sidebar( array( | |
'id' => 'home-featured-left', | |
'name' => 'Home Featured Left', | |
'description' => 'This is the home featured left section' | |
) ); |
This file contains 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 | |
//* Show page content above posts | |
add_action( 'genesis_loop', 'genesis_standard_loop', 5 ); | |
genesis(); |
This file contains 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
'taxonomies' => array( 'portfolio-type' ), |
This file contains 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
//* Enqueue Header Fade script | |
add_action( 'wp_enqueue_scripts', 'sk_enqueue_scripts' ); | |
function sk_enqueue_scripts() { | |
wp_enqueue_script( 'header-fade', get_bloginfo( 'stylesheet_directory' ) . '/js/header-fade.js', array( 'jquery' ), '', true ); | |
} |
This file contains 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 enterprise_home_top_widgets() { | |
genesis_widget_area( 'home-top', array( | |
'before' => '<div class="home-top widget-area parallax-section" data-stellar-background-ratio="0.5"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); | |
} |
This file contains 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($) { | |
$('.bxslider').bxSlider({ | |
auto: true, | |
autoControls: true, | |
autoHover: true | |
}); | |
}); |
This file contains 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
//* Register Above Page Content widget area | |
genesis_register_sidebar( array( | |
'id' => 'above-page-content', | |
'name' => __( 'Above Page Content', 'agency' ), | |
'description' => __( 'This is the above page content section of the homepage.', 'agency' ), | |
) ); | |
//* Display the content of 'Above Page Content' widget area above content on static Pages | |
add_action( 'genesis_before_loop', 'sk_above_page_content' ); | |
function sk_above_page_content() { |
This file contains 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 the header right widget area for static Pages | |
add_action('genesis_meta', 'sk_unregister_header_right'); | |
function sk_unregister_header_right() { | |
if (is_singular('page' )) { | |
unregister_sidebar( 'header-right' ); | |
} | |
} |
This file contains 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="three-fourths first"> | |
<iframe width="960" height="540" src="//www.youtube.com/embed/XZzRUootFUE?rel=0" frameborder="0" allowfullscreen></iframe> | |
</div> | |
<div class="one-fourth"> | |
<header class="entry-header"> | |
<h2 class="entry-title"> | |
<a href="http://centric-pro.dev/mobile-responsive/" title="Mobile Responsive">Mobile Responsive</a> | |
</h2> | |
</header> |