This repository has been archived on 2020-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
understrap/inc/widgets.php

50 lines
1.5 KiB
PHP
Raw Normal View History

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',
2016-03-09 09:16:22 +00:00
'description' => 'Sidebar widget area',
2014-12-10 11:36:38 +00:00
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
2014-12-10 11:36:38 +00:00
) );
register_sidebar( array(
2016-03-09 08:32:44 +00:00
'name' => __( 'Hero Slider', 'understrap' ),
'id' => 'hero',
2016-03-09 09:16:22 +00:00
'description' => 'Hero slider area. Place two or more widgets here and they will slide!',
'before_widget' => '<div class="item">',
'after_widget' => '</div>',
'before_title' => '',
'after_title' => '',
) );
2015-08-13 12:00:24 +00:00
register_sidebar( array(
2016-03-09 08:32:44 +00:00
'name' => __( 'Hero Static', 'understrap' ),
2015-08-13 12:00:24 +00:00
'id' => 'statichero',
2016-03-09 09:16:22 +00:00
'description' => 'Static Hero widget. no slider functionallity',
2015-08-13 12:00:24 +00:00
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
) );
2015-08-13 12:15:57 +00:00
2016-03-09 08:32:44 +00:00
register_sidebar( array(
'name' => __( 'Footer Full', 'understrap' ),
'id' => 'footerfull',
2016-03-09 09:16:22 +00:00
'description' => 'Widget area below main content and above footer',
2016-03-09 08:32:44 +00:00
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
) );
2014-12-10 11:36:38 +00:00
}
add_action( 'widgets_init', 'understrap_widgets_init' );