esc_html__( 'Blog Sidebar', "astran"),
'id' => 'main-sidebar',
'description' => esc_html__( 'Sidebar on the blog layout.', "astran"),
'before_widget' => '
',
'before_title' => '',
'after_title' => '
',
));
// Footer Sidebar
register_sidebars( 4, array(
'name' => esc_html__( 'Footer Area %d', 'astran' ),
'id' => 'astran-footer-area',
'description' => esc_html__( 'Added widgets are display at footer widget area.', 'astran' ),
'before_widget' => '',
'before_title' => ' ',
) );
register_sidebar(array(
'name' => esc_html__( 'Top Modal Sidebar', "astran"),
'id' => 'modal-sidebar',
'description' => esc_html__( 'Sidebar for Top Sidebar.', "astran"),
'before_widget' => '',
'before_title' => '',
'after_title' => '
',
));
register_sidebar(array(
'name' => esc_html__( 'Woocomerce Sidebar', "astran"),
'id' => 'Woocomerce-sidebar',
'description' => esc_html__( 'Sidebar For Woocommerce.', "astran"),
'before_widget' => '',
'before_title' => '',
'after_title' => '
',
));
}
add_action( 'widgets_init', 'avadanta_theme_sidebars' );
if( ! function_exists( 'astran_admin_notice' ) ) :
/**
* Addmin notice for getting started page
*/
function astran_admin_notice(){
global $pagenow;
$theme_args = wp_get_theme();
$meta = get_option( 'astran_admin_notice' );
$name = $theme_args->__get( 'Name' );
$current_screen = get_current_screen();
if( 'themes.php' == $pagenow && !$meta ){
if( $current_screen->id !== 'dashboard' && $current_screen->id !== 'themes' ){
return;
}
if( is_network_admin() ){
return;
}
if( ! current_user_can( 'manage_options' ) ){
return;
} ?>