2014-12-10 11:36:38 +00:00
|
|
|
<?php
|
2015-09-09 08:58:25 +00:00
|
|
|
/**
|
|
|
|
* Declaring widgets
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @package understrap
|
|
|
|
*/
|
2014-12-10 11:36:38 +00:00
|
|
|
function understrap_widgets_init() {
|
|
|
|
register_sidebar( array(
|
|
|
|
'name' => __( 'Sidebar', 'understrap' ),
|
|
|
|
'id' => 'sidebar-1',
|
|
|
|
'description' => '',
|
|
|
|
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
|
|
|
'after_widget' => '</aside>',
|
2014-12-11 16:41:11 +00:00
|
|
|
'before_title' => '<h3 class="widget-title">',
|
|
|
|
'after_title' => '</h3>',
|
2014-12-10 11:36:38 +00:00
|
|
|
) );
|
2014-12-19 07:50:59 +00:00
|
|
|
|
|
|
|
register_sidebar( array(
|
2016-03-03 10:39:40 +00:00
|
|
|
'name' => __( 'Sliding Hero', 'understrap' ),
|
2014-12-19 07:50:59 +00:00
|
|
|
'id' => 'hero',
|
|
|
|
'description' => '',
|
|
|
|
'before_widget' => '<div class="item">',
|
|
|
|
'after_widget' => '</div>',
|
|
|
|
'before_title' => '',
|
|
|
|
'after_title' => '',
|
|
|
|
) );
|
2015-08-13 12:00:24 +00:00
|
|
|
|
|
|
|
register_sidebar( array(
|
|
|
|
'name' => __( 'Static Hero', 'understrap' ),
|
|
|
|
'id' => 'statichero',
|
|
|
|
'description' => '',
|
|
|
|
'before_widget' => '',
|
|
|
|
'after_widget' => '',
|
|
|
|
'before_title' => '',
|
|
|
|
'after_title' => '',
|
|
|
|
) );
|
2015-08-13 12:15:57 +00:00
|
|
|
|
2014-12-10 11:36:38 +00:00
|
|
|
}
|
|
|
|
add_action( 'widgets_init', 'understrap_widgets_init' );
|