<?php /**
	ReduxFramework Sample Config File
	For full documentation, please visit http://reduxframework.com/docs/
**/



/*
 *
 * Custom function for filtering the sections array. 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 directories 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', 'asteria'),&#13;
        'desc' =&gt; __('<p class="description">This is a section created by adding a filter to the sections array. Can be used by child themes to add/remove sections from the options.</p>', 'asteria'),&#13;
		'icon' =&gt; 'paper-clip',&#13;
		'icon_class' =&gt; 'icon-large',&#13;
        // Leave this as a blank section, no options just some intro text set above.&#13;
        'fields' =&gt; array()&#13;
    );&#13;
&#13;
    return $sections;&#13;
}&#13;
add_filter('redux-opts-sections-redux-sample', 'add_another_section');&#13;
&#13;
&#13;
/*&#13;
 * &#13;
 * Custom function for filtering the args array given by a theme, good for child themes to override or add to the args array.&#13;
 *&#13;
 */&#13;
function change_framework_args($args){&#13;
    //$args['dev_mode'] = false;&#13;
    &#13;
    return $args;&#13;
}&#13;
//add_filter('redux-opts-args-redux-sample-file', 'change_framework_args');&#13;
&#13;
&#13;
/*&#13;
 *&#13;
 * Most of your editing will be done in this section.&#13;
 *&#13;
 * Here you can override default values, uncomment args and change their values.&#13;
 * No $args are required, but they can be over ridden if needed.&#13;
 *&#13;
 */&#13;
function setup_framework_options(){&#13;
    $args = array();&#13;
&#13;
&#13;
    // For use with a tab below&#13;
		$tabs = array();&#13;
&#13;
		ob_start();&#13;
&#13;
		$ct = wp_get_theme();&#13;
        $theme_data = $ct;&#13;
        $item_name = $theme_data-&gt;get('Name'); &#13;
		$tags = $ct-&gt;Tags;&#13;
		$screenshot = $ct-&gt;get_screenshot();&#13;
		$class = $screenshot ? 'has-screenshot' : '';&#13;
&#13;
		$customize_title = sprintf( __( 'Customize &ldquo;%s&rdquo;', 'asteria' ), $ct-&gt;display('Name') );&#13;
&#13;
		?&gt;&#13;
		<div id="current-theme" class="&lt;?php echo esc_attr( $class ); ?&gt;">&#13;
			<?php if ( $screenshot ) : ?>&#13;
				<?php if ( current_user_can( 'edit_theme_options' ) ) : ?>&#13;
				<a href="&lt;?php%20echo%20wp_customize_url();%20?&gt;" class="load-customize hide-if-no-customize" title="&lt;?php echo esc_attr( $customize_title ); ?&gt;">&#13;
					<img src="&lt;?php%20echo%20esc_url(%20%24screenshot%20);%20?&gt;" alt="&lt;?php esc_attr_e( 'Current theme preview' ); ?&gt;">&#13;
				</a>&#13;
				<?php endif; ?>&#13;
				<img class="hide-if-customize" src="&lt;?php%20echo%20esc_url(%20%24screenshot%20);%20?&gt;" alt="&lt;?php esc_attr_e( 'Current theme preview' ); ?&gt;">&#13;
			<?php endif; ?>&#13;
&#13;
			<h4>&#13;
				<?php echo $ct->display('Name'); ?&gt;&#13;
			</h4>&#13;
&#13;
			<div>&#13;
				<ul class="theme-info">&#13;
					<li><?php printf( __('By %s', 'asteria'), $ct->display('Author') ); ?&gt;</li>&#13;
					<li><?php printf( __('Version %s', 'asteria'), $ct->display('Version') ); ?&gt;</li>&#13;
					<li><?php echo '<strong>'.__('Tags', 'asteria').': '; ?&gt;<?php printf( $ct->display('Tags') ); ?&gt;</li>&#13;
				</ul>&#13;
				<p class="theme-description"><?php echo $ct->display('Description'); ?&gt;</p>&#13;
				<?php if ( $ct->parent() ) {&#13;
					printf( ' <p class="howto">' . __( 'This <a href="%1%24s">child theme</a> requires its parent theme, %2$s.' ) . '</p>',&#13;
						__( 'http://codex.wordpress.org/Child_Themes', 'asteria' ),&#13;
						$ct-&gt;parent()-&gt;display( 'Name' ) );&#13;
				} ?&gt;&#13;
				&#13;
			</div>&#13;
&#13;
		</div>&#13;
&#13;
		<?php $item_info = ob_get_contents();
		    
		ob_end_clean();
	if( file_exists( dirname(__FILE__).'/documentation/about.html' )) {
		global $wp_filesystem;
		if (empty($wp_filesystem)) {
			require_once(ABSPATH .'/wp-admin/includes/file.php');
			WP_Filesystem();
		}  		
		$about = $wp_filesystem->get_contents(dirname(__FILE__).'/documentation/about.html');&#13;
	}&#13;
&#13;
	if( file_exists( dirname(__FILE__).'/documentation/documentation.html' )) {&#13;
		global $wp_filesystem;&#13;
		if (empty($wp_filesystem)) {&#13;
			require_once(ABSPATH .'/wp-admin/includes/file.php');&#13;
			WP_Filesystem();&#13;
		}  		&#13;
		$documentation = $wp_filesystem-&gt;get_contents(dirname(__FILE__).'/documentation/documentation.html');&#13;
	}&#13;
	if( file_exists( dirname(__FILE__).'/documentation/upgrade.html' )) {&#13;
		global $wp_filesystem;&#13;
		if (empty($wp_filesystem)) {&#13;
			require_once(ABSPATH .'/wp-admin/includes/file.php');&#13;
			WP_Filesystem();&#13;
		}  		&#13;
		$upgrade = $wp_filesystem-&gt;get_contents(dirname(__FILE__).'/documentation/upgrade.html');&#13;
	}&#13;
&#13;
&#13;
    // Setting dev mode to true allows you to view the class settings/info in the panel.&#13;
    // Default: true&#13;
    $args['dev_mode'] = false;&#13;
&#13;
	// Set the icon for the dev mode tab.&#13;
	// If $args['icon_type'] = 'image', this should be the path to the icon.&#13;
	// If $args['icon_type'] = 'iconfont', this should be the icon name.&#13;
	// Default: info-sign&#13;
	//$args['dev_mode_icon'] = 'info-sign';&#13;
&#13;
	// Set the class for the dev mode tab icon.&#13;
	// This is ignored unless $args['icon_type'] = 'iconfont'&#13;
	// Default: null&#13;
    $args['dev_mode_icon_class'] = 'icon-large';&#13;
&#13;
    // Set a custom option name. Don't forget to replace spaces with underscores!&#13;
    $args['opt_name'] = 'asteria';&#13;
&#13;
    // Setting system info to true allows you to view info useful for debugging.&#13;
    // Default: false&#13;
    //$args['system_info'] = true;&#13;
&#13;
    &#13;
	// Set the icon for the system info tab.&#13;
	// If $args['icon_type'] = 'image', this should be the path to the icon.&#13;
	// If $args['icon_type'] = 'iconfont', this should be the icon name.&#13;
	// Default: info-sign&#13;
	//$args['system_info_icon'] = 'info-sign';&#13;
&#13;
	// Set the class for the system info tab icon.&#13;
	// This is ignored unless $args['icon_type'] = 'iconfont'&#13;
	// Default: null&#13;
	$args['system_info_icon_class'] = 'icon-large';&#13;
&#13;
	$theme = wp_get_theme();&#13;
&#13;
	$args['display_name'] = $theme-&gt;get('Name');&#13;
	//$args['database'] = "theme_mods_expanded";&#13;
	$args['display_version'] = $theme-&gt;get('Version');&#13;
&#13;
    // If you want to use Google Webfonts, you MUST define the api key.&#13;
    $args['google_api_key'] = 'AIzaSyAolJnJQL-juru43ESvQ9pf5QUY0ZIdLuQ';&#13;
&#13;
    // Define the starting tab for the option panel.&#13;
    // Default: '0';&#13;
    //$args['last_tab'] = '0';&#13;
&#13;
    // Define the option panel stylesheet. Options are 'standard', 'custom', and 'none'&#13;
    // If only minor tweaks are needed, set to 'custom' and override the necessary styles through the included custom.css stylesheet.&#13;
    // If replacing the stylesheet, set to 'none' and don't forget to enqueue another stylesheet!&#13;
    // Default: 'standard'&#13;
    //$args['admin_stylesheet'] = 'standard';&#13;
&#13;
    // Setup custom links in the footer for share icons&#13;
    $args['share_icons']['twitter'] = array(&#13;
        'link' =&gt; 'https://twitter.com/towfiqi',&#13;
        'title' =&gt; 'Follow me on Twitter', &#13;
        'img' =&gt; ReduxFramework::$_url  . 'assets/img/social/Twitter.png'&#13;
    );&#13;
    $args['share_icons']['facebook'] = array(&#13;
        'link' =&gt; 'http://www.facebook.com/pages/Towfiq-I/180981878579536',&#13;
        'title' =&gt; 'Follow me on Facebook', &#13;
        'img' =&gt; ReduxFramework::$_url  . 'assets/img/social/Facebook.png'&#13;
    );&#13;
    $args['share_icons']['google'] = array(&#13;
        'link' =&gt; 'https://plus.google.com/114788083723678273482/',&#13;
        'title' =&gt; 'Follow me on Google Plus', &#13;
        'img' =&gt; ReduxFramework::$_url  . 'assets/img/social/Google.png'&#13;
    );&#13;
&#13;
    // Enable the import/export feature.&#13;
    // Default: true&#13;
    //$args['show_import_export'] = false;&#13;
&#13;
	// Set the icon for the import/export tab.&#13;
	// If $args['icon_type'] = 'image', this should be the path to the icon.&#13;
	// If $args['icon_type'] = 'iconfont', this should be the icon name.&#13;
	// Default: refresh&#13;
	//$args['import_icon'] = 'refresh';&#13;
&#13;
	// Set the class for the import/export tab icon.&#13;
	// This is ignored unless $args['icon_type'] = 'iconfont'&#13;
	// Default: null&#13;
	$args['import_icon_class'] = 'icon-large';&#13;
&#13;
    // Set a custom menu icon.&#13;
    //$args['menu_icon'] = '';&#13;
&#13;
    // Set a custom title for the options page.&#13;
    // Default: Options&#13;
    $args['menu_title'] = __('Asteria Options', 'asteria');&#13;
&#13;
    // Set a custom page title for the options page.&#13;
    // Default: Options&#13;
    $args['page_title'] = __('Options', 'asteria');&#13;
&#13;
    // Set a custom page slug for options page (wp-admin/themes.php?page=***).&#13;
    // Default: redux_options&#13;
    $args['page_slug'] = 'redux_options';&#13;
&#13;
    $args['default_show'] = true;&#13;
    $args['default_mark'] = '*';&#13;
&#13;
    // Set a custom page capability.&#13;
    // Default: manage_options&#13;
    //$args['page_cap'] = 'manage_options';&#13;
&#13;
    // Set the menu type. Set to "menu" for a top level menu, or "submenu" to add below an existing item.&#13;
    // Default: menu&#13;
    $args['page_type'] = 'submenu';&#13;
&#13;
    // Set the parent menu.&#13;
    // Default: themes.php&#13;
    // A list of available parent menus is available at http://codex.wordpress.org/Function_Reference/add_submenu_page#Parameters&#13;
    //$args['page_parent'] = 'options_general.php';&#13;
&#13;
    // Set a custom page location. This allows you to place your menu where you want in the menu order.&#13;
    // Must be unique or it will override other items!&#13;
    // Default: null&#13;
    //$args['page_position'] = null;&#13;
&#13;
    // Set a custom page icon class (used to override the page icon next to heading)&#13;
    //$args['page_icon'] = 'icon-themes';&#13;
&#13;
	// Set the icon type. Set to "iconfont" for Font Awesome, or "image" for traditional.&#13;
	// Redux no longer ships with standard icons!&#13;
	// Default: iconfont&#13;
	//$args['icon_type'] = 'image';&#13;
&#13;
    // Disable the panel sections showing as submenu items.&#13;
    // Default: true&#13;
    //$args['allow_sub_menu'] = false;&#13;
        &#13;
    // Set ANY custom page help tabs, displayed using the new help tab API. Tabs are shown in order of definition.&#13;
    $args['help_tabs'][] = array(&#13;
        'id' =&gt; 'redux-opts-1',&#13;
        'title' =&gt; __('Theme Information 1', 'asteria'),&#13;
        'content' =&gt; __('<p>This is the tab content, HTML is allowed.</p>', 'asteria')&#13;
    );&#13;
    $args['help_tabs'][] = array(&#13;
        'id' =&gt; 'redux-opts-2',&#13;
        'title' =&gt; __('Theme Information 2', 'asteria'),&#13;
        'content' =&gt; __('<p>This is the tab content, HTML is allowed.</p>', 'asteria')&#13;
    );&#13;
&#13;
    // Set the help sidebar for the options page.                                        &#13;
    $args['help_sidebar'] = __('<p>This is the sidebar content, HTML is allowed.</p>', 'asteria');&#13;
&#13;
&#13;
    // Add HTML before the form.&#13;
    if (!isset($args['global_variable']) || $args['global_variable'] !== false ) {&#13;
    	if (!empty($args['global_variable'])) {&#13;
    		$v = $args['global_variable'];&#13;
    	} else {&#13;
    		$v = str_replace("-", "_", $args['opt_name']);&#13;
    	}&#13;
    	$args['intro_text'] = __('<p><strong>Upgrade to Asteria PRO</strong> to Unlock all features and design your site anyway you want. For Documentation you can either click the Documentation tab or <a target="_blank" href="http://bit.ly/HXxREO">Download This PDF.</a></p>', 'asteria');&#13;
    } else {&#13;
    	$args['intro_text'] = __('<p>This text is displayed above the options panel. It isn\'t required, but more info is always better! The intro_text field accepts all HTML.</p>', 'asteria');&#13;
    }&#13;
&#13;
    // Add content after the form.&#13;
    $args['footer_text'] = __('', 'asteria');&#13;
&#13;
    // Set footer/credit line.&#13;
    //$args['footer_credit'] = __('<p>This text is displayed in the options panel footer across from the WordPress version (where it normally says \'Thank you for creating with WordPress\'). This field accepts all HTML.</p>', 'asteria');&#13;
&#13;
&#13;
    $sections = array();              &#13;
&#13;
    //Background Patterns Reader&#13;
    $sample_patterns_path = ReduxFramework::$_dir . '../sample/patterns/';&#13;
    $sample_patterns_url  = ReduxFramework::$_url . '../sample/patterns/';&#13;
    $sample_patterns      = array();&#13;
&#13;
    if ( is_dir( $sample_patterns_path ) ) :&#13;
    	&#13;
      if ( $sample_patterns_dir = opendir( $sample_patterns_path ) ) :&#13;
      	$sample_patterns = array();&#13;
&#13;
        while ( ( $sample_patterns_file = readdir( $sample_patterns_dir ) ) !== false ) {&#13;
&#13;
          if( stristr( $sample_patterns_file, '.png' ) !== false || stristr( $sample_patterns_file, '.jpg' ) !== false ) {&#13;
          	$name = explode(".", $sample_patterns_file);&#13;
          	$name = str_replace('.'.end($name), '', $sample_patterns_file);&#13;
          	$sample_patterns[] = array( 'alt'=&gt;$name,'img' =&gt; $sample_patterns_url . $sample_patterns_file );&#13;
          }&#13;
        }&#13;
      endif;&#13;
    endif;&#13;
&#13;
&#13;
	$sections[] = array(&#13;
		'title' =&gt; __('Basic', 'asteria'),&#13;
		'header' =&gt; '',&#13;
		'desc' =&gt; '',&#13;
		'icon_class' =&gt; 'icon-large',&#13;
        'icon' =&gt; 'cogs',&#13;
        // 'submenu' =&gt; false, // Setting submenu to false on a given section will hide it from the WordPress sidebar menu!&#13;
		'fields' =&gt; array(&#13;
				&#13;
			array(&#13;
				'id'=&gt;'site_width_id',&#13;
				'type' =&gt; 'image_select',&#13;
				'compiler'=&gt;true,&#13;
				'title' =&gt; __('Site Width', 'asteria'), &#13;
				'subtitle' =&gt; __('Select between Fixed Width and Full Width', 'asteria'),&#13;
				'options' =&gt; array(&#13;
						'1' =&gt; array('alt' =&gt; 'Fixed', 'img' =&gt; get_template_directory_uri().'/images/fixed.png'),&#13;
						'2' =&gt; array('alt' =&gt; 'Full Width', 'img' =&gt; get_template_directory_uri().'/images/fullwidth.png'),&#13;
					),&#13;
				'default' =&gt; '1'&#13;
				),	&#13;
				&#13;
			array(&#13;
				'id'=&gt;'head_type_id',&#13;
				'type' =&gt; 'select',&#13;
				'title' =&gt; __('Header Type', 'asteria'), &#13;
				'subtitle' =&gt; '',&#13;
				'desc' =&gt; __('Change how the header looks', 'asteria'),&#13;
				'options' =&gt; array('head4' =&gt; 'Header Type 4'),&#13;
				'default' =&gt; 'head4'&#13;
				),	&#13;
				&#13;
			array(&#13;
				'id'=&gt;'page_type_id',&#13;
				'type' =&gt; 'select',&#13;
				'title' =&gt; __('Page Header Type', 'asteria'), &#13;
				'subtitle' =&gt; '',&#13;
				'desc' =&gt; __('Change how the Page Title Looks', 'asteria'),&#13;
				'options' =&gt; array('1' =&gt; 'Big Page header','2' =&gt; 'Normal Page Header'),&#13;
				'default' =&gt; '1'&#13;
				),	&#13;
				&#13;
			array(&#13;
				'id'=&gt;'ajax_id',&#13;
				'type' =&gt; 'switch', &#13;
				'title' =&gt; __('Ajax Pagination', 'asteria'),&#13;
				'subtitle'=&gt; __('Ajax pagination(Go to next page without reloading the page', 'asteria'),&#13;
				"default" 		=&gt; 1,&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'totop_id',&#13;
				'type' =&gt; 'switch', &#13;
				'title' =&gt; __('To Top Button', 'asteria'),&#13;
				'subtitle'=&gt; __('Turn On/Off "To Top Button"(The button that appears on bottom right when you scroll down to pages.', 'asteria'),&#13;
				"default" 		=&gt; 1,&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'footer_text_id',&#13;
				'type' =&gt; 'editor',&#13;
				'title' =&gt; __('Footer Copyright Text', 'asteria'), &#13;
				'default' =&gt; '',&#13;
				),&#13;
			),&#13;
&#13;
		);&#13;
&#13;
&#13;
&#13;
	$sections[] = array(&#13;
		'type' =&gt; 'divide',&#13;
	);&#13;
&#13;
	$sections[] = array(&#13;
		'icon' =&gt; 'home-alt',&#13;
		'icon_class' =&gt; 'icon-large',&#13;
        'title' =&gt; __('Front Page ', 'asteria'),&#13;
		'fields' =&gt; array(&#13;
			array(&#13;
				'id'=&gt;'block1_text_id',&#13;
				'type' =&gt; 'text',&#13;
				'title' =&gt; __('Block 1 Title', 'asteria'),&#13;
				'default' =&gt; 'Lorem Ipsum'&#13;
				),	&#13;
				&#13;
			array(&#13;
				'id'=&gt;'block1_icon',&#13;
				'type' =&gt; 'select',&#13;
				'title' =&gt; __('Block 1 Icon', 'asteria'), &#13;
				'data' =&gt; 'elusive',//Must provide key =&gt; value pairs for select options&#13;
				'default' =&gt; 'fa-camera'&#13;
				),&#13;
&#13;
			array(&#13;
				'id'=&gt;'block1_textarea_id',&#13;
				'type' =&gt; 'editor',&#13;
				'title' =&gt; __('Block 1 Content', 'asteria'), &#13;
				'default' =&gt; 'Lorem ipsum dolor sit amet, consectetur  dol adipiscing elit. Nam nec rhoncus risus. In ultrices lacinia ipsum, posuere faucibus velit bibe.',&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'block2_text_id',&#13;
				'type' =&gt; 'text',&#13;
				'title' =&gt; __('Block 2 Title', 'asteria'),&#13;
				'default' =&gt; 'Lorem Ipsum'&#13;
				),	&#13;
				&#13;
			array(&#13;
				'id'=&gt;'block2_icon',&#13;
				'type' =&gt; 'select',&#13;
				'title' =&gt; __('Block 2 Icon', 'asteria'), &#13;
				'data' =&gt; 'elusive',//Must provide key =&gt; value pairs for select options&#13;
				'default' =&gt; 'fa-rocket'&#13;
				),&#13;
&#13;
			array(&#13;
				'id'=&gt;'block2_textarea_id',&#13;
				'type' =&gt; 'editor',&#13;
				'title' =&gt; __('Block 1 Content', 'asteria'), &#13;
				'default' =&gt; 'Lorem ipsum dolor sit amet, consectetur  dol adipiscing elit. Nam nec rhoncus risus. In ultrices lacinia ipsum, posuere faucibus velit bibe.',&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'block3_text_id',&#13;
				'type' =&gt; 'text',&#13;
				'title' =&gt; __('Block 3 Title', 'asteria'),&#13;
				'default' =&gt; 'Lorem Ipsum'&#13;
				),	&#13;
				&#13;
			array(&#13;
				'id'=&gt;'block3_icon',&#13;
				'type' =&gt; 'select',&#13;
				'title' =&gt; __('Block 3 Icon', 'asteria'), &#13;
				'data' =&gt; 'elusive',//Must provide key =&gt; value pairs for select options&#13;
				'default' =&gt; 'fa-signal'&#13;
				),&#13;
&#13;
			array(&#13;
				'id'=&gt;'block3_textarea_id',&#13;
				'type' =&gt; 'editor',&#13;
				'title' =&gt; __('Block 3 Content', 'asteria'), &#13;
				'default' =&gt; 'Lorem ipsum dolor sit amet, consectetur  dol adipiscing elit. Nam nec rhoncus risus. In ultrices lacinia ipsum, posuere faucibus velit bibe.',&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'block4_text_id',&#13;
				'type' =&gt; 'text',&#13;
				'title' =&gt; __('Block 4 Title', 'asteria'),&#13;
				'default' =&gt; 'Lorem Ipsum'&#13;
				),	&#13;
				&#13;
			array(&#13;
				'id'=&gt;'block4_icon',&#13;
				'type' =&gt; 'select',&#13;
				'title' =&gt; __('Block 4 Icon', 'asteria'), &#13;
				'data' =&gt; 'elusive',&#13;
				'default' =&gt; 'fa-cogs'&#13;
				),&#13;
&#13;
			array(&#13;
				'id'=&gt;'block4_textarea_id',&#13;
				'type' =&gt; 'editor',&#13;
				'title' =&gt; __('Block 4 Content', 'asteria'), &#13;
				'default' =&gt; 'Lorem ipsum dolor sit amet, consectetur  dol adipiscing elit. Nam nec rhoncus risus. In ultrices lacinia ipsum, posuere faucibus velit bibe.',&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'welcm_textarea_id',&#13;
				'type' =&gt; 'editor',&#13;
				'title' =&gt; __('Welcome Text', 'asteria'), &#13;
				'default' =&gt; '<h2>Lorem ipsum dolor sit amet, consectetur  dol adipiscing elit. Nam nec rhoncus risus. In ultrices lacinia ipsum, posuere faucibus velit bibe.</h2>',&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'welcome_color_id',&#13;
				'type' =&gt; 'color',&#13;
				'title' =&gt; __('Background Color ', 'asteria'), &#13;
				'default' =&gt; '#333333',&#13;
				'validate' =&gt; 'color',&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'posts_title_id',&#13;
				'type' =&gt; 'editor',&#13;
				'title' =&gt; __('Title &amp; Description', 'asteria'), &#13;
				'default' =&gt; '<h2 style="text-align: center;"><span style="color: #e2341d;">Check Out Our Portfolio</span></h2><p style="text-align: center;">The Very recent work for our clients</p>',&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'front_layout_id',&#13;
				'type' =&gt; 'image_select',&#13;
				'compiler'=&gt;true,&#13;
				'title' =&gt; __('Posts layout', 'asteria'), &#13;
				'options' =&gt; array(&#13;
						'1' =&gt; array('alt' =&gt; 'Layout 1', 'img' =&gt; get_template_directory_uri().'/images/layout1.png'),&#13;
					),&#13;
				'default' =&gt; '1'&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'enable_cat',&#13;
				'type' =&gt; 'switch', &#13;
				'title' =&gt; __('Display posts from a Category', 'asteria'),&#13;
				"default" 		=&gt; 0,&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'posts_cat_id',&#13;
				'type' =&gt; 'select',&#13;
				'data' =&gt; 'categories',&#13;
				'multi' =&gt; true,&#13;
				'title' =&gt; __('Category Name', 'asteria'), &#13;
				),	&#13;
			&#13;
			array(&#13;
				'id'=&gt;'n_posts_field_id',&#13;
				'type' =&gt; 'text',&#13;
				'title' =&gt; __('Number of Posts ', 'asteria'),&#13;
				'default' =&gt; '9',&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'map-info',&#13;
				'type' =&gt; 'info',&#13;
				'desc' =&gt; __("This feature is only available in Asteria PRO", "asteria"),&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'callaction-info',&#13;
				'type' =&gt; 'info',&#13;
				'desc' =&gt; __("This feature is only available in Asteria PRO", "asteria"),&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'widget-info',&#13;
				'type' =&gt; 'info',&#13;
				'desc' =&gt; __("This feature is only available in Asteria PRO", "asteria"),&#13;
				),&#13;
				&#13;
			&#13;
			array(&#13;
	            'id' =&gt; 'home_sort_id',&#13;
    	        'type' =&gt; 'sortable',&#13;
    	        'mode' =&gt; 'checkbox', // checkbox or text&#13;
        	    'title' =&gt; __('Frontpage Elements position', 'asteria'),&#13;
				'desc' =&gt; __('Drag and Drop each element to reorder their position.', 'asteria'),&#13;
	            'options' =&gt; array(&#13;
    	            'blocks' =&gt; 'Blocks',&#13;
        	        'welcome-text' =&gt; 'Welcome Text',&#13;
    	            'posts' =&gt; 'Frontpage Posts'&#13;
        	    	),&#13;
				'default' =&gt; array(&#13;
    	            'blocks' =&gt; 'Blocks',&#13;
        	        'welcome-text' =&gt; 'Welcome Text',&#13;
    	            'posts' =&gt; 'Frontpage Posts'&#13;
        	    	)&#13;
	        	),&#13;
				&#13;
		)&#13;
	);&#13;
&#13;
&#13;
	$sections[] = array(&#13;
		'icon' =&gt; 'website',&#13;
		'icon_class' =&gt; 'icon-large',&#13;
		'title' =&gt; __('Slider', 'asteria'),&#13;
		'fields' =&gt; array(&#13;
		&#13;
			array(&#13;
				'id'=&gt;'slider_type_id',&#13;
				'type' =&gt; 'select',&#13;
				'title' =&gt; __('Slider Type', 'asteria'), &#13;
				'options' =&gt; array('nivo'=&gt;'Nivo Slider','noslider'=&gt;'Disable Slider'),&#13;
				'default' =&gt; 'nivo',&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'n_slide_time_id',&#13;
				'type' =&gt; 'text',&#13;
				'title' =&gt; __('Pause Time Between Each Slide ', 'asteria'),&#13;
				'default' =&gt; '4000',&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'slide_height',&#13;
				'type' =&gt; 'text',&#13;
				'title' =&gt; __('Slider Height ', 'asteria'),&#13;
				'default' =&gt; '500px',&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'slidefont_size_id',&#13;
				'type' =&gt; 'typography',&#13;
				'title' =&gt; __('Slide Font Style', 'asteria'),&#13;
				'google'=&gt;false,&#13;
				'subsets' =&gt; false,&#13;
				'font-weight' =&gt; false,&#13;
				'font-style' =&gt; false,&#13;
				'font-backup' =&gt; false,&#13;
				'color' =&gt; false,&#13;
				'preview' =&gt; false,&#13;
				'line-height' =&gt; false,&#13;
				'word-spacing' =&gt; false,&#13;
				'letter-spacing' =&gt; false,&#13;
				'font-size'=&gt;true,&#13;
				'font-family'=&gt;false,&#13;
				'default' =&gt; array(&#13;
					'font-size'=&gt;'60px',&#13;
					),&#13;
				),&#13;
		&#13;
			array(&#13;
				'id'=&gt;'slides',&#13;
				'type' =&gt; 'slides'&#13;
			),&#13;
				&#13;
		)&#13;
	);				&#13;
&#13;
	$sections[] = array(&#13;
		'icon' =&gt; 'tint',&#13;
		'icon_class' =&gt; 'icon-large',&#13;
		'title' =&gt; __('Style', 'asteria'),&#13;
		'fields' =&gt; array(&#13;
			//Elements Color&#13;
&#13;
			array(&#13;
				'id'=&gt;'sec_color_id',&#13;
				'type' =&gt; 'color',&#13;
				'title' =&gt; __('Secondary Element background Color', 'asteria'), &#13;
				'default' =&gt; '#2dcb73',&#13;
				'transparent' =&gt; false,&#13;
				'validate' =&gt; 'color',&#13;
				),&#13;
&#13;
				&#13;
				////&#13;
			array(&#13;
				'id'=&gt;'style_dvd',&#13;
				'type' =&gt; 'divide'&#13;
				),&#13;
			//Text Colors	&#13;
			array(&#13;
				'id'=&gt;'primtxt_color_id',&#13;
				'type' =&gt; 'color',&#13;
				'title' =&gt; __('Site wide Text Color', 'asteria'), &#13;
				'default' =&gt; '#888888',&#13;
				'transparent' =&gt; false,&#13;
				'validate' =&gt; 'color',&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'sectxt_color_id',&#13;
				'type' =&gt; 'color',&#13;
				'title' =&gt; __('Text Color on secondary elements', 'asteria'), &#13;
				'default' =&gt; '#FFFFFF',&#13;
				'transparent' =&gt; false,&#13;
				'validate' =&gt; 'color',&#13;
				),&#13;
&#13;
			array(&#13;
				'id'=&gt;'leavreplytxt_color_id',&#13;
				'type' =&gt; 'color',&#13;
				'title' =&gt; __('"Leave a Reply" Text Color', 'asteria'), &#13;
				'default' =&gt; '#333333',&#13;
				'transparent' =&gt; false,&#13;
				'validate' =&gt; 'color',&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'rounded_id',&#13;
				'type' =&gt; 'switch', &#13;
				'title' =&gt; __('Rounded Corners', 'asteria'),&#13;
				"default" 		=&gt; 0,&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'shadow_id',&#13;
				'type' =&gt; 'switch', &#13;
				'title' =&gt; __('Drop Shadow', 'asteria'),&#13;
				"default" 		=&gt; 0,&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'style-info',&#13;
				'type' =&gt; 'info',&#13;
				'desc' =&gt; __("More Styling Options are only available in Asteria PRO", "asteria"),&#13;
				),&#13;
&#13;
		)&#13;
	);&#13;
	$sections[] = array(&#13;
		'icon' =&gt; 'text-height',&#13;
		'icon_class' =&gt; 'icon-large',&#13;
		'title' =&gt; __('Typography Settings', 'asteria'),&#13;
		'fields' =&gt; array(&#13;
			array(&#13;
				'id'=&gt;'logo_font_id',&#13;
				'type' =&gt; 'typography',&#13;
				'title' =&gt; __('Logo Style', 'asteria'),&#13;
				'subtitle' =&gt; __('Specify the body font properties.', 'asteria'),&#13;
				'google'=&gt;true,&#13;
				'font-backup'=&gt;false,&#13;
				'line-height'=&gt;false,&#13;
				'default' =&gt; array(&#13;
					'color'=&gt;'#ffffff',&#13;
					'font-size'=&gt;'50px',&#13;
					'font-family'=&gt;'Cinzel Decorative',&#13;
					'font-weight'=&gt;'Normal',&#13;
					),&#13;
				),	&#13;
			array(&#13;
				'id'=&gt;'typo-info',&#13;
				'type' =&gt; 'info',&#13;
				'desc' =&gt; __("More Typography Options are only available in Asteria PRO", "asteria"),&#13;
				),&#13;
				&#13;
	&#13;
		)&#13;
	);&#13;
		&#13;
	$sections[] = array(&#13;
		'icon' =&gt; 'twitter',&#13;
		'icon_class' =&gt; 'icon-large',&#13;
		'title' =&gt; __('Social', 'asteria'),&#13;
		'fields' =&gt; array(&#13;
			array(&#13;
				'id'=&gt;'social_single_id',&#13;
				'type' =&gt; 'switch', &#13;
				'title' =&gt; __('Social Share Icons under Posts ', 'asteria'),&#13;
				"default" 		=&gt; 1,&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'social_color_id',&#13;
				'type' =&gt; 'color',&#13;
				'title' =&gt; __('Social Share Icons Color ', 'asteria'), &#13;
				'default' =&gt; '#CCCCCC',&#13;
				'transparent' =&gt; false,&#13;
				'validate' =&gt; 'color',&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'social_dvd',&#13;
				'type' =&gt; 'divide'&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'facebook_field_id',&#13;
				'type' =&gt; 'text',&#13;
				'title' =&gt; __('Facebook URL ','asteria'),&#13;
				'validate' =&gt; 'url',&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'twitter_field_id',&#13;
				'type' =&gt; 'text',&#13;
				'title' =&gt; __('Twitter URL ','asteria'),&#13;
				'validate' =&gt; 'url',&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'gplus_field_id',&#13;
				'type' =&gt; 'text',&#13;
				'title' =&gt; __('Google Plus URL ','asteria'),&#13;
				'validate' =&gt; 'url',&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'youtube_field_id',&#13;
				'type' =&gt; 'text',&#13;
				'title' =&gt; __('Youtube URL ','asteria'),&#13;
				'validate' =&gt; 'url',&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'flickr_field_id',&#13;
				'type' =&gt; 'text',&#13;
				'title' =&gt; __('Flickr URL ','asteria'),&#13;
				'validate' =&gt; 'url',&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'linkedin_field_id',&#13;
				'type' =&gt; 'text',&#13;
				'title' =&gt; __('Linkedin URL ','asteria'),&#13;
				'validate' =&gt; 'url',&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'pinterest_field_id',&#13;
				'type' =&gt; 'text',&#13;
				'title' =&gt; __('Pinterest URL ','asteria'),&#13;
				'validate' =&gt; 'url',&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'tumblr_field_id',&#13;
				'type' =&gt; 'text',&#13;
				'title' =&gt; __('Tumblr URL ','asteria'),&#13;
				'validate' =&gt; 'url',&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'instagram_field_id',&#13;
				'type' =&gt; 'text',&#13;
				'title' =&gt; __('Instagram URL ','asteria'),&#13;
				'validate' =&gt; 'url',&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'rss_field_id',&#13;
				'type' =&gt; 'text',&#13;
				'title' =&gt; __('RSS URL ','asteria'),&#13;
				'validate' =&gt; 'url',&#13;
				),&#13;
				&#13;
		)&#13;
	);	&#13;
	&#13;
	$sections[] = array(&#13;
		'icon' =&gt; 'tasks',&#13;
		'icon_class' =&gt; 'icon-large',&#13;
		'title' =&gt; __('Miscellaneous Settings', 'asteria'),&#13;
		'fields' =&gt; array(&#13;
			array(&#13;
				'id'=&gt;'cat_layout_id',&#13;
				'type' =&gt; 'image_select',&#13;
				'compiler'=&gt;true,&#13;
				'title' =&gt; __('Category, Archive Page posts layout', 'asteria'), &#13;
				'options' =&gt; array(&#13;
						'1' =&gt; array('alt' =&gt; 'Layout 1', 'img' =&gt; get_template_directory_uri().'/images/layout1.png')&#13;
					),&#13;
				'default' =&gt; '1'&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'post_info_id',&#13;
				'type' =&gt; 'switch', &#13;
				'title' =&gt; __('Show Post Info - Date, Author Name, Categories etc..', 'asteria'),&#13;
				"default" 		=&gt; 1,&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'post_nextprev_id',&#13;
				'type' =&gt; 'switch', &#13;
				'title' =&gt; __('Show Next and Previous Posts', 'asteria'),&#13;
				"default" 		=&gt; 1,&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'post_comments_id',&#13;
				'type' =&gt; 'switch', &#13;
				'title' =&gt; __('Show Comments', 'asteria'),&#13;
				"default" 		=&gt; 1,&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'post_lightbox_id',&#13;
				'type' =&gt; 'switch', &#13;
				'title' =&gt; __('Lightbox Feature', 'asteria'),&#13;
				"default" 		=&gt; 1,&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'post_gallery_id',&#13;
				'type' =&gt; 'switch', &#13;
				'title' =&gt; __('Beautify My Galleries', 'asteria'),&#13;
				"default" 		=&gt; 1,&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'blog_cat_id',&#13;
				'type' =&gt; 'select',&#13;
				'data' =&gt; 'categories',&#13;
				'title' =&gt; __('Display Blog Posts from a selected Category', 'asteria'), &#13;
				'desc' =&gt; __('If you have setup a Blog page with Blog Page Template, choose a category to get the posts from', 'asteria'),&#13;
				),&#13;
				&#13;
		)&#13;
	);	&#13;
	$sections[] = array(&#13;
		'icon' =&gt; 'phone',&#13;
		'icon_class' =&gt; 'icon-large',&#13;
		'title' =&gt; __('Mobile Layout', 'asteria'),&#13;
		'desc' =&gt; __('Checking each of these below option will only hide these elements from the Mobile layout.', 'asteria'),&#13;
		'fields' =&gt; array(&#13;
			array(&#13;
				'id'=&gt;'hide_mob_slide',&#13;
				'type' =&gt; 'checkbox',&#13;
				'title' =&gt; __('Hide Slider', 'asteria'), &#13;
				'desc' =&gt; '',&#13;
				'default' =&gt; '0'&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'hide_mob_blocks',&#13;
				'type' =&gt; 'checkbox',&#13;
				'title' =&gt; __('Hide Front Page Blocks', 'asteria'), &#13;
				'desc' =&gt; '',&#13;
				'default' =&gt; '0'&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'hide_mob_welcm',&#13;
				'type' =&gt; 'checkbox',&#13;
				'title' =&gt; __('Hide Front Page Welcome Text', 'asteria'), &#13;
				'desc' =&gt; '',&#13;
				'default' =&gt; '0'&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'hide_mob_frontposts',&#13;
				'type' =&gt; 'checkbox',&#13;
				'title' =&gt; __('Hide Front Page Posts', 'asteria'), &#13;
				'desc' =&gt; '',&#13;
				'default' =&gt; '0'&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'hide_mob_footwdgt',&#13;
				'type' =&gt; 'checkbox',&#13;
				'title' =&gt; __('Hide Footer Widgets', 'asteria'), &#13;
				'desc' =&gt; '',&#13;
				'default' =&gt; '0'&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'hide_mob_rightsdbr',&#13;
				'type' =&gt; 'checkbox',&#13;
				'title' =&gt; __('Hide Right Sidebar', 'asteria'), &#13;
				'desc' =&gt; '',&#13;
				'default' =&gt; '0'&#13;
				),&#13;
				&#13;
		)&#13;
	);&#13;
&#13;
	$sections[] = array(&#13;
		'icon' =&gt; 'css',&#13;
		'icon_class' =&gt; 'icon-large',&#13;
		'title' =&gt; __('Custom CSS', 'asteria'),&#13;
		'desc' =&gt; __('Write your custom css here', 'asteria'),&#13;
		'fields' =&gt; array(&#13;
			array(&#13;
				'id'=&gt;'custom-css',&#13;
				'type' =&gt; 'textarea',&#13;
				'validate' =&gt; 'css',&#13;
				),&#13;
				&#13;
		)&#13;
	);	&#13;
	&#13;
	$sections[] = array(&#13;
		'icon' =&gt; 'wrench-alt',&#13;
		'icon_class' =&gt; 'icon-large',&#13;
		'title' =&gt; __('Maintenance Mode', 'asteria'),&#13;
		'fields' =&gt; array(&#13;
			array(&#13;
				'id'=&gt;'offline_id',&#13;
				'type' =&gt; 'switch', &#13;
				'title' =&gt; __('Maintenance Mode', 'asteria'),&#13;
				"default" 		=&gt; 0,&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'offline_date_id',&#13;
				'type' =&gt; 'date',&#13;
				'title' =&gt; __('Date ', 'asteria'), &#13;
				'subtitle' =&gt; __('Site will be online on', 'asteria')&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'offline_time_id',&#13;
				'type' =&gt; 'text',&#13;
				'title' =&gt; ''&#13;
				),&#13;
				&#13;
			array(&#13;
				'id'=&gt;'offline_text_id',&#13;
				'type' =&gt; 'text',&#13;
				'title' =&gt; __('Title ', 'asteria'),&#13;
				'default' =&gt; 'Maintenance Mode'&#13;
				),&#13;
			array(&#13;
				'id'=&gt;'offline_msg_id',&#13;
				'type' =&gt; 'editor',&#13;
				'title' =&gt; __('Message ', 'asteria'), &#13;
				'default' =&gt; 'We are currently undergoing  maintenance. Please try back after',&#13;
				),&#13;
				&#13;
		)&#13;
	);&#13;
	&#13;
	$sections[] = array(&#13;
		'type' =&gt; 'divide',&#13;
	);&#13;
	&#13;
	$sections[] = array(&#13;
		'icon' =&gt; 'exclamation-sign',&#13;
		'icon_class' =&gt; 'icon-large',&#13;
		'title' =&gt; __('About The Theme', 'asteria'),&#13;
		'fields' =&gt; array(&#13;
			array(&#13;
			'id'=&gt;'about_id',&#13;
			'type' =&gt; 'info',&#13;
			'required' =&gt; array('18','equals',array('1','2')),&#13;
			'raw_html'=&gt;true,&#13;
			'desc' =&gt; $about,&#13;
			),		&#13;
		)&#13;
	);	&#13;
	&#13;
	$sections[] = array(&#13;
		'icon' =&gt; 'upload',&#13;
		'icon_class' =&gt; 'icon-large',&#13;
		'title' =&gt; __('Upgrade to PRO', 'asteria'),&#13;
		'fields' =&gt; array(&#13;
			array(&#13;
			'id'=&gt;'upgrade_id',&#13;
			'type' =&gt; 'info',&#13;
			'required' =&gt; array('18','equals',array('1','2')),&#13;
			'raw_html'=&gt;true,&#13;
			'desc' =&gt; $upgrade,&#13;
			),		&#13;
		)&#13;
	);	&#13;
	&#13;
	$sections[] = array(&#13;
		'icon' =&gt; 'book',&#13;
		'icon_class' =&gt; 'icon-large',&#13;
		'title' =&gt; __('Documentation', 'asteria'),&#13;
		'fields' =&gt; array(&#13;
		array(&#13;
			'id'=&gt;'docu_id',&#13;
			'type' =&gt; 'info',&#13;
			'required' =&gt; array('18','equals',array('1','2')),&#13;
			'raw_html'=&gt;true,&#13;
			'desc' =&gt; $documentation,&#13;
			),	&#13;
		)&#13;
	);		&#13;
	&#13;
&#13;
    global $ReduxFramework;&#13;
    $ReduxFramework = new ReduxFramework($sections, $args, $tabs);&#13;
&#13;
}&#13;
add_action('init', 'setup_framework_options', 0);&#13;
&#13;
&#13;
/*&#13;
 * &#13;
 * Custom function for the callback referenced above&#13;
 *&#13;
 */&#13;
function my_custom_field($field, $value) {&#13;
    print_r($field);&#13;
    print_r($value);&#13;
}&#13;
&#13;
/*&#13;
 * &#13;
 * Custom function for the callback validation referenced above&#13;
 *&#13;
 */&#13;
function validate_callback_function($field, $value, $existing_value) {&#13;
    $error = false;&#13;
    $value =  'just testing';&#13;
    /*&#13;
    do your validation&#13;
    &#13;
    if(something) {&#13;
        $value = $value;&#13;
    } elseif(somthing else) {&#13;
        $error = true;&#13;
        $value = $existing_value;&#13;
        $field['msg'] = 'your custom error message';&#13;
    }&#13;
    */&#13;
    &#13;
    $return['value'] = $value;&#13;
    if($error == true) {&#13;
        $return['error'] = $field;&#13;
    }&#13;
    return $return;&#13;
}&#13;
&#13;
/*&#13;
	This is a test function that will let you see when the compiler hook occurs. &#13;
	It only runs if a field	set with compiler=&gt;true is changed.&#13;
*/&#13;
function testCompiler() {&#13;
	//echo "Compiler hook!";&#13;
}&#13;
add_action('redux-compiler-redux-sample-file', 'testCompiler');&#13;
&#13;
&#13;
&#13;
/**&#13;
	Use this function to hide the activation notice telling users about a sample panel.&#13;
**/&#13;
function removeReduxAdminNotice() {&#13;
	delete_option('REDUX_FRAMEWORK_PLUGIN_ACTIVATED_NOTICES');&#13;
}&#13;
add_action('redux_framework_plugin_admin_notice', 'removeReduxAdminNotice');&#13;
