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

$menus['home-pagination'] = array(
	'title' => esc_html__( 'Pagination', 'magnus' ),
	'desc'  => esc_html__( 'From here, you can control the elements of homepage pagination.', 'magnus' ),
);

$sections['home-pagination'] = array(

	array(
		'id'       => 'mts_pagenavigation_type',
		'type'     => 'radio',
		'title'    => esc_html__( 'Pagination Type', 'magnus' ),
		'sub_desc' => esc_html__( 'Select pagination type.', 'magnus' ),
		'options'  => array(
			'0' => esc_html__( 'Default (Next / Previous)', 'magnus' ),
			'1' => esc_html__( 'Numbered (1 2 3 4...)', 'magnus' ),
			'2' => esc_html__( 'AJAX (Load More Button)', 'magnus' ),
			'3' => esc_html__( 'AJAX (Auto Infinite Scroll)', 'magnus' ),
		),
		'std'      => '1',
	),

	array(
		'id'         => 'load_more_alignment',
		'type'       => 'button_set',
		'title'      => esc_html__( 'Load More Alignment', 'magnus' ),
		'sub_desc'   => esc_html__( 'Choose the load more alignment from here.', '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_pagenavigation_type',
				'value'      => '2',
				'comparison' => '==',
			),
		),
	),

	array(
		'id'         => 'mts_pagenavigation_bgcolor',
		'type'       => 'color',
		'title'      => esc_html__( 'Pagination background color', 'magnus' ),
		'sub_desc'   => esc_html__( 'Select pagination background color.', 'magnus' ),
		'std'        => '#ffffff',
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'mts_pagenavigation_type',
				'value'      => '2',
				'comparison' => '!=',
			),
		),
	),
	array(
		'id'         => 'load_more_bgcolor',
		'type'       => 'color',
		'title'      => esc_html__( 'Load More background color', 'magnus' ),
		'sub_desc'   => esc_html__( 'Select background color for load more button.', 'magnus' ),
		'std'        => magnus_get_settings( 'mts_color_scheme' ),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'mts_pagenavigation_type',
				'value'      => '2',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'mts_pagenavigation_hover_bgcolor',
		'type'       => 'color',
		'title'      => esc_html__( 'Pagination background hover color', 'magnus' ),
		'sub_desc'   => esc_html__( 'Select pagination background hover color.', 'magnus' ),
		'std'        => '#ffffff',
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'mts_pagenavigation_type',
				'value'      => '2',
				'comparison' => '!=',
			),
		),
	),
	array(
		'id'         => 'load_more_hover_bgcolor',
		'type'       => 'color',
		'title'      => esc_html__( 'Load More background hover color', 'magnus' ),
		'sub_desc'   => esc_html__( 'Select background hover color for load more button.', 'magnus' ),
		'std'        => '#1c2534',
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'mts_pagenavigation_type',
				'value'      => '2',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'mts_pagenavigation_color',
		'type'       => 'color',
		'title'      => esc_html__( 'Pagination color', 'magnus' ),
		'sub_desc'   => esc_html__( 'Select pagination color.', 'magnus' ),
		'std'        => '#d5d7dc',
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'mts_pagenavigation_type',
				'value'      => '2',
				'comparison' => '!=',
			),
		),
	),
	array(
		'id'         => 'load_more_color',
		'type'       => 'color',
		'title'      => esc_html__( 'Load More color', 'magnus' ),
		'sub_desc'   => esc_html__( 'Select color for load more button.', 'magnus' ),
		'std'        => '#ffffff',
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'mts_pagenavigation_type',
				'value'      => '2',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'         => 'mts_pagenavigation_hover_color',
		'type'       => 'color',
		'title'      => esc_html__( 'Pagination hover color', 'magnus' ),
		'sub_desc'   => esc_html__( 'Select pagination hover color.', 'magnus' ),
		'std'        => magnus_get_settings( 'mts_color_scheme' ),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'mts_pagenavigation_type',
				'value'      => '2',
				'comparison' => '!=',
			),
		),
	),
	array(
		'id'         => 'load_more_hover_color',
		'type'       => 'color',
		'title'      => esc_html__( 'Load More hover color', 'magnus' ),
		'sub_desc'   => esc_html__( 'Select hover color for load more button.', 'magnus' ),
		'std'        => '#ffffff',
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'mts_pagenavigation_type',
				'value'      => '2',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'       => 'mts_pagenavigation_margin',
		'type'     => 'margin',
		'title'    => esc_html__( 'Pagination Margin', 'magnus' ),
		'sub_desc' => esc_html__( 'Update pagination margin from here.', 'magnus' ),
		'std'      => array(
			'top'    => '0',
			'right'  => '36px',
			'bottom' => '0',
			'left'   => '0',
		),
	),
	array(
		'id'         => 'mts_pagenavigation_padding',
		'type'       => 'margin',
		'title'      => esc_html__( 'Pagination Padding', 'magnus' ),
		'sub_desc'   => esc_html__( 'Update pagination padding from here.', 'magnus' ),
		'std'        => array(
			'top'    => '0',
			'right'  => '0',
			'bottom' => '0',
			'left'   => '0',
		),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'mts_pagenavigation_type',
				'value'      => '2',
				'comparison' => '!=',
			),
		),
	),
	array(
		'id'         => 'load_more_padding',
		'type'       => 'margin',
		'title'      => esc_html__( 'Load More Padding', 'magnus' ),
		'sub_desc'   => esc_html__( 'Update padding for load more button from here.', 'magnus' ),
		'std'        => array(
			'top'    => '24px',
			'right'  => '13px',
			'bottom' => '22px',
			'left'   => '13px',
		),
		'dependency' => array(
			'relation' => 'and',
			array(
				'field'      => 'mts_pagenavigation_type',
				'value'      => '2',
				'comparison' => '==',
			),
		),
	),
	array(
		'id'       => 'mts_pagenavigation_border_radius',
		'type'     => 'text',
		'class'    => 'small-text',
		'title'    => esc_html__( 'Pagination border radius', 'magnus' ),
		'sub_desc' => esc_html__( 'Update pagination border radius in px.', 'magnus' ),
		'std'      => '0',
		'args'     => array( 'type' => 'number' ),
	),
	array(
		'id'       => 'pagenavigation_border',
		'type'     => 'border',
		'title'    => esc_html__( 'Border', 'magnus' ),
		'sub_desc' => esc_html__( 'Select border', 'magnus' ),
	),

);
