<?php
/**
 * HomePage Posts
 *
 * @package Magnus
 */

$features = magnus_get_settings( 'mts_featured_categories' );
if ( empty( $features ) ) {
	return;
}
foreach ( $features as $feature ) :
	$title        = isset( $feature['mts_featured_title'] ) ? $feature['mts_featured_title'] : 'No Title';
	$posts_layout = isset( $feature['mts_thumb_layout'] ) ? $feature['mts_thumb_layout'] : '';
	if ( 'layout-default' === $posts_layout ) {
		$posts_layout = 'default';
	}
	$unique_id = isset( $feature['unique_id'] ) ? $feature['unique_id'] : '';

	$menus[ 'homepage-' . $unique_id ] = array(
		'title' => $title,
		// translators: description.
		'desc'  => sprintf( wp_kses_post( __( 'From here, you can control the elements of %s', 'magnus' ) ), $title ),
	);

	$sections[ 'homepage-' . $unique_id ] = array(

		/**
		 * Layout Default Settings
		 *
		 * @package Magnus
		 */

		// Section Title.
		( 'default' === $posts_layout ) ? array(
			'id'    => 'mts_post_title_heading_' . $unique_id,
			'type'  => 'heading',
			'title' => esc_html__( 'Section Title', 'magnus' ),
		) : null,

		( 'default' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_title_' . $unique_id,
			'type'     => 'switch',
			'title'    => esc_html__( 'Show/Hide Title', 'magnus' ),
			'sub_desc' => esc_html__( 'Use this button to show or hide title of post container.', 'magnus' ),
			'std'      => '0',
		) : null,
		( 'default' === $posts_layout ) ? array(
			'id'         => 'mts_post_title_alignment_' . $unique_id,
			'type'       => 'button_set',
			'title'      => esc_html__( 'Section Title Alignment', 'magnus' ),
			'sub_desc'   => esc_html__( 'Choose the section title alignment', 'magnus' ),
			'options'    => array(
				'left'   => esc_html__( 'Left', 'magnus' ),
				'center' => esc_html__( 'Center', 'magnus' ),
				'right'  => esc_html__( 'Right', 'magnus' ),
				'full'   => esc_html__( 'Full Width', 'magnus' ),
			),
			'std'        => 'left',
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'default' === $posts_layout ) ? array(
			'id'         => 'mts_featured_category_title_background_' . $unique_id,
			'type'       => 'background',
			'title'      => esc_html__( 'Post Title Background Color', 'magnus' ),
			'sub_desc'   => esc_html__( 'Set background color, pattern and image from here.', 'magnus' ),
			'options'    => array(
				'color'         => '',            // false to disable, not needed otherwise.
				'image_pattern' => $mts_patterns, // false to disable, array of options otherwise ( required !!! ).
				'image_upload'  => '',            // false to disable, not needed otherwise.
				'repeat'        => array(),       // false to disable, array of options to override default ( optional ).
				'attachment'    => array(),       // false to disable, array of options to override default ( optional ).
				'position'      => array(),       // false to disable, array of options to override default ( optional ).
				'size'          => array(),       // false to disable, array of options to override default ( optional ).
				'gradient'      => '',            // false to disable, not needed otherwise.
				'parallax'      => array(),       // false to disable, array of options to override default ( optional ).
			),
			'std'        => array(
				'color'         => '#ffffff',
				'use'           => 'pattern',
				'image_pattern' => 'nobg',
				'image_upload'  => '',
				'repeat'        => 'repeat',
				'attachment'    => 'scroll',
				'position'      => 'left top',
				'size'          => 'cover',
				'gradient'      => array(
					'from'      => '#ffffff',
					'to'        => '#000000',
					'direction' => '0deg',
				),
				'parallax'      => '0',
			),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'default' === $posts_layout ) ? array(
			'id'         => 'post_title_shadow' . $unique_id,
			'type'       => 'switch',
			'title'      => esc_html__( 'Box Shadow', 'magnus' ),
			'sub_desc'   => esc_html__( 'Use this button to show or hide box shadow in post container.', 'magnus' ),
			'std'        => '1',
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'default' === $posts_layout ) ? array(
			'id'         => 'mts_featured_category_title_margin_' . $unique_id,
			'type'       => 'margin',
			'title'      => esc_html__( 'Post Title Margin', 'magnus' ),
			'sub_desc'   => esc_html__( 'Set section title margin from here.', 'magnus' ),
			'std'        => array(
				'top'    => '125px',
				'right'  => '0',
				'bottom' => '0',
				'left'   => '0',
			),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'default' === $posts_layout ) ? array(
			'id'         => 'mts_featured_category_title_padding_' . $unique_id,
			'type'       => 'margin',
			'title'      => esc_html__( 'Post Title Padding', 'magnus' ),
			'sub_desc'   => esc_html__( 'Set section title padding from here.', 'magnus' ),
			'std'        => array(
				'top'    => '18px',
				'right'  => '40px',
				'bottom' => '18px',
				'left'   => '40px',
			),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'default' === $posts_layout ) ? array(
			'id'         => 'post_title_border_' . $unique_id,
			'type'       => 'border',
			'title'      => esc_html__( 'Border', 'magnus' ),
			'sub_desc'   => esc_html__( 'Select border', 'magnus' ),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,

		( 'default' === $posts_layout ) ? array(
			'id'         => 'mts_featured_category_title_font_' . $unique_id,
			'type'       => 'typography',
			'title'      => esc_html__( 'Section Title Typography', 'magnus' ),
			'std'        => array(
				'preview-text'  => 'Title Font',
				'preview-color' => 'light',
				'font-family'   => 'Rubik',
				'font-weight'   => '500',
				'font-size'     => '32px',
				'color'         => '#1c2534',
				'css-selectors' => '.title-container.title-id-' . $unique_id . ' h3.featured-category-title',
			),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,

		// Meta info.
		( 'default' === $posts_layout ) ? array(
			'id'    => 'post_meta_info_heading_' . $unique_id,
			'type'  => 'heading',
			'title' => esc_html__( 'Post Meta Info', 'magnus' ),
		) : null,

		( 'default' === $posts_layout ) ? array(
			'id'       => 'mts_home_headline_meta_info' . $unique_id,
			'type'     => 'layout2',
			// translators: title.
			'title'    => sprintf( wp_kses_post( __( '%s Meta Info', 'magnus' ) ), $title ),
			// translators: description.
			'sub_desc' => sprintf( wp_kses_post( __( 'Organize how you want the post meta info to appear on %s', 'magnus' ) ), $title ),
			'options'  => array(
				'enabled'  => array(
					'author' => array(
						'label'     => __( 'Author Name', 'magnus' ),
						'subfields' => array(
							array(
								'id'    => 'mts_meta_info_author_icon_' . $unique_id,
								'type'  => 'icon_select',
								'title' => esc_html__( 'Select Icon', 'magnus' ),
							),
						),
					),
					'date'   => array(
						'label'     => esc_html__( 'Date', 'magnus' ),
						'subfields' => array(
							array(
								'id'    => 'mts_meta_info_date_icon_' . $unique_id,
								'type'  => 'icon_select',
								'title' => esc_html__( 'Select Icon', 'magnus' ),
							),
						),
					),
				),
				'disabled' => array(
					'category' => array(
						'label'     => esc_html__( 'Categories', 'magnus' ),
						'subfields' => array(
							array(
								'id'    => 'mts_meta_info_category_icon_' . $unique_id,
								'type'  => 'icon_select',
								'title' => esc_html__( 'Select Icon', 'magnus' ),
							),
						),
					),
					'comment'  => array(
						'label'     => esc_html__( 'Comment Count', 'magnus' ),
						'subfields' => array(
							array(
								'id'    => 'mts_meta_info_comment_icon_' . $unique_id,
								'type'  => 'icon_select',
								'title' => esc_html__( 'Select Icon', 'magnus' ),
							),
						),
					),
				),
			),
		) : null,

		( 'default' === $posts_layout ) ? array(
			'id'       => 'mts_meta_info_margin_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Margin', 'magnus' ),
			'sub_desc' => esc_html__( 'Post Meta Info margin.', 'magnus' ),
			'std'      => array(
				'top'    => '0',
				'right'  => '0',
				'bottom' => '20px',
				'left'   => '0',
			),
		) : null,
		( 'default' === $posts_layout ) ? array(
			'id'       => 'mts_meta_info_padding_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Padding', 'magnus' ),
			'sub_desc' => esc_html__( 'Post Meta Info padding.', 'magnus' ),
			'std'      => array(
				'left'   => '0',
				'top'    => '0',
				'right'  => '0',
				'bottom' => '0',
			),
		) : null,

		( 'default' === $posts_layout ) ? array(
			'id'    => 'mts_meta_info_font_' . $unique_id,
			'type'  => 'typography',
			'title' => esc_html__( 'Post Meta Info Typography', 'magnus' ),
			'std'   => array(
				'preview-text'  => 'Post Meta Info Font',
				'preview-color' => 'light',
				'font-family'   => 'Rubik',
				'font-weight'   => '300',
				'font-size'     => '16px',
				'color'         => '#70747a',
				'css-selectors' => '.layout-' . $unique_id . ' .latestPost .post-info, .layout-' . $unique_id . ' .latestPost .post-info a',
			),
		) : null,
		// Post Container.
		( 'default' === $posts_layout ) ? array(
			'id'    => 'mts_post_heading_' . $unique_id,
			'type'  => 'heading',
			'title' => esc_html__( 'Post Container', 'magnus' ),
		) : null,

		( 'default' === $posts_layout ) ? array(
			'id'       => 'readmore_' . $unique_id,
			'type'     => 'switch',
			'title'    => esc_html__( 'Enable/Disable Read More', 'magnus' ),
			'sub_desc' => esc_html__( 'Use this button to show or hide readmore.', 'magnus' ),
			'std'      => '0',
		) : null,

		( 'default' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_background_' . $unique_id,
			'type'     => 'background',
			'title'    => esc_html__( 'Post Background Color', 'magnus' ),
			'sub_desc' => esc_html__( 'Set background color, pattern and image from here.', 'magnus' ),
			'options'  => array(
				'color'         => '',            // false to disable, not needed otherwise.
				'image_pattern' => $mts_patterns, // false to disable, array of options otherwise ( required !!! ).
				'image_upload'  => '',            // false to disable, not needed otherwise.
				'repeat'        => array(),       // false to disable, array of options to override default ( optional ).
				'attachment'    => array(),       // false to disable, array of options to override default ( optional ).
				'position'      => array(),       // false to disable, array of options to override default ( optional ).
				'size'          => array(),       // false to disable, array of options to override default ( optional ).
				'gradient'      => '',            // false to disable, not needed otherwise.
				'parallax'      => array(),       // false to disable, array of options to override default ( optional ).
			),
			'std'      => array(
				'color'         => '',
				'use'           => 'pattern',
				'image_pattern' => 'nobg',
				'image_upload'  => '',
				'repeat'        => 'repeat',
				'attachment'    => 'scroll',
				'position'      => 'left top',
				'size'          => 'cover',
				'gradient'      => array(
					'from'      => '#ffffff',
					'to'        => '#000000',
					'direction' => '0deg',
				),
				'parallax'      => '0',
			),
		) : null,
		( 'default' === $posts_layout ) ? array(
			'id'       => 'post_border_' . $unique_id,
			'type'     => 'border',
			'title'    => esc_html__( 'Border', 'magnus' ),
			'sub_desc' => esc_html__( 'Select border', 'magnus' ),
		) : null,
		( 'default' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_margin_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Margin', 'magnus' ),
			'sub_desc' => esc_html__( 'Post margin.', 'magnus' ),
			'left'     => false,
			'right'    => false,
			'std'      => array(
				'top'    => '0',
				'bottom' => '35px',
			),
		) : null,
		( 'default' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_padding_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Padding', 'magnus' ),
			'sub_desc' => esc_html__( 'Post padding.', 'magnus' ),
			'std'      => array(
				'left'   => '0',
				'top'    => '0',
				'right'  => '0',
				'bottom' => '0',
			),
		) : null,

		( 'default' === $posts_layout ) ? array(
			'id'    => 'mts_featured_category_font_' . $unique_id,
			'type'  => 'typography',
			'title' => esc_html__( 'Post Title Font', 'magnus' ),
			'std'   => array(
				'preview-text'  => 'Post Title Font',
				'preview-color' => 'light',
				'font-family'   => 'Rubik',
				'font-weight'   => '500',
				'font-size'     => '40px',
				'line-height'   => '46px',
				'color'         => '#1c2534',
				'css-selectors' => '.layout-' . $unique_id . ' .latestPost .title a',
			),
		) : null,

		( 'default' === $posts_layout ) ? array(
			'id'    => 'mts_featured_category_excerpt_font_' . $unique_id,
			'type'  => 'typography',
			'title' => esc_html__( 'Post Excerpt Font', 'magnus' ),
			'std'   => array(
				'preview-text'  => 'Post Excerpt Font',
				'preview-color' => 'light',
				'font-family'   => 'Rubik',
				'font-weight'   => '300',
				'font-size'     => '18px',
				'line-height'   => '27px',
				'color'         => '#70747a',
				'css-selectors' => '.layout-' . $unique_id . ' .latestPost .front-view-content, .layout-' . $unique_id . ' .readMore a',
			),
		) : null,

		/**
		 * Layout 1.
		 *
		 * @package Magnus
		 */

		( 'layout-1' === $posts_layout ) ? array(
			'id'    => 'caption_settings_' . $unique_id,
			'type'  => 'heading',
			'title' => esc_html__( 'Post Caption Settings', 'magnus' ),
		) : null,

		( 'layout-1' === $posts_layout ) ? array(
			'id'       => 'caption_padding_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Padding', 'magnus' ),
			'sub_desc' => esc_html__( 'Post caption padding.', 'magnus' ),
			'std'      => array(
				'top'    => '52px',
				'right'  => '43px',
				'bottom' => '40px',
				'left'   => '43px',
			),
		) : null,

		( 'layout-1' === $posts_layout ) ? array(
			'id'       => 'first_caption_background_' . $unique_id,
			'type'     => 'color',
			'title'    => esc_html__( 'First Post Caption Background Color', 'magnus' ),
			'sub_desc' => esc_html__( 'The theme comes with unlimited color schemes for your theme\'s styling.', 'magnus' ),
			'std'      => '#ffffff',
		) : null,
		( 'layout-1' === $posts_layout ) ? array(
			'id'       => 'second_caption_background_' . $unique_id,
			'type'     => 'color',
			'title'    => esc_html__( 'Second Post Caption Background Color', 'magnus' ),
			'sub_desc' => esc_html__( 'The theme comes with unlimited color schemes for your theme\'s styling.', 'magnus' ),
			'std'      => '#1c2534',
		) : null,

		// Post Title.
		( 'layout-1' === $posts_layout ) ? array(
			'id'    => 'first_post_title_font_' . $unique_id,
			'type'  => 'typography',
			'title' => esc_html__( 'First Post Title Font', 'magnus' ),
			'std'   => array(
				'preview-text'  => 'First Post Title Font',
				'preview-color' => 'light',
				'font-family'   => 'Rubik',
				'font-weight'   => '500',
				'font-size'     => '36px',
				'line-height'   => '44px',
				'color'         => '#1c2534',
				'css-selectors' => '.layout-' . $unique_id . ' .latestPost:first-child .title a',
			),
		) : null,
		( 'layout-1' === $posts_layout ) ? array(
			'id'    => 'second_post_title_font_' . $unique_id,
			'type'  => 'typography',
			'title' => esc_html__( 'Second Post Title Font', 'magnus' ),
			'std'   => array(
				'preview-text'  => 'Second Post Title Font',
				'preview-color' => 'dark',
				'font-family'   => 'Rubik',
				'font-weight'   => '500',
				'font-size'     => '36px',
				'line-height'   => '44px',
				'color'         => '#ffffff',
				'css-selectors' => '.layout-' . $unique_id . ' .latestPost:nth-child(2) .title a',
			),
		) : null,

		// Meta info.
		( 'layout-1' === $posts_layout ) ? array(
			'id'    => 'post_meta_info_heading_' . $unique_id,
			'type'  => 'heading',
			'title' => esc_html__( 'Post Meta Info', 'magnus' ),
		) : null,

		( 'layout-1' === $posts_layout ) ? array(
			'id'       => 'mts_home_headline_meta_info' . $unique_id,
			'type'     => 'layout2',
			// translators: title.
			'title'    => sprintf( wp_kses_post( __( '%s Meta Info', 'magnus' ) ), $title ),
			// translators: description.
			'sub_desc' => sprintf( wp_kses_post( __( 'Organize how you want the post meta info to appear on %s', 'magnus' ) ), $title ),
			'options'  => array(
				'enabled'  => array(
					'author' => array(
						'label'     => __( 'Author Name', 'magnus' ),
						'subfields' => array(
							array(
								'id'    => 'mts_meta_info_author_icon_' . $unique_id,
								'type'  => 'icon_select',
								'title' => esc_html__( 'Select Icon', 'magnus' ),
							),
						),
					),
					'date'   => array(
						'label'     => esc_html__( 'Date', 'magnus' ),
						'subfields' => array(
							array(
								'id'    => 'mts_meta_info_date_icon_' . $unique_id,
								'type'  => 'icon_select',
								'title' => esc_html__( 'Select Icon', 'magnus' ),
							),
						),
					),
				),
				'disabled' => array(
					'category' => array(
						'label'     => esc_html__( 'Categories', 'magnus' ),
						'subfields' => array(
							array(
								'id'    => 'mts_meta_info_category_icon_' . $unique_id,
								'type'  => 'icon_select',
								'title' => esc_html__( 'Select Icon', 'magnus' ),
							),
						),
					),
					'comment'  => array(
						'label'     => esc_html__( 'Comment Count', 'magnus' ),
						'subfields' => array(
							array(
								'id'    => 'mts_meta_info_comment_icon_' . $unique_id,
								'type'  => 'icon_select',
								'title' => esc_html__( 'Select Icon', 'magnus' ),
							),
						),
					),
				),
			),
		) : null,
		( 'layout-1' === $posts_layout ) ? array(
			'id'       => 'mts_meta_info_margin_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Margin', 'magnus' ),
			'sub_desc' => esc_html__( 'Post Meta Info margin.', 'magnus' ),
			'std'      => array(
				'top'    => '0',
				'right'  => '0',
				'bottom' => '0',
				'left'   => '0',
			),
		) : null,
		( 'layout-1' === $posts_layout ) ? array(
			'id'    => 'first_meta_info_font_' . $unique_id,
			'type'  => 'typography',
			'title' => esc_html__( 'First Post Meta Info Font', 'magnus' ),
			'std'   => array(
				'preview-text'  => 'First Post Meta Info Font',
				'preview-color' => 'light',
				'font-family'   => 'Rubik',
				'font-weight'   => '300',
				'font-size'     => '16px',
				'color'         => '#70747a',
				'css-selectors' => '.layout-' . $unique_id . ' .latestPost:first-child .post-info, .layout-' . $unique_id . ' .latestPost:first-child .post-info a',
			),
		) : null,
		( 'layout-1' === $posts_layout ) ? array(
			'id'    => 'second_meta_info_font_' . $unique_id,
			'type'  => 'typography',
			'title' => esc_html__( 'Second Post Meta Info Font', 'magnus' ),
			'std'   => array(
				'preview-text'  => 'Second Post Meta Info Font',
				'preview-color' => 'dark',
				'font-family'   => 'Rubik',
				'font-weight'   => '300',
				'font-size'     => '16px',
				'color'         => '#a9acb1',
				'css-selectors' => '.layout-' . $unique_id . ' .latestPost:nth-child(2) .post-info, .layout-' . $unique_id . ' .latestPost:nth-child(2) .post-info a',
			),
		) : null,

		// Post Container.
		( 'layout-1' === $posts_layout ) ? array(
			'id'    => 'mts_post_heading_' . $unique_id,
			'type'  => 'heading',
			'title' => esc_html__( 'Post Container', 'magnus' ),
		) : null,
		( 'layout-1' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_margin_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Margin', 'magnus' ),
			'sub_desc' => esc_html__( 'Post margin.', 'magnus' ),
			'left'     => false,
			'right'    => false,
			'std'      => array(
				'top'    => '0',
				'bottom' => '88px',
			),
		) : null,
		( 'layout-1' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_padding_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Padding', 'magnus' ),
			'sub_desc' => esc_html__( 'Post padding.', 'magnus' ),
			'std'      => array(
				'left'   => '0',
				'top'    => '0',
				'right'  => '0',
				'bottom' => '0',
			),
		) : null,

		/**
		 * Layout 2.
		 *
		 * @package Magnus
		 */

		// Section Title.
		( 'layout-2' === $posts_layout ) ? array(
			'id'    => 'mts_post_title_heading_' . $unique_id,
			'type'  => 'heading',
			'title' => esc_html__( 'Section Title', 'magnus' ),
		) : null,

		( 'layout-2' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_title_' . $unique_id,
			'type'     => 'switch',
			'title'    => esc_html__( 'Show/Hide Title', 'magnus' ),
			'sub_desc' => esc_html__( 'Use this button to show or hide title of post container.', 'magnus' ),
			'std'      => '0',
		) : null,
		( 'layout-2' === $posts_layout ) ? array(
			'id'         => 'mts_post_title_alignment_' . $unique_id,
			'type'       => 'button_set',
			'title'      => esc_html__( 'Section Title Alignment', 'magnus' ),
			'sub_desc'   => esc_html__( 'Choose the section title alignment', 'magnus' ),
			'options'    => array(
				'left'   => esc_html__( 'Left', 'magnus' ),
				'center' => esc_html__( 'Center', 'magnus' ),
				'right'  => esc_html__( 'Right', 'magnus' ),
				'full'   => esc_html__( 'Full Width', 'magnus' ),
			),
			'std'        => 'left',
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'layout-2' === $posts_layout ) ? array(
			'id'         => 'mts_featured_category_title_background_' . $unique_id,
			'type'       => 'background',
			'title'      => esc_html__( 'Post Title Background Color', 'magnus' ),
			'sub_desc'   => esc_html__( 'Set background color, pattern and image from here.', 'magnus' ),
			'options'    => array(
				'color'         => '',            // false to disable, not needed otherwise.
				'image_pattern' => $mts_patterns, // false to disable, array of options otherwise ( required !!! ).
				'image_upload'  => '',            // false to disable, not needed otherwise.
				'repeat'        => array(),       // false to disable, array of options to override default ( optional ).
				'attachment'    => array(),       // false to disable, array of options to override default ( optional ).
				'position'      => array(),       // false to disable, array of options to override default ( optional ).
				'size'          => array(),       // false to disable, array of options to override default ( optional ).
				'gradient'      => '',            // false to disable, not needed otherwise.
				'parallax'      => array(),       // false to disable, array of options to override default ( optional ).
			),
			'std'        => array(
				'color'         => '#ffffff',
				'use'           => 'pattern',
				'image_pattern' => 'nobg',
				'image_upload'  => '',
				'repeat'        => 'repeat',
				'attachment'    => 'scroll',
				'position'      => 'left top',
				'size'          => 'cover',
				'gradient'      => array(
					'from'      => '#ffffff',
					'to'        => '#000000',
					'direction' => '0deg',
				),
				'parallax'      => '0',
			),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'layout-2' === $posts_layout ) ? array(
			'id'         => 'post_title_shadow' . $unique_id,
			'type'       => 'switch',
			'title'      => esc_html__( 'Box Shadow', 'magnus' ),
			'sub_desc'   => esc_html__( 'Use this button to show or hide box shadow in post container.', 'magnus' ),
			'std'        => '1',
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'layout-2' === $posts_layout ) ? array(
			'id'         => 'mts_featured_category_title_margin_' . $unique_id,
			'type'       => 'margin',
			'title'      => esc_html__( 'Post Title Margin', 'magnus' ),
			'sub_desc'   => esc_html__( 'Set section title margin from here.', 'magnus' ),
			'std'        => array(
				'top'    => '-42px',
				'right'  => '0',
				'bottom' => '35px',
				'left'   => '0',
			),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'layout-2' === $posts_layout ) ? array(
			'id'         => 'mts_featured_category_title_padding_' . $unique_id,
			'type'       => 'margin',
			'title'      => esc_html__( 'Post Title Padding', 'magnus' ),
			'sub_desc'   => esc_html__( 'Set section title padding from here.', 'magnus' ),
			'std'        => array(
				'top'    => '23px',
				'right'  => '41px',
				'bottom' => '15px',
				'left'   => '41px',
			),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'layout-2' === $posts_layout ) ? array(
			'id'         => 'post_title_border_' . $unique_id,
			'type'       => 'border',
			'title'      => esc_html__( 'Border', 'magnus' ),
			'sub_desc'   => esc_html__( 'Select border', 'magnus' ),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,

		( 'layout-2' === $posts_layout ) ? array(
			'id'         => 'mts_featured_category_title_font_' . $unique_id,
			'type'       => 'typography',
			'title'      => esc_html__( 'Section Title Typography', 'magnus' ),
			'std'        => array(
				'preview-text'   => 'Title Font',
				'preview-color'  => 'light',
				'font-family'    => 'Rubik',
				'font-weight'    => '500',
				'font-size'      => '36px',
				'color'          => '#1c2534',
				'additional-css' => 'text-transform: uppercase;',
				'css-selectors'  => '.title-container.title-id-' . $unique_id . ' h3.featured-category-title',
			),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,

		// Meta info.
		( 'layout-2' === $posts_layout ) ? array(
			'id'    => 'post_meta_info_heading_' . $unique_id,
			'type'  => 'heading',
			'title' => esc_html__( 'Post Meta Info', 'magnus' ),
		) : null,

		( 'layout-2' === $posts_layout ) ? array(
			'id'       => 'mts_home_headline_meta_info' . $unique_id,
			'type'     => 'layout2',
			// translators: title.
			'title'    => sprintf( wp_kses_post( __( '%s Meta Info', 'magnus' ) ), $title ),
			// translators: description.
			'sub_desc' => sprintf( wp_kses_post( __( 'Organize how you want the post meta info to appear on %s', 'magnus' ) ), $title ),
			'options'  => array(
				'enabled'  => array(
					'author' => array(
						'label'     => __( 'Author Name', 'magnus' ),
						'subfields' => array(
							array(
								'id'    => 'mts_meta_info_author_icon_' . $unique_id,
								'type'  => 'icon_select',
								'title' => esc_html__( 'Select Icon', 'magnus' ),
							),
						),
					),
					'date'   => array(
						'label'     => esc_html__( 'Date', 'magnus' ),
						'subfields' => array(
							array(
								'id'    => 'mts_meta_info_date_icon_' . $unique_id,
								'type'  => 'icon_select',
								'title' => esc_html__( 'Select Icon', 'magnus' ),
							),
						),
					),
				),
				'disabled' => array(
					'category' => array(
						'label'     => esc_html__( 'Categories', 'magnus' ),
						'subfields' => array(
							array(
								'id'    => 'mts_meta_info_category_icon_' . $unique_id,
								'type'  => 'icon_select',
								'title' => esc_html__( 'Select Icon', 'magnus' ),
							),
						),
					),
					'comment'  => array(
						'label'     => esc_html__( 'Comment Count', 'magnus' ),
						'subfields' => array(
							array(
								'id'    => 'mts_meta_info_comment_icon_' . $unique_id,
								'type'  => 'icon_select',
								'title' => esc_html__( 'Select Icon', 'magnus' ),
							),
						),
					),
				),
			),
		) : null,
		( 'layout-2' === $posts_layout ) ? array(
			'id'       => 'mts_meta_info_margin_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Margin', 'magnus' ),
			'sub_desc' => esc_html__( 'Post Meta Info margin.', 'magnus' ),
			'std'      => array(
				'top'    => '18px',
				'right'  => '0',
				'bottom' => '0',
				'left'   => '0',
			),
		) : null,

		( 'layout-2' === $posts_layout ) ? array(
			'id'    => 'mts_meta_info_font_' . $unique_id,
			'type'  => 'typography',
			'title' => esc_html__( 'Post Meta Info Typography', 'magnus' ),
			'std'   => array(
				'preview-text'  => 'Post Meta Info Font',
				'preview-color' => 'light',
				'font-family'   => 'Rubik',
				'font-weight'   => '300',
				'font-size'     => '16px',
				'color'         => '#70747a',
				'css-selectors' => '.layout-' . $unique_id . ' .latestPost .post-info, .layout-' . $unique_id . ' .latestPost .post-info a',
			),
		) : null,

		// Post Container.
		( 'layout-2' === $posts_layout ) ? array(
			'id'    => 'mts_post_heading_' . $unique_id,
			'type'  => 'heading',
			'title' => esc_html__( 'Post Container', 'magnus' ),
		) : null,

		( 'layout-2' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_background_' . $unique_id,
			'type'     => 'background',
			'title'    => esc_html__( 'Post Background Color', 'magnus' ),
			'sub_desc' => esc_html__( 'Set background color, pattern and image from here.', 'magnus' ),
			'options'  => array(
				'color'         => '',            // false to disable, not needed otherwise.
				'image_pattern' => $mts_patterns, // false to disable, array of options otherwise ( required !!! ).
				'image_upload'  => '',            // false to disable, not needed otherwise.
				'repeat'        => array(),       // false to disable, array of options to override default ( optional ).
				'attachment'    => array(),       // false to disable, array of options to override default ( optional ).
				'position'      => array(),       // false to disable, array of options to override default ( optional ).
				'size'          => array(),       // false to disable, array of options to override default ( optional ).
				'gradient'      => '',            // false to disable, not needed otherwise.
				'parallax'      => array(),       // false to disable, array of options to override default ( optional ).
			),
			'std'      => array(
				'color'         => '#ffffff',
				'use'           => 'pattern',
				'image_pattern' => 'nobg',
				'image_upload'  => '',
				'repeat'        => 'repeat',
				'attachment'    => 'scroll',
				'position'      => 'left top',
				'size'          => 'cover',
				'gradient'      => array(
					'from'      => '#ffffff',
					'to'        => '#000000',
					'direction' => '0deg',
				),
				'parallax'      => '0',
			),
		) : null,
		( 'layout-2' === $posts_layout ) ? array(
			'id'       => 'post_border_' . $unique_id,
			'type'     => 'border',
			'title'    => esc_html__( 'Border', 'magnus' ),
			'sub_desc' => esc_html__( 'Select border', 'magnus' ),
		) : null,
		( 'layout-2' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_margin_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Margin', 'magnus' ),
			'sub_desc' => esc_html__( 'Post margin.', 'magnus' ),
			'left'     => false,
			'right'    => false,
			'std'      => array(
				'top'    => '55px',
				'bottom' => '0',
			),
		) : null,
		( 'layout-2' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_padding_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Padding', 'magnus' ),
			'sub_desc' => esc_html__( 'Post padding.', 'magnus' ),
			'std'      => array(
				'left'   => '0',
				'top'    => '0',
				'right'  => '0',
				'bottom' => '0',
			),
		) : null,

		( 'layout-2' === $posts_layout ) ? array(
			'id'    => 'mts_featured_category_font_' . $unique_id,
			'type'  => 'typography',
			'title' => esc_html__( 'Post Title Font', 'magnus' ),
			'std'   => array(
				'preview-text'  => 'Post Font',
				'preview-color' => 'light',
				'font-family'   => 'Rubik',
				'font-weight'   => '400',
				'font-size'     => '30px',
				'line-height'   => '34px',
				'color'         => '#1c2534',
				'css-selectors' => '.layout-' . $unique_id . ' .latestPost .title a',
			),
		) : null,

		( 'layout-2' === $posts_layout ) ? array(
			'id'    => 'mts_featured_category_excerpt_font_' . $unique_id,
			'type'  => 'typography',
			'title' => esc_html__( 'Post Excerpt Font', 'magnus' ),
			'std'   => array(
				'preview-text'  => 'Post Excerpt Font',
				'preview-color' => 'light',
				'font-family'   => 'Rubik',
				'font-weight'   => '300',
				'font-size'     => '18px',
				'line-height'   => '27px',
				'color'         => '#70747a',
				'css-selectors' => '.layout-' . $unique_id . ' .latestPost .front-view-content',
			),
		) : null,

		/**
		 * Layout 3.
		 *
		 * @package Magnus
		 */

		// Section Title.
		( 'layout-3' === $posts_layout ) ? array(
			'id'    => 'mts_post_title_heading_' . $unique_id,
			'type'  => 'heading',
			'title' => esc_html__( 'Section Title', 'magnus' ),
		) : null,

		( 'layout-3' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_title_' . $unique_id,
			'type'     => 'switch',
			'title'    => esc_html__( 'Show/Hide Title', 'magnus' ),
			'sub_desc' => esc_html__( 'Use this button to show or hide title of post container.', 'magnus' ),
			'std'      => '1',
		) : null,
		( 'layout-3' === $posts_layout ) ? array(
			'id'         => 'mts_post_title_alignment_' . $unique_id,
			'type'       => 'button_set',
			'title'      => esc_html__( 'Section Title Alignment', 'magnus' ),
			'sub_desc'   => esc_html__( 'Choose the section title alignment', 'magnus' ),
			'options'    => array(
				'left'   => esc_html__( 'Left', 'magnus' ),
				'center' => esc_html__( 'Center', 'magnus' ),
				'right'  => esc_html__( 'Right', 'magnus' ),
				'full'   => esc_html__( 'Full Width', 'magnus' ),
			),
			'std'        => 'left',
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'layout-3' === $posts_layout ) ? array(
			'id'         => 'mts_featured_category_title_background_' . $unique_id,
			'type'       => 'background',
			'title'      => esc_html__( 'Post Title Background Color', 'magnus' ),
			'sub_desc'   => esc_html__( 'Set background color, pattern and image from here.', 'magnus' ),
			'options'    => array(
				'color'         => '',            // false to disable, not needed otherwise.
				'image_pattern' => $mts_patterns, // false to disable, array of options otherwise ( required !!! ).
				'image_upload'  => '',            // false to disable, not needed otherwise.
				'repeat'        => array(),       // false to disable, array of options to override default ( optional ).
				'attachment'    => array(),       // false to disable, array of options to override default ( optional ).
				'position'      => array(),       // false to disable, array of options to override default ( optional ).
				'size'          => array(),       // false to disable, array of options to override default ( optional ).
				'gradient'      => '',            // false to disable, not needed otherwise.
				'parallax'      => array(),       // false to disable, array of options to override default ( optional ).
			),
			'std'        => array(
				'color'         => '#ffffff',
				'use'           => 'pattern',
				'image_pattern' => 'nobg',
				'image_upload'  => '',
				'repeat'        => 'repeat',
				'attachment'    => 'scroll',
				'position'      => 'left top',
				'size'          => 'cover',
				'gradient'      => array(
					'from'      => '#ffffff',
					'to'        => '#000000',
					'direction' => '0deg',
				),
				'parallax'      => '0',
			),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'layout-3' === $posts_layout ) ? array(
			'id'         => 'post_title_shadow' . $unique_id,
			'type'       => 'switch',
			'title'      => esc_html__( 'Box Shadow', 'magnus' ),
			'sub_desc'   => esc_html__( 'Use this button to show or hide box shadow in post container.', 'magnus' ),
			'std'        => '1',
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'layout-3' === $posts_layout ) ? array(
			'id'         => 'mts_featured_category_title_margin_' . $unique_id,
			'type'       => 'margin',
			'title'      => esc_html__( 'Post Title Margin', 'magnus' ),
			'sub_desc'   => esc_html__( 'Set section title margin from here.', 'magnus' ),
			'std'        => array(
				'top'    => '-53px',
				'right'  => '0',
				'bottom' => '41px',
				'left'   => '0',
			),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'layout-3' === $posts_layout ) ? array(
			'id'         => 'mts_featured_category_title_padding_' . $unique_id,
			'type'       => 'margin',
			'title'      => esc_html__( 'Post Title Padding', 'magnus' ),
			'sub_desc'   => esc_html__( 'Set section title padding from here.', 'magnus' ),
			'std'        => array(
				'top'    => '32px',
				'right'  => '29px',
				'bottom' => '32px',
				'left'   => '30px',
			),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'layout-3' === $posts_layout ) ? array(
			'id'         => 'post_title_border_' . $unique_id,
			'type'       => 'border',
			'title'      => esc_html__( 'Border', 'magnus' ),
			'sub_desc'   => esc_html__( 'Select border', 'magnus' ),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,

		( 'layout-3' === $posts_layout ) ? array(
			'id'         => 'mts_featured_category_title_font_' . $unique_id,
			'type'       => 'typography',
			'title'      => esc_html__( 'Section Title Typography', 'magnus' ),
			'std'        => array(
				'preview-text'  => 'Title Font',
				'preview-color' => 'light',
				'font-family'   => 'Rubik',
				'font-weight'   => '500',
				'font-size'     => '36px',
				'line-height'   => '44px',
				'color'         => '#1c2534',
				'css-selectors' => '.title-container.title-id-' . $unique_id . ' h3.featured-category-title',
			),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,

		// Meta info.
		( 'layout-3' === $posts_layout ) ? array(
			'id'    => 'post_meta_info_heading_' . $unique_id,
			'type'  => 'heading',
			'title' => esc_html__( 'Post Meta Info', 'magnus' ),
		) : null,

		( 'layout-3' === $posts_layout ) ? array(
			'id'       => 'mts_home_headline_meta_info' . $unique_id,
			'type'     => 'layout2',
			// translators: title.
			'title'    => sprintf( wp_kses_post( __( '%s Meta Info', 'magnus' ) ), $title ),
			// translators: description.
			'sub_desc' => sprintf( wp_kses_post( __( 'Organize how you want the post meta info to appear on %s', 'magnus' ) ), $title ),
			'options'  => array(
				'enabled'  => array(),
				'disabled' => array(
					'author'   => array(
						'label'     => __( 'Author Name', 'magnus' ),
						'subfields' => array(
							array(
								'id'    => 'mts_meta_info_author_icon_' . $unique_id,
								'type'  => 'icon_select',
								'title' => esc_html__( 'Select Icon', 'magnus' ),
							),
						),
					),
					'date'     => array(
						'label'     => esc_html__( 'Date', 'magnus' ),
						'subfields' => array(
							array(
								'id'    => 'mts_meta_info_date_icon_' . $unique_id,
								'type'  => 'icon_select',
								'title' => esc_html__( 'Select Icon', 'magnus' ),
							),
						),
					),
					'category' => array(
						'label'     => esc_html__( 'Categories', 'magnus' ),
						'subfields' => array(
							array(
								'id'    => 'mts_meta_info_category_icon_' . $unique_id,
								'type'  => 'icon_select',
								'title' => esc_html__( 'Select Icon', 'magnus' ),
							),
						),
					),
					'comment'  => array(
						'label'     => esc_html__( 'Comment Count', 'magnus' ),
						'subfields' => array(
							array(
								'id'    => 'mts_meta_info_comment_icon_' . $unique_id,
								'type'  => 'icon_select',
								'title' => esc_html__( 'Select Icon', 'magnus' ),
							),
						),
					),
				),
			),
		) : null,
		( 'layout-3' === $posts_layout ) ? array(
			'id'       => 'mts_meta_info_margin_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Margin', 'magnus' ),
			'sub_desc' => esc_html__( 'Post Meta Info margin.', 'magnus' ),
			'std'      => array(
				'top'    => '0',
				'right'  => '0',
				'bottom' => '20px',
				'left'   => '0',
			),
		) : null,

		( 'layout-3' === $posts_layout ) ? array(
			'id'    => 'mts_meta_info_font_' . $unique_id,
			'type'  => 'typography',
			'title' => esc_html__( 'Post Meta Info Typography', 'magnus' ),
			'std'   => array(
				'preview-text'   => 'Post Meta Info Font',
				'preview-color'  => 'light',
				'font-family'    => 'Rubik',
				'font-weight'    => '700',
				'font-size'      => '15px',
				'color'          => '#70747a',
				'additional-css' => 'text-transform: uppercase;',
				'css-selectors'  => '.layout-' . $unique_id . ' .latestPost .post-info, .layout-' . $unique_id . ' .latestPost .post-info a',
			),
		) : null,

		// Post Container.
		( 'layout-3' === $posts_layout ) ? array(
			'id'    => 'mts_post_heading_' . $unique_id,
			'type'  => 'heading',
			'title' => esc_html__( 'Post Container', 'magnus' ),
		) : null,

		( 'layout-3' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_background_' . $unique_id,
			'type'     => 'background',
			'title'    => esc_html__( 'Post Background Color', 'magnus' ),
			'sub_desc' => esc_html__( 'Set background color, pattern and image from here.', 'magnus' ),
			'options'  => array(
				'color'         => '',            // false to disable, not needed otherwise.
				'image_pattern' => $mts_patterns, // false to disable, array of options otherwise ( required !!! ).
				'image_upload'  => '',            // false to disable, not needed otherwise.
				'repeat'        => array(),       // false to disable, array of options to override default ( optional ).
				'attachment'    => array(),       // false to disable, array of options to override default ( optional ).
				'position'      => array(),       // false to disable, array of options to override default ( optional ).
				'size'          => array(),       // false to disable, array of options to override default ( optional ).
				'gradient'      => '',            // false to disable, not needed otherwise.
				'parallax'      => array(),       // false to disable, array of options to override default ( optional ).
			),
			'std'      => array(
				'color'         => '#f6f8fc',
				'use'           => 'pattern',
				'image_pattern' => 'nobg',
				'image_upload'  => '',
				'repeat'        => 'repeat',
				'attachment'    => 'scroll',
				'position'      => 'left top',
				'size'          => 'cover',
				'gradient'      => array(
					'from'      => '#ffffff',
					'to'        => '#000000',
					'direction' => '0deg',
				),
				'parallax'      => '0',
			),
		) : null,
		( 'layout-3' === $posts_layout ) ? array(
			'id'       => 'layout_backround_position_' . $unique_id,
			'type'     => 'text',
			'class'    => 'small-text',
			'title'    => esc_html__( 'Background Position from Top', 'magnus' ),
			'sub_desc' => esc_html__( 'Enter background position from top in px.', 'magnus' ),
			'std'      => '-64',
			'args'     => array( 'type' => 'number' ),
		) : null,
		( 'layout-3' === $posts_layout ) ? array(
			'id'       => 'post_border_' . $unique_id,
			'type'     => 'border',
			'title'    => esc_html__( 'Border', 'magnus' ),
			'sub_desc' => esc_html__( 'Select border', 'magnus' ),
		) : null,
		( 'layout-3' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_margin_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Margin', 'magnus' ),
			'sub_desc' => esc_html__( 'Post margin.', 'magnus' ),
			'left'     => false,
			'right'    => false,
			'std'      => array(
				'top'    => '96px',
				'bottom' => '35px',
			),
		) : null,
		( 'layout-3' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_padding_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Padding', 'magnus' ),
			'sub_desc' => esc_html__( 'Post padding.', 'magnus' ),
			'std'      => array(
				'left'   => '0',
				'top'    => '0',
				'right'  => '0',
				'bottom' => '0',
			),
		) : null,

		( 'layout-3' === $posts_layout ) ? array(
			'id'    => 'mts_featured_category_font_' . $unique_id,
			'type'  => 'typography',
			'title' => esc_html__( 'Post Title Font', 'magnus' ),
			'std'   => array(
				'preview-text'  => 'Post Font',
				'preview-color' => 'light',
				'font-family'   => 'Rubik',
				'font-weight'   => '500',
				'font-size'     => '20px',
				'line-height'   => '25px',
				'color'         => '#1c2534',
				'css-selectors' => '.layout-' . $unique_id . ' .latestPost .title a',
			),
		) : null,

		( 'layout-3' === $posts_layout ) ? array(
			'id'    => 'mts_featured_category_excerpt_font_' . $unique_id,
			'type'  => 'typography',
			'title' => esc_html__( 'Post Excerpt Font', 'magnus' ),
			'std'   => array(
				'preview-text'  => 'Post Excerpt Font',
				'preview-color' => 'light',
				'font-family'   => 'Rubik',
				'font-weight'   => '300',
				'font-size'     => '18px',
				'line-height'   => '27px',
				'color'         => '#70747a',
				'css-selectors' => '.layout-' . $unique_id . ' .latestPost .front-view-content',
			),
		) : null,

		/**
		 * Layout Partners.
		 *
		 * @package Magnus
		 */

		( 'layout-partners' === $posts_layout ) ? array(
			'id'        => 'partners_section_' . $unique_id,
			'type'      => 'group',
			'title'     => esc_html__( 'Partners Items', 'magnus' ),
			'groupname' => esc_html__( 'Partner Item', 'magnus' ),
			'subfields' => array(
				array(
					'id'    => 'partner_title',
					'type'  => 'text',
					'title' => esc_html__( 'Title', 'magnus' ),
				),
				array(
					'id'       => 'partner_image',
					'type'     => 'upload',
					'title'    => esc_html__( 'Image', 'magnus' ),
					'sub_desc' => esc_html__( 'Upload or select an image for partner. Recommended Size(190X70px)', 'magnus' ),
				),
				array(
					'id'       => 'partner_url',
					'type'     => 'text',
					'title'    => esc_html__( 'Link', 'magnus' ),
					'sub_desc' => esc_html__( 'Insert a link URL of partner', 'magnus' ),
					'std'      => '#',
				),
			),
		) : null,

		// Section Title.
		( 'layout-partners' === $posts_layout ) ? array(
			'id'    => 'mts_post_title_heading_' . $unique_id,
			'type'  => 'heading',
			'title' => esc_html__( 'Section Title', 'magnus' ),
		) : null,

		( 'layout-partners' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_title_' . $unique_id,
			'type'     => 'switch',
			'title'    => esc_html__( 'Show/Hide Title', 'magnus' ),
			'sub_desc' => esc_html__( 'Use this button to show or hide title of post container.', 'magnus' ),
			'std'      => '1',
		) : null,

		( 'layout-partners' === $posts_layout ) ? array(
			'id'         => 'partner_section_title_' . $unique_id,
			'type'       => 'text',
			'title'      => esc_html__( 'Section Title', 'magnus' ),
			'sub_desc'   => esc_html__( 'Partners section title.', 'magnus' ),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'layout-partners' === $posts_layout ) ? array(
			'id'         => 'partners_title_font_' . $unique_id,
			'type'       => 'typography',
			'title'      => esc_html__( 'Partners Title Font', 'magnus' ),
			'std'        => array(
				'preview-text'   => 'Partners Title Font',
				'preview-color'  => 'dark',
				'font-family'    => 'Rubik',
				'font-weight'    => '400',
				'font-size'      => '16px',
				'line-height'    => '19px',
				'color'          => '#1c2534',
				'additional-css' => 'text-transform: uppercase;',
				'css-selectors'  => '.article.layout-' . $unique_id . ' h3.featured-category-title',
			),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,

		( 'layout-partners' === $posts_layout ) ? array(
			'id'         => 'mts_post_title_alignment_' . $unique_id,
			'type'       => 'button_set',
			'title'      => esc_html__( 'Section Title Alignment', 'magnus' ),
			'sub_desc'   => esc_html__( 'Choose the section title alignment', 'magnus' ),
			'options'    => array(
				'left'   => esc_html__( 'Left', 'magnus' ),
				'center' => esc_html__( 'Center', 'magnus' ),
				'right'  => esc_html__( 'Right', 'magnus' ),
				'full'   => esc_html__( 'Full Width', 'magnus' ),
			),
			'std'        => 'full',
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'layout-partners' === $posts_layout ) ? array(
			'id'         => 'mts_featured_category_title_background_' . $unique_id,
			'type'       => 'background',
			'title'      => esc_html__( 'Post Title Background Color', 'magnus' ),
			'sub_desc'   => esc_html__( 'Set background color, pattern and image from here.', 'magnus' ),
			'options'    => array(
				'color'         => '',            // false to disable, not needed otherwise.
				'image_pattern' => $mts_patterns, // false to disable, array of options otherwise ( required !!! ).
				'image_upload'  => '',            // false to disable, not needed otherwise.
				'repeat'        => array(),       // false to disable, array of options to override default ( optional ).
				'attachment'    => array(),       // false to disable, array of options to override default ( optional ).
				'position'      => array(),       // false to disable, array of options to override default ( optional ).
				'size'          => array(),       // false to disable, array of options to override default ( optional ).
				'gradient'      => '',            // false to disable, not needed otherwise.
				'parallax'      => array(),       // false to disable, array of options to override default ( optional ).
			),
			'std'        => array(
				'color'         => '#ffffff',
				'use'           => 'pattern',
				'image_pattern' => 'nobg',
				'image_upload'  => '',
				'repeat'        => 'repeat',
				'attachment'    => 'scroll',
				'position'      => 'left top',
				'size'          => 'cover',
				'gradient'      => array(
					'from'      => '#ffffff',
					'to'        => '#000000',
					'direction' => '0deg',
				),
				'parallax'      => '0',
			),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'layout-partners' === $posts_layout ) ? array(
			'id'         => 'post_title_shadow' . $unique_id,
			'type'       => 'switch',
			'title'      => esc_html__( 'Box Shadow', 'magnus' ),
			'sub_desc'   => esc_html__( 'Use this button to show or hide box shadow in post container.', 'magnus' ),
			'std'        => '1',
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'layout-partners' === $posts_layout ) ? array(
			'id'         => 'mts_featured_category_title_margin_' . $unique_id,
			'type'       => 'margin',
			'title'      => esc_html__( 'Post Title Margin', 'magnus' ),
			'sub_desc'   => esc_html__( 'Set section title margin from here.', 'magnus' ),
			'left'       => false,
			'right'      => false,
			'std'        => array(
				'top'    => '0',
				'bottom' => '-80px',
			),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'layout-partners' === $posts_layout ) ? array(
			'id'         => 'mts_featured_category_title_padding_' . $unique_id,
			'type'       => 'margin',
			'title'      => esc_html__( 'Post Title Padding', 'magnus' ),
			'sub_desc'   => esc_html__( 'Set section title padding from here.', 'magnus' ),
			'std'        => array(
				'left'   => '40px',
				'top'    => '40px',
				'right'  => '40px',
				'bottom' => '40px',
			),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,
		( 'layout-partners' === $posts_layout ) ? array(
			'id'         => 'post_title_border_' . $unique_id,
			'type'       => 'border',
			'title'      => esc_html__( 'Border', 'magnus' ),
			'sub_desc'   => esc_html__( 'Select border', 'magnus' ),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'mts_featured_category_title_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,

		// Post Container.
		( 'layout-partners' === $posts_layout ) ? array(
			'id'    => 'mts_post_heading_' . $unique_id,
			'type'  => 'heading',
			'title' => esc_html__( 'Post Container', 'magnus' ),
		) : null,

		( 'layout-partners' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_background_' . $unique_id,
			'type'     => 'background',
			'title'    => esc_html__( 'Post Background Color', 'magnus' ),
			'sub_desc' => esc_html__( 'Set background color, pattern and image from here.', 'magnus' ),
			'options'  => array(
				'color'         => '',            // false to disable, not needed otherwise.
				'image_pattern' => $mts_patterns, // false to disable, array of options otherwise ( required !!! ).
				'image_upload'  => '',            // false to disable, not needed otherwise.
				'repeat'        => array(),       // false to disable, array of options to override default ( optional ).
				'attachment'    => array(),       // false to disable, array of options to override default ( optional ).
				'position'      => array(),       // false to disable, array of options to override default ( optional ).
				'size'          => array(),       // false to disable, array of options to override default ( optional ).
				'gradient'      => '',            // false to disable, not needed otherwise.
				'parallax'      => array(),       // false to disable, array of options to override default ( optional ).
			),
			'std'      => array(
				'color'         => '',
				'use'           => 'pattern',
				'image_pattern' => 'nobg',
				'image_upload'  => '',
				'repeat'        => 'repeat',
				'attachment'    => 'scroll',
				'position'      => 'left top',
				'size'          => 'cover',
				'gradient'      => array(
					'from'      => '#ffffff',
					'to'        => '#000000',
					'direction' => '0deg',
				),
				'parallax'      => '0',
			),
		) : null,
		( 'layout-partners' === $posts_layout ) ? array(
			'id'       => 'post_border_' . $unique_id,
			'type'     => 'border',
			'title'    => esc_html__( 'Border', 'magnus' ),
			'sub_desc' => esc_html__( 'Select border', 'magnus' ),
		) : null,
		( 'layout-partners' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_margin_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Margin', 'magnus' ),
			'sub_desc' => esc_html__( 'Post margin.', 'magnus' ),
			'left'     => false,
			'right'    => false,
			'std'      => array(
				'top'    => '0',
				'bottom' => '35px',
			),
		) : null,
		( 'layout-partners' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_padding_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Padding', 'magnus' ),
			'sub_desc' => esc_html__( 'Post padding.', 'magnus' ),
			'std'      => array(
				'left'   => '0',
				'top'    => '0',
				'right'  => '0',
				'bottom' => '0',
			),
		) : null,

		/**
		 * Layout Category.
		 *
		 * @package Magnus
		 */

		( 'layout-category' === $posts_layout ) ? array(
			'id'        => 'cat_section_' . $unique_id,
			'type'      => 'group',
			'title'     => esc_html__( 'Category items', 'magnus' ),
			'sub_desc'  => esc_html__( 'Add category Item from here', 'magnus' ),
			'groupname' => esc_html__( 'Category item', 'magnus' ),
			'subfields' => array(
				array(
					'id'    => 'cat_section_title',
					'type'  => 'text',
					'title' => esc_html__( 'Title', 'magnus' ),
				),
				array(
					'id'       => 'cat_section_category',
					'type'     => 'select',
					'title'    => esc_html__( 'Category', 'magnus' ),
					'sub_desc' => esc_html__( 'Select a category for this section', 'magnus' ),
					'data'     => 'category',
				),
				array(
					'id'       => 'cat_section_image',
					'type'     => 'upload',
					'title'    => esc_html__( 'Image', 'magnus' ),
					'sub_desc' => esc_html__( 'Upload or select an image for category. Recommended Size(365X287px)', 'magnus' ),
				),
				array(
					'id'    => 'cat_section_background',
					'type'  => 'color',
					'title' => esc_html__( 'Select overlay color for your category', 'magnus' ),
					'args'  => array( 'opacity' => true ),
					'std'   => 'rgba(0, 0, 0, 0.3)',
				),
				array(
					'id'    => 'cat_section_hover_background',
					'type'  => 'color',
					'title' => esc_html__( 'Select overlay hover color for your category', 'magnus' ),
					'args'  => array( 'opacity' => true ),
					'std'   => 'rgba(0, 0, 0, 0.6)',
				),
			),
		) : null,

		// Post Container.
		( 'layout-category' === $posts_layout ) ? array(
			'id'    => 'mts_post_heading_' . $unique_id,
			'type'  => 'heading',
			'title' => esc_html__( 'Post Container', 'magnus' ),
		) : null,

		( 'layout-category' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_background_' . $unique_id,
			'type'     => 'background',
			'title'    => esc_html__( 'Post Background Color', 'magnus' ),
			'sub_desc' => esc_html__( 'Set background color, pattern and image from here.', 'magnus' ),
			'options'  => array(
				'color'         => '',            // false to disable, not needed otherwise.
				'image_pattern' => $mts_patterns, // false to disable, array of options otherwise ( required !!! ).
				'image_upload'  => '',            // false to disable, not needed otherwise.
				'repeat'        => array(),       // false to disable, array of options to override default ( optional ).
				'attachment'    => array(),       // false to disable, array of options to override default ( optional ).
				'position'      => array(),       // false to disable, array of options to override default ( optional ).
				'size'          => array(),       // false to disable, array of options to override default ( optional ).
				'gradient'      => '',            // false to disable, not needed otherwise.
				'parallax'      => array(),       // false to disable, array of options to override default ( optional ).
			),
			'std'      => array(
				'color'         => '',
				'use'           => 'pattern',
				'image_pattern' => 'nobg',
				'image_upload'  => '',
				'repeat'        => 'repeat',
				'attachment'    => 'scroll',
				'position'      => 'left top',
				'size'          => 'cover',
				'gradient'      => array(
					'from'      => '#ffffff',
					'to'        => '#000000',
					'direction' => '0deg',
				),
				'parallax'      => '0',
			),
		) : null,
		( 'layout-category' === $posts_layout ) ? array(
			'id'       => 'post_border_' . $unique_id,
			'type'     => 'border',
			'title'    => esc_html__( 'Border', 'magnus' ),
			'sub_desc' => esc_html__( 'Select border', 'magnus' ),
		) : null,
		( 'layout-category' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_margin_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Margin', 'magnus' ),
			'sub_desc' => esc_html__( 'Post margin.', 'magnus' ),
			'left'     => false,
			'right'    => false,
			'std'      => array(
				'top'    => '0',
				'bottom' => '35px',
			),
		) : null,
		( 'layout-category' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_padding_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Padding', 'magnus' ),
			'sub_desc' => esc_html__( 'Post padding.', 'magnus' ),
			'std'      => array(
				'left'   => '0',
				'top'    => '0',
				'right'  => '0',
				'bottom' => '0',
			),
		) : null,

		/**
		 * Layout Subscribe.
		 *
		 * @package Magnus
		 */

		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'       => 'subscribe_size_' . $unique_id,
			'type'     => 'button_set',
			'title'    => esc_html__( 'Section Size', 'magnus' ),
			'sub_desc' => esc_html__( 'Select the size of subscribe widget.', 'magnus' ),
			'options'  => array(
				'full'      => esc_html__( 'Full', 'magnus' ),
				'container' => esc_html__( 'Container', 'magnus' ),
			),
			'std'      => 'full',
		) : null,
		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'       => 'subscribe_alignment_' . $unique_id,
			'type'     => 'button_set',
			'title'    => esc_html__( 'Alignment', 'magnus' ),
			'sub_desc' => esc_html__( 'Alignment of subscribe widget content', 'magnus' ),
			'options'  => array(
				'left'   => esc_html__( 'Left', 'magnus' ),
				'center' => esc_html__( 'Center', 'magnus' ),
				'right'  => esc_html__( 'Right', 'magnus' ),
			),
			'std'      => 'center',
		) : null,
		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'    => 'subscribe_title_font_' . $unique_id,
			'type'  => 'typography',
			'title' => esc_html__( 'Title Typography', 'magnus' ),
			'std'   => array(
				'preview-text'  => 'Title Font',
				'preview-color' => 'dark',
				'font-family'   => 'Rubik',
				'font-weight'   => '500',
				'font-size'     => '36px',
				'color'         => '#ffffff',
				'css-selectors' => '.layout-' . $unique_id . ' .widget #wp-subscribe .title, .layout-' . $unique_id . ' .layout-subscribe .left-content h4',
			),
		) : null,
		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'       => 'subscribe_input_background_' . $unique_id,
			'type'     => 'color',
			'title'    => esc_html__( 'Input Fields Background Color', 'magnus' ),
			'sub_desc' => esc_html__( 'The theme comes with unlimited color schemes for your theme\'s styling.', 'magnus' ),
			'std'      => '#ffffff',
		) : null,
		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'       => 'subscribe_input_size_' . $unique_id,
			'type'     => 'button_set',
			'title'    => esc_html__( 'Input Field Size', 'magnus' ),
			'sub_desc' => esc_html__( 'Select the size of input fields.', 'magnus' ),
			'options'  => array(
				'large' => esc_html__( 'Large', 'magnus' ),
				'small' => esc_html__( 'Small', 'magnus' ),
			),
			'std'      => 'large',
		) : null,
		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'    => 'subscribe_input_font_' . $unique_id,
			'type'  => 'typography',
			'title' => esc_html__( 'Input Fields Typography', 'magnus' ),
			'std'   => array(
				'preview-text'  => 'Input Fields Font',
				'preview-color' => 'dark',
				'font-family'   => 'Rubik',
				'font-weight'   => '400',
				'font-size'     => '18px',
				'color'         => '#1c2534',
				'css-selectors' => '.layout-' . $unique_id . ' .layout-subscribe #wp-subscribe input.email-field, .layout-' . $unique_id . ' .layout-subscribe #wp-subscribe input.name-field',
			),
		) : null,

		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'    => 'subscribe_text_font_' . $unique_id,
			'type'  => 'typography',
			'title' => esc_html__( 'Text Typography', 'magnus' ),
			'std'   => array(
				'preview-text'  => 'Text Font',
				'preview-color' => 'dark',
				'font-family'   => 'Rubik',
				'font-weight'   => '400',
				'font-size'     => '20px',
				'color'         => '#ffffff',
				'css-selectors' => '.layout-' . $unique_id . ' .layout-subscribe #wp-subscribe p.text, .layout-' . $unique_id . ' .subscribe-icons-container p, .layout-' . $unique_id . ' .layout-subscribe .left-content p',
			),
		) : null,
		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'    => 'subscribe_small_text_font_' . $unique_id,
			'type'  => 'typography',
			'title' => esc_html__( 'Small Text Typography', 'magnus' ),
			'std'   => array(
				'preview-text'  => 'Text Font',
				'preview-color' => 'dark',
				'font-family'   => 'Rubik',
				'font-weight'   => '300',
				'font-size'     => '13px',
				'color'         => '#ffffff',
				'css-selectors' => '.layout-' . $unique_id . ' .layout-subscribe #sidebar .wp-subscribe-wrap p.footer-text, .layout-' . $unique_id . ' .layout-subscribe #sidebar .widget .wp-subscribe .wps-consent-wrapper',
			),
		) : null,

		// Left Content.
		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'    => 'subscribe_left_content_heading_' . $unique_id,
			'type'  => 'heading',
			'title' => esc_html__( 'Subscribe Left Content', 'magnus' ),
		) : null,
		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'       => 'subscribe_left_content_logo_' . $unique_id,
			'type'     => 'upload',
			'title'    => esc_html__( 'Left Content Logo', 'magnus' ),
			'sub_desc' => esc_html__( 'Select an image file for left content logo.', 'magnus' ),
			'return'   => 'url',
		) : null,
		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'    => 'subscribe_left_content_title_' . $unique_id,
			'type'  => 'text',
			'title' => esc_html__( 'Left Content Title', 'magnus' ),
			'std'   => 'Know where to go!',
		) : null,
		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'    => 'subscribe_left_content_text_' . $unique_id,
			'type'  => 'textarea',
			'title' => esc_html__( 'Left Content Text', 'magnus' ),
			'std'   => 'Sign up for our daily tips to make your best vacation.',
		) : null,

		// Social Icons.
		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'    => 'subscribe_icon_heading_' . $unique_id,
			'type'  => 'heading',
			'title' => esc_html__( 'Subscribe Social Icons', 'magnus' ),
		) : null,

		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'       => 'subscribe_social_icons_' . $unique_id,
			'type'     => 'switch',
			'title'    => esc_html__( 'Subscribe Social Icons', 'magnus' ),
			'sub_desc' => esc_html__( 'Enable or disable subscribe social icons with this option.', 'magnus' ),
			'std'      => '1',
		) : null,

		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'         => 'subscribe_icon_title_' . $unique_id,
			'type'       => 'text',
			'title'      => esc_html__( 'Title', 'magnus' ),
			'sub_desc'   => esc_html__( 'Subscribe icon title.', 'magnus' ),
			'std'        => 'Follow Us',
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'subscribe_social_icons_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,

		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'         => 'subscribe_social_' . $unique_id,
			'title'      => esc_html__( 'Footer Social Icons', 'magnus' ),
			'sub_desc'   => esc_html__( 'Add Social Media icons in footer nav section.', 'magnus' ),
			'type'       => 'group',
			'groupname'  => esc_html__( 'Social Icons', 'magnus' ), // Group name.
			'subfields'  => array(
				array(
					'id'    => 'subscribe_social_title',
					'type'  => 'text',
					'title' => esc_html__( 'Title', 'magnus' ),
				),
				array(
					'id'    => 'subscribe_social_icon',
					'type'  => 'icon_select',
					'title' => esc_html__( 'Icon', 'magnus' ),
				),
				array(
					'id'    => 'subscribe_social_link',
					'type'  => 'text',
					'title' => esc_html__( 'URL', 'magnus' ),
				),
				array(
					'id'    => 'subscribe_social_color',
					'type'  => 'color',
					'title' => esc_html__( 'Icon color', 'magnus' ),
				),
				array(
					'id'    => 'subscribe_social_hover_color',
					'type'  => 'color',
					'title' => esc_html__( 'Icon hover color', 'magnus' ),
				),
				array(
					'id'    => 'subscribe_social_margin',
					'type'  => 'margin',
					'title' => esc_html__( 'Margin', 'magnus' ),
				),
				array(
					'id'    => 'subscribe_social_padding',
					'type'  => 'margin',
					'title' => esc_html__( 'Padding', 'magnus' ),
				),
			),
			'std'        => array(
				'facebook'  => array(
					'group_title'                  => 'Facebook',
					'group_sort'                   => '1',
					'subscribe_social_title'       => 'Facebook',
					'subscribe_social_icon'        => 'facebook-square',
					'subscribe_social_link'        => '#',
					'subscribe_social_color'       => '#ffffff',
					'subscribe_social_hover_color' => magnus_get_settings( 'mts_color_scheme' ),
					'subscribe_social_margin'      => array(
						'top'    => '0',
						'right'  => '22px',
						'bottom' => '0',
						'left'   => '0',
					),
					'subscribe_social_padding'     => array(
						'top'    => '0',
						'right'  => '0',
						'bottom' => '0',
						'left'   => '0',
					),
				),
				'youtube'   => array(
					'group_title'                  => 'Youtube',
					'group_sort'                   => '1',
					'subscribe_social_title'       => 'Youtube',
					'subscribe_social_icon'        => 'youtube',
					'subscribe_social_link'        => '#',
					'subscribe_social_color'       => '#ffffff',
					'subscribe_social_hover_color' => magnus_get_settings( 'mts_color_scheme' ),
					'subscribe_social_margin'      => array(
						'top'    => '0',
						'right'  => '22px',
						'bottom' => '0',
						'left'   => '0',
					),
					'subscribe_social_padding'     => array(
						'top'    => '0',
						'right'  => '0',
						'bottom' => '0',
						'left'   => '0',
					),
				),
				'twitter'   => array(
					'group_title'                  => 'Twitter',
					'group_sort'                   => '3',
					'subscribe_social_title'       => 'Twitter',
					'subscribe_social_icon'        => 'twitter',
					'subscribe_social_link'        => '#',
					'subscribe_social_color'       => '#ffffff',
					'subscribe_social_hover_color' => magnus_get_settings( 'mts_color_scheme' ),
					'subscribe_social_margin'      => array(
						'top'    => '0',
						'right'  => '22px',
						'bottom' => '0',
						'left'   => '0',
					),
					'subscribe_social_padding'     => array(
						'top'    => '0',
						'right'  => '0',
						'bottom' => '0',
						'left'   => '0',
					),
				),
				'pinterest' => array(
					'group_title'                  => 'Pinterest',
					'group_sort'                   => '4',
					'subscribe_social_title'       => 'Pinterest',
					'subscribe_social_icon'        => 'pinterest',
					'subscribe_social_link'        => '#',
					'subscribe_social_color'       => '#ffffff',
					'subscribe_social_hover_color' => magnus_get_settings( 'mts_color_scheme' ),
					'subscribe_social_margin'      => array(
						'top'    => '0',
						'right'  => '22px',
						'bottom' => '0',
						'left'   => '0',
					),
					'subscribe_social_padding'     => array(
						'top'    => '0',
						'right'  => '0',
						'bottom' => '0',
						'left'   => '0',
					),
				),
				'instagram' => array(
					'group_title'                  => 'Instagram',
					'group_sort'                   => '5',
					'subscribe_social_title'       => 'Instagram',
					'subscribe_social_icon'        => 'instagram',
					'subscribe_social_link'        => '#',
					'subscribe_social_color'       => '#ffffff',
					'subscribe_social_hover_color' => magnus_get_settings( 'mts_color_scheme' ),
					'subscribe_social_margin'      => array(
						'top'    => '0',
						'right'  => '0',
						'bottom' => '0',
						'left'   => '0',
					),
					'subscribe_social_padding'     => array(
						'top'    => '0',
						'right'  => '0',
						'bottom' => '0',
						'left'   => '0',
					),
				),
			),
			'dependency' => array(
				'relation' => 'and',
				array(
					'field'      => 'subscribe_social_icons_' . $unique_id,
					'value'      => '1',
					'comparison' => '==',
				),
			),
		) : null,

		// Post Container.
		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'    => 'mts_post_heading_' . $unique_id,
			'type'  => 'heading',
			'title' => esc_html__( 'Post Container', 'magnus' ),
		) : null,

		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_background_' . $unique_id,
			'type'     => 'background',
			'title'    => esc_html__( 'Post Background Color', 'magnus' ),
			'sub_desc' => esc_html__( 'Set background color, pattern and image from here.', 'magnus' ),
			'options'  => array(
				'color'         => '',            // false to disable, not needed otherwise.
				'image_pattern' => $mts_patterns, // false to disable, array of options otherwise ( required !!! ).
				'image_upload'  => '',            // false to disable, not needed otherwise.
				'repeat'        => array(),       // false to disable, array of options to override default ( optional ).
				'attachment'    => array(),       // false to disable, array of options to override default ( optional ).
				'position'      => array(),       // false to disable, array of options to override default ( optional ).
				'size'          => array(),       // false to disable, array of options to override default ( optional ).
				'gradient'      => '',            // false to disable, not needed otherwise.
				'parallax'      => array(),       // false to disable, array of options to override default ( optional ).
			),
			'std'      => array(
				'color'         => '#2e4257',
				'use'           => 'pattern',
				'image_pattern' => 'nobg',
				'image_upload'  => '',
				'repeat'        => 'repeat',
				'attachment'    => 'scroll',
				'position'      => 'left top',
				'size'          => 'cover',
				'gradient'      => array(
					'from'      => '#ffffff',
					'to'        => '#000000',
					'direction' => '0deg',
				),
				'parallax'      => '0',
			),
		) : null,
		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'       => 'post_border_' . $unique_id,
			'type'     => 'border',
			'title'    => esc_html__( 'Border', 'magnus' ),
			'sub_desc' => esc_html__( 'Select border', 'magnus' ),
		) : null,
		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_margin_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Margin', 'magnus' ),
			'sub_desc' => esc_html__( 'Post margin.', 'magnus' ),
			'left'     => false,
			'right'    => false,
			'std'      => array(
				'top'    => '0',
				'bottom' => '0',
			),
		) : null,
		( 'layout-subscribe' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_padding_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Padding', 'magnus' ),
			'sub_desc' => esc_html__( 'Post padding.', 'magnus' ),
			'std'      => array(
				'left'   => '0',
				'top'    => '55px',
				'right'  => '0',
				'bottom' => '15px',
			),
		) : null,

		/**
		 * Layout Ad.
		 *
		 * @package Magnus
		 */

		( 'layout-ad' === $posts_layout ) ? array(
			'id'       => 'adcode_' . $unique_id,
			'type'     => 'ace_editor',
			'mode'     => 'html',
			'title'    => esc_html__( 'Ad Code', 'magnus' ),
			'sub_desc' => esc_html__( 'Paste your Adsense, BSA or other ad code here to show ads.', 'magnus' ),
		) : null,

		// Post Container.
		( 'layout-ad' === $posts_layout ) ? array(
			'id'    => 'mts_post_heading_' . $unique_id,
			'type'  => 'heading',
			'title' => esc_html__( 'Post Container', 'magnus' ),
		) : null,

		( 'layout-ad' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_background_' . $unique_id,
			'type'     => 'background',
			'title'    => esc_html__( 'Post Background Color', 'magnus' ),
			'sub_desc' => esc_html__( 'Set background color, pattern and image from here.', 'magnus' ),
			'options'  => array(
				'color'         => '',            // false to disable, not needed otherwise.
				'image_pattern' => $mts_patterns, // false to disable, array of options otherwise ( required !!! ).
				'image_upload'  => '',            // false to disable, not needed otherwise.
				'repeat'        => array(),       // false to disable, array of options to override default ( optional ).
				'attachment'    => array(),       // false to disable, array of options to override default ( optional ).
				'position'      => array(),       // false to disable, array of options to override default ( optional ).
				'size'          => array(),       // false to disable, array of options to override default ( optional ).
				'gradient'      => '',            // false to disable, not needed otherwise.
				'parallax'      => array(),       // false to disable, array of options to override default ( optional ).
			),
			'std'      => array(
				'color'         => '',
				'use'           => 'pattern',
				'image_pattern' => 'nobg',
				'image_upload'  => '',
				'repeat'        => 'repeat',
				'attachment'    => 'scroll',
				'position'      => 'left top',
				'size'          => 'cover',
				'gradient'      => array(
					'from'      => '#ffffff',
					'to'        => '#000000',
					'direction' => '0deg',
				),
				'parallax'      => '0',
			),
		) : null,
		( 'layout-ad' === $posts_layout ) ? array(
			'id'       => 'post_border_' . $unique_id,
			'type'     => 'border',
			'title'    => esc_html__( 'Border', 'magnus' ),
			'sub_desc' => esc_html__( 'Select border', 'magnus' ),
		) : null,
		( 'layout-ad' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_margin_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Margin', 'magnus' ),
			'sub_desc' => esc_html__( 'Post margin.', 'magnus' ),
			'left'     => false,
			'right'    => false,
			'std'      => array(
				'top'    => '0',
				'bottom' => '35px',
			),
		) : null,
		( 'layout-ad' === $posts_layout ) ? array(
			'id'       => 'mts_featured_category_padding_' . $unique_id,
			'type'     => 'margin',
			'title'    => esc_html__( 'Padding', 'magnus' ),
			'sub_desc' => esc_html__( 'Post padding.', 'magnus' ),
			'std'      => array(
				'left'   => '0',
				'top'    => '0',
				'right'  => '0',
				'bottom' => '0',
			),
		) : null,

	);
endforeach;
