<?php
/**
 * General Tab
 *
 * @package Blocks
 */

$menus['main'] = array(
	'icon'  => 'fa-th',
	'title' => esc_html__( 'General', 'blocks' ),
	'desc'  => esc_html__( 'This tab contains common setting options which will be applied to the whole theme', 'blocks' ),
);

$mts_patterns = array(
	'nobg' => array( 'img' => $uri . 'bg-patterns/nobg.png' ),
);
for ( $i = 0; $i <= 52; $i++ ) {
	$mts_patterns[ 'pattern' . $i ] = array( 'img' => $uri . 'bg-patterns/pattern' . $i . '.png' );
}

for ( $i = 1; $i <= 29; $i++ ) {
	$mts_patterns[ 'hbg' . $i ] = array( 'img' => $uri . 'bg-patterns/hbg' . $i . '.png' );
}

$sections['main'] = array(

	array(
		'id'       => 'mts_logo',
		'type'     => 'upload',
		'title'    => esc_html__( 'Site Logo', 'blocks' ),
		'sub_desc' => esc_html__( 'Select an image file for your logo.', 'blocks' ),
		'return'   => 'id',
	),
	array(
		'id'       => 'mts_favicon',
		'type'     => 'upload',
		'title'    => esc_html__( 'Favicon', 'blocks' ),
		// translators: Strong tag in description.
		'sub_desc' => sprintf( __( 'Upload a %s image that will represent your website\'s favicon.', 'blocks' ), '<strong>32 x 32 px</strong>' ),
		'return'   => 'id',
	),
	array(
		'id'       => 'mts_touch_icon',
		'type'     => 'upload',
		'title'    => esc_html__( 'Touch icon', 'blocks' ),
		// translators: Strong tag in description.
		'sub_desc' => sprintf( __( 'Upload a %s image that will represent your website\'s touch icon for iOS 2.0+ and Android 2.1+ devices.', 'blocks' ), '<strong>152 x 152 px</strong>' ),
		'return'   => 'id',
	),
	array(
		'id'       => 'mts_metro_icon',
		'type'     => 'upload',
		'title'    => esc_html__( 'Metro icon', 'blocks' ),
		// translators: Strong tag in description.
		'sub_desc' => sprintf( __( 'Upload a %s image that will represent your website\'s IE 10 Metro tile icon.', 'blocks' ), '<strong>144 x 144 px</strong>' ),
		'return'   => 'id',
	),
	array(
		'id'       => 'mts_twitter_username',
		'type'     => 'text',
		'title'    => esc_html__( 'Twitter Username', 'blocks' ),
		'sub_desc' => esc_html__( 'Enter your Username here.', 'blocks' ),
	),
	array(
		'id'       => 'mts_feedburner',
		'type'     => 'text',
		'title'    => esc_html__( 'FeedBurner URL', 'blocks' ),
		// translators: Strong tag in description.
		'sub_desc' => sprintf( __( 'Enter your FeedBurner\'s URL here, ex: %s and your main feed (http://example.com/feed) will get redirected to the FeedBurner ID entered here.)', 'blocks' ), '<strong>http://feeds.feedburner.com/mythemeshop</strong>' ),
		'validate' => 'url',
	),
	array(
		'id'       => 'mts_ajax_search',
		'type'     => 'switch',
		'title'    => esc_html__( 'AJAX Quick search', 'blocks' ),
		'sub_desc' => esc_html__( 'Enable or disable search results appearing instantly below the search form', 'blocks' ),
		'std'      => '0',
	),
	array(
		'id'       => 'mts_responsive',
		'type'     => 'switch',
		'title'    => esc_html__( 'Responsiveness', 'blocks' ),
		'sub_desc' => esc_html__( 'MyThemeShop themes are responsive, which means they adapt to tablet and mobile devices, ensuring that your content is always displayed beautifully no matter what device visitors are using. Enable or disable responsiveness using this option.', 'blocks' ),
		'std'      => '1',
	),
	array(
		'id'       => 'mts_shop_products',
		'type'     => 'text',
		'title'    => esc_html__( 'No. of Products', 'blocks' ),
		'sub_desc' => esc_html__( 'Enter the total number of products which you want to show on shop page (WooCommerce plugin must be enabled).', 'blocks' ),
		'validate' => 'numeric',
		'std'      => '9',
		'class'    => 'small-text',
	),

);
