first commit without licensingg
This commit is contained in:
35
inc/widgets-init.php
Normal file
35
inc/widgets-init.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Widgets Init
|
||||
*
|
||||
* Register sitebar locations for widgets.
|
||||
*
|
||||
* @package Revision
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'csco_widgets_init' ) ) {
|
||||
/**
|
||||
* Register sidebars
|
||||
*/
|
||||
function csco_widgets_init() {
|
||||
|
||||
register_sidebar(
|
||||
array(
|
||||
'name' => esc_html__( 'Default Sidebar', 'revision' ),
|
||||
'id' => 'sidebar-main',
|
||||
'before_widget' => '<div class="widget %1$s %2$s">',
|
||||
'after_widget' => '</div>',
|
||||
)
|
||||
);
|
||||
|
||||
register_sidebar(
|
||||
array(
|
||||
'name' => esc_html__( 'Off-canvas', 'revision' ),
|
||||
'id' => 'sidebar-offcanvas',
|
||||
'before_widget' => '<div class="widget %1$s %2$s">',
|
||||
'after_widget' => '</div>',
|
||||
)
|
||||
);
|
||||
}
|
||||
add_action( 'widgets_init', 'csco_widgets_init' );
|
||||
}
|
||||
Reference in New Issue
Block a user