<aside id="main-sidebar" class="sidebar widget-area">
<aside id="main-sidebar" class="sidebar widget-area">
<?php dynamic_sidebar( 'main-sidebar' ); ?>
</aside>
<aside id="main-sidebar" class="sidebar widget-area">
<?php dynamic_sidebar( 'main-sidebar' ); ?>
</aside>
$wp_customize->add_setting( 'topbar', array(
'default' => false,
'sanitize_callback' => 'sanitize_checkbox',
) );
$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'topbar', array(
'label' => esc_html__('Show TopBar', 'woo-mag'),
'type' => 'checkbox',
'section' => 'topbar_main',
'settings' => 'topbar',
'priority' => 10,
) ) );
$wp_customize->add_setting( 'topbar_position', array(
'default' => 'relative',
'sanitize_callback' => 'sanitize_select',
) );
$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'topbar_position', array(
'label' => esc_html__( 'Position', 'woo-mag' ),
'type' => 'select',
'section' => 'topbar_main',
'settings' => 'topbar_position',
'priority' => 10,
'choices' => array(
'relative' => esc_html__( 'Relative', 'woo-mag' ),
'absolute' => esc_html__( 'Absolute', 'woo-mag' ),
),
'active_callback' => function(){
return get_theme_mod( 'topbar', true );
},
) ) );
$wp_customize->add_setting( 'topbar_disable_position', array(
'default' => false,
'sanitize_callback' => 'sanitize_checkbox',
) );
$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'topbar_disable_position', array(
'label' => esc_html__('Disable position.', 'woo-mag'),
'type' => 'checkbox',
'section' => 'topbar_main',
'settings' => 'topbar_disable_position',
'priority' => 10,
'active_callback' => function(){
return get_theme_mod( 'topbar_position', 'relative' ) == 'absolute' || get_theme_mod( 'topbar', false ) == true;
},
) ) );