add_setting( ALAGU_THEME_SETTINGS . '[blog-archives-page-layout]', array( 'default' => alagu_get_option( 'blog-archives-page-layout' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_choices' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control_Radio_Image( $wp_customize, ALAGU_THEME_SETTINGS . '[blog-archives-page-layout]', array( 'type' => 'dt-radio-image', 'label' => esc_html__( 'Page Layout', 'alagu'), 'section' => 'site-post-archives-section', 'priority' => 5, 'choices' => apply_filters( 'alagu_archive_page_layout_options', array( 'content-full-width' => array( 'label' => esc_html__( 'Without Sidebar', 'alagu' ), 'path' => ALAGU_THEME_URI . '/inc/customizer/assets/images/without-sidebar.png' ), 'with-left-sidebar' => array( 'label' => esc_html__( 'Left Sidebar', 'alagu' ), 'path' => ALAGU_THEME_URI . '/inc/customizer/assets/images/left-sidebar.png' ), 'with-right-sidebar' => array( 'label' => esc_html__( 'Right Sidebar', 'alagu' ), 'path' => ALAGU_THEME_URI . '/inc/customizer/assets/images/right-sidebar.png' ), 'with-both-sidebar' => array( 'label' => esc_html__( 'Both Sidebar', 'alagu' ), 'path' => ALAGU_THEME_URI . '/inc/customizer/assets/images/both-sidebar.png' ), )) ) )); /** * Option : Show Standard Left Sidebar */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[show-standard-left-sidebar-for-post-archives]', array( 'default' => alagu_get_option( 'show-standard-left-sidebar-for-post-archives' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_tweek' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control_Switch( $wp_customize, ALAGU_THEME_SETTINGS . '[show-standard-left-sidebar-for-post-archives]', array( 'type' => 'dt-switch', 'label' => esc_html__( 'Show Standard Left Sidebar', 'alagu'), 'section' => 'site-post-archives-section', 'priority' => 10, 'dependency' => array( 'blog-archives-page-layout', 'any', 'with-left-sidebar,with-both-sidebar' ), 'choices' => array( 'on' => esc_attr__( 'Yes', 'alagu' ), 'off' => esc_attr__( 'No', 'alagu' ) ) ) ) ); /** * Option : Show Standard Right Sidebar */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[show-standard-right-sidebar-for-post-archives]', array( 'default' => alagu_get_option( 'show-standard-right-sidebar-for-post-archives' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_tweek' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control_Switch( $wp_customize, ALAGU_THEME_SETTINGS . '[show-standard-right-sidebar-for-post-archives]', array( 'type' => 'dt-switch', 'label' => esc_html__( 'Show Standard Right Sidebar', 'alagu'), 'section' => 'site-post-archives-section', 'priority' => 15, 'dependency' => array( 'blog-archives-page-layout', 'any', 'with-right-sidebar,with-both-sidebar' ), 'choices' => array( 'on' => esc_attr__( 'Yes', 'alagu' ), 'off' => esc_attr__( 'No', 'alagu' ) ) ) ) ); do_action( 'alagu-archive-layout-after-pro-settings' ); /** * Option : Post Columns */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[blog-post-columns]', array( 'default' => alagu_get_option( 'blog-post-columns' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_choices' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control_Radio_Image( $wp_customize, ALAGU_THEME_SETTINGS . '[blog-post-columns]', array( 'type' => 'dt-radio-image', 'label' => esc_html__( 'Columns', 'alagu'), 'section' => 'site-post-archives-section', 'priority' => 20, 'choices' => apply_filters( 'alagu_archive_post_columns_options', array( 'one-column' => array( 'label' => esc_html__( 'One Column', 'alagu' ), 'path' => ALAGU_THEME_URI . '/inc/customizer/assets/images/one-column.png' ), 'one-half-column' => array( 'label' => esc_html__( 'One Half Column', 'alagu' ), 'path' => ALAGU_THEME_URI . '/inc/customizer/assets/images/one-half-column.png' ), 'one-third-column' => array( 'label' => esc_html__( 'One Third Column', 'alagu' ), 'path' => ALAGU_THEME_URI . '/inc/customizer/assets/images/one-third-column.png' ), )), ) )); /** * Option : Post Alignment */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[blog-alignment]', array( 'default' => alagu_get_option( 'blog-alignment' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_choices' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control( $wp_customize, ALAGU_THEME_SETTINGS . '[blog-alignment]', array( 'type' => 'select', 'section' => 'site-post-archives-section', 'label' => esc_html__( 'Elements Alignment', 'alagu' ), 'priority' => 30, 'choices' => array( 'alignnone' => esc_html__('None', 'alagu'), 'alignleft' => esc_html__('Align Left', 'alagu'), 'aligncenter' => esc_html__('Align Center', 'alagu'), 'alignright' => esc_html__('Align Right', 'alagu'), ), ) ) ); /** * Option : Equal Height */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[enable-equal-height]', array( 'default' => alagu_get_option( 'enable-equal-height' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_tweek' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control_Switch( $wp_customize, ALAGU_THEME_SETTINGS . '[enable-equal-height]', array( 'type' => 'dt-switch', 'label' => esc_html__( 'Enable Equal Height', 'alagu'), 'section' => 'site-post-archives-section', 'priority' => 35, 'choices' => array( 'on' => esc_attr__( 'Yes', 'alagu' ), 'off' => esc_attr__( 'No', 'alagu' ) ), ) ) ); /** * Option : No Space */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[enable-no-space]', array( 'default' => alagu_get_option( 'enable-no-space' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_tweek' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control_Switch( $wp_customize, ALAGU_THEME_SETTINGS . '[enable-no-space]', array( 'type' => 'dt-switch', 'label' => esc_html__( 'Enable No Space', 'alagu'), 'section' => 'site-post-archives-section', 'priority' => 40, 'choices' => array( 'on' => esc_attr__( 'Yes', 'alagu' ), 'off' => esc_attr__( 'No', 'alagu' ) ), ) ) ); /** * Option : Gallery Slider */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[enable-gallery-slider]', array( 'default' => alagu_get_option( 'enable-gallery-slider' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_tweek' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control_Switch( $wp_customize, ALAGU_THEME_SETTINGS . '[enable-gallery-slider]', array( 'type' => 'dt-switch', 'label' => esc_html__( 'Display Gallery Slider', 'alagu'), 'section' => 'site-post-archives-section', 'priority' => 45, 'choices' => array( 'on' => esc_attr__( 'Yes', 'alagu' ), 'off' => esc_attr__( 'No', 'alagu' ) ), ) ) ); /** * Divider : Blog Gallery Slider Bottom */ $wp_customize->add_control( new ALAGU_Customize_Control_Separator( $wp_customize, ALAGU_THEME_SETTINGS . '[blog-gallery-slider-bottom-separator]', array( 'type' => 'dt-separator', 'section' => 'site-post-archives-section', 'priority' => 46, 'settings' => array(), ) ) ); /** * Option : Post Format */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[enable-post-format]', array( 'default' => alagu_get_option( 'enable-post-format' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_tweek' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control_Switch( $wp_customize, ALAGU_THEME_SETTINGS . '[enable-post-format]', array( 'type' => 'dt-switch', 'label' => esc_html__( 'Enable Post Format', 'alagu'), 'section' => 'site-post-archives-section', 'priority' => 60, 'choices' => array( 'on' => esc_attr__( 'Yes', 'alagu' ), 'off' => esc_attr__( 'No', 'alagu' ) ) ) ) ); /** * Option : Enable Excerpt */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[enable-excerpt-text]', array( 'default' => alagu_get_option( 'enable-excerpt-text' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_tweek' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control_Switch( $wp_customize, ALAGU_THEME_SETTINGS . '[enable-excerpt-text]', array( 'type' => 'dt-switch', 'label' => esc_html__( 'Enable Excerpt Text', 'alagu'), 'priority' => 60, 'section' => 'site-post-archives-section', 'choices' => array( 'on' => esc_attr__( 'Yes', 'alagu' ), 'off' => esc_attr__( 'No', 'alagu' ) ) ) ) ); /** * Option : Excerpt Text */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[blog-excerpt-length]', array( 'default' => alagu_get_option( 'blog-excerpt-length' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_number' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control( $wp_customize, ALAGU_THEME_SETTINGS . '[blog-excerpt-length]', array( 'type' => 'text', 'section' => 'site-post-archives-section', 'priority' => 65, 'label' => esc_html__( 'Excerpt Length', 'alagu' ), 'description' => esc_html__('Put Excerpt Length', 'alagu'), 'input_attrs' => array( 'value' => 25 ), 'dependency' => array( 'enable-excerpt-text', '==', 'true' ), ) ) ); /** * Option : Enable Video Audio */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[enable-video-audio]', array( 'default' => alagu_get_option( 'enable-video-audio' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_tweek' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control_Switch( $wp_customize, ALAGU_THEME_SETTINGS . '[enable-video-audio]', array( 'type' => 'dt-switch', 'label' => esc_html__( 'Display Video & Audio for Posts', 'alagu'), 'description' => esc_html__('YES! to display video & audio, instead of feature image for posts', 'alagu'), 'section' => 'site-post-archives-section', 'priority' => 70, 'choices' => array( 'on' => esc_attr__( 'Yes', 'alagu' ), 'off' => esc_attr__( 'No', 'alagu' ) ), ) ) ); /** * Option : Readmore Text */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[blog-readmore-text]', array( 'default' => alagu_get_option( 'blog-readmore-text' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_html' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control( $wp_customize, ALAGU_THEME_SETTINGS . '[blog-readmore-text]', array( 'type' => 'text', 'section' => 'site-post-archives-section', 'priority' => 75, 'label' => esc_html__( 'Read More Text', 'alagu' ), 'description' => esc_html__('Put the read more text here', 'alagu'), 'input_attrs' => array( 'value' => esc_html__('Read More', 'alagu'), ) ) ) ); /** * Option : Image Hover Style */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[blog-image-hover-style]', array( 'default' => alagu_get_option( 'blog-image-hover-style' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_choices' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control( $wp_customize, ALAGU_THEME_SETTINGS . '[blog-image-hover-style]', array( 'type' => 'select', 'section' => 'site-post-archives-section', 'label' => esc_html__( 'Image Hover Style', 'alagu' ), 'priority' => 80, 'choices' => array( 'dt-sc-default' => esc_html__('Default', 'alagu'), 'dt-sc-blur' => esc_html__('Blur', 'alagu'), 'dt-sc-bw' => esc_html__('Black and White', 'alagu'), 'dt-sc-brightness' => esc_html__('Brightness', 'alagu'), 'dt-sc-fadeinleft' => esc_html__('Fade InLeft', 'alagu'), 'dt-sc-fadeinright' => esc_html__('Fade InRight', 'alagu'), 'dt-sc-hue-rotate' => esc_html__('Hue-Rotate', 'alagu'), 'dt-sc-invert' => esc_html__('Invert', 'alagu'), 'dt-sc-opacity' => esc_html__('Opacity', 'alagu'), 'dt-sc-rotate' => esc_html__('Rotate', 'alagu'), 'dt-sc-rotate-alt' => esc_html__('Rotate Alt', 'alagu'), 'dt-sc-scalein' => esc_html__('Scale In', 'alagu'), 'dt-sc-scaleout' => esc_html__('Scale Out', 'alagu'), 'dt-sc-sepia' => esc_html__('Sepia', 'alagu'), 'dt-sc-tint' => esc_html__('Tint', 'alagu'), ), 'description' => esc_html__('Choose image hover style to display archives pages.', 'alagu'), ) ) ); /** * Option : Image Hover Style */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[blog-image-overlay-style]', array( 'default' => alagu_get_option( 'blog-image-overlay-style' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_choices' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control( $wp_customize, ALAGU_THEME_SETTINGS . '[blog-image-overlay-style]', array( 'type' => 'select', 'section' => 'site-post-archives-section', 'label' => esc_html__( 'Image Overlay Style', 'alagu' ), 'priority' => 85, 'choices' => array( 'dt-sc-default' => esc_html__('None', 'alagu'), 'dt-sc-fixed' => esc_html__('Fixed', 'alagu'), 'dt-sc-tb' => esc_html__('Top to Bottom', 'alagu'), 'dt-sc-bt' => esc_html__('Bottom to Top', 'alagu'), 'dt-sc-rl' => esc_html__('Right to Left', 'alagu'), 'dt-sc-lr' => esc_html__('Left to Right', 'alagu'), 'dt-sc-middle' => esc_html__('Middle', 'alagu'), 'dt-sc-middle-radial' => esc_html__('Middle Radial', 'alagu'), 'dt-sc-tb-gradient' => esc_html__('Gradient - Top to Bottom', 'alagu'), 'dt-sc-bt-gradient' => esc_html__('Gradient - Bottom to Top', 'alagu'), 'dt-sc-rl-gradient' => esc_html__('Gradient - Right to Left', 'alagu'), 'dt-sc-lr-gradient' => esc_html__('Gradient - Left to Right', 'alagu'), 'dt-sc-radial-gradient' => esc_html__('Gradient - Radial', 'alagu'), 'dt-sc-flash' => esc_html__('Flash', 'alagu'), 'dt-sc-circle' => esc_html__('Circle', 'alagu'), 'dt-sc-hm-elastic' => esc_html__('Horizontal Elastic', 'alagu'), 'dt-sc-vm-elastic' => esc_html__('Vertical Elastic', 'alagu'), ), 'description' => esc_html__('Choose image overlay style to display archives pages.', 'alagu'), ) ) ); if ( ! defined( 'ALAGU_PRO_VER' ) ) { /** * Divider : Separator 1 */ $wp_customize->add_control( new ALAGU_Customize_Control_Separator( $wp_customize, ALAGU_THEME_SETTINGS . '[dt-site-general-pro-separator]', array( 'type' => 'dt-separator', 'section' => 'site-general-section', 'priority' => 999, 'settings' => array(), 'description' => '
' . __( 'More Options Available in Alagu Pro!', 'alagu' ) . '
' . __( 'Learn More', 'alagu' ) . '', ) ) ); }