add_section( 'aces_blog_and_pages_entries', array( 'title' => esc_html__( 'Blog / Archive', 'aces' ), 'priority' => 10, 'panel' => $panel, ) ); $wp_customize->add_setting( 'aces_blog_archive_layout_style', array( 'default' => 'list', 'sanitize_callback' => 'aces_sanitize_select', ) ); $wp_customize->add_control( new Aces_Customizer_Buttonset_Control( $wp_customize, 'aces_blog_archive_layout_style', array( 'label' => esc_html__( 'Layout Style', 'aces' ), 'section' => 'aces_blog_and_pages_entries', 'settings' => 'aces_blog_archive_layout_style', 'priority' => 10, 'choices' => array( 'list' => esc_html__( 'List', 'aces' ), 'grid' => esc_html__( 'Grid', 'aces' ), ), ) ) ); $wp_customize->add_setting( 'aces_blog_grid_col', array( 'default' => esc_html__( '6','aces' ), 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_blog_grid_col', array( 'label' => esc_html__( 'Grid Column', 'aces' ), 'type' => 'select', 'section' => 'aces_blog_and_pages_entries', 'settings' => 'aces_blog_grid_col', 'priority' => 10, 'choices' => array( '6' => esc_html__( '2','aces' ), '4' => esc_html__( '3','aces' ), '3' => esc_html__( '4','aces' ), ), 'active_callback' => 'aces_blog_archive_layout_' ) ) ); /** * Blog Entries Elements Positioning */ $wp_customize->add_setting( 'aces_blog_entry_elements_positioning', array( 'default' => array( 'title', 'categories', 'featured_image', 'content', 'meta', 'tags', 'read_more' ), 'sanitize_callback' => 'aces_sanitize_multi_choices', ) ); $wp_customize->add_control( new Aces_Customizer_Sortable_Control( $wp_customize, 'aces_blog_entry_elements_positioning', array( 'label' => esc_html__( 'Elements Positioning', 'aces' ), 'section' => 'aces_blog_and_pages_entries', 'settings' => 'aces_blog_entry_elements_positioning', 'priority' => 10, 'choices' => apply_filters( 'aceswp_blog_entry_elements', array( 'title' => esc_html__( 'Title', 'aces' ), 'categories' => esc_html__( 'Categories', 'aces' ), 'featured_image' => esc_html__( 'Featured Image', 'aces' ), 'content' => esc_html__( 'Content', 'aces' ), 'meta' => esc_html__( 'Meta', 'aces' ), 'tags' => esc_html__( 'Tags', 'aces' ), 'read_more' => esc_html__( 'Read More', 'aces' ), ) ), ) ) ); $wp_customize->add_setting( 'aces_blog_entry_excerpt_length', array( 'default' => '35', 'sanitize_callback' => false, ) ); $wp_customize->add_control( new Aces_Customizer_Range_Control( $wp_customize, 'aces_blog_entry_excerpt_length', array( 'label' => esc_html__( 'Excerpt Length', 'aces' ), 'section' => 'aces_blog_and_pages_entries', 'settings' => 'aces_blog_entry_excerpt_length', 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 400, 'step' => 1, ), ) ) ); $wp_customize->add_setting( 'aces_read_more_button_heading', array( 'sanitize_callback' => 'wp_kses', ) ); $wp_customize->add_control( new Aces_Customizer_Heading_Control( $wp_customize, 'aces_read_more_button_heading', array( 'label' => esc_html__( 'Read More', 'aces' ), 'section' => 'aces_blog_and_pages_entries', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'aces_blog_entry_read_more_text', array( 'default' => esc_html__( 'Read More', 'aces' ), 'transport' => 'postMessage', 'sanitize_callback' => 'wp_filter_nohtml_kses', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_blog_entry_read_more_text', array( 'label' => esc_html__( 'Read More Text', 'aces' ), 'section' => 'aces_blog_and_pages_entries', 'settings' => 'aces_blog_entry_read_more_text', 'type' => 'text', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'aces_global_read_more_button_text_color', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_color', ) ); $wp_customize->add_control( new Aces_Customizer_Color_Control( $wp_customize, 'aces_global_read_more_button_text_color', array( 'label' => esc_html__( 'Text', 'aces' ), 'section' => 'aces_blog_and_pages_entries', 'settings' => 'aces_global_read_more_button_text_color', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'aces_global_read_more_button_hover_text_color', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_color', ) ); $wp_customize->add_control( new Aces_Customizer_Color_Control( $wp_customize, 'aces_global_read_more_button_hover_text_color', array( 'label' => esc_html__( 'Hover: Text', 'aces' ), 'section' => 'aces_blog_and_pages_entries', 'settings' => 'aces_global_read_more_button_hover_text_color', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'aces_global_read_more_button_bg_color', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_color', ) ); $wp_customize->add_control( new Aces_Customizer_Color_Control( $wp_customize, 'aces_global_read_more_button_bg_color', array( 'label' => esc_html__( 'Background', 'aces' ), 'section' => 'aces_blog_and_pages_entries', 'settings' => 'aces_global_read_more_button_bg_color', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'aces_global_read_more_button_hover_bg_color', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_color', ) ); $wp_customize->add_control( new Aces_Customizer_Color_Control( $wp_customize, 'aces_global_read_more_button_hover_bg_color', array( 'label' => esc_html__( 'Hover: Background', 'aces' ), 'section' => 'aces_blog_and_pages_entries', 'settings' => 'aces_global_read_more_button_hover_bg_color', 'priority' => 10, ) ) ); /** * Theme Buttons Padding */ $wp_customize->add_setting( 'aces_theme_read_more_button_top_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number', ) ); $wp_customize->add_setting( 'aces_theme_read_more_button_right_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number', ) ); $wp_customize->add_setting( 'aces_theme_read_more_button_bottom_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number', ) ); $wp_customize->add_setting( 'aces_theme_read_more_button_left_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number', ) ); $wp_customize->add_setting( 'aces_theme_read_more_button_tablet_top_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_read_more_button_tablet_right_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_read_more_button_tablet_bottom_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_read_more_button_tablet_left_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_read_more_button_mobile_top_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_read_more_button_mobile_right_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_read_more_button_mobile_bottom_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_setting( 'aces_theme_read_more_button_mobile_left_padding', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_number_blank', ) ); $wp_customize->add_control( new Aces_Customizer_Dimensions_Control( $wp_customize, 'aces_theme_read_more_button_padding_dimensions', array( 'label' => esc_html__( 'Padding (px)', 'aces' ), 'section' => 'aces_blog_and_pages_entries', 'settings' => array( 'desktop_top' => 'aces_theme_read_more_button_top_padding', 'desktop_right' => 'aces_theme_read_more_button_right_padding', 'desktop_bottom' => 'aces_theme_read_more_button_bottom_padding', 'desktop_left' => 'aces_theme_read_more_button_left_padding', 'tablet_top' => 'aces_theme_read_more_button_tablet_top_padding', 'tablet_right' => 'aces_theme_read_more_button_tablet_right_padding', 'tablet_bottom' => 'aces_theme_read_more_button_tablet_bottom_padding', 'tablet_left' => 'aces_theme_read_more_button_tablet_left_padding', 'mobile_top' => 'aces_theme_read_more_button_mobile_top_padding', 'mobile_right' => 'aces_theme_read_more_button_mobile_right_padding', 'mobile_bottom' => 'aces_theme_read_more_button_mobile_bottom_padding', 'mobile_left' => 'aces_theme_read_more_button_mobile_left_padding', ), 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 100, 'step' => 1, ), ) ) ); /** * Theme Buttons Border Radius */ $wp_customize->add_setting( 'aces_theme_read_more_button_border_radius', array( 'transport' => 'postMessage', 'default' => '0', 'sanitize_callback' => 'aces_sanitize_number', ) ); $wp_customize->add_control( new Aces_Customizer_Range_Control( $wp_customize, 'aces_theme_read_more_button_border_radius', array( 'label' => esc_html__( 'Border Radius (px)', 'aces' ), 'section' => 'aces_blog_and_pages_entries', 'settings' => 'aces_theme_read_more_button_border_radius', 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 100, 'step' => 1, ), ) ) ); /** * Theme Buttons Border Radius */ $wp_customize->add_setting( 'aces_theme_read_more_button_border_size', array( 'transport' => 'postMessage', 'default' => '0', 'sanitize_callback' => 'aces_sanitize_number', ) ); $wp_customize->add_control( new Aces_Customizer_Range_Control( $wp_customize, 'aces_theme_read_more_button_border_size', array( 'label' => esc_html__( 'Border (px)', 'aces' ), 'section' => 'aces_blog_and_pages_entries', 'settings' => 'aces_theme_read_more_button_border_size', 'priority' => 10, 'input_attrs' => array( 'min' => 0, 'max' => 5, 'step' => 1, ), ) ) ); $wp_customize->add_setting( 'aces_theme_read_more_button_border_color', array( 'transport' => 'postMessage', 'sanitize_callback' => 'aces_sanitize_color', ) ); $wp_customize->add_control( new Aces_Customizer_Color_Control( $wp_customize, 'aces_theme_read_more_button_border_color', array( 'label' => esc_html__( 'Border color', 'aces' ), 'section' => 'aces_blog_and_pages_entries', 'settings' => 'aces_theme_read_more_button_border_color', 'priority' => 10, ) ) ); $wp_customize->add_setting( 'aces_pagination_style', array( 'default' => esc_html__( 'standard','aces' ), 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'aces_pagination_style', array( 'label' => esc_html__( 'Pagination Type', 'aces' ), 'type' => 'select', 'section' => 'aces_blog_and_pages_entries', 'settings' => 'aces_pagination_style', 'priority' => 10, 'choices' => array( 'standard' => esc_html__( 'Standard Pagination','aces' ), 'numeric' => esc_html__( 'Numeric Pagination','aces' ) ), ) ) );