' . __( 'Direct script access denied.', 'articled') . '' );
}
$articled->add_section( 'articled_single_post', array(
'title' => __( 'Single Post', 'articled'),
'panel' => 'articled_blog_panel',
'capibility' => 'edit_theme_options',
'priority' => 10,
)
);
$articled->add_setting( 'articled_single_post_sibebar', array(
'default' => 'show-right',
'transport' => 'refresh',
'sanitize_callback' => 'esc_attr'
) );
$articled->add_control( new WP_Customize_Control($articled,
'articled_single_post_sibebar_control', array(
'label' => __( 'Sidebar', 'articled' ),
'settings' => 'articled_single_post_sibebar',
'section' => 'articled_single_post',
'priority' => 1,
'type' => 'select',
'choices' => array(
'show-right' => __('Show Right', 'articled'),
'show-left' => __('Show Left', 'articled'),
'hidden' => __('No Sidebar', 'articled'),
),)
) );
$articled->add_setting('articled_single_content_arrenged_item', array(
'default' => 'content,share_icon,tags,author_details',
'transport' => 'refresh',
'sanitize_callback' => 'articled_sortable_sc'
)
);
$articled->add_control(new articled_sortable($articled, 'articled_single_content_arrenged_item_control',
array(
'label' => __( 'Rearrenge Post Content.', 'articled' ),
'description' => __( 'rearrange order of post all content.', 'articled' ),
'section' => 'articled_single_post',
'settings' => 'articled_single_content_arrenged_item',
'priority' => 1,
'choices' => array(
'content' => __('Content', 'articled' ),
'share_icon' => __('Share Icons', 'articled' ),
'tags' => __('Tags', 'articled' ),
'author_details' => __('Author Details', 'articled' ),
),
)
)
);
$articled->add_setting( 'articled_single_cussideb',
array(
'default' => false,
'transport' => 'refresh',
'sanitize_callback' => 'articled_toggle_sanitize'
));
$articled->add_control( new articled_onoff($articled, 'articled_single_cussideb',
array ( 'label' => __( 'Display Custom Sidebar', 'articled' ),
'description' => __( 'The another sidebar widget will appear in you admin menu. Then, You can customize sibe fot onl for single post', 'articled' ),
'section' => 'articled_single_post',
'priority' => 1,
'type'=> 'flat',
)
));
$articled->add_setting( 'articled_single_thubmnail',
array(
'default' => true,
'transport' => 'postMessage',
'sanitize_callback' => 'articled_toggle_sanitize'
));
$articled->add_control( new articled_onoff($articled, 'articled_single_thubmnail',
array ( 'label' => __( 'Display Post Thumbnail', 'articled' ),
'section' => 'articled_single_post',
'priority' => 5,
'type'=> 'flat',
)
));
$articled->add_setting( 'articled_signle_title_heading',
array('default' => '#',
'transport' => 'postMessage',
));
$articled->add_control( new articled_custom_heading( $articled, 'articled_signle_title_heading',
array(
'label' => __( 'Title', 'articled' ),
'section' => 'articled_single_post',
'priority' => 6,
)
)
);
$articled->add_setting( 'articled_signle_meta_heading',
array('default' => '#',
'transport' => 'postMessage',
));
$articled->add_control( new articled_custom_heading( $articled, 'articled_signle_meta_heading',
array(
'label' => __( 'Meta', 'articled' ),
'section' => 'articled_single_post',
'priority' => 7,
)
)
);
$articled->add_setting( 'articled_social_heading',
array('default' => '#',
'transport' => 'postMessage',
));
$articled->add_control( new articled_custom_heading( $articled, 'articled_social_heading',
array(
'label' => __( 'Social Icon', 'articled' ),
'section' => 'articled_single_post',
'priority' => 20,
)
)
);
$articled->add_setting( 'articled_single_social_icons',
array(
'default' => true,
'transport' => 'refresh',
'sanitize_callback' => 'articled_toggle_sanitize'
));
$articled->add_control( new articled_onoff($articled, 'articled_single_social_icons',
array ( 'label' => __( 'Display Social Share Icons', 'articled' ),
'section' => 'articled_single_post',
'priority' => 30,
'type'=> 'flat',
)
));
$articled->add_setting( 'articled_single_icon_type', array(
'default' => 'icon',
'transport' => 'refresh',
'sanitize_callback' => 'esc_attr'
) );
$articled->add_control( new WP_Customize_Control($articled, 'articled_single_icon_type_control',
array(
'label' => __( 'Social Icon Style', 'articled' ),
'settings' => 'articled_single_icon_type',
'section' => 'articled_single_post',
'priority' => 31,
'type' => 'select',
'choices' => array(
'none' => __( 'None', 'articled' ),
'icon' => __( 'Share Icon', 'articled' ),
'text' => __( 'Text', 'articled' ),
), )
) );
$articled->add_setting( 'articled_single_icon_style', array(
'default' => 'scrb-ti-minimal scrb-ti-round',
'transport' => 'refresh',
'sanitize_callback' => 'esc_attr'
) );
$articled->add_control( new WP_Customize_Control($articled, 'articled_single_icon_style_control',
array(
'label' => __( 'Social Icon Style', 'articled' ),
'settings' => 'articled_single_icon_style',
'section' => 'articled_single_post',
'priority' => 31,
'type' => 'select',
'choices' => array(
'scrb-ti-minimal' => __( 'Minimal', 'articled' ),
'scrb-ti-minimal scrb-ti-rounded' => __( 'Minimal Rounded', 'articled' ),
'scrb-ti-minimal scrb-ti-round' => __( 'Minimal Round - ( Default )', 'articled' ),
// 'scrb-ti-3d' => '3D',
// 'scrb-ti-3d-color' => '3D Color',
'scrb-ti-flat' => __( 'Flat', 'articled' ),
'scrb-ti-flat scrb-ti-rounded' => __( 'Flat Rounded', 'articled' ),
'scrb-ti-flat scrb-ti-round' => __( 'Flat Round', 'articled' ),
'scrb-ti-color' => __( 'Color', 'articled' ),
'scrb-ti-color scrb-ti-rounded' => __( 'Color Rounded', 'articled' ),
'scrb-ti-color scrb-ti-round' => __( 'Color Round', 'articled' ),
), )
) );
////
$articled->add_setting( 'articled_tag_heading',
array('default' => '#',
'transport' => 'postMessage',
));
$articled->add_control( new articled_custom_heading( $articled, 'articled_tag_heading',
array(
'label' => __( 'Tags', 'articled' ),
'section' => 'articled_single_post',
'priority' => 41,
)
)
);
$articled->add_setting( 'articled_single_tag',
array(
'default' => true,
'transport' => 'refresh',
'sanitize_callback' => 'articled_toggle_sanitize'
));
$articled->add_control( new articled_onoff($articled, 'articled_single_tag',
array ( 'label' => __( 'Display Tags', 'articled' ),
'description' => __( 'Display Tags', 'articled' ),
'section' => 'articled_single_post',
'priority' => 42,
'type'=> 'flat',
)
));
$articled->add_setting( 'articled_single_tag_size',
array(
'default' => '14px',
'transport' => 'postMessage',
'sanitize_callback' => 'esc_attr'
));
$articled->add_control('articled_single_tag_size_control', array(
'label' => __( 'Tag Font Size', 'articled' ),
'section' => 'articled_single_post',
'settings' => 'articled_single_tag_size',
'priority' => 43,
'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_single_tag_padding',
array('default' => '5px',
'transport' => 'postMessage',
'sanitize_callback' => 'sanitize_text_field'
));
$articled->add_control(
'articled_single_tag_padding_control', array(
'label' => __( 'Tags Padding ', 'articled' ),
'description' => __( 'Clock wise : Top right Bottum Left
e.g 50px 0 50px 0', 'articled'),
'section' => 'articled_single_post',
'settings' => 'articled_single_tag_padding',
'type' => 'text',
'priority' => 44,
));
$articled->add_setting( 'articled_single_tag_margin',
array('default' => '2px',
'transport' => 'postMessage',
'sanitize_callback' => 'sanitize_text_field'
));
$articled->add_control(
'articled_single_tag_margin_control', array(
'label' => __( 'Distance Between Tags', 'articled' ),
'description' => __( 'Clock wise : Top right Bottum Left
e.g 50px 0 50px 0', 'articled'),
'section' => 'articled_single_post',
'settings' => 'articled_single_tag_margin',
'type' => 'text',
'priority' => 44,
));
////
$articled->add_setting( 'articled_bottom_arrenge_heading',
array('default' => '#',
'transport' => 'postMessage',
));
$articled->add_control( new articled_custom_heading( $articled, 'articled_bottom_arrenge_heading',
array(
'label' => __( 'Arrenging Orders', 'articled' ),
'section' => 'articled_single_post',
'priority' => 50,
)
)
);
$articled->add_setting('articled_single_bottom_arrenged_item', array(
'default' => 'related_post,comments,post_nav',
'transport' => 'postMessage',
'sanitize_callback' => 'articled_sortable_sc'
)
);
$articled->add_control(new articled_sortable($articled, 'articled_single_bottom_arrenged_item_control',
array(
'label' => __( 'Rearrenge Related Posts, Comments and Post Nav.', 'articled' ),
'section' => 'articled_single_post',
'settings' => 'articled_single_bottom_arrenged_item',
'priority' => 50,
'choices' => array(
'related_post' => __( 'Related Post', 'articled' ),
'comments' => __( 'Comments', 'articled' ),
'post_nav' => __( 'Post Navigation', 'articled' ),
),
)
)
);
////
$articled->add_setting( 'articled_related_heading',
array('default' => '#',
'transport' => 'postMessage',
));
$articled->add_control( new articled_custom_heading( $articled, 'articled_related_heading',
array(
'label' => __( 'Related Post', 'articled' ),
'section' => 'articled_single_post',
'priority' => 50,
)
)
);
$articled->add_setting( 'articled_single_related',
array(
'default' => true,
'transport' => 'refresh',
'sanitize_callback' => 'articled_toggle_sanitize'
));
$articled->add_control( new articled_onoff($articled, 'articled_single_related',
array ( 'label' => __( 'Display Releted Post', 'articled' ),
'description' => __( 'Display Tags', 'articled' ),
'section' => 'articled_single_post',
'priority' => 52,
'type'=> 'flat',
)
));
$articled->add_setting( 'articled_relateds_title',
array('default' => '#',
'transport' => 'postMessage',
));
$articled->add_control( new articled_custom_heading( $articled, 'articled_relateds_title',
array(
'label' => __( 'Related Screen Text', 'articled' ),
'section' => 'articled_single_post',
'priority' => 53,
)
)
);
$articled->add_setting( 'articled_single_related_text',
array('default' => __( 'You May Also Like it.', 'articled' ),
'transport' => 'postMessage',
'sanitize_callback' => 'sanitize_text_field'
));
$articled->add_control(
'articled_single_related_text_control', array(
'label' => __( 'Related Post Title', 'articled' ),
'section' => 'articled_single_post',
'settings' => 'articled_single_related_text',
'type' => 'text',
'priority' => 53,
));
$articled->add_setting( 'articled_single_related_count',
array(
'default' => '14px',
'transport' => 'postMessage',
'sanitize_callback' => 'esc_attr'
));
$articled->add_control('articled_single_related_count_control', array(
'label' => __( 'How many to be display.', 'articled' ),
'section' => 'articled_single_post',
'settings' => 'articled_single_related_count',
'priority' => 52,
'type' => 'select',
'choices' => array(
'3' => '3',
'6' => '6',
'9' => '9',
'12' => '12',
'15' => '15',
)
));
?>