mh_widgets_init

The MH Purity 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', 'id' => 'sidebar', 'description' => __('Widget Area (Sidebar left/right) on Posts, Pages and Archives', 'mh-purity-lite'), 'before_widget' => '<div id="%1$s" class="sb-widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>')); 
  3. register_sidebar(array('name' => 'Home 1', 'id' => 'home-1', 'description' => __('Widget Area on Homepage (Content Area)', 'mh-purity-lite'), 'before_widget' => '<div id="%1$s" class="sb-widget home-2 home-wide %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>')); 
  4. register_sidebar(array('name' => 'Home 2', 'id' => 'home-2', 'description' => __('Widget Area on homepage (Sidebar)', 'mh-purity-lite'), 'before_widget' => '<div id="%1$s" class="sb-widget home-3 %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>')); 
  5. register_sidebar(array('name' => __('Footer 1', 'mh-purity-lite'), 'id' => 'footer-1', 'description' => __('Widget Area in Footer', 'mh-purity-lite'), 'before_widget' => '<div id="%1$s" class="footer-widget footer-1 %2$s">', 'after_widget' => '</div>', 'before_title' => '<h6 class="footer-widget-title">', 'after_title' => '</h6>')); 
  6. register_sidebar(array('name' => __('Footer 2', 'mh-purity-lite'), 'id' => 'footer-2', 'description' => __('Widget Area in Footer', 'mh-purity-lite'), 'before_widget' => '<div id="%1$s" class="footer-widget footer-2 %2$s">', 'after_widget' => '</div>', 'before_title' => '<h6 class="footer-widget-title">', 'after_title' => '</h6>')); 
  7. register_sidebar(array('name' => __('Footer 3', 'mh-purity-lite'), 'id' => 'footer-3', 'description' => __('Widget Area in Footer', 'mh-purity-lite'), 'before_widget' => '<div id="%1$s" class="footer-widget footer-3 %2$s">', 'after_widget' => '</div>', 'before_title' => '<h6 class="footer-widget-title">', 'after_title' => '</h6>'));