biofriction-wp-plugin/biofriction-theme/library/widget-areas.php

50 lines
1.5 KiB
PHP

<?php
/**
* Register widget areas
*
* @package Biofriction
* @since Biofriction 1.0.0
*/
if ( ! function_exists( 'biofriction_widgets' ) ) :
function biofriction_widgets() {
// register_sidebar(
// array(
// 'id' => 'sidebar-widgets',
// 'name' => __( 'Sidebar widgets', 'foundationpress' ),
// 'description' => __( 'Drag widgets to this sidebar container.', 'foundationpress' ),
// 'before_widget' => '<section id="%1$s" class="widget %2$s">',
// 'after_widget' => '</section>',
// 'before_title' => '<h6>',
// 'after_title' => '</h6>',
// )
// );
register_sidebar(
array(
'id' => 'header-widgets',
'name' => __( 'Header widgets', 'foundationpress' ),
'description' => __( 'Drag widgets to this footer container', 'foundationpress' ),
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h6>',
'after_title' => '</h6>',
)
);
register_sidebar(
array(
'id' => 'footer-widgets',
'name' => __( 'Footer widgets', 'foundationpress' ),
'description' => __( 'Drag widgets to this footer container', 'foundationpress' ),
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h6>',
'after_title' => '</h6>',
)
);
}
add_action( 'widgets_init', 'biofriction_widgets' );
endif;