' . __( 'Direct script access denied.', 'articled') . '' ); } $articled->add_section( 'articled_left_topbar', array( 'title' => __( 'Left Bar', 'articled'), 'panel' => 'articled_topbar_panel', 'capibility' => 'edit_theme_options', 'priority' => 10, ) ); $articled->add_setting( 'articled_topbar_left_text', array('default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $articled->add_control( 'articled_topbar_left_text_control', array( 'label' => __( 'Left Text', 'articled' ), 'description' => __( 'If, You write some text. It will be overwrite on Menus. ', 'articled'), 'section' => 'articled_left_topbar', 'settings' => 'articled_topbar_left_text', 'type' => 'textarea', 'priority' => 5, )); $articled->add_setting( 'articled_topbar_left_font_size', array('default' => '14px', 'transport' => 'postMessage', 'sanitize_callback' => 'esc_attr' )); $articled->add_control( 'articled_topbar_left_font_size_control', array( 'label' => __( 'Font Size', 'articled' ), 'section' => 'articled_left_topbar', 'settings' => 'articled_topbar_left_font_size', 'priority' => 11, 'type' => 'select', 'choices' => array( '12px' => '12px', '13px' => '13px', '14px' => '14px', '15px' => '15px', '16px' => '16px', '17px' => '17px', '18px' => '18px', '19px' => '19px', '20px' => '20px', ) )); $articled->add_setting( 'articled_topbar_left_font_family', array('default' => '', 'transport' => 'refresh', )); $articled->add_control( new articled_google_font( $articled, 'articled_topbar_left_font_family_control', array( 'type' => 'family', 'label' => __( 'Font Family ', 'articled' ), 'section' => 'articled_left_topbar', 'settings' => 'articled_topbar_left_font_family', 'priority' => 11, 'attr' => array( 'placeholder' => __( 'Select Google Font', 'articled' ), 'tabindex' => 5 ) ) )); $articled->add_setting( 'articled_topbar_left_font_variets', array('default' => '', 'transport' => 'refresh', )); $articled->add_control( new articled_google_font( $articled, 'articled_topbar_left_font_variets_control', array( 'type' => 'variants', 'label' => __( 'Font Weight and Variants ', 'articled' ), 'section' => 'articled_left_topbar', 'settings' => 'articled_topbar_left_font_variets', 'priority' => 11, 'attr' => array( 'placeholder' => __( 'Select Font Variants', 'articled' ), 'tabindex' => 5 ) ) )); $articled->add_setting( 'articled_topbar_left_font_color', array('default' => '#000', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_hex_color', )); $articled->add_control( new WP_Customize_Color_Control( $articled, 'articled_topbar_left_font_color_control', array( 'label' => __( 'Text Color ', 'articled' ), 'section' => 'articled_left_topbar', 'settings' => 'articled_topbar_left_font_color', 'priority' => 12, ) )); ?>