ASTRA_THEME_SETTINGS . '[site-sidebar-layout]', 'type' => 'control', 'control' => 'ast-select', 'section' => 'section-sidebars', 'default' => astra_get_option( 'site-sidebar-layout' ), 'priority' => 5, 'title' => __( 'Default Layout', 'astra' ), 'choices' => array( 'no-sidebar' => __( 'No Sidebar', 'astra' ), 'left-sidebar' => __( 'Left Sidebar', 'astra' ), 'right-sidebar' => __( 'Right Sidebar', 'astra' ), ), 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), ), /** * Option: Page */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-page-sidebar-layout]', 'type' => 'control', 'control' => 'ast-select', 'section' => 'section-sidebars', 'default' => astra_get_option( 'single-page-sidebar-layout' ), 'priority' => 5, 'title' => __( 'Pages', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'no-sidebar' => __( 'No Sidebar', 'astra' ), 'left-sidebar' => __( 'Left Sidebar', 'astra' ), 'right-sidebar' => __( 'Right Sidebar', 'astra' ), ), ), /** * Option: Blog Post */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-sidebar-layout]', 'type' => 'control', 'control' => 'ast-select', 'default' => astra_get_option( 'single-post-sidebar-layout' ), 'section' => 'section-sidebars', 'priority' => 5, 'title' => __( 'Blog Posts', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'no-sidebar' => __( 'No Sidebar', 'astra' ), 'left-sidebar' => __( 'Left Sidebar', 'astra' ), 'right-sidebar' => __( 'Right Sidebar', 'astra' ), ), ), /** * Option: Blog Post Archive */ array( 'name' => ASTRA_THEME_SETTINGS . '[archive-post-sidebar-layout]', 'type' => 'control', 'control' => 'ast-select', 'default' => astra_get_option( 'archive-post-sidebar-layout' ), 'section' => 'section-sidebars', 'priority' => 5, 'title' => __( 'Archives', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'no-sidebar' => __( 'No Sidebar', 'astra' ), 'left-sidebar' => __( 'Left Sidebar', 'astra' ), 'right-sidebar' => __( 'Right Sidebar', 'astra' ), ), 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), ), /** * Option: Primary Content Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[site-sidebar-width]', 'type' => 'control', 'control' => 'ast-slider', 'default' => astra_get_option( 'site-sidebar-width' ), 'section' => 'section-sidebars', 'priority' => 15, 'title' => __( 'Sidebar Width', 'astra' ), 'suffix' => '%', 'transport' => 'postMessage', 'input_attrs' => array( 'min' => 15, 'step' => 1, 'max' => 50, ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[site-sidebar-width-description]', 'type' => 'control', 'control' => 'ast-description', 'section' => 'section-sidebars', 'priority' => 15, 'title' => '', 'help' => __( 'Sidebar width will apply only when one of the above sidebar is set.', 'astra' ), 'settings' => array(), ), ); return array_merge( $configurations, $_configs ); } } } new Astra_Sidebar_Layout_Configs();