Advertisement
srikat

Untitled

Dec 12th, 2013
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1. genesis_register_sidebar( array(
  2.     'id' => 'home-featured',
  3.     'name' => __( 'Home Featured', 'eleven40' ),
  4.     'description' => __( 'This is the home featured section.', 'eleven40' ),
  5. ) );
  6.  
  7. /** Add the home featured section */
  8. add_action( 'genesis_before_content', 'eleven40_home_featured' );
  9. function eleven40_home_featured() {
  10.  
  11.     if ( ! is_home() || ! is_front_page() )
  12.         return;
  13.  
  14.     if (is_active_sidebar( 'home-featured' )) {
  15.         genesis_widget_area( 'home-featured', array(
  16.             'before' => '<div class="home-featured widget-area">',
  17.             'after' => '</div>'
  18.             ) );
  19.     }
  20.     else {
  21.         genesis_seo_site_description();
  22.     }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement