HEX
Server: Apache
System: Linux iad1-shared-b8-22 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User: dh_7uh9vd (6523960)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/dh_7uh9vd/lifeofcanada.com/wp-content/themes/mts_socialnow/theme-options.php
<?php

defined('ABSPATH') or die;

/*
 * 
 * Require the framework class before doing anything else, so we can use the defined urls and dirs
 *
 */
require_once( dirname( __FILE__ ) . '/options/options.php' );

/*
 * 
 * Add support tab
 *
 */
if ( ! defined('MTS_THEME_WHITE_LABEL') || ! MTS_THEME_WHITE_LABEL ) {
	require_once( dirname( __FILE__ ) . '/options/support.php' );
	$mts_options_tab_support = MTS_Options_Tab_Support::get_instance();
}
/*
 * 
 * Custom function for filtering the sections array given by theme, good for child themes to override or add to the sections.
 * Simply include this function in the child themes functions.php file.
 *
 * NOTE: the defined constansts for urls, and dir will NOT be available at this point in a child theme, so you must use
 * get_template_directory_uri() if you want to use any of the built in icons
 *
 */
function add_another_section($sections){
	
	//$sections = array();
	$sections[] = array(
		'title' => __('A Section added by hook', 'socialnow' ),
		'desc' => '<p class="description">' . __('This is a section created by adding a filter to the sections array, great to allow child themes, to add/remove sections from the options.', 'socialnow' ) . '</p>',
		//all the glyphicons are included in the options folder, so you can hook into them, or link to your own custom ones.
		//You dont have to though, leave it blank for default.
		'icon' => trailingslashit(get_template_directory_uri()).'options/img/glyphicons/glyphicons_062_attach.png',
		//Lets leave this as a blank section, no options just some intro text set above.
		'fields' => array()
	);
	
	return $sections;
	
}//function
//add_filter('nhp-opts-sections-twenty_eleven', 'add_another_section');


/*
 * 
 * Custom function for filtering the args array given by theme, good for child themes to override or add to the args array.
 *
 */
function change_framework_args($args){
	
	//$args['dev_mode'] = false;
	
	return $args;
	
}//function
//add_filter('nhp-opts-args-twenty_eleven', 'change_framework_args');

/*
 * This is the meat of creating the optons page
 *
 * Override some of the default values, uncomment the args and change the values
 * - no $args are required, but there there to be over ridden if needed.
 *
 *
 */

function setup_framework_options(){
	$args = array();

	//Set it to dev mode to view the class settings/info in the form - default is false
	$args['dev_mode'] = false;
	//Remove the default stylesheet? make sure you enqueue another one all the page will look whack!
	//$args['stylesheet_override'] = true;

	//Add HTML before the form
	//$args['intro_text'] = __('<p>This is the HTML which can be displayed before the form, it isnt required, but more info is always better. Anything goes in terms of markup here, any HTML.</p>', 'socialnow' );

	if ( ! MTS_THEME_WHITE_LABEL ) {
		//Setup custom links in the footer for share icons
		$args['share_icons']['twitter'] = array(
			'link' => 'http://twitter.com/mythemeshopteam',
			'title' => __( 'Follow Us on Twitter', 'socialnow' ),
			'img' => 'fa fa-twitter-square'
		);
		$args['share_icons']['facebook'] = array(
			'link' => 'http://www.facebook.com/mythemeshop',
			'title' => __( 'Like us on Facebook', 'socialnow' ),
			'img' => 'fa fa-facebook-square'
		);
	}

	//Choose to disable the import/export feature
	//$args['show_import_export'] = false;

	//Choose a custom option name for your theme options, the default is the theme name in lowercase with spaces replaced by underscores
	$args['opt_name'] = MTS_THEME_NAME;

	//Custom menu icon
	//$args['menu_icon'] = '';

	//Custom menu title for options page - default is "Options"
	$args['menu_title'] = __('Theme Options', 'socialnow' );

	//Custom Page Title for options page - default is "Options"
	$args['page_title'] = __('Theme Options', 'socialnow' );

	//Custom page slug for options page (wp-admin/themes.php?page=***) - default is "nhp_theme_options"
	$args['page_slug'] = 'theme_options';

	//Custom page capability - default is set to "manage_options"
	//$args['page_cap'] = 'manage_options';

	//page type - "menu" (adds a top menu section) or "submenu" (adds a submenu) - default is set to "menu"
	//$args['page_type'] = 'submenu';

	//parent menu - default is set to "themes.php" (Appearance)
	//the list of available parent menus is available here: http://codex.wordpress.org/Function_Reference/add_submenu_page#Parameters
	//$args['page_parent'] = 'themes.php';

	//custom page location - default 100 - must be unique or will override other items
	$args['page_position'] = 62;

	//Custom page icon class (used to override the page icon next to heading)
	//$args['page_icon'] = 'icon-themes';

	if ( ! MTS_THEME_WHITE_LABEL ) {
		//Set ANY custom page help tabs - displayed using the new help tab API, show in order of definition
		$args['help_tabs'][] = array(
			'id' => 'nhp-opts-1',
			'title' => __('Support', 'socialnow' ),
			'content' => '<p>' . sprintf( __('If you are facing any problem with our theme or theme option panel, head over to our %s.', 'socialnow' ), '<a href="http://community.mythemeshop.com/">'. __( 'Support Forums', 'socialnow' ) . '</a>' ) . '</p>'
		);
		$args['help_tabs'][] = array(
			'id' => 'nhp-opts-2',
			'title' => __('Earn Money', 'socialnow' ),
			'content' => '<p>' . sprintf( __('Earn 70%% commision on every sale by refering your friends and readers. Join our %s.', 'socialnow' ), '<a href="http://mythemeshop.com/affiliate-program/">' . __( 'Affiliate Program', 'socialnow' ) . '</a>' ) . '</p>'
		);
	}

	//Set the Help Sidebar for the options page - no sidebar by default										
	//$args['help_sidebar'] = __('<p>This is the sidebar content, HTML is allowed.</p>', 'socialnow' );

	$mts_patterns = array(
		'nobg' => array('img' => NHP_OPTIONS_URL.'img/patterns/nobg.png'),
		'pattern0' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern0.png'),
		'pattern1' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern1.png'),
		'pattern2' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern2.png'),
		'pattern3' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern3.png'),
		'pattern4' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern4.png'),
		'pattern5' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern5.png'),
		'pattern6' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern6.png'),
		'pattern7' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern7.png'),
		'pattern8' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern8.png'),
		'pattern9' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern9.png'),
		'pattern10' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern10.png'),
		'pattern11' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern11.png'),
		'pattern12' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern12.png'),
		'pattern13' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern13.png'),
		'pattern14' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern14.png'),
		'pattern15' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern15.png'),
		'pattern16' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern16.png'),
		'pattern17' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern17.png'),
		'pattern18' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern18.png'),
		'pattern19' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern19.png'),
		'pattern20' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern20.png'),
		'pattern21' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern21.png'),
		'pattern22' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern22.png'),
		'pattern23' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern23.png'),
		'pattern24' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern24.png'),
		'pattern25' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern25.png'),
		'pattern26' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern26.png'),
		'pattern27' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern27.png'),
		'pattern28' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern28.png'),
		'pattern29' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern29.png'),
		'pattern30' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern30.png'),
		'pattern31' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern31.png'),
		'pattern32' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern32.png'),
		'pattern33' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern33.png'),
		'pattern34' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern34.png'),
		'pattern35' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern35.png'),
		'pattern36' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern36.png'),
		'pattern37' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern37.png'),
		'hbg' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg.png'),
		'hbg2' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg2.png'),
		'hbg3' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg3.png'),
		'hbg4' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg4.png'),
		'hbg5' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg5.png'),
		'hbg6' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg6.png'),
		'hbg7' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg7.png'),
		'hbg8' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg8.png'),
		'hbg9' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg9.png'),
		'hbg10' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg10.png'),
		'hbg11' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg11.png'),
		'hbg12' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg12.png'),
		'hbg13' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg13.png'),
		'hbg14' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg14.png'),
		'hbg15' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg15.png'),
		'hbg16' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg16.png'),
		'hbg17' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg17.png'),
		'hbg18' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg18.png'),
		'hbg19' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg19.png'),
		'hbg20' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg20.png'),
		'hbg21' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg21.png'),
		'hbg22' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg22.png'),
		'hbg23' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg23.png'),
		'hbg24' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg24.png'),
		'hbg25' => array('img' => NHP_OPTIONS_URL.'img/patterns/hbg25.png')
	);

	$sections = array();

	$sections[] = array(
		'icon' => 'fa fa-cogs',
		'title' => __('General Settings', 'socialnow' ),
		'desc' => '<p class="description">' . __('This tab contains common setting options which will be applied to the whole theme.', 'socialnow' ) . '</p>',
		'fields' => array(
			array(
				'id' => 'mts_logo',
				'type' => 'upload',
				'title' => __('Logo Image', 'socialnow' ),
				'sub_desc' => __('Upload your logo using the Upload Button or insert image URL. Recommended Size <strong><i>150px X 34px</i></strong>', 'socialnow' ),
				'return' => 'id'
			),
			array(
				'id' => 'mts_favicon',
				'type' => 'upload',
				'title' => __('Favicon', 'socialnow' ),
				'sub_desc' => sprintf( __('Upload a %s image that will represent your website\'s favicon.', 'socialnow' ), '<strong>32 x 32 px</strong>' ),
				'return' => 'id'
			),
			array(
				'id' => 'mts_touch_icon',
				'type' => 'upload',
				'title' => __('Touch icon', 'socialnow' ),
				'sub_desc' => sprintf( __('Upload a %s image that will represent your website\'s touch icon for iOS 2.0+ and Android 2.1+ devices.', 'socialnow' ), '<strong>152 x 152 px</strong>' ),
				'return' => 'id'
			),
			array(
				'id' => 'mts_metro_icon',
				'type' => 'upload',
				'title' => __('Metro icon', 'socialnow' ),
				'sub_desc' => sprintf( __('Upload a %s image that will represent your website\'s IE 10 Metro tile icon.', 'socialnow' ), '<strong>144 x 144 px</strong>' ),
				'return' => 'id'
			),
			array(
				'id' => 'mts_twitter_username',
				'type' => 'text',
				'title' => __('Twitter Username', 'socialnow' ),
				'sub_desc' => __('Enter your Username here.', 'socialnow' ),
			),
			array(
				'id' => 'mts_feedburner',
				'type' => 'text',
				'title' => __('FeedBurner URL', 'socialnow' ),
				'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.)', 'socialnow' ), '<strong>http://feeds.feedburner.com/mythemeshop</strong>' ),
				'validate' => 'url'
			),
			array(
				'id' => 'mts_header_code',
				'type' => 'textarea',
				'title' => __('Header Code', 'socialnow' ),
				'sub_desc' => wp_kses( __('Enter the code which you need to place <strong>before closing &lt;/head&gt; tag</strong>. (ex: Google Webmaster Tools verification, Bing Webmaster Center, BuySellAds Script, Alexa verification etc.)', 'socialnow' ), array( 'strong' => '' ) )
			),
			array(
				'id' => 'mts_analytics_code',
				'type' => 'textarea',
				'title' => __('Footer Code', 'socialnow' ),
				'sub_desc' => wp_kses( __('Enter the codes which you need to place in your footer. <strong>(ex: Google Analytics, Clicky, STATCOUNTER, Woopra, Histats, etc.)</strong>.', 'socialnow' ), array( 'strong' => '' ) )
			),
			array(
				'id' => 'mts_pagenavigation_type',
				'type' => 'radio',
				'title' => __('Pagination Type', 'socialnow' ),
				'sub_desc' => __('Select pagination type.', 'socialnow' ),
				'options' => array(
					'0'=> __('Next / Previous', 'socialnow' ),
					'1' => __('Default Numbered (1 2 3 4...)', 'socialnow' ),
					'2' => __( 'AJAX (Load More Button)', 'socialnow' ),
					'3' => __( 'AJAX (Auto Infinite Scroll)', 'socialnow' ) 
				),
				'std' => '1'
			),
			array(
				'id' => 'mts_ajax_search',
				'type' => 'button_set',
				'title' => __('AJAX Quick search', 'socialnow' ),
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => __('Enable or disable search results appearing instantly below the search form', 'socialnow' ),
				'std' => '0'
			),
			array(
				'id' => 'mts_responsive',
				'type' => 'button_set',
				'title' => __('Responsiveness', 'socialnow' ),
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => __('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.', 'socialnow' ),
				'std' => '1'
			),
			array(
				'id' => 'mts_rtl',
				'type' => 'button_set',
				'title' => __('Right To Left Language Support', 'socialnow' ),
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => __('Enable this option for right-to-left sites.', 'socialnow' ),
				'std' => '0'
			),
			array(
				'id' => 'mts_shop_products',
				'type' => 'text',
				'title' => __('No. of Products', 'socialnow' ),
				'sub_desc' => __('Enter the total number of products which you want to show on shop page (WooCommerce plugin must be enabled).', 'socialnow' ),
				'validate' => 'numeric',
				'std' => '9',
				'class' => 'small-text'
			),
		)
	);
	$sections[] = array(
		'icon' => 'fa fa-bolt',
		'title' => __('Performance', 'socialnow' ),
		'desc' => '<p class="description">' . __('This tab contains performance-related options which can help speed up your website.', 'socialnow' ) . '</p>',
		'fields' => array(
			array(
				'id' => 'mts_prefetching',
				'type' => 'button_set',
				'title' => __('Prefetching', 'socialnow' ),
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => __('Enable or disable prefetching. If user is on homepage, then single page will load faster and if user is on single page, homepage will load faster in modern browsers.', 'socialnow' ),
				'std' => '0'
			),
			array(
				'id' => 'mts_lazy_load',
				'type' => 'button_set_hide_below',
				'title' => __('Lazy Load', 'socialnow' ),
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => __('Delay loading of images outside of viewport, until user scrolls to them.', 'socialnow' ),
				'std' => '0',
				'args' => array('hide' => 2)
				),
				array(
					'id' => 'mts_lazy_load_thumbs',
					'type' => 'button_set',
					'title' => __('Lazy load featured images', 'socialnow' ),
					'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
					'sub_desc' => __('Enable or disable Lazy load of featured images across site.', 'socialnow' ),
					'std' => '0'
				),
				array(
					'id' => 'mts_lazy_load_content',
					'type' => 'button_set',
					'title' => __('Lazy load post content images', 'socialnow' ),
					'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
					'sub_desc' => __('Enable or disable Lazy load of images inside post/page content.', 'socialnow' ),
					'std' => '0'
			),
			array(
				'id' => 'mts_async_js',
				'type' => 'button_set',
				'title' => __('Async JavaScript', 'socialnow' ),
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => sprintf( __('Add %s attribute to script tags to improve page download speed.', 'socialnow' ), '<code>async</code>' ),
				'std' => '1',
			),
			array(
				'id' => 'mts_remove_ver_params',
				'type' => 'button_set',
				'title' => __('Remove ver parameters', 'socialnow' ),
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => sprintf( __('Remove %s parameter from CSS and JS file calls. It may improve speed in some browsers which do not cache files having the parameter.', 'socialnow' ), '<code>ver</code>' ),
				'std' => '1',
			),
			array(
				'id' => 'mts_optimize_wc',
				'type' => 'button_set',
				'title' => __('Optimize WooCommerce scripts', 'socialnow' ),
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => __('Load WooCommerce scripts and styles only on WooCommerce pages (WooCommerce plugin must be enabled).', 'socialnow' ),
				'std' => '1'
			),
			'cache_message' => array(
				'id' => 'mts_cache_message',
				'type' => 'info',
				'title' => __('Use Cache', 'socialnow' ),
				// Translators: %1$s = popup link to W3 Total Cache, %2$s = popup link to WP Super Cache
				'desc' => sprintf(
					__('A cache plugin can increase page download speed dramatically. We recommend using %1$s or %2$s.', 'socialnow' ),
					'<a href="https://community.mythemeshop.com/tutorials/article/8-make-your-website-load-faster-using-w3-total-cache-plugin/" target="_blank" title="W3 Total Cache">W3 Total Cache</a>',
					'<a href="'.admin_url( 'plugin-install.php?tab=plugin-information&plugin=wp-super-cache&TB_iframe=true&width=772&height=574' ).'" class="thickbox" title="WP Super Cache">WP Super Cache</a>'
				),
			),
		)
	);

	// Hide cache message on multisite or if a chache plugin is active already
	if ( is_multisite() || strstr( join( ';', get_option( 'active_plugins' ) ), 'cache' ) ) {
		unset( $sections[1]['fields']['cache_message'] );
	}

	$sections[] = array(
		'icon' => 'fa fa-adjust',
		'title' => __('Styling Options', 'socialnow' ),
		'desc' => '<p class="description">' . __('Control the visual appearance of your theme, such as colors, layout and patterns, from here.', 'socialnow' ) . '</p>',
		'fields' => array(
			array(
				'id' => 'mts_color_scheme',
				'type' => 'color',
				'title' => __('Primary Color Scheme', 'socialnow' ),
				'sub_desc' => __('The theme comes with unlimited color schemes for your theme\'s styling.', 'socialnow' ),
				'std' => '#ff5722'
			),
			array(
				'id' => 'mts_color_scheme2',
				'type' => 'color',
				'title' => __('Secondary Color Scheme', 'socialnow' ),
				'sub_desc' => __('The theme comes with unlimited color schemes for your theme\'s styling.', 'socialnow' ),
				'std' => '#34495e'
			),
			array(
				'id' => 'mts_layout',
				'type' => 'radio_img',
				'title' => __('Layout Style', 'socialnow' ),
				'sub_desc' => wp_kses( __('Choose the <strong>default sidebar position</strong> for your site. The position of the sidebar for individual posts can be set in the post editor.', 'socialnow' ), array( 'strong' => '' ) ),
				'options' => array(
					'cslayout' => array('img' => NHP_OPTIONS_URL.'img/layouts/cs.png'),
					'sclayout' => array('img' => NHP_OPTIONS_URL.'img/layouts/sc.png')
				),
				'std' => 'cslayout'
			),
			array(
				'id' => 'mts_background',
				'type' => 'background',
				'title' => __('Site Background', 'socialnow' ),
				'sub_desc' => __('Set background color, pattern and image from here.', 'socialnow' ),
				'options' => array(
					'color'		 => '',
					'image_pattern' => $mts_patterns,
					'image_upload'  => '',
					'repeat'		=> array(),
					'attachment'	=> array(),
					'position'	=> array(),
					'size'		=> array(),
					'gradient'	=> '',
					'parallax'	=> array(),
				),
				'std' => array(
					'color'		 => '#ffffff',
					'use'		 => 'pattern',
					'image_pattern' => 'nobg',
					'image_upload'  => '',
					'repeat'		=> 'repeat',
					'attachment'	=> 'scroll',
					'position'	=> 'left top',
					'size'		=> 'cover',
					'gradient'	=> array('from' => '#ffffff', 'to' => '#000000', 'direction' => 'horizontal' ),
					'parallax'	=> '0',
				)
			),
			array(
				'id' => 'mts_custom_css',
				'type' => 'textarea',
				'title' => __('Custom CSS', 'socialnow' ),
				'sub_desc' => __('You can enter custom CSS code here to further customize your theme. This will override the default CSS used on your site.', 'socialnow' )
			),
			array(
				'id' => 'mts_lightbox',
				'type' => 'button_set',
				'title' => __('Lightbox', 'socialnow' ),
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => __('A lightbox is a stylized pop-up that allows your visitors to view larger versions of images without leaving the current page. You can enable or disable the lightbox here.', 'socialnow' ),
				'std' => '0'
			),
		)
	);
	$sections[] = array(
		'icon' => 'fa fa-credit-card',
		'title' => __('Header', 'socialnow' ),
		'desc' => '<p class="description">' . __('From here, you can control the elements of header section.', 'socialnow' ) . '</p>',
		'fields' => array(
			array(
				'id' => 'mts_sticky_nav',
				'type' => 'button_set',
				'title' => __('Floating Navigation Menu', 'socialnow' ),
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => sprintf( __('Use this button to enable %s.', 'socialnow' ), '<strong>' . __('Floating Navigation Menu', 'socialnow' ) . '</strong>' ),
				'std' => '0'
			),
			array(
				'id' => 'mts_social_icon_head',
				'type' => 'button_set_hide_below',
				'title' => __('Social Icons','socialnow'),
				'sub_desc' => __('You can enable/disable social icon', 'socialnow' ),
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'std' => '1',
				'args' => array('hide' => '1')
			),
			array(
			 	'id' => 'mts_header_social',
			 	'title' => __('Add Social Icons','socialnow'), 
			 	'sub_desc' => __( 'Add Social Media icons in header.', 'socialnow' ),
			 	'type' => 'group',
			 	'groupname' => __('Header Icons','socialnow'), // Group name
			 	'subfields' => array(
					array(
						'id' => 'mts_header_icon_title',
						'type' => 'text',
						'title' => __('Title', 'socialnow'), 
					),
					array(
						'id' => 'mts_header_icon',
						'type' => 'icon_select',
						'title' => __('Icon', 'socialnow')
					),
					array(
						'id' => 'mts_header_icon_link',
						'type' => 'text',
						'title' => __('URL', 'socialnow'), 
					),
					array(
						'id' => 'mts_header_icon_bg',
						'type' => 'color',
						'title' => __('Background', 'socialnow'),
						'std' => '#d1d1d1'
					),
				),
				'std' => array(
					'facebook' => array(
						'group_title' => 'Facebook',
						'group_sort' => '1',
						'mts_header_icon_title' => 'Facebook',
						'mts_header_icon' => 'facebook',
						'mts_header_icon_link' => '#',
						'mts_header_icon_bg' => '#d1d1d1'
					),
					'twitter' => array(
						'group_title' => 'Twitter',
						'group_sort' => '2',
						'mts_header_icon_title' => 'Twitter',
						'mts_header_icon' => 'twitter',
						'mts_header_icon_link' => '#',
						'mts_header_icon_bg' => '#d1d1d1'
					),
					'gplus' => array(
						'group_title' => 'Google Plus',
						'group_sort' => '3',
						'mts_header_icon_title' => 'Google Plus',
						'mts_header_icon' => 'google-plus',
						'mts_header_icon_link' => '#',
						'mts_header_icon_bg' => '#d1d1d1'
					)
				)
			),
			array(
				'id' => 'mts_show_primary_nav',
				'type' => 'button_set',
				'title' => __('Show Top Menu', 'socialnow' ),
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => sprintf( __('Use this button to enable %s.', 'socialnow' ), '<strong>' . __( 'Top Navigation Menu', 'socialnow' ) . '</strong>' ),
				'std' => '1'
			),
			array(
				'id' => 'mts_header_section2',
				'type' => 'button_set',
				'title' => __('Show Logo', 'socialnow' ),
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => wp_kses( __('Use this button to Show or Hide the <strong>Logo</strong> completely.', 'socialnow' ), array( 'strong' => '' ) ),
				'std' => '1'
			),
			array(
				'id' => 'mts_show_secondary_nav',
				'type' => 'button_set',
				'title' => __('Show Main Menu', 'socialnow' ),
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => sprintf( __('Use this button to enable %s.', 'socialnow' ), '<strong>' . __( 'Main Navigation Menu', 'socialnow' ) . '</strong>' ),
				'std' => '1'
			),
			array(
				'id' => 'mts_header_search',
				'type' => 'button_set',
				'title' => __('Show Header Search', 'socialnow' ), 
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => __('Use this button to enable Header Search.', 'socialnow' ),
				'std' => '1'
			),
			array(
				'id' => 'mts_upper_navigation_background',
				'type' => 'background',
				'title' => __('Upper Navigation Background', 'socialnow' ),
				'sub_desc' => __('Set Upper Navigation background color, pattern and image from here.', 'socialnow' ),
				'options' => array(
					'color'		 => '',
					'image_pattern' => $mts_patterns,
					'image_upload'  => '',
					'repeat'		=> array(),
					'attachment'	=> array(),
					'position'	=> array(),
					'size'		=> array(),
					'gradient'	=> '',
					'parallax'	=> array(),
				),
				'std' => array(
					'color'		 => '#f5f5f5',
					'use'		 => 'pattern',
					'image_pattern' => 'nobg',
					'image_upload'  => '',
					'repeat'		=> 'repeat',
					'attachment'	=> 'scroll',
					'position'	=> 'left top',
					'size'		=> 'cover',
					'gradient'	=> array('from' => '#ffffff', 'to' => '#000000', 'direction' => 'horizontal' ),
					'parallax'	=> '0',
				)
			),
			array(
				'id' => 'mts_header_background',
				'type' => 'background',
				'title' => __('Header Background', 'socialnow' ),
				'sub_desc' => __('Set header background color, pattern and image from here.', 'socialnow' ),
				'options' => array(
					'color'		 => '',
					'image_pattern' => $mts_patterns,
					'image_upload'  => '',
					'repeat'		=> array(),
					'attachment'	=> array(),
					'position'	=> array(),
					'size'		=> array(),
					'gradient'	=> '',
					'parallax'	=> array(),
				),
				'std' => array(
					'color'		 => '#ffffff',
					'use'		 => 'pattern',
					'image_pattern' => 'nobg',
					'image_upload'  => '',
					'repeat'		=> 'repeat',
					'attachment'	=> 'scroll',
					'position'	=> 'left top',
					'size'		=> 'cover',
					'gradient'	=> array('from' => '#ffffff', 'to' => '#000000', 'direction' => 'horizontal' ),
					'parallax'	=> '0',
				)
			),
		)
	);
	$sections[] = array(
		'icon' => 'fa fa-table',
		'title' => __('Footer', 'socialnow' ),
		'desc' => '<p class="description">' . __('From here, you can control the elements of Footer section.', 'socialnow' ) . '</p>',
		'fields' => array(
			array(
				'id' => 'mts_footer_background',
				'type' => 'background',
				'title' => __('Footer Background', 'socialnow' ),
				'sub_desc' => __('Set footer background color, pattern and image from here.', 'socialnow' ),
				'options' => array(
					'color'		 => '',
					'image_pattern' => $mts_patterns,
					'image_upload'  => '',
					'repeat'		=> array(),
					'attachment'	=> array(),
					'position'	=> array(),
					'size'		=> array(),
					'gradient'	=> '',
					'parallax'	=> array(),
				),
				'std' => array(
					'color'		 => '#f5f5f5',
					'use'		 => 'pattern',
					'image_pattern' => 'nobg',
					'image_upload'  => '',
					'repeat'		=> 'repeat',
					'attachment'	=> 'scroll',
					'position'	=> 'left top',
					'size'		=> 'cover',
					'gradient'	=> array('from' => '#ffffff', 'to' => '#000000', 'direction' => 'horizontal' ),
					'parallax'	=> '0',
				)
			),
			array(
				'id' => 'mts_first_footer',
				'type' => 'button_set_hide_below',
				'title' => __('Footer Widgets', 'socialnow' ),
				'sub_desc' => __('Enable or disable footer widgets with this option.', 'socialnow' ),
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'std' => '0'
			),
			array(
				'id' => 'mts_first_footer_num',
				'type' => 'button_set',
				'class' => 'green',
				'title' => __('Footer Layout', 'socialnow' ),
				'sub_desc' => wp_kses( __('Choose the number of widget areas in the <strong>footer</strong>', 'socialnow' ), array( 'strong' => '' ) ),
				'options' => array(
					'3' => __( '3 Widgets', 'socialnow' ),
					'4' => __( '4 Widgets', 'socialnow' ),
				),
				'std' => '4'
			),
			array(
				'id' => 'mts_copyrights_background',
				'type' => 'background',
				'title' => __('Copyrights Background', 'socialnow' ),
				'sub_desc' => __('Set Copyrights background color, pattern and image from here.', 'socialnow' ),
				'options' => array(
					'color'		 => '',
					'image_pattern' => $mts_patterns,
					'image_upload'  => '',
					'repeat'		=> array(),
					'attachment'	=> array(),
					'position'	=> array(),
					'size'		=> array(),
					'gradient'	=> '',
					'parallax'	=> array(),
				),
				'std' => array(
					'color'		 => '#ffffff',
					'use'		 => 'pattern',
					'image_pattern' => 'nobg',
					'image_upload'  => '',
					'repeat'		=> 'repeat',
					'attachment'	=> 'scroll',
					'position'	=> 'left top',
					'size'		=> 'cover',
					'gradient'	=> array('from' => '#ffffff', 'to' => '#000000', 'direction' => 'horizontal' ),
					'parallax'	=> '0',
				)
			),
			array(
				'id' => 'mts_copyrights',
				'type' => 'textarea',
				'title' => __('Copyrights Text', 'socialnow' ),
				'sub_desc' => __( 'You can change or remove our link from footer and use your own custom text.', 'socialnow' ) . ( MTS_THEME_WHITE_LABEL ? '' : wp_kses( __('(You can also use your affiliate link to <strong>earn 70% of sales</strong>. Ex: <a href="https://mythemeshop.com/go/aff/aff" target="_blank">https://mythemeshop.com/?ref=username</a>)', 'socialnow' ), array( 'strong' => '', 'a' => array( 'href' => array(), 'target' => array() ) ) ) ),
				'std' => MTS_THEME_WHITE_LABEL ? null : sprintf( __( 'Theme by %s', 'socialnow' ), '<a href="http://mythemeshop.com/" rel="nofollow">MyThemeShop</a>' )
			),
		)
	);
	$sections[] = array(
		'icon' => 'fa fa-home',
		'title' => __('Homepage', 'socialnow' ),
		'desc' => '<p class="description">' . __('From here, you can control the elements of the homepage.', 'socialnow' ) . '</p>',
		'fields' => array(
			array(
				'id' => 'mts_full_featured_slider',
				'type' => 'button_set_hide_below',
				'title' => __('Full Width Slider', 'socialnow' ), 
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => __('Enable or Disable Homepage Full Width Slider with this button. The slider will show recent articles from the selected categories.', 'socialnow' ),
				'std' => '0',
				'args' => array('hide' => 3)
				),
			array(
				'id' => 'mts_full_slider_nav_option',
				'type' => 'button_set',
				'title' => __('Full Slider Navigation Type', 'socialnow' ), 
				'options' => array('text_navigation' => __('Text Navigation', 'socialnow' ), 'image_navigation' => __('Image Navigation', 'socialnow' )),
				'sub_desc' => __('Choose Image navigation or text navigation for Full Width Slider', 'socialnow' ),
				'std' => 'text_navigation',
				'class' => 'green'
			),
			array(
				'id' => 'mts_full_featured_slider_cat',
				'type' => 'cats_multi_select',
				'title' => __('Full Width Slider Category(s)', 'socialnow' ), 
				'sub_desc' => __('Select a category from the drop-down menu, latest articles from this category will be shown in the Full Width Slider.', 'socialnow' ),
			),
			array(
				'id' => 'mts_full_featured_slider_num',
				'type' => 'text',
				'class' => 'small-text',
				'title' => __('Full Width Slider No. of posts', 'socialnow' ), 
				'sub_desc' => __('Enter the number of posts to show in the Full Width Slider', 'socialnow' ),
				'std' => '4',
				'args' => array('type' => 'number')
			),	
			array(
				'id' => 'mts_featured_slider',
				'type' => 'button_set_hide_below',
				'title' => __('Small Slider', 'socialnow' ), 
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => __('Enable or Disable Homepage Small Slider with this button. The slider will show recent articles from the selected categories.', 'socialnow' ),
				'std' => '0',
				'args' => array('hide' => 4)
			),
			array(
				'id' => 'mts_featured_slider_cat',
				'type' => 'cats_multi_select',
				'title' => __('Small Slider Category(s)', 'socialnow' ), 
				'sub_desc' => __('Select a category from the drop-down menu, latest articles from this category will be shown in the Small Slider.', 'socialnow' ),
			),
			array(
				'id' => 'mts_featured_slider_num',
				'type' => 'text',
				'class' => 'small-text',
				'title' => __('Small Slider No. of Posts', 'socialnow' ), 
				'sub_desc' => __('Enter the number of posts to show in the Small Slider', 'socialnow' ),
				'std' => '3',
				'args' => array('type' => 'number')
			),	
			array(
				'id' => 'mts_custom_slider',
				'type' => 'group',
				'title' => __('Small Custom Slider', 'socialnow' ),
				'sub_desc' => __('With this option you can set up a slider with custom image and text instead of the default slider automatically generated from your posts.', 'socialnow' ),
				'groupname' => __('Slide', 'socialnow' ), // Group name
				'subfields' => 
				array(
					array(
						'id' => 'mts_custom_slider_title',
						'type' => 'text',
						'title' => __('Title', 'socialnow' ),
						'sub_desc' => __('Title of the slide', 'socialnow' ),
					),
					array(
						'id' => 'mts_custom_slider_image',
						'type' => 'upload',
						'title' => __('Image', 'socialnow' ),
						'sub_desc' => __('Upload or select an image for this slide', 'socialnow' ),
						'return' => 'id'
					),	
					array('id' => 'mts_custom_slider_link',
						'type' => 'text',
						'title' => __('Link', 'socialnow' ),
						'sub_desc' => __('Insert a link URL for the slide', 'socialnow' ),
						'std' => '#'
					),
				),
			),
			array(
				'id' => 'mts_featured_slider_position',
				'type' => 'button_set',
				'title' => __('Small Slider Position', 'socialnow' ), 
				'options' => array('above-posts' => __('Above Posts', 'socialnow' ), 'below-posts' => __('Below Posts', 'socialnow' )),
				'sub_desc' => __('You can show slider either at top of the posts or below the posts', 'socialnow' ),
				'std' => 'above-posts',
				'class' => 'green'
			),
			array(
				'id' => 'mts_grid4_posts',
				'type' => 'button_set_hide_below',
				'title' => __('Featured Grid', 'socialnow'), 
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => __('This option will Show 4 posts from selected category(s) in grid layout just after Small slider section.', 'socialnow'),
				'std' => '0'
			),
			array(
				'id' => 'mts_grid4_category',
				'type' => 'cats_multi_select',
				'title' => __('Featured Grid Category(s)', 'socialnow'), 
				'sub_desc' => __('Select category(s) for Featured Grid section.', 'socialnow'),
			),
			array(
				'id' => 'mts_featured_categories',
				'type' => 'group',
				'title'	 => __('Post Listing', 'socialnow' ),
				'sub_desc'  => __('Show latest posts along with multiple featured categories.', 'socialnow' ),
				'groupname' => __('Section', 'socialnow' ), // Group name
				'subfields' => 
					array(
						array(
							'id' => 'mts_featured_category',
							'type' => 'cats_select',
							'title' => __('Category', 'socialnow' ),
							'sub_desc' => __('Select a category or the latest posts for this section', 'socialnow' ),
							'std' => 'latest',
							'args' => array('include_latest' => 1, 'hide_empty' => 0),
						),
						array(
							'id' => 'mts_featured_category_postsnum',
							'type' => 'text',
							'class' => 'small-text',
							'title' => __('Number of posts', 'socialnow' ),
							'sub_desc' => __('Enter the number of posts to show in this section.', 'socialnow' ),
							'std' => '9',
							'args' => array('type' => 'number')
						),
				),
				'std' => array(
					'1' => array(
						'group_title' => '',
						'group_sort' => '1',
						'mts_featured_category' => 'latest',
						'mts_featured_category_postsnum' => get_option('posts_per_page')
					)
				)
			),
			array(
				'id'	 => 'mts_home_headline_meta_info',
				'type'	 => 'layout',
				'title'	=> __('HomePage Post Meta Info', 'socialnow' ),
				'sub_desc' => __('Organize how you want the post meta info to appear on the homepage', 'socialnow' ),
				'options'  => array(
					'enabled'  => array(
						'author'   => __('Author Name', 'socialnow' )
					),
					'disabled' => array(
						'date'	 => __('Date', 'socialnow' ),
						'category' => __('Categories', 'socialnow' ),
						'comment'  => __('Comment Count', 'socialnow' )
					)
				),
				'std'  => array(
					'enabled'  => array(
						'author'   => __('Author Name', 'socialnow' ),
					),
					'disabled' => array(
						'date'	 => __('Date', 'socialnow' ),
						'category' => __('Categories', 'socialnow' ),
						'comment'  => __('Comment Count', 'socialnow' )
					)
				)
			),
		)
	);
	$sections[] = array(
		'icon' => 'fa fa-file-text',
		'title' => __('Single Posts', 'socialnow' ),
		'desc' => '<p class="description">' . __('From here, you can control the appearance and functionality of your single posts page.', 'socialnow' ) . '</p>',
		'fields' => array(
			array(
				'id'	 => 'mts_single_post_layout',
				'type'	 => 'layout2',
				'title'	=> __('Single Post Layout', 'socialnow' ),
				'sub_desc' => __('Customize the look of single posts', 'socialnow' ),
				'options'  => array(
					'enabled'  => array(
						'content'   => array(
							'label' 	=> __('Post Content', 'socialnow' ),
							'subfields'	=> array()
						),
						'author'   => array(
							'label' 	=> __('Author Box', 'socialnow' ),
							'subfields'	=> array()
						),
						'related'   => array(
							'label' 	=> __('Related Posts', 'socialnow' ),
							'subfields'	=> array(
								array(
									'id' => 'mts_related_posts_taxonomy',
									'type' => 'button_set',
									'title' => __('Related Posts Taxonomy', 'socialnow' ) ,
									'options' => array(
										'tags' => __( 'Tags', 'socialnow' ),
										'categories' => __( 'Categories', 'socialnow' )
									) ,
									'class' => 'green',
									'sub_desc' => __('Related Posts based on tags or categories.', 'socialnow' ) ,
									'std' => 'categories'
								),
								array(
									'id' => 'mts_related_postsnum',
									'type' => 'text',
									'class' => 'small-text',
									'title' => __('Number of related posts', 'socialnow' ) ,
									'sub_desc' => __('Enter the number of posts to show in the related posts section.', 'socialnow' ) ,
									'std' => '3',
									'args' => array(
										'type' => 'number'
									)
								),

							)
						),
					),
					'disabled' => array(
						'tags'   => array(
							'label' 	=> __('Tags', 'socialnow' ),
							'subfields'	=> array()
						),
					)
				)
			),
			array(
				'id' => 'mts_cat_button',
				'type' => 'button_set',
				'title' => __('Show Categories in Single Post', 'socialnow' ),
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => __('Use this button to show categories in the single post.', 'socialnow' ),
				'std' => '1'
			),
			array(
				'id'	 => 'mts_single_headline_meta_info',
				'type'	 => 'layout',
				'title'	=> __('Meta Info to Show', 'socialnow' ),
				'sub_desc' => __('Organize how you want the post meta info to appear', 'socialnow' ),
				'options'  => array(
					'enabled'  => array(
						'author' => __('Author Name', 'socialnow' ),
						'date' => __('Date', 'socialnow' )
					),
					'disabled' => array(
						'comment'  => __('Comment Count', 'socialnow' )
					)
				),
				'std'  => array(
					'enabled'  => array(
						'author'   => __('Author Name', 'socialnow' ),
						'date' => __('Date', 'socialnow' )
					),
					'disabled' => array(
						'comment'  => __('Comment Count', 'socialnow' )
					)
				)
			),
			array(
				'id' => 'mts_breadcrumb',
				'type' => 'button_set',
				'title' => __('Breadcrumbs', 'socialnow' ),
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => __('Breadcrumbs are a great way to make your site more user-friendly. You can enable them by checking this box.', 'socialnow' ),
				'std' => '0'
			),
			array(
				'id' => 'mts_like_dislike',
				'type' => 'button_set',
				'title' => __('Comments Like/Dislike', 'socialnow'), 
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => __('Use this button to enable Like &amp; Dislike features for comments post.', 'socialnow'),
				'std' => '1'
			),
			array(
				'id' => 'mts_author_comment',
				'type' => 'button_set',
				'title' => __('Highlight Author Comment', 'socialnow' ),
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => __('Use this button to highlight author comments.', 'socialnow' ),
				'std' => '1'
			),
			array(
				'id' => 'mts_comment_date',
				'type' => 'button_set',
				'title' => __('Date in Comments', 'socialnow' ),
				'options' => array( '0' => __( 'Off', 'socialnow' ), '1' => __( 'On', 'socialnow' ) ),
				'sub_desc' => __('Use this button to show the date for comments.', 'socialnow' ),
				'std' => '1'
			),
		)
	);
	$sections[] = array(
		'icon' => 'fa fa-group',
		'title' => __('Social Buttons', 'socialnow' ),
		'desc' => '<p class="description">' . __('Enable or disable social sharing buttons on single posts using these buttons.', 'socialnow' ) . '</p>',
		'fields' => array(
			array(
				'id' => 'mts_social_button_position',
				'type' => 'button_set',
				'title' => __('Social Sharing Buttons Position', 'socialnow' ),
				'options' => array('top' => __('Above Content', 'socialnow' ), 'bottom' => __('Below Content', 'socialnow' ), 'floating' => __('Floating', 'socialnow' )),
				'sub_desc' => __('Choose position for Social Sharing Buttons. NOTE: Floating will work only if screen is larger than 1360px wide.', 'socialnow' ),
				'std' => 'floating',
				'class' => 'green'
			),
			array(
				'id' => 'mts_social_buttons_on_pages',
				'type' => 'button_set',
				'title' => __('Social Sharing Buttons on Pages', 'socialnow' ),
				'options' => array('0' => __('Off', 'socialnow' ), '1' => __('On', 'socialnow' )),
				'sub_desc' => __('Enable the sharing buttons for pages too, not just posts.', 'socialnow' ),
				'std' => '0',
			),
			array(
				'id'   => 'mts_social_buttons',
				'type' => 'layout',
				'title'	=> __('Social Media Buttons', 'socialnow' ),
				'sub_desc' => __('Organize how you want the social sharing buttons to appear on single posts', 'socialnow' ),
				'options'  => array(
					'enabled'  => array(
						'facebookshare'   => __('Facebook Share', 'socialnow' ),
						'facebook'  => __('Facebook Like', 'socialnow' ),
						'twitter'   => __('Twitter', 'socialnow' ),
						'gplus' => __('Google Plus', 'socialnow' ),
						'pinterest' => __('Pinterest', 'socialnow' ),
					),
					'disabled' => array(
						'linkedin'  => __('LinkedIn', 'socialnow' ),
						'stumble'   => __('StumbleUpon', 'socialnow' ),
					)
				),
				'std'  => array(
					'enabled'  => array(
						'facebookshare'   => __('Facebook Share', 'socialnow' ),
						'facebook'  => __('Facebook Like', 'socialnow' ),
						'twitter'   => __('Twitter', 'socialnow' ),
						'gplus' => __('Google Plus', 'socialnow' ),
						'pinterest' => __('Pinterest', 'socialnow' ),
					),
					'disabled' => array(
						'linkedin'  => __('LinkedIn', 'socialnow' ),
						'stumble'   => __('StumbleUpon', 'socialnow' ),
					)
				)
			),
		)
	);
	$sections[] = array(
		'icon' => 'fa fa-bar-chart-o',
		'title' => __('Ad Management', 'socialnow' ),
		'desc' => '<p class="description">' . __('Now, ad management is easy with our options panel. You can control everything from here, without using separate plugins.', 'socialnow' ) . '</p>',
		'fields' => array(
			array(
				'id' => 'mts_posttop_adcode',
				'type' => 'textarea',
				'title' => __('Below Post Title', 'socialnow' ),
				'sub_desc' => __('Paste your Adsense, BSA or other ad code here to show ads below your article title on single posts.', 'socialnow' )
			),
			array(
				'id' => 'mts_posttop_adcode_time',
				'type' => 'text',
				'title' => __('Show After X Days', 'socialnow' ),
				'sub_desc' => __('Enter the number of days after which you want to show the Below Post Title Ad. Enter 0 to disable this feature.', 'socialnow' ),
				'validate' => 'numeric',
				'std' => '0',
				'class' => 'small-text',
				'args' => array('type' => 'number')
			),
			array(
				'id' => 'mts_postend_adcode',
				'type' => 'textarea',
				'title' => __('Below Post Content', 'socialnow' ),
				'sub_desc' => __('Paste your Adsense, BSA or other ad code here to show ads below the post content on single posts.', 'socialnow' )
			),
			array(
				'id' => 'mts_postend_adcode_time',
				'type' => 'text',
				'title' => __('Show After X Days', 'socialnow' ),
				'sub_desc' => __('Enter the number of days after which you want to show the Below Post Title Ad. Enter 0 to disable this feature.', 'socialnow' ),
				'validate' => 'numeric',
				'std' => '0',
				'class' => 'small-text',
				'args' => array('type' => 'number')
			),
		)
	);
	$sections[] = array(
		'icon' => 'fa fa-columns',
		'title' => __('Sidebars', 'socialnow' ),
		'desc' => '<p class="description">' . __('Now you have full control over the sidebars. Here you can manage sidebars and select one for each section of your site, or select a custom sidebar on a per-post basis in the post editor.', 'socialnow' ) . '<br></p>',
		'fields' => array(
			array(
				'id' => 'mts_custom_sidebars',
				'type'  => 'group', //doesn't need to be called for callback fields
				'title' => __('Custom Sidebars', 'socialnow' ),
				'sub_desc'  => wp_kses( __('Add custom sidebars. <strong style="font-weight: 800;">You need to save the changes to use the sidebars in the dropdowns below.</strong><br />You can add content to the sidebars in Appearance &gt; Widgets.', 'socialnow' ), array( 'strong' => '', 'br' => '' ) ),
				'groupname' => __('Sidebar', 'socialnow' ), // Group name
				'subfields' => 
					array(
						array(
							'id' => 'mts_custom_sidebar_name',
							'type' => 'text',
							'title' => __('Name', 'socialnow' ),
							'sub_desc' => __('Example: Homepage Sidebar', 'socialnow' )
						),	
						array(
							'id' => 'mts_custom_sidebar_id',
							'type' => 'text',
							'title' => __('ID', 'socialnow' ),
							'sub_desc' => __('Enter a unique ID for the sidebar. Use only alphanumeric characters, underscores (_) and dashes (-), eg. "sidebar-home"', 'socialnow' ),
							'std' => 'sidebar-'
						),
					),
			),
			array(
				'id' => 'mts_sidebar_for_home',
				'type' => 'sidebars_select',
				'title' => __('Homepage', 'socialnow' ),
				'sub_desc' => __('Select a sidebar for the homepage.', 'socialnow' ),
				'args' => array('allow_nosidebar' => false, 'exclude' => array('sidebar', 'footer-first', 'footer-first-2', 'footer-first-3', 'footer-first-4', 'footer-second', 'footer-second-2', 'footer-second-3', 'footer-second-4', 'widget-header','shop-sidebar', 'product-sidebar')),
				'std' => ''
			),
			array(
				'id' => 'mts_sidebar_for_post',
				'type' => 'sidebars_select',
				'title' => __('Single Post', 'socialnow' ),
				'sub_desc' => __('Select a sidebar for the single posts. If a post has a custom sidebar set, it will override this.', 'socialnow' ),
				'args' => array('exclude' => array('sidebar', 'footer-first', 'footer-first-2', 'footer-first-3', 'footer-first-4', 'footer-second', 'footer-second-2', 'footer-second-3', 'footer-second-4', 'widget-header','shop-sidebar', 'product-sidebar')),
				'std' => ''
			),
			array(
				'id' => 'mts_sidebar_for_page',
				'type' => 'sidebars_select',
				'title' => __('Single Page', 'socialnow' ),
				'sub_desc' => __('Select a sidebar for the single pages. If a page has a custom sidebar set, it will override this.', 'socialnow' ),
				'args' => array('exclude' => array('sidebar', 'footer-first', 'footer-first-2', 'footer-first-3', 'footer-first-4', 'footer-second', 'footer-second-2', 'footer-second-3', 'footer-second-4', 'widget-header','shop-sidebar', 'product-sidebar')),
				'std' => ''
			),
			array(
				'id' => 'mts_sidebar_for_archive',
				'type' => 'sidebars_select',
				'title' => __('Archive', 'socialnow' ),
				'sub_desc' => __('Select a sidebar for the archives. Specific archive sidebars will override this setting (see below).', 'socialnow' ),
				'args' => array('allow_nosidebar' => false, 'exclude' => array('sidebar', 'footer-first', 'footer-first-2', 'footer-first-3', 'footer-first-4', 'footer-second', 'footer-second-2', 'footer-second-3', 'footer-second-4', 'widget-header','shop-sidebar', 'product-sidebar')),
				'std' => ''
			),
			array(
				'id' => 'mts_sidebar_for_category',
				'type' => 'sidebars_select',
				'title' => __('Category Archive', 'socialnow' ),
				'sub_desc' => __('Select a sidebar for the category archives.', 'socialnow' ),
				'args' => array('allow_nosidebar' => false, 'exclude' => array('sidebar', 'footer-first', 'footer-first-2', 'footer-first-3', 'footer-first-4', 'footer-second', 'footer-second-2', 'footer-second-3', 'footer-second-4', 'widget-header','shop-sidebar', 'product-sidebar')),
				'std' => ''
			),
			array(
				'id' => 'mts_sidebar_for_tag',
				'type' => 'sidebars_select',
				'title' => __('Tag Archive', 'socialnow' ),
				'sub_desc' => __('Select a sidebar for the tag archives.', 'socialnow' ),
				'args' => array('allow_nosidebar' => false, 'exclude' => array('sidebar', 'footer-first', 'footer-first-2', 'footer-first-3', 'footer-first-4', 'footer-second', 'footer-second-2', 'footer-second-3', 'footer-second-4', 'widget-header','shop-sidebar', 'product-sidebar')),
				'std' => ''
			),
			array(
				'id' => 'mts_sidebar_for_date',
				'type' => 'sidebars_select',
				'title' => __('Date Archive', 'socialnow' ),
				'sub_desc' => __('Select a sidebar for the date archives.', 'socialnow' ),
				'args' => array('allow_nosidebar' => false, 'exclude' => array('sidebar', 'footer-first', 'footer-first-2', 'footer-first-3', 'footer-first-4', 'footer-second', 'footer-second-2', 'footer-second-3', 'footer-second-4', 'widget-header','shop-sidebar', 'product-sidebar')),
				'std' => ''
			),
			array(
				'id' => 'mts_sidebar_for_author',
				'type' => 'sidebars_select',
				'title' => __('Author Archive', 'socialnow' ),
				'sub_desc' => __('Select a sidebar for the author archives.', 'socialnow' ),
				'args' => array('allow_nosidebar' => false, 'exclude' => array('sidebar', 'footer-first', 'footer-first-2', 'footer-first-3', 'footer-first-4', 'footer-second', 'footer-second-2', 'footer-second-3', 'footer-second-4', 'widget-header','shop-sidebar', 'product-sidebar')),
				'std' => ''
			),
			array(
				'id' => 'mts_sidebar_for_search',
				'type' => 'sidebars_select',
				'title' => __('Search', 'socialnow' ),
				'sub_desc' => __('Select a sidebar for the search results.', 'socialnow' ),
				'args' => array('allow_nosidebar' => false, 'exclude' => array('sidebar', 'footer-first', 'footer-first-2', 'footer-first-3', 'footer-first-4', 'footer-second', 'footer-second-2', 'footer-second-3', 'footer-second-4', 'widget-header','shop-sidebar', 'product-sidebar')),
				'std' => ''
			),
			array(
				'id' => 'mts_sidebar_for_notfound',
				'type' => 'sidebars_select',
				'title' => __('404 Error', 'socialnow' ),
				'sub_desc' => __('Select a sidebar for the 404 Not found pages.', 'socialnow' ),
				'args' => array('allow_nosidebar' => false, 'exclude' => array('sidebar', 'footer-first', 'footer-first-2', 'footer-first-3', 'footer-first-4', 'footer-second', 'footer-second-2', 'footer-second-3', 'footer-second-4', 'widget-header','shop-sidebar', 'product-sidebar')),
				'std' => ''
			),
			array(
				'id' => 'mts_sidebar_for_shop',
				'type' => 'sidebars_select',
				'title' => __('Shop Pages', 'socialnow' ),
				'sub_desc' => wp_kses( __('Select a sidebar for Shop main page and product archive pages (WooCommerce plugin must be enabled). Default is <strong>Shop Page Sidebar</strong>.', 'socialnow' ), array( 'strong' => '' ) ),
				'args' => array('allow_nosidebar' => false, 'exclude' => array('sidebar', 'footer-first', 'footer-first-2', 'footer-first-3', 'footer-first-4', 'footer-second', 'footer-second-2', 'footer-second-3', 'footer-second-4', 'widget-header','shop-sidebar', 'product-sidebar')),
				'std' => 'shop-sidebar'
			),
			array(
				'id' => 'mts_sidebar_for_product',
				'type' => 'sidebars_select',
				'title' => __('Single Product', 'socialnow' ),
				'sub_desc' => wp_kses( __('Select a sidebar for single products (WooCommerce plugin must be enabled). Default is <strong>Single Product Sidebar</strong>.', 'socialnow' ), array( 'strong' => '' ) ),
				'args' => array('allow_nosidebar' => false, 'exclude' => array('sidebar', 'footer-first', 'footer-first-2', 'footer-first-3', 'footer-first-4', 'footer-second', 'footer-second-2', 'footer-second-3', 'footer-second-4', 'widget-header','shop-sidebar', 'product-sidebar')),
				'std' => 'product-sidebar'
			),
		),
	);

	$sections[] = array(
		'icon' => 'fa fa-list-alt',
		'title' => __('Navigation', 'socialnow' ),
		'desc' => '<p class="description"><div class="controls">' . sprintf( __('Navigation settings can now be modified from the %s.', 'socialnow' ), '<a href="nav-menus.php"><b>' . __( 'Menus Section', 'socialnow' ) . '</b></a>' ) . '<br></div></p>'
	);

					
	$tabs = array();

	$args['presets'] = array();
	$args['show_translate'] = false;
	include('theme-presets.php');

	global $NHP_Options;
	$NHP_Options = new NHP_Options($sections, $args, $tabs);

} //function

add_action('init', 'setup_framework_options', 0);

/*
 * 
 * Custom function for the callback referenced above
 *
 */
function my_custom_field($field, $value){
	print_r($field);
	print_r($value);

}//function

/*
 * 
 * Custom function for the callback validation referenced above
 *
 */
function validate_callback_function($field, $value, $existing_value){
	
	$error = false;
	$value =  'just testing';
	$return['value'] = $value;
	if($error == true){
		$return['error'] = $field;
	}
	return $return;
	
}//function

/*--------------------------------------------------------------------
 * 
 * Default Font Settings
 *
 --------------------------------------------------------------------*/
if(function_exists('mts_register_typography')) { 
	mts_register_typography( array(
		'logo_font' => array(
			'preview_text' => __( 'Logo Font', 'socialnow' ),
			'preview_color' => 'dark',
			'font_family' => 'Dosis',
	  		'font_variant' => '700',
			'font_size' => '35px',
			'font_color' => '#ffffff',
			'css_selectors' => '#logo a'
		),
		'primary_navigation_font' => array(
			'preview_text' => __( 'Top Navigation', 'socialnow' ),
			'preview_color' => 'dark',
			'font_family' => 'Dosis',
	  		'font_variant' => '700',
			'font_size' => '14px',
			'font_color' => '#959595',
			'additional_css' => 'text-transform: uppercase;',
			'css_selectors' => '#primary-navigation a'
		),
		'secondary_navigation_font' => array(
			'preview_text' => __( 'Main Navigation', 'socialnow' ),
			'preview_color' => 'dark',
			'font_family' => 'Dosis',
		  	'font_variant' => '700',
		  	'font_size' => '18px',
		 	'font_color' => '#34495e',
		  	'css_selectors' => '#secondary-navigation a, .search-style-one a'
		),
		'home_title_font' => array(
			'preview_text' => __( 'Home Article Title', 'socialnow' ),
			'preview_color' => 'light',
			'font_family' => 'Dosis',
	  		'font_size' => '40px',
	  		'font_variant' => '700',
	  		'font_color' => '#34495e',
	  		'css_selectors' => '.latestPost .title a'
		),
		'single_title_font' => array(
			'preview_text' => __( 'Single Article Title', 'socialnow' ),
			'preview_color' => 'light',
			'font_family' => 'Dosis',
	  		'font_size' => '40px',
	  		'font_variant' => '700',
	  		'font_color' => '#34495e',
	  		'css_selectors' => '.single-title'
		),
		'content_font' => array(
			'preview_text' => __( 'Content Font', 'socialnow' ),
			'preview_color' => 'light',
			'font_family' => 'Open Sans',
	  		'font_size' => '16px',
	  		'font_variant' => 'normal',
	  		'font_color' => '#757575',
	  		'css_selectors' => 'body'
		),
		'text_info' => array(
			'preview_text' => __( 'Text Info Links', 'socialnow' ),
			'preview_color' => 'light',
			'font_family' => 'Dosis',
	  		'font_size' => '16px',
	  		'font_variant' => '700',
	  		'font_color' => '#959595',
	  		'css_selectors' => '.pagination, .widget .wpt_widget_content .wpt-postmeta, .widget .wp_review_tab_widget_content .wp-review-tab-postmeta, .widget .review-total-only.small-thumb, .thecategory, .reply, input, textarea, .fn, #load-posts, .woocommerce-pagination, .tags'
		),
		'post_info' => array(
			'preview_text' => __( 'Post Info Text', 'socialnow' ),
			'preview_color' => 'light',
			'font_family' => 'Dosis',
	  		'font_size' => '16px',
	  		'font_variant' => '500',
	  		'font_color' => '#959595',
	  		'css_selectors' => '.post-info > span, .ago'
		),
		'post_info_light' => array(
			'preview_text' => __( 'Header Search', 'socialnow' ),
			'preview_color' => 'light',
			'font_family' => 'Dosis',
	  		'font_size' => '16px',
	  		'font_variant' => '300',
	  		'font_color' => '#959595',
	  		'css_selectors' => '.search-row input#s'
		),
		'sidebar_font' => array(
			'preview_text' => __( 'Sidebar Widgets', 'socialnow' ),
			'preview_color' => 'light',
			'font_family' => 'Open Sans',
			'font_variant' => 'normal',
			'font_size' => '14px',
			'font_color' => '#757575',
			'css_selectors' => '#sidebar .widget'
		),
		'sidebar_link_font' => array(
			'preview_text' => __( 'Sidebar Widget Links', 'socialnow' ),
			'preview_color' => 'light',
			'font_family' => 'Dosis',
			'font_variant' => '700',
			'font_size' => '16px',
			'font_color' => '#34495e',
			'css_selectors' => '.widget li a, .tagcloud a, .total-count'
		),
		'footer_title' => array(
			'preview_text' => __( 'Footer Title', 'socialnow' ),
			'preview_color' => 'light',
			'font_family' => 'Dosis',
			'font_variant' => '700',
			'font_size' => '20px',
			'font_color' => '#34495e',
			'css_selectors' => '#site-footer .widget h3'
		),
		'footer_font' => array(
			'preview_text' => __( 'Footer Widgets', 'socialnow' ),
			'preview_color' => 'light',
			'font_family' => 'Open Sans',
			'font_variant' => 'normal',
			'font_size' => '14px',
			'font_color' => '#757575',
			'css_selectors' => '#site-footer'
		),
		'footer_link_font' => array(
			'preview_text' => __( 'Footer Widget Links', 'socialnow' ),
			'preview_color' => 'light',
			'font_family' => 'Dosis',
			'font_variant' => '700',
			'font_size' => '16px',
			'font_color' => '#959595',
			'css_selectors' => '#site-footer .widget li a, #site-footer .tagcloud a'
		),
		'h1_headline' => array(
			'preview_text' => __( 'Content H1', 'socialnow' ),
			'preview_color' => 'light',
			'font_family' => 'Dosis',
			'font_variant' => '700',
			'font_size' => '40px',
			'font_color' => '#34495e',
			'css_selectors' => 'h1'
		),
		'h2_headline' => array(
			'preview_text' => __( 'Content H2', 'socialnow' ),
			'preview_color' => 'light',
			'font_family' => 'Dosis',
			'font_variant' => '700',
			'font_size' => '32px',
			'font_color' => '#34495e',
			'css_selectors' => 'h2'
		),
		'h3_headline' => array(
			'preview_text' => __( 'Content H3', 'socialnow' ),
			'preview_color' => 'light',
			'font_family' => 'Dosis',
	  		'font_variant' => '700',
	 	 	'font_size' => '30px',
	  		'font_color' => '#34495e',
	  		'css_selectors' => 'h3'
		),
		'h4_headline' => array(
			'preview_text' => __( 'Content H4', 'socialnow' ),
			'preview_color' => 'light',
			'font_family' => 'Dosis',
	  		'font_variant' => '700',
	  		'font_size' => '28px',
	  		'font_color' => '#34495e',
	  		'css_selectors' => 'h4'
		),
		'h5_headline' => array(
			'preview_text' => __( 'Content H5', 'socialnow' ),
			'preview_color' => 'light',
			'font_family' => 'Dosis',
	  		'font_variant' => '700',
	  		'font_size' => '24px',
	  		'font_color' => '#34495e',
	  		'css_selectors' => 'h5'
		),
		'h6_headline' => array(
			'preview_text' => __( 'Content H6', 'socialnow' ),
			'preview_color' => 'light',
			'font_family' => 'Dosis',
	  		'font_variant' => '700',
	  		'font_size' => '20px',
	  		'font_color' => '#34495e',
	  		'css_selectors' => 'h6'
		)
	));
}