<?php
/**
 * Single Related Posts
 *
 * @package Risen
 */

$menus['single-related'] = array(
	'title' => esc_html__( 'Related Posts', 'risen' ),
	'desc'  => esc_html__( 'From here, you can control the appearance and functionality of related posts in single posts page.', 'risen' ),
);

$sections['single-related'] = array(

	array(
		'id'       => 'related_posts_background',
		'type'     => 'background',
		'title'    => esc_html__( 'Related Posts Background', 'risen' ),
		'sub_desc' => esc_html__( 'Set background color, pattern and image from here.', 'risen' ),
		'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',
		),
	),

	array(
		'id'       => 'related_posts_layouts',
		'type'     => 'radio_img',
		'title'    => esc_html__( 'Related Posts Layouts', 'risen' ),
		'sub_desc' => esc_html__( 'Choose the Related Posts layouts for your site.', 'risen' ),
		'options'  => array(
			'default'  => array( 'img' => $uri . 'related/r1.jpg' ),
			'related2' => array( 'img' => $uri . 'related/r2.jpg' ),
			'related3' => array( 'img' => $uri . 'related/r3.jpg' ),
			// 'related4' => array( 'img' => $uri . 'related/r4.jpg' ),
			'related5' => array( 'img' => $uri . 'related/r5.jpg' ),
			'related6' => array( 'img' => $uri . 'related/r6.jpg' ),
		),
		'std'      => 'related2',
	),

	array(
		'id'         => 'related_posts_grid',
		'type'       => 'select',
		'class'      => 'small',
		'title'      => esc_html__( 'Grid', 'risen' ),
		'sub_desc'   => esc_html__( 'Select the number of grid for Related Posts.', 'risen' ),
		'options'    => array(
			'grid2' => esc_html__( '2', 'risen' ),
			'grid3' => esc_html__( '3', 'risen' ),
			'grid4' => esc_html__( '4', 'risen' ),
			'grid5' => esc_html__( '5', 'risen' ),
			'grid6' => esc_html__( '6', 'risen' ),
		),
		'std'        => 'grid2',
		'dependency' => array(
			'relation' => 'or',
			array(
				'field'      => 'related_posts_layouts',
				'value'      => 'default',
				'comparison' => '==',
			),
		),
	),

	array(
		'id'       => 'mts_related_postsnum',
		'type'     => 'text',
		'class'    => 'small-text',
		'title'    => esc_html__( 'Number of related posts', 'risen' ),
		'sub_desc' => esc_html__( 'Enter the number of posts to show in the related posts section.', 'risen' ),
		'std'      => '2',
		'args'     => array(
			'type' => 'number',
		),
	),

	array(
		'id'         => 'related_posts_adcode',
		'type'       => 'ace_editor',
		'mode'       => 'html',
		'title'      => esc_html__( 'Related Posts Ad', 'risen' ),
		'sub_desc'   => esc_html__( 'Paste your Adsense, BSA or other ad code here to show ads in Related Posts Area.', 'risen' ),
		'dependency' => array(
			'relation' => 'or',
			array(
				'field'      => 'related_posts_layouts',
				'value'      => 'related5',
				'comparison' => '==',
			),
			array(
				'field'      => 'related_posts_layouts',
				'value'      => 'related6',
				'comparison' => '==',
			),
		),
	),

	array(
		'id'       => 'related_posts_position',
		'type'     => 'button_set',
		'title'    => esc_html__( 'Related Posts Position', 'risen' ),
		'sub_desc' => esc_html__( 'Choose the position for related posts, below content will be Full width', 'risen' ),
		'options'  => array(
			'default' => esc_html__( 'Default', 'risen' ),
			'full'    => esc_html__( 'Below Content', 'risen' ),
		),
		'std'      => 'default',
	),

	array(
		'id'       => 'related_post_meta_info',
		'type'     => 'multi_checkbox',
		'title'    => esc_html__( 'Post Meta Info', 'risen' ),
		'sub_desc' => esc_html__( 'Show or hide post meta info.', 'risen' ),
		'options'  => array(
			'author'   => esc_html__( 'Author Name', 'risen' ),
			'time'     => esc_html__( 'Time/Date', 'risen' ),
			'category' => esc_html__( 'Category', 'risen' ),
			'comment'  => esc_html__( 'Comments', 'risen' ),
		),
		'std'      => array(
			'category',
			'comment',
		),
	),

	array(
		'id'       => 'related_posts_margin',
		'type'     => 'margin',
		'title'    => esc_html__( 'Margin', 'risen' ),
		'sub_desc' => esc_html__( 'Set related posts margin from here.', 'risen' ),
		'std'      => array(
			'top'    => '55px',
			'right'  => '0',
			'bottom' => '0',
			'left'   => '0',
		),
	),
	array(
		'id'       => 'related_posts_padding',
		'type'     => 'margin',
		'title'    => esc_html__( 'Padding', 'risen' ),
		'sub_desc' => esc_html__( 'Set related posts padding from here.', 'risen' ),
		'std'      => array(
			'top'    => '58px',
			'right'  => '0',
			'bottom' => '0',
			'left'   => '0',
		),
	),

	array(
		'id'    => 'related_post_title_font',
		'type'  => 'typography',
		'title' => esc_html__( 'Related Post Section Title', 'risen' ),
		'std'   => array(
			'preview-text'  => 'Related Post Section Title',
			'preview-color' => 'light',
			'font-family'   => 'Roboto',
			'font-weight'   => '700',
			'font-size'     => '20px',
			'line-height'   => '24px',
			'color'         => '#000000',
			'css-selectors' => '.related-posts h4',
		),
	),

	array(
		'id'    => 'related_posts_font',
		'type'  => 'typography',
		'title' => esc_html__( 'Related Posts Title', 'risen' ),
		'std'   => array(
			'preview-text'   => 'Related Posts Title',
			'preview-color'  => 'light',
			'font-family'    => 'Roboto Condensed',
			'font-weight'    => '700',
			'font-size'      => '28px',
			'line-height'    => '32px',
			'color'          => '#000000',
			'additional-css' => 'text-transform: uppercase;',
			'css-selectors'  => '.related-posts .title a',
		),
	),
	array(
		'id'    => 'related_posts_meta_font',
		'type'  => 'typography',
		'title' => esc_html__( 'Related Posts Meta Info', 'risen' ),
		'std'   => array(
			'preview-text'  => 'Related Posts Meta Info Font',
			'preview-color' => 'light',
			'font-family'   => 'Roboto',
			'font-weight'   => '300',
			'font-size'     => '13px',
			'color'         => '#70747a',
			'css-selectors' => '.related-posts .post-info, .related-posts .post-info a',
		),
	),

	array(
		'id'    => 'related_posts_article_heading',
		'type'  => 'heading',
		'title' => esc_html__( 'Related Posts Articles', 'risen' ),
	),

	array(
		'id'       => 'related_article_background',
		'type'     => 'background',
		'title'    => esc_html__( 'Related Posts Background', 'risen' ),
		'sub_desc' => esc_html__( 'Set background color, pattern and image from here.', 'risen' ),
		'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',
		),
	),

	array(
		'id'       => 'related_article_padding',
		'type'     => 'margin',
		'title'    => esc_html__( 'Articles Padding', 'risen' ),
		'sub_desc' => esc_html__( 'Set related posts articles padding from here.', 'risen' ),
		'std'      => array(
			'left'   => '0',
			'top'    => '0',
			'right'  => '0',
			'bottom' => '0',
		),
	),

	array(
		'id'       => 'related_article_text_padding',
		'type'     => 'margin',
		'title'    => esc_html__( 'Articles Text Padding', 'risen' ),
		'sub_desc' => esc_html__( 'Set related posts articles text padding from here.', 'risen' ),
		'std'      => array(
			'top'    => '0',
			'right'  => '0',
			'bottom' => '0',
			'left'   => '0',
		),
	),

);
