responsive_widgets_init

WordPress Widgets start right here.

Description

responsive_widgets_init(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function responsive_widgets_init() { 
  2. register_sidebar( array( 
  3. 'name' => __( 'Main Sidebar', 'responsive' ),  
  4. 'description' => __( 'Main sidebar', 'responsive' ),  
  5. 'id' => 'sidebar-1',  
  6. 'before_title' => '<div class="widget-title">',  
  7. 'after_title' => '</div>',  
  8. 'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',  
  9. 'after_widget' => '</div>' 
  10. ) ); 
  11.  
  12. register_sidebar( array( 
  13. 'name' => __( 'Left Home', 'responsive' ),  
  14. 'description' => __( 'Bottom-left home widget area', 'responsive' ),  
  15. 'id' => 'sidebar-2',  
  16. 'before_title' => '<div id="widget-title-one" class="widget-title-home"><h3>',  
  17. 'after_title' => '</h3></div>',  
  18. 'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',  
  19. 'after_widget' => '</div>' 
  20. ) ); 
  21.  
  22. register_sidebar( array( 
  23. 'name' => __( 'Middle Home', 'responsive' ),  
  24. 'description' => __( 'Bottom-middle home widget area', 'responsive' ),  
  25. 'id' => 'sidebar-3',  
  26. 'before_title' => '<div id="widget-title-two" class="widget-title-home"><h3>',  
  27. 'after_title' => '</h3></div>',  
  28. 'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',  
  29. 'after_widget' => '</div>' 
  30. ) ); 
  31.  
  32. register_sidebar( array( 
  33. 'name' => __( 'Right Home', 'responsive' ),  
  34. 'description' => __( 'Bottom-right home widget area', 'responsive' ),  
  35. 'id' => 'sidebar-4',  
  36. 'before_title' => '<div id="widget-title-three" class="widget-title-home"><h3>',  
  37. 'after_title' => '</h3></div>',  
  38. 'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',  
  39. 'after_widget' => '</div>' 
  40. ) ); 
  41.  
  42. register_sidebar( array( 
  43. 'name' => __( 'Gallery', 'responsive' ),  
  44. 'description' => __( 'Widget area on single image page', 'responsive' ),  
  45. 'id' => 'sidebar-5',  
  46. 'before_title' => '<div class="widget-title">',  
  47. 'after_title' => '</div>',  
  48. 'before_widget' => '<div id="%1$s" class="widget-wrapper %2$s">',  
  49. 'after_widget' => '</div>' 
  50. ) ); 
  51.  
  52. register_sidebar( array( 
  53. 'name' => __( 'Footer', 'responsive' ),  
  54. 'description' => __( 'Widget area in footer', 'responsive' ),  
  55. 'id' => 'sidebar-6',  
  56. 'before_title' => '<div class="widget-title">',  
  57. 'after_title' => '</div>',  
  58. 'before_widget' => '<div id="%1$s" class="colophon-widget widget-wrapper %2$s">',  
  59. 'after_widget' => '</div>' 
  60. ) ); 
  61.  
  62. register_sidebar( array( 
  63. 'name' => __( 'Top', 'responsive' ),  
  64. 'description' => __( 'Widget area above main navigation', 'responsive' ),  
  65. 'id' => 'sidebar-7',  
  66. 'before_title' => '<div class="widget-title">',  
  67. 'after_title' => '</div>',  
  68. 'before_widget' => '<div id="%1$s" class="%2$s">',  
  69. 'after_widget' => '</div>' 
  70. ) );