<?php
/**
 * Search Tab
 *
 * @package Seekers
 */

$menus['search'] = array(
	'icon'  => 'fa fa-search',
	'title' => esc_html__( 'Search', 'seekers' ),
	'desc'  => esc_html__( 'Setting here apply to search pages.', 'seekers' ),
);

$sections['search'] = array(

	array(
		'id'       => 'search_content',
		'type'     => 'select',
		'title'    => esc_html__( 'Search Results Content', 'seekers' ),
		'sub_desc' => esc_html__( 'Controls the type of content that displays in search results.', 'seekers' ),
		'options'  => array(
			'all'          => esc_html__( 'All Post Types and Pages', 'seekers' ),
			'all-no-pages' => esc_html__( 'All Post Types without Pages', 'seekers' ),
			'pages'        => esc_html__( 'Only Pages', 'seekers' ),
			'posts'        => esc_html__( 'Only Blog Posts', 'seekers' ),
			'woocommerce'  => esc_html__( 'Only WooCommerce Products', 'seekers' ),
		),
		'std'      => 'posts_pages',
	),

	array(
		'id'       => 'search_results_per_page',
		'type'     => 'text',
		'title'    => esc_html__( 'Number of Search Results Per Page', 'seekers' ),
		'sub_desc' => esc_html__( 'Controls the number of search results per page.', 'seekers' ),
		'validate' => 'numeric',
		'std'      => '9',
		'class'    => 'small-text',
	),

	array(
		'id'       => 'search_position',
		'type'     => 'button_set',
		'title'    => esc_html__( 'Search Form Position', 'seekers' ),
		'sub_desc' => esc_html__( 'Controls the position of the search bar on the search results page.', 'seekers' ),
		'options'  => array(
			'above' => esc_html__( 'Above Results', 'seekers' ),
			'below' => esc_html__( 'Below Results', 'seekers' ),
			'hide'  => esc_html__( 'Hide', 'seekers' ),
		),
		'std'      => 'above',
	),
);
