everbox_widgets_init

Register widget area.

Description

everbox_widgets_init(); 

Usage

  1. if ( !function_exists( 'everbox_widgets_init' ) ) { 
  2. require_once '/inc/theme-setup.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = everbox_widgets_init(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/inc/theme-setup.php  
  1. function everbox_widgets_init() { 
  2.  
  3. register_sidebar( array( 
  4. 'name' => __( 'Sidebar', 'everbox' ),  
  5. 'id' => 'sidebar-default',  
  6. 'description' => __( 'Default sidebar.', 'everbox' ),  
  7. 'before_widget' => '<aside id="%1$s" class="widget %2$s">',  
  8. 'after_widget' => '</aside>',  
  9. 'before_title' => '<div class="widget-head"><h3 class="widget-title">',  
  10. 'after_title' => '</h3></div>',  
  11. ) ); 
  12. register_sidebar( array( 
  13. 'name' => __( 'Post Sidebar', 'everbox' ),  
  14. 'id' => 'sidebar-alter',  
  15. 'description' => __( 'Sidebar replace default sidebar for single post & page.', 'everbox' ),  
  16. 'before_widget' => '<aside id="%1$s" class="widget %2$s">',  
  17. 'after_widget' => '</aside>',  
  18. 'before_title' => '<div class="widget-head"><h3 class="widget-title">',  
  19. 'after_title' => '</h3></div>',  
  20. ) ); 
  21.  
  22. register_widget( 'Everbox_Popular_Widget' );