Last active
August 29, 2015 13:57
-
-
Save chrisegg/9863538 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 the opening php tag | |
/* Display widget content for "welcome" section. | |
------------------------------------------------- */ | |
function minimum_home_loop_helper_top() { | |
genesis_widget_area( 'welcome', array( | |
'before' => '<div class="welcome"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); | |
} | |
/* Display widget content for "home bottom #1", "home bottom #2", | |
"home bottom #3" and "home bottom message" sections. | |
------------------------------------------------------------------- */ | |
function minimum_home_loop_helper_bottom() { | |
if ( is_active_sidebar( 'home-bottom-message' ) || is_active_sidebar( 'home-bottom-1' ) || is_active_sidebar( 'home-bottom-2' ) || is_active_sidebar( 'home-bottom-3' ) ) { | |
echo '<div class="home-bottom"><div class="wrap">'; | |
genesis_widget_area( 'home-bottom-message', array( | |
'before' => '<div class="home-bottom-message"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); | |
genesis_widget_area( 'home-bottom-1', array( | |
'before' => '<div class="home-bottom-1">', | |
'after' => '</div>', | |
) ); | |
genesis_widget_area( 'home-bottom-2', array( | |
'before' => '<div class="home-bottom-2">', | |
'after' => '</div>', | |
) ); | |
genesis_widget_area( 'home-bottom-3', array( | |
'before' => '<div class="home-bottom-3">', | |
'after' => '</div>', | |
) ); | |
echo '</div><!-- end .wrap --></div><!-- end .home-bottom -->'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment