<?php
/**
 * The Display options Meta-box configurations.
 *
 * @package Smart_Post_Show_Pro
 * @subpackage admin
 */

if ( ! defined( 'ABSPATH' ) ) {
	die;
} // Cannot access pages directly.

/**
 * The Layout building class.
 */
class SPSP_Display {

	/**
	 * Display options section metabox.
	 *
	 * @param string $prefix The metabox key.
	 * @return void
	 */
	public static function section( $prefix ) {
		SP_PCP::createSection(
			$prefix,
			array(
				'title'  => __( 'DISPLAY Settings', 'smart-post-show-pro' ),
				'icon'   => 'sps-icon-display-s',
				'fields' => array(
					array(
						'type'  => 'tabbed',
						'class' => 'pcp-display-tabs',
						'tabs'  => array(
							array(
								'title'  => __( 'Basic Styles', 'smart-post-show-pro' ),
								'icon'   => '<i class="sps-icon-basic-style-01-1" aria-hidden="true"></i>',
								'fields' => array(
									array(
										'id'         => 'section_title',
										'type'       => 'switcher',
										'title'      => __( 'Section Title ', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Show/Hide item showcase section title.', 'smart-post-show-pro' ),
										'default'    => false,
										'text_on'    => __( 'Show', 'smart-post-show-pro' ),
										'text_off'   => __( 'Hide', 'smart-post-show-pro' ),
										'text_width' => 80,
									),
									array(
										'id'         => 'pcp_number_of_columns',
										'type'       => 'column',
										'title'      => __( 'Column(s)', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Set number of column(s) in different responsive devices.', 'smart-post-show-pro' ),
										'default'    => array(
											'lg_desktop' => '4',
											'desktop'    => '4',
											'tablet'     => '3',
											'mobile_landscape' => '2',
											'mobile'     => '1',
										),
										'min'        => '1',
										'decimal'    => true,
										'dependency' => array( 'pcp_layout_preset', 'any', 'carousel_layout,thumbnails_slider,grid_layout,masonry_layout,glossary_layout,filter_layout,large_with_small', true ),
										'title_info' => '<i class="fa fa-television"></i> <b> Large Desktop </b> - is larger than 1200px,<br><i class="fa fa-desktop"></i> <b>Desktop</b> - size is larger than 992px,<br> <i class="fa fa-tablet"></i> <b>Tablet</b> - Size is larger than 768,<br> <i class="fa fa-mobile"></i> <b> Mobile Landscape </b> - size is larger than 576px.,<br> <i class="fa fa-mobile"></i> <b> Mobile </b> - size is smaller than 576px.',
									),
									array(
										'id'              => 'margin_between_post',
										'type'            => 'spacing',
										'title'           => __( 'Space', 'smart-post-show-pro' ),
										'subtitle'        => __( 'Set space or gap between items.', 'smart-post-show-pro' ),
										'gap_between'     => true,
										'all_icon'        => '<i class="fa fa-arrows-h"></i>',
										'units'           => array(
											'px',
										),
										'all_placeholder' => '',
										'default'         => array(
											'top-bottom' => 20,
											'left-right' => 20,
										),
										// 'title_info'      => '<div class="spf-img-tag"><img src="' . SP_PCP_URL . '/admin/img/visual-info/space.svg" alt="space"></div><div class="spf-info-label img">' . __( 'Space', 'smart-post-show-pro' ) . '</div>',
										'dependency'      => array( 'pcp_layout_preset', 'not-any', 'table_layout,slider_layout', true ),
									),
									array(
										'id'         => 'post_content_orientation',
										'class'      => 'img_custom_width',
										'type'       => 'layout_preset',
										'title'      => __( 'Content Orientation ', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Set a position for the item content.', 'smart-post-show-pro' ),
										'options'    => array(
											'default'     => array(
												'image' => SP_PCP_URL . 'admin/img/content-orientation/bottom.svg',
												'text'  => __( 'Bottom', 'smart-post-show-pro' ),
											),
											'left-thumb'  => array(
												'image' => SP_PCP_URL . 'admin/img/content-orientation/left.svg',
												'text'  => __( 'Left', 'smart-post-show-pro' ),
											),
											'right-thumb' => array(
												'image' => SP_PCP_URL . 'admin/img/content-orientation/right.svg',
												'text'  => __( 'Right', 'smart-post-show-pro' ),
											),
											'card'        => array(
												'image' => SP_PCP_URL . 'admin/img/content-orientation/card.svg',
												'text'  => __( 'Card', 'smart-post-show-pro' ),
											),
											'overlay'     => array(
												'image' => SP_PCP_URL . 'admin/img/content-orientation/overlay.svg',
												'text'  => __( 'Overlay', 'smart-post-show-pro' ),
											),
											'overlay-box' => array(
												'image' => SP_PCP_URL . 'admin/img/content-orientation/overlay_box.svg',
												'text'  => __( 'Overlay Box', 'smart-post-show-pro' ),
											),
										),
										'default'    => 'default',
										'dependency' => array( 'pcp_layout_preset', 'any', 'carousel_layout,grid_layout,masonry_layout,filter_layout,large_with_small,glossary_layout', true ),
									),
									array(
										'id'         => 'overlay_content_position',
										'type'       => 'layout_preset',
										'class'      => 'hide-active-sign',
										'title'      => __( 'Content Position', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Select a position for the overlay content.', 'smart-post-show-pro' ),
										'options'    => array(
											'middle' => array(
												'image' => SP_PCP_URL . 'admin/img/overlay-content-position/middle.svg',
												'text'  => __( 'Middle', 'smart-post-show-pro' ),
											),
											'top'    => array(
												'image' => SP_PCP_URL . 'admin/img/overlay-content-position/top.svg',
												'text'  => __( 'Top', 'smart-post-show-pro' ),
											),
											'bottom' => array(
												'image' => SP_PCP_URL . 'admin/img/overlay-content-position/bottom.svg',
												'text'  => __( 'Bottom', 'smart-post-show-pro' ),
											),
										),
										'default'    => 'middle',
										'dependency' => array( 'pcp_layout_preset|post_content_orientation', 'any|==', 'carousel_layout,grid_layout,masonry_layout,filter_layout,large_with_small,glossary_layout|overlay', true ),
									),
									array(
										'id'         => 'thumbnails_slider_content_position',
										'type'       => 'layout_preset',
										'class'      => 'thumbnails_slider_content_position hide-active-sign',
										'title'      => __( 'Content Position', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Select a position for the overlay content.', 'smart-post-show-pro' ),
										'options'    => array(
											'middle'    => array(
												'image' => SP_PCP_URL . 'admin/img/overlay-content-position/middle.svg',
												'text'  => __( 'Middle', 'smart-post-show-pro' ),
											),
											'top'       => array(
												'image' => SP_PCP_URL . 'admin/img/overlay-content-position/top.svg',
												'text'  => __( 'Top', 'smart-post-show-pro' ),
											),
											'bottom'    => array(
												'image' => SP_PCP_URL . 'admin/img/overlay-content-position/bottom.svg',
												'text'  => __( 'Bottom', 'smart-post-show-pro' ),
											),
											'in_middle' => array(
												'image' => SP_PCP_URL . 'admin/img/overlay-box-content-position/inner_middle.svg',
												'text'  => __( 'Middle Box', 'smart-post-show-pro' ),
											),
										),
										'default'    => 'middle',
										'dependency' => array( 'pcp_layout_preset', 'any', 'thumbnails_slider,slider_layout', true ),
									),
									array(
										'id'         => 'box_content_position',
										'type'       => 'layout_preset',
										'class'      => 'hide-active-sign',
										'title'      => __( 'Content Box Position', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Select a position for the overlay content box.', 'smart-post-show-pro' ),
										'options'    => array(
											'in_middle'    => array(
												'image' => SP_PCP_URL . 'admin/img/overlay-box-content-position/inner_middle.svg',
												'text'  => __( 'Inner Middle', 'smart-post-show-pro' ),
											),
											'in_top'       => array(
												'image' => SP_PCP_URL . 'admin/img/overlay-box-content-position/inner_top.svg',
												'text'  => __( 'Inner Top', 'smart-post-show-pro' ),
											),
											'in_bottom'    => array(
												'image' => SP_PCP_URL . 'admin/img/overlay-box-content-position/inner_bottom.svg',
												'text'  => __( 'Inner Bottom', 'smart-post-show-pro' ),
											),
											'outer_top'    => array(
												'image' => SP_PCP_URL . 'admin/img/overlay-box-content-position/outer_top.svg',
												'text'  => __( 'Outer Top', 'smart-post-show-pro' ),
											),
											'outer_bottom' => array(
												'image' => SP_PCP_URL . 'admin/img/overlay-box-content-position/outer_bottom.svg',
												'text'  => __( 'Outer Bottom', 'smart-post-show-pro' ),
											),
											'outer_left'   => array(
												'image' => SP_PCP_URL . 'admin/img/overlay-box-content-position/outer_left.svg',
												'text'  => __( 'Outer Left', 'smart-post-show-pro' ),
											),
											'outer_right'  => array(
												'image' => SP_PCP_URL . 'admin/img/overlay-box-content-position/outer_right.svg',
												'text'  => __( 'Outer Right', 'smart-post-show-pro' ),
											),
										),
										'default'    => 'in_middle',
										'dependency' => array( 'pcp_layout_preset|post_content_orientation', 'any|==', 'carousel_layout,grid_layout,masonry_layout,filter_layout,glossary_layout,large_with_small|overlay-box', true ),
									),
									array(
										'id'         => 'pcp_content_box_width',
										'type'       => 'slider',
										'title'      => __( 'Content Box Width', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Set custom width for the content box.', 'smart-post-show-pro' ),
										'sanitize'   => 'pcp_sanitize_number_field',
										'default'    => 80,
										'min'        => 10,
										'max'        => 100,
										'step'       => 10,
										'unit'       => '%',
										'class'      => 'carousel_auto_play_ranger',
										'dependency' => array( 'pcp_layout_preset|post_content_orientation', 'any|==', 'carousel_layout,thumbnails_slider,slider_layout,grid_layout,masonry_layout,filter_layout,glossary_layout,large_with_small|overlay-box', true ),
									),
									array(
										'id'         => 'post_overlay_content_visibility',
										'type'       => 'button_set',
										'inline'     => true,
										'title'      => __( 'Content Visibility', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Choose a visibility type for overlay content.', 'smart-post-show-pro' ),
										'options'    => array(
											'always'   => __( 'Always', 'smart-post-show-pro' ),
											'on_hover' => __( 'On Hover', 'smart-post-show-pro' ),
										),
										'default'    => 'always',
										'dependency' => array( 'pcp_layout_preset|post_content_orientation', 'any|any', 'carousel_layout,grid_layout,masonry_layout,filter_layout,glossary_layout,large_with_small,thumbnails_slider,slider_layout|overlay-box,overlay', true ),
									),
									array(
										'id'         => 'post_animation',
										'type'       => 'select',
										'title'      => __( 'Hover Animation', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Select an animation type for the overlay content on hover.', 'smart-post-show-pro' ),
										'options'    => array(
											'none'         => __( 'None', 'smart-post-show-pro' ),
											'fadeIn'       => __( 'fadeIn', 'smart-post-show-pro' ),
											'fadeInDown'   => __( 'fadeInDown', 'smart-post-show-pro' ),
											'fadeInRight'  => __( 'fadeInRight', 'smart-post-show-pro' ),
											'fadeInLeft'   => __( 'fadeInLeft', 'smart-post-show-pro' ),
											'fadeInUp'     => __( 'fadeInUp', 'smart-post-show-pro' ),
											'flipInX'      => __( 'flipInX', 'smart-post-show-pro' ),
											'flipInY'      => __( 'flipInY', 'smart-post-show-pro' ),
											'slideInUp'    => __( 'slideInUp', 'smart-post-show-pro' ),
											'slideInDown'  => __( 'slideInDown', 'smart-post-show-pro' ),
											'zoomIn'       => __( 'zoomIn', 'smart-post-show-pro' ),
											'zoomInDown'   => __( 'zoomInDown', 'smart-post-show-pro' ),
											'jackInTheBox' => __( 'jackInTheBox', 'smart-post-show-pro' ),
											'rollIn'       => __( 'rollIn', 'smart-post-show-pro' ),
										),
										'default'    => 'none',
										'dependency' => array( 'pcp_layout_preset|post_content_orientation|post_overlay_content_visibility', 'any|any|==', 'carousel_layout,grid_layout,masonry_layout,filter_layout,glossary_layout,large_with_small,thumbnails_slider,slider_layout|overlay,overlay-box|on_hover' ),
									),
									array(
										'id'         => 'post_overlay_background_type',
										'type'       => 'button_set',
										'title'      => __( 'Overlay Color Type', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Choose an overlay color type.', 'smart-post-show-pro' ),
										'options'    => array(
											'solid'    => __( 'Solid', 'smart-post-show-pro' ),
											'gradient' => __( 'Gradient', 'smart-post-show-pro' ),
										),
										'default'    => array( 'solid' ),
										'dependency' => array( 'pcp_layout_preset|post_content_orientation', 'any|any', 'carousel_layout,grid_layout,masonry_layout,filter_layout,glossary_layout,large_with_small,thumbnails_slider,slider_layout|overlay-box,overlay', true ),
									),
									array(
										'id'         => 'post_overlay_background',
										'type'       => 'color',
										'title'      => __( 'Solid Color', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Set color for the overlay.', 'smart-post-show-pro' ),
										'default'    => 'rgba(0,0,0,0.5)',
										'dependency' => array( 'post_overlay_background_type|pcp_layout_preset|post_content_orientation', '==|any|any', 'solid|carousel_layout,grid_layout,masonry_layout,filter_layout,glossary_layout,large_with_small,thumbnails_slider,slider_layout|overlay-box,overlay', true ),
									),
									array(
										'id'               => 'post_overlay_gradient_background',
										'type'             => 'background_adv',
										'title'            => __( 'Gradient Color', 'smart-post-show-pro' ),
										'subtitle'         => __( 'Set gradient color for the overlay.', 'smart-post-show-pro' ),
										'background_gradient' => true,
										'background_color' => true,
										'background_image' => false,
										'background_position' => false,
										'background_repeat' => false,
										'background_attachment' => false,
										'background_size'  => false,
										'default'          => array(
											'background-color' => 'rgba(40,149,226,0.5)',
											'background-gradient-color' => 'rgba(255,15,231,0.5)',
											'background-gradient-direction' => '135deg',
										),
										'dependency'       => array( 'post_overlay_background_type|pcp_layout_preset|post_content_orientation', '==|any|any', 'gradient|carousel_layout,grid_layout,filter_layout,glossary_layout,large_with_small,thumbnails_slider,slider_layout|overlay-box,overlay', true ),
									),

									array(
										'id'            => 'post_border',
										'type'          => 'border',
										'title'         => __( 'Border', 'smart-post-show-pro' ),
										'subtitle'      => __( 'Set border for the item.', 'smart-post-show-pro' ),
										'all'           => true,
										'border_radius' => true,
										'show_units'    => true,
										'units'         => array( 'px', '%' ),
										'default'       => array(
											'all'   => '0',
											'style' => 'solid',
											'color' => '#e2e2e2',
											'border_radius' => '0',
											'unit'  => 'px',
										),
									),
									array(
										'id'       => 'show_post_box_shadow',
										'type'     => 'button_set',
										'title'    => __( 'Box-Shadow', 'smart-post-show-pro' ),
										'subtitle' => __( 'Show box-shadow for the item.', 'smart-post-show-pro' ),
										'options'  => array(
											'none'   => __( 'None', 'smart-post-show-pro' ),
											'outset' => __( 'Outset', 'smart-post-show-pro' ),
											'inset'  => __( 'Inset', 'smart-post-show-pro' ),
										),
										'default'  => 'none',
									),
									array(
										'id'          => 'post_box_shadow_property',
										'type'        => 'box_shadow',
										'title'       => __( 'Box-Shadow Values', 'smart-post-show-pro' ),
										'subtitle'    => __( 'Set box-shadow property values for the item.', 'smart-post-show-pro' ),
										'style'       => false,
										'hover_color' => true,
										'default'     => array(
											'horizontal'  => '0',
											'vertical'    => '0',
											'blur'        => '8',
											'spread'      => '0',
											'color'       => 'rgb(187, 187, 187)',
											'hover_color' => 'rgb(187, 187, 187)',
										),
										'dependency'  => array( 'show_post_box_shadow', '!=', 'none' ),
									),
									array(
										'id'         => 'post_background_type',
										'type'       => 'button_set',
										'title'      => __( 'Background Color Type', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Choose an background color type.', 'smart-post-show-pro' ),
										'options'    => array(
											'solid'    => __( 'Solid', 'smart-post-show-pro' ),
											'gradient' => __( 'Gradient', 'smart-post-show-pro' ),
										),
										'default'    => array( 'solid' ),
										'dependency' => array( 'post_content_orientation', 'not-any', 'overlay,overlay-box' ),
									),
									array(
										'id'         => 'post_background_property',
										'type'       => 'color',
										'title'      => __( 'Background', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Set background color for the item.', 'smart-post-show-pro' ),
										'default'    => 'transparent',
										'dependency' => array( 'post_content_orientation|post_background_type', 'not-any|==', 'overlay,overlay-box|solid' ),
									),
									array(
										'id'               => 'post_gradient_background',
										'type'             => 'background_adv',
										'title'            => __( 'Background', 'smart-post-show-pro' ),
										'subtitle'         => __( 'Set gradient color for the item.', 'smart-post-show-pro' ),
										'background_gradient' => true,
										'background_color' => true,
										'background_image' => false,
										'background_position' => false,
										'background_repeat' => false,
										'background_attachment' => false,
										'background_size'  => false,
										'default'          => array(
											'background-color' => 'rgba(40,149,226,0.5)',
											'background-gradient-color' => 'rgba(255,15,231,0.5)',
											'background-gradient-direction' => '135deg',
										),
										'dependency'       => array( 'post_content_orientation|post_background_type', 'not-any|==', 'overlay,overlay-box|gradient' ),
									),
									array(
										'id'         => 'post_inner_padding_property',
										'type'       => 'spacing',
										'title'      => __( 'Inner Padding', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Set inner padding for item.', 'smart-post-show-pro' ),
										'sanitize'   => 'pcp_sanitize_number_array_field',
										'default'    => array(
											'top'    => '0',
											'right'  => '0',
											'bottom' => '0',
											'left'   => '0',
										),
										'dependency' => array( 'pcp_layout_preset', '!=', 'table_layout', true ),
									),
									array(
										'id'         => 'post_content_padding_property',
										'type'       => 'spacing',
										'title'      => __( 'Content Padding', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Set padding for the item content except thumbnail.', 'smart-post-show-pro' ),
										'sanitize'   => 'pcp_sanitize_number_array_field',
										'default'    => array(
											'top'    => '0',
											'right'  => '0',
											'bottom' => '0',
											'left'   => '0',
										),
										'dependency' => array( 'pcp_layout_preset', 'any', 'zigzag_layout,list_layout', true ),
									),
									array(
										'id'         => 'post_content_padding_property_two',
										'type'       => 'spacing',
										'title'      => __( 'Content Padding', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Set padding for the item content except thumbnail.', 'smart-post-show-pro' ),
										'sanitize'   => 'pcp_sanitize_number_array_field',
										'default'    => array(
											'top'    => '0',
											'right'  => '0',
											'bottom' => '0',
											'left'   => '0',
										),
										'dependency' => array( 'pcp_layout_preset|post_content_orientation', 'not-any|any', 'zigzag_layout,list_layout,timeline_layout,accordion_layout|left-thumb,right-thumb,overlay,card,overlay-box', true ),
									),
									array(
										'id'         => 'item_same_height',
										'type'       => 'switcher',
										'title'      => __( 'Enable Equal Height', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Enable to equalize all items height as the tallest one.', 'smart-post-show-pro' ),
										'text_on'    => __( 'Enabled', 'smart-post-show-pro' ),
										'text_off'   => __( 'Disabled', 'smart-post-show-pro' ),
										'default'    => false,
										'text_width' => 100,
										'dependency' => array( 'pcp_layout_preset|pcp_grid_style', 'any|!=', 'carousel_layout,grid_layout,filter_layout,large_with_small|masonry', true ),
									),
									array(
										'id'         => 'show_preloader',
										'type'       => 'switcher',
										'title'      => __( 'Preloader', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Items will be hidden until page load completed.', 'smart-post-show-pro' ),
										'text_on'    => __( 'Enabled', 'smart-post-show-pro' ),
										'text_off'   => __( 'Disabled', 'smart-post-show-pro' ),
										'text_width' => 100,
										'default'    => false,
									),
								),
							),
							array(
								'title'  => __( 'Content Fields', 'smart-post-show-pro' ),
								'icon'   => '<i class="sps-icon-content-1" aria-hidden="true"></i>',
								'fields' => array(
									array(
										'id'       => 'post_content_sorter',
										'type'     => 'sortable',
										'title'    => __( 'Content Fields', 'smart-post-show-pro' ),
										'subtitle' => __( 'Item content fields which are draggable to change display order and it\'s settings.', 'smart-post-show-pro' ),
										'class'    => 'post_content_sorter',
										'fields'   => array(
											array(
												'id'   => 'pcp_post_thumb',
												'type' => 'accordion',
												'accordions' => array(
													array(
														'title'  => __( 'Image', 'smart-post-show-pro' ),
														'fields' => array(
															array(
																'id'   => 'post_thumb_show',
																'type' => 'switcher',
																'title' => __( 'Featured Image', 'smart-post-show-pro' ),
																'text_on' => __( 'Show', 'smart-post-show-pro' ),
																'text_off' => __( 'Hide', 'smart-post-show-pro' ),
																'default' => true,
																'text_width' => 80,
															),
															array(
																'id'   => 'pcp_thumb_sizes',
																'type' => 'image_sizes',
																'title' => __( 'Size', 'smart-post-show-pro' ),
																'default' => 'full',
																'dependency' => array( 'post_thumb_show', '==', 'true' ),
															),
															array(
																'id'   => 'pcp_image_crop_size',
																'type' => 'dimensions_advanced',
																'title' => __( 'Custom Size', 'smart-post-show-pro' ),
																'chosen' => true,
																'bottom' => false,
																'left' => false,
																'color' => false,
																'top_icon' => '<i class="fa fa-arrows-h"></i>',
																'right_icon' => '<i class="fa fa-arrows-v"></i>',
																'top_placeholder' => 'width',
																'right_placeholder' => 'height',
																'styles' => array(
																	'Soft-crop',
																	'Hard-crop',
																),
																'default' => array(
																	'top'  => '600',
																	'right' => '400',
																	'style' => 'Soft-crop',
																	'unit' => 'px',
																),
																'attributes' => array(
																	'min' => 0,
																),
																'dependency' => array( 'post_thumb_show|pcp_thumb_sizes', '==|==', 'true|custom' ),
															),
															array(
																'id'   => 'load_2x_image',
																'type' => 'switcher',
																'title' => __( 'Load 2x Resolution Image in Retina Display', 'smart-post-show-pro' ),
																'text_on' => __( 'Enabled', 'smart-post-show-pro' ),
																'text_off' => __( 'Disabled', 'smart-post-show-pro' ),
																'text_width' => 100,
																'default' => false,
																'dependency' => array( 'post_thumb_show|pcp_thumb_sizes', '==|==', 'true|custom' ),
															),
															array(
																'id'   => 'pcp_thumb_src_replace',
																'type' => 'checkbox',
																'title' => __( 'Replace With', 'smart-post-show-pro' ),
																'class' => 'custom_help_text',
																'title_help' => __( 'This option will replace your default/featured post image with first resource ( image/video/audio ) from the content.', 'smart-post-show-pro' ),
																'options' => array(
																	'image' => __( 'Image', 'smart-post-show-pro' ),
																	'video' => __( 'Video', 'smart-post-show-pro' ),
																	'audio' => __( 'Audio', 'smart-post-show-pro' ),
																),
																'dependency' => array( 'post_thumb_show', '==', 'true' ),
															),
															array(
																'id'   => 'post_featured_thumb_found',
																'type' => 'select',
																'title' => ' ',
																'options' => array(
																	'no_featured_img_found' => __( 'If no featured image found', 'smart-post-show-pro' ),
																	'even_featured_img_found' => __( 'Even featured image was found', 'smart-post-show-pro' ),
																),
																'default' => 'no_featured_img_found',
																'dependency' => array( 'post_thumb_show|pcp_thumb_src_replace', '==|any', 'true|image,video,audio' ),
															),

															array(
																'id' => 'pcp_thumb_border',
																'type' => 'border',
																'title' => __( 'Border', 'smart-post-show-pro' ),
																'all' => true,
																'border_radius' => true,
																'show_units' => true,
																'units'      => array( 'px', '%' ),
																'default' => array(
																	'all' => '0',
																	'style' => 'solid',
																	'color' => '#dddddd',
																	'border_radius' => '0',
																	'unit' => 'px',
																),
																'dependency' => array( 'post_thumb_show', '==', 'true', true ),
															),
															array(
																'id'   => 'post_thumb_zoom',
																'type' => 'select',
																'title' => __( 'Zoom Effect', 'smart-post-show-pro' ),
																'options' => array(
																	'none' => __( 'Normal', 'smart-post-show-pro' ),
																	'zoom_in' => __( 'Zoom In', 'smart-post-show-pro' ),
																	'zoom_out' => __( 'Zoom Out', 'smart-post-show-pro' ),
																),
																'default' => 'none',
																'dependency' => array( 'post_thumb_show', '==', 'true' ),
															),
															array(
																'id'   => 'post_thumb_gray_scale',
																'type' => 'select',
																'title' => __( 'Image Mode', 'smart-post-show-pro' ),
																'options' => array(
																	'none' => __( 'Original', 'smart-post-show-pro' ),
																	'gray_and_normal' => __( 'Grayscale and normal on hover', 'smart-post-show-pro' ),
																	'gray_on_hover' => __( 'Grayscale on hover', 'smart-post-show-pro' ),
																	'always_gray' => __( 'Always grayscale', 'smart-post-show-pro' ),
																),
																'default' => 'none',
																'dependency' => array( 'post_thumb_show', '==', 'true' ),
															),
															array(
																'id'   => 'pcp_img_lazy_load',
																'type' => 'switcher',
																'class' => 'custom_help_text',
																'title' => __( 'Lazy Load', 'smart-post-show-pro' ),
																'title_info' => __( 'Deferring the loading of images until they are needed significantly improves the page load time.', 'smart-post-show-pro' ),
																'default' => true,
																'text_on' => __( 'Enabled', 'smart-post-show-pro' ),
																'text_off' => __( 'Disabled', 'smart-post-show-pro' ),
																'text_width' => 100,
																'dependency' => array( 'post_thumb_show|pcp_layout_preset', '==|!=', 'true|carousel_layout', true ),
															),
															array(
																'id'   => 'post_thumb_margin',
																'type' => 'spacing',
																'title' => __( 'Margin', 'smart-post-show-pro' ),
																'sanitize' => 'pcp_sanitize_number_array_field',
																'units' => array( 'px' ),
																'min'  => -100,
																'default' => array(
																	'top'  => '0',
																	'right' => '0',
																	'bottom' => '11',
																	'left' => '0',
																),
																'dependency' => array( 'post_thumb_show', '==', 'true' ),
															),
														),
													),
												),
											),
											array(
												'id'   => 'pcp_post_title',
												'type' => 'accordion',
												'accordions' => array(
													array(
														'title'  => 'Title',
														'fields' => array(
															array(
																'id'   => 'show_post_title',
																'type' => 'switcher',
																'title' => __( 'Title', 'smart-post-show-pro' ),
																'text_on' => __( 'Show', 'smart-post-show-pro' ),
																'text_off' => __( 'Hide', 'smart-post-show-pro' ),
																'default' => true,
																'text_width' => 80,
															),
															array(
																'id'   => 'post_title_tag',
																'type' => 'select',
																'title' => __( 'HTML Tag for Title', 'smart-post-show-pro' ),
																'options' => array(
																	'h1'  => __( 'h1', 'smart-post-show-pro' ),
																	'h2'  => __( 'h2', 'smart-post-show-pro' ),
																	'h3'  => __( 'h3', 'smart-post-show-pro' ),
																	'h4'  => __( 'h4', 'smart-post-show-pro' ),
																	'h5'  => __( 'h5', 'smart-post-show-pro' ),
																	'h6'  => __( 'h6', 'smart-post-show-pro' ),
																	'p'   => __( 'p', 'smart-post-show-pro' ),
																	'div' => __( 'div', 'smart-post-show-pro' ),
																),
																'default' => 'h2',
																'class' => 'chosen',
																'dependency' => array( 'show_post_title', '==', 'true' ),
															),
															array(
																'id'   => 'post_title_limit',
																'type' => 'button_set',
																'title' => __( 'Title Display Type', 'smart-post-show-pro' ),
																'options' => array(
																	'full-title'  => __( 'Full', 'smart-post-show-pro' ),
																	'limit-title'  => __( 'Limit', 'smart-post-show-pro' ),
																),
																'default' => 'full-title',
																'dependency' => array( 'show_post_title', '==', 'true' ),
															),
															array(
																'id'   => 'pcp_title_length',
																'class'   => 'pcp_title_length',
																'type' => 'spacing',
																'title' => __( 'Length', 'smart-post-show-pro' ),
																'units' => array( 'characters', 'words' ),
																'all' => true,
																'all_icon' => '',
																'top' => false,
																'right' => false,
																'bottom' => false,
																'left' => false,
																'default' => array(
																	'all' => '30',
																	'unit' => 'characters',
																),
																'dependency' => array( 'post_title_limit|show_post_title', '==|==', 'limit-title|true' ),
															),
															array(
																'id'   => 'show_product_category_name',
																'type' => 'switcher',
																'title' => __( 'Category Name', 'smart-post-show-pro' ),
																'text_on' => __( 'Show', 'smart-post-show-pro' ),
																'text_off' => __( 'Hide', 'smart-post-show-pro' ),
																'default' => false,
																'text_width' => 80,
																'dependency' => array( 'pcp_select_post_type|show_post_title', '==|==', 'product|true', true ),
															),
															array(
																'id'   => 'post_title_margin',
																'type' => 'spacing',
																'title' => __( 'Margin', 'smart-post-show-pro' ),
																'sanitize' => 'pcp_sanitize_number_array_field',
																'min'  => -100,
																'units' => array( 'px' ),
																'default' => array(
																	'top'  => '0',
																	'right' => '0',
																	'bottom' => '9',
																	'left' => '0',
																),
																'dependency' => array( 'show_post_title', '==', 'true' ),
															),
														),
													),
												),
											),
											array(
												'id'    => 'pcp_post_meta',
												'class' => 'pcp_post_meta sp-product-not-fields',
												'type'  => 'accordion',
												'accordions' => array(
													array(
														'title'  => __( 'Meta Data', 'smart-post-show-pro' ),
														'fields' => array(
															array(
																'id'   => 'show_post_meta',
																'type' => 'switcher',
																'title' => __( 'Meta Fields', 'smart-post-show-pro' ),
																'text_on' => __( 'Show', 'smart-post-show-pro' ),
																'text_off' => __( 'Hide', 'smart-post-show-pro' ),
																'default' => true,
																'text_width' => 80,
															),
															array(
																'id'   => 'pcp_post_meta_group',
																'class' => 'pcp_custom_group_design',
																'type' => 'group',
																'button_title' => __( 'Add New Meta', 'smart-post-show-pro' ),
																'dependency' => array( 'show_post_meta', '==', 'true' ),
																'fields' => array(
																	array(
																		'id'   => 'select_post_meta',
																		'class' => 'select_post_meta',
																		'type' => 'select',
																		'title' => __( 'Select Meta', 'smart-post-show-pro' ),
																		'placeholder' => __( 'Select a meta', 'smart-post-show-pro' ),
																		'options' => array(
																			'author' => __( 'Author', 'smart-post-show-pro' ),
																			'date' => __( 'Date', 'smart-post-show-pro' ),
																			'taxonomy' => __( 'Taxonomy', 'smart-post-show-pro' ),
																			'comment_count' => __( 'Comment Count', 'smart-post-show-pro' ),
																			'view_count' => __( 'View Count', 'smart-post-show-pro' ),
																			'like' => __( 'Like', 'smart-post-show-pro' ),
																			'reading_time' => __( 'Reading Time', 'smart-post-show-pro' ),
																		),
																	),
																	array(
																		'id'   => 'post_meta_author_avatar',
																		'type' => 'select',
																		'title' => __( 'Avatar', 'smart-post-show-pro' ),
																		'class' => 'post_meta_author_avatar',
																		'options' => array(
																			'show_name' => __( 'Show name', 'smart-post-show-pro' ),
																			'show_gravatar' => __( 'Show gravatar', 'smart-post-show-pro' ),
																			'name_with_gravatar' => __( 'Author name & gravatar', 'smart-post-show-pro' ),
																			'name_with_icon' => __( 'Author name with an icon', 'smart-post-show-pro' ),

																		),
																		'desc' => sprintf(
																			// Translators: %1$s is the opening <a> tag, %2$s is the closing </a> tag, %3$s is the opening <em> tag, and %4$s is the closing </em> tag.
																			__( 'To show gravatar, you must %1$senable it%2$s.', 'smart-post-show-pro' ),
																			'<a href="https://wordpress.org/support/article/how-to-use-gravatars/" target="_blank" rel="noopener noreferrer nofollow"><em>',
																			'</em></a>'
																		),
																		'default' => 'name_with_icon',
																		'dependency' => array( 'select_post_meta', '==', 'author' ),
																	),
																	array(
																		'id'   => 'post_meta_date_format',
																		'type' => 'select',
																		'title' => __( 'Date Format', 'smart-post-show-pro' ),
																		'class' => 'post_meta_date_format',
																		'options' => array(
																			'default'  => __( 'Default', 'smart-post-show-pro' ),
																			'time_ago' => __( 'Time ago(human time)', 'smart-post-show-pro' ),
																			'custom'   => __( 'Custom', 'smart-post-show-pro' ),
																		),
																		'default' => 'default',
																		'dependency' => array( 'select_post_meta', '==', 'date' ),
																	),
																	array(
																		'id'   => 'pcp_custom_meta_date_format',
																		'type' => 'text',
																		'title' => ' ',
																		'class' => 'pcp_custom_meta_date_format',
																		'placeholder' => __( 'F j, Y', 'smart-post-show-pro' ),
																		'default' => __( 'F j, Y', 'smart-post-show-pro' ),
																		'desc' => sprintf(
																			// Translators: %1$s is the opening <a> tag, %2$s is the closing </a> tag, %3$s is the opening <em> tag, and %4$s is the closing </em> tag.
																			__( 'To define format, check %1$sthis doc%2$s.', 'smart-post-show-pro' ),
																			'<a href="https://wordpress.org/support/article/formatting-date-and-time/" target="_blank" rel="noopener noreferrer nofollow"><em>',
																			'</em></a>'
																		),
																		'dependency' => array( 'select_post_meta|post_meta_date_format', '==|==', 'date|custom' ),
																	),
																	array(
																		'id'   => 'post_meta_taxonomy',
																		'type' => 'select',
																		'title' => __( 'Taxonomy Type', 'smart-post-show-pro' ),
																		'class' => 'post_meta_taxonomy',
																		'options' => 'taxonomy',
																		'query_args' => array(
																			'type' => 'any',
																		),
																		'attributes' => array(
																			'style' => 'width: 200px;',
																		),
																		'empty_message' => __( 'No taxonomies found.', 'smart-post-show-pro' ),
																		'dependency' => array( 'select_post_meta', '==', 'taxonomy' ),
																	),
																	array(
																		'id'   => 'pcp_meta_position',
																		'class' => 'pcp_meta_position',
																		'type' => 'button_set',
																		'title' => __( 'Position', 'smart-post-show-pro' ),
																		'options' => array(
																			'beside_meta' => __( 'Beside Other Meta', 'smart-post-show-pro' ),
																			'above_title' => __( 'Above Title', 'smart-post-show-pro' ),
																			'over_thumb'  => __( 'Over Thumbnail', 'smart-post-show-pro' ),
																		),
																		'default' => 'beside_meta',
																		'dependency' => array( 'select_post_meta', '==', 'taxonomy' ),
																	),
																	array(
																		'id'   => 'pcp_meta_over_thump_position',
																		'type' => 'select',
																		'title' => __( 'Over Thumbnail Position', 'smart-post-show-pro' ),
																		'options' => array(
																			'top_left' => __( 'Top Left', 'smart-post-show-pro' ),
																			'top_right' => __( 'Top Right', 'smart-post-show-pro' ),
																			'bottom_left' => __( 'Bottom Left', 'smart-post-show-pro' ),
																			'bottom_right' => __( 'Bottom Right', 'smart-post-show-pro' ),
																		),
																		'default' => 'top_left',
																		'dependency' => array( 'select_post_meta|pcp_meta_position', '==|==', 'taxonomy|over_thumb' ),
																	),
																	array(
																		'id'   => 'pcp_meta_pill_color',
																		'type' => 'color_group',
																		'title' => __( 'Meta Color', 'smart-post-show-pro' ),
																		'options' => array(
																			'text' => __( 'Text', 'smart-post-show-pro' ),
																			'bg'   => __( 'Background', 'smart-post-show-pro' ),
																		),
																		'default' => array(
																			'text' => '#fff',
																			'bg'   => '#e53935',
																		),
																		'dependency' => array( 'select_post_meta|pcp_meta_position', '==|!=', 'taxonomy|beside_meta' ),
																	),
																	array(
																		'id'   => 'pcp_word_per_minute',
																		'type' => 'number',
																		'title' => __( 'Per Minute', 'smart-post-show-pro' ),
																		'class' => 'pcp_reading_time_meta',
																		'title_help' => __( 'Default 300 words, the average reading speed for adults.', 'smart-post-show-pro' ),
																		'sanitize' => 'pcp_sanitize_number_field',
																		'unit' => __( 'words', 'smart-post-show-pro' ),
																		'default' => '300',
																		'dependency' => array( 'select_post_meta', '==', 'reading_time' ),
																		'default' => 300,
																	),
																	array(
																		'id'   => 'select_meta_icon',
																		'class' => 'select_meta_icon',
																		'type' => 'icon',
																		'title' => __( 'Meta Icon', 'smart-post-show-pro' ),
																		'default' => 'fa fa-folder-o',
																		'dependency' => array( 'pcp_meta_position|select_post_meta', '==|!=', 'beside_meta|like' ),
																	),
																	array(
																		'id'   => 'reading_time_postfix',
																		'type' => 'text',
																		'title' => __( 'Reading Time Postfix', 'smart-post-show-pro' ),
																		'class' => 'pcp_reading_time_postfix',
																		'title_help' => __( 'Text after time. Leave empty for nothing.', 'smart-post-show-pro' ),
																		'default' => ' Min Read',
																		'dependency' => array( 'select_post_meta', '==', 'reading_time' ),
																	),
																),
																'default' => array(
																	array(
																		'select_post_meta'    => 'author',
																		'post_meta_author_avatar'    => 'name_with_icon',
																		'select_meta_icon'    => 'fa fa-user',
																		'pcp_meta_position'     => 'beside_meta',
																	),
																	array(
																		'select_post_meta'     => 'date',
																		'select_meta_icon'    => 'fa fa-calendar',
																		'pcp_meta_position'     => 'beside_meta',
																	),
																	array(
																		'select_post_meta'     => 'comment_count',
																		'select_meta_icon'    => 'fa fa-comments-o',
																		'pcp_meta_position'     => 'beside_meta',
																	),
																),
															),
															array(
																'id'   => 'meta_separator',
																'type' => 'radio',
																'title' => __( 'Meta Separator', 'smart-post-show-pro' ),
																'options' => array(
																	' '  => __( 'Normal Space ', 'smart-post-show-pro' ),
																	'. ' => __( 'Full Stop ( . ) ', 'smart-post-show-pro' ),
																	'| ' => __( 'Straight Line ( | )', 'smart-post-show-pro' ),
																	'/ ' => __( 'Slash ( / )', 'smart-post-show-pro' ),
																	'\ ' => __( 'Back Slash( \\ )', 'smart-post-show-pro' ),
																),
																'default' => ' ',
																'dependency' => array( 'show_post_meta', '==', 'true' ),
															),
															array(
																'id'   => 'post_meta_margin',
																'type' => 'spacing',
																'title' => __( 'Margin', 'smart-post-show-pro' ),
																'sanitize' => 'pcp_sanitize_number_array_field',
																'units' => array( 'px' ),
																'min'  => -100,
																'dependency' => array( 'show_post_meta', '==', 'true' ),
																'default' => array(
																	'top'  => '0',
																	'right' => '0',
																	'bottom' => '9',
																	'left' => '0',
																),
															),
															array(
																'id'   => 'post_meta_between_margin',
																'type' => 'spacing',
																'title' => __( 'Space Between Post Metas', 'smart-post-show-pro' ),
																'sanitize' => 'pcp_sanitize_number_array_field',
																'units' => array( 'px' ),
																'min'  => -5,
																'dependency' => array( 'show_post_meta', '==', 'true' ),
																'default' => array(
																	'top'  => '0',
																	'right' => '5',
																	'bottom' => '5',
																	'left' => '0',
																),
															),
														),
													),
												),
											),
											array(
												'id'   => 'pcp_post_content',
												'type' => 'accordion',
												'accordions' => array(
													array(
														'title'  => 'Content',
														'fields' => array(
															array(
																'id'   => 'show_post_content',
																'type' => 'switcher',
																'title' => __( 'Content', 'smart-post-show-pro' ),
																'text_on' => __( 'Show', 'smart-post-show-pro' ),
																'text_off' => __( 'Hide', 'smart-post-show-pro' ),
																'default' => true,
																'text_width' => 80,
															),
															array(
																'id'   => 'post_content_type',
																'type' => 'button_set',
																'title' => __( 'Content Display Type', 'smart-post-show-pro' ),
																'options' => array(
																	'excerpt' => __( 'Excerpt', 'smart-post-show-pro' ),
																	'limit_content' => __( 'Limit', 'smart-post-show-pro' ),
																	'full_content' => __( 'Full', 'smart-post-show-pro' ),
																),
																'default' => 'limit_content',
																'dependency' => array( 'show_post_content', '==', 'true' ),
															),

															array(
																'id'   => 'pcp_content_length_type',
																'class'   => 'pcp_content_length_type',
																'type' => 'spacing',
																'title' => __( 'Length', 'smart-post-show-pro' ),
																'units' => array( 'words', 'characters' ),
																'all' => true,
																'all_icon' => '',
																'top' => false,
																'right' => false,
																'bottom' => false,
																'left' => false,
																'default' => array(
																	'all' => '30',
																	'unit' => 'words',
																),
																'dependency' => array( 'show_post_content|post_content_type', '==|any', 'true|limit_content,excerpt' ),
															),
															array(
																'id'   => 'pcp_strip_tags',
																'type' => 'radio',
																'title' => __( 'HTML Tags', 'smart-post-show-pro' ),
																'options' => array(
																	'allow_all'  => __( 'Allow All', 'smart-post-show-pro' ),
																	'strip_all'  => __( 'Strip All', 'smart-post-show-pro' ),
																	'allow_some' => __( 'Allow Some', 'smart-post-show-pro' ),
																),
																'default' => 'allow_all',
																'dependency' => array( 'show_post_content|post_content_type', '==|!=', 'true|excerpt' ),
															),
															array(
																'id'   => 'pcp_allow_tag_name',
																'type' => 'text',
																'title' => __( 'Allow HTML Tags Names', 'smart-post-show-pro' ),
																'title_help' => __( 'Separate multiple tags by comma, e.g. h1,h2', 'smart-post-show-pro' ),
																'dependency' => array( 'show_post_content|pcp_strip_tags', '==|==', 'true|allow_some' ),
															),
															array(
																'id'   => 'post_content_ellipsis',
																'type' => 'text',
																'title' => __( 'Ellipsis Points Ending Excerpt', 'smart-post-show-pro' ),
																'default' => '...',
																'dependency' => array( 'show_post_content|post_content_type', '==|!=', 'true|full_content' ),
															),
															array(
																'id'   => 'post_content_margin',
																'type' => 'spacing',
																'title' => __( 'Margin', 'smart-post-show-pro' ),
																'sanitize' => 'pcp_sanitize_number_array_field',
																'units' => array( 'px' ),
																'min'  => -100,
																'default' => array(
																	'top'  => '0',
																	'right' => '0',
																	'bottom' => '17',
																	'left' => '0',
																),
																'dependency' => array( 'show_post_content', '==', 'true' ),
															),
															// ReadMore settings.
															array(
																'id'   => 'show_read_more',
																'type' => 'switcher',
																'title' => __( 'Read More', 'smart-post-show-pro' ),
																'text_on' => __( 'Show', 'smart-post-show-pro' ),
																'text_off' => __( 'Hide', 'smart-post-show-pro' ),
																'default' => true,
																'text_width' => 80,
																'dependency' => array( 'post_content_type', '!=', 'full_content' ),
															),
															array(
																'id'   => 'read_more_type',
																'type' => 'button_set',
																'title' => __( 'Read More Type', 'smart-post-show-pro' ),
																'options' => array(
																	'button' => __( 'Button', 'smart-post-show-pro' ),
																	'text_link' => __( 'Text Link', 'smart-post-show-pro' ),
																),
																'default' => 'button',
																'dependency' => array( 'post_content_type|show_read_more', '!=|==', 'full_content|true' ),
															),
															array(
																'id'   => 'pcp_read_label',
																'type' => 'text',
																'title' => __( '"Read More" Label', 'smart-post-show-pro' ),
																/* translators: %s is a placeholder example shown to users, not a sprintf replacement */
																'title_info' => __( 'Set the Read More button label. You can also show the post name along with Read More text using %s like "Read More about %s". Here %s will be replaced by post title', 'smart-post-show-pro' ), //phpcs:ignore.
																'default' => 'Read More',
																'dependency' => array( 'post_content_type|show_read_more', '!=|==', 'full_content|true' ),
															),
															array(
																'id'   => 'readmore_color_button',
																'type' => 'color_group',
																'title' => __( 'Color', 'smart-post-show-pro' ),
																'options' => array(
																	'standard' => __( 'Color', 'smart-post-show-pro' ),
																	'hover' => __( 'Hover Color', 'smart-post-show-pro' ),
																	'bg' => __( 'Background', 'smart-post-show-pro' ),
																	'hover_bg' => __( 'Hover Bg', 'smart-post-show-pro' ),
																),
																'default' => array(
																	'standard' => '#111',
																	'hover' => '#fff',
																	'bg' => 'transparent',
																	'hover_bg' => '#e1624b',
																),
																'dependency' => array( 'post_content_type|show_read_more|read_more_type', '!=|==|==', 'full_content|true|button' ),
															),
															array(
																'id'            => 'read_more_btn_border',
																'type'          => 'border',
																'title'         => __( 'Border', 'smart-post-show-pro' ),
																'subtitle'      => __( 'Set border for the read more button.', 'smart-post-show-pro' ),
																'all'           => true,
																'border_radius' => true,
																'hover_color' => true,
																'show_units'    => true,
																'units'         => array( 'px', '%' ),
																'default'       => array(
																	'all'   => '1',
																	'style' => 'solid',
																	'color' => '#888',
																	'hover_color' => '#e1624b',
																	'border_radius' => '0',
																	'unit'  => 'px',
																),
																'dependency' => array( 'post_content_type|show_read_more|read_more_type', '!=|==|==', 'full_content|true|button' ),
															),
															array(
																'id'   => 'readmore_color_text',
																'type' => 'color_group',
																'title' => __( 'Read More Color', 'smart-post-show-pro' ),
																'options' => array(
																	'standard' => __( 'Text Color', 'smart-post-show-pro' ),
																	'hover'    => __( 'Text Hover Color', 'smart-post-show-pro' ),
																),
																'default' => array(
																	'standard' => '#888',
																	'hover'    => '#e1624b',
																),
																'dependency' => array( 'post_content_type|show_read_more|read_more_type', '!=|==|==', 'full_content|true|text_link' ),
															),
														),
													),
												),
											),
											array(
												'id'    => 'pcp_social_share',
												'type'  => 'accordion',
												'class' => 'pcp_social_share sp-product-not-fields',
												'accordions' => array(
													array(
														'title'  => __( 'Social Share', 'smart-post-show-pro' ),
														'fields' => array(
															array(
																'id'   => 'social_sharing_media',
																'type' => 'select',
																'title' => __( 'Sharing Media', 'smart-post-show-pro' ),
																'chosen' => true,
																'sortable' => true,
																'multiple' => true,
																'placeholder' => __( 'Choose an option', 'smart-post-show-pro' ),
																'options' => array(
																	'facebook' => __( 'Facebook', 'smart-post-show-pro' ),
																	'twitter' => __( 'X', 'smart-post-show-pro' ),
																	'linkedIn' => __( 'LinkedIn', 'smart-post-show-pro' ),
																	'pinterest' => __( 'Pinterest', 'smart-post-show-pro' ),
																	'email' => __( 'Email', 'smart-post-show-pro' ),
																	'instagram' => __( 'Instagram', 'smart-post-show-pro' ),
																	'vk'   => __( 'VK', 'smart-post-show-pro' ),
																	'digg' => __( 'digg', 'smart-post-show-pro' ),
																	'tumblr' => __( 'Tumblr', 'smart-post-show-pro' ),
																	'reddit' => __( 'Reddit', 'smart-post-show-pro' ),
																	'whatsapp' => __( 'WhatsApp', 'smart-post-show-pro' ),
																	'pocket' => __( 'Pocket', 'smart-post-show-pro' ),
																	'xing' => __( 'Xing', 'smart-post-show-pro' ),
																	'copy' => __( 'Copy Post URL', 'smart-post-show-pro' ),
																),
															),
															array(
																'id'   => 'social_icon_shape',
																'class' => 'social_icon_shape hide-active-sign',
																'type' => 'layout_preset',
																'title' => __( 'Icon Shape', 'smart-post-show-pro' ),
																'options' => array(
																	'pcp_circle'  => array(
																		'image' => SP_PCP_URL . 'admin/img/social-icon-shape/circle.svg',
																		'text' => __( 'Circle', 'smart-post-show-pro' ),
																	),
																	'pcp_rounded' => array(
																		'image' => SP_PCP_URL . 'admin/img/social-icon-shape/rounded.svg',
																		'text' => __( 'Rounded', 'smart-post-show-pro' ),
																	),
																	'pcp_square'  => array(
																		'image' => SP_PCP_URL . 'admin/img/social-icon-shape/square.svg',
																		'text' => __( 'Square', 'smart-post-show-pro' ),
																	),
																	'icon_only'   => array(
																		'image' => SP_PCP_URL . 'admin/img/social-icon-shape/only_icon.svg',
																		'text' => __( 'Icon only', 'smart-post-show-pro' ),
																	),
																),
																'default' => 'pcp_circle',
																'dependency' => array( 'social_sharing_media', '!=', '' ),
															),
															array(
																'id'   => 'social_icon_custom_color',
																'type' => 'button_set',
																'title' => __( 'Custom Color', 'smart-post-show-pro' ),
																'options' => array(
																	'original' => __( 'Original', 'smart-post-show-pro' ),
																	'custom' => __( 'Custom', 'smart-post-show-pro' ),
																),
																'default' => 'original',
																'dependency' => array( 'social_sharing_media', '!=', '' ),
															),
															array(
																'id'   => 'social_icon_color',
																'type' => 'color_group',
																'title' => __( 'Icon Color', 'smart-post-show-pro' ),
																'options' => array(
																	'icon_color' => __( 'Icon', 'smart-post-show-pro' ),
																	'icon_hover_color' => __( 'Icon Hover', 'smart-post-show-pro' ),
																	'icon_bg' => __( 'Background', 'smart-post-show-pro' ),
																	'icon_bg_hover' => __( 'Background Hover', 'smart-post-show-pro' ),
																),
																'default' => array(
																	'icon_color' => '#ffffff',
																	'icon_hover_color' => '#ffffff',
																	'icon_bg' => '#e1624b',
																	'icon_bg_hover' => '#C75657',
																),
																'dependency' => array( 'social_icon_custom_color|social_sharing_media', '==|!=', 'custom|' ),
															),
															array(
																'id'   => 'social_icon_border',
																'type' => 'border',
																'all'  => true,
																'hover_color' => true,
																'title' => __( 'Icon Border', 'smart-post-show-pro' ),
																'default' => array(
																	'all' => '1',
																	'style' => 'solid',
																	'color' => '#e1624b',
																	'hover_color' => '#C75657',
																),
																'dependency' => array( 'social_icon_custom_color|social_sharing_media', '==|!=', 'custom|' ),
															),
															array(
																'id'   => 'social_position',
																'type' => 'button_set',
																'title' => __( 'Alignment', 'smart-post-show-pro' ),
																'options' => array(
																	'left' => '<i class="fa fa-align-left" title="Left"></i>',
																	'center' => '<i class="fa fa-align-center" title="Center"></i>',
																	'right' => '<i class="fa fa-align-right" title="Right"></i>',
																),
																'default' => 'left',
																'dependency' => array( 'social_sharing_media', '!=', '' ),
															),
															array(
																'id'   => 'social_margin',
																'type' => 'spacing',
																'title' => __( 'Margin', 'smart-post-show-pro' ),
																'sanitize' => 'pcp_sanitize_number_array_field',
																'min'  => -100,
																'units' => array( 'px' ),
																'default' => array(
																	'top'  => '0',
																	'right' => '0',
																	'bottom' => '0',
																	'left' => '0',
																),
																'dependency' => array( 'social_sharing_media', '!=', '' ),
															),
														),
													),
												),
											), // PCP Post Social.
											array(
												'id'    => 'pcp_custom_fields',
												'class' => 'pcp_custom_fields',
												'type'  => 'accordion',
												'accordions' => array(
													array(
														'title'  => __( 'Custom Fields', 'smart-post-show-pro' ),
														'fields' => array(
															// The Group Fields.
															array(
																'id'   => 'pcp_custom_fields_group',
																'class' => 'pcp_custom_group_design custom_field',
																'type' => 'group',
																'accordion_title_auto' => true,
																'accordion_title_number' => true,
																'button_title' => __( 'Add New Custom Field', 'smart-post-show-pro' ),
																'fields' => array(
																	array(
																		'id'   => 'pcp_select_custom_field_key',
																		'type' => 'select',
																		'title' => __( 'Custom Fields', 'smart-post-show-pro' ),
																		'options' => 'custom_fields',
																		'chosen' => true,
																		'attributes' => array(
																			'style' => 'width: 200px;',
																		),
																		'empty_message' => __( 'No custom field found.', 'smart-post-show-pro' ),
																	),
																	array(
																		'id'   => 'pcp_custom_meta_icon',
																		'type' => 'icon',
																		'title' => 'Icon Before Name',
																		'default' => 'fa fa-calendar-o',
																	),
																	array(
																		'id'   => 'show_custom_field_name',
																		'type' => 'switcher',
																		'title' => __( 'Custom Field Name', 'smart-post-show-pro' ),
																		'text_on' => __( 'Show', 'smart-post-show-pro' ),
																		'text_off' => __( 'Hide', 'smart-post-show-pro' ),
																		'default' => false,
																		'text_width' => 80,
																	),
																	array(
																		'id'   => 'customize_custom_field_name',
																		'type' => 'text',
																		'title' => __( 'Customize Field Name', 'smart-post-show-pro' ),
																		'dependency' => array( 'show_custom_field_name', '==', 'true' ),
																	),
																	array(
																		'id'   => 'colon_after_custom_field_name',
																		'type' => 'switcher',
																		'title' => __( 'Show Colon \':\'', 'smart-post-show-pro' ),
																		'title_help' => __( 'Show colon after field name.', 'smart-post-show-pro' ),
																		'text_on' => __( 'Show', 'smart-post-show-pro' ),
																		'text_off' => __( 'Hide', 'smart-post-show-pro' ),
																		'default' => true,
																		'text_width' => 80,
																		'default' => false,
																		'dependency' => array( 'show_custom_field_name', '==', 'true' ),
																	),
																),
															), // Group field end.
															array(
																'id'   => 'which_plugin_used',
																'type' => 'button_set',
																'title' => __( 'Select Plugin', 'smart-post-show-pro' ),
																'title_help' => __( 'Select plugin which is used to make the above custom fields.', 'smart-post-show-pro' ),
																'options' => array(
																	'auto' => __( 'Auto Detect', 'smart-post-show-pro' ),
																	'_acf' => __( 'ACF', 'smart-post-show-pro' ),
																	'_pods' => __( 'Pods', 'smart-post-show-pro' ),
																	'_toolset' => __( 'Toolset', 'smart-post-show-pro' ),
																),
																'default' => 'auto',
															),
															array(
																'id'   => 'pcp_embed_cf_content',
																'type' => 'checkbox',
																'title' => __( 'Embed Audio, Video or Image etc.', 'smart-post-show-pro' ),
																'title_info' => sprintf(
																	// Translators: %1$s and %2$s wrap the link to the embed support list.
																	__( 'Embed the content if it is audio, video, or tweets etc. %1$sSee embed supported content list.%2$s', 'smart-post-show-pro' ),
																	'<a target="_blank" href="https://wordpress.org/support/article/embeds/#okay-so-what-sites-can-i-embed-from">',
																	'</a>'
																),
															),
															array(
																'id'   => 'pcp_custom_fields_margin',
																'type' => 'spacing',
																'title' => __( 'Margin', 'smart-post-show-pro' ),
																'sanitize' => 'pcp_sanitize_number_array_field',
																'min'  => -100,
																'units' => array( 'px' ),
																'default' => array(
																	'top'  => '0',
																	'right' => '0',
																	'bottom' => '15',
																	'left' => '0',
																),
															),
														), // End Fields array.
													),
												), // Accordion.
											), // Custom fields end.
											array(
												'id'    => 'pcp_product_rating',
												'type'  => 'accordion',
												'class' => 'pcp_product_rating sp-product-fields',
												'accordions' => array(
													array(
														'title'  => __( 'Rating', 'smart-post-show-pro' ),
														'fields' => array(
															array(
																'id'   => 'pcp_show_product_rating',
																'type' => 'switcher',
																'title' => __( 'Rating', 'smart-post-show-pro' ),
																'text_on' => __( 'Show', 'smart-post-show-pro' ),
																'text_off' => __( 'Hide', 'smart-post-show-pro' ),
																'text_width' => 80,
																'default' => true,
															),
															array(
																'id'   => 'pcp_show_product_review_count',
																'type' => 'switcher',
																'title' => __( 'Review Count', 'smart-post-show-pro' ),
																'text_on' => __( 'Show', 'smart-post-show-pro' ),
																'text_off' => __( 'Hide', 'smart-post-show-pro' ),
																'text_width' => 80,
																'default' => false,
																'dependency' => array( 'pcp_show_product_rating', '==', 'true' ),
															),
															array(
																'id'   => 'pcp_product_review_count_color',
																'type' => 'color',
																'title' => __( 'Review Count Color', 'smart-post-show-pro' ),
																'default' => '#444444',
																'dependency' => array( 'pcp_show_product_rating|pcp_show_product_review_count', '==|==', 'true|true', true ),
															),
															array(
																'id'   => 'pcp_product_rating_colors',
																'type' => 'color_group',
																'title' => __( 'Color', 'smart-post-show-pro' ),
																'options' => array(
																	'color' => __( 'Star Color', 'smart-post-show-pro' ),
																	'empty_color' => __( 'Empty Star Color', 'smart-post-show-pro' ),
																),
																'default' => array(
																	'color' => '#F4C100',
																	'empty_color' => '#C8C8C8',
																),
																'dependency' => array( 'pcp_show_product_rating', '==', 'true' ),
															),
															array(
																'id'   => 'pcp_product_rating_alignment',
																'type' => 'button_set',
																'class' => 'product-rating-alignment',
																'title' => __( 'Alignment', 'smart-post-show-pro' ),
																'options' => array(
																	'left' => '<i title="Left" class="fa fa-align-left"></i>',
																	'center' => '<i title="Center" class="fa fa-align-center"></i>',
																	'right' => '<i title="Right" class="fa fa-align-right"></i>',
																),
																'default' => 'center',
																'dependency' => array( 'pcp_show_product_rating', '==', 'true' ),
															),
														), // End Fields array.
													),
												), // Accordion.
											), // Product rating end.
											array(
												'id'    => 'pcp_product_price',
												'class' => 'pcp_product_price sp-product-fields',
												'type'  => 'accordion',
												'accordions' => array(
													array(
														'title'  => __( 'Price', 'smart-post-show-pro' ),
														'fields' => array(
															array(
																'id'   => 'pcp_show_product_price',
																'type' => 'switcher',
																'title' => __( 'Price', 'smart-post-show-pro' ),
																'text_on' => __( 'Show', 'smart-post-show-pro' ),
																'text_off' => __( 'Hide', 'smart-post-show-pro' ),
																'text_width' => 80,
																'default' => true,
															),
															array(
																'id'   => 'pcp_product_price_color',
																'type' => 'color',
																'title' => __( 'Price Color', 'smart-post-show-pro' ),
																'default' => '#444444',
																'dependency' => array( 'pcp_show_product_price', '==', 'true' ),
															),
															array(
																'id'   => 'pcp_product_del_price_color',
																'type' => 'color',
																'title' => __( 'Discount Color', 'smart-post-show-pro' ),
																'default' => '#888888',
																'dependency' => array( 'pcp_show_product_price', '==', 'true' ),
															),
															array(
																'id'   => 'pcp_product_price_alignment',
																'type' => 'button_set',
																'class' => 'product-rating-alignment',
																'title' => __( 'Alignment', 'smart-post-show-pro' ),
																'options' => array(
																	'left' => '<i title="Left" class="fa fa-align-left"></i>',
																	'center' => '<i title="Center" class="fa fa-align-center"></i>',
																	'right' => '<i title="Right" class="fa fa-align-right"></i>',
																),
																'default' => 'left',
																'dependency' => array( 'pcp_show_product_price', '==', 'true' ),
															),
														), // End Fields array.
													),
												), // Accordion.
											), // Product price end.
											array(
												'id'    => 'pcp_product_cart',
												'class' => 'pcp_product_cart sp-product-fields',
												'type'  => 'accordion',
												'accordions' => array(
													array(
														'title'  => __( 'Add To Cart', 'smart-post-show-pro' ),
														'fields' => array(
															array(
																'id'   => 'pcp_show_product_cart_button',
																'type' => 'switcher',
																'title' => __( 'Add to Cart', 'smart-post-show-pro' ),
																'text_on' => __( 'Show', 'smart-post-show-pro' ),
																'text_off' => __( 'Hide', 'smart-post-show-pro' ),
																'text_width' => 80,
																'default' => true,
															),
															array(
																'id'   => 'pcp_add_to_cart_border',
																'type' => 'border',
																'title' => __( 'Border', 'smart-post-show-pro' ),
																'all'  => true,
																'hover_color' => true,
																'default' => array(
																	'all' => '1',
																	'style' => 'solid',
																	'color' => '#222222',
																	'hover_color' => '#222222',
																),
																'dependency' => array( 'pcp_show_product_cart_button', '==', 'true' ),
															),
															array(
																'id'   => 'pcp_add_to_cart_border_radius',
																'type' => 'spinner',
																'title' => __( 'Border Radius', 'smart-post-show-pro' ),
																'sanitize' => 'pcp_sanitize_number_field',
																'unit' => __( 'px', 'smart-post-show-pro' ),
																'default' => 0,
																'dependency' => array( 'pcp_show_product_cart_button', '==', 'true' ),
															),
															array(
																'id'   => 'pcp_add_to_cart_button_colors',
																'type' => 'color_group',
																'title' => __( 'Color', 'smart-post-show-pro' ),
																'options' => array(
																	'color' => __( 'Text Color', 'smart-post-show-pro' ),
																	'hover_color' => __( 'Text Hover', 'smart-post-show-pro' ),
																	'background' => __( 'Background', 'smart-post-show-pro' ),
																	'hover_background' => __( 'Hover BG', 'smart-post-show-pro' ),
																),
																'default' => array(
																	'color' => '#444444',
																	'hover_color' => '#ffffff',
																	'background' => 'transparent',
																	'hover_background' => '#222222',
																),
																'dependency' => array( 'pcp_show_product_cart_button', '==', 'true' ),
															),
														), // End Fields array.
													),
												), // Accordion.
											), // Product add to cart button end.
										),
									),
								),
							),
							array(
								'title'  => __( 'Isotope Styles', 'smart-post-show-pro' ),
								'class'  => 'pcp_isotope_settings',
								'icon'   => '<i class="sps-icon-isotope" aria-hidden="true"></i>',
								'fields' => array(
									array(
										'type'    => 'notice',
										'style'   => 'info',
										'class'   => 'notice-help-image',
										'content' => __( 'You must need to select taxonomy (terms) to show filter posts with animation.', 'smart-post-show-pro' ),
										'help'    => "<img src='" . SP_PCP_URL . "/admin/img/tax_select.jpg'>",
									),
									array(
										'id'         => 'pcp_filter_type',
										'type'       => 'layout_preset',
										'class'      => 'hide-active-sign',
										'title'      => __( 'Filter Type', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Choose a filter type.', 'smart-post-show-pro' ),
										'options'    => array(
											'button'    => array(
												'image' => SP_PCP_URL . 'admin/img/filter-type/button.svg',
												'text'  => __( 'Button', 'smart-post-show-pro' ),
											),
											'drop_down' => array(
												'image' => SP_PCP_URL . 'admin/img/filter-type/dropdown.svg',
												'text'  => __( 'Dropdown', 'smart-post-show-pro' ),
											),
										),
										'default'    => 'button',
										'dependency' => array( 'pcp_layout_preset', '!=', 'glossary_layout' ),
									),
									array(
										'id'         => 'pcp_filter_all_btn_switch',
										'type'       => 'switcher',
										'title'      => __( '"All" Button', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Show/Hide all button.', 'smart-post-show-pro' ),
										'default'    => 'true',
										'text_on'    => __( 'Show', 'smart-post-show-pro' ),
										'text_off'   => __( 'Hide', 'smart-post-show-pro' ),
										'text_width' => 80,
										'dependency' => array( 'pcp_layout_preset', '!=', 'glossary_layout' ),
									),
									array(
										'id'         => 'pcp_rename_all_text',
										'type'       => 'text',
										'title'      => __( '"All" Button Text.', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Rename "All" button text.', 'smart-post-show-pro' ),
										'default'    => 'All',
										'dependency' => array( 'pcp_filter_all_btn_switch', '==', 'true' ),
									),
									array(
										'id'         => 'pcp_filer_btn_bg',
										'type'       => 'color_group',
										'title'      => __( 'Button Color', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Set button color.', 'smart-post-show-pro' ),
										'options'    => array(
											'text_color'  => __( 'Color', 'smart-post-show-pro' ),
											'text_acolor' => __( 'Active Color', 'smart-post-show-pro' ),
											'background'  => __( 'Background', 'smart-post-show-pro' ),
											'active-background' => __( 'Active/Hover BG', 'smart-post-show-pro' ),
										),
										'default'    => array(
											'text_color'  => '#444444',
											'text_acolor' => '#ffffff',
											'background'  => 'transparent',
											'active-background' => '#e1624b',
										),
										'dependency' => array( 'pcp_filter_type', '==', 'button', true ),
									),
									array(
										'id'          => 'pcp_filer_btn_border',
										'type'        => 'border',
										'all'         => true,
										'hover_color' => true,
										'title'       => __( 'Border', 'smart-post-show-pro' ),
										'subtitle'    => __( 'Set button border.', 'smart-post-show-pro' ),
										'default'     => array(
											'all'         => '2',
											'style'       => 'solid',
											'color'       => '#bbbbbb',
											'hover_color' => '#e1624b',
										),
										'dependency'  => array( 'pcp_filter_type', '==', 'button', true ),
									),
									array(
										'id'         => 'pcp_margin_between_button',
										'type'       => 'spacing',
										'title'      => __( 'Space Between Buttons', 'smart-post-show-pro' ),
										'sanitize'   => 'pcp_sanitize_number_array_field',
										'subtitle'   => __( 'Set space between buttons.', 'smart-post-show-pro' ),
										'units'      => array( 'px' ),
										'default'    => array(
											'top'    => '0',
											'right'  => '8',
											'bottom' => '8',
											'left'   => '0',
											'unit'   => 'px',
										),
										'dependency' => array( 'pcp_filter_type', '==', 'button', true ),
									),
									array(
										'id'         => 'pcp_margin_between_taxonomy',
										'type'       => 'spacing',
										'title'      => __( 'Margin Between Taxonomies', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Set margin between taxonomies.', 'smart-post-show-pro' ),
										'sanitize'   => 'pcp_sanitize_number_array_field',
										'units'      => array( 'px' ),
										'default'    => array(
											'top'    => '0',
											'right'  => '0',
											'bottom' => '30',
											'left'   => '0',
											'unit'   => 'px',
										),
										'dependency' => array( 'pcp_layout_preset', '!=', 'glossary_layout' ),
									),
									array(
										'id'       => 'pcp_filer_align',
										'type'     => 'button_set',
										'title'    => __( 'Alignment', 'smart-post-show-pro' ),
										'subtitle' => __( 'Choose a alignment.', 'smart-post-show-pro' ),
										'options'  => array(
											'left'   => '<i class="fa fa-align-left" title="Left"></i>',
											'center' => '<i class="fa fa-align-center" title="Center"></i>',
											'right'  => '<i class="fa fa-align-right" title="Right"></i>',
										),
										'default'  => 'center',
									),
									array(
										'id'         => 'pcp_post_count',
										'type'       => 'checkbox',
										'title'      => __( 'Post Count', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Check to post count.', 'smart-post-show-pro' ),
										'default'    => false,
										'dependency' => array( 'pcp_layout_preset', '!=', 'glossary_layout' ),
									),
								),
							),
							array(
								'title'  => __( 'Timeline Styles', 'smart-post-show-pro' ),
								'class'  => 'pcp_timeline_settings',
								'icon'   => '<i class="sps-icon-timeline" aria-hidden="true"></i>',
								'fields' => array(
									array(
										'id'         => 'pcp_timeline_column_style_2',
										'type'       => 'column',
										'title'      => __( 'Column(s)', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Set number of column(s) in different responsive devices.', 'smart-post-show-pro' ),
										'default'    => array(
											'lg_desktop' => '4',
											'desktop'    => '3',
											'tablet'     => '2',
											'mobile_landscape' => '2',
											'mobile'     => '1',
										),
										'min'        => '1',
										'dependency' => array( 'timeline_other_style', '==', 'timeline_style_2', true ),
										'title_info' => sprintf(
											// Translators: %1$s and %2$s are opening and closing <b> tags.
											__( 'When multiple %1$sRow%2$s is set, the above two options %1$sInfinite Loop%2$s and %1$sAuto Height%2$s won\'t work properly.', 'smart-post-show-pro' ),
											'<b>',
											'</b>'
										),
									),
									array(
										'id'       => 'timeline_circle_color',
										'type'     => 'color_group',
										'title'    => __( 'Circle Color', 'smart-post-show-pro' ),
										'subtitle' => __( 'Set timeline circle color.', 'smart-post-show-pro' ),
										'options'  => array(
											'standard' => __( 'Color', 'smart-post-show-pro' ),
											'hover'    => __( 'Hover Color', 'smart-post-show-pro' ),
										),
										'default'  => array(
											'standard' => '#ddd',
											'hover'    => '#e1624b',
										),
									),
									array(
										'id'       => 'timeline_line_color',
										'type'     => 'color',
										'title'    => __( 'Line Color', 'smart-post-show-pro' ),
										'subtitle' => __( 'Set timeline line color.', 'smart-post-show-pro' ),
										'default'  => '#ddd',
									),
									array(
										'id'       => 'timeline_line_width',
										'type'     => 'spacing',
										'title'    => __( 'Line', 'smart-post-show-pro' ),
										'subtitle' => __( 'Set timeline line width or height.', 'smart-post-show-pro' ),
										'sanitize' => 'pcp_sanitize_number_array_field',
										'all'      => true,
										'all_icon' => '<i class="fa fa-arrows-h"></i>',
										'default'  => array(
											'all'  => 2,
											'unit' => 'px',
										),
										'units'    => array( 'px' ),
									),
								),
							),
							array(
								'title'  => __( 'Accordion Styles', 'smart-post-show-pro' ),
								'class'  => 'pcp_accordion_settings',
								'icon'   => '<i class="sps-icon-accordion" aria-hidden="true"></i>',
								'fields' => array(
									array(
										'id'       => 'accordion_mode',
										'type'     => 'radio',
										'title'    => __( 'Accordion Mode', 'smart-post-show-pro' ),
										'subtitle' => __( 'Expand or collapse accordion option on page load.', 'smart-post-show-pro' ),
										'options'  => array(
											'first-open' => __( 'First Open', 'smart-post-show-pro' ),
											'multi-open' => __( 'All Open', 'smart-post-show-pro' ),
											'all-close'  => __( 'All Folded', 'smart-post-show-pro' ),
										),
										'default'  => 'first-open',
									),
									array(
										'id'       => 'header_bg_color',
										'type'     => 'color',
										'title'    => __( 'Title Background Color', 'smart-post-show-pro' ),
										'subtitle' => __( 'Set accordion title background color.', 'smart-post-show-pro' ),
										'rgba'     => true,
										'default'  => '#eee',
									),
									array(
										'id'            => 'accordion_border',
										'type'          => 'border',
										'title'         => __( 'Accordion Border', 'smart-post-show-pro' ),
										'subtitle'      => __( 'Set border for the accordion.', 'smart-post-show-pro' ),
										'all'           => true,
										'border_radius' => true,
										'default'       => array(
											'all'   => '1',
											'style' => 'solid',
											'color' => '#ddd',
											'border_radius' => '4',
										),
									),
									array(
										'id'         => 'expand_close_icon',
										'type'       => 'switcher',
										'title'      => __( 'Expand & Collapse Icon', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Show/hide expand and collapse icon.', 'smart-post-show-pro' ),
										'text_on'    => __( 'Show', 'smart-post-show-pro' ),
										'text_off'   => __( 'Hide', 'smart-post-show-pro' ),
										'default'    => true,
										'text_width' => 80,
									),
									array(
										'id'         => 'accordion_icon_position',
										'type'       => 'button_set',
										'title'      => __( 'Expand & Collapse Icon Position', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Set accordion expand and collapse icon position or alingment.', 'smart-post-show-pro' ),
										'options'    => array(
											'left'  => __( 'Left', 'smart-post-show-pro' ),
											'right' => __( 'Right', 'smart-post-show-pro' ),
										),
										'radio'      => true,
										'default'    => 'left',
										'dependency' => array( 'expand_close_icon', '==', 'true', 'all' ),
									),
									array(
										'id'              => 'accordion_icon_size',
										'type'            => 'spacing',
										'title'           => __( 'Expand & Collapse Icon Size', 'smart-post-show-pro' ),
										'subtitle'        => __( 'Set accordion collapse and expand icon size. Defualt value is 16px.', 'smart-post-show-pro' ),
										'sanitize'        => 'pcp_sanitize_number_array_field',
										'all'             => true,
										'all_text'        => false,
										'all_placeholder' => 'speed',
										'default'         => array(
											'all' => '16',
										),
										'units'           => array(
											'px',
										),
										'attributes'      => array(
											'min' => 0,
										),
										'dependency'      => array( 'expand_close_icon', '==', 'true', 'all' ),
									),
									array(
										'id'         => 'accordion_icon_color_set',
										'type'       => 'color',
										'title'      => __( 'Icon Color', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Set icon color.', 'smart-post-show-pro' ),
										'default'    => '#444',
										'dependency' => array( 'expand_close_icon', '==', 'true', 'all' ),
									),
								),
							),

							array(
								'title'  => __( 'Load More Pagination', 'smart-post-show-pro' ),
								'class'  => 'pcp_ajax_pagination',
								'icon'   => '<i class="sps-icon-ajax" aria-hidden="true"></i>',
								'fields' => array(
									array(
										'id'         => 'show_post_pagination',
										'type'       => 'switcher',
										'text_on'    => __( 'Enabled', 'smart-post-show-pro' ),
										'text_off'   => __( 'Disabled', 'smart-post-show-pro' ),
										'text_width' => 100,
										'title'      => __( 'Pagination', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Enabled/Disabled item pagination.', 'smart-post-show-pro' ),
										'default'    => true,
										'dependency' => array( 'pcp_layout_preset', '!=', 'carousel_layout', true ),
									),
									array(
										'id'         => 'post_pagination_type',
										'type'       => 'radio',
										'title'      => __( 'Pagination Type', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Choose a pagination type.', 'smart-post-show-pro' ),
										'options'    => array(
											'ajax_load_more' => __( 'Load More Button (Ajax)', 'smart-post-show-pro' ),
											'ajax_pagination' => __( 'Ajax Number Pagination', 'smart-post-show-pro' ),
											'infinite_scroll' => __( 'Infinite Scroll (Ajax)', 'smart-post-show-pro' ),
											'no_ajax' => __( 'No Ajax (Normal Pagination)', 'smart-post-show-pro' ),
										),
										'default'    => 'ajax_load_more',
										'dependency' => array( 'pcp_layout_preset|show_post_pagination', 'not-any|==', 'carousel_layout,filter_layout|true', true ),
									),
									array(
										'id'         => 'filter_pagination_type',
										'type'       => 'radio',
										'title'      => __( 'Filter Pagination Type', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Choose a pagination type.', 'smart-post-show-pro' ),
										'options'    => array(
											'ajax_load_more'  => __( 'Load More Button (Ajax)', 'smart-post-show-pro' ),
											'infinite_scroll' => __( 'Infinite Scroll (Ajax)', 'smart-post-show-pro' ),
										),
										'default'    => 'ajax_load_more',
										'dependency' => array( 'pcp_layout_preset|show_post_pagination', '==|==', 'filter_layout|true', true ),
									),
									array(
										'id'         => 'post_pagination_type_mobile',
										'type'       => 'select',
										'title'      => __( 'Pagination Type for Mobile', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Choose a pagination type for mobile view.', 'smart-post-show-pro' ),
										'options'    => array(
											'ajax_load_more' => __( 'Load More Button (Ajax)', 'smart-post-show-pro' ),
											'ajax_pagination' => __( 'Ajax Pagination', 'smart-post-show-pro' ),
											'infinite_scroll' => __( 'Infinite Scroll (Ajax)', 'smart-post-show-pro' ),
											'no_ajax' => __( 'No Ajax (Normal Pagination)', 'smart-post-show-pro' ),
										),
										'default'    => 'infinite_scroll',
										'dependency' => array( 'pcp_layout_preset|show_post_pagination', 'not-any|==', 'carousel_layout,filter_layout|true', true ),
									),
									array(
										'id'         => 'post_per_page',
										'type'       => 'spinner',
										'title'      => __( 'Items Per Page', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Set number of items to show per page.', 'smart-post-show-pro' ),
										'title_help' => sprintf(
											// Translators: %1$s and %2$s are opening and closing <strong> tags.
											__( 'This value should be lesser than that %1$s Limit %2$s from %1$sFilter Content %2$s tab.', 'smart-post-show-pro' ),
											'<strong>',
											'</strong>'
										),
										'sanitize'   => 'pcp_sanitize_number_field',
										'default'    => 12,
										'dependency' => array( 'pcp_layout_preset|show_post_pagination', '!=|==', 'carousel_layout|true', true ),
									),
									array(
										'id'         => 'post_load_per_click',
										'type'       => 'spinner',
										'title'      => __( 'Items Load Per Click', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Set number of items to load per click.', 'smart-post-show-pro' ),
										'sanitize'   => 'pcp_sanitize_number_field',
										'default'    => 12,
										'dependency' => array( 'pcp_layout_preset|show_post_pagination|post_pagination_type', '!=|==|not-any', 'carousel_layout|true|no_ajax,ajax_pagination', true ),
									),
									array(
										'id'         => 'load_more_button_text',
										'type'       => 'text',
										'title'      => __( 'Load More Button Label', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Set the label for load more button.', 'smart-post-show-pro' ),
										'default'    => 'Load More',
										'dependency' => array( 'pcp_layout_preset|show_post_pagination|post_pagination_type', '!=|==|not-any', 'carousel_layout|true|no_ajax,ajax_pagination', true ),
									),
									array(
										'id'         => 'load_more_ending_message',
										'type'       => 'text',
										'title'      => __( 'Ending Message', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Set ending message for load more/infinite scroll.', 'smart-post-show-pro' ),
										'default'    => 'No more posts available',
										'dependency' => array( 'pcp_layout_preset|show_post_pagination|post_pagination_type', '!=|==|not-any', 'carousel_layout|true|no_ajax,ajax_pagination', true ),
									),
									array(
										'id'         => 'pcp_pagination_btn_color',
										'type'       => 'color_group',
										'title'      => __( 'Color', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Set Pagination color', 'smart-post-show-pro' ),
										'options'    => array(
											'text_color'  => __( 'Color', 'smart-post-show-pro' ),
											'text_acolor' => __( 'Active Color', 'smart-post-show-pro' ),
											'background'  => __( 'Background', 'smart-post-show-pro' ),
											'active_background' => __( 'Active BG', 'smart-post-show-pro' ),
										),
										'default'    => array(
											'text_color'  => '#5e5e5e',
											'text_acolor' => '#ffffff',
											'background'  => '#ffffff',
											'active_background' => '#e1624b',
										),
										'dependency' => array( 'pcp_layout_preset|show_post_pagination|post_pagination_type', '!=|==|!=', 'carousel_layout|true|infinite_scroll', true ),
									),
									// New.
									array(
										'id'            => 'pcp_pagination_btn_border',
										'type'          => 'border',
										'title'         => __( 'Border', 'smart-post-show-pro' ),
										'subtitle'      => __( 'Set border for the pagination button.', 'smart-post-show-pro' ),
										'all'           => true,
										'border_radius' => true,
										'hover_color'   => true,
										'show_units'    => true,
										'units'         => array( 'px', '%' ),
										'default'       => array(
											'all'         => '1',
											'style'       => 'solid',
											'color'       => '#bbbbbb',
											'hover_color' => '#e1624b',
											'border_radius' => '2',
											'unit'        => 'px',
										),
										'dependency'    => array( 'pcp_layout_preset|show_post_pagination|post_pagination_type', '!=|==|!=', 'carousel_layout|true|infinite_scroll', true ),
									),
									array(
										'id'         => 'pagination_alignment',
										'type'       => 'button_set',
										'title'      => __( 'Alignment', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Choose pagination alignment.', 'smart-post-show-pro' ),
										'options'    => array(
											'left'   => '<i class="fa fa-align-left" title="Left"></i>',
											'center' => '<i class="fa fa-align-center" title="Center"></i>',
											'right'  => '<i class="fa fa-align-right" title="Right"></i>',
										),
										'default'    => 'left',
										'dependency' => array( 'pcp_layout_preset|show_post_pagination', '!=|==', 'carousel_layout|true', true ),
									),
									array(
										'id'         => 'pagination_margin',
										'type'       => 'spacing',
										'title'      => __( 'Margin', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Set margin for the pagination.', 'smart-post-show-pro' ),
										'sanitize'   => 'pcp_sanitize_number_array_field',
										'default'    => array(
											'top'    => '0',
											'right'  => '0',
											'bottom' => '0',
											'left'   => '0',
										),
										'dependency' => array( 'pcp_layout_preset|show_post_pagination', '!=|==', 'carousel_layout|true', true ),
									),
								),
							),
							array(
								'title'  => __( 'Advertisement', 'smart-post-show-pro' ),
								'icon'   => '<i class="sps-icon-ad" aria-hidden="true"></i>',
								'fields' => array(
									array(
										'id'         => 'show_adv',
										'class'      => 'show_adv',
										'type'       => 'switcher',
										'title'      => __( 'Display Advertisement', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Show/hide advertisement settings.', 'smart-post-show-pro' ),
										'text_on'    => __( 'Show', 'smart-post-show-pro' ),
										'text_off'   => __( 'Hide', 'smart-post-show-pro' ),
										'text_width' => 80,
									),
									array(
										'id'         => 'adv_position',
										'type'       => 'radio',
										'title'      => __( 'Advertisement Position', 'smart-post-show-pro' ),
										'subtitle'   => __( 'Set a position for the advertisement.', 'smart-post-show-pro' ),
										'options'    => array(
											'random' => __( 'Random', 'smart-post-show-pro' ),
											'manual' => __( 'Manual', 'smart-post-show-pro' ),
										),
										'default'    => 'random',
										'dependency' => array( 'show_adv', '==', 'true', 'all' ),
									),
									array(
										'id'         => 'adv_position_number',
										'title'      => __( 'Advertisements Position number', 'smart-post-show-pro' ),
										'type'       => 'text',
										'subtitle'   => __( 'Set numeric positions (separate by comma, in increasing order) to show ads on each page.', 'smart-post-show-pro' ),
										'default'    => '1',
										'min'        => 1,
										'dependency' => array( 'show_adv|adv_position', '==|==', 'true|manual', 'all' ),
									),
									array(
										'id'         => 'repeat_ads',
										'title'      => __( 'Repeat Advertisements', 'smart-post-show-pro' ),
										'type'       => 'spinner',
										'subtitle'   => __( 'Set how many times ads will repeat.', 'smart-post-show-pro' ),
										'sanitize'   => 'pcp_sanitize_number_field',
										'default'    => '1',
										'min'        => 1,
										'dependency' => array( 'show_adv', '==', 'true', 'all' ),
									),
									array(
										'id'           => 'sps_ads',
										'type'         => 'group',
										'class'        => 'advertisements_group',
										'button_title' => __( 'Add New Ads', 'smart-post-show-pro' ),
										'title'        => __( 'Advertisements', 'smart-post-show-pro' ),
										'dependency'   => array( 'show_adv', '==', 'true', 'all' ),
										'accordion_title_number' => true,
										'accordion_title_auto' => false,
										'accordion_title_prefix' => __( 'Ads', 'smart-post-show-pro' ),
										'fields'       => array(
											array(
												'id'       => 'ads_content',
												'type'     => 'code_editor',
												'settings' => array(
													'icon' => 'fa fa-sliders',
													'theme' => 'mbo',
												),
											),
										),
									),
								),
							),
						),
					),
					array(
						'type'    => 'subheading',
						'class'   => 'pcp_filter_btn_color hidden',
						'content' => __( 'Live Filter Button', 'smart-post-show-pro' ),
					),
				), // End of fields array.
			)
		); // Display settings section end.
	}
}
