Skip to content

Instantly share code, notes, and snippets.

@chrisegg
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisegg/9863538 to your computer and use it in GitHub Desktop.
Save chrisegg/9863538 to your computer and use it in GitHub Desktop.
<?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