eewee_widgets_init

The Eewee responsive design eewee widgets init function.

Description

eewee_widgets_init(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function eewee_widgets_init() { 
  2.  
  3. // Declare a widget (class) 
  4. //register_widget( 'Eewee_Bootstrap_Twitter_Widget' ); 
  5.  
  6. register_sidebar( array( 
  7. 'name' => __( 'Main Sidebar', 'eewee' ),  
  8. 'id' => 'sidebar-1',  
  9. 'before_widget' => '<aside id="%1$s" class="widget %2$s">',  
  10. 'after_widget' => "</aside>",  
  11. 'before_title' => '<h3 class="widget-title">',  
  12. 'after_title' => '</h3>',  
  13. ) ); 
  14.  
  15. /** 
  16. register_sidebar( array( 
  17. 'name' => __( 'Showcase Sidebar', 'eewee' ),  
  18. 'id' => 'sidebar-2',  
  19. 'description' => __( 'The sidebar for the optional Showcase Template', 'eewee' ),  
  20. 'before_widget' => '<aside id="%1$s" class="widget %2$s">',  
  21. 'after_widget' => "</aside>",  
  22. 'before_title' => '<h3 class="widget-title">',  
  23. 'after_title' => '</h3>',  
  24. ) ); 
  25. */ 
  26.