Last active
December 20, 2015 23:19
-
-
Save StewartChamberlain/6211577 to your computer and use it in GitHub Desktop.
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 // Do Not include this line | |
// Home feature widget section | |
function sc_home_do_featured() { | |
if ( is_active_sidebar( 'home-featured-full' ) || is_active_sidebar( 'home-featured-left' ) || is_active_sidebar( 'home-featured-right' ) ) { | |
echo '<section id="home-featured" class="clearfix"><div class="wrap">'; | |
genesis_widget_area( 'home-featured-full', array( | |
'before' => '<main class="home-featured-full">', | |
'after' => '</main>', | |
) ); | |
echo '<section id="home-featured-halves">'; | |
genesis_widget_area( 'home-featured-left', array( | |
'before' => '<aside class="home-featured-left one-half first">', | |
'after' => '</aside>', | |
) ); | |
genesis_widget_area( 'home-featured-right', array( | |
'before' => '<aside class="home-featured-right one-half">', | |
'after' => '</aside>', | |
) ); | |
echo '</section><!-- end home-featured-halves --></div><!-- end wrap --></section><!-- end home-featured -->'; | |
} | |
} | |
// Home middle widget section | |
function sc_home_do_middle() { | |
if ( is_active_sidebar( 'home-middle-1' ) || is_active_sidebar( 'home-middle-2' ) || is_active_sidebar( 'home-middle-3' ) ) { | |
echo '<section id="home-middle" class="clearfix"><div class="wrap">'; | |
genesis_widget_area( 'home-middle-1', array( | |
'before' => '<aside class="home-middle-1 widget-area one-third first">', | |
'after' => '</aside>', | |
) ); | |
genesis_widget_area( 'home-middle-2', array( | |
'before' => '<aside class="home-middle-2 widget-area one-third">', | |
'after' => '</aside>', | |
) ); | |
genesis_widget_area( 'home-middle-3', array( | |
'before' => '<aside class="home-middle-3 widget-area one-third">', | |
'after' => '</aside>', | |
) ); | |
echo '</div><!-- end wrap --></section><!-- end home-middle -->'; | |
} | |
} | |
// Home bottom widget section | |
function sc_home_do_bottom() { | |
if ( is_active_sidebar( 'home-bottom' ) ) { | |
echo '<section id="home-bottom" class="clearfix"><div class="wrap">'; | |
genesis_widget_area( 'home-bottom', array( | |
'before' => '<aside class="home-bottom">', | |
) ); | |
echo '</div><!-- end .wrap --></section><!-- end #home-bottom -->'; | |
} | |
} | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment