mh_widgets_init

The MH Corporate lite mh widgets init function.

Description

mh_widgets_init(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function mh_widgets_init() { 
  2. register_sidebar(array('name' => __('Sidebar', 'mhc'), 'id' => 'sidebar', 'description' => __('Widget area (sidebar left/right) on single posts, pages and archives', 'mhc'), 'before_widget' => '<div class="sb-widget">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>')); 
  3. register_sidebar(array('name' => sprintf(_x('Home %d', 'widget area name', 'mhc'), 1), 'id' => 'home-1', 'description' => __('Widget area on homepage', 'mhc'), 'before_widget' => '<div class="sb-widget home-1 home-wide">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>')); 
  4. register_sidebar(array('name' => sprintf(_x('Home %d', 'widget area name', 'mhc'), 2), 'id' => 'home-2', 'description' => __('Widget area on homepage', 'mhc'), 'before_widget' => '<div class="sb-widget home-2">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>')); 
  5. register_sidebar(array('name' => sprintf(_x('Home %d', 'widget area name', 'mhc'), 3), 'id' => 'home-3', 'description' => __('Widget area on homepage', 'mhc'), 'before_widget' => '<div class="sb-widget home-3">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>')); 
  6. register_sidebar(array('name' => sprintf(_x('Home %d', 'widget area name', 'mhc'), 4), 'id' => 'home-4', 'description' => __('Widget area on homepage', 'mhc'), 'before_widget' => '<div class="sb-widget home-4">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>')); 
  7. register_sidebar(array('name' => sprintf(_x('Footer %d', 'widget area name', 'mhc'), 1), 'id' => 'footer-1', 'description' => __('Widget area in footer', 'mhc'), 'before_widget' => '<div class="footer-widget footer-1">', 'after_widget' => '</div>', 'before_title' => '<h6 class="footer-widget-title">', 'after_title' => '</h6>')); 
  8. register_sidebar(array('name' => sprintf(_x('Footer %d', 'widget area name', 'mhc'), 2), 'id' => 'footer-2', 'description' => __('Widget area in footer', 'mhc'), 'before_widget' => '<div class="footer-widget footer-2">', 'after_widget' => '</div>', 'before_title' => '<h6 class="footer-widget-title">', 'after_title' => '</h6>')); 
  9. register_sidebar(array('name' => sprintf(_x('Footer %d', 'widget area name', 'mhc'), 3), 'id' => 'footer-3', 'description' => __('Widget area in footer', 'mhc'), 'before_widget' => '<div class="footer-widget footer-3">', 'after_widget' => '</div>', 'before_title' => '<h6 class="footer-widget-title">', 'after_title' => '</h6>')); 
  10. register_sidebar(array('name' => sprintf(_x('Footer %d', 'widget area name', 'mhc'), 4), 'id' => 'footer-4', 'description' => __('Widget area in footer', 'mhc'), 'before_widget' => '<div class="footer-widget footer-4">', 'after_widget' => '</div>', 'before_title' => '<h6 class="footer-widget-title">', 'after_title' => '</h6>'));