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

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

$sections['search'] = array(

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

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

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