add_panel('swiftpress_other_options',array( 'capability' => 'edit_theme_options', 'priority' => 80, 'title' => __('Swiftpress Options ', 'swiftpress') )); $wp_customize->add_section( 'swiftpress_layout_options', array( 'capability' => 'edit_theme_options', 'priority' => 20, 'title' => __( ' Options', 'swiftpress' ), 'panel' => 'swiftpress_other_options' ) ); $wp_customize->add_setting( 'swiftpress_default_layout', array( 'capability' => 'edit_theme_options', 'default' => '1', 'sanitize_callback' => 'swiftpress_theme_sanitize_text' ) ); $wp_customize->add_control( 'swiftpress_default_layout', array( 'settings' => 'swiftpress_default_layout', 'label' => __( ' Layout Style', 'swiftpress' ), 'section' => 'swiftpress_layout_options', 'type' => 'radio', 'choices' => array( '1' => __( 'Right Sidebar', 'swiftpress' ), '2' => __( 'Left Sidebar ', 'swiftpress' ), '3' => __( 'Both Sidebar', 'swiftpress' ), '4' => __( 'No Sidebar', 'swiftpress' ) ), 'priority' => 20 ) ); $wp_customize->add_setting( 'swiftpress_excerpt_setting', array( 'capability' => 'edit_theme_options', 'default' => '40', 'sanitize_callback' => 'swiftpress_theme_sanitize_text', ) ); $wp_customize->add_control( 'swiftpress_excerpt_setting', array( 'description' => __('Excerpt length. Default is 40 words', 'swiftpress'), 'input_attrs' => array( 'min' => 10, 'max' => 200, 'step' => 5, 'style' => 'width: 60px;' ), 'label' => __( 'Excerpt Length (words)', 'swiftpress' ), 'section' => 'swiftpress_layout_options', 'settings' => 'swiftpress_excerpt_setting', 'type' => 'number', ) ); ///// scrolll $wp_customize->add_setting( 'swiftpress_scrollup_setting', array( 'capability' => 'edit_theme_options', 'default' => '', 'sanitize_callback' => 'swiftpress_theme_sanitize_text', ) ); $wp_customize->add_control( 'swiftpress_scrollup_setting', array( 'label' => __( 'Check to disable Scroll Up', 'swiftpress' ), 'section' => 'swiftpress_layout_options', 'settings' => 'swiftpress_scrollup_setting', 'type' => 'checkbox', ) ); // Scrollup End // copyright $wp_customize->add_setting( 'swiftpress_copyright_setting', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'swiftpress_theme_sanitize_text', 'default' => __('Copyright © 2016. Your Theme. All Rights Reserved.','swiftpress'), ) ); $wp_customize->add_control( 'swiftpress_copyright_setting', array( 'settings' => 'swiftpress_copyright_setting', 'label' => __( 'Wite Copyright Text', 'swiftpress' ), 'section' => 'swiftpress_layout_options', 'type' => 'text', 'priority' => 20 ) ); $wp_customize->add_setting( 'swiftpress_developed_setting', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'swiftpress_theme_sanitize_text', 'default' => __('Developed By:','swiftpress'), ) ); $wp_customize->add_control( 'swiftpress_developed_setting', array( 'settings' => 'swiftpress_developed_setting', 'label' => __( 'Developed By Text', 'swiftpress' ), 'section' => 'swiftpress_layout_options', 'type' => 'text', 'priority' => 20 ) ); $wp_customize->add_setting( 'swiftpress_developedname_setting', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'swiftpress_theme_sanitize_text', 'default' => __('Your Company','swiftpress'), ) ); $wp_customize->add_control( 'swiftpress_developedname_setting', array( 'settings' => 'swiftpress_developedname_setting', 'label' => __( 'Company Name', 'swiftpress' ), 'section' => 'swiftpress_layout_options', 'type' => 'text', 'priority' => 20 ) ); $wp_customize->add_setting( 'swiftpress_developedlink_setting', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'swiftpress_theme_sanitize_text', 'default' => __('#','swiftpress'), ) ); $wp_customize->add_control( 'swiftpress_developedlink_setting', array( 'settings' => 'swiftpress_developedlink_setting', 'label' => __( 'Company Link', 'swiftpress' ), 'section' => 'swiftpress_layout_options', 'type' => 'text', 'priority' => 20 ) );