web_dor_widgets_init

The Business Responsive web dor widgets init function.

Description

web_dor_widgets_init(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function web_dor_widgets_init() 
  2.  
  3. // Area 1, located at the top of the sidebar. 
  4.  
  5. register_sidebar(array( 
  6.  
  7. 'name' => __('Primary Widget Area', 'sp_webBusiness'),  
  8.  
  9. 'id' => 'primary-widget-area',  
  10.  
  11. 'description' => __('The primary widget area', 'sp_webBusiness'),  
  12.  
  13. 'before_widget' => '<div id="%1$s" class="widget-container %2$s">',  
  14.  
  15.  
  16. 'after_widget' => '</div>',  
  17.  
  18. 'before_title' => '<h3 class="widget-title">',  
  19.  
  20. 'after_title' => '</h3>',  
  21.  
  22. ); 
  23.  
  24. // Area 2, located below the Primary Widget Area in the sidebar. Empty by default. 
  25.  
  26. register_sidebar(array( 
  27.  
  28. 'name' => __('Secondary Widget Area', 'sp_webBusiness'),  
  29.  
  30. 'id' => 'secondary-widget-area',  
  31.  
  32. 'description' => __('The secondary widget area', 'sp_webBusiness'),  
  33.  
  34. 'before_widget' => '<div id="%1$s" class="widget-container %2$s">',  
  35.  
  36. 'after_widget' => '</div>',  
  37.  
  38. 'before_title' => '<h3 class="widget-title">',  
  39.  
  40. 'after_title' => '</h3>',  
  41. ); 
  42. register_sidebar(array( 
  43.  
  44. 'name' => __('Footer Sidebar', 'sp_webBusiness'),  
  45.  
  46. 'id' => 'footer-sidebar',  
  47.  
  48. 'description' => __('The footer-sidebar', 'sp_webBusiness'),  
  49.  
  50. 'before_widget' => '<div style="float: left;" id="%1$s" class="widget-container widget_conteiner_fotter %2$s">',  
  51.  
  52. 'after_widget' => '</div>',  
  53.  
  54. 'before_title' => '<h3 class="widget-title">',  
  55.  
  56. 'after_title' => '</h3>',  
  57. );