<?php

$styles = Publisher_Theme_Styles_Manager::get_styles();

/**
 * => Template Options
 */
$fields[]                        = array(
	'name' => __( 'General', 'publisher' ),
	'id'   => 'general_settings',
	'type' => 'tab',
	'icon' => 'bsai-global',
);
$fields['style']                 = array(
	'name'             => __( 'Pre-defined Styles', 'publisher' ),
	'id'               => 'style',
	'type'             => 'select_popup',
	'deferred-options' => array(
		'callback' => 'publisher_styles_config',
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Pre-defined Style', 'publisher' ),
		'box_pre_title' => __( 'Active style', 'publisher' ),
		'box_button'    => __( 'Change Style', 'publisher' ),
	),
	'desc'             => __( 'Select a pre-made style. Actually each style is a theme!', 'publisher' ),
	'confirm_changes'  => true,
	'confirm_texts'    => array(
		'header'        => __( 'Do you want to change style?', 'publisher' ),
		'button_ok'     => __( 'Yes, Change', 'publisher' ),
		'button_cancel' => __( 'Cancel', 'publisher' ),
		'title'         => __( 'With changing style following option will be changed.', 'publisher' ),

		'caption' => __( '%s Style', 'publisher' ),

		'list_items' => array(
			__( 'Color settings', 'publisher' ),
			__( 'Typography options', 'publisher' ),
			__( 'Page layout, Header and Footer option', 'publisher' ),
		),

		'notice' => __( 'Please note your homepage, posts, logo and other options will not changed.', 'publisher' )
	),
	'column_class'     => 'three-column',
);
$fields['section_heading_style'] = array(
	'name'             => __( 'Blocks & Widgets Heading Style', 'publisher' ),
	'desc'             => __( 'Select widgets header style.', 'publisher' ),
	'id'               => 'section_heading_style',
	'style'            => $styles,
	'type'             => 'select_popup',
	'column_class'     => 'one-column social-share-select-modal',
	'deferred-options' => array(
		'callback' => 'publisher_cb_heading_option_list',
		'args'     => array(
			false
		),
	),
);
$fields['layout_style']          = array(
	'name'          => __( 'Page Boxed Style', 'publisher' ),
	'id'            => 'layout_style',
	'style'         => $styles,
	'save_default'  => false,
	'type'          => 'select',
	'section_class' => 'style-floated-left bordered',
	'desc'          => __( 'Select whether you want a boxed or a full width layout. Default option image shows what default style selected in theme options.', 'publisher' ),
	'options'       => array(
		'full-width' => __( 'Full Width', 'publisher' ),
		'boxed'      => __( 'Boxed', 'publisher' ),
	),
);

$fields[]                       = array(
	'name'  => __( 'Site Width', 'publisher' ),
	'id'    => 'custom_width_heading',
	'type'  => 'group',
	'state' => 'open',
);
$fields['custom_width']         = array(
	'name'           => '',
	'id'             => 'custom_width',
	'type'           => 'custom',
	'input_callback' => 'publisher_cb_custom_width_field',
	'section_class'  => 'full-width-controls',
);
$fields['layout-2-col']         = array(
	'id'    => 'layout-2-col',
	'style' => $styles,
);
$fields['layout-3-col']         = array(
	'id'    => 'layout-3-col',
	'style' => $styles,
);
$fields['layout_columns_space'] = array(
	'name'   => __( 'Columns Gap', 'publisher' ),
	'id'     => 'layout_columns_space',
	'type'   => 'text',
	'style'  => $styles,
	'desc'   => __( 'Enter space between columns.', 'publisher' ),
	'suffix' => __( 'Pixel', 'publisher' ),
);

$fields[]                          = array(
	'name'  => __( 'General', 'publisher' ),
	'type'  => 'group',
	'state' => 'open',
);
$fields['general_layout']          = array(
	'name'             => __( 'Site Layout', 'publisher' ),
	'id'               => 'general_layout',
	'type'             => 'select_popup',
	'desc'             => __( 'Select the layout you want, whether a single column or a 2 column. It affects every page and the whole layout. This option can be overridden on all sections.', 'publisher' ),
	'deferred-options' => 'publisher_layout_option_list',
	'texts'            => array(
		'modal_title'   => __( 'Choose Site Layout', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected layout', 'publisher' ),
		'box_button'    => __( 'Change layout', 'publisher' ),
	),
	'column_class'     => 'four-column',
);
$fields['general_listing']         = array(
	'name'             => __( 'Site Listing', 'publisher' ),
	'id'               => 'general_listing',
	'style'            => $styles,
	'type'             => 'select_popup',
	'desc'             => __( 'Select general listing of site.', 'publisher' ),
	'deferred-options' => 'publisher_listing_option_list',
	'texts'            => array(
		'modal_title'   => __( 'Choose Site Listing', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected listing', 'publisher' ),
		'box_button'    => __( 'Change listing', 'publisher' ),
	),
	'column_class'     => 'three-column',
);
$fields['general_listing_excerpt'] = array(
	'name'    => __( 'Show Excerpt?', 'publisher' ),
	'id'      => 'general_listing_excerpt',
	'type'    => 'select',
	'desc'    => __( 'Select show or hide post excerpt in listings with excerpt.', 'publisher' ),
	'options' => array(
		'show' => __( 'Yes, Show.', 'publisher' ),
		'hide' => __( 'No.', 'publisher' ),
	)
);
$fields['pagination_type']         = array(
	'name'             => __( 'Pagination', 'publisher' ),
	'id'               => 'pagination_type',
	'type'             => 'select',
	'desc'             => __( 'Select pagination type of site.', 'publisher' ),
	'deferred-options' => 'publisher_pagination_option_list',
);
$fields['back_to_top']             = array(
	'name'    => __( 'Show Back To Top Button', 'publisher' ),
	'id'      => 'back_to_top',
	'type'    => 'select',
	'desc'    => __( 'Select show or hide "back to top" button.', 'publisher' ),
	'options' => array(
		'show' => __( 'Yes, Show.', 'publisher' ),
		'hide' => __( 'No.', 'publisher' ),
	)
);
$fields['light_box_images']        = array(
	'name'    => __( 'Light Box For Images', 'publisher' ),
	'id'      => 'light_box_images',
	'type'    => 'select',
	'desc'    => __( 'Activate opening images full size in light box.', 'publisher' ),
	'options' => array(
		'enable'  => __( 'Enable', 'publisher' ),
		'disable' => __( 'Disable', 'publisher' ),
	)
);
$fields['sticky_sidebar']          = array(
	'name'    => __( 'Sticky Sidebar', 'publisher' ),
	'id'      => 'sticky_sidebar',
	'type'    => 'select',
	'desc'    => __( 'You can make sidebars sticky with enabling this option.', 'publisher' ),
	'options' => array(
		'enable'  => __( 'Enable', 'publisher' ),
		'disable' => __( 'Disable', 'publisher' ),
	)
);

$fields[] = array(
	'type' => 'group_close',
);
$fields[] = array(
	'name'   => __( 'Single', 'publisher' ),
	'type'   => 'heading',
	'layout' => 'style-2',
);

/**
 * -> Posts
 **/
$fields[]                            = array(
	'name'  => __( 'Post', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
);
$fields['post_layout']               = array(
	'name'             => __( 'Posts Page Layout', 'publisher' ),
	'id'               => 'post_layout',
	'style'            => $styles,
	'type'             => 'select_popup',
	'desc'             => __( 'Override posts page layout. This overrides "Site Layout".', 'publisher' ),
	'deferred-options' => array(
		'callback' => 'publisher_layout_option_list',
		'args'     => array(
			true
		),
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Posts Layout', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected layout', 'publisher' ),
		'box_button'    => __( 'Change layout', 'publisher' ),
	),
	'column_class'     => 'four-column',
);
$fields['post_template']             = array(
	'name'             => __( 'Post Template', 'publisher' ),
	'id'               => 'post_template',
	'style'            => $styles,
	'type'             => 'select_popup',
	'section_class'    => 'style-floated-left bordered',
	'desc'             => __( 'Select default template for single posts.', 'publisher' ),
	'deferred-options' => array(
		'callback' => 'publisher_get_single_template_option',
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Post Template', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected Template', 'publisher' ),
		'box_button'    => __( 'Change Template', 'publisher' ),
	),
	'column_class'     => 'three-column',
);
$fields['post-page-settings']        = array(
	'name'            => __( 'Single Post Settings', 'publisher' ),
	'desc'            => __( 'You can enable sections you want to show in post page and also you can customize some of them.', 'publisher' ),
	'id'              => 'post-page-settings',
	'container_class' => 'advanced-block-settings post-block-options',
	'section_class'   => 'width-70',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'post-page-settings',
			)
		),
	),
);
$fields['post_next_prev']            = array(
	'name'    => __( 'Show Next/Prev Posts Link', 'publisher' ),
	'id'      => 'post_next_prev',
	'desc'    => __( 'Enabling this will add Next/Prev posts link to the bottom of post.', 'publisher' ),
	'type'    => 'select',
	'options' => array(
		'style-1' => __( 'Show', 'publisher' ),
		'hide'    => __( 'Hide', 'publisher' ),
	)
);
$fields['post_pagination_position']  = array(
	'name'    => __( 'Paginated posts "pagination" position', 'publisher' ),
	'id'      => 'post_pagination_position',
	'desc'    => __( 'Change position of paginated posts pagination.', 'publisher' ),
	'type'    => 'select',
	'options' => array(
		'top'    => __( 'Top', 'publisher' ),
		'bottom' => __( 'Bottom', 'publisher' ),
		'both'   => __( 'Both Top & Bottom', 'publisher' ),
	)
);
$fields['post_featured_image_link']  = array(
	'name'    => __( 'Featured images click action (clickable?)', 'publisher' ),
	'id'      => 'post_featured_image_link',
	'desc'    => __( 'Change click action on featured image in posts.', 'publisher' ),
	'type'    => 'select',
	'options' => array(
		'none'     => __( 'Not Clickable', 'publisher' ),
		'lightbox' => __( 'Open full image in Lightbox', 'publisher' ),
		'new_tab'  => __( 'Open full image in new tab', 'publisher' ),
	),
	'show_on' => array(
		array(
			'post_template=style-1',
		),
		array(
			'post_template=style-10',
		),
		array(
			'post_template=style-13',
		),
		array(
			'post_template=style-12',
		),
	),
);
$fields['post_featured_image_cut']   = array(
	'name'    => __( 'Featured images resize or full version?', 'publisher' ),
	'id'      => 'post_featured_image_cut',
	'desc'    => __( 'Show full version or resize version of featured image. <br><p style="color: red;"><strong>Note:</strong> This works only in post template 1 and 10.</p>', 'publisher' ),
	'type'    => 'select',
	'options' => array(
		'resized' => __( 'Resized version', 'publisher' ),
		'full'    => __( 'Full Version', 'publisher' ),
	),
);
$fields['post_continue_reading']     = array(
	'name' => __( 'Show Continue Reading Button on Mobile Devices?', 'publisher' ),
	'desc' => __( 'By enabling this option, posts content will not be shown completely in mobile devices and it will add enough space to show Ads at the bottom of posts.', 'publisher' ),
	'id'   => 'post_continue_reading',
	'type' => 'switch',
);
$fields[]                            = array(
	'name'  => __( 'Related Posts', 'publisher' ),
	'type'  => 'group',
	'level' => 2,
	'state' => 'close',
);
$fields['post_related']              = array(
	'name'    => __( 'Related Posts', 'publisher' ),
	'id'      => 'post_related',
	'desc'    => __( 'Enabling this will add related posts at the bottom of post content.', 'publisher' ),
	'type'    => 'select',
	'options' => array(
		'show'                  => __( 'Show - Simple', 'publisher' ),
		'infinity-related-post' => __( 'Show - Infinity Ajax Load', 'publisher' ),
		'hide'                  => __( 'Hide', 'publisher' ),
	),
);
$fields['post_related_type']         = array(
	'name'    => __( 'Related Posts Algorithm', 'publisher' ),
	'id'      => 'post_related_type',
	'desc'    => __( 'Choose an algorithm for selecting related posts.', 'publisher' ),
	'type'    => 'select',
	'options' => array(
		'cat'            => __( 'by Category', 'publisher' ),
		'tag'            => __( 'by Tag', 'publisher' ),
		'author'         => __( 'by Author', 'publisher' ),
		'cat-tag'        => __( 'by Category & Tag', 'publisher' ),
		'cat-tag-author' => __( 'by Category, Tag & Author', 'publisher' ),
		'random'         => __( 'Randomly', 'publisher' ),
	),
	'show_on' => array(
		array( 'post_related!=hide' )
	),
);
$fields['post_related_count']        = array(
	'name'    => __( 'Related Posts Count', 'publisher' ),
	'id'      => 'post_related_count',
	'desc'    => __( 'Enter related posts count.', 'publisher' ),
	'type'    => 'text',
	'show_on' => array(
		array( 'post_related=show' )
	),
);
$fields['ajaxified_related_count']   = array(
	'name'    => __( 'Ajaxified Related Posts Count', 'publisher' ),
	'id'      => 'ajaxified_related_count',
	'desc'    => __( 'Enter related posts count.', 'publisher' ),
	'type'    => 'text',
	'show_on' => array(
		array( 'post_related=infinity-related-post' )
	),
);
$fields['ajaxified_related_offset']  = array(
	'name'    => __( 'Ajaxified Related Posts Offset', 'publisher' ),
	'id'      => 'ajaxified_related_offset',
	'desc'    => __( 'Start the count with an offset. If you have a block that shows 4 posts before this one, you can make this one start from the 5\'th post (by using offset 4)', 'publisher' ),
	'type'    => 'text',
	'show_on' => array(
		array( 'post_related=infinity-related-post' )
	),
);
$fields['post_related_offset']       = array(
	'name'    => __( 'Offset posts', 'publisher' ),
	'id'      => 'post_related_offset',
	'desc'    => __( 'Start the count with an offset. If you have a block that shows 4 posts before this one, you can make this one start from the 5\'th post (by using offset 4)', 'publisher' ),
	'type'    => 'text',
	'show_on' => array(
		array( 'post_related=show' )
	),
);
$fields['post_related_author_posts'] = array(
	'name'    => __( 'Related Posts -> More From Author', 'publisher' ),
	'id'      => 'post_related_author_posts',
	'desc'    => __( 'Show/Hide "More From Author" in related posts section.', 'publisher' ),
	'type'    => 'select',
	'options' => array(
		'show' => __( 'Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	),
	'show_on' => array(
		array( 'post_related=show' )
	),
);
$fields['post_related_pagination']   = array(
	'name'    => __( 'Show Pagination?', 'publisher' ),
	'id'      => 'post_related_pagination',
	'desc'    => __( 'Chose the type of related posts pagination or disable it.', 'publisher' ),
	'type'    => 'select',
	'options' => array(
		''          => __( 'Disable', 'publisher' ),
		'next_prev' => __( 'Next/Prev Button', 'publisher' ),
		'more_btn'  => __( 'Load More Button', 'publisher' ),
	),
	'show_on' => array(
		array( 'post_related=show' )
	),
);


// Inline Related Posts
$fields[]                              = array(
	'name'  => __( 'Inline related posts', 'publisher' ),
	'type'  => 'group',
	'level' => 2,
	'state' => 'close',
);
$fields['inline_related_posts_status'] = array(
	'name'    => __( 'Show Inline Related Posts?', 'publisher' ),
	'id'      => 'inline_related_posts_status',
	'type'    => 'select',
	'options' => array(
		'show' => __( 'Yes, Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	),
);
$fields['inline_related_posts']        = array(
	'name'          => '',
	'id'            => 'inline_related_posts',
	'type'          => 'repeater',
	'add_label'     => '<i class="fa fa-plus"></i> ' . __( 'Add New Inline Related Post', 'publisher' ),
	'delete_label'  => __( 'Delete', 'publisher' ),
	'item_title'    => __( 'Inline Related Post', 'publisher' ),
	'section_class' => 'full-with-both',
	'std'           => array(
		array(
			'heading'          => '',
			'type'             => 'cat',
			'position'         => 'middle',
			'paragraph'        => '',
			'align'            => 'left',
			'listing'          => 'thumbnail-1',
			'count'            => '',
			'offset'           => '',
			'pagination'       => 'none',
			'pagination_label' => '1',
		),
	),
	'default'       => array(
		array(
			'heading'          => '',
			'type'             => 'cat',
			'position'         => 'middle',
			'paragraph'        => '',
			'align'            => 'left',
			'listing'          => 'thumbnail-1',
			'count'            => '',
			'offset'           => '',
			'pagination'       => 'none',
			'pagination_label' => '1',
		),
	),
	'options'       => array(
		'heading'          => array(
			'name' => __( 'Custom Heading', 'publisher' ),
			'id'   => 'heading',
			'desc' => sprintf(
				__( 'Enter your custom heading for inline related posts section. <br> <strong style="color:#000;">Default heading:</strong> %s', 'publisher' ),
				publisher_translation_get( 'read_more' )
			),
			'type' => 'text',
		),
		'listing'          => array(
			'name'             => __( 'Related Posts Listing', 'publisher' ),
			'desc'             => __( 'Choose a listing for inline related posts.', 'publisher' ),
			'id'               => 'listing',
			'type'             => 'select_popup',
			'deferred-options' => array(
				'callback' => 'publisher_irp_listing_option_list',
				'args'     => array(
					false
				),
			),
			'texts'            => array(
				'modal_title'   => __( 'Inline Related Post Listing', 'publisher' ),
				'modal_current' => __( 'Current', 'publisher' ),
				'modal_button'  => __( 'Select', 'publisher' ),
				'box_pre_title' => __( 'Selected listing', 'publisher' ),
				'box_button'    => __( 'Change listing', 'publisher' ),
			),
		),
		'type'             => array(
			'name'    => __( 'Related Posts Algorithm', 'publisher' ),
			'id'      => 'type',
			'desc'    => __( 'Choose a algorithm for selecting related posts.', 'publisher' ),
			'type'    => 'select',
			'options' => array(
				'cat'            => __( 'by Category', 'publisher' ),
				'tag'            => __( 'by Tag', 'publisher' ),
				'author'         => __( 'by Author', 'publisher' ),
				'cat-tag'        => __( 'by Category & Tag', 'publisher' ),
				'cat-tag-author' => __( 'by Category, Tag & Author', 'publisher' ),
				'random'         => __( 'Randomly', 'publisher' ),
			),
		),
		'position'         => array(
			'name'    => __( 'Related Posts Position', 'publisher' ),
			'desc'    => __( 'Choose the position of related post inside post content. Middle or after x paragraph?', 'publisher' ),
			'id'      => 'position',
			'type'    => 'select',
			'options' => array(
				'middle' => __( 'Middle of post content', 'publisher' ),
				'custom' => __( 'After X Paragraph', 'publisher' ),
			),
		),
		'paragraph'        => array(
			'name'       => __( 'After Paragraph?', 'publisher' ),
			'desc'       => __( 'Content of each post will analyzed and it will inject related posts after the selected number of paragraphs.', 'publisher' ),
			'input-desc' => __( 'After how many paragraphs the ad will display.', 'publisher' ),
			'id'         => 'paragraph',
			'type'       => 'text',
			'show_on'    => array(
				array( 'position=custom' )
			),
		),
		'align'            => array(
			'name'    => __( 'Align?', 'publisher' ),
			'desc'    => __( 'Select align of related posts.', 'publisher' ),
			'id'      => 'align',
			'type'    => 'select',
			'options' => array(
				'left'   => is_rtl() ? __( 'Right', 'publisher' ) : __( 'Left', 'publisher' ),
				'center' => __( 'Center', 'publisher' ),
				'right'  => is_rtl() ? __( 'Left', 'publisher' ) : __( 'Right', 'publisher' ),
			),
			'show_on' => array(
				array( 'listing=thumbnail-1-full' ),
				array( 'listing!=thumbnail-2-full' ),
				array( 'listing!=thumbnail-3-full' ),
				array( 'listing!=text-1-full' ),
				array( 'listing!=text-2-full' ),
				array( 'listing!=text-3-full' ),
				array( 'listing!=text-4-full' ),
			),
		),
		'count'            => array(
			'name' => __( 'Posts Count', 'publisher' ),
			'desc' => __( 'Enter related posts count.', 'publisher' ),
			'id'   => 'count',
			'type' => 'text',
		),
		'offset'           => array(
			'name' => __( 'Offset posts', 'publisher' ),
			'id'   => 'offset',
			'desc' => __( 'Start the count with an offset. If you have a block that shows 4 posts before this one, you can make this one start from the 5\'th post (by using offset 4)', 'publisher' ),
			'type' => 'text',
		),
		'pagination'       => array(
			'name'    => __( 'Show Pagination?', 'publisher' ),
			'desc'    => __( 'Select pagination type.', 'publisher' ),
			'id'      => 'pagination',
			'type'    => 'select',
			'options' => array(
				'none'      => __( 'No Pagination', 'publisher' ),
				'next_prev' => __( 'Next Prev Buttons', 'publisher' ),
			),
		),
		'pagination_label' => array(
			'name'    => __( 'Show pagination number label', 'publisher' ),
			'desc'    => __( 'Shows current page and total pages count.', 'publisher' ),
			'id'      => 'pagination_label',
			'type'    => 'switch',
			'show_on' => array(
				array(
					'pagination=next_prev'
				)
			),
		),
	),
	'show_on'       => array(
		array( 'inline_related_posts_status=show' )
	),
);

// More Stories
$fields[]                       = array(
	'name'  => __( 'More Stories', 'publisher' ),
	'type'  => 'group',
	'level' => 2,
	'state' => 'close',
);
$fields['more_stories']         = array(
	'name'    => __( 'Show More Stories?', 'publisher' ),
	'desc'    => __( 'More Stories increases the chance that visitors keep reading more posts in your website.', 'publisher' ),
	'id'      => 'more_stories',
	'type'    => 'select',
	'options' => array(
		'show' => __( 'Yes, Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	),
);
$fields['more_stories_type']    = array(
	'name'    => __( 'More Stories Algorithm', 'publisher' ),
	'desc'    => __( 'Choose an algorithm for selecting "more stories" posts. In every single post, you can override this setting or select to show posts with specific keyword.', 'publisher' ),
	'id'      => 'more_stories_type',
	'type'    => 'select',
	'options' => array(
		'cat'            => __( 'by Category', 'publisher' ),
		'tag'            => __( 'by Tag', 'publisher' ),
		'author'         => __( 'by Author', 'publisher' ),
		'cat-tag'        => __( 'by Category & Tag', 'publisher' ),
		'cat-tag-author' => __( 'by Category, Tag & Author', 'publisher' ),
		'random'         => __( 'Randomly', 'publisher' ),
	),
	'show_on' => array(
		array( 'more_stories=show' )
	),
);
$fields['more_stories_listing'] = array(
	'name'             => __( 'More Stories Listing', 'publisher' ),
	'desc'             => __( 'Choose the listing of more stories. You can override it in posts.', 'publisher' ),
	'id'               => 'more_stories_listing',
	'style'            => $styles,
	'type'             => 'select_popup',
	'deferred-options' => array(
		'callback' => 'publisher_more_stories_listing_option_list',
		'args'     => array(
			false
		),
	),
	'texts'            => array(
		'modal_title'   => __( 'More Stories Listing', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected listing', 'publisher' ),
		'box_button'    => __( 'Change listing', 'publisher' ),
	),
	'show_on'          => array(
		array( 'more_stories=show' )
	),
);
$fields['more_stories_count']   = array(
	'name'    => __( 'Posts Count', 'publisher' ),
	'id'      => 'more_stories_count',
	'desc'    => __( 'Enter posts count.', 'publisher' ),
	'type'    => 'text',
	'show_on' => array(
		array( 'more_stories=show' )
	),
);

$fields['more_stories_offset']           = array(
	'name'    => __( 'Offset posts', 'publisher' ),
	'id'      => 'more_stories_offset',
	'desc'    => __( 'Start the count with an offset. If you have a block that shows 4 posts before this one, you can make this one start from the 5\'th post (by using offset 4)', 'publisher' ),
	'type'    => 'text',
	'show_on' => array(
		array( 'more_stories=show' )
	),
);
$fields['more_stories_pagination']       = array(
	'name'    => __( 'Show Pagination?', 'publisher' ),
	'id'      => 'more_stories_pagination',
	'type'    => 'select',
	'desc'    => __( 'Select pagination type of more stories.', 'publisher' ),
	'options' => array(
		'none'      => __( 'No Pagination', 'publisher' ),
		'next_prev' => __( 'Next Prev Buttons', 'publisher' ),
	),
	'show_on' => array(
		array( 'more_stories=show' )
	),
);
$fields['more_stories_pagination_label'] = array(
	'name'    => __( 'Show pagination number label', 'publisher' ),
	'desc'    => __( 'Show or hide current page and total pages of more stories.', 'publisher' ),
	'id'      => 'more_stories_pagination_label',
	'type'    => 'switch',
	'show_on' => array(
		array(
			'more_stories=show',
			'more_stories_pagination=next_prev'
		)
	),
);
$fields['more_stories_close']            = array(
	'name'    => __( 'Close More Stories For?', 'publisher' ),
	'desc'    => __( 'More stories will not be shown for x time if user clicks on close button!', 'publisher' ),
	'id'      => 'more_stories_close',
	'type'    => 'select',
	'options' => array(
		'always'  => __( 'Always Show', 'publisher' ),
		'session' => __( 'When the browsing session ends', 'publisher' ),
		'1H'      => __( 'One Hour', 'publisher' ),
		'12H'     => __( '12 Hour', 'publisher' ),
		'1D'      => __( 'One Day', 'publisher' ),
		'2D'      => __( 'Two Day', 'publisher' ),
		'3D'      => __( 'Three Day', 'publisher' ),
		'4D'      => __( 'Four Day', 'publisher' ),
		'5D'      => __( 'Five Day', 'publisher' ),
		'6D'      => __( 'Six Day', 'publisher' ),
		'1W'      => __( 'One Week', 'publisher' ),
		'2W'      => __( 'Two Week', 'publisher' ),
	),
	'show_on' => array(
		array( 'more_stories=show' )
	),
);
$fields['more_stories_position']         = array(
	'name'    => __( 'More Stories Position', 'publisher' ),
	'desc'    => __( 'Choose more stories position.', 'publisher' ),
	'id'      => 'more_stories_position',
	'type'    => 'select',
	'options' => array(
		'right' => is_rtl() ? __( 'left', 'publisher' ) : __( 'Right', 'publisher' ),
		'left'  => is_rtl() ? __( 'Right', 'publisher' ) : __( 'left', 'publisher' ),
	),
	'show_on' => array(
		array( 'more_stories=show' )
	),
);
$fields['more_stories_scroll_top']       = array(
	'name'    => __( 'Display More Stories After x Pixel Scroll', 'publisher' ),
	'desc'    => __( 'More stories will be shown after 450 pixel scroll but you can change it here.', 'publisher' ),
	'id'      => 'more_stories_scroll_top',
	'type'    => 'text', // text-count
	'min'     => 1,
	'suffix'  => __( 'Pixel', 'publisher' ),
	'show_on' => array(
		array( 'more_stories=show' )
	),
);


/**
 * Comments
 */
$fields[]                              = array(
	'name'  => __( 'Comments', 'publisher' ),
	'type'  => 'group',
	'level' => 2,
	'state' => 'close',
);
$fields['post_comments']               = array(
	'name'    => __( 'Show Comments', 'publisher' ),
	'id'      => 'post_comments',
	'desc'    => __( 'Select to show or hide comments in bottom of post content.', 'publisher' ),
	'type'    => 'select',
	'options' => array(
		'show-simple'    => __( 'Show, Normal Comments', 'publisher' ),
		'show-ajaxified' => __( 'Ajax - Show Comments Button', 'publisher' ),
		'hide'           => __( 'Hide', 'publisher' ),
	),
);
$fields['multiple_comments']           = array(
	'name'    => __( 'Multiple Comment', 'publisher' ),
	'desc'    => __( 'You can show multiple commenting platforms at the same time to increase interaction between your site with visitors.', 'publisher' ),
	'id'      => 'multiple_comments',
	'type'    => 'select',
	'options' => array(
		'disable' => __( 'Disable', 'publisher' ),
		'enable'  => __( 'Active', 'publisher' ),
	),
);
$fields['multiple_comments_providers'] = array(
	'name'             => __( 'Multiple Comment Providers', 'publisher' ),
	'desc'             => __( 'Sort and activate comment providers to show multiple comment system at the same time for your site readers.', 'publisher' ),
	'id'               => 'multiple_comments_providers',
	'type'             => 'sorter_checkbox',
	'deferred-options' => array(
		'callback' => 'publisher_multiple_comments_choices',
	),
	'section_class'    => 'bs-theme-social-share-sorter',
	'show_on'          => array(
		array(
			'multiple_comments=enable'
		)
	)
);

// Smart and user friendly notice
$_deactive = array();
if ( ! is_callable( 'Better_Facebook_Comments::factory' ) ) {
	$_deactive['facebook'] = __( 'Better Facebook Comments', 'publisher' );
}
if ( ! is_callable( 'Better_Disqus_Comments::factory' ) ) {
	$_deactive['disqus'] = __( 'Better Disqus Comments', 'publisher' );
}
if ( ! empty( $_deactive ) ) {
	if ( bf_count( $_deactive ) == 2 ) {
		$fields['multiple_comments_providers']['input-desc'] =
			sprintf( __( '<p style="color: #636363;"><strong style="color: red;">Required</strong>: "<strong>%s</strong>" plugin.<br><strong style="color: red;">Required:</strong>: "<strong>%s</strong>" plugin.</p>' ), $_deactive['facebook'], $_deactive['disqus'] );
	} else {
		$_deactive = current( $_deactive );

		$fields['multiple_comments_providers']['input-desc'] =
			sprintf( __( '<p style="color: #636363;"><strong style="color: red;">Required</strong>: "<strong>%s</strong>" plugin.</p>' ), $_deactive );
	}
}

$fields['post_comments_form_position']   = array(
	'name'    => __( 'Comment Form Position', 'publisher' ),
	'id'      => 'post_comments_form_position',
	'type'    => 'select',
	'desc'    => __( 'Choose new comment form position.', 'publisher' ),
	'options' => array(
		'top'    => __( 'Top of comments list.', 'publisher' ),
		'bottom' => __( 'Bottom of comments list', 'publisher' ),
		'both'   => __( 'Top & Bottom', 'publisher' ),
	),
	'show_on' => array(
		array( 'post_comments!=hide' )
	),
);
$fields['post_comments_form_remove_url'] = array(
	'name'    => __( 'Remove URL Field from Comment Form', 'publisher' ),
	'id'      => 'post_comments_form_remove_url',
	'desc'    => __( 'By enabling this, URL will be removed from comments form.', 'publisher' ),
	'type'    => 'select',
	'options' => array(
		'yes' => __( 'Yes, Remove it.', 'publisher' ),
		'no'  => __( 'No', 'publisher' ),
	),
	'show_on' => array(
		array( 'post_comments!=hide' )
	),
);

// Author Box
$fields[]                           = array(
	'name'  => __( 'Author Box', 'publisher' ),
	'type'  => 'group',
	'level' => 2,
	'state' => 'close',
);
$fields['post_author_box']          = array(
	'name'    => __( 'Show Author Box', 'publisher' ),
	'id'      => 'post_author_box',
	'desc'    => __( 'Enabling this will add post author box to the bottom of post content.', 'publisher' ),
	'type'    => 'select',
	'options' => array(
		'show' => __( 'Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	)
);
$fields['post_author_box_posts']    = array(
	'name'    => __( 'Show Author Posts Count', 'publisher' ),
	'id'      => 'post_author_box_posts',
	'type'    => 'select',
	'options' => array(
		'show' => __( 'Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	),
	'show_on' => array(
		array(
			'post_author_box=show'
		)
	),
);
$fields['post_author_box_comments'] = array(
	'name'    => __( 'Show Author Comments Count', 'publisher' ),
	'id'      => 'post_author_box_comments',
	'type'    => 'select',
	'options' => array(
		'show' => __( 'Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	),
	'show_on' => array(
		array(
			'post_author_box=show'
		)
	),
);


/**
 * -> Page
 **/
$fields[]                             = array(
	'name'  => __( 'Page', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
);
$fields['page_layout']                = array(
	'name'             => __( 'Static Pages Layout', 'publisher' ),
	'id'               => 'page_layout',
	'style'            => $styles,
	'type'             => 'select_popup',
	'desc'             => __( 'Override static pages layout.', 'publisher' ),
	'deferred-options' => array(
		'callback' => 'publisher_layout_option_list',
		'args'     => array(
			true
		),
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Pages Layout', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected layout', 'publisher' ),
		'box_button'    => __( 'Change layout', 'publisher' ),
	),
	'column_class'     => 'four-column',
);
$fields['page_comments']              = array(
	'name'    => __( 'Show Page Comments', 'publisher' ),
	'id'      => 'page_comments',
	'desc'    => __( 'Select to show or hide comments in bottom of page content.', 'publisher' ),
	'type'    => 'select',
	'options' => array(
		'show-simple'    => __( 'Show, Normal Comments', 'publisher' ),
		'show-ajaxified' => __( 'Ajax - Show Comments Button', 'publisher' ),
		'hide'           => __( 'Hide', 'publisher' ),
	),
);
$fields['page_featured_image']        = array(
	'name'    => __( 'Show Page Featured Image', 'publisher' ),
	'id'      => 'page_featured_image',
	'desc'    => __( 'Select to show or hide featured image in top of page content.', 'publisher' ),
	'type'    => 'select',
	'options' => array(
		'show' => __( 'Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	),
);
$fields['page_simple_in_pagebuilder'] = array(
	'name'    => __( 'Hide Page Title and Footer When Visual Composer Used', 'publisher' ),
	'id'      => 'page_simple_in_pagebuilder',
	'desc'    => __( 'By default, theme removes page title and footer when you have used page builder in content of that page but you can change this behaviour with this option. Also you can edit every single page and override this option.', 'publisher' ),
	'type'    => 'select',
	'options' => array(
		'hide' => __( 'Hide', 'publisher' ),
		'show' => __( 'Show, Title and Footer', 'publisher' ),
	),
);

/**
 * -> Attachment
 **/
$fields[]                            = array(
	'name'  => __( 'Attachment Page', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
);
$fields['attachment_layout']         = array(
	'name'             => __( 'Attachment Page Layout', 'publisher' ),
	'id'               => 'attachment_layout',
	'style'            => $styles,
	'type'             => 'select_popup',
	'desc'             => __( 'Change the layout of attachment pages', 'publisher' ),
	'deferred-options' => array(
		'callback' => 'publisher_layout_option_list',
		'args'     => array(
			true
		),
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Attachments Layout', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected layout', 'publisher' ),
		'box_button'    => __( 'Change layout', 'publisher' ),
	),
	'column_class'     => 'four-column',
);
$fields['attachment_images_orderby'] = array(
	'name'    => __( 'Sort Images By', 'publisher' ),
	'id'      => 'attachment_images_orderby',
	'type'    => 'select',
	'desc'    => __( 'Change the order of images in attachment page.<br><code>Note:</code> The next/prev links will not work properly if you select the random order.', 'publisher' ),
	'options' => array(
		'menu_order' => __( '-- Default Order --', 'publisher' ),
		'title'      => __( 'Title', 'publisher' ),
		'date'       => __( 'Date', 'publisher' ),
		'modified'   => __( 'Modified Date', 'publisher' ),
		'rand'       => __( 'Random', 'publisher' ),
	)
);
$fields['attachment_images_order']   = array(
	'name'    => __( 'Order Images', 'publisher' ),
	'id'      => 'attachment_images_order',
	'type'    => 'select',
	'desc'    => __( 'Designate the ascending or descending order', 'publisher' ),
	'options' => array(
		'DESC' => __( 'Ascending - order from highest to lowest values.', 'publisher' ),
		'ASC'  => __( 'Descending - order from lowest to highest.', 'publisher' ),
	)
);

$fields[] = array(
	'type' => 'group_close',
);
$fields[] = array(
	'name'   => __( 'Archive', 'publisher' ),
	'type'   => 'heading',
	'layout' => 'style-2',
);


/**
 * -> Homepage
 **/
$fields[] = array(
	'name'  => __( 'Homepage (non-static)', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
);
$fields[] = array(
	'name'      => __( 'Important Note', 'publisher' ),
	'id'        => 'homepage-info',
	'type'      => 'info',
	'std'       => __( '<p>Following options wouldn\'t work if you selected a custom page for front page but these settings will be used when you have not selected a static page for front page and the paginated pages of static homepage.</p>', 'publisher' ),
	'state'     => 'open',
	'info-type' => 'danger',
);

$fields['home_layout']                  = array(
	'name'             => __( 'Homepage Layout', 'publisher' ),
	'id'               => 'home_layout',
	'style'            => $styles,
	'type'             => 'select_popup',
	'desc'             => __( 'Override homepage layout.', 'publisher' ),
	'deferred-options' => array(
		'callback' => 'publisher_layout_option_list',
		'args'     => array(
			true
		),
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Homepage Layout', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected layout', 'publisher' ),
		'box_button'    => __( 'Change layout', 'publisher' ),
	),
	'column_class'     => 'four-column',
);
$fields['home_listing']                 = array(
	'name'             => __( 'Homepage Posts Listing', 'publisher' ),
	'id'               => 'home_listing',
	'style'            => $styles,
	'type'             => 'select_popup',
	'desc'             => __( 'Override homepage listing.', 'publisher' ),
	'deferred-options' => array(
		'callback' => 'publisher_listing_option_list',
		'args'     => array(
			true
		),
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Homepage Listing', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected listing', 'publisher' ),
		'box_button'    => __( 'Change listing', 'publisher' ),
	),
	'column_class'     => 'three-column',
);
$fields['home_listing_excerpt']         = array(
	'name'    => __( 'Show Excerpt?', 'publisher' ),
	'id'      => 'home_listing_excerpt',
	'type'    => 'select',
	'desc'    => __( 'Select show or hide post excerpt in listings with excerpt.', 'publisher' ),
	'options' => array(
		'default' => __( '-- Default --', 'publisher' ),
		'show'    => __( 'Yes, Show.', 'publisher' ),
		'hide'    => __( 'No.', 'publisher' ),
	)
);
$fields['home_cat_include']             = array(
	'name'     => __( 'Categories', 'publisher' ),
	'id'       => 'home_cat_include',
	'desc'     => __( 'Show posts associated with certain categories in homepage.', 'publisher' ),
	'type'     => 'select',
	'multiple' => true,
	'options'  => array(
		'' => __( '-- All Posts --', 'publisher' ),
		array(
			'label'   => __( 'Categories', 'publisher' ),
			'options' => array(
				'category_walker' => 'category_walker'
			),
		),
	),
);
$fields['home_cat_exclude']             = array(
	'name'     => __( 'Exclude Categories', 'publisher' ),
	'id'       => 'home_cat_exclude',
	'desc'     => __( 'Exclude categories to prevent their posts from showing in home page.', 'publisher' ),
	'type'     => 'select',
	'multiple' => true,
	'options'  => array(
		'' => __( '-- All Posts [ No Exclude ] --', 'publisher' ),
		array(
			'label'   => __( 'Categories', 'publisher' ),
			'options' => array(
				'category_walker' => 'category_walker'
			),
		),
	),
);
$fields['home_tag_include']             = array(
	'name'        => __( 'Tags', 'publisher' ),
	'id'          => 'home_tag_include',
	'desc'        => __( 'Show posts associated with certain tags in homepage.', 'publisher' ),
	'type'        => 'ajax_select',
	"callback"    => 'BF_Ajax_Select_Callbacks::tags_callback',
	"get_name"    => 'BF_Ajax_Select_Callbacks::tag_name',
	'placeholder' => __( "Search and find tag...", 'publisher' ),
);
$fields['home_custom_post_type']        = array(
	'name'       => __( 'Custom Post Type', 'publisher' ),
	'id'         => 'home_custom_post_type',
	'desc'       => __( 'You can show custom post types in home page by adding them into this field. If you make changes to this field, please don\'t forgot to add "post" to it if you need default post type shows up too.', 'publisher' ),
	'type'       => 'text',
	'input-desc' => 'Separate by ","',
);
$fields['home_posts_count']             = array(
	'name' => __( 'Number Of Post To Show', 'publisher' ),
	'id'   => 'home_posts_count',
	'desc' => sprintf( __( 'Enter number of posts per page showing in homepage. <br>Default: %s', 'publisher' ), get_option( 'posts_per_page' ) ),
	'type' => 'text',
);
$fields['home_pagination_type']         = array(
	'name'             => __( 'Homepage pagination', 'publisher' ),
	'id'               => 'home_pagination_type',
	'type'             => 'select',
	'desc'             => __( 'Select pagination of homepage.', 'publisher' ),
	'deferred-options' => array(
		'callback' => 'publisher_pagination_option_list',
		'args'     => array(
			true
		),
	),
);
$fields[]                               = array(
	'name'   => __( 'Non-static Homepage Slider', 'publisher' ),
	'type'   => 'heading',
	'layout' => 'style-2',
);
$fields['home_slider']                  = array(
	'name'             => __( 'Home Slider Type', 'publisher' ),
	'id'               => 'home_slider',
	'desc'             => __( 'Select homepage top posts blocks or custom "Slider Revolution".', 'publisher' ),
	'style'            => $styles,
	'type'             => 'select',
	'deferred-options' => array(
		'callback' => 'publisher_slider_types_option_list',
	),
);
$fields['home_top_posts']               = array(
	'name'             => __( 'Home Slider Style', 'publisher' ),
	'id'               => 'home_top_posts',
	'desc'             => __( 'Select top posts style of non-static homepage.', 'publisher' ),
	'style'            => $styles,
	'type'             => 'select_popup',
	'section_class'    => 'style-floated-left bordered',
	'deferred-options' => array(
		'callback' => 'publisher_topposts_option_list',
	),
	'show_on'          => array(
		array( 'home_slider=custom-blocks' )
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Slider', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected slider', 'publisher' ),
		'box_button'    => __( 'Change Slider', 'publisher' ),
	),
	'column_class'     => 'four-column',
);
$fields['home_top_posts_gradient']      = array(
	'name'          => __( 'Slider Overlay Gradient', 'publisher' ),
	'id'            => 'home_top_posts_gradient',
	'desc'          => __( 'Select slider overlay style.', 'publisher' ),
	'style'         => $styles,
	'type'          => 'select',
	'section_class' => 'style-floated-left bordered',
	'options'       => array(
		'colored'      => __( 'Colored Gradient', 'publisher' ),
		'colored-anim' => __( 'Animated Gradient', 'publisher' ),
		'simple-gr'    => __( 'Simple Gradient', 'publisher' ),
		'simple'       => __( 'Simple', 'publisher' ),
	),
	'show_on'       => array(
		array( 'home_slider=custom-blocks' )
	),
);
$fields['home_rev_slider_item']         = array(
	'name'             => __( 'Home Top Slider Revolution', 'publisher' ),
	'id'               => 'home_rev_slider_item',
	'desc'             => __( 'Select a "Slider Revolution" slider for non-static homepage.', 'publisher' ),
	'style'            => $styles,
	'type'             => 'select',
	'section_class'    => 'style-floated-left bordered',
	'deferred-options' => array(
		'callback' => 'bf_deferred_option_get_rev_sliders',
		'args'     => array(
			array(
				'default' => true
			)
		)
	),
	'show_on'          => array(
		array( 'home_slider=rev_slider' )
	),
);
$fields['home_top_posts_query']         = array(
	'name'          => __( 'Slider Posts Query', 'publisher' ),
	'id'            => 'home_top_posts_query',
	'desc'          => __( 'By default, Theme shows first posts of homepage query in slider but you can change to show custom posts.', 'publisher' ),
	'style'         => $styles,
	'type'          => 'select',
	'section_class' => 'style-floated-left bordered',
	'options'       => array(
		'default' => __( 'Default homepage query', 'publisher' ),
		'custom'  => __( 'Custom Query', 'publisher' ),
	),
	'show_on'       => array(
		array( 'home_slider=custom-blocks' )
	),
);
$fields[]                               = array(
	'name'    => __( 'Home Slider Custom Query', 'publisher' ),
	'type'    => 'group',
	'level'   => '2',
	'state'   => 'open',
	'show_on' => array(
		array( 'home_slider=custom-blocks', 'home_top_posts_query=custom' )
	),
);
$fields['home_slider_cat_include']      = array(
	'name'     => __( 'Categories', 'publisher' ),
	'id'       => 'home_slider_cat_include',
	'desc'     => __( 'Show posts associated with certain categories in homepage slider.', 'publisher' ),
	'type'     => 'select',
	'multiple' => true,
	'options'  => array(
		'' => __( '-- All Posts --', 'publisher' ),
		array(
			'label'   => __( 'Categories', 'publisher' ),
			'options' => array(
				'category_walker' => 'category_walker'
			),
		),
	),
	'show_on'  => array(
		array( 'home_slider=custom-blocks', 'home_top_posts_query=custom' )
	),
);
$fields['home_slider_cat_exclude']      = array(
	'name'     => __( 'Exclude Categories', 'publisher' ),
	'id'       => 'home_slider_cat_exclude',
	'desc'     => __( 'Exclude showing posts of specific categories in homepage slider.', 'publisher' ),
	'type'     => 'select',
	'multiple' => true,
	'options'  => array(
		'' => __( '-- All Posts [ No Exclude ] --', 'publisher' ),
		array(
			'label'   => __( 'Categories', 'publisher' ),
			'options' => array(
				'category_walker' => 'category_walker'
			),
		),
	),
	'show_on'  => array(
		array( 'home_slider=custom-blocks', 'home_top_posts_query=custom' )
	),
);
$fields['home_slider_tag_include']      = array(
	'name'        => __( 'Tags', 'publisher' ),
	'id'          => 'home_slider_tag_include',
	'desc'        => __( 'Show posts associated with certain tags in homepage sldier.', 'publisher' ),
	'type'        => 'ajax_select',
	"callback"    => 'BF_Ajax_Select_Callbacks::tags_callback',
	"get_name"    => 'BF_Ajax_Select_Callbacks::tag_name',
	'placeholder' => __( "Search and find tag...", 'publisher' ),
	'show_on'     => array(
		array( 'home_slider=custom-blocks', 'home_top_posts_query=custom' )
	),
);
$fields['home_slider_custom_post_type'] = array(
	'name'       => __( 'Custom Post Type', 'publisher' ),
	'id'         => 'home_slider_custom_post_type',
	'desc'       => __( 'You can show custom post types in home page by adding them into this field. please don\'t forgot to add "post" to it if you changed this and need to default post type shown also.', 'publisher' ),
	'type'       => 'text',
	'input-desc' => 'Separate by ","',
	'show_on'    => array(
		array( 'home_slider=custom-blocks', 'home_top_posts_query=custom' )
	),
);


/**
 * -> Categories Archive
 **/
$fields[]                             = array(
	'name'  => __( 'Category', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
);
$fields['cat_layout']                 = array(
	'name'             => __( 'Categories Archive Page Layout', 'publisher' ),
	'id'               => 'cat_layout',
	'style'            => $styles,
	'type'             => 'select_popup',
	'desc'             => __( 'Override category archive page layout. <br>This option can be overridden for each category.', 'publisher' ),
	'deferred-options' => array(
		'callback' => 'publisher_layout_option_list',
		'args'     => array(
			true
		),
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Categories Layout', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected layout', 'publisher' ),
		'box_button'    => __( 'Change layout', 'publisher' ),
	),
	'column_class'     => 'four-column',
);
$fields['cat_listing']                = array(
	'name'             => __( 'Categories Archive Posts Listing', 'publisher' ),
	'id'               => 'cat_listing',
	'style'            => $styles,
	'type'             => 'select_popup',
	'desc'             => __( 'Override page listing for all categories. <br>This option can be overridden for each category.', 'publisher' ),
	'deferred-options' => array(
		'callback' => 'publisher_listing_option_list',
		'args'     => array(
			true
		),
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Category Pages Listing', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected listing', 'publisher' ),
		'box_button'    => __( 'Change listing', 'publisher' ),
	),
	'column_class'     => 'three-column',
);
$fields['cat_listing_excerpt']        = array(
	'name'    => __( 'Show Excerpt?', 'publisher' ),
	'id'      => 'cat_listing_excerpt',
	'type'    => 'select',
	'desc'    => __( 'Select show or hide post excerpt in listings with excerpt.', 'publisher' ),
	'options' => array(
		'default' => __( '-- Default --', 'publisher' ),
		'show'    => __( 'Yes, Show.', 'publisher' ),
		'hide'    => __( 'No.', 'publisher' ),
	)
);
$fields['cat_posts_count']            = array(
	'name' => __( 'Number Of Post To Show', 'publisher' ),
	'id'   => 'cat_posts_count',
	'desc' => sprintf( __( 'Enter number of posts to show in category archive page. <br>Default: %s', 'publisher' ), get_option( 'posts_per_page' ) ),
	'type' => 'text',
);
$fields['cat_pagination_type']        = array(
	'name'             => __( 'Category pagination', 'publisher' ),
	'id'               => 'cat_pagination_type',
	'type'             => 'select',
	'desc'             => __( 'Select pagination of all categories.', 'publisher' ),
	'deferred-options' => array(
		'callback' => 'publisher_pagination_option_list',
		'args'     => array(
			true
		),
	),
);
$fields[]                             = array(
	'name'   => __( 'Category Title Section', 'publisher' ),
	'type'   => 'heading',
	'layout' => 'style-2',
);
$fields['cat_archive_sub_cats']       = array(
	'name'    => __( 'Show sub categories in category archive title', 'publisher' ),
	'id'      => 'cat_archive_sub_cats',
	'type'    => 'select',
	'desc'    => __( 'Select show or hide category child categories in title of category archive page.', 'publisher' ),
	'options' => array(
		'show'           => __( 'Yes, Show sub categories or sibling categories', 'publisher' ),
		'sub-categories' => __( 'Yes, Show only sub categories', 'publisher' ),
		'hide'           => __( 'No.', 'publisher' ),
	),
);
$fields['cat_archive_sub_cats_limit'] = array(
	'name'    => __( 'Limit subcategories in category title', 'publisher' ),
	'id'      => 'cat_archive_sub_cats_limit',
	'type'    => 'text',
	'desc'    => __( 'This option enables you to limit number of sub-categories in category title section to prevent showing a lot of categories!', 'publisher' ),
	'show_on' => array(
		array( 'cat_archive_sub_cats!=hide' ),
	),
);
$fields['cat_archive_show_rss_icon']  = array(
	'name'    => __( 'Show RSS Link Aside the Category Title', 'publisher' ),
	'id'      => 'cat_archive_show_rss_icon',
	'type'    => 'select',
	'desc'    => __( 'Show/hide the category specific RSS link aside the title of category.', 'publisher' ),
	'options' => array(
		'show' => __( 'Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	)
);
$fields[]                             = array(
	'name'   => __( 'Category Slider', 'publisher' ),
	'type'   => 'heading',
	'layout' => 'style-2',
);
$fields['cat_slider']                 = array(
	'name'             => __( 'Categories Slider Type', 'publisher' ),
	'id'               => 'cat_slider',
	'desc'             => __( 'Select category top posts block or custom "Slider Revolution".', 'publisher' ),
	'style'            => $styles,
	'type'             => 'select',
	'deferred-options' => array(
		'callback' => 'publisher_slider_types_option_list',
	),
);
$fields['cat_top_posts']              = array(
	'name'             => __( 'Categories Top Posts style', 'publisher' ),
	'id'               => 'cat_top_posts',
	'desc'             => __( 'Select top posts style of all categories.', 'publisher' ),
	'style'            => $styles,
	'type'             => 'select_popup',
	'section_class'    => 'style-floated-left bordered',
	'deferred-options' => array(
		'callback' => 'publisher_topposts_option_list',
	),
	'show_on'          => array(
		array( 'cat_slider=custom-blocks' )
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Slider', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected slider', 'publisher' ),
		'box_button'    => __( 'Change Slider', 'publisher' ),
	),
	'column_class'     => 'four-column',
);
$fields['cat_top_posts_gradient']     = array(
	'name'          => __( 'Top Posts Overlay Gradient', 'publisher' ),
	'id'            => 'cat_top_posts_gradient',
	'desc'          => __( 'Select top posts overlay style.', 'publisher' ),
	'style'         => $styles,
	'type'          => 'select',
	'section_class' => 'style-floated-left bordered',
	'options'       => array(
		'colored'      => __( 'Colored Gradient', 'publisher' ),
		'colored-anim' => __( 'Animated Gradient', 'publisher' ),
		'simple-gr'    => __( 'Simple Gradient', 'publisher' ),
		'simple'       => __( 'Simple', 'publisher' ),
	),
	'show_on'       => array(
		array( 'cat_slider=custom-blocks' )
	),
);
$fields['cat_rev_slider_item']        = array(
	'name'             => __( 'Categories Top Slider Revolution', 'publisher' ),
	'id'               => 'cat_rev_slider_item',
	'desc'             => __( 'Select a "Slider Revolution" slider for top of categories.', 'publisher' ),
	'style'            => $styles,
	'type'             => 'select',
	'section_class'    => 'style-floated-left bordered',
	'deferred-options' => array(
		'callback' => 'bf_deferred_option_get_rev_sliders',
		'args'     => array(
			array(
				'default' => true
			)
		)
	),
	'show_on'          => array(
		array( 'cat_slider=rev_slider' )
	),
);


/**
 * -> Tags Archive
 **/
$fields[]                      = array(
	'name'  => __( 'Tag', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
);
$fields['tag_layout']          = array(
	'name'             => __( 'Tags Archive Page Layout', 'publisher' ),
	'id'               => 'tag_layout',
	'style'            => $styles,
	'type'             => 'select_popup',
	'desc'             => __( 'Override tag archive page layout. <br>This option can be overridden for each tag.', 'publisher' ),
	'deferred-options' => array(
		'callback' => 'publisher_layout_option_list',
		'args'     => array(
			true
		),
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Tags Layout', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected layout', 'publisher' ),
		'box_button'    => __( 'Change layout', 'publisher' ),
	),
	'column_class'     => 'four-column',
);
$fields['tag_listing']         = array(
	'name'             => __( 'Tags Archive Posts Listing', 'publisher' ),
	'id'               => 'tag_listing',
	'style'            => $styles,
	'type'             => 'select_popup',
	'desc'             => __( 'Override page listing for all tags. <br>This option can be overridden for each tag.', 'publisher' ),
	'deferred-options' => array(
		'callback' => 'publisher_listing_option_list',
		'args'     => array(
			true
		),
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Tag Pages Listing', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected listing', 'publisher' ),
		'box_button'    => __( 'Change listing', 'publisher' ),
	),
	'column_class'     => 'three-column',
);
$fields['tag_listing_excerpt'] = array(
	'name'    => __( 'Show Excerpt?', 'publisher' ),
	'id'      => 'tag_listing_excerpt',
	'type'    => 'select',
	'desc'    => __( 'Select show or hide post excerpt in listings with excerpt.', 'publisher' ),
	'options' => array(
		'default' => __( '-- Default --', 'publisher' ),
		'show'    => __( 'Yes, Show.', 'publisher' ),
		'hide'    => __( 'No.', 'publisher' ),
	)
);
$fields['tag_posts_count']     = array(
	'name' => __( 'Number Of Post To Show', 'publisher' ),
	'id'   => 'tag_posts_count',
	'desc' => sprintf( __( 'Enter number of posts to show in tag archive pages. <br>Default: %s', 'publisher' ), get_option( 'posts_per_page' ) ),
	'type' => 'text',
);
$fields['tag_pagination_type'] = array(
	'name'             => __( 'Tag pagination', 'publisher' ),
	'id'               => 'tag_pagination_type',
	'type'             => 'select',
	'desc'             => __( 'Select pagination of all tags.', 'publisher' ),
	'deferred-options' => array(
		'callback' => 'publisher_pagination_option_list',
		'args'     => array(
			true
		),
	),
);

/**
 * -> Authors Archive
 **/
$fields[]                                  = array(
	'name'  => __( 'Author', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
);
$fields['author_layout']                   = array(
	'name'             => __( 'Authors Profile Page Layout', 'publisher' ),
	'id'               => 'author_layout',
	'style'            => $styles,
	'type'             => 'select_popup',
	'desc'             => __( 'Override author profile page layout. <br>This option can be overridden for each author.', 'publisher' ),
	'deferred-options' => array(
		'callback' => 'publisher_layout_option_list',
		'args'     => array(
			true
		),
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Authors Layout', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected layout', 'publisher' ),
		'box_button'    => __( 'Change layout', 'publisher' ),
	),
	'column_class'     => 'four-column',
);
$fields['author_listing']                  = array(
	'name'             => __( 'Authors Profile Posts Listing', 'publisher' ),
	'id'               => 'author_listing',
	'style'            => $styles,
	'type'             => 'select_popup',
	'desc'             => __( 'Override page listing for all authors. <br>This option can be overridden for each author.', 'publisher' ),
	'deferred-options' => array(
		'callback' => 'publisher_listing_option_list',
		'args'     => array(
			true
		),
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Author Pages Listing', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected listing', 'publisher' ),
		'box_button'    => __( 'Change listing', 'publisher' ),
	),
	'column_class'     => 'three-column',
);
$fields['author_archive_show_posts_count'] = array(
	'name'    => __( 'Show Author Posts Count in Author Profile?', 'publisher' ),
	'id'      => 'author_archive_show_posts_count',
	'type'    => 'select',
	'desc'    => __( 'By enabling this the author posts count will be shown in his archive page.', 'publisher' ),
	'options' => array(
		'show' => __( 'Yes, Show.', 'publisher' ),
		'hide' => __( 'No.', 'publisher' ),
	)
);
$fields['author_listing_excerpt']          = array(
	'name'    => __( 'Show Excerpt?', 'publisher' ),
	'id'      => 'author_listing_excerpt',
	'type'    => 'select',
	'desc'    => __( 'Select show or hide post excerpt in listings with excerpt.', 'publisher' ),
	'options' => array(
		'default' => __( '-- Default --', 'publisher' ),
		'show'    => __( 'Yes, Show.', 'publisher' ),
		'hide'    => __( 'No.', 'publisher' ),
	)
);
$fields['author_posts_count']              = array(
	'name' => __( 'Number Of Posts To Show', 'publisher' ),
	'id'   => 'author_posts_count',
	'desc' => sprintf( __( 'Leave this empty for default. <br>Default: %s', 'publisher' ), get_option( 'posts_per_page' ) ),
	'type' => 'text',
);
$fields['author_pagination_type']          = array(
	'name'             => __( 'Author pagination', 'publisher' ),
	'id'               => 'author_pagination_type',
	'type'             => 'select',
	'desc'             => __( 'Select pagination of all authors profile.', 'publisher' ),
	'deferred-options' => array(
		'callback' => 'publisher_pagination_option_list',
		'args'     => array(
			true
		),
	),
);
$fields['author_posts']                    = array(
	'name'    => __( 'Show Author Posts Count', 'publisher' ),
	'id'      => 'author_posts',
	'type'    => 'select',
	'options' => array(
		'show' => __( 'Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	),
);
$fields['author_comments']                 = array(
	'name'    => __( 'Show Author Comments Count', 'publisher' ),
	'id'      => 'author_comments',
	'type'    => 'select',
	'options' => array(
		'show' => __( 'Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	),
);

/**
 * -> Search Results Archive
 **/
$fields[]                         = array(
	'name'  => __( 'Search Page', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
);
$fields['search_layout']          = array(
	'name'             => __( 'Search Page Layout', 'publisher' ),
	'id'               => 'search_layout',
	'style'            => $styles,
	'type'             => 'select_popup',
	'desc'             => __( 'Override search result page layout.', 'publisher' ),
	'deferred-options' => array(
		'callback' => 'publisher_layout_option_list',
		'args'     => array(
			true
		),
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Search Page Layout', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected layout', 'publisher' ),
		'box_button'    => __( 'Change layout', 'publisher' ),
	),
	'column_class'     => 'four-column',
);
$fields['search_listing']         = array(
	'name'             => __( 'Search Result Posts Listing', 'publisher' ),
	'id'               => 'search_listing',
	'style'            => $styles,
	'type'             => 'select_popup',
	'desc'             => __( 'Override search result posts listing.', 'publisher' ),
	'deferred-options' => array(
		'callback' => 'publisher_listing_option_list',
		'args'     => array(
			true
		),
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Search Page Listing', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected listing', 'publisher' ),
		'box_button'    => __( 'Change listing', 'publisher' ),
	),
	'column_class'     => 'three-column',
);
$fields['search_listing_excerpt'] = array(
	'name'    => __( 'Show Excerpt?', 'publisher' ),
	'id'      => 'search_listing_excerpt',
	'type'    => 'select',
	'desc'    => __( 'Select show or hide post excerpt in listings with excerpt.', 'publisher' ),
	'options' => array(
		'default' => __( '-- Default --', 'publisher' ),
		'show'    => __( 'Yes, Show.', 'publisher' ),
		'hide'    => __( 'No.', 'publisher' ),
	)
);
$fields['search_menu']            = array(
	'name'             => __( 'Search Page Navigation Menu', 'publisher' ),
	'id'               => 'search_menu',
	'desc'             => __( 'Select which menu displays on search result page.', 'publisher' ),
	'type'             => 'select',
	'deferred-options' => array(
		'callback' => 'bf_get_menus_option',
		'args'     => array(
			true,
			__( '-- Default Main Navigation --', 'publisher' ),
		),
	),
);
$fields['search_result_content']  = array(
	'name'    => __( 'Result Content Type', 'publisher' ),
	'id'      => 'search_result_content',
	'type'    => 'select',
	'desc'    => __( 'Select the type of content to display in search results.', 'publisher' ),
	'options' => array(
		'post' => __( 'Only Posts', 'publisher' ),
		'page' => __( 'Only Pages', 'publisher' ),
		'both' => __( 'Posts and Pages', 'publisher' ),
		array(
			'label'   => 'Custom Post Types',
			'options' => array(
				'advanced' => __( 'Advanced Post Types', 'publisher' ),
			)
		),
	)
);
$fields['search_result_advanced'] = array(
	'name'    => __( 'Enter Post Types for Search Result', 'publisher' ),
	'id'      => 'search_result_advanced',
	'type'    => 'text',
	'desc'    => __( 'Enter the list of post types to appear in search result. Separate multiple post type by using ",". Example: post,page,products', 'publisher' ),
	'show_on' => array(
		array(
			'search_result_content=advanced'
		)
	)
);
$fields['search_posts_count']     = array(
	'name' => __( 'Number Of Post To Show', 'publisher' ),
	'id'   => 'search_posts_count',
	'desc' => sprintf( __( 'Leave this empty for default. <br>Default: %s', 'publisher' ), get_option( 'posts_per_page' ) ),
	'type' => 'text',
);
$fields['search_pagination_type'] = array(
	'name'             => __( 'Search page pagination', 'publisher' ),
	'id'               => 'search_pagination_type',
	'type'             => 'select',
	'desc'             => __( 'Select pagination of search page.', 'publisher' ),
	'deferred-options' => array(
		'callback' => 'publisher_pagination_option_list',
		'args'     => array(
			true
		),
	),
);


/**
 * -> 404 Page
 **/
$fields[]                     = array(
	'name'  => __( '404 Page', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
);
$fields['archive_404_menu']   = array(
	'name'             => __( '404 Page Navigation Menu', 'publisher' ),
	'id'               => 'archive_404_menu',
	'desc'             => __( 'Select which menu displays on 404 page.', 'publisher' ),
	'type'             => 'select',
	'deferred-options' => array(
		'callback' => 'bf_get_menus_option',
		'args'     => array(
			true,
			__( '-- Default Main Navigation --', 'publisher' ),
		),
	),
);
$fields['archive_404_custom'] = array(
	'name'             => __( 'Custom Page for 404 Page', 'publisher' ),
	'id'               => 'archive_404_custom',
	'desc'             => __( 'You can replace default 404 page with a custom page. You can create that page with Visual Composer to have any layout you want.', 'publisher' ),
	'type'             => 'select',
	'deferred-options' => array(
		'callback' => 'bf_deferred_option_get_pages',
		'args'     => array(
			array(
				'default'       => true,
				'default-label' => __( '-- Default 404 Page --', 'publisher' ),
				'default-id'    => 'default',
				'group'         => true,
				'group_label'   => __( 'Select Page', 'publisher' ),
			),
		),
	),
);


/**
 * -> Thumbnail on post feed
 **/
$fields[]                     = array(
	'name'  => __( 'RSS Feed', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
);
$fields['post_thumbnail_rss'] = array(
	'name'    => __( 'Post thumbnail on RSS feeds', 'publisher' ),
	'id'      => 'post_thumbnail_rss',
	'desc'    => __( 'Enable or disable post thumbnail genration on RSS feeds.', 'publisher' ),
	'type'    => 'select',
	'options' => array(
		'enable'  => __( 'Yes, Add Thumbnail To RSS', 'publisher' ),
		'disable' => __( 'Disable', 'publisher' )
	),
);
$fields[]                     = array(
	'type' => 'group_close',
);
$fields[]                     = array(
	'name'   => __( 'Plugin Pages', 'publisher' ),
	'type'   => 'heading',
	'layout' => 'style-2',
);

/**
 * -> WooCommerce
 **/
$fields[]              = array(
	'name'  => __( 'WooCommerce - Shop', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
);
$fields['shop_layout'] = array(
	'name'             => __( 'Shop Layout', 'publisher' ),
	'id'               => 'shop_layout',
	'desc'             => __( 'Override shop pages layout with this option', 'publisher' ),
	'type'             => 'select_popup',
	'style'            => $styles,
	'deferred-options' => array(
		'callback' => 'publisher_layout_option_list',
		'args'     => array(
			true
		),
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Shop Layout', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected layout', 'publisher' ),
		'box_button'    => __( 'Change layout', 'publisher' ),
	),
	'column_class'     => 'four-column',
);


/**
 * -> bbPress
 **/
$fields[]                 = array(
	'name'  => __( 'bbPress - Forums', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
);
$fields['bbpress_layout'] = array(
	'name'             => __( 'bbPress Forums Layout', 'publisher' ),
	'id'               => 'bbpress_layout',
	'desc'             => __( 'Override bbPress forum pages layout with this option', 'publisher' ),
	'type'             => 'select_popup',
	'style'            => $styles,
	'deferred-options' => array(
		'callback' => 'publisher_layout_option_list',
		'args'     => array(
			true
		),
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Forums Layout', 'publisher' ),
		'modal_current' => __( 'Current', 'publisher' ),
		'modal_button'  => __( 'Select', 'publisher' ),
		'box_pre_title' => __( 'Selected layout', 'publisher' ),
		'box_button'    => __( 'Change layout', 'publisher' ),
	),
	'column_class'     => 'four-column',
);


/**
 * => Header Options
 */
$fields[]                       = array(
	'name' => __( 'Header', 'publisher' ),
	'id'   => 'header_settings',
	'type' => 'tab',
	'icon' => 'bsai-header'
);
$fields[]                       = array(
	'name'  => __( 'Header Style & Layout', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
);
$fields['header_layout']        = array(
	'name'             => __( 'Header Layout', 'publisher' ),
	'id'               => 'header_layout',
	'desc'             => __( 'Select header layout.', 'publisher' ),
	'style'            => $styles,
	'type'             => 'select',
	'deferred-options' => array(
		'callback' => 'publisher_header_layout_option_list',
		'args'     => array(
			false,
		),
	),
);
$fields['header_style']         = array(
	'name'             => __( 'Header Style', 'publisher' ),
	'id'               => 'header_style',
	'desc'             => __( 'Select header style.', 'publisher' ),
	'style'            => $styles,
	'type'             => 'image_radio',
	'section_class'    => 'style-floated-left bordered',
	'deferred-options' => array(
		'callback' => 'publisher_header_style_option_list',
		'args'     => array(
			false,
			false,
		),
	),
);
$fields['menu_sticky']          = array(
	'name'    => __( 'Main Menu Sticky', 'publisher' ),
	'id'      => 'menu_sticky',
	'desc'    => __( 'Enable or disable sticky effect for main menu.', 'publisher' ),
	'style'   => $styles,
	'type'    => 'select',
	'options' => array(
		'smart'     => __( 'Smart Sticky', 'publisher' ),
		'sticky'    => __( 'Simple Sticky', 'publisher' ),
		'no-sticky' => __( 'No Sticky', 'publisher' ),
	),
);
$fields['menu_show_search_box'] = array(
	'name'    => __( 'Show Search Box In Menu', 'publisher' ),
	'id'      => 'menu_show_search_box',
	'desc'    => __( 'Choose to show or hide search form in menu.', 'publisher' ),
	'style'   => $styles,
	'type'    => 'select',
	'options' => array(
		'show' => __( 'Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	),
);
$fields['menu_search_type']     = array(
	'name'    => __( 'Live Search Box?', 'publisher' ),
	'id'      => 'menu_search_type',
	'desc'    => __( 'With enabling this options results of search will load with ajax and shown in header search box.', 'publisher' ),
	'type'    => 'select',
	'options' => array(
		'ajax'   => __( 'Live Search - Ajax', 'publisher' ),
		'simple' => __( 'Simple Form', 'publisher' ),
	),
	'show_on' => array(
		array( 'menu_show_search_box=show' )
	),
);
$fields['menu_show_shop_cart']  = array(
	'name'    => __( 'Show Shopping Cart Icon in Menu', 'publisher' ),
	'id'      => 'menu_show_shop_cart',
	'desc'    => __( 'Choose to show or hide shopping cart icon in menu.', 'publisher' ),
	'style'   => $styles,
	'type'    => 'select',
	'options' => array(
		'show' => __( 'Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	),
);


/**
 * -> Mega Menus
 */
$fields[]                         = array(
	'name'  => __( 'Mega Menus', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
	'level' => 2,
);
$fields['mega_tabbed_cats_order'] = array(
	'name'    => __( 'Subcategories Order In Tabbed Mega Menu', 'publisher' ),
	'id'      => 'mega_tabbed_cats_order',
	'desc'    => __( 'Choose to order type of the subcategories in tabbed mega menu.', 'publisher' ),
	'type'    => 'select',
	'options' => array(
		'length' => __( 'Category Title Length', 'publisher' ),
		'name'   => __( 'Category Title', 'publisher' ),
		'count'  => __( 'Category Posts Count', 'publisher' ),
	),
);
$fields['mega_tabbed_cats_count'] = array(
	'name' => __( 'Subcategories Count In Tabbed Mega Menu', 'publisher' ),
	'id'   => 'mega_tabbed_cats_count',
	'desc' => __( 'Count of subcategories in tabbed mega menu.', 'publisher' ),
	'type' => 'text',
);


/**
 * -> Header Padding
 */
$fields[]                        = array(
	'name'  => __( 'Header Padding', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
	'level' => 2,
);
$fields[]                        = array(
	'name'          => __( 'Warning', 'publisher' ),
	'id'            => 'header-padding-help',
	'type'          => 'info',
	'std'           => __( '<p>Please note following settings <strong>not works</strong> for <strong>Header 5, 6 and 8</strong></p>', 'publisher' ),
	'state'         => 'open',
	'info-type'     => 'warning',
	'section_class' => 'widefat',
);
$fields['header_top_padding']    = array(
	'name'   => __( 'Header Top Padding', 'publisher' ),
	'id'     => 'header_top_padding',
	'suffix' => __( 'Pixel', 'publisher' ),
	'desc'   => __( 'In pixels without px, ex: 20.', 'publisher' ),
	'type'   => 'text',
	'style'  => $styles,
	'ltr'    => true,
);
$fields['header_bottom_padding'] = array(
	'name'   => __( 'Header Bottom Padding', 'publisher' ),
	'id'     => 'header_bottom_padding',
	'suffix' => __( 'Pixel', 'publisher' ),
	'desc'   => __( 'In pixels without ex: 20.', 'publisher' ),
	'type'   => 'text',
	'style'  => $styles,
	'ltr'    => true,
);


/**
 * -> Logo
 */
$fields[]                    = array(
	'name'  => __( 'Site Logo', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
);
$fields['logo_text']         = array(
	'name' => __( 'Text Logo', 'publisher' ),
	'id'   => 'logo_text',
	'desc' => wp_kses( __( 'Enter your site name here for logo text.<br> <code>Tip:</code> Enter site tagline here to add this to logo alt attribute.', 'publisher' ), bf_trans_allowed_html() ),
	'type' => 'text',
);
$fields['logo_image']        = array(
	'name'         => __( 'Site Logo', 'publisher' ),
	'id'           => 'logo_image',
	'desc'         => __( 'By default, a text-based logo is created using your site title. But you can also upload an image-based logo here.', 'publisher' ),
	'type'         => 'media_image',
	'media_title'  => __( 'Select or Upload Logo', 'publisher' ),
	'media_button' => __( 'Select Image', 'publisher' ),
	'upload_label' => __( 'Upload Logo', 'publisher' ),
	'remove_label' => __( 'Remove', 'publisher' ),
);
$fields['logo_image_retina'] = array(
	'name'         => __( 'Site Retina Logo (2x)', 'publisher' ),
	'id'           => 'logo_image_retina',
	'desc'         => __( 'If you want to upload a Retina Image, It\'s Image Size should be exactly double in compare with your normal Logo.', 'publisher' ),
	'type'         => 'media_image',
	'media_title'  => __( 'Select or Upload Retina Logo', 'publisher' ),
	'media_button' => __( 'Select @2x Image', 'publisher' ),
	'upload_label' => __( 'Upload @2x Logo', 'publisher' ),
	'remove_label' => __( 'Remove', 'publisher' ),
);


/**
 * -> Responsive Header
 */
$fields[] = array(
	'name'  => __( 'Mobile Header', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
);

$fields[]                         = array(
	'name'  => __( 'Logo', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
	'level' => 2,
);
$fields['resp_logo_image']        = array(
	'name'         => __( 'Mobile Logo', 'publisher' ),
	'id'           => 'resp_logo_image',
	'desc'         => __( 'By default, a text-based logo is created using your site title. But you can also upload an image-based logo here.', 'publisher' ),
	'type'         => 'media_image',
	'media_title'  => __( 'Select or Upload Logo', 'publisher' ),
	'media_button' => __( 'Select Image', 'publisher' ),
	'upload_label' => __( 'Upload Logo', 'publisher' ),
	'remove_label' => __( 'Remove', 'publisher' ),
);
$fields['resp_logo_image_retina'] = array(
	'name'         => __( 'Mobile Retina Logo(2x)', 'publisher' ),
	'id'           => 'resp_logo_image_retina',
	'desc'         => __( 'If you want to upload a Retina Image, It\'s Image Size should be exactly double in compare with your normal Logo.', 'publisher' ),
	'type'         => 'media_image',
	'media_title'  => __( 'Select or Upload Retina Logo', 'publisher' ),
	'media_button' => __( 'Select @2x Image', 'publisher' ),
	'upload_label' => __( 'Upload @2x Logo', 'publisher' ),
	'remove_label' => __( 'Remove', 'publisher' ),
);
$fields[]                         = array(
	'name'  => __( 'Style & Layout', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
	'level' => 2,
);
$fields['resp_settings']          = array(
	'name'            => __( 'Sections of Mobile Header & Menu', 'publisher' ),
	'desc'            => __( 'You can enable sections you want to show in mobile header.', 'publisher' ),
	'id'              => 'resp_settings',
	'container_class' => 'advanced-block-settings post-block-options',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'resp_settings',
			)
		),
	),
);
$fields['resp_scheme']            = array(
	'name'          => __( 'Header Color Scheme', 'publisher' ),
	'id'            => 'resp_scheme',
	'desc'          => __( 'Select responsive header color scheme.', 'publisher' ),
	'style'         => $styles,
	'reset-color'   => true, // to reset in panel
	'type'          => 'image_select',
	'section_class' => 'style-floated-left bordered',
	'options'       => array(
		'dark'  => array(
			'img'   => bf_get_theme_uri( 'images/options/resp-header-dark.png' ),
			'label' => __( 'Dark Style', 'publisher' ),
		),
		'light' => array(
			'img'   => bf_get_theme_uri( 'images/options/resp-header-light.png' ),
			'label' => __( 'Light Style', 'publisher' ),
		),
	),
);
$fields['resp_bg_style']          = array(
	'name'        => __( 'Background Style', 'publisher' ),
	'id'          => 'resp_bg_style',
	'desc'        => __( 'Select responsive background style.', 'publisher' ),
	'style'       => $styles,
	'reset-color' => true, // to reset in panel
	'type'        => 'select',
	'options'     => array(
		'gradient' => __( 'Gradient', 'publisher' ),
		'color'    => __( 'Simple Color', 'publisher' ),
		'image'    => __( 'Background Image', 'publisher' ),
	),
);
$fields['resp_bg_gradient']       = array(
	'name'          => __( 'Gradient', 'publisher' ),
	'id'            => 'resp_bg_gradient',
	'desc'          => __( 'Select responsive background gradient.', 'publisher' ),
	'style'         => $styles,
	'reset-color'   => true, // to reset in panel
	'type'          => 'image_radio',
	'section_class' => 'style-floated-left bordered',
	'options'       => array(
		'gr-1' => array(
			'img'   => bf_get_theme_uri( 'images/options/rh-gr-1.png' ),
			'label' => __( '1', 'publisher' ),
		),
		'gr-2' => array(
			'img'   => bf_get_theme_uri( 'images/options/rh-gr-2.png' ),
			'label' => __( '2', 'publisher' ),
		),
		'gr-3' => array(
			'img'   => bf_get_theme_uri( 'images/options/rh-gr-3.png' ),
			'label' => __( '3', 'publisher' ),
		),
		'gr-4' => array(
			'img'   => bf_get_theme_uri( 'images/options/rh-gr-4.png' ),
			'label' => __( '4', 'publisher' ),
		),
		'gr-5' => array(
			'img'   => bf_get_theme_uri( 'images/options/rh-gr-5.png' ),
			'label' => __( '5', 'publisher' ),
		),
		'gr-6' => array(
			'img'   => bf_get_theme_uri( 'images/options/rh-gr-6.png' ),
			'label' => __( '6', 'publisher' ),
		),
		'gr-7' => array(
			'img'   => bf_get_theme_uri( 'images/options/rh-gr-7.png' ),
			'label' => __( '7', 'publisher' ),
		),
		'gr-8' => array(
			'img'   => bf_get_theme_uri( 'images/options/rh-gr-8.png' ),
			'label' => __( '8', 'publisher' ),
		),
	),
	'show_on'       => array(
		array(
			'resp_bg_style=gradient'
		),
	)
);
$fields['resp_bg_image']          = array(
	'name'         => __( 'Background Image', 'publisher' ),
	'id'           => 'resp_bg_image',
	'type'         => 'background_image',
	'style'        => $styles,
	'upload_label' => __( 'Upload Image', 'publisher' ),
	'desc'         => __( 'Select responsive background image.', 'publisher' ),
	'show_on'      => array(
		array(
			'resp_bg_style=image'
		),
	),
);
$fields['resp_bg_color']          = array(
	'name'    => __( 'Background Color', 'publisher' ),
	'id'      => 'resp_bg_color',
	'type'    => 'color',
	'style'   => $styles,
	'desc'    => __( 'Select responsive background color.', 'publisher' ),
	'show_on' => array(
		array(
			'resp_bg_style=color'
		),
	),
);


/**
 * -> Topbar
 */
$fields[]                           = array(
	'name'  => __( 'Top Bar', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
);
$fields['topbar_style']             = array(
	'name'          => __( 'Top Bar Style', 'publisher' ),
	'id'            => 'topbar_style',
	'desc'          => __( 'Select top bar style.', 'publisher' ),
	'style'         => $styles,
	'type'          => 'select',
	'section_class' => 'style-floated-left bordered',
	'options'       => array(
		'hidden'  => __( 'Hide Top Bar', 'publisher' ),
		'style-1' => __( 'Style 1', 'publisher' ),
		'style-2' => __( 'Style 2', 'publisher' ),
	),
);
$fields['topbar_newsticker_cat']    = array(
	'name'    => __( 'Newsticker Category Filter', 'publisher' ),
	'id'      => 'topbar_newsticker_cat',
	'desc'    => __( 'Filter Newsticker posts to specific categories.', 'publisher' ),
	'type'    => 'term_select',
	'show_on' => array(
		array(
			'topbar_style=style-2'
		)
	),
);
$fields['topbar_show_date']         = array(
	'name'    => __( 'Show Date In Topbar', 'publisher' ),
	'id'      => 'topbar_show_date',
	'desc'    => __( 'Choose to show or hide date in top bar.', 'publisher' ),
	'style'   => $styles,
	'type'    => 'select',
	'options' => array(
		'show' => __( 'Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	),
	'show_on' => array(
		array(
			'topbar_style=style-1'
		)
	),
);
$fields['topbar_show_login']        = array(
	'name'    => __( 'Show Login Button in Topbar', 'publisher' ),
	'id'      => 'topbar_show_login',
	'desc'    => __( 'Choose to show or hide login button in topbar.', 'publisher' ),
	'style'   => $styles,
	'type'    => 'select',
	'options' => array(
		'show' => __( 'Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	),
	'show_on' => array(
		array(
			'topbar_style!=hidden'
		)
	),
);
$fields['topbar_show_social_icons'] = array(
	'name'    => __( 'Show Social Icons In Topbar', 'publisher' ),
	'id'      => 'topbar_show_social_icons',
	'desc'    => __( 'Choose to show or hide social icons in header.', 'publisher' ),
	'style'   => $styles,
	'type'    => 'select',
	'options' => array(
		'show' => __( 'Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	),
	'show_on' => array(
		array(
			'topbar_style!=hidden'
		)
	),
);
$fields['topbar_show_social_icons'] = array(
	'name'    => __( 'Show Social Icons In Topbar', 'publisher' ),
	'id'      => 'topbar_show_social_icons',
	'desc'    => __( 'Choose to show or hide social icons in header.', 'publisher' ),
	'type'    => 'select',
	'options' => array(
		'show' => __( 'Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	),
	'show_on' => array(
		array(
			'topbar_style!=hidden'
		)
	),
);
if ( class_exists( 'Better_Social_Counter' ) && class_exists( 'Better_Social_Counter_Data_Manager' ) ) {
	$fields['topbar_socials'] = array(
		'name'             => __( 'Sort and Active Sites', 'publisher' ),
		'id'               => 'topbar_socials',
		'desc'             => sprintf( __( 'Select & sort sites you will to show them in topbar. <br><br>
For activating site you should enter your information in <a href="%s" target="_blank">Better Social Counter</a> Panel.
', 'publisher' ), get_admin_url( null, 'admin.php?page=better-studio/better-social-counter' ) ),
		'type'             => 'sorter_checkbox',
		'deferred-options' => array(
			'callback' => 'publisher_social_counter_options_list_callback',
		),
		'section_class'    => 'better-social-counter-sorter',
		'show_on'          => array(
			array(
				'topbar_style!=hidden'
			)
		),
	);
} else {
	$fields['social-icons-help'] = array(
		'name'          => __( 'Social Icons Instructions', 'publisher' ),
		'id'            => 'social-icons-help',
		'type'          => 'info',
		'state'         => 'open',
		'std'           => sprintf( __( '<p>For adding social icons in top bar you should first install and active <a href="%s">Better Social Counter</a> plugin.</p>', 'publisher' ), get_admin_url( null, 'admin.php?page=bs-product-pages-install-plugin' ) ),
		'info-type'     => 'help',
		'section_class' => 'widefat',
		'show_on'       => array(
			array(
				'topbar_style!=hidden'
			)
		),
	);
}


/**
 * ->  Off-Canvas
 */
$fields[]                      = array(
	'name'  => __( 'Off-Canvas Panel', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
);
$fields['off_canvas']          = array(
	'name'      => __( 'Show Off-Canvas Panel?', 'publisher' ),
	'desc'      => __( 'Off-canvas is new type of panel that enables you to show more data/navigation for your visitors without making your site complex!', 'publisher' ),
	'id'        => 'off_canvas',
	'type'      => 'switch',
	'on-label'  => __( 'Yes', 'publisher' ),
	'off-label' => __( 'No', 'publisher' ),
);
$fields['off_canvas_position'] = array(
	'name'    => __( 'Panel Position in Page?', 'publisher' ),
	'desc'    => __( 'Chowse panel to be shown in left or right?', 'publisher' ),
	'id'      => 'off_canvas_position',
	'type'    => 'select',
	'options' => array(
		'left'  => is_rtl() ? __( 'Right', 'publisher' ) : __( 'Left', 'publisher' ),
		'right' => is_rtl() ? __( 'Left', 'publisher' ) : __( 'Right', 'publisher' ),
	),
);
$fields['off_canvas_skin']     = array(
	'name'    => __( 'Panel Color Skin?', 'publisher' ),
	'desc'    => __( 'Choose white or dark panel.', 'publisher' ),
	'id'      => 'off_canvas_skin',
	'style'   => $styles,
	'type'    => 'select',
	'options' => array(
		'skin-white' => __( 'White Panel', 'publisher' ),
		'skin-dark'  => __( 'Dark Panel', 'publisher' ),
	),
);
$fields[]                      = array(
	'name'   => __( 'Site Branding', 'publisher' ),
	'type'   => 'heading',
	'layout' => 'style-2',
);
$fields['off_canvas_branding'] = array(
	'name'      => __( 'Show site branding in panel?', 'publisher' ),
	'desc'      => __( 'You can show your site branding in Off-Canvas panel.', 'publisher' ),
	'id'        => 'off_canvas_branding',
	'type'      => 'switch',
	'on-label'  => __( 'Yes', 'publisher' ),
	'off-label' => __( 'No', 'publisher' ),
);
$fields['off_canvas_logo']     = array(
	'name'         => __( 'Panel Logo', 'publisher' ),
	'desc'         => __( 'Upload your custom logo for off-canvas panel.<br><strong>Recommended size:</strong> 80x80 pixel.', 'publisher' ),
	'id'           => 'off_canvas_logo',
	'type'         => 'media_image',
	'media_title'  => __( 'Select or Upload Logo', 'publisher' ),
	'media_button' => __( 'Select Image', 'publisher' ),
	'upload_label' => __( 'Upload Logo', 'publisher' ),
	'remove_label' => __( 'Remove', 'publisher' ),
	'show_on'      => array(
		array(
			'off_canvas_branding=1',
		)
	)
);
$fields['off_canvas_title']    = array(
	'name'    => __( 'Your/Site name:', 'publisher' ),
	'desc'    => __( 'Enter your site or your name to shown after logo.', 'publisher' ),
	'id'      => 'off_canvas_title',
	'type'    => 'text',
	'show_on' => array(
		array(
			'off_canvas_branding=1',
		)
	)
);
$fields['off_canvas_desc']     = array(
	'name'    => __( 'Biography', 'publisher' ),
	'desc'    => __( 'Enter your biography or your site description here.<br><strong>Default:</strong> Your site tag line is default value.', 'publisher' ),
	'id'      => 'off_canvas_desc',
	'type'    => 'text',
	'show_on' => array(
		array(
			'off_canvas_branding=1',
		)
	),
);
$fields['off_canvas_search']   = array(
	'name'      => __( 'Show Search Icon?', 'publisher' ),
	'desc'      => __( 'You can show search icon in off-canvas panel.', 'publisher' ),
	'id'        => 'off_canvas_search',
	'type'      => 'switch',
	'on-label'  => __( 'Yes', 'publisher' ),
	'off-label' => __( 'No', 'publisher' ),
);

$fields[]                          = array(
	'name'   => __( 'Panel Footer', 'publisher' ),
	'type'   => 'heading',
	'layout' => 'style-2',
);
$fields['off_canvas_footer']       = array(
	'name'          => __( 'Footer help text', 'publisher' ),
	'desc'          => __( 'Enter your contact info and personal tips/helps in this field.', 'publisher' ),
	'id'            => 'off_canvas_footer',
	'type'          => 'wp_editor',
	'section_class' => 'width-70',
);
$fields['off_canvas_footer_icons'] = array(
	'name'      => __( 'Show Social Icons in Panel Footer?', 'publisher' ),
	'desc'      => __( 'Show your social networks link in panel\'s footer.', 'publisher' ),
	'id'        => 'off_canvas_footer_icons',
	'type'      => 'switch',
	'on-label'  => __( 'Yes', 'publisher' ),
	'off-label' => __( 'No', 'publisher' ),
);
if ( class_exists( 'Better_Social_Counter' ) && class_exists( 'Better_Social_Counter_Data_Manager' ) ) {
	$fields['off_canvas_socials'] = array(
		'name'             => __( 'Social Networks in Footer', 'publisher' ),
		'id'               => 'off_canvas_socials',
		'desc'             => sprintf( __( 'Select & sort sites you will to show them in topbar. <br><br>
For activating site you should enter your information in <a href="%s" target="_blank">Better Social Counter</a> Panel.
', 'publisher' ), get_admin_url( null, 'admin.php?page=better-studio/better-social-counter' ) ),
		'type'             => 'sorter_checkbox',
		'deferred-options' => array(
			'callback' => 'publisher_social_counter_options_list_callback',
		),
		'section_class'    => 'better-social-counter-sorter',
		'show_on'          => array(
			array(
				'off_canvas_footer_icons=1',
			)
		),
	);
} else {
	$fields['off_canvas_socials_help'] = array(
		'name'          => __( 'Social Icons Instructions', 'publisher' ),
		'id'            => 'off_canvas_socials_help',
		'type'          => 'info',
		'state'         => 'open',
		'std'           => sprintf( __( '<p>For adding social icons in top bar you should first install and active <a href="%s">Better Social Counter</a> plugin.</p>', 'publisher' ), get_admin_url( null, 'admin.php?page=bs-product-pages-install-plugin' ) ),
		'info-type'     => 'help',
		'section_class' => 'widefat',
		'show_on'       => array(
			array(
				'off_canvas_footer_icons=1',
			)
		),
	);
}


/**
 * =>Share Box
 */
$fields[]                              = array(
	'name' => __( 'Share Box', 'publisher' ),
	'type' => 'tab',
	'icon' => 'bsai-share',
	'id'   => 'share-box-options',
);
$fields['social_share_single']         = array(
	'name'    => __( 'Show Share Box In Single', 'publisher' ),
	'desc'    => __( 'Enabling this will adds share links in posts single page. You can change design and social sites will following options.', 'publisher' ),
	'id'      => 'social_share_single',
	'type'    => 'select',
	'options' => array(
		'show'       => __( 'Show - Top', 'publisher' ),
		'bottom'     => __( 'Show - Bottom', 'publisher' ),
		'top-bottom' => __( 'Show - Top & Bottom', 'publisher' ),
		'hide'       => __( 'Hide', 'publisher' ),
	),
);
$fields['social_share_top_style']      = array(
	'name'             => __( 'Top Share Buttons Style', 'publisher' ),
	'desc'             => __( 'Choose style of post top share buttons.', 'publisher' ),
	'id'               => 'social_share_top_style',
	'type'             => 'select_popup',
	'deferred-options' => array(
		'callback' => 'publisher_share_option_list',
		'args'     => array(
			'default' => false,
		)
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Share Buttons Style', 'publisher' ),
		'box_pre_title' => __( 'Active buttons style', 'publisher' ),
		'box_button'    => __( 'Change Style', 'publisher' ),
	),
	'column_class'     => 'one-column social-share-select-modal',
);
$fields['social_share_bottom_style']   = array(
	'name'             => __( 'Bottom Share Buttons Style', 'publisher' ),
	'desc'             => __( 'Choose style of post bottom share buttons. Bottom buttons style will come from top buttons style if you select default for this option.', 'publisher' ),
	'id'               => 'social_share_bottom_style',
	'type'             => 'select_popup',
	'deferred-options' => array(
		'callback' => 'publisher_share_option_list',
		'args'     => array(
			'default' => true,
		)
	),
	'texts'            => array(
		'modal_title'   => __( 'Choose Share Buttons Style', 'publisher' ),
		'box_pre_title' => __( 'Active buttons style', 'publisher' ),
		'box_button'    => __( 'Change Style', 'publisher' ),
	),
	'column_class'     => 'one-column social-share-select-modal',
);
$fields['social_share_count']          = array(
	'name'    => __( 'Show Share Count?', 'publisher' ),
	'desc'    => __( 'Enabling this will shows post share count in share box.', 'publisher' ),
	'id'      => 'social_share_count',
	'type'    => 'select',
	'options' => array(
		'total'          => __( 'Show, Total share count', 'publisher' ),
		'total-and-site' => __( 'Show, Total share count + Each site count', 'publisher' ),
		'hide'           => __( 'No, Don\'t show.', 'publisher' ),
	),
);
$fields['social_share_sites']          = array(
	'name'             => __( 'Drag and Drop To Sort The Items', 'publisher' ),
	'id'               => 'social_share_sites',
	'desc'             => __( 'Select active social share links and sort them.', 'publisher' ),
	'type'             => 'sorter_checkbox',
	'deferred-options' => array(
		'callback' => 'publisher_social_share_option_list',
	),
	'section_class'    => 'bs-theme-social-share-sorter',
);
$fields['social_share_permalink_type'] = array(
	'name'       => __( 'URL in Social Share', 'publisher' ),
	'desc'       => __( 'You can change social share URL with this option. <br>This can be useful for making compatibility 
	for your old share plugin compatibility or when your slug have UTF8 characters that make some problems in social sites.', 'publisher' ),
	'input-desc' => sprintf( __( 'Shortlink is %sp=1', 'publisher' ), home_url( '/' ) ),
	'id'         => 'social_share_permalink_type',
	'type'       => 'select',
	'options'    => array(
		'permalink' => __( 'Normal URL', 'publisher' ),
		'shortlink' => __( 'Shortlink', 'publisher' ),
	),
);
$fields['social_share_more']           = array(
	'name'    => __( 'Show Only 1 Line of Share Buttons.', 'publisher' ),
	'desc'    => __( 'Theme will collects all extra buttons and will ads 1 load mored buttons to make sure your site will looks pretty.', 'publisher' ),
	'id'      => 'social_share_more',
	'type'    => 'select',
	'options' => array(
		'yes' => __( 'Yes, Collect', 'publisher' ),
		'no'  => __( 'No, Show all in multiple lines', 'publisher' ),
	),
);
$fields['social_share_page']           = array(
	'name'    => __( 'Show Share Box In Pages', 'publisher' ),
	'desc'    => __( 'Enabling this will adds share links in pages. You can change design and social sites will following options.', 'publisher' ),
	'id'      => 'social_share_page',
	'type'    => 'select',
	'options' => array(
		'show' => __( 'Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	),
);
$fields[]                              = array(
	'name'  => __( 'Custom Share Links', 'publisher' ),
	'type'  => 'group',
	'state' => 'close',
);
$fields['social_share_custom_links']   = array(
	'name'          => '',
	'desc'          => '<strong style="color: red">' . __( 'Please note you have to hit save button and refresh page to see new items in the "Drag and Drop To Sort The Items" field.', 'publisher' ) . '</strong>',
	'id'            => 'social_share_custom_links',
	'type'          => 'repeater',
	'add_label'     => '<i class="fa fa-plus"></i> ' . __( 'Add New Share Link', 'publisher' ),
	'delete_label'  => __( 'Delete Link', 'publisher' ),
	'item_title'    => __( 'Custom Link', 'publisher' ),
	'section_class' => 'full-with-both',
	'std'           => array(
		array(
			'title'          => '',
			'link'           => '',
			'icon'           => '',
			'color'          => '',
			'hover_color'    => '',
			'bg_color'       => '',
			'bg_hover_color' => '',
		),
	),
	'default'       => array(
		array(
			'title'          => '',
			'link'           => '',
			'icon'           => '',
			'color'          => '',
			'hover_color'    => '',
			'bg_color'       => '',
			'bg_hover_color' => '',
		),
	),
	'options'       => array(
		'title'          => array(
			'name'          => __( 'Site Name', 'publisher' ),
			'input-desc'    => '<strong style="color: red">' . __( 'Required', 'publisher' ) . '</strong>',
			'id'            => 'title',
			'std'           => '',
			'type'          => 'text',
			'repeater_item' => true
		),
		'link'           => array(
			'name'          => __( 'Share Link', 'publisher' ),
			'desc'          => __( 'You can use <code>{{title}}</code> for post title and <code>{{link}}</code> for post links. <br><br> Example:<br> http://site.com/share?link={{link}}&title={{title}}', 'publisher' ),
			'input-desc'    => '<strong style="color: red">' . __( 'Required', 'publisher' ) . '</strong>',
			'id'            => 'link',
			'type'          => 'text',
			'std'           => '',
			'repeater_item' => true,
		),
		'icon'           => array(
			'name'          => __( 'Icon', 'publisher' ),
			'id'            => 'icon',
			'type'          => 'icon_select',
			'std'           => '',
			'repeater_item' => true,
		),
		array(
			'name'   => __( 'Normal Colors', 'publisher' ),
			'id'     => 'color-normal',
			'type'   => 'heading',
			'layout' => 'style-1',
		),
		'color'          => array(
			'name'          => __( 'Text Color', 'publisher' ),
			'id'            => 'color',
			'type'          => 'color',
			'std'           => '',
			'repeater_item' => true,
		),
		'bg_color'       => array(
			'name'          => __( 'Background Color', 'publisher' ),
			'id'            => 'bg_color',
			'type'          => 'color',
			'std'           => '',
			'repeater_item' => true,
		),
		array(
			'name'   => __( 'Hover Colors', 'publisher' ),
			'type'   => 'heading',
			'id'     => 'color-hover',
			'layout' => 'style-1',
		),
		'hover_color'    => array(
			'name'          => __( 'Text Hover Color', 'publisher' ),
			'id'            => 'hover_color',
			'type'          => 'color',
			'std'           => '',
			'repeater_item' => true,
		),
		'bg_hover_color' => array(
			'name'          => __( 'Background Hover Color', 'publisher' ),
			'id'            => 'bg_hover_color',
			'type'          => 'color',
			'std'           => '',
			'repeater_item' => true,
		),
	),
);
$fields[]                              = array(
	'name'  => __( 'Facebook APP Settings', 'publisher' ),
	'type'  => 'group',
	'state' => 'open',
);
$fields['facebook_app_id']             = array(
	'name' => __( 'Facebook APP ID', 'publisher' ),
	'desc' => __( 'Enter your Facebook APP ID', 'publisher' ),
	'id'   => 'facebook_app_id',
	'type' => 'text',
	'ltr'  => true,
);
$fields['facebook_app_secret']         = array(
	'name' => __( 'Facebook APP Secret', 'publisher' ),
	'desc' => __( 'Enter your Facebook APP Secret', 'publisher' ),
	'id'   => 'facebook_app_secret',
	'type' => 'text',
	'ltr'  => true,
);


/**
 * =>Breadcrumb
 */
$fields[]                             = array(
	'name' => __( 'Breadcrumb', 'publisher' ),
	'type' => 'tab',
	'icon' => 'bsai-link',
	'id'   => 'breadcrumb-options',
);
$fields['breadcrumb']                 = array(
	'name'    => __( 'Show Breadcrumb?', 'publisher' ),
	'desc'    => __( 'Enables you to show the current page and previous pages of this page in header.', 'publisher' ),
	'id'      => 'breadcrumb',
	'type'    => 'select',
	'options' => array(
		'show' => __( 'Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	),
);
$fields['breadcrumb_post_categories'] = array(
	'name'    => __( 'Show post categories in Breadcrumb?', 'publisher' ),
	'desc'    => __( 'The post categories will shown in breadcrumb before the post.', 'publisher' ),
	'id'      => 'breadcrumb_post_categories',
	'type'    => 'select',
	'options' => array(
		'show' => __( 'Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	),
	'show_on' => array(
		array( 'breadcrumb=show' )
	)
);
$fields['breadcrumb_date_in_post']    = array(
	'name'    => __( 'Show post date in breadcrumb?', 'publisher' ),
	'desc'    => __( 'If your permalink structure has the date then this option will shows the date of post in permalink.', 'publisher' ),
	'id'      => 'breadcrumb_date_in_post',
	'type'    => 'select',
	'options' => array(
		'show' => __( 'Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	),
	'show_on' => array(
		array( 'breadcrumb=show' )
	)
);


/**
 * => Footer Options
 */
$fields[] = array(
	'name' => __( 'Footer', 'publisher' ),
	'id'   => 'footer_settings',
	'type' => 'tab',
	'icon' => 'bsai-footer'
);

$fields['footer_copy1']       = array(
	'name' => __( 'Footer Left Copyright Text', 'publisher' ),
	'desc' => __( 'Enter the copy right text of footer.<br>
You can use following pattern to make replace them with real data:<br><br>
<code>%%year%%</code>: Will replcae with current year, ex: 2015<br>
<code>%%date%%</code>: Will replcae with current year, ex: 2015<br>
<code>%%sitename%%</code>: Will replace with site title.<br>
<code>%%title%%</code>: Will replace with site title.<br>
<code>%%siteurl%%</code>: Will replace with site homepage url.<br><br>
<strong style="color:red;">Note:</strong> You can use WordPress Shortcodes', 'publisher' ),
	'id'   => 'footer_copy1',
	'type' => 'textarea',
);
$fields['footer_copy2']       = array(
	'name' => __( 'Footer Right Copyright Text', 'publisher' ),
	'desc' => __( 'Enter the copy right text of footer.<br>
You can use following pattern to make replace them with real data:<br><br>
<code>%%year%%</code>: Will replcae with current year, ex: 2015<br>
<code>%%date%%</code>: Will replcae with current year, ex: 2015<br>
<code>%%sitename%%</code>: Will replace with site title.<br>
<code>%%title%%</code>: Will replace with site title.<br>
<code>%%siteurl%%</code>: Will replace with site homepage url.<br><br>
<strong style="color:red;">Note:</strong> You can use WordPress Shortcodes', 'publisher' ),
	'id'   => 'footer_copy2',
	'type' => 'textarea',
);
$fields['footer_layout']      = array(
	'name'             => __( 'Footer Layout', 'publisher' ),
	'id'               => 'footer_layout',
	'desc'             => __( 'Select footer layout.', 'publisher' ),
	'style'            => $styles,
	'type'             => 'select',
	'deferred-options' => array(
		'callback' => 'publisher_footer_layout_option_list',
		'args'     => array(
			false,
		),
	),
);
$fields[]                     = array(
	'name'  => __( 'Footer Instagram', 'publisher' ),
	'type'  => 'group',
	'state' => 'open',
);
$fields['footer_social_feed'] = array(
	'name'    => __( 'Show Footer Instagram', 'publisher' ),
	'desc'    => __( 'Choose to show or hide instagram in footer.', 'publisher' ),
	'id'      => 'footer_social_feed',
	'style'   => $styles,
	'type'    => 'select',
	'options' => array(
		'hide'    => __( '-- Hide --', 'publisher' ),
		'style-1' => __( 'Style 1', 'publisher' ),
		'style-2' => __( 'Style 2', 'publisher' ),
		'style-3' => __( 'Style 3', 'publisher' ),
	)
);
$fields['footer_instagram']   = array(
	'name'    => __( 'Instagram Username', 'publisher' ),
	'desc'    => __( 'Enter your instagram user name if you will to show instagram feed in footer.', 'publisher' ),
	'id'      => 'footer_instagram',
	'ltr'     => true,
	'type'    => 'text',
	'show_on' => array(
		array(
			'footer_social_feed!=hide',
		)
	),
);

$fields[]                               = array(
	'name'  => __( 'Footer Widgets', 'publisher' ),
	'type'  => 'group',
	'state' => 'open',
);
$fields['footer_widgets']               = array(
	'name'    => __( 'Show Footer Widgets', 'publisher' ),
	'desc'    => __( 'Choose to show or hide widgets in footer.', 'publisher' ),
	'id'      => 'footer_widgets',
	'style'   => $styles,
	'type'    => 'select',
	'options' => array(
		'4-column' => __( '4 column widgets', 'publisher' ),
		'3-column' => __( '3 column widgets', 'publisher' ),
		'2-column' => __( '2 column widgets', 'publisher' ),
		'1-column' => __( '1 column widgets', 'publisher' ),
		'hide'     => __( '-- Hide --', 'publisher' ),
	)
);
$fields['footer_widgets_heading_style'] = array(
	'name'             => __( 'Footer Widgets Heading style', 'publisher' ),
	'desc'             => __( 'Customize widgets heading style only for footer widgets.', 'publisher' ),
	'id'               => 'footer_widgets_heading_style',
	'style'            => $styles,
	'type'             => 'select_popup',
	'column_class'     => 'one-column social-share-select-modal',
	'deferred-options' => array(
		'callback' => 'publisher_cb_heading_option_list',
		'args'     => array(
			true
		),
	),
);

$fields[]                = array(
	'name'  => __( 'Footer Social Icons', 'publisher' ),
	'type'  => 'group',
	'state' => 'open',
);
$fields['footer_social'] = array(
	'name'    => __( 'Show Footer Social Icons', 'publisher' ),
	'desc'    => __( 'Choose to show or hide social icons in footer..', 'publisher' ),
	'id'      => 'footer_social',
	'style'   => $styles,
	'type'    => 'select',
	'options' => array(
		'show' => __( 'Show', 'publisher' ),
		'hide' => __( 'Hide', 'publisher' ),
	)
);

if ( class_exists( 'Better_Social_Counter' ) && class_exists( 'Better_Social_Counter_Data_Manager' ) ) {
	$fields['footer_social_sites'] = array(
		'name'             => __( 'Sort and Active Sites', 'publisher' ),
		'id'               => 'footer_social_sites',
		'desc'             =>
			wp_kses( sprintf( __( 'Select sites you will to show them in footer and sort them. <br><br>
For activating sites you should enter your information in <a href="%s" target="_blank">Better Social Counter</a> Panel.
', 'publisher' ), get_admin_url( null, 'admin.php?page=better-studio/better-social-counter' ) ), bf_trans_allowed_html() ),
		'type'             => 'sorter_checkbox',
		'deferred-options' => array(
			'callback' => 'publisher_social_counter_options_list_callback',
		),
		'section_class'    => 'better-social-counter-sorter',
	);
} else {
	$fields['footer-social-icons-help'] = array(
		'name'          => __( 'Social Icons Instructions', 'publisher' ),
		'id'            => 'footer-social-icons-help',
		'type'          => 'info',
		'std'           => sprintf( __( '<p>For adding social icons in top bar you should first install and active <a href="%s">Better Social Counter</a> plugin.</p>', 'publisher' ), get_admin_url( null, 'admin.php?page=bs-product-pages-install-plugin' ) ),
		'state'         => 'open',
		'info-type'     => 'help',
		'section_class' => 'widefat',
	);
}


/**
 * => Injection Locations
 */
$fields['injection_location_settings']     = array(
	'name'     => __( 'Injection Locations', 'publisher' ),
	'id'       => 'injection_location_settings',
	'type'     => 'tab',
	'ajax-tab' => true,
	'icon'     => 'bsai-inject',
	'badge'    => array(
		'text'  => __( 'New', 'publisher' ),
		'color' => '#11ce3a'
	),
);
$fields['injection-help']                  = array(
	'name'           => __( 'What is Injection Location?', 'publisher' ),
	'id'             => 'injection-help',
	'type'           => 'info',
	'std'            => '<p><img src="' . bf_get_theme_uri( 'images/admin/injection-help.png' ) . '" style="float:right; margin-left: 15px;">' . __( '"Injection Location" is a place that you can select a page to show the content of page in that location without need to change the theme codes. <br<br>You can use Visual Composer to create a advanced block and select it in a location to be injected.', 'publisher' ) . '</p>',
	'state'          => 'open',
	'info-type'      => 'help',
	'section_class'  => 'widefat',
	'ajax-tab-field' => 'injection_location_settings',
);
$fields[]                                  = array(
	'name'           => __( 'Header', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'injection_location_settings',
);
$fields[]                                  = array(
	'name'           => __( 'Before Header Location', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'injection_location_settings',
);
$fields['injection_before_header']         = array(
	'name'             => __( 'Select a page to inject', 'publisher' ),
	'desc'             => __( 'This page will be injected to "Before Header". You can use Visual Composer in that page to create advanced layout.', 'publisher' ),
	'id'               => 'injection_before_header',
	'type'             => 'select',
	'deferred-options' => array(
		'callback' => 'bf_deferred_option_get_pages',
		'args'     => array(
			array(
				'default'       => true,
				'group'         => true,
				'default-label' => __( '-- Not Selected --', 'publisher' ),
				'query'         => array(

					'post_status' => array( 'publish', 'future', 'pending', 'draft', 'private' ),
				)
			)
		),
	),
	'ajax-tab-field'   => 'injection_location_settings',
);
$fields[]                                  = array(
	'name'           => __( 'After Header Location', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'injection_location_settings',
);
$fields['injection_after_header']          = array(
	'name'             => __( 'Select a page to inject', 'publisher' ),
	'desc'             => __( 'This page will be injected to "After Header". You can use Visual Composer in that page to create advanced layout.', 'publisher' ),
	'id'               => 'injection_after_header',
	'type'             => 'select',
	'deferred-options' => array(
		'callback' => 'bf_deferred_option_get_pages',
		'args'     => array(
			array(
				'default'       => true,
				'group'         => true,
				'default-label' => __( '-- Not Selected --', 'publisher' ),
				'query'         => array(

					'post_status' => array( 'publish', 'future', 'pending', 'draft', 'private' ),
				)
			)
		),
	),
	'ajax-tab-field'   => 'injection_location_settings',
);
$fields[]                                  = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'injection_location_settings',
);
$fields[]                                  = array(
	'name'           => __( 'Footer', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'injection_location_settings',
);
$fields[]                                  = array(
	'name'           => __( 'Before Footer Location', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'injection_location_settings',
);
$fields['injection_before_footer']         = array(
	'name'             => __( 'Select a page to inject', 'publisher' ),
	'desc'             => __( 'This page will be injected to "Before Footer". You can use Visual Composer in that page to create advanced layout.', 'publisher' ),
	'id'               => 'injection_before_footer',
	'type'             => 'select',
	'deferred-options' => array(
		'callback' => 'bf_deferred_option_get_pages',
		'args'     => array(
			array(
				'default'       => true,
				'group'         => true,
				'default-label' => __( '-- Not Selected --', 'publisher' ),
				'query'         => array(

					'post_status' => array( 'publish', 'future', 'pending', 'draft', 'private' ),
				)
			)
		),
	),
	'ajax-tab-field'   => 'injection_location_settings',
);
$fields[]                                  = array(
	'name'           => __( 'After Footer Location', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'injection_location_settings',
);
$fields['injection_after_footer']          = array(
	'name'             => __( 'Select a page to inject', 'publisher' ),
	'desc'             => __( 'This page will be injected to "After Footer". You can use Visual Composer in that page to create advanced layout.', 'publisher' ),
	'id'               => 'injection_after_footer',
	'type'             => 'select',
	'deferred-options' => array(
		'callback' => 'bf_deferred_option_get_pages',
		'args'     => array(
			array(
				'default'       => true,
				'group'         => true,
				'default-label' => __( '-- Not Selected --', 'publisher' ),
				'query'         => array(

					'post_status' => array( 'publish', 'future', 'pending', 'draft', 'private' ),
				)
			)
		),
	),
	'ajax-tab-field'   => 'injection_location_settings',
);
$fields[]                                  = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'injection_location_settings',
);
$fields[]                                  = array(
	'name'           => __( 'Posts', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'injection_location_settings',
);
$fields[]                                  = array(
	'name'           => __( 'After Header in Posts', 'publisher' ),
	'desc'           => __( 'This location is exactly before the featured image of posts.', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'injection_location_settings',
);
$fields['injection_post_after_header']     = array(
	'name'             => __( 'Select a page to inject', 'publisher' ),
	'desc'             => __( 'This page will be injected to "After Header In Posts". You can use Visual Composer in that page to create advanced layout.', 'publisher' ),
	'id'               => 'injection_post_after_header',
	'type'             => 'select',
	'deferred-options' => array(
		'callback' => 'bf_deferred_option_get_pages',
		'args'     => array(
			array(
				'default'       => true,
				'group'         => true,
				'default-label' => __( '-- Not Selected --', 'publisher' ),
				'query'         => array(
					'post_status' => array( 'publish', 'future', 'pending', 'draft', 'private' ),
				)
			)
		),
	),
	'ajax-tab-field'   => 'injection_location_settings',
);
$fields[]                                  = array(
	'name'           => __( 'Before Footer In Posts', 'publisher' ),
	'desc'           => __( 'This location is exactly before the footer only in the post pages.', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'injection_location_settings',
);
$fields['injection_post_before_footer']    = array(
	'name'             => __( 'Select a page to inject', 'publisher' ),
	'desc'             => __( 'This page will be injected to "Before Footer in Posts". You can use Visual Composer in that page to create advanced layout.', 'publisher' ),
	'id'               => 'injection_post_before_footer',
	'type'             => 'select',
	'deferred-options' => array(
		'callback' => 'bf_deferred_option_get_pages',
		'args'     => array(
			array(
				'default'       => true,
				'group'         => true,
				'default-label' => __( '-- Not Selected --', 'publisher' ),
				'query'         => array(
					'post_status' => array( 'publish', 'future', 'pending', 'draft', 'private' ),
				)
			)
		),
	),
	'ajax-tab-field'   => 'injection_location_settings',
);
$fields[]                                  = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'injection_location_settings',
);
$fields[]                                  = array(
	'name'           => __( 'Category', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'injection_location_settings',
);
$fields[]                                  = array(
	'name'           => __( 'After Category Header Injection Location', 'publisher' ),
	'desc'           => __( 'This location is exactly after the header section of each category where the category name is placed.', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'injection_location_settings',
);
$fields['injection_category_after_header'] = array(
	'name'             => __( 'Select a page to inject', 'publisher' ),
	'desc'             => __( 'This page will be injected to "After Category Header". You can use Visual Composer in that page to create advanced layout.', 'publisher' ),
	'id'               => 'injection_category_after_header',
	'type'             => 'select',
	'deferred-options' => array(
		'callback' => 'bf_deferred_option_get_pages',
		'args'     => array(
			array(
				'default'       => true,
				'group'         => true,
				'default-label' => __( '-- Not Selected --', 'publisher' ),
				'query'         => array(
					'post_status' => array( 'publish', 'future', 'pending', 'draft', 'private' ),
				)
			)
		),
	),
	'ajax-tab-field'   => 'injection_location_settings',
);
$fields[]                                  = array(
	'name'           => __( 'After Category Posts Injection Location', 'publisher' ),
	'desc'           => __( 'This location is exactly after the posts section of each category.', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'injection_location_settings',
);
$fields['injection_category_after_posts']  = array(
	'name'             => __( 'Select a page to inject', 'publisher' ),
	'desc'             => __( 'This page will be injected to "After Category Posts". You can use Visual Composer in that page to create advanced layout.', 'publisher' ),
	'id'               => 'injection_category_after_posts',
	'type'             => 'select',
	'deferred-options' => array(
		'callback' => 'bf_deferred_option_get_pages',
		'args'     => array(
			array(
				'default'       => true,
				'group'         => true,
				'default-label' => __( '-- Not Selected --', 'publisher' ),
				'query'         => array(

					'post_status' => array( 'publish', 'future', 'pending', 'draft', 'private' ),
				)
			)
		),
	),
	'ajax-tab-field'   => 'injection_location_settings',
);
$fields[]                                  = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'injection_location_settings',
);
$fields[]                                  = array(
	'name'           => __( 'Tags', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'injection_location_settings',
);
$fields[]                                  = array(
	'name'           => __( 'After Tags Header Injection Location', 'publisher' ),
	'desc'           => __( 'This location is exactly after the header section of each tag where the tag name is placed.', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'injection_location_settings',
);
$fields['injection_tag_after_header']      = array(
	'name'             => __( 'Select a page to inject', 'publisher' ),
	'desc'             => __( 'This page will be injected to "After Tag Header". You can use Visual Composer in that page to create advanced layout.', 'publisher' ),
	'id'               => 'injection_tag_after_header',
	'type'             => 'select',
	'deferred-options' => array(
		'callback' => 'bf_deferred_option_get_pages',
		'args'     => array(
			array(
				'default'       => true,
				'group'         => true,
				'default-label' => __( '-- Not Selected --', 'publisher' ),
				'query'         => array(

					'post_status' => array( 'publish', 'future', 'pending', 'draft', 'private' ),
				)
			)
		),
	),
	'ajax-tab-field'   => 'injection_location_settings',
);
$fields[]                                  = array(
	'name'           => __( 'After Tags Posts Injection Location', 'publisher' ),
	'desc'           => __( 'This location is exactly after the posts section of each tag.', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'injection_location_settings',
);
$fields['injection_tag_after_posts']       = array(
	'name'             => __( 'Select a page to inject', 'publisher' ),
	'desc'             => __( 'This page will be injected to "After Tag Posts". You can use Visual Composer in that page to create advanced layout.', 'publisher' ),
	'id'               => 'injection_tag_after_posts',
	'type'             => 'select',
	'deferred-options' => array(
		'callback' => 'bf_deferred_option_get_pages',
		'args'     => array(
			array(
				'default'       => true,
				'group'         => true,
				'default-label' => __( '-- Not Selected --', 'publisher' ),
				'query'         => array(

					'post_status' => array( 'publish', 'future', 'pending', 'draft', 'private' ),
				)
			)
		),
	),
	'ajax-tab-field'   => 'injection_location_settings',
);

/**
 * => Color Options
 */
$fields[]                       = array(
	'name'     => __( 'Color & Style', 'publisher' ),
	'id'       => 'color_settings',
	'type'     => 'tab',
	'icon'     => 'bsai-paint',
	'ajax-tab' => true,
);
$fields['reset_color_settings'] = array(
	'name'           => __( 'Reset Color Settings', 'publisher' ),
	'id'             => 'reset_color_settings',
	'type'           => 'ajax_action',
	'button-name'    => '<i class="fa fa-refresh"></i> ' . __( 'Reset Color Settings', 'publisher' ),
	'callback'       => 'Publisher::reset_color_options',
	'confirm'        => __( 'Are you sure for resetting all color settings?', 'publisher' ),
	'desc'           => __( 'This allows you to reset all color settings to default.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['_general_fields']      = array(
	'name'           => __( 'General Colors', 'publisher' ),
	'type'           => 'group',
	'state'          => 'open',
	'ajax-tab-field' => 'color_settings',
);
$fields['theme_color']          = array(
	'name'           => __( 'Theme Highlight Color', 'publisher' ),
	'id'             => 'theme_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'It is the contrast color for the theme. It will be used for all links, menu, category overlays, main page and many contrasting elements.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['site_bg_color']        = array(
	'name'               => __( 'Site Background Color', 'publisher' ),
	'id'                 => 'site_bg_color',
	'type'               => 'color',
	'style'              => $styles,
	'reset-color'        => true, // to reset in panel
	'desc'               => __( 'Setting a body background image below will override it.', 'publisher' ),
	'ajax-section-field' => 'color_settings',
);
$fields['site_bg_image']        = array(
	'name'           => __( 'Site Background Image 1', 'publisher' ),
	'id'             => 'site_bg_image',
	'type'           => 'background_image',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'upload_label'   => __( 'Upload Image', 'publisher' ),
	'desc'           => __( 'Use light patterns in non-boxed layout. For patterns, use a repeating background. Use photo to fully cover the background with an image. Note that it will override the background color option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields[]                       = array(
	'name'           => __( 'Background Image 2', 'publisher' ),
	'desc'           => __( 'This background will be added to HTML tag and will be before the body tag. you can use this to add combination of 2 image to your site.', 'publisher' ),
	'type'           => 'group',
	'level'          => 2,
	'state'          => 'close',
	'ajax-tab-field' => 'color_settings',
);
$fields['site_bg_color_2']      = array(
	'name'               => __( 'Site Background Color 2', 'publisher' ),
	'id'                 => 'site_bg_color_2',
	'type'               => 'color',
	'style'              => $styles,
	'reset-color'        => true, // to reset in panel
	'desc'               => __( 'Setting a background image below will override it.', 'publisher' ),
	'ajax-section-field' => 'color_settings',
);
$fields['site_bg_image_2']      = array(
	'name'           => __( 'Site Background Image 2', 'publisher' ),
	'id'             => 'site_bg_image_2',
	'type'           => 'background_image',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'upload_label'   => __( 'Upload Image', 'publisher' ),
	'desc'           => __( 'Use light patterns in non-boxed layout. For patterns, use a repeating background. Use photo to fully cover the background with an image. Note that it will override the background color option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);


/**
 * -> Topbar Colors
 */
$fields[]                     = array(
	'name'           => __( 'Topbar', 'publisher' ),
	'type'           => 'group',
	'state'          => 'open',
	'ajax-tab-field' => 'color_settings',
);
$fields['topbar_date_bg']     = array(
	'name'           => __( 'Topbar Date Background Color', 'publisher' ),
	'id'             => 'topbar_date_bg',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'ajax-tab-field' => 'color_settings',
);
$fields['topbar_date_color']  = array(
	'name'           => __( 'Topbar Date Text Color', 'publisher' ),
	'id'             => 'topbar_date_color',
	'style'          => $styles,
	'type'           => 'color',
	'reset-color'    => true, // to reset in panel
	'ajax-tab-field' => 'color_settings',
);
$fields['topbar_text_color']  = array(
	'name'           => __( 'Topbar Text Color', 'publisher' ),
	'id'             => 'topbar_text_color',
	'style'          => $styles,
	'type'           => 'color',
	'reset-color'    => true, // to reset in panel
	'ajax-tab-field' => 'color_settings',
);
$fields['topbar_text_hcolor'] = array(
	'name'           => __( 'Topbar Text Hover Color', 'publisher' ),
	'id'             => 'topbar_text_hcolor',
	'style'          => $styles,
	'type'           => 'color',
	'reset-color'    => true, // to reset in panel
	'ajax-tab-field' => 'color_settings',
);

$fields['topbar_bg_color']     = array(
	'name'           => __( 'Topbar Background Color', 'publisher' ),
	'id'             => 'topbar_bg_color',
	'style'          => $styles,
	'type'           => 'color',
	'reset-color'    => true, // to reset in panel
	'ajax-tab-field' => 'color_settings',
);
$fields['topbar_border_color'] = array(
	'name'           => __( 'Topbar Bottom Line Color', 'publisher' ),
	'id'             => 'topbar_border_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'ajax-tab-field' => 'color_settings',
);

$fields['topbar_icon_text_color']  = array(
	'name'           => __( 'Topbar Social Icon Text Color', 'publisher' ),
	'id'             => 'topbar_icon_text_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'ajax-tab-field' => 'color_settings',
);
$fields['topbar_icon_text_hcolor'] = array(
	'name'           => __( 'Topbar Social Icon Text Hover Color', 'publisher' ),
	'id'             => 'topbar_icon_text_hcolor',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'ajax-tab-field' => 'color_settings',
);
$fields['topbar_icon_bg']          = array(
	'name'           => __( 'Topbar Social Icon Background', 'publisher' ),
	'id'             => 'topbar_icon_bg',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'ajax-tab-field' => 'color_settings',
);
$fields['topbar_icon_bg_hover']    = array(
	'name'           => __( 'Topbar Social Icon Mouse Hover Background', 'publisher' ),
	'id'             => 'topbar_icon_bg_hover',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'ajax-tab-field' => 'color_settings',
);


/**
 * -> Header Colors
 */
$fields[]                                = array(
	'name'           => __( 'Header', 'publisher' ),
	'type'           => 'group',
	'state'          => 'open',
	'ajax-tab-field' => 'color_settings',
);
$fields['header_top_border']             = array(
	'name'           => __( 'Show header top line?', 'publisher' ),
	'id'             => 'header_top_border',
	'type'           => 'switch',
	'style'          => $styles,
	'on-label'       => __( 'Yes', 'publisher' ),
	'off-label'      => __( 'No', 'publisher' ),
	'desc'           => __( 'You can hide header border top line with this option', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['header_top_border_color']       = array(
	'name'           => __( 'Header Top Line Color', 'publisher' ),
	'id'             => 'header_top_border_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change header top line color with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
	'show_on'        => array(
		array( 'header_top_border=1' )
	)
);
$fields['header_menu_btop_color']        = array(
	'name'           => __( 'Main Menu Top Line Color', 'publisher' ),
	'id'             => 'header_menu_btop_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change header top & bottom line color with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['header_menu_st1_bbottom_color'] = array(
	'name'           => __( 'Main Menu Bottom Line Color', 'publisher' ),
	'id'             => 'header_menu_st1_bbottom_color',
	'type'           => 'color',
	'style'          => $styles,
	'show_on'        => array(
		array( 'header_style=style-1' )
	),
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change header bottom line color with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['header_menu_st2_bbottom_color'] = array(
	'name'           => __( 'Main Menu Bottom Line Color', 'publisher' ),
	'id'             => 'header_menu_st2_bbottom_color',
	'type'           => 'color',
	'style'          => $styles,
	'show_on'        => array(
		array( 'header_style=style-2' )
	),
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change header bottom line color with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);

$fields['header_menu_st3_bbottom_color'] = array(
	'name'           => __( 'Header Bottom Line Color', 'publisher' ),
	'id'             => 'header_menu_st3_bbottom_color',
	'type'           => 'color',
	'style'          => $styles,
	'show_on'        => array(
		array( 'header_style=style-3' )
	),
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change header 4 bottom line color with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['header_menu_st4_bbottom_color'] = array(
	'name'           => __( 'Header Bottom Line Color', 'publisher' ),
	'id'             => 'header_menu_st4_bbottom_color',
	'type'           => 'color',
	'style'          => $styles,
	'show_on'        => array(
		array( 'header_style=style-4' )
	),
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change header 4 bottom line color with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['header_menu_st5_bbottom_color'] = array(
	'name'           => __( 'Header 5 Bottom Line Color', 'publisher' ),
	'id'             => 'header_menu_st5_bbottom_color',
	'type'           => 'color',
	'style'          => $styles,
	'show_on'        => array(
		array( 'header_style=style-5' )
	),
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change header 5 bottom line color with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['header_menu_st6_bbottom_color'] = array(
	'name'           => __( 'Header 6 Menu Bottom Line Color', 'publisher' ),
	'id'             => 'header_menu_st6_bbottom_color',
	'type'           => 'color',
	'style'          => $styles,
	'show_on'        => array(
		array( 'header_style=style-6' )
	),
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change header 6 bottom line color with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['header_menu_st7_bbottom_color'] = array(
	'name'           => __( 'Header Bottom Line Color', 'publisher' ),
	'id'             => 'header_menu_st7_bbottom_color',
	'type'           => 'color',
	'style'          => $styles,
	'show_on'        => array(
		array( 'header_style=style-7' )
	),
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change header 7 bottom line color with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['header_menu_st8_bbottom_color'] = array(
	'name'           => __( 'Header Bottom Line Color', 'publisher' ),
	'id'             => 'header_menu_st8_bbottom_color',
	'type'           => 'color',
	'style'          => $styles,
	'show_on'        => array(
		array( 'header_style=style-8' )
	),
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change header 8 bottom line color with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);

$fields['header_menu_text_color']       = array(
	'name'           => __( 'Main Menu Text Color', 'publisher' ),
	'id'             => 'header_menu_text_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change main menu text color with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['header_menu_text_h_color']     = array(
	'name'           => __( 'Main Menu Text Hover Color', 'publisher' ),
	'id'             => 'header_menu_text_h_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change main menu hover color with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['header_menu_item_h_bg_color']  = array(
	'name'           => __( 'Main Menu Item Background Color On Hover', 'publisher' ),
	'id'             => 'header_menu_item_h_bg_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change main menu item background color on hover with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['header_menu_sub_text_h_color'] = array(
	'name'           => __( 'Main Menu -> Sub Menu -> Hover Color', 'publisher' ),
	'id'             => 'header_menu_sub_text_h_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change "main menu -> sub menu -> hover color" with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['header_menu_bg_color']         = array(
	'name'           => __( 'Main Menu Background Color', 'publisher' ),
	'id'             => 'header_menu_bg_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change main menu background color with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['header_submenu_bg_color']      = array(
	'name'           => __( 'Main Sub Menu Background Color', 'publisher' ),
	'id'             => 'header_submenu_bg_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change main sub menu background color with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['header_submenu_color']         = array(
	'name'           => __( 'Main Sub Menu Text Color', 'publisher' ),
	'id'             => 'header_submenu_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change main sub menu text color with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['header_bg_color']              = array(
	'name'           => __( 'Header Background Color', 'publisher' ),
	'id'             => 'header_bg_color',
	'type'           => 'color',
	'reset-color'    => true, // to reset in panel
	'style'          => $styles,
	'desc'           => __( 'You can change header background color with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['header_bg_image']              = array(
	'name'           => __( 'Header Background Image', 'publisher' ),
	'id'             => 'header_bg_image',
	'type'           => 'background_image',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'upload_label'   => __( 'Upload Image', 'publisher' ),
	'desc'           => __( 'Use light patterns in non-boxed layout. For patterns, use a repeating background. Use photo to fully cover the background with an image. Note that it will override the background color option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);


/**
 * -> Posts Colors
 */
$fields[]                        = array(
	'name'           => __( 'Posts & Pages Colors', 'publisher' ),
	'type'           => 'group',
	'state'          => 'open',
	'ajax-tab-field' => 'color_settings',
);
$fields['content_a_color']       = array(
	'name'           => __( 'Links Color', 'publisher' ),
	'id'             => 'content_a_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change link color with this field.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['content_a_hover_color'] = array(
	'name'           => __( 'Links Mouse Hover Color', 'publisher' ),
	'id'             => 'content_a_hover_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change link mouse hover color with this field.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);


/**
 * -> Slider Colors
 */
$fields[]                        = array(
	'name'           => __( 'Category Top Posts', 'publisher' ),
	'type'           => 'group',
	'state'          => 'open',
	'ajax-tab-field' => 'color_settings',
);
$fields['cat_topposts_bg_color'] = array(
	'name'           => __( 'Category Top Posts Style 1 Background Color', 'publisher' ),
	'id'             => 'cat_topposts_bg_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change slider background color with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);


/**
 * -> Footer Colors
 */
$fields[]                          = array(
	'name'           => __( 'Footer', 'publisher' ),
	'type'           => 'group',
	'state'          => 'open',
	'ajax-tab-field' => 'color_settings',
);
$fields['footer_link_color']       = array(
	'name'           => __( 'Footer Copyright Section Text & Links Color', 'publisher' ),
	'id'             => 'footer_link_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change footer links color with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['footer_link_hover_color'] = array(
	'name'           => __( 'Footer Copyright Links Hover Color', 'publisher' ),
	'id'             => 'footer_link_hover_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change footer links hover color with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['footer_widgets_text']     = array(
	'name'           => __( 'Footer Widgets Text Color', 'publisher' ),
	'desc'           => __( 'Choose the color of texts in footer widgets! use this with following widgets background color to make texts compatible.', 'publisher' ),
	'id'             => 'footer_widgets_text',
	'style'          => $styles,
	'type'           => 'select',
	'reset-color'    => true, // to reset in panel
	'options'        => array(
		'light-text' => __( 'Light Texts', 'publisher' ),
		'dark-text'  => __( 'Dark Texts', 'publisher' ),
	),
	'ajax-tab-field' => 'color_settings',
);
$fields['footer_widgets_bg_color'] = array(
	'name'           => __( 'Footer Widgets Background Color', 'publisher' ),
	'id'             => 'footer_widgets_bg_color',
	'style'          => $styles,
	'type'           => 'color',
	'reset-color'    => true, // to reset in panel
	'ajax-tab-field' => 'color_settings',
);
$fields['footer_line_top_color']   = array(
	'name'           => __( 'Footer Top Line Color', 'publisher' ),
	'id'             => 'footer_line_top_color',
	'style'          => $styles,
	'type'           => 'color',
	'reset-color'    => true, // to reset in panel
	'ajax-tab-field' => 'color_settings',
);
$fields['footer_menu_bg_color']    = array(
	'name'           => __( 'Footer Menu Background Color', 'publisher' ),
	'id'             => 'footer_menu_bg_color',
	'style'          => $styles,
	'type'           => 'color',
	'reset-color'    => true, // to reset in panel
	'ajax-tab-field' => 'color_settings',
);
$fields['footer_copy_bg_color']    = array(
	'name'           => __( 'Copyright Footer Background Color', 'publisher' ),
	'id'             => 'footer_copy_bg_color',
	'style'          => $styles,
	'type'           => 'color',
	'reset-color'    => true, // to reset in panel
	'ajax-tab-field' => 'color_settings',
);
$fields['footer_social_bg_color']  = array(
	'name'           => __( 'Footer Social Icons Background Color', 'publisher' ),
	'id'             => 'footer_social_bg_color',
	'style'          => $styles,
	'type'           => 'color',
	'reset-color'    => true, // to reset in panel
	'ajax-tab-field' => 'color_settings',
);
$fields['footer_bg_color']         = array(
	'name'           => __( 'Footer Background Color', 'publisher' ),
	'id'             => 'footer_bg_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change footer background color with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['footer_bg_image']         = array(
	'name'           => __( 'Footer Background Image', 'publisher' ),
	'id'             => 'footer_bg_image',
	'type'           => 'background_image',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'upload_label'   => __( 'Upload Image', 'publisher' ),
	'desc'           => __( 'Use light patterns in non-boxed layout. For patterns, use a repeating background. Use photo to fully cover the background with an image. Note that it will override the background color option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);


/**
 * -> Widgets
 */
$fields[]                        = array(
	'name'           => __( 'Widgets', 'publisher' ),
	'type'           => 'group',
	'state'          => 'open',
	'ajax-tab-field' => 'color_settings',
);
$fields['widgets_heading_style'] = array(
	'name'             => __( 'Widgets Heading Style', 'publisher' ),
	'desc'             => __( 'Customize widgtes heading style for single & archive pages.', 'publisher' ),
	'id'               => 'widgets_heading_style',
	'style'            => $styles,
	'type'             => 'select_popup',
	'column_class'     => 'one-column social-share-select-modal',
	'deferred-options' => array(
		'callback' => 'publisher_cb_heading_option_list',
		'args'     => array(
			true
		),
	),
	'ajax-tab-field'   => 'color_settings',
);
$fields['widget_bg_color']       = array(
	'name'           => __( 'Widget Background Color', 'publisher' ),
	'id'             => 'widget_bg_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change background color of widgets with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);


/**
 * -> Section Headings
 */
$fields[]                         = array(
	'name'           => __( 'Section Headings', 'publisher' ),
	'type'           => 'group',
	'state'          => 'open',
	'ajax-tab-field' => 'color_settings',
);
$fields['section_title_color']    = array(
	'name'           => __( 'Section Title Text Color', 'publisher' ),
	'id'             => 'section_title_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change text color of sections title with this option.<br> This field will not work for the style 13.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['section_title_bg_color'] = array(
	'name'           => __( 'Section Title Background Color', 'publisher' ),
	'id'             => 'section_title_bg_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change background color of sections title with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);

/**
 * -> Term Badge
 */
$fields[]                        = array(
	'name'           => __( 'Term Badge', 'publisher' ),
	'type'           => 'group',
	'state'          => 'open',
	'ajax-tab-field' => 'color_settings',
);
$fields['term_badge_bg_color']   = array(
	'name'           => __( 'Term Badge Background Color', 'publisher' ),
	'id'             => 'term_badge_bg_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change normal Background Color of Term Badge with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['term_badge_text_color'] = array(
	'name'           => __( 'Term Badge Text Color', 'publisher' ),
	'desc'           => __( 'You can change normal Text Color of Term Badge with this option.', 'publisher' ),
	'id'             => 'term_badge_text_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'ajax-tab-field' => 'color_settings',
);

/**
 * -> Blocks & Listings
 */
$fields[]                                = array(
	'name'           => __( 'Blocks & Listings', 'publisher' ),
	'type'           => 'group',
	'state'          => 'open',
	'ajax-tab-field' => 'color_settings',
);
$fields['listings_readmore_color']       = array(
	'name'           => __( 'Read more button color', 'publisher' ),
	'id'             => 'listings_readmore_color',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'desc'           => __( 'You can change normal color of read mroe button with this option.', 'publisher' ),
	'ajax-tab-field' => 'color_settings',
);
$fields['listings_readmore_color_hover'] = array(
	'name'           => __( 'Read more button hover color', 'publisher' ),
	'desc'           => __( 'You can change hover color of read more button with this option.', 'publisher' ),
	'id'             => 'listings_readmore_color_hover',
	'type'           => 'color',
	'style'          => $styles,
	'reset-color'    => true, // to reset in panel
	'ajax-tab-field' => 'color_settings',
);


/**
 * => Typography Options
 */
$fields[]                      = array(
	'name'     => __( 'Typography', 'publisher' ),
	'id'       => 'typo_settings',
	'type'     => 'tab',
	'icon'     => 'bsai-typography',
	'ajax-tab' => true
);
$fields['reset_typo_settings'] = array(
	'name'           => __( 'Reset Typography settings', 'publisher' ),
	'id'             => 'reset_typo_settings',
	'type'           => 'ajax_action',
	'button-name'    => '<i class="fa fa-refresh"></i> ' . __( 'Reset Typography', 'publisher' ),
	'callback'       => 'Publisher::reset_typography_options',
	'confirm'        => __( 'Are you sure for resetting typography?', 'publisher' ),
	'desc'           => __( 'This allows you to reset all typography fields to default.', 'publisher' ),
	'ajax-tab-field' => 'typo_settings',
);

/**
 * -> General Typography
 *
 * todo recheck the automatic css selectors to delete extra selectors
 */
$fields[]                   = array(
	'name'           => __( 'General Typography', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_body']        = array(
	'name'           => __( 'Base Font (Body)', 'publisher' ),
	'id'             => 'typo_body',
	'type'           => 'typography',
	'style'          => $styles,
	'desc'           => __( 'Base typography for body that will affect all elements that haven\'t specified typography style. ', 'publisher' ),
	'preview'        => true,
	'preview_tab'    => 'paragraph',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_meta']        = array(
	'name'           => __( 'Posts Meta', 'publisher' ),
	'id'             => 'typo_meta',
	'type'           => 'typography',
	'style'          => $styles,
	'desc'           => __( 'Typography of posts info in post meta.', 'publisher' ),
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_meta_author'] = array(
	'name'           => __( 'Posts Meta (Author Name)', 'publisher' ),
	'id'             => 'typo_meta_author',
	'type'           => 'typography',
	'style'          => $styles,
	'desc'           => __( 'Typography of posts info in post meta.', 'publisher' ),
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);

$fields['typo_badges'] = array(
	'name'           => __( 'Posts Badges', 'publisher' ),
	'id'             => 'typo_badges',
	'type'           => 'typography',
	'style'          => $styles,
	'desc'           => __( 'Typography of category and post format badges.', 'publisher' ),
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);

$fields[] = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[] = array(
	'name'           => __( 'Post Typography', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'typo_settings',
);

/**
 * -> Post & Page Typography
 */
$fields[]                  = array(
	'name'           => __( 'Headings (H1-H6) ', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_heading']    = array(
	'name'           => __( 'Base Heading Typography', 'publisher' ),
	'id'             => 'typo_heading',
	'type'           => 'typography',
	'style'          => $styles,
	'desc'           => __( 'Base heading typography that will be set to all headings (h1,h2 etc) and all titles of sections and pages that must be bolder than other texts.', 'publisher' ),
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_heading_h1'] = array(
	'name'           => __( 'H1 Font Size & Color', 'publisher' ),
	'id'             => 'typo_heading_h1',
	'type'           => 'custom',
	'input_callback' => array(
		'callback' => 'publisher_cb_heading_typo_fields',
		'args'     => array(
			array(
				'field' => 'h1',
			)
		),
	),
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_heading_h2'] = array(
	'name'           => __( 'H2 Font Size & Color', 'publisher' ),
	'id'             => 'typo_heading_h2',
	'type'           => 'custom',
	'input_callback' => array(
		'callback' => 'publisher_cb_heading_typo_fields',
		'args'     => array(
			array(
				'field' => 'h2',
			)
		),
	),
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_heading_h3'] = array(
	'name'           => __( 'H3 Font Size & Color', 'publisher' ),
	'id'             => 'typo_heading_h3',
	'type'           => 'custom',
	'input_callback' => array(
		'callback' => 'publisher_cb_heading_typo_fields',
		'args'     => array(
			array(
				'field' => 'h3',
			)
		),
	),
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_heading_h4'] = array(
	'name'           => __( 'H4 Font Size & Color', 'publisher' ),
	'id'             => 'typo_heading_h4',
	'type'           => 'custom',
	'input_callback' => array(
		'callback' => 'publisher_cb_heading_typo_fields',
		'args'     => array(
			array(
				'field' => 'h4',
			)
		),
	),
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_heading_h5'] = array(
	'name'           => __( 'H5 Font Size & Color', 'publisher' ),
	'id'             => 'typo_heading_h5',
	'type'           => 'custom',
	'input_callback' => array(
		'callback' => 'publisher_cb_heading_typo_fields',
		'args'     => array(
			array(
				'field' => 'h5',
			)
		),
	),
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_heading_h6'] = array(
	'name'           => __( 'H6 Font Size & Color', 'publisher' ),
	'id'             => 'typo_heading_h6',
	'type'           => 'custom',
	'input_callback' => array(
		'callback' => 'publisher_cb_heading_typo_fields',
		'args'     => array(
			array(
				'field' => 'h6',
			)
		),
	),
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);


/**
 * -> Post & Page Typography
 */
$fields[]                           = array(
	'name'           => __( 'Post & Page', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_post_heading']        = array(
	'name'           => __( 'Post Title', 'publisher' ),
	'id'             => 'typo_post_heading',
	'type'           => 'typography',
	'style'          => $styles,
	'desc'           => __( 'Typography of post title in single pages.', 'publisher' ),
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_post_tp1_heading']    = array(
	'name'           => __( 'Post Template 1 Title Font Size', 'publisher' ),
	'id'             => 'typo_post_tp1_heading',
	'type'           => 'text',
	'style'          => $styles,
	'desc'           => __( 'Font size for title of post template 1.', 'publisher' ),
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_post_tp2_heading']    = array(
	'name'           => __( 'Post Template 2 Title Font Size', 'publisher' ),
	'id'             => 'typo_post_tp2_heading',
	'type'           => 'text',
	'style'          => $styles,
	'desc'           => __( 'Font size for title of post template 1.', 'publisher' ),
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_post_tp3_heading']    = array(
	'name'           => __( 'Post Template 3 Title Font Size', 'publisher' ),
	'id'             => 'typo_post_tp3_heading',
	'type'           => 'text',
	'style'          => $styles,
	'desc'           => __( 'Font size for title of post template 1.', 'publisher' ),
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_post_tp4_heading']    = array(
	'name'           => __( 'Post Template 4 Title Font Size', 'publisher' ),
	'id'             => 'typo_post_tp4_heading',
	'type'           => 'text',
	'style'          => $styles,
	'desc'           => __( 'Font size for title of post template 1.', 'publisher' ),
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_post_tp5_heading']    = array(
	'name'           => __( 'Post Template 5 Title Font Size', 'publisher' ),
	'id'             => 'typo_post_tp5_heading',
	'type'           => 'text',
	'style'          => $styles,
	'desc'           => __( 'Font size for title of post template 5.', 'publisher' ),
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_post_tp6_heading']    = array(
	'name'           => __( 'Post Template 6 Title Font Size', 'publisher' ),
	'id'             => 'typo_post_tp6_heading',
	'type'           => 'text',
	'style'          => $styles,
	'desc'           => __( 'Font size for title of post template 5.', 'publisher' ),
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_post_tp7_heading']    = array(
	'name'           => __( 'Post Template 7 Title Font Size', 'publisher' ),
	'id'             => 'typo_post_tp7_heading',
	'type'           => 'text',
	'style'          => $styles,
	'desc'           => __( 'Font size for title of post template 7.', 'publisher' ),
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_post_tp8_heading']    = array(
	'name'           => __( 'Post Template 8 Title Font Size', 'publisher' ),
	'id'             => 'typo_post_tp8_heading',
	'type'           => 'text',
	'style'          => $styles,
	'desc'           => __( 'Font size for title of post template 8.', 'publisher' ),
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_post_tp9_heading']    = array(
	'name'           => __( 'Post Template 9 Title Font Size', 'publisher' ),
	'id'             => 'typo_post_tp9_heading',
	'type'           => 'text',
	'style'          => $styles,
	'desc'           => __( 'Font size for title of post template 9.', 'publisher' ),
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_post_tp10_heading']   = array(
	'name'           => __( 'Post Template 10 Title Font Size', 'publisher' ),
	'id'             => 'typo_post_tp10_heading',
	'type'           => 'text',
	'style'          => $styles,
	'desc'           => __( 'Font size for title of post template 10.', 'publisher' ),
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_post_tp11_heading']   = array(
	'name'           => __( 'Post Template 11 Title Font Size', 'publisher' ),
	'id'             => 'typo_post_tp11_heading',
	'type'           => 'text',
	'style'          => $styles,
	'desc'           => __( 'Font size for title of post template 11.', 'publisher' ),
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_post_tp12_heading']   = array(
	'name'           => __( 'Post Template 12 Title Font Size', 'publisher' ),
	'id'             => 'typo_post_tp12_heading',
	'type'           => 'text',
	'style'          => $styles,
	'desc'           => __( 'Font size for title of post template 12.', 'publisher' ),
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_post_tp13_heading']   = array(
	'name'           => __( 'Post Template 13 Title Font Size', 'publisher' ),
	'id'             => 'typo_post_tp13_heading',
	'type'           => 'text',
	'style'          => $styles,
	'desc'           => __( 'Font size for title of post template 13.', 'publisher' ),
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_post_tp14_heading']   = array(
	'name'           => __( 'Post Template 14 Title Font Size', 'publisher' ),
	'id'             => 'typo_post_tp14_heading',
	'type'           => 'text',
	'style'          => $styles,
	'desc'           => __( 'Font size for title of post template 14.', 'publisher' ),
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_post_subtitle']       = array(
	'name'           => __( 'Post Sub Title', 'publisher' ),
	'id'             => 'typo_post_subtitle',
	'type'           => 'typography',
	'style'          => $styles,
	'desc'           => __( 'Typography of post sub title in single pages.', 'publisher' ),
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_entry_content']       = array(
	'name'           => __( 'Posts & Pages Content', 'publisher' ),
	'id'             => 'typo_entry_content',
	'type'           => 'typography',
	'style'          => $styles,
	'desc'           => __( 'Base typography for content of posts and static pages.', 'publisher' ),
	'preview'        => true,
	'preview_tab'    => 'paragraph',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_post_summary_single'] = array(
	'name'           => __( 'Post Summary In Single', 'publisher' ),
	'id'             => 'typo_post_summary_single',
	'type'           => 'typography',
	'style'          => $styles,
	'desc'           => __( 'Base typography for posts summary single post.', 'publisher' ),
	'preview'        => true,
	'preview_tab'    => 'paragraph',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);


$fields[] = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[] = array(
	'name'           => __( 'Header Typography', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'typo_settings',
);

/**
 * -> Top Bar
 */
$fields[]                       = array(
	'name'           => __( 'Top Bar', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_topbar_menu']     = array(
	'name'           => __( 'Topbar Menu Typography', 'publisher' ),
	'id'             => 'typo_topbar_menu',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_topbar_sub_menu'] = array(
	'name'           => __( 'Topbar Sub Menu Typography', 'publisher' ),
	'id'             => 'typo_topbar_sub_menu',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_topbar_date']     = array(
	'name'           => __( 'Topbar Date Typography', 'publisher' ),
	'id'             => 'typo_topbar_date',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);

/**
 * -> Header Typography
 */
$fields[]                      = array(
	'name'           => __( 'Header', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typ_header_logo']     = array(
	'name'           => __( 'Logo Typography', 'publisher' ),
	'id'             => 'typ_header_logo',
	'type'           => 'typography',
	//	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typ_header_menu']     = array(
	'name'           => __( 'Menu Typography', 'publisher' ),
	'id'             => 'typ_header_menu',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typ_header_sub_menu'] = array(
	'name'           => __( 'Sub Menu Typography', 'publisher' ),
	'id'             => 'typ_header_sub_menu',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'ajax-tab-field' => 'typo_settings',
	'reset-typo'     => true, // to reset in panel
);


$fields[] = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[] = array(
	'name'           => __( 'Footer Typography', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'typo_settings',
);

/**
 * -> Footer
 */
$fields[]                   = array(
	'name'           => __( 'Footer', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_footer_menu'] = array(
	'name'           => __( 'Footer Navigation', 'publisher' ),
	'id'             => 'typo_footer_menu',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_footer_copy'] = array(
	'name'           => __( 'Footer Copyright', 'publisher' ),
	'id'             => 'typo_footer_copy',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);


$fields[] = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[] = array(
	'name'           => __( 'Widget & Block Title Typography', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'typo_settings',
);


/**
 * -> Listings Title
 */
$fields[]                              = array(
	'name'           => __( 'Blocks Title (Visual Composer Blocks and Shortcodes)', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_section_heading']        = array(
	'name'           => __( 'Site Blocks & Widgets Heading', 'publisher' ),
	'id'             => 'typo_section_heading',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_widget_section_heading'] = array(
	'name'           => __( 'Only Widgets Heading', 'publisher' ),
	'desc'           => __( 'You can use this to change the section headings typography only in widgets.', 'publisher' ),
	'id'             => 'typo_widget_section_heading',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);


$fields[] = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[] = array(
	'name'           => __( 'Archive Pages', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'typo_settings',
);

/**
 * -> Archive Title
 */
$fields[]                         = array(
	'name'           => __( 'Archive Pages Title', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_archive_title_pre'] = array(
	'name'           => __( 'Archive Pre Title', 'publisher' ),
	'id'             => 'typo_archive_title_pre',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_archive_title']     = array(
	'name'           => __( 'Archive Title', 'publisher' ),
	'id'             => 'typo_archive_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);


/**
 * -> Classic Listing
 */
$fields[]                       = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                       = array(
	'name'           => __( 'Blocks & Listings', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                       = array(
	'name'           => __( 'All Blocks', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_blocks_subtitle'] = array(
	'name'           => __( 'Subtitle Of All Blocks', 'publisher' ),
	'id'             => 'typo_blocks_subtitle',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_post_summary']    = array(
	'name'           => __( 'Post Summary In Blocks', 'publisher' ),
	'id'             => 'typo_post_summary',
	'type'           => 'typography',
	'style'          => $styles,
	'desc'           => __( 'Base typography for posts summary in all listings.', 'publisher' ),
	'preview'        => true,
	'preview_tab'    => 'paragraph',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);


/**
 * -> Classic Listing
 */
$fields[]                                  = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                                  = array(
	'name'           => __( 'Classic Listings', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                                  = array(
	'name'           => __( 'Classic Listing 1', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                                  = array(
	'name'           => '',
	'id'             => 'typo_listing_classic_1_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-classic-listing-1-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_classic_1_title']    = array(
	'name'           => __( 'Classic Listing 1 Heading', 'publisher' ),
	'id'             => 'typo_listing_classic_1_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_classic_1_subtitle'] = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_listing_classic_1_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                                  = array(
	'name'           => __( 'Classic Listing 2', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                                  = array(
	'name'           => '',
	'id'             => 'typo_listing_classic_2_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-classic-listing-2-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_classic_2_title']    = array(
	'name'           => __( 'Classic Listing 2 Heading', 'publisher' ),
	'id'             => 'typo_listing_classic_2_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_classic_2_subtitle'] = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_listing_classic_2_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                                  = array(
	'name'           => __( 'Classic Listing 3', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                                  = array(
	'name'           => '',
	'id'             => 'typo_listing_classic_3_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-classic-listing-3-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_classic_3_title']    = array(
	'name'           => __( 'Classic Listing 3 Heading', 'publisher' ),
	'id'             => 'typo_listing_classic_3_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_classic_3_subtitle'] = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_listing_classic_3_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);


/**
 * -> Modern Grid Typography
 */
$fields[]                        = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => __( 'Modern Grid Listings', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => __( 'Modern Grid Listing 1', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => '',
	'id'             => 'typo_mg_1_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-modern-grid-1-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_mg_1_title']       = array(
	'name'           => __( 'Modern Grid 1 Title', 'publisher' ),
	'id'             => 'typo_mg_1_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_mg_1_subtitle']    = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_mg_1_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => __( 'Modern Grid Listing 2', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => '',
	'id'             => 'typo_mg_2_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-modern-grid-2-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_mg_2_title']       = array(
	'name'           => __( 'Modern Grid 2 Title', 'publisher' ),
	'id'             => 'typo_mg_2_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_mg_2_subtitle']    = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_mg_2_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => __( 'Modern Grid Listing 3', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => '',
	'id'             => 'typo_mg_3_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-modern-grid-3-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_mg_3_title']       = array(
	'name'           => __( 'Modern Grid 3 Title', 'publisher' ),
	'id'             => 'typo_mg_3_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => __( 'Modern Grid Listing 4', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => '',
	'id'             => 'typo_mg_4_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-modern-grid-4-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_mg_4_title']       = array(
	'name'           => __( 'Modern Grid 4 Title', 'publisher' ),
	'id'             => 'typo_mg_4_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_mg_4_subtitle']    = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_mg_4_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => __( 'Modern Grid Listing 5', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => '',
	'id'             => 'typo_mg_5_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-modern-grid-5-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_mg_5_title_big']   = array(
	'name'           => __( 'Modern Grid 5 - Big item Title', 'publisher' ),
	'id'             => 'typo_mg_5_title_big',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_mg_5_title_small'] = array(
	'name'           => __( 'Modern Grid 5 - Small item Title', 'publisher' ),
	'id'             => 'typo_mg_5_title_small',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_mg_5_subtitle']    = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_mg_5_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => __( 'Modern Grid Listing 6', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => '',
	'id'             => 'typo_mg_6_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-modern-grid-6-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_mg_6_title']       = array(
	'name'           => __( 'Modern Grid 6 Title', 'publisher' ),
	'id'             => 'typo_mg_6_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_mg_6_subtitle']    = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_mg_6_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => __( 'Modern Grid Listing 7', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => '',
	'id'             => 'typo_mg_7_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-modern-grid-7-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_mg_7_title']       = array(
	'name'           => __( 'Modern Grid 7 Title', 'publisher' ),
	'id'             => 'typo_mg_7_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_mg_7_subtitle']    = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_mg_7_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => __( 'Modern Grid Listing 8', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => '',
	'id'             => 'typo_mg_8_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-modern-grid-8-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_mg_8_title']       = array(
	'name'           => __( 'Modern Grid 8 Title', 'publisher' ),
	'id'             => 'typo_mg_8_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_mg_8_subtitle']    = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_mg_8_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => __( 'Modern Grid Listing 9', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => '',
	'id'             => 'typo_mg_9_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-modern-grid-9-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_mg_9_title']       = array(
	'name'           => __( 'Modern Grid 9 Title', 'publisher' ),
	'id'             => 'typo_mg_9_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_mg_9_subtitle']    = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_mg_9_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => __( 'Modern Grid Listing 10', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                        = array(
	'name'           => '',
	'id'             => 'typo_mg_10_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-modern-grid-10-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_mg_10_title']      = array(
	'name'           => __( 'Modern Grid 10 Title', 'publisher' ),
	'id'             => 'typo_mg_10_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_mg_10_subtitle']   = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_mg_10_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);


/**
 * -> Grid Listing
 */
$fields[]                               = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => __( 'Grid Listings', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => __( 'Grid Listing 1', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => '',
	'id'             => 'typo_listing_grid_1_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-grid-listing-1-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_grid_1_title']    = array(
	'name'           => __( 'Heading', 'publisher' ),
	'id'             => 'typo_listing_grid_1_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_grid_1_subtitle'] = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_listing_grid_1_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => __( 'Grid Listing 2', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => '',
	'id'             => 'typo_listing_grid_2_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-grid-listing-2-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_grid_2_title']    = array(
	'name'           => __( 'Grid Listing 2 Heading', 'publisher' ),
	'id'             => 'typo_listing_grid_2_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_grid_2_subtitle'] = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_listing_grid_2_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);


/**
 * -> Tall Listing
 */
$fields[]                               = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => __( 'Tall Listings', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => __( 'Tall Listing 1', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => '',
	'id'             => 'typo_listing_tall_1_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-tall-1-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_tall_1_title']    = array(
	'name'           => __( 'Tall Listing 1 Heading', 'publisher' ),
	'id'             => 'typo_listing_tall_1_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_tall_1_subtitle'] = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_listing_tall_1_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => __( 'Tall Listing 2', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => '',
	'id'             => 'typo_listing_tall_2_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-tall-2-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_tall_2_title']    = array(
	'name'           => __( 'Tall Listing 2 Heading', 'publisher' ),
	'id'             => 'typo_listing_tall_2_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_tall_2_subtitle'] = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_listing_tall_2_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);


/**
 * -> Sliders
 */
$fields[]                                 = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                                 = array(
	'name'           => __( 'Sliders', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                                 = array(
	'name'           => __( 'Slider 1', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                                 = array(
	'name'           => '',
	'id'             => 'typo_listing_slider_1_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-slider-1-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_slider_1_title']    = array(
	'name'           => __( 'Slider 1 Heading', 'publisher' ),
	'id'             => 'typo_listing_slider_1_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_slider_1_subtitle'] = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_listing_slider_1_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                                 = array(
	'name'           => __( 'Slider 2', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                                 = array(
	'name'           => '',
	'id'             => 'typo_listing_slider_2_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-slider-2-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_slider_2_title']    = array(
	'name'           => __( 'Slider 2 Heading', 'publisher' ),
	'id'             => 'typo_listing_slider_2_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_slider_2_subtitle'] = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_listing_slider_2_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                                 = array(
	'name'           => __( 'Slider 3', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                                 = array(
	'name'           => '',
	'id'             => 'typo_listing_slider_3_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-slider-3-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_slider_3_title']    = array(
	'name'           => __( 'Slider 3 Heading', 'publisher' ),
	'id'             => 'typo_listing_slider_3_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_slider_3_subtitle'] = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_listing_slider_3_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);


/**
 * -> Blog Listing
 */
$fields[]                               = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => __( 'Blog Listings', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => __( 'Blog listing 1, 2 & 3', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => '',
	'id'             => 'typo_listing_blog_1_img',
	'type'           => 'image_preview',
	'std'            => array(
		PUBLISHER_THEME_URI . 'images/shortcodes/bs-blog-listing-1-big.png',
		PUBLISHER_THEME_URI . 'images/shortcodes/bs-blog-listing-2-big.png',
		PUBLISHER_THEME_URI . 'images/shortcodes/bs-blog-listing-3-big.png',
	),
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_blog_1_title']    = array(
	'name'           => __( 'Blog Listing 1, 2 & 3 Heading', 'publisher' ),
	'id'             => 'typo_listing_blog_1_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_blog_1_subtitle'] = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_listing_blog_1_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => __( 'Blog listing 4', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => '',
	'id'             => 'typo_listing_blog_4_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-blog-listing-4-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => __( 'Note', 'publisher' ),
	'id'             => 'typo_listing_blog_4_help',
	'type'           => 'info',
	'state'          => 'open',
	'std'            => __( 'Blog Listing 4 have not typography settings because this listing is a combination of Blog Listing 1 & 2 and you have to change that listings settings.', 'publisher' ),
	'info-type'      => 'warning',
	'section_class'  => 'widefat',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => __( 'Blog listing 5', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => '',
	'id'             => 'typo_listing_blog_5_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-blog-listing-5-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_blog_5_title']    = array(
	'name'           => __( 'Blog Listing 5 Heading', 'publisher' ),
	'id'             => 'typo_listing_blog_5_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_blog_5_subtitle'] = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_listing_blog_5_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);


/**
 * -> Thumbnail Listing
 */
$fields[]                                    = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                                    = array(
	'name'           => __( 'Thumbnail Listings', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                                    = array(
	'name'           => __( 'Thumbnail Listing 1 & 3', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                                    = array(
	'name'           => '',
	'id'             => 'typo_listing_thumbnail_1_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-thumbnail-listing-1-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_thumbnail_1_title']    = array(
	'name'           => __( 'Thumbnail Listing 1 & 3 Titles', 'publisher' ),
	'id'             => 'typo_listing_thumbnail_1_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_thumbnail_1_subtitle'] = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_listing_thumbnail_1_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                                    = array(
	'name'           => __( 'Thumbnail Listing 2', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                                    = array(
	'name'           => '',
	'id'             => 'typo_listing_thumbnail_2_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-thumbnail-listing-2-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_thumbnail_2_title']    = array(
	'name'           => __( 'Thumbnail Listing 2 Titles', 'publisher' ),
	'id'             => 'typo_listing_thumbnail_2_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_thumbnail_2_subtitle'] = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_listing_thumbnail_2_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);


/**
 * -> Text Listing Typography
 */
$fields[]                               = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => __( 'Text Listings', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => __( 'Text Listing 1', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => '',
	'id'             => 'typo_text_listing_1_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-text-listing-1-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_text_listing_1_title']    = array(
	'name'           => __( 'Text Listing 1 Title', 'publisher' ),
	'id'             => 'typo_text_listing_1_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_text_listing_1_subtitle'] = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_text_listing_1_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => __( 'Text Listing 2', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => '',
	'id'             => 'typo_text_listing_2_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-text-listing-2-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_text_listing_2_title']    = array(
	'name'           => __( 'Text Listing 2 Title', 'publisher' ),
	'id'             => 'typo_text_listing_2_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_text_listing_2_subtitle'] = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_text_listing_2_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => __( 'Text Listing 3 & 4', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                               = array(
	'name'           => '',
	'id'             => 'typo_text_listing_3_img',
	'type'           => 'image_preview',
	'std'            => array(
		PUBLISHER_THEME_URI . 'images/shortcodes/bs-text-listing-3-big.png',
		PUBLISHER_THEME_URI . 'images/shortcodes/bs-text-listing-4-big.png',
	),
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_text_listing_3_title']    = array(
	'name'           => __( 'Text Listing 3 & 4 Title', 'publisher' ),
	'id'             => 'typo_text_listing_3_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_text_listing_3_subtitle'] = array(
	'name'           => __( 'Subtitle font size', 'publisher' ),
	'id'             => 'typo_text_listing_3_subtitle',
	'type'           => 'text',
	'suffix'         => 'px',
	'style'          => $styles,
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);


/**
 * -> Boxes
 */
$fields[]                           = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                           = array(
	'name'           => __( 'Boxes', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                           = array(
	'name'           => __( 'Box 1', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                           = array(
	'name'           => '',
	'id'             => 'typo_listing_box_1_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-box-1-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_box_1_title'] = array(
	'name'           => __( 'Box 1 Heading', 'publisher' ),
	'id'             => 'typo_listing_box_1_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                           = array(
	'name'           => __( 'Box 2', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                           = array(
	'name'           => '',
	'id'             => 'typo_listing_box_2_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-box-2-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_box_2_title'] = array(
	'name'           => __( 'Box 2 Heading', 'publisher' ),
	'id'             => 'typo_listing_box_2_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                           = array(
	'name'           => __( 'Box 3', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                           = array(
	'name'           => '',
	'id'             => 'typo_listing_box_3_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-box-3-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_box_3_title'] = array(
	'name'           => __( 'Box 3 Heading', 'publisher' ),
	'id'             => 'typo_listing_box_3_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                           = array(
	'name'           => __( 'Box 4', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'typo_settings',
);
$fields[]                           = array(
	'name'           => '',
	'id'             => 'typo_listing_box_4_img',
	'type'           => 'image_preview',
	'std'            => PUBLISHER_THEME_URI . 'images/shortcodes/bs-box-4-big.png',
	'ajax-tab-field' => 'typo_settings',
);
$fields['typo_listing_box_4_title'] = array(
	'name'           => __( 'Box 4 Heading', 'publisher' ),
	'id'             => 'typo_listing_box_4_title',
	'type'           => 'typography',
	'style'          => $styles,
	'preview'        => true,
	'preview_tab'    => 'title',
	'reset-typo'     => true, // to reset in panel
	'ajax-tab-field' => 'typo_settings',
);


/**
 * => Blocks Options
 */
$fields[] = array(
	'name'     => __( 'Blocks and Listings', 'publisher' ),
	'id'       => 'advanced_listings',
	'type'     => 'tab',
	'icon'     => 'bsai-gear',
	'ajax-tab' => true,
);

$fields['reset_blocks_settings'] = array(
	'name'           => __( 'Reset Blocks Settings', 'publisher' ),
	'id'             => 'reset_blocks_settings',
	'type'           => 'ajax_action',
	'button-name'    => '<i class="fa fa-refresh"></i> ' . __( 'Reset Blocks Setting', 'publisher' ),
	'callback'       => 'Publisher::reset_blocks_options',
	'confirm'        => __( 'Are you sure for resetting blocks settings to default?', 'publisher' ),
	'desc'           => __( 'This allows you to reset all blocks settings to default.', 'publisher' ),
	'ajax-tab-field' => 'advanced_listings',
);

/**
 * -> Modern Grids
 */
$fields[]                         = array(
	'name'           => __( 'Modern Grid Listings', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'advanced_listings',
);
$fields['listing-modern-grid-1']  = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-modern-grid-1',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-modern-grid-1',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-modern-grid-2']  = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-modern-grid-2',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-modern-grid-2',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-modern-grid-3']  = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-modern-grid-3',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-modern-grid-3',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-modern-grid-4']  = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-modern-grid-4',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-modern-grid-4',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-modern-grid-5']  = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-modern-grid-5',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-modern-grid-5',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-modern-grid-6']  = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-modern-grid-6',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-modern-grid-6',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-modern-grid-7']  = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-modern-grid-7',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-modern-grid-7',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-modern-grid-8']  = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-modern-grid-8',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-modern-grid-8',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-modern-grid-9']  = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-modern-grid-9',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-modern-grid-9',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-modern-grid-10'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-modern-grid-10',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-modern-grid-10',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);


/**
 * -> Mix Listings
 */
$fields[]                  = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'advanced_listings',
);
$fields[]                  = array(
	'name'           => __( 'Mix Listings', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'advanced_listings',
);
$fields['listing-mix-1-1'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-mix-1-1',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-mix-1-1',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-mix-1-2'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-mix-1-2',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-mix-1-2',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-mix-1-3'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-mix-1-3',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-mix-1-3',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-mix-1-4'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-mix-1-4',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-mix-1-4',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-mix-2-1'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-mix-2-1',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-mix-2-1',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-mix-2-2'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-mix-2-2',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-mix-2-2',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-mix-3-1'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-mix-3-1',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-mix-3-1',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-mix-3-2'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-mix-3-2',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-mix-3-2',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-mix-3-3'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-mix-3-3',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-mix-3-3',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-mix-3-4'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-mix-3-4',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-mix-3-4',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-mix-4-1'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-mix-4-1',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-mix-4-1',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-mix-4-2'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-mix-4-2',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-mix-4-2',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-mix-4-3'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-mix-4-3',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-mix-4-3',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-mix-4-4'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-mix-4-4',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-mix-4-4',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-mix-4-5'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-mix-4-5',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-mix-4-5',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-mix-4-6'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-mix-4-6',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-mix-4-6',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-mix-4-7'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-mix-4-7',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-mix-4-7',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-mix-4-8'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-mix-4-8',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-mix-4-8',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);


/**
 * -> Grid Listings
 */
$fields[]                 = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'advanced_listings',
);
$fields[]                 = array(
	'name'           => __( 'Grid Listings', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'advanced_listings',
);
$fields['listing-grid-1'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-grid-1',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-grid-1',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-grid-2'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-grid-2',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-grid-2',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);


/**
 * -> Blog Listings
 */
$fields[]                 = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'advanced_listings',
);
$fields[]                 = array(
	'name'           => __( 'Blog Listings', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'advanced_listings',
);
$fields['listing-blog-1'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-blog-1',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-blog-1',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-blog-2'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-blog-2',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-blog-2',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-blog-3'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-blog-3',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-blog-3',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-blog-4'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-blog-4',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-blog-4',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-blog-5'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-blog-5',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-blog-5',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);


/**
 * -> Thumbnail Listings Options
 */
$fields[]                      = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'advanced_listings',
);
$fields[]                      = array(
	'name'           => __( 'Thumbnail Listings', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'advanced_listings',
);
$fields['listing-thumbnail-1'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-thumbnail-1',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-thumbnail-1',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-thumbnail-2'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-thumbnail-2',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-thumbnail-2',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-thumbnail-3'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-thumbnail-3',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-thumbnail-3',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);


/**
 * => Text Listings
 */
$fields[]                 = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'advanced_listings',
);
$fields[]                 = array(
	'name'           => __( 'Text Listings', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'advanced_listings',
);
$fields['listing-text-1'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-text-1',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-text-1',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-text-2'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-text-2',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-text-2',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-text-3'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-text-3',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-text-3',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-text-4'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-text-4',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-text-4',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);


/**
 * -> Classic Listings options
 */
$fields[]                    = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'advanced_listings',
);
$fields[]                    = array(
	'name'           => __( 'Classic Listings', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'advanced_listings',
);
$fields['listing-classic-1'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-classic-1',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-classic-1',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-classic-2'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-classic-2',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-classic-2',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-classic-3'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-classic-3',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-classic-3',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);


/**
 * => Tall listings
 */
$fields[]                 = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'advanced_listings',
);
$fields[]                 = array(
	'name'           => __( 'Tall Listings', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'advanced_listings',
);
$fields['listing-tall-1'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-tall-1',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-tall-1',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-tall-2'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-tall-2',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-tall-2',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);


/**
 * => Slider listings
 */
$fields[]                      = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'advanced_listings',
);
$fields[]                      = array(
	'name'           => __( 'Slider Listings', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'advanced_listings',
);
$fields['listing-bs-slider-1'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-bs-slider-1',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-bs-slider-1',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-bs-slider-2'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-bs-slider-2',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-bs-slider-2',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-bs-slider-3'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-bs-slider-3',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-bs-slider-3',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);

/**
 * => User Listing
 */
$fields[]                 = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'advanced_listings',
);
$fields[]                 = array(
	'name'           => __( 'User Listings', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'advanced_listings',
);
$fields['listing-user-1'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-user-1',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-user-1',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-user-2'] = array(

	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-user-2',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-user-2',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-user-3'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-user-3',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-user-3',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-user-4'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-user-4',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-user-4',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);
$fields['listing-user-5'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'listing-user-5',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'listing-user-5',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);

$fields[] = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'advanced_listings',
);
$fields[] = array(
	'name'           => __( 'Other', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'advanced_listings',
);

/**
 * => Grid Related Posts
 */
$fields['blocks-related-posts'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'blocks-related-posts',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'blocks-related-posts',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);


/**
 * => Mega Menu
 */
$fields['blocks-mega-menu'] = array(
	'name'            => '',
	'reset-blocks'    => true,
	'id'              => 'blocks-mega-menu',
	'section_class'   => 'full-width-controls',
	'container_class' => 'advanced-block-settings have-group',
	'type'            => 'custom',
	'input_callback'  => array(
		'callback' => 'publisher_cb_blocks_setting_field',
		'args'     => array(
			array(
				'field' => 'blocks-mega-menu',
			)
		),
	),
	'ajax-tab-field'  => 'advanced_listings',
);


/**
 * => Default Thumbnail
 */
$fields[]                             = array(
	'name' => __( 'Default Thumbnail', 'publisher' ),
	'id'   => 'thumbnail_settings',
	'type' => 'tab',
	'icon' => 'bsai-image',
);
$fields['bsbt_thumbnail_placeholder'] = array(
	'name'      => __( 'Enable Default Thumbnails Placeholder', 'publisher' ),
	'id'        => 'bsbt_thumbnail_placeholder',
	'type'      => 'switch',
	'on-label'  => __( 'Yes', 'publisher' ),
	'off-label' => __( 'No', 'publisher' ),
	'desc'      => __( 'You can set default thumbnail for post that haven\'t featured image with enabling this option and uploading default image in following field', 'publisher' ),
);
$fields['bsbt_default_thumbnail']     = array(
	'name'         => __( 'Default Thumbnail Image', 'publisher' ),
	'id'           => 'bsbt_default_thumbnail',
	'data-type'    => 'id',
	'desc'         => __( 'By default, the post thumbnail will be shown but when the post haven\'nt thumbnail then this will be replaced', 'publisher' ),
	'type'         => 'media_image',
	'media_title'  => __( 'Select an Image', 'publisher' ),
	'media_button' => __( 'Select Image', 'publisher' ),
	'upload_label' => __( 'Upload Image', 'publisher' ),
	'remove_label' => __( 'Remove', 'publisher' ),

	'show_on' => array(
		array( 'bsbt_thumbnail_placeholder=1' )
	),
);
$fields['bsbt_thumbnail_first_img']   = array(
	'name'      => __( 'First Image as Post Thumbnail', 'publisher' ),
	'desc'      => __( 'With enabling this options if any post have not thumbnail then theme will shows first content image as post thumbnail.', 'publisher' ),
	'id'        => 'bsbt_thumbnail_first_img',
	'type'      => 'switch',
	'on-label'  => __( 'Yes', 'publisher' ),
	'off-label' => __( 'No', 'publisher' ),
);
//
//
//
$fields['push_notification_settings'] = array(
	'name'     => __( 'Push Notification', 'publisher' ),
	'id'       => 'push_notification_settings',
	'type'     => 'tab',
	'ajax-tab' => true,
	'icon'     => 'bsai-gear',
	'badge'    => array(
		'text'  => __( 'New', 'publisher' ),
		'color' => '#11ce3a'
	),
);
$msg                                  = __( 'Push notifications are a communication channel that allows you to send notifications about releasing new post, updating post or anything else from your site to your visitors browsers and their mobile devices. It keeps your site connection with the users and you have more chance to get more visitors. <br><br> Publisher is using <a href="https://goo.gl/DZa1Fq" target="_blank">onesignal.com</a> to implement high quality push notification service, It
\'s free and you can use it easily. Please read the <a href="https://goo.gl/XQBCkn" target="_blank">OneSignal Documentation</a> to learn more.', 'publisher' );

if ( ! publisher_is_one_signal_plugin_active() ) {
	$msg .= '<br><br><p style="color: red; font-weight: bolder;">' . __( 'Please install "<b>Push Notifications</b>" plugin from Publisher plugin installer to activate the push notification.', 'publisher' ) . '</p>';
}
$fields['push_noti_help']                       = array(
	'name'           => __( 'What is Push Notification?', 'publisher' ),
	'id'             => 'push_noti_help',
	'type'           => 'info',
	'std'            => $msg,
	'state'          => 'open',
	'info-type'      => 'help',
	'section_class'  => 'widefat',
	'ajax-tab-field' => 'push_notification_settings',
);
$fields['push_notification_top_posts']          = array(
	'name'           => __( 'Push notification subscribe on top of post content', 'publisher' ),
	'desc'           => __( 'Shows a subscribe form in the beginning of post content. It makes more chance for you to engage more subscribers.', 'publisher' ),
	'id'             => 'push_notification_top_posts',
	'type'           => 'switch',
	'ajax-tab-field' => 'push_notification_settings',
	'on-label'       => __( 'Enable', 'publisher' ),
	'off-label'      => __( 'Disable', 'publisher' ),
);
$fields['push_notification_top_posts_style']    = array(
	'name'             => __( 'Post top push notification style', 'publisher' ),
	'desc'             => __( 'Chose the style of push notification subscribe form.', 'publisher' ),
	'id'               => 'push_notification_top_posts_style',
	'style'            => $styles,
	'type'             => 'select_popup',
	'deferred-options' => array(
		'callback' => 'publisher_cb_notification_styles_list',
		'args'     => array(
			false
		),
	),
	'column_class'     => 'one-column',
	'ajax-tab-field'   => 'push_notification_settings',
	'show_on'          => array(
		array(
			'push_notification_top_posts=1'
		)
	)
);
$fields['push_notification_bottom_posts']       = array(
	'name'           => __( 'Push notification subscribe on bottom of post content', 'publisher' ),
	'desc'           => __( 'Shows a subscribe form at the end of post content. It makes more chance for you to engage more subscribers.', 'publisher' ),
	'id'             => 'push_notification_bottom_posts',
	'type'           => 'switch',
	//
	'on-label'       => __( 'Enable', 'publisher' ),
	'off-label'      => __( 'Disable', 'publisher' ),
	//
	'ajax-tab-field' => 'push_notification_settings',
);
$fields['push_notification_bottom_posts_style'] = array(
	'name'             => __( 'Post bottom push notification style', 'publisher' ),
	'desc'             => __( 'Chose the style of push notification subscribe form.', 'publisher' ),
	'id'               => 'push_notification_bottom_posts_style',
	'style'            => $styles,
	'type'             => 'select_popup',
	'column_class'     => 'one-column',
	'deferred-options' => array(
		'callback' => 'publisher_cb_notification_styles_list',
		'args'     => array(
			false
		),
	),
	'ajax-tab-field'   => 'push_notification_settings',
	'show_on'          => array(
		array(
			'push_notification_bottom_posts=1',
		)
	)
);

/**
 * => GDPR
 */
$fields['gdpr_tab']                           = array(
	'name'     => __( 'GDPR', 'publisher' ),
	'id'       => 'gdpr_tab',
	'type'     => 'tab',
	'ajax-tab' => true,
	'icon'     => 'bsai-gear',
	'badge'    => array(
		'text'  => __( 'New', 'publisher' ),
		'color' => '#11ce3a'
	),
);
$fields[]                                     = array(
	'name'           => __( 'Comments', 'publisher' ),
	'type'           => 'group',
	'state'          => 'open',
	'ajax-tab-field' => 'gdpr_tab',
);
$fields['gdpr_comment_save']                  = array(
	'name'           => __( 'Add "Save my name, email..." for comments', 'publisher' ),
	'desc'           => __( 'By enabling this option a check box will be added to comment section to let users to chose their data to be saved or not!', 'publisher' ),
	'id'             => 'gdpr_comment_save',
	'type'           => 'switch',
	'ajax-tab-field' => 'gdpr_tab',
	'on-label'       => __( 'Yes, Add', 'publisher' ),
	'off-label'      => __( 'No', 'publisher' ),
);
$fields[]                                     = array(
	'name'           => __( 'Cookie Law Popup', 'publisher' ),
	'type'           => 'group',
	'state'          => 'open',
	'ajax-tab-field' => 'gdpr_tab',
);
$fields['gdpr_cookie_law']                    = array(
	'name'           => __( 'Cookie Law Policy PopUp', 'publisher' ),
	'desc'           => __( 'Shows a popup at the footer for users to notice them your website is using Cookie.', 'publisher' ),
	'id'             => 'gdpr_cookie_law',
	'type'           => 'switch',
	'ajax-tab-field' => 'gdpr_tab',
	'on-label'       => __( 'Yes, Show', 'publisher' ),
	'off-label'      => __( 'Hide', 'publisher' ),
);
$fields['gdpr_cookie_law_remove']             = array(
	'name'           => __( 'Remove "Cookie Law Policy" after accept clicked', 'publisher' ),
	'desc'           => __( 'Removes the popup completely after user clicks on the acept button.', 'publisher' ),
	'id'             => 'gdpr_cookie_law_remove',
	'type'           => 'switch',
	'ajax-tab-field' => 'gdpr_tab',
	'on-label'       => __( 'Yes, Remove', 'publisher' ),
	'off-label'      => __( 'No', 'publisher' ),
	'show_on'        => array(
		array(
			'gdpr_cookie_law=1',
		)
	)
);
$fields['gdpr_cookie_law_more']               = array(
	'name'           => __( 'More button link', 'publisher' ),
	'desc'           => __( 'Enter the link of page for read more button.', 'publisher' ),
	'id'             => 'gdpr_cookie_law_more',
	'type'           => 'text',
	'ajax-tab-field' => 'gdpr_tab',
	'show_on'        => array(
		array(
			'gdpr_cookie_law=1',
		)
	)
);
$fields[]                                     = array(
	'name'           => __( 'Style', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'level'          => 2,
	'ajax-tab-field' => 'gdpr_tab',
	'show_on'        => array(
		array(
			'gdpr_cookie_law=1',
		)
	)
);
$fields['gdpr_cookie_law_bg']                 = array(
	'name'           => __( 'Background Color', 'publisher' ),
	'id'             => 'gdpr_cookie_law_bg',
	'type'           => 'color',
	'ajax-tab-field' => 'gdpr_tab',
	'show_on'        => array(
		array(
			'gdpr_cookie_law=1',
		)
	)
);
$fields['gdpr_cookie_law_text_color']         = array(
	'name'           => __( 'Text Color', 'publisher' ),
	'id'             => 'gdpr_cookie_law_text_color',
	'type'           => 'color',
	'ajax-tab-field' => 'gdpr_tab',
	'show_on'        => array(
		array(
			'gdpr_cookie_law=1',
		)
	)
);
$fields['gdpr_cookie_law_accept_bg_color']    = array(
	'name'           => __( 'Accept Button Background Color', 'publisher' ),
	'id'             => 'gdpr_cookie_law_accept_bg_color',
	'type'           => 'color',
	'ajax-tab-field' => 'gdpr_tab',
	'show_on'        => array(
		array(
			'gdpr_cookie_law=1',
		)
	)
);
$fields['gdpr_cookie_law_accept_text_color']  = array(
	'name'           => __( 'Accept Button Text Color', 'publisher' ),
	'id'             => 'gdpr_cookie_law_accept_text_color',
	'type'           => 'color',
	'ajax-tab-field' => 'gdpr_tab',
	'show_on'        => array(
		array(
			'gdpr_cookie_law=1',
		)
	)
);
$fields['gdpr_cookie_law_cookie_policy_bg']   = array(
	'name'           => __( '"Privacy & Cookies Policy" Button Background', 'publisher' ),
	'id'             => 'gdpr_cookie_law_cookie_policy_bg',
	'type'           => 'color',
	'ajax-tab-field' => 'gdpr_tab',
	'show_on'        => array(
		array(
			'gdpr_cookie_law=1',
		)
	)
);
$fields['gdpr_cookie_law_cookie_policy_text'] = array(
	'name'           => __( '"Privacy & Cookies Policy" Button Text Color', 'publisher' ),
	'id'             => 'gdpr_cookie_law_cookie_policy_text',
	'type'           => 'color',
	'ajax-tab-field' => 'gdpr_tab',
	'show_on'        => array(
		array(
			'gdpr_cookie_law=1',
		)
	)
);


/**
 * => Advanced Options
 */
$fields['advanced_settings']       = array(
	'name'     => __( 'Advanced', 'publisher' ),
	'id'       => 'advanced_settings',
	'type'     => 'tab',
	'ajax-tab' => true,
	'icon'     => 'bsai-gear',
);
$fields['reset_advanced_settings'] = array(
	'name'           => __( 'Reset Advanced Settings', 'publisher' ),
	'id'             => 'reset_advanced_settings',
	'type'           => 'ajax_action',
	'button-name'    => '<i class="fa fa-refresh"></i> ' . __( 'Reset Advanced Settings', 'publisher' ),
	'callback'       => 'Publisher::reset_advanced_settings',
	'confirm'        => __( 'Are you sure for resetting advanced settings?', 'publisher' ),
	'desc'           => __( 'This allows you to reset all advanced settings to default.', 'publisher' ),
	'ajax-tab-field' => 'advanced_settings',
);

$fields[] = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields[] = array(
	'name'           => __( 'Post Rankings', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'advanced_settings',
);
// this field is only for printing icon modal in page to solve the icon modal usage only in ajax tab!
$fields[]                 = array(
	'id'      => '_icon_modal',
	'name'    => '',
	'type'    => 'icon_select',
	'show_on' => array(
		array(
			'1!=1'
		)
	),
);
$fields[]                 = array(
	'name'           => __( 'Views Ranking', 'publisher' ),
	'desc'           => __( 'You can define custom ranking condition for post shares to highlight most viewed posts.', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields['views_ranking']  = array(
	'name'           => '',
	'id'             => 'views_ranking',
	'type'           => 'repeater',
	'add_label'      => '<i class="fa fa-plus"></i> ' . __( 'Add New Ranking Condition', 'publisher' ),
	'delete_label'   => __( 'Delete Rank', 'publisher' ),
	'item_title'     => __( 'Rank', 'publisher' ),
	'section_class'  => 'full-with-both',
	'std'            => array(
		array(
			'rate'  => '0',
			'icon'  => 'fa-eye',
			'color' => '',
			'show'  => true,
		),
		array(
			'rate'  => '500',
			'icon'  => 'bsfi-fire-1',
			'color' => '#edaa02',
			'show'  => true,
		),
		array(
			'rate'  => '1000',
			'icon'  => 'bsfi-fire-2',
			'color' => '#d88531',
			'show'  => true,
		),
		array(
			'rate'  => '2000',
			'icon'  => 'bsfi-fire-3',
			'color' => '#c44b2d',
			'show'  => true,
		),
		array(
			'rate'  => '3500',
			'icon'  => 'bsfi-fire-4',
			'color' => '#d40808',
			'show'  => true,
		),
	),
	'default'        => array(
		array(
			'rate'  => '0',
			'icon'  => 'fa-eye',
			'color' => '',
			'show'  => true,
		),
		array(
			'rate'  => '500',
			'icon'  => 'bsfi-fire-1',
			'color' => '#edaa02',
			'show'  => true,
		),
		array(
			'rate'  => '1000',
			'icon'  => 'bsfi-fire-2',
			'color' => '#d88531',
			'show'  => true,
		),
		array(
			'rate'  => '2000',
			'icon'  => 'bsfi-fire-3',
			'color' => '#c44b2d',
			'show'  => true,
		),
		array(
			'rate'  => '3500',
			'icon'  => 'bsfi-fire-4',
			'color' => '#d40808',
			'show'  => true,
		),
	),
	'options'        => array(
		'rate'  => array(
			'name'          => __( 'Views more than', 'publisher' ),
			'id'            => 'rate',
			'std'           => '',
			'type'          => 'text',
			'section_class' => 'full-with-both bs-ranking-field-rate',
			'repeater_item' => true
		),
		'icon'  => array(
			'name'          => __( 'Icon', 'publisher' ),
			'id'            => 'icon',
			'type'          => 'icon_select',
			'std'           => '',
			'section_class' => 'full-with-both bs-ranking-field-icon',
			'repeater_item' => true,
		),
		'color' => array(
			'name'          => __( 'Color', 'publisher' ),
			'id'            => 'color',
			'type'          => 'color',
			'std'           => '',
			'section_class' => 'full-with-both bs-ranking-field-icon',
			'repeater_item' => true,
		),
		'show'  => array(
			'name'          => __( 'Show in Listings', 'publisher' ),
			'id'            => 'show',
			'type'          => 'switch',
			'std'           => '',
			'section_class' => 'full-with-both bs-ranking-field-show',
			'repeater_item' => true,
		),
	),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);
$fields[]                 = array(
	'name'           => __( 'Shares Ranking', 'publisher' ),
	'desc'           => __( 'You can define custom ranking condition for post shares to highlight most shared posts.', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields['shares_ranking'] = array(
	'name'           => '',
	'id'             => 'shares_ranking',
	'type'           => 'repeater',
	'add_label'      => '<i class="fa fa-plus"></i> ' . __( 'Add New Ranking Condition', 'publisher' ),
	'delete_label'   => __( 'Delete Rank', 'publisher' ),
	'item_title'     => __( 'Rank', 'publisher' ),
	'section_class'  => 'full-with-both',
	'std'            => array(
		array(
			'rate'  => '0',
			'icon'  => 'fa-share-alt',
			'color' => '',
			'show'  => true,
		),
		array(
			'rate'  => '50',
			'icon'  => 'fa-share-alt',
			'color' => '#edaa02',
			'show'  => true,
		),
		array(
			'rate'  => '100',
			'icon'  => 'fa-share-alt',
			'color' => '#d88531',
			'show'  => true,
		),
		array(
			'rate'  => '200',
			'icon'  => 'fa-share-alt',
			'color' => '#c44b2d',
			'show'  => true,
		),
		array(
			'rate'  => '300',
			'icon'  => 'fa-share-alt',
			'color' => '#d40808',
			'show'  => true,
		),
	),
	'default'        => array(
		array(
			'rate'  => '0',
			'icon'  => 'fa-share-alt',
			'color' => '',
			'show'  => true,
		),
		array(
			'rate'  => '50',
			'icon'  => 'fa-share-alt',
			'color' => '#edaa02',
			'show'  => true,
		),
		array(
			'rate'  => '100',
			'icon'  => 'fa-share-alt',
			'color' => '#d88531',
			'show'  => true,
		),
		array(
			'rate'  => '200',
			'icon'  => 'fa-share-alt',
			'color' => '#c44b2d',
			'show'  => true,
		),
		array(
			'rate'  => '300',
			'icon'  => 'fa-share-alt',
			'color' => '#d40808',
			'show'  => true,
		),
	),
	'options'        => array(
		'rate'  => array(
			'name'          => __( 'Shares more than', 'publisher' ),
			'id'            => 'rate',
			'std'           => '',
			'type'          => 'text',
			'section_class' => 'full-with-both bs-ranking-field-rate',
			'repeater_item' => true
		),
		'icon'  => array(
			'name'          => __( 'Icon', 'publisher' ),
			'id'            => 'icon',
			'type'          => 'icon_select',
			'std'           => '',
			'section_class' => 'full-with-both bs-ranking-field-icon',
			'repeater_item' => true,
		),
		'color' => array(
			'name'          => __( 'Color', 'publisher' ),
			'id'            => 'color',
			'type'          => 'color',
			'std'           => '',
			'section_class' => 'full-with-both bs-ranking-field-icon',
			'repeater_item' => true,
		),
		'show'  => array(
			'name'          => __( 'Show in Listings', 'publisher' ),
			'id'            => 'show',
			'type'          => 'switch',
			'std'           => '',
			'section_class' => 'full-with-both bs-ranking-field-show',
			'repeater_item' => true,
		),
	),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);

$fields[]                    = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields[]                    = array(
	'name'           => __( 'SEO', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'advanced_settings',
);
$fields[]                    = array(
	'name'           => __( 'Structured Data (schema.org)', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields['json_ld']           = array(
	'name'           => __( 'Enable JSON-LD', 'publisher' ),
	'id'             => 'json_ld',
	'type'           => 'switch',
	'on-label'       => __( 'Yes', 'publisher' ),
	'off-label'      => __( 'No', 'publisher' ),
	'desc'           => sprintf( __( 'JSON-LD is the best way to present your site content and data to search engines. <a href="%s" target="_blank">Read more...</a>', 'publisher' ), 'https://goo.gl/kcTw6R' ),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);
$fields['json_ld_post_type'] = array(
	'name'           => __( 'Posts Schema Type', 'publisher' ),
	'desc'           => __( 'Based on your site posts type you can choose the BlogPosting or NewsArticle for your site posts. Please don\'t change it if you haven\'t good knowledge about it.', 'publisher' ),
	'id'             => 'json_ld_post_type',
	'type'           => 'select',
	'options'        => array(
		'BlogPosting' => __( 'BlogPosting', 'publisher' ),
		'NewsArticle' => __( 'NewsArticle', 'publisher' ),
		'Article'     => __( 'Article', 'publisher' ),
		'TechArticle' => __( 'TechArticle', 'publisher' ),
	),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
	'show_on'        => array(
		array(
			'json_ld=1'
		),
	),
);
$fields[]                    = array(
	'name'           => __( 'Meta Tags for Social Networks', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields['social_meta_tag']   = array(
	'name'           => __( 'Enable Meta Tags', 'publisher' ),
	'id'             => 'social_meta_tag',
	'type'           => 'switch',
	'on-label'       => __( 'Yes', 'publisher' ),
	'off-label'      => __( 'No', 'publisher' ),
	'desc'           => sprintf( __( 'Social networks and search engines can understand your site data from meta tags. <strong>It\'s important for your site when sharing your site pages in social networks.</strong> <a href="%s" target="_blank">Read more...</a>', 'publisher' ), 'https://goo.gl/SfcblR' ),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);

$fields[]                                       = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields[]                                       = array(
	'name'           => __( 'Posts', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'advanced_settings',
);
$fields[]                                       = array(
	'name'           => __( 'No Duplicate Posts', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields['bs_remove_duplicate_posts_full']       = array(
	'name'           => __( 'Enable For Whole Site', 'publisher' ),
	'id'             => 'bs_remove_duplicate_posts_full',
	'type'           => 'switch',
	'on-label'       => __( 'Yes', 'publisher' ),
	'off-label'      => __( 'No', 'publisher' ),
	'desc'           => __( 'Enabling this feature will remove duplicate posts in whole site.', 'publisher' ),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);
$fields['bs_remove_duplicate_posts']            = array(
	'name'           => __( 'Enable In Homepage', 'publisher' ),
	'id'             => 'bs_remove_duplicate_posts',
	'type'           => 'switch',
	'on-label'       => __( 'Yes', 'publisher' ),
	'off-label'      => __( 'No', 'publisher' ),
	'desc'           => __( 'Enabling this feature will remove duplicate posts in home page.', 'publisher' ),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
	'show_on'        => array(
		array(
			'bs_remove_duplicate_posts_full=0',
		)
	)
);
$fields['bs_remove_duplicate_posts_categories'] = array(
	'name'           => __( 'Enable In Category Archive Page', 'publisher' ),
	'id'             => 'bs_remove_duplicate_posts_categories',
	'type'           => 'switch',
	'on-label'       => __( 'Yes', 'publisher' ),
	'off-label'      => __( 'No', 'publisher' ),
	'desc'           => __( 'Enabling this feature will remove duplicate posts in category archive pages.', 'publisher' ),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
	'show_on'        => array(
		array(
			'bs_remove_duplicate_posts_full=0',
		)
	)
);
$fields['bs_remove_duplicate_posts_tags']       = array(
	'name'           => __( 'Enable In Tag Archive Page', 'publisher' ),
	'id'             => 'bs_remove_duplicate_posts_tags',
	'type'           => 'switch',
	'on-label'       => __( 'Yes', 'publisher' ),
	'off-label'      => __( 'No', 'publisher' ),
	'desc'           => __( 'Enabling this feature will remove duplicate posts in tag archive pages.', 'publisher' ),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
	'show_on'        => array(
		array(
			'bs_remove_duplicate_posts_full=0',
		)
	)
);

$fields[]                                   = array(
	'name'           => __( 'Inline related posts', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields['inline_related_posts_html_blocks'] = array(
	'name'           => __( 'Consider These tags as new paragraph', 'publisher' ),
	'desc'           => __( 'Separate tags name with comma Example: p,div,table', 'publisher' ),
	'id'             => 'inline_related_posts_html_blocks',
	'type'           => 'text',
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);

$fields[] = array(
	'name'           => __( 'Video Posts Thumbnail', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'advanced_settings',
);

$fields['bs_video_post_thumbnail']       = array(
	'name'           => __( 'Download and use Video thumbnail as featured image', 'publisher' ),
	'desc'           => __( 'By enabling this option Publisher will download the thumbnail of the video and use it as featured image of post if your post haven\'t any featured image. Only Youtube, Facebook, Twitter, Vimeo and DailyMotion videos are supported.', 'publisher' ),
	'id'             => 'bs_video_post_thumbnail',
	'type'           => 'switch',
	'on-label'       => __( 'Yes', 'publisher' ),
	'off-label'      => __( 'No', 'publisher' ),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);
$fields['bs_video_post_thumbnail_usage'] = array(
	'name'           => __( 'Force replace for Video Thumbnail', 'publisher' ),
	'desc'           => __( 'By enabling this Publisher will show the video thumbnail as post thumbnail, It does not matter post has featured image or not.', 'publisher' ),
	'id'             => 'bs_video_post_thumbnail_usage',
	'type'           => 'switch',
	'on-label'       => __( 'Yes', 'publisher' ),
	'off-label'      => __( 'No', 'publisher' ),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
	'show_on'        => array(
		array(
			'bs_video_post_thumbnail=1',
		)
	)
);

$fields[]                                = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields[]                                = array(
	'name'           => __( 'Custom Post Types & Taxonomies', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'advanced_settings',
);
$fields[]                                = array(
	'name'           => __( 'Customize Post and Page Options', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields['advanced_post_options_types']   = array(
	'name'           => __( 'Add Post Options To Other Post Types', 'publisher' ),
	'id'             => 'advanced_post_options_types',
	'desc'           => __( 'Enter custom post types IDs here to adding post meta box to them.', 'publisher' ),
	'input-desc'     => __( 'Separate post types with ","', 'publisher' ),
	'type'           => 'text',
	'ltr'            => true,
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);
$fields[]                                = array(
	'name'           => __( 'Customize Category and Tag Options', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields['advanced_category_options_tax'] = array(
	'name'           => __( 'Add Category Options to Other Taxonomies', 'publisher' ),
	'id'             => 'advanced_category_options_tax',
	'desc'           => __( 'Enter custom taxonomy IDs here to adding category meta box to them.', 'publisher' ),
	'input-desc'     => __( 'Separate taxonomies with ","', 'publisher' ),
	'type'           => 'text',
	'ltr'            => true,
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);
$fields['advanced_tag_options_tax']      = array(
	'name'           => __( 'Add Tag Options to Other Taxonomies', 'publisher' ),
	'id'             => 'advanced_tag_options_tax',
	'desc'           => __( 'Enter custom taxonomy IDs here to adding tag meta box to them.', 'publisher' ),
	'input-desc'     => __( 'Separate taxonomies with ","', 'publisher' ),
	'type'           => 'text',
	'ltr'            => true,
	'ajax-tab-field' => 'advanced_settings',
);

$fields[]                                  = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields[]                                  = array(
	'name'           => __( 'Menu', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'advanced_settings',
);
$fields[]                                  = array(
	'name'           => __( 'Menu Configuration', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields['display_publisher_adminbar_menu'] = array(
	'name'           => __( 'Show publisher adminbar menu', 'publisher' ),
	'id'             => 'display_publisher_adminbar_menu',
	'desc'           => __( 'You can disable Publisher admibar menu with this option.', 'publisher' ),
	'type'           => 'switch',
	'on-label'       => __( 'Yes, Show', 'publisher' ),
	'off-label'      => __( 'No', 'publisher' ),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);
$fields['advanced_collect_more_menu']      = array(
	'name'           => __( 'Collect all extra menu items to "More" in Main Menu?', 'publisher' ),
	'id'             => 'advanced_collect_more_menu',
	'desc'           => __( 'This feature will collect\'s all extra menu items and move them into "More" menu item in end of menu to make sure all menu items will be shown in all screen sizes.', 'publisher' ),
	'type'           => 'switch',
	'on-label'       => __( 'Yes, Collect', 'publisher' ),
	'off-label'      => __( 'No', 'publisher' ),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);
$fields['advanced_collect_more_top_menu']  = array(
	'name'           => __( 'Collect all extra menu items to "More" in Topbar Menu?', 'publisher' ),
	'id'             => 'advanced_collect_more_top_menu',
	'desc'           => __( 'This feature will collect\'s all extra menu items and move them into "More" menu item in end of menu to make sure all menu items will be shown in all screen sizes.', 'publisher' ),
	'type'           => 'switch',
	'on-label'       => __( 'Yes, Collect', 'publisher' ),
	'off-label'      => __( 'No', 'publisher' ),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);

$fields[]               = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields[]               = array(
	'name'           => __( 'Performance', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'advanced_settings',
);
$fields[]               = array(
	'name'           => __( 'Lazy loading', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields['lazy_loading'] = array(
	'name'           => __( 'Images & iFrames Lazy Loading?', 'publisher' ),
	'desc'           => __( 'Lazy Load is delays loading of images in long web pages. Images outside of viewport are not loaded until user scrolls to them. This will helps your site to load quicker also will reduce the files that will be loaded in visitor browser', 'publisher' ),
	'id'             => 'lazy_loading',
	'type'           => 'select',
	'options'        => array(
		'enable'  => __( 'Enable', 'publisher' ),
		'disable' => __( 'Disable', 'publisher' ),
	),
	'ajax-tab-field' => 'advanced_settings',
);

$fields[]                                = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields[]                                = array(
	'name'           => __( 'Admin', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'advanced_settings',
);
$fields[]                                = array(
	'name'           => __( 'Posts Admin Advanced Fields', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields['advanced_post_fields_subtitle'] = array(
	'name'           => __( 'Subtitle?', 'publisher' ),
	'id'             => 'advanced_post_fields_subtitle',
	'desc'           => __( 'With enabling this feature a new filed will be added to under post title in admin and the subtitle will be shown under posts title in site.', 'publisher' ),
	'type'           => 'switch',
	'on-label'       => __( 'Enable', 'publisher' ),
	'off-label'      => __( 'Disable', 'publisher' ),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);
$fields['advanced_post_fields_excerpt']  = array(
	'name'           => __( 'Move excerpt box after post title?', 'publisher' ),
	'id'             => 'advanced_post_fields_excerpt',
	'desc'           => __( 'This feature will move the default excerpt box to bottom of post title. You can edit and create posts quickly with this feature.', 'publisher' ),
	'type'           => 'switch',
	'on-label'       => __( 'Yes, Move', 'publisher' ),
	'off-label'      => __( 'No', 'publisher' ),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);
$fields[]                                = array(
	'name'           => __( 'Editor', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields['advanced_post_editor_sidebars'] = array(
	'name'           => __( 'Show sidebar helpers in posts editor?', 'publisher' ),
	'id'             => 'advanced_post_editor_sidebars',
	'desc'           => __( 'This is an smart feature that shows the location of sidebars in WordPress editor for you.', 'publisher' ),
	'type'           => 'switch',
	'on-label'       => __( 'Yes, Move', 'publisher' ),
	'off-label'      => __( 'No', 'publisher' ),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);
$fields[]                                = array(
	'name'           => __( 'Posts List', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields['posts_table_thumbnail']         = array(
	'name'           => __( 'Show Post Thumbnail in Admin Posts Page?', 'publisher' ),
	'desc'           => __( 'Posts thumbnail will be shown in admin posts table list before the post name. It can help you to manage posts easily.', 'publisher' ),
	'id'             => 'posts_table_thumbnail',
	'type'           => 'switch',
	'ajax-tab-field' => 'advanced_settings',
);
//
//
//
$fields[]                    = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields[]                    = array(
	'name'           => __( 'WP Bakery Builder (Visual Composer)', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'advanced_settings',
);
$fields[]                    = array(
	'name'           => __( 'RTL Support for Visual Composer', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields['vc_grid_direction'] = array(
	'name'           => __( 'Force RTL Support to Visual Composer Grid', 'publisher' ),
	'desc'           => __( 'It will moves the Visual Composer grid columns from left to the right to make them real RTL support.', 'publisher' ),
	'id'             => 'vc_grid_direction',
	'type'           => 'select',
	'options'        => array(
		'ltr' => __( 'No, LTR is ok', 'publisher' ),
		'rtl' => __( 'Yes, Make it real RTL', 'publisher' ),
	),
	'ajax-tab-field' => 'advanced_settings',
);
//
//
//
$fields[]           = array(
	'type'           => 'group_close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields[]           = array(
	'name'           => __( 'Other', 'publisher' ),
	'type'           => 'heading',
	'layout'         => 'style-2',
	'ajax-tab-field' => 'advanced_settings',
);
$fields[]           = array(
	'name'           => __( 'Google Tag Manager', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'desc'           => __( 'Publisher support Google Tag Manager by default and only you need to paste GTM code into following fields. You can find the codes in <a href="https://goo.gl/oNYWyK">GTM Quick Start Guide</a>.', 'publisher' ),
	'ajax-tab-field' => 'advanced_settings',
);
$fields['gtm_head'] = array(
	'name'           => __( 'GTM &#x3C;head&#x3E; code', 'publisher' ),
	'id'             => 'gtm_head',
	'desc'           => __( 'Enter GTM code that should be appear after &#x3C;head&#x3E; in this field.', 'publisher' ),
	'type'           => 'textarea',
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);
$fields['gtm_body'] = array(
	'name'           => __( 'GTM &#x3C;body&#x3E; code', 'publisher' ),
	'id'             => 'gtm_body',
	'desc'           => __( 'Enter GTM code that should be appear after &#x3C;body&#x3E; in this field.', 'publisher' ),
	'type'           => 'textarea',
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);

// Favicon fallback for old WP versions
//if ( ! function_exists( 'has_site_icon' ) ) {
$fields[]                  = array(
	'name'           => __( 'Favicons', 'publisher' ),
	'id'             => 'favicon_heading',
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => 'advanced_settings',
);
$fields['favicon_16_16']   = array(
	'name'           => __( 'Favicon (16x16)', 'publisher' ),
	'id'             => 'favicon_16_16',
	'type'           => 'media_image',
	'desc'           => __( 'Default Favicon. 16px x 16px', 'publisher' ),
	'media_title'    => __( 'Select or Upload Favicon', 'publisher' ),
	'media_button'   => __( 'Select Favicon', 'publisher' ),
	'upload_label'   => __( 'Upload Favicon', 'publisher' ),
	'remove_label'   => __( 'Remove Favicon', 'publisher' ),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);
$fields['favicon_57_57']   = array(
	'name'           => __( 'Apple iPhone Icon (57x57)', 'publisher' ),
	'id'             => 'favicon_57_57',
	'type'           => 'media_image',
	'desc'           => __( 'Icon for Classic iPhone', 'publisher' ),
	'media_title'    => __( 'Select or Upload Favicon', 'publisher' ),
	'media_button'   => __( 'Select Favicon', 'publisher' ),
	'upload_label'   => __( 'Upload Favicon', 'publisher' ),
	'remove_label'   => __( 'Remove Favicon', 'publisher' ),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);
$fields['favicon_114_114'] = array(
	'name'           => __( 'Apple iPhone Retina Icon (114x114)', 'publisher' ),
	'id'             => 'favicon_114_114',
	'type'           => 'media_image',
	'desc'           => __( 'Icon for Retina iPhone', 'publisher' ),
	'media_title'    => __( 'Select or Upload Favicon', 'publisher' ),
	'media_button'   => __( 'Select Favicon', 'publisher' ),
	'upload_label'   => __( 'Upload Favicon', 'publisher' ),
	'remove_label'   => __( 'Remove Favicon', 'publisher' ),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);
$fields['favicon_72_72']   = array(
	'name'           => __( 'Apple iPad Icon (72x72)', 'publisher' ),
	'id'             => 'favicon_72_72',
	'type'           => 'media_image',
	'desc'           => __( 'Icon for Classic iPad', 'publisher' ),
	'media_title'    => __( 'Select or Upload Favicon', 'publisher' ),
	'media_button'   => __( 'Select Favicon', 'publisher' ),
	'upload_label'   => __( 'Upload Favicon', 'publisher' ),
	'remove_label'   => __( 'Remove Favicon', 'publisher' ),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);
$fields['favicon_144_144'] = array(
	'name'           => __( 'Apple iPad Retina Icon (144x144)', 'publisher' ),
	'id'             => 'favicon_144_144',
	'type'           => 'media_image',
	'desc'           => __( 'Icon for Retina iPad', 'publisher' ),
	'media_title'    => __( 'Select or Upload Favicon', 'publisher' ),
	'media_button'   => __( 'Select Favicon', 'publisher' ),
	'upload_label'   => __( 'Upload Favicon', 'publisher' ),
	'remove_label'   => __( 'Remove Favicon', 'publisher' ),
	'ajax-tab-field' => 'advanced_settings',
	'reset-advanced' => true,
);
//} // if has_site_icon

/**
 * => Custom Javascript / CSS
 */
bf_inject_panel_custom_css_fields( $fields, array(
	'advanced-class' => true
) );
$fields[]                  = array(
	'name'           => __( 'Admin Custom CSS', 'publisher' ),
	'type'           => 'group',
	'state'          => 'close',
	'ajax-tab-field' => '_custom_css_settings',
);
$fields['_admin_css_code'] = array(
	'name'           => __( 'Admin Pages CSS Code', 'publisher' ),
	'id'             => '_admin_css_code',
	'type'           => 'editor',
	'section_class'  => 'width-70',
	'lang'           => 'css',
	'desc'           => __( 'You can change admin pages style with adding CSS code into this field.', 'publisher' ),
	'ajax-tab-field' => '_custom_css_settings',
);


/**
 * => Analytics & JS
 */
bf_inject_panel_custom_codes_fields( $fields, array(
	'tab-title'         => __( 'Analytics/Custom Code', 'publisher' ),
	'footer-code-title' => __( 'Google Analytics and JavaScript Codes', 'publisher' ),
	'footer-code-desc'  => __( 'This code will be placed <b>before</b> <code>&lt;/body&gt;</code> tag in html. Please put code inside script tags.', 'publisher' ),
) );


/**
 * => Import & Export
 */
bf_inject_panel_import_export_fields( $fields, array(
	'panel-id'         => publisher_get_theme_panel_id(),
	'export-file-name' => 'publisher-options-backup',
) );
