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

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

$sections['search'] = array(

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

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

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