<?php
/**
 * Single Subscribe
 *
 * @package Risen
 */

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

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

	array(
		'id'       => 'single_subscribe_box',
		'type'     => 'switch',
		'title'    => esc_html__( 'Show Subscribe box', 'risen' ),
		'sub_desc' => esc_html__( 'Enable/Disable Subscribe box in the single post.', 'risen' ),
		'std'      => '0',
	),
	array(
		'id'         => 'single_subscribe_heading',
		'type'       => 'heading',
		'title'      => esc_html__( 'Subscribe box Settings', 'risen' ),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_background',
		'type'       => 'background',
		'title'      => esc_html__( 'Subscribe box Background', 'risen' ),
		'sub_desc'   => esc_html__( 'Set background color, pattern and image for subscribe box 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'         => risen_get_settings( 'primary_color_scheme' ),
			'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'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_margin',
		'type'       => 'margin',
		'title'      => esc_html__( 'Margin', 'risen' ),
		'sub_desc'   => esc_html__( 'Set Subscribe box margin from here.', 'risen' ),
		'std'        => array(
			'top'    => '0',
			'right'  => '0',
			'bottom' => '0',
			'left'   => '0',
		),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_padding',
		'type'       => 'margin',
		'title'      => esc_html__( 'Padding', 'risen' ),
		'sub_desc'   => esc_html__( 'Set Subscribe box padding from here.', 'risen' ),
		'std'        => array(
			'top'    => '49px',
			'right'  => '52px',
			'bottom' => '51px',
			'left'   => '66px',
		),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_border_radius',
		'type'       => 'text',
		'class'      => 'small-text',
		'title'      => esc_html__( 'Border Radius', 'risen' ),
		'sub_desc'   => esc_html__( 'Subscribe box border radius.', 'risen' ),
		'std'        => '0',
		'args'       => array( 'type' => 'number' ),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),

	array(
		'id'         => 'single_subscribe_title_heading',
		'type'       => 'heading',
		'title'      => esc_html__( 'Subscribe box Title Settings', 'risen' ),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_title_font',
		'type'       => 'typography',
		'title'      => esc_html__( 'Subscribe Title Font', 'risen' ),
		'std'        => array(
			'preview-text'   => 'Subscribe Title Font',
			'preview-color'  => 'dark',
			'font-family'    => 'Anton',
			'font-weight'    => '400',
			'font-size'      => '30px',
			'line-height'    => '32px',
			'color'          => '#ffffff',
			'additional-css' => 'text-transform: uppercase;',
			'css-selectors'  => '.single-subscribe .widget #wp-subscribe .title',
		),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_text_heading',
		'type'       => 'heading',
		'title'      => esc_html__( 'Subscribe box Text Settings', 'risen' ),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_text_font',
		'type'       => 'typography',
		'title'      => esc_html__( 'Subscribe Text Font', 'risen' ),
		'std'        => array(
			'preview-text'  => 'Subscribe Text Font',
			'preview-color' => 'light',
			'font-family'   => 'Roboto',
			'font-weight'   => '400',
			'font-size'     => '10px',
			'line-height'   => '18px',
			'color'         => '#ffffff',
			'css-selectors' => '.single-subscribe .widget #wp-subscribe p.text, .single-subscribe .widget .wp-subscribe .wps-consent-wrapper label, .single-subscribe .widget .wp-subscribe-wrap .error, .single-subscribe .widget .wp-subscribe-wrap .thanks',
		),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_input_heading',
		'type'       => 'heading',
		'title'      => esc_html__( 'Subscribe box Input Settings', 'risen' ),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_input_background',
		'type'       => 'color',
		'title'      => esc_html__( 'Background Color', 'risen' ),
		'sub_desc'   => esc_html__( 'The theme comes with unlimited color schemes for your theme\'s styling.', 'risen' ),
		'std'        => '#ffffff',
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_input_height',
		'type'       => 'text',
		'class'      => 'small-text',
		'title'      => esc_html__( 'Height', 'risen' ),
		'sub_desc'   => esc_html__( 'Subscribe box input fields height.', 'risen' ),
		'std'        => '28',
		'args'       => array( 'type' => 'number' ),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_input_border_radius',
		'type'       => 'text',
		'class'      => 'small-text',
		'title'      => esc_html__( 'Border Radius', 'risen' ),
		'sub_desc'   => esc_html__( 'Subscribe box input fields border radius.', 'risen' ),
		'std'        => '0',
		'args'       => array( 'type' => 'number' ),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_input_border',
		'type'       => 'border',
		'title'      => esc_html__( 'Border', 'risen' ),
		'sub_desc'   => esc_html__( 'Select border', 'risen' ),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_input_font',
		'type'       => 'typography',
		'title'      => esc_html__( 'Subscribe Input Fields Font', 'risen' ),
		'std'        => array(
			'preview-text'  => 'Subscribe Input Fields',
			'preview-color' => 'light',
			'font-family'   => 'Roboto',
			'font-weight'   => '400',
			'font-size'     => '8px',
			'color'         => '#979797',
			'css-selectors' => '.single-subscribe .widget #wp-subscribe input.email-field, .single-subscribe .widget #wp-subscribe input.name-field',
		),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_submit_heading',
		'type'       => 'heading',
		'title'      => esc_html__( 'Subscribe box Submit Settings', 'risen' ),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_submit_backgroud',
		'type'       => 'color',
		'title'      => esc_html__( 'Background Color', 'risen' ),
		'sub_desc'   => esc_html__( 'Submit button background color', 'risen' ),
		'std'        => '#000000',
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_submit_border_radius',
		'type'       => 'text',
		'class'      => 'small-text',
		'title'      => esc_html__( 'Border Radius', 'risen' ),
		'sub_desc'   => esc_html__( 'Subscribe box submit button border radius.', 'risen' ),
		'std'        => '0',
		'args'       => array( 'type' => 'number' ),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_submit_border',
		'type'       => 'border',
		'title'      => esc_html__( 'Border', 'risen' ),
		'sub_desc'   => esc_html__( 'Select border', 'risen' ),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_submit_padding',
		'type'       => 'margin',
		'title'      => esc_html__( 'Padding', 'risen' ),
		'sub_desc'   => esc_html__( 'Set subscribe submit button padding from here.', 'risen' ),
		'std'        => array(
			'top'    => '10px',
			'right'  => '0',
			'bottom' => '10px',
			'left'   => '0',
		),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_submit_font',
		'type'       => 'typography',
		'title'      => esc_html__( 'Subscribe Submit Button Font', 'risen' ),
		'std'        => array(
			'preview-text'  => 'Subscribe Submit Button',
			'preview-color' => 'dark',
			'font-family'   => 'Roboto',
			'font-weight'   => '800',
			'font-size'     => '8px',
			'color'         => '#ffffff',
			'css-selectors' => '.single-subscribe .widget #wp-subscribe input.submit',
		),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_small_heading',
		'type'       => 'heading',
		'title'      => esc_html__( 'Subscribe box small text Settings', 'risen' ),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'single_subscribe_small_text_font',
		'type'       => 'typography',
		'title'      => esc_html__( 'Subscribe Small Text Font', 'risen' ),
		'std'        => array(
			'preview-text'   => 'Subscribe Small Text',
			'preview-color'  => 'light',
			'font-family'    => 'Anton',
			'font-weight'    => '400',
			'font-size'      => '13px',
			'line-height'    => '20px',
			'color'          => '#a6a7aa',
			'additional-css' => 'display: none;',
			'css-selectors'  => '.single-subscribe .widget .wp-subscribe-wrap p.footer-text',
		),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'single_subscribe_box',
				'value'      => '1',
				'comparison' => '==',
			),
		),
	),
);
