/**
  * Modify the install actions.
  *
  * @since 1.0.0
  */
 public function after()
 {
     if (empty($this->upgrader->result['destination_name'])) {
         return;
     }
     $theme_info = $this->upgrader->theme_info();
     if (empty($theme_info)) {
         return;
     }
     $name = $theme_info->display('Name');
     $stylesheet = $this->upgrader->result['destination_name'];
     $template = $theme_info->get_template();
     $activate_link = add_query_arg(array('action' => 'activate', 'template' => urlencode($template), 'stylesheet' => urlencode($stylesheet)), admin_url('themes.php'));
     $activate_link = wp_nonce_url($activate_link, 'switch-theme_' . $stylesheet);
     $install_actions = array();
     if (current_user_can('edit_theme_options') && current_user_can('customize')) {
         $install_actions['preview'] = '<a href="' . wp_customize_url($stylesheet) . '" class="hide-if-no-customize load-customize"><span aria-hidden="true">' . __('Live Preview', 'envato-market') . '</span><span class="screen-reader-text">' . sprintf(__('Live Preview &#8220;%s&#8221;', 'envato-market'), $name) . '</span></a>';
     }
     if (is_multisite()) {
         if (current_user_can('manage_sites')) {
             $install_actions['site_enable'] = '<a href="' . esc_url(network_admin_url(wp_nonce_url('site-themes.php?id=' . get_current_blog_id() . '&amp;action=enable&amp;theme=' . urlencode($stylesheet), 'enable-theme_' . $stylesheet))) . '" target="_parent">' . __('Site Enable', 'envato-market') . '</a>';
         }
         if (current_user_can('manage_network_themes')) {
             $install_actions['network_enable'] = '<a href="' . esc_url(network_admin_url(wp_nonce_url('themes.php?action=enable&amp;theme=' . urlencode($stylesheet) . '&amp;paged=1&amp;s', 'enable-theme_' . $stylesheet))) . '" target="_parent">' . __('Network Enable', 'envato-market') . '</a>';
         }
     }
     $install_actions['activate'] = '<a href="' . esc_url($activate_link) . '" class="activatelink"><span aria-hidden="true">' . __('Activate', 'envato-market') . '</span><span class="screen-reader-text">' . sprintf(__('Activate &#8220;%s&#8221;', 'envato-market'), $name) . '</span></a>';
     $install_actions['themes_page'] = '<a href="' . esc_url(admin_url('admin.php?page=' . envato_market()->get_slug() . '&tab=themes')) . '" target="_parent">' . __('Return to Theme Installer', 'envato-market') . '</a>';
     if (!$this->result || is_wp_error($this->result) || is_multisite() || !current_user_can('switch_themes')) {
         unset($install_actions['activate'], $install_actions['preview']);
     }
     if (!empty($install_actions)) {
         $this->feedback(implode(' | ', $install_actions));
     }
 }
 static function js_vars()
 {
     $step_statuses = get_option(self::STEP_STATUS_KEY, array());
     $started = get_option(self::STARTED_KEY, false);
     $jetpack_config = array();
     if (class_exists('Jetpack')) {
         $jetpack_config = array('plugin_active' => true, 'configured' => Jetpack::is_active(), 'logo_url' => plugins_url('jetpack/images/jetpack-logo.png'), 'jumpstart_modules' => array_values(self::jumpstart_modules()), 'additional_modules' => array(), 'active_modules' => array_values(Jetpack::init()->get_active_modules()));
     } else {
         $jetpack_config = array('plugin_active' => false, 'configured' => false, 'logo_url' => '', 'jumpstart_modules' => array(), 'additional_modules' => array(), 'active_modules' => array());
     }
     // set the jetpack step status to "completed" if jetpack is active
     if ($jetpack_config['configured']) {
         $step_statuses['jetpack'] = array('completed' => true);
     }
     if (get_option('show_on_front') == 'page') {
         if (get_option('page_for_posts') == 0 || get_option('page_for_posts') == null) {
             $layout = 'website';
         } else {
             $layout = 'site-blog';
         }
     } else {
         $layout = 'blog';
     }
     $themes = array_slice(array_map(array(__CLASS__, 'normalize_installed_theme'), wp_prepare_themes_for_js()), 0, self::MAX_THEMES);
     return array('base_url' => JETPACK_START_BASE_URL, 'nonce' => wp_create_nonce(Jetpack_Start_EndPoints::AJAX_NONCE), 'debug' => WP_DEBUG ? true : false, 'bloginfo' => array('name' => wp_kses_decode_entities(stripslashes(get_bloginfo('name'))), 'description' => wp_kses_decode_entities(stripslashes(get_bloginfo('description')))), 'site_actions' => array('set_title' => 'jps_set_title', 'set_layout' => 'jps_set_layout', 'set_theme' => 'jps_set_theme', 'install_theme' => 'jps_install_theme', 'get_popular_themes' => 'jps_get_popular_themes', 'configure_jetpack' => 'jps_configure_jetpack', 'activate_jetpack_modules' => 'jps_activate_jetpack_modules', 'deactivate_jetpack_modules' => 'jps_deactivate_jetpack_modules', 'list_jetpack_modules' => 'jps_list_jetpack_modules', 'reset_data' => 'jps_reset_data'), 'step_actions' => array('start' => 'jps_started', 'view' => 'jps_step_view', 'skip' => 'jps_step_skip', 'complete' => 'jps_step_complete'), 'jetpack' => $jetpack_config, 'themes' => $themes, 'started' => $started, 'step_status' => $step_statuses, 'steps' => array('layout' => array('current' => $layout), 'advanced_settings' => array('jetpack_modules_url' => admin_url('admin.php?page=jetpack_modules'), 'widgets_url' => admin_url('widgets.php'), 'themes_url' => admin_url('themes.php'), 'plugins_url' => admin_url('plugins.php'), 'customize_url' => wp_customize_url(), 'new_blog_post_url' => admin_url('post-new.php'), 'manage_posts_url' => admin_url('edit.php'), 'new_page_url' => admin_url('post-new.php?post_type=page'), 'manage_pages_url' => admin_url('edit.php?post_type=page'))));
 }
Exemplo n.º 3
0
 /**
  * Create Metabox which links to and explains the WordPress customizer.
  *
  * @uses  wp_customize_url()
  * @since 1.0.2
  */
 function settings_box()
 {
     $customizer_link = wp_customize_url(get_stylesheet());
     echo '<p>';
     _e('The Genesis Bacon Bar is controlled by the WordPress Customizer. ', 'baconbar');
     _e('You can edit the content, display options, and look and feel in real-time.', 'baconbar');
     echo '</p>';
     echo '<p>';
     echo '<a class="button" href="' . $customizer_link . '">' . __('Customize Now', 'baconbar') . '</a>';
     echo '</p>';
 }
/**
* Adds the "Customize" link to the Toolbar.
*
* Core makes the critical mistake of returning if is_admin() in the function instead of in WP_Admin_Bar::add_menus(), so we have to overwrite the entire function.
*
* @since 4.4.0
*
* @param WP_Admin_Bar $wp_admin_bar WP_Admin_Bar instance.
*/
function wp_toolbar_experiments_customize_menu($wp_admin_bar)
{
    // Don't show for users who can't access the customizer.
    if (!current_user_can('customize')) {
        return;
    }
    $current_url = (is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    $customize_url = add_query_arg('url', urlencode($current_url), wp_customize_url());
    $wp_admin_bar->add_menu(array('id' => 'customize', 'title' => __('Customize'), 'href' => $customize_url, 'meta' => array('class' => 'hide-if-no-customize')));
    add_action('wp_before_admin_bar_render', 'wp_customize_support_script');
}
Exemplo n.º 5
0
 /**
  * Notify about the default tagline if the user hasn't changed it
  */
 public function tagline_notice()
 {
     $current_url = is_ssl() ? 'https://' : 'http://';
     $current_url .= sanitize_text_field($_SERVER['SERVER_NAME']) . sanitize_text_field($_SERVER['REQUEST_URI']);
     $customize_url = add_query_arg(array('url' => urlencode($current_url)), wp_customize_url());
     $info_message = sprintf(__('You still have the default WordPress tagline, even an empty one is probably better. %1$sYou can fix this in the customizer%2$s.', 'wordpress-seo'), '<a href="' . esc_attr($customize_url) . '">', '</a>');
     $notification_options = array('type' => Yoast_Notification::ERROR, 'id' => 'wpseo-dismiss-tagline-notice', 'capabilities' => 'manage_options');
     $tagline_notification = new Yoast_Notification($info_message, $notification_options);
     $notification_center = Yoast_Notification_Center::get();
     if ($this->has_default_tagline()) {
         $notification_center->add_notification($tagline_notification);
     } else {
         $notification_center->remove_notification($tagline_notification);
     }
 }
 /**
  * @access public
  */
 public function after()
 {
     if (empty($this->upgrader->result['destination_name'])) {
         return;
     }
     $theme_info = $this->upgrader->theme_info();
     if (empty($theme_info)) {
         return;
     }
     $name = $theme_info->display('Name');
     $stylesheet = $this->upgrader->result['destination_name'];
     $template = $theme_info->get_template();
     $activate_link = add_query_arg(array('action' => 'activate', 'template' => urlencode($template), 'stylesheet' => urlencode($stylesheet)), admin_url('themes.php'));
     $activate_link = wp_nonce_url($activate_link, 'switch-theme_' . $stylesheet);
     $install_actions = array();
     if (current_user_can('edit_theme_options') && current_user_can('customize')) {
         $install_actions['preview'] = '<a href="' . wp_customize_url($stylesheet) . '" class="hide-if-no-customize load-customize"><span aria-hidden="true">' . __('Live Preview') . '</span><span class="screen-reader-text">' . sprintf(__('Live Preview &#8220;%s&#8221;'), $name) . '</span></a>';
     }
     $install_actions['activate'] = '<a href="' . esc_url($activate_link) . '" class="activatelink"><span aria-hidden="true">' . __('Activate') . '</span><span class="screen-reader-text">' . sprintf(__('Activate &#8220;%s&#8221;'), $name) . '</span></a>';
     if (is_network_admin() && current_user_can('manage_network_themes')) {
         $install_actions['network_enable'] = '<a href="' . esc_url(wp_nonce_url('themes.php?action=enable&amp;theme=' . urlencode($stylesheet), 'enable-theme_' . $stylesheet)) . '" target="_parent">' . __('Network Enable') . '</a>';
     }
     if ($this->type == 'web') {
         $install_actions['themes_page'] = '<a href="' . self_admin_url('theme-install.php') . '" target="_parent">' . __('Return to Theme Installer') . '</a>';
     } elseif (current_user_can('switch_themes') || current_user_can('edit_theme_options')) {
         $install_actions['themes_page'] = '<a href="' . self_admin_url('themes.php') . '" target="_parent">' . __('Return to Themes page') . '</a>';
     }
     if (!$this->result || is_wp_error($this->result) || is_network_admin() || !current_user_can('switch_themes')) {
         unset($install_actions['activate'], $install_actions['preview']);
     }
     /**
      * Filters the list of action links available following a single theme installation.
      *
      * @since 2.8.0
      *
      * @param array    $install_actions Array of theme action links.
      * @param object   $api             Object containing WordPress.org API theme data.
      * @param string   $stylesheet      Theme directory name.
      * @param WP_Theme $theme_info      Theme object.
      */
     $install_actions = apply_filters('install_theme_complete_actions', $install_actions, $this->api, $stylesheet, $theme_info);
     if (!empty($install_actions)) {
         $this->feedback(implode(' | ', (array) $install_actions));
     }
 }
 static function js_vars()
 {
     $step_statuses = get_option(self::STEP_STATUS_KEY, array());
     $started = get_option(self::STARTED_KEY, false);
     $contact_page_id = get_option(self::CONTACTPAGE_ID_KEY, false);
     if ($contact_page_id) {
         $contact_page_info = self::contact_page_to_json($contact_page_id);
     } else {
         $contact_page_info = null;
     }
     $jetpack_config = array();
     if (class_exists('Jetpack')) {
         $jetpack_config = array('plugin_active' => true, 'configured' => Jetpack::is_active(), 'logo_url' => plugins_url('jetpack/images/jetpack-logo.png'), 'jumpstart_modules' => array_values(self::jumpstart_modules()), 'additional_modules' => array(), 'active_modules' => array_values(Jetpack::init()->get_active_modules()));
     } else {
         $jetpack_config = array('plugin_active' => false, 'configured' => false, 'logo_url' => '', 'jumpstart_modules' => array(), 'additional_modules' => array(), 'active_modules' => array());
     }
     // set the jetpack step status to "completed" if jetpack is active
     if ($jetpack_config['configured']) {
         $step_statuses['jetpack'] = array('completed' => true);
     }
     return array('base_url' => JETPACK_ONBOARDING_BASE_URL, 'site_url' => site_url(), 'nonce' => wp_create_nonce(Jetpack_Onboarding_EndPoints::AJAX_NONCE), 'debug' => WP_DEBUG ? true : false, 'bloginfo' => array('name' => wp_kses_decode_entities(stripslashes(get_bloginfo('name'))), 'description' => wp_kses_decode_entities(stripslashes(get_bloginfo('description')))), 'site_actions' => array('set_title' => 'jpo_set_title', 'set_layout' => 'jpo_set_layout', 'set_theme' => 'jpo_set_theme', 'install_theme' => 'jpo_install_theme', 'get_popular_themes' => 'jpo_get_popular_themes', 'configure_jetpack' => 'jpo_configure_jetpack', 'activate_jetpack_modules' => 'jpo_activate_jetpack_modules', 'deactivate_jetpack_modules' => 'jpo_deactivate_jetpack_modules', 'list_jetpack_modules' => 'jpo_list_jetpack_modules', 'reset_data' => 'jpo_reset_data', 'build_contact_page' => 'jpo_build_contact_page'), 'step_actions' => array('start' => 'jpo_started', 'disable' => 'jpo_disabled', 'view' => 'jpo_step_view', 'skip' => 'jpo_step_skip', 'complete' => 'jpo_step_complete'), 'jetpack' => $jetpack_config, 'started' => $started, 'step_status' => $step_statuses, 'steps' => array('layout' => self::get_layout(), 'contact_page' => $contact_page_info, 'advanced_settings' => array('jetpack_modules_url' => admin_url('admin.php?page=jetpack_modules'), 'jetpack_dash' => admin_url('admin.php?page=jetpack'), 'widgets_url' => admin_url('widgets.php'), 'themes_url' => admin_url('themes.php'), 'plugins_url' => admin_url('plugins.php'), 'customize_url' => wp_customize_url(), 'new_blog_post_url' => admin_url('post-new.php'), 'manage_posts_url' => admin_url('edit.php'), 'new_page_url' => admin_url('post-new.php?post_type=page'), 'manage_pages_url' => admin_url('edit.php?post_type=page'))));
 }
 /**
  * @access public
  */
 public function after()
 {
     $this->decrement_update_count('theme');
     $update_actions = array();
     if (!empty($this->upgrader->result['destination_name']) && ($theme_info = $this->upgrader->theme_info())) {
         $name = $theme_info->display('Name');
         $stylesheet = $this->upgrader->result['destination_name'];
         $template = $theme_info->get_template();
         $activate_link = add_query_arg(array('action' => 'activate', 'template' => urlencode($template), 'stylesheet' => urlencode($stylesheet)), admin_url('themes.php'));
         $activate_link = wp_nonce_url($activate_link, 'switch-theme_' . $stylesheet);
         if (get_stylesheet() == $stylesheet) {
             if (current_user_can('edit_theme_options') && current_user_can('customize')) {
                 $update_actions['preview'] = '<a href="' . wp_customize_url($stylesheet) . '" class="hide-if-no-customize load-customize"><span aria-hidden="true">' . __('Customize') . '</span><span class="screen-reader-text">' . sprintf(__('Customize &#8220;%s&#8221;'), $name) . '</span></a>';
             }
         } elseif (current_user_can('switch_themes')) {
             if (current_user_can('edit_theme_options') && current_user_can('customize')) {
                 $update_actions['preview'] = '<a href="' . wp_customize_url($stylesheet) . '" class="hide-if-no-customize load-customize"><span aria-hidden="true">' . __('Live Preview') . '</span><span class="screen-reader-text">' . sprintf(__('Live Preview &#8220;%s&#8221;'), $name) . '</span></a>';
             }
             $update_actions['activate'] = '<a href="' . esc_url($activate_link) . '" class="activatelink"><span aria-hidden="true">' . __('Activate') . '</span><span class="screen-reader-text">' . sprintf(__('Activate &#8220;%s&#8221;'), $name) . '</span></a>';
         }
         if (!$this->result || is_wp_error($this->result) || is_network_admin()) {
             unset($update_actions['preview'], $update_actions['activate']);
         }
     }
     $update_actions['themes_page'] = '<a href="' . self_admin_url('themes.php') . '" target="_parent">' . __('Return to Themes page') . '</a>';
     /**
      * Filter the list of action links available following a single theme update.
      *
      * @since 2.8.0
      *
      * @param array  $update_actions Array of theme action links.
      * @param string $theme          Theme directory name.
      */
     $update_actions = apply_filters('update_theme_complete_actions', $update_actions, $this->theme);
     if (!empty($update_actions)) {
         $this->feedback(implode(' | ', (array) $update_actions));
     }
 }
Exemplo n.º 9
0
function shoestrap_footer_icon()
{
    ?>
  <?php 
    if (current_user_can('edit_theme_options')) {
        ?>
    <style>
    </style>
    <div id="shoestrap_icon">
      <?php 
        $current_url = (is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
        $href = add_query_arg('url', urlencode($current_url), wp_customize_url());
        ?>
      <a href="<?php 
        echo $href;
        ?>
"><i class="icon-cogs"></i></a>
    </div>
  <?php 
    }
    ?>
  </div>
<?php 
}
    function display_rows()
    {
        $themes = $this->items;
        foreach ($themes as $theme) {
            ?>
<div class="available-theme"><?php 
            $template = $theme->get_template();
            $stylesheet = $theme->get_stylesheet();
            $title = $theme->display('Name');
            $version = $theme->display('Version');
            $author = $theme->display('Author');
            $activate_link = wp_nonce_url("themes.php?action=activate&amp;template=" . urlencode($template) . "&amp;stylesheet=" . urlencode($stylesheet), 'switch-theme_' . $stylesheet);
            $preview_link = esc_url(add_query_arg(array('preview' => 1, 'template' => urlencode($template), 'stylesheet' => urlencode($stylesheet), 'preview_iframe' => true, 'TB_iframe' => 'true'), home_url('/')));
            $actions = array();
            $actions['activate'] = '<a href="' . $activate_link . '" class="activatelink" title="' . esc_attr(sprintf(__('Activate &#8220;%s&#8221;'), $title)) . '">' . __('Activate') . '</a>';
            $actions['preview'] = '<a href="' . $preview_link . '" class="hide-if-customize" title="' . esc_attr(sprintf(__('Preview &#8220;%s&#8221;'), $title)) . '">' . __('Preview') . '</a>';
            if (current_user_can('edit_theme_options')) {
                $actions['preview'] .= '<a href="' . wp_customize_url($stylesheet) . '" class="load-customize hide-if-no-customize">' . __('Live Preview') . '</a>';
            }
            if (!is_multisite() && current_user_can('delete_themes')) {
                $actions['delete'] = '<a class="submitdelete deletion" href="' . wp_nonce_url('themes.php?action=delete&amp;stylesheet=' . urlencode($stylesheet), 'delete-theme_' . $stylesheet) . '" onclick="' . "return confirm( '" . esc_js(sprintf(__("You are about to delete this theme '%s'\n  'Cancel' to stop, 'OK' to delete."), $title)) . "' );" . '">' . __('Delete') . '</a>';
            }
            $actions = apply_filters('theme_action_links', $actions, $theme);
            $delete_action = isset($actions['delete']) ? '<div class="delete-theme">' . $actions['delete'] . '</div>' : '';
            unset($actions['delete']);
            ?>

			<a href="<?php 
            echo $preview_link;
            ?>
" class="screenshot hide-if-customize">
				<?php 
            if ($screenshot = $theme->get_screenshot()) {
                ?>
					<img src="<?php 
                echo esc_url($screenshot);
                ?>
" alt="" />
				<?php 
            }
            ?>
			</a>
			<a href="<?php 
            echo wp_customize_url($stylesheet);
            ?>
" class="screenshot load-customize hide-if-no-customize">
				<?php 
            if ($screenshot = $theme->get_screenshot()) {
                ?>
					<img src="<?php 
                echo esc_url($screenshot);
                ?>
" alt="" />
				<?php 
            }
            ?>
			</a>

			<h3><?php 
            echo $title;
            ?>
</h3>
			<div class="theme-author"><?php 
            printf(__('By %s'), $author);
            ?>
</div>
			<div class="action-links">
				<ul>
					<?php 
            foreach ($actions as $action) {
                ?>
						<li><?php 
                echo $action;
                ?>
</li>
					<?php 
            }
            ?>
					<li class="hide-if-no-js"><a href="#" class="theme-detail"><?php 
            _e('Details');
            ?>
</a></li>
				</ul>
				<?php 
            echo $delete_action;
            ?>

				<?php 
            theme_update_available($theme);
            ?>
			</div>

			<div class="themedetaildiv hide-if-js">
				<p><strong><?php 
            _e('Version: ');
            ?>
</strong><?php 
            echo $version;
            ?>
</p>
				<p><?php 
            echo $theme->display('Description');
            ?>
</p>
				<?php 
            if ($theme->parent()) {
                printf(' <p class="howto">' . __('This <a href="%1$s">child theme</a> requires its parent theme, %2$s.') . '</p>', __('http://codex.wordpress.org/Child_Themes'), $theme->parent()->display('Name'));
            }
            ?>
			</div>

			</div>
		<?php 
        }
    }
Exemplo n.º 11
0
/**
 * Displays a welcome panel to introduce users to WordPress.
 *
 * @since 3.3.0
 */
function wp_welcome_panel()
{
    ?>
	<div class="welcome-panel-content">
	<h3><?php 
    _e('Welcome to WordPress!');
    ?>
</h3>
	<p class="about-description"><?php 
    _e('We&#8217;ve assembled some links to get you started:');
    ?>
</p>
	<div class="welcome-panel-column-container">
	<div class="welcome-panel-column">
		<?php 
    if (current_user_can('customize')) {
        ?>
			<h4><?php 
        _e('Get Started');
        ?>
</h4>
			<a class="button button-primary button-hero load-customize hide-if-no-customize" href="<?php 
        echo wp_customize_url();
        ?>
"><?php 
        _e('Customize Your Site');
        ?>
</a>
		<?php 
    }
    ?>
		<a class="button button-primary button-hero hide-if-customize" href="<?php 
    echo admin_url('themes.php');
    ?>
"><?php 
    _e('Customize Your Site');
    ?>
</a>
		<?php 
    if (current_user_can('install_themes') || current_user_can('switch_themes') && count(wp_get_themes(array('allowed' => true))) > 1) {
        ?>
			<p class="hide-if-no-customize"><?php 
        printf(__('or, <a href="%s">change your theme completely</a>'), admin_url('themes.php'));
        ?>
</p>
		<?php 
    }
    ?>
	</div>
	<div class="welcome-panel-column">
		<h4><?php 
    _e('Next Steps');
    ?>
</h4>
		<ul>
		<?php 
    if ('page' == get_option('show_on_front') && !get_option('page_for_posts')) {
        ?>
			<li><?php 
        printf('<a href="%s" class="welcome-icon welcome-edit-page">' . __('Edit your front page') . '</a>', get_edit_post_link(get_option('page_on_front')));
        ?>
</li>
			<li><?php 
        printf('<a href="%s" class="welcome-icon welcome-add-page">' . __('Add additional pages') . '</a>', admin_url('post-new.php?post_type=page'));
        ?>
</li>
		<?php 
    } elseif ('page' == get_option('show_on_front')) {
        ?>
			<li><?php 
        printf('<a href="%s" class="welcome-icon welcome-edit-page">' . __('Edit your front page') . '</a>', get_edit_post_link(get_option('page_on_front')));
        ?>
</li>
			<li><?php 
        printf('<a href="%s" class="welcome-icon welcome-add-page">' . __('Add additional pages') . '</a>', admin_url('post-new.php?post_type=page'));
        ?>
</li>
			<li><?php 
        printf('<a href="%s" class="welcome-icon welcome-write-blog">' . __('Add a blog post') . '</a>', admin_url('post-new.php'));
        ?>
</li>
		<?php 
    } else {
        ?>
			<li><?php 
        printf('<a href="%s" class="welcome-icon welcome-write-blog">' . __('Write your first blog post') . '</a>', admin_url('post-new.php'));
        ?>
</li>
			<li><?php 
        printf('<a href="%s" class="welcome-icon welcome-add-page">' . __('Add an About page') . '</a>', admin_url('post-new.php?post_type=page'));
        ?>
</li>
		<?php 
    }
    ?>
			<li><?php 
    printf('<a href="%s" class="welcome-icon welcome-view-site">' . __('View your site') . '</a>', home_url('/'));
    ?>
</li>
		</ul>
	</div>
	<div class="welcome-panel-column welcome-panel-last">
		<h4><?php 
    _e('More Actions');
    ?>
</h4>
		<ul>
		<?php 
    if (current_theme_supports('widgets') || current_theme_supports('menus')) {
        ?>
			<li><div class="welcome-icon welcome-widgets-menus"><?php 
        if (current_theme_supports('widgets') && current_theme_supports('menus')) {
            printf(__('Manage <a href="%1$s">widgets</a> or <a href="%2$s">menus</a>'), admin_url('widgets.php'), admin_url('nav-menus.php'));
        } elseif (current_theme_supports('widgets')) {
            echo '<a href="' . admin_url('widgets.php') . '">' . __('Manage widgets') . '</a>';
        } else {
            echo '<a href="' . admin_url('nav-menus.php') . '">' . __('Manage menus') . '</a>';
        }
        ?>
</div></li>
		<?php 
    }
    ?>
		<?php 
    if (current_user_can('manage_options')) {
        ?>
			<li><?php 
        printf('<a href="%s" class="welcome-icon welcome-comments">' . __('Turn comments on or off') . '</a>', admin_url('options-discussion.php'));
        ?>
</li>
		<?php 
    }
    ?>
			<li><?php 
    printf('<a href="%s" class="welcome-icon welcome-learn-more">' . __('Learn more about getting started') . '</a>', __('https://codex.wordpress.org/First_Steps_With_WordPress'));
    ?>
</li>
		</ul>
	</div>
	</div>
	</div>
	<?php 
}
Exemplo n.º 12
0
/**
 * Prepare themes for JavaScript.
 *
 * @since 3.8.0
 *
 * @param array $themes Optional. Array of WP_Theme objects to prepare.
 *                      Defaults to all allowed themes.
 *
 * @return array An associative array of theme data, sorted by name.
 */
function wp_prepare_themes_for_js($themes = null)
{
    $current_theme = get_stylesheet();
    /**
     * Filter theme data before it is prepared for JavaScript.
     *
     * Passing a non-empty array will result in wp_prepare_themes_for_js() returning
     * early with that value instead.
     *
     * @since 4.2.0
     *
     * @param array      $prepared_themes An associative array of theme data. Default empty array.
     * @param null|array $themes          An array of WP_Theme objects to prepare, if any.
     * @param string     $current_theme   The current theme slug.
     */
    $prepared_themes = (array) apply_filters('pre_prepare_themes_for_js', array(), $themes, $current_theme);
    if (!empty($prepared_themes)) {
        return $prepared_themes;
    }
    // Make sure the current theme is listed first.
    $prepared_themes[$current_theme] = array();
    if (null === $themes) {
        $themes = wp_get_themes(array('allowed' => true));
        if (!isset($themes[$current_theme])) {
            $themes[$current_theme] = wp_get_theme();
        }
    }
    $updates = array();
    if (current_user_can('update_themes')) {
        $updates_transient = get_site_transient('update_themes');
        if (isset($updates_transient->response)) {
            $updates = $updates_transient->response;
        }
    }
    WP_Theme::sort_by_name($themes);
    $parents = array();
    /** @type WP_Theme $theme */
    foreach ($themes as $theme) {
        $slug = $theme->get_stylesheet();
        $encoded_slug = urlencode($slug);
        $parent = false;
        if ($theme->parent()) {
            $parent = $theme->parent()->display('Name');
            $parents[$slug] = $theme->parent()->get_stylesheet();
        }
        $prepared_themes[$slug] = array('id' => $slug, 'name' => $theme->display('Name'), 'screenshot' => array($theme->get_screenshot()), 'description' => $theme->display('Description'), 'author' => $theme->display('Author', false, true), 'authorAndUri' => $theme->display('Author'), 'version' => $theme->display('Version'), 'tags' => $theme->display('Tags'), 'parent' => $parent, 'active' => $slug === $current_theme, 'hasUpdate' => isset($updates[$slug]), 'update' => get_theme_update_available($theme), 'actions' => array('activate' => current_user_can('switch_themes') ? wp_nonce_url(admin_url('themes.php?action=activate&amp;stylesheet=' . $encoded_slug), 'switch-theme_' . $slug) : null, 'customize' => current_user_can('edit_theme_options') && current_user_can('customize') ? wp_customize_url($slug) : null, 'preview' => add_query_arg(array('preview' => 1, 'template' => urlencode($theme->get_template()), 'stylesheet' => urlencode($slug), 'preview_iframe' => true, 'TB_iframe' => true), home_url('/')), 'delete' => current_user_can('delete_themes') ? wp_nonce_url(admin_url('themes.php?action=delete&amp;stylesheet=' . $encoded_slug), 'delete-theme_' . $slug) : null));
    }
    // Remove 'delete' action if theme has an active child
    if (!empty($parents) && array_key_exists($current_theme, $parents)) {
        unset($prepared_themes[$parents[$current_theme]]['actions']['delete']);
    }
    /**
     * Filter the themes prepared for JavaScript, for themes.php.
     *
     * Could be useful for changing the order, which is by name by default.
     *
     * @since 3.8.0
     *
     * @param array $prepared_themes Array of themes.
     */
    $prepared_themes = apply_filters('wp_prepare_themes_for_js', $prepared_themes);
    $prepared_themes = array_values($prepared_themes);
    return array_filter($prepared_themes);
}
Exemplo n.º 13
0
        public function setSections()
        {
            /**
                          Used within different fields. Simply examples. Search for ACTUAL DECLARATION for field examples
                         * */
            // Background Patterns Reader
            $sample_patterns_path = ReduxFramework::$_dir . '../sample/patterns/';
            $sample_patterns_url = ReduxFramework::$_url . '../sample/patterns/';
            $sample_patterns = array();
            if (is_dir($sample_patterns_path)) {
                if ($sample_patterns_dir = opendir($sample_patterns_path)) {
                    $sample_patterns = array();
                    while (($sample_patterns_file = readdir($sample_patterns_dir)) !== false) {
                        if (stristr($sample_patterns_file, '.png') !== false || stristr($sample_patterns_file, '.jpg') !== false) {
                            $name = explode('.', $sample_patterns_file);
                            $name = str_replace('.' . end($name), '', $sample_patterns_file);
                            $sample_patterns[] = array('alt' => $name, 'img' => $sample_patterns_url . $sample_patterns_file);
                        }
                    }
                }
            }
            ob_start();
            $ct = wp_get_theme();
            $this->theme = $ct;
            $item_name = $this->theme->get('Name');
            $tags = $this->theme->Tags;
            $screenshot = $this->theme->get_screenshot();
            $class = $screenshot ? 'has-screenshot' : '';
            $customize_title = sprintf(__('Customize &#8220;%s&#8221;', 'redux-framework-demo'), $this->theme->display('Name'));
            ?>
            <div id="current-theme" class="<?php 
            echo esc_attr($class);
            ?>
">
            <?php 
            if ($screenshot) {
                ?>
                <?php 
                if (current_user_can('edit_theme_options')) {
                    ?>
                        <a href="<?php 
                    echo wp_customize_url();
                    ?>
" class="load-customize hide-if-no-customize" title="<?php 
                    echo esc_attr($customize_title);
                    ?>
">
                            <img src="<?php 
                    echo esc_url($screenshot);
                    ?>
" alt="<?php 
                    esc_attr_e('Current theme preview');
                    ?>
" />
                        </a>
                <?php 
                }
                ?>
                    <img class="hide-if-customize" src="<?php 
                echo esc_url($screenshot);
                ?>
" alt="<?php 
                esc_attr_e('Current theme preview');
                ?>
" />
                <?php 
            }
            ?>

                <h4><?php 
            echo $this->theme->display('Name');
            ?>
</h4>

                <div>
                    <ul class="theme-info">
                        <li><?php 
            printf(__('By %s', 'redux-framework-demo'), $this->theme->display('Author'));
            ?>
</li>
                        <li><?php 
            printf(__('Version %s', 'redux-framework-demo'), $this->theme->display('Version'));
            ?>
</li>
                        <li><?php 
            echo '<strong>' . __('Tags', 'redux-framework-demo') . ':</strong> ';
            printf($this->theme->display('Tags'));
            ?>
</li>
                    </ul>
                    <p class="theme-description"><?php 
            echo $this->theme->display('Description');
            ?>
</p>
            <?php 
            if ($this->theme->parent()) {
                printf(' <p class="howto">' . __('This <a href="%1$s">child theme</a> requires its parent theme, %2$s.') . '</p>', __('http://codex.wordpress.org/Child_Themes', 'redux-framework-demo'), $this->theme->parent()->display('Name'));
            }
            ?>

                </div>
            </div>

            <?php 
            $item_info = ob_get_contents();
            ob_end_clean();
            $sampleHTML = '';
            if (file_exists(dirname(__FILE__) . '/info-html.html')) {
                Redux_Functions::initWpFilesystem();
                global $wp_filesystem;
                $sampleHTML = $wp_filesystem->get_contents(dirname(__FILE__) . '/info-html.html');
            }
            $imagepath = get_template_directory_uri() . '/images/';
            // ACTUAL DECLARATION OF SECTIONS
            $this->sections[] = array('title' => __('General Settings', 'redux-framework-demo'), 'desc' => '', 'icon' => 'el-icon-home', 'fields' => array(array('id' => 'logo', 'type' => 'media', 'url' => true, 'title' => __('Logo', 'redux-framework-demo'), 'compiler' => 'true', 'default' => array('url' => 'http://s.wordpress.org/style/images/codeispoetry.png')), array('id' => 'favicon', 'type' => 'media', 'url' => true, 'title' => __('Favicon', 'redux-framework-demo'), 'compiler' => 'true', 'default' => array('url' => '')), array('id' => 'apple_icon', 'type' => 'media', 'url' => true, 'title' => __('Apple Touch Icon', 'redux-framework-demo'), 'compiler' => 'true', 'desc' => __('Upload your Apple touch icon 57x57.', 'redux-framework-demo')), array('id' => 'apple_icon_57', 'type' => 'media', 'url' => true, 'title' => __('Apple Touch Icon 57x57', 'redux-framework-demo'), 'compiler' => 'true', 'desc' => __('Upload your Apple touch icon 57x57.', 'redux-framework-demo')), array('id' => 'apple_icon_72', 'type' => 'media', 'url' => true, 'title' => __('Apple Touch Icon 72x72', 'redux-framework-demo'), 'compiler' => 'true', 'desc' => __('Upload your Apple touch icon 72x72.', 'redux-framework-demo')), array('id' => 'apple_icon_114', 'type' => 'media', 'url' => true, 'title' => __('Apple Touch Icon 114x114', 'redux-framework-demo'), 'compiler' => 'true', 'desc' => __('Upload your Apple touch icon 114x114.', 'redux-framework-demo')), array('id' => 'apple_icon_144', 'type' => 'media', 'url' => true, 'title' => __('Apple Touch Icon 144x144', 'redux-framework-demo'), 'compiler' => 'true', 'desc' => __('Upload your Apple touch icon 144x144.', 'redux-framework-demo')), array('id' => 'opt-divide', 'type' => 'divide'), array('id' => '404_text', 'type' => 'editor', 'title' => __('404 Text', 'redux-framework-demo'), 'subtitle' => __('You can use the following shortcodes in your footer text: [wp-url] [site-url] [theme-url] [login-url] [logout-url] [site-title] [site-tagline] [current-year]', 'redux-framework-demo'), 'default' => "This is Photoshop's version  of Lorem Ipsum. Proin gravida nibh vel velit auctor aliquet. Aenean sollicitudin, lorem quis bibendum auctor, nisi elit consequat ipsum,"), array('id' => 'is-effect-scroll', 'type' => 'switch', 'title' => __('Enable Effect Scroll', 'redux-framework-demo'), 'default' => true), array('id' => 'is-back-to-top', 'type' => 'switch', 'title' => __('Enable Back to Top button', 'redux-framework-demo'), 'default' => true)));
            $path_image = PGL_FRAMEWORK_URI . 'admin/images/';
            $this->sections[] = array('icon' => 'el-icon-website', 'title' => __('Styling Options', 'redux-framework-demo'), 'fields' => array(array('id' => 'style_layout', 'type' => 'button_set', 'title' => __('Layout Style', 'redux-framework-demo'), 'desc' => __('Choose Your Layout Style.', 'redux-framework-demo'), 'options' => array('wide' => 'Wide', 'boxed' => 'Boxed'), 'default' => 'wide'), array('id' => 'style_body_background', 'type' => 'background', 'output' => array('body'), 'required' => array('style_layout', '=', 'boxed'), 'title' => __('Body Background', 'redux-framework-demo'), 'default' => array('background-color' => '#ddd')), array('id' => 'style_main_color', 'type' => 'image_select', 'compiler' => true, 'title' => __('Main Color', 'redux-framework-demo'), 'options' => array('#dd4e4e' => array('img' => $path_image . '06.jpg'), '#1abc9c' => array('img' => $path_image . '01.jpg'), '#3598db' => array('img' => $path_image . '02.jpg'), '#c2a772' => array('img' => $path_image . '03.jpg'), '#36c877' => array('img' => $path_image . '04.jpg'), '#e99b1f' => array('img' => $path_image . '05.jpg'), '#a57bcd' => array('img' => $path_image . '07.jpg'), '#e9bf1d' => array('img' => $path_image . '08.jpg'), 'custom' => array('img' => $path_image . '09.jpg')), 'default' => '#dd4e4e'), array('id' => 'style_main_custom', 'type' => 'color', 'title' => __('Main Color Custom', 'redux-framework-demo'), 'default' => '#FFFFFF', 'validate' => 'color', 'transparent' => false, 'required' => array('style_main_color', '=', 'custom'), 'subtitle' => __('Select your themes alternative color scheme.', 'redux-framework-demo')), array('id' => 'opt-divide', 'type' => 'divide'), array('id' => 'custom-css', 'type' => 'ace_editor', 'title' => __('CSS Code', 'redux-framework-demo'), 'subtitle' => __('Paste your CSS code here.', 'redux-framework-demo'), 'mode' => 'css', 'theme' => 'monokai', 'desc' => 'Possible modes can be found at <a href="http://ace.c9.io" target="_blank">http://ace.c9.io/</a>.', 'default' => ""), array('id' => 'custom-js', 'type' => 'ace_editor', 'title' => __('JS Code', 'redux-framework-demo'), 'subtitle' => __('Paste your JS code here.', 'redux-framework-demo'), 'mode' => 'js', 'theme' => 'monokai', 'desc' => 'Possible modes can be found at <a href="http://ace.c9.io" target="_blank">http://ace.c9.io/</a>.', 'default' => "")));
            $this->sections[] = array('icon' => 'el-icon-font', 'title' => __('Fonts Options', 'redux-framework-demo'), 'subsection' => true, 'fields' => array(array('id' => 'font-main', 'type' => 'typography', 'title' => __('Main Font', 'redux-framework-demo'), 'google' => true, 'font-backup' => false, 'font-style' => false, 'text-align' => false, 'line-height' => false, 'color' => false, 'font-size' => true, 'units' => 'px', 'font_family_clear' => true, 'output' => array('body'), 'default' => array('font-size' => '15px'))));
            $this->sections[] = array('icon' => 'el-icon-qrcode', 'title' => __('Header Settings', 'redux-framework-demo'), 'fields' => array(array('id' => 'header', 'type' => 'image_select', 'compiler' => true, 'title' => __('Header Layout', 'redux-framework-demo'), 'subtitle' => __('Images for layout header.', 'redux-framework-demo'), 'options' => array('1' => array('alt' => 'Header Style 1', 'img' => $imagepath . 'headers/header-1.png'), '2' => array('alt' => 'Header Style 2', 'img' => $imagepath . 'headers/header-2.png'), '3' => array('alt' => 'Header Style 3', 'img' => $imagepath . 'headers/header-3.png'), '4' => array('alt' => 'Header Style 4', 'img' => $imagepath . 'headers/header-4.png')), 'default' => '1'), array('id' => 'header_topbar_text', 'type' => 'textarea', 'required' => array('header', '=', '4'), 'title' => __('Text Topbar Left', 'redux-framework-demo'), 'default' => 'Free Shipping and Returns'), array('id' => 'header-is-switch-language', 'type' => 'switch', 'title' => __('Enable Switch Languages', 'redux-framework-demo'), 'default' => true), array('id' => 'header-is-cart', 'type' => 'switch', 'title' => __('Enable Cart Header', 'redux-framework-demo'), 'default' => true), array('id' => 'header-is-user', 'type' => 'switch', 'title' => __('Enable User Header', 'redux-framework-demo'), 'default' => true), array('id' => 'header-is-search', 'type' => 'switch', 'title' => __('Enable Search Header', 'redux-framework-demo'), 'default' => true)));
            $this->sections[] = array('title' => __('Header Sticky', 'redux-framework-demo'), 'subsection' => true, 'fields' => array(array('id' => 'header-is-sticky', 'type' => 'switch', 'title' => __('Enable Header Sticky', 'redux-framework-demo'), 'default' => true), array('id' => 'header-is-cart-sticky', 'type' => 'switch', 'title' => __('Enable Cart Header', 'redux-framework-demo'), 'default' => true, 'required' => array('header-is-sticky', '=', '1')), array('id' => 'header-is-user-sticky', 'type' => 'switch', 'title' => __('Enable User Header', 'redux-framework-demo'), 'default' => false, 'required' => array('header-is-sticky', '=', '1')), array('id' => 'header-is-search-sticky', 'type' => 'switch', 'title' => __('Enable Search Header', 'redux-framework-demo'), 'default' => true, 'required' => array('header-is-sticky', '=', '1'))));
            $footers_type = get_posts(array('posts_per_page' => -1, 'post_type' => 'footer'));
            $footers_option = array();
            foreach ($footers_type as $key => $value) {
                $footers_option[$value->ID] = $value->post_title;
            }
            $this->sections[] = array('icon' => 'el-icon-list-alt', 'title' => __('Footer Settings', 'redux-framework-demo'), 'fields' => array(array('id' => 'is-footer-custom', 'type' => 'switch', 'title' => __('Enable Footer Customize', 'redux-framework-demo'), 'default' => false), array('id' => 'footer', 'type' => 'select', 'required' => array('is-footer-custom', '=', '1'), 'title' => __('Footer Item', 'redux-framework-demo'), 'options' => $footers_option, 'default' => '')));
            $this->sections[] = array('icon' => 'el-icon-bold', 'title' => __('Blog Setting', 'redux-framework-demo'), 'fields' => array(array('id' => 'blog-layout', 'type' => 'image_select', 'title' => __('Images Option for Layout', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This uses some of the built in images, you can use them for layout options.', 'redux-framework-demo'), 'options' => array('1' => array('alt' => '1 Column', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'), '2' => array('alt' => '2 Column Left', 'img' => ReduxFramework::$_url . 'assets/img/2cl.png'), '3' => array('alt' => '2 Column Right', 'img' => ReduxFramework::$_url . 'assets/img/2cr.png'), '4' => array('alt' => '3 Column Middle', 'img' => ReduxFramework::$_url . 'assets/img/3cm.png'), '5' => array('alt' => '3 Column Left', 'img' => ReduxFramework::$_url . 'assets/img/3cl.png'), '6' => array('alt' => '3 Column Right', 'img' => ReduxFramework::$_url . 'assets/img/3cr.png')), 'default' => '1'), array('id' => 'blog-left-sidebar', 'type' => 'select', 'title' => __('Sidebar Left', 'redux-framework-demo'), 'data' => 'sidebars', 'default' => 'sidebar-left'), array('id' => 'blog-right-sidebar', 'type' => 'select', 'title' => __('Sidebar Right', 'redux-framework-demo'), 'data' => 'sidebars', 'default' => 'sidebar-right')));
            $this->sections[] = array('icon' => ' el-icon-rss', 'title' => __('SEO Settings', 'redux-framework-demo'), 'fields' => array(array('id' => 'is-seo', 'type' => 'switch', 'title' => __('Enable SEO options', 'redux-framework-demo'), 'default' => true), array('id' => 'seo-keywords', 'type' => 'textarea', 'required' => array('is-seo', '=', '1'), 'title' => __('SEO Keywords', 'redux-framework-demo'), 'desc' => 'Paste your SEO Keywords. This will be added into the meta tag keywords in header.', 'default' => ''), array('id' => 'seo-description', 'type' => 'textarea', 'required' => array('is-seo', '=', '1'), 'title' => __('SEO Description', 'redux-framework-demo'), 'desc' => 'Paste your SEO Description. This will be added into the meta tag description in header.', 'default' => '')));
            $this->sections[] = array('icon' => 'el-icon-shopping-cart', 'title' => __('Woocommerce Settings', 'redux-framework-demo'), 'fields' => array(array('id' => 'woo-is-quickview', 'type' => 'switch', 'title' => __('Enable QuickView', 'redux-framework-demo'), 'default' => true), array('id' => 'woo-is-effect-thumbnail', 'type' => 'switch', 'title' => __('Enable Effect Image', 'redux-framework-demo'), 'default' => true), array('id' => 'woo-effect-thumbnail-skin', 'type' => 'select', 'required' => array('woo-is-effect-thumbnail', '=', '1'), 'title' => __('Effect Skin', 'redux-framework-demo'), 'options' => array('we-fade' => 'Fade', 'we-bottom-to-top' => 'Bottom to Top', 'we-flip-horizontal' => 'Flip Horizontal', 'we-flip-vertical' => 'Flip Vertical'), 'default' => 'we-bottom-to-top'), array('id' => 'woo-is-effect-add-cart', 'type' => 'switch', 'title' => __('Enable Effect Fly Add to Cart', 'redux-framework-demo'), 'default' => true)));
            $this->sections[] = array('title' => __('Product Archives', 'redux-framework-demo'), 'subsection' => true, 'fields' => array(array('id' => 'woo-shop-layout', 'type' => 'image_select', 'compiler' => true, 'title' => __('Shop Layout', 'redux-framework-demo'), 'subtitle' => __('Select main content and sidebar alignment. Choose between 1, 2 or 3 column layout.', 'redux-framework-demo'), 'options' => array('1' => array('alt' => '1 Column', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'), '2' => array('alt' => '2 Column Left', 'img' => ReduxFramework::$_url . 'assets/img/2cl.png'), '3' => array('alt' => '2 Column Right', 'img' => ReduxFramework::$_url . 'assets/img/2cr.png')), 'default' => '2'), array('id' => 'woo-shop-sidebar', 'type' => 'select', 'title' => __('Shop Sidebar', 'redux-framework-demo'), 'data' => 'sidebars', 'default' => 'sidebar-left'), array('id' => 'woo-shop-number', 'type' => 'text', 'title' => __('Shop show products', 'redux-framework-demo'), 'desc' => __('To Change number of products displayed per page.', 'redux-framework-demo'), 'validate' => 'numeric', 'default' => '10'), array('id' => 'woo-shop-column', 'type' => 'select', 'title' => __('Shop Columns', 'redux-framework-demo'), 'options' => array('1' => '1 Column', '2' => '2 Columns', '3' => '3 Columns', '4' => '4 Columns', '6' => '6 Columns'), 'default' => '4')));
            $this->sections[] = array('title' => __('Product Details', 'redux-framework-demo'), 'subsection' => true, 'fields' => array(array('id' => 'woo-single-layout', 'type' => 'image_select', 'compiler' => true, 'title' => __('Single Layout', 'redux-framework-demo'), 'subtitle' => __('Select main content and sidebar alignment. Choose between 1, 2 or 3 column layout.', 'redux-framework-demo'), 'options' => array('1' => array('alt' => '1 Column', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'), '2' => array('alt' => '2 Column Left', 'img' => ReduxFramework::$_url . 'assets/img/2cl.png'), '3' => array('alt' => '2 Column Right', 'img' => ReduxFramework::$_url . 'assets/img/2cr.png')), 'default' => '2'), array('id' => 'woo-single-sidebar', 'type' => 'select', 'title' => __('Single Sidebar', 'redux-framework-demo'), 'data' => 'sidebars', 'default' => 'sidebar-left'), array('id' => 'woo-related-number', 'type' => 'text', 'title' => __('Related show products', 'redux-framework-demo'), 'desc' => __('To Change number of products displayed related.', 'redux-framework-demo'), 'validate' => 'numeric', 'default' => '4'), array('id' => 'woo-related-column', 'type' => 'select', 'title' => __('Related Columns', 'redux-framework-demo'), 'options' => array('1' => '1 Column', '2' => '2 Columns', '3' => '3 Columns', '4' => '4 Columns', '6' => '6 Columns'), 'default' => '4'), array('id' => 'woo-upsells-number', 'type' => 'text', 'title' => __('Upsells show products', 'redux-framework-demo'), 'desc' => __('To Change number of products displayed up-sell.', 'redux-framework-demo'), 'validate' => 'numeric', 'default' => '4'), array('id' => 'woo-upsells-column', 'type' => 'select', 'title' => __('Upsells Columns', 'redux-framework-demo'), 'options' => array('1' => '1 Column', '2' => '2 Columns', '3' => '3 Columns', '4' => '4 Columns', '6' => '6 Columns'), 'default' => '4'), array('id' => 'woo-cross-sells-number', 'type' => 'text', 'title' => __('Cross Sells show products', 'redux-framework-demo'), 'desc' => __('To Change number of products displayed cross sells.', 'redux-framework-demo'), 'validate' => 'numeric', 'default' => '4'), array('id' => 'woo-cross-sells-column', 'type' => 'select', 'title' => __('Cross Sells Columns', 'redux-framework-demo'), 'options' => array('1' => '1 Column', '2' => '2 Columns', '3' => '3 Columns', '4' => '4 Columns', '6' => '6 Columns'), 'default' => '4')));
            $this->sections[] = array('icon' => 'el-icon-lines', 'title' => __('Megamenu Settings', 'redux-framework-demo'), 'fields' => array(array('id' => 'megamenu-menu', 'type' => 'select', 'title' => __('Mega Menu', 'redux-framework-demo'), 'data' => 'menu', 'desc' => 'Select a menu to configure Megamenu for the menu items in the selected menu.'), array('id' => 'megamenu-vertical-menu', 'type' => 'select', 'title' => __('Mega Vertical Menu', 'redux-framework-demo'), 'data' => 'menu', 'desc' => 'Select a menu to configure Vertical Megamenu for the menu items in the selected menu.'), array('id' => 'megamenu-animation', 'type' => 'select', 'title' => __('Animation', 'redux-framework-demo'), 'options' => array('effect-none' => 'None', 'bottom-to-top' => 'Bottom to top'), 'desc' => 'Select animation for Megamenu.', 'default' => 'effect-none'), array('id' => 'megamenu-duration', 'type' => 'text', 'title' => __('Duration', 'redux-framework-demo'), 'desc' => __('Animation effect duration for dropdown of Megamenu (in miliseconds).', 'redux-framework-demo'), 'validate' => 'numeric', 'default' => '400')));
            $this->sections[] = array('type' => 'divide');
            $this->sections[] = array('title' => __('Import / Export', 'redux-framework-demo'), 'desc' => __('Import and Export your Redux Framework settings from file, text or URL.', 'redux-framework-demo'), 'icon' => 'el-icon-refresh', 'fields' => array(array('id' => 'opt-import-export', 'type' => 'import_export', 'title' => 'Import Export', 'subtitle' => 'Save and restore your Redux options', 'full_width' => false)));
            if (file_exists(trailingslashit(dirname(__FILE__)) . 'README.html')) {
                $tabs['docs'] = array('icon' => 'el-icon-book', 'title' => __('Documentation', 'redux-framework-demo'), 'content' => nl2br(file_get_contents(trailingslashit(dirname(__FILE__)) . 'README.html')));
            }
        }
        public function setSections()
        {
            /**
             * Used within different fields. Simply examples. Search for ACTUAL DECLARATION for field examples
             * */
            // Background Patterns Reader
            $sample_patterns_path = ReduxFramework::$_dir . '../sample/patterns/';
            $sample_patterns_url = ReduxFramework::$_url . '../sample/patterns/';
            $sample_patterns = array();
            if (is_dir($sample_patterns_path)) {
                if ($sample_patterns_dir = opendir($sample_patterns_path)) {
                    $sample_patterns = array();
                    while (($sample_patterns_file = readdir($sample_patterns_dir)) !== false) {
                        if (stristr($sample_patterns_file, '.png') !== false || stristr($sample_patterns_file, '.jpg') !== false) {
                            $name = explode('.', $sample_patterns_file);
                            $name = str_replace('.' . end($name), '', $sample_patterns_file);
                            $sample_patterns[] = array('alt' => $name, 'img' => $sample_patterns_url . $sample_patterns_file);
                        }
                    }
                }
            }
            ob_start();
            $ct = wp_get_theme();
            $this->theme = $ct;
            $item_name = $this->theme->get('Name');
            $tags = $this->theme->Tags;
            $screenshot = $this->theme->get_screenshot();
            $class = $screenshot ? 'has-screenshot' : '';
            $customize_title = sprintf(__('Customize &#8220;%s&#8221;', 'redux-framework-demo'), $this->theme->display('Name'));
            ?>
                <div id="current-theme" class="<?php 
            echo esc_attr($class);
            ?>
">
                    <?php 
            if ($screenshot) {
                ?>
                        <?php 
                if (current_user_can('edit_theme_options')) {
                    ?>
                            <a href="<?php 
                    echo wp_customize_url();
                    ?>
" class="load-customize hide-if-no-customize"
                               title="<?php 
                    echo esc_attr($customize_title);
                    ?>
">
                                <img src="<?php 
                    echo esc_url($screenshot);
                    ?>
"
                                     alt="<?php 
                    esc_attr_e('Current theme preview', 'redux-framework-demo');
                    ?>
"/>
                            </a>
                        <?php 
                }
                ?>
                        <img class="hide-if-customize" src="<?php 
                echo esc_url($screenshot);
                ?>
"
                             alt="<?php 
                esc_attr_e('Current theme preview', 'redux-framework-demo');
                ?>
"/>
                    <?php 
            }
            ?>

                    <h4><?php 
            echo $this->theme->display('Name');
            ?>
</h4>

                    <div>
                        <ul class="theme-info">
                            <li><?php 
            printf(__('By %s', 'redux-framework-demo'), $this->theme->display('Author'));
            ?>
</li>
                            <li><?php 
            printf(__('Version %s', 'redux-framework-demo'), $this->theme->display('Version'));
            ?>
</li>
                            <li><?php 
            echo '<strong>' . __('Tags', 'redux-framework-demo') . ':</strong> ';
            printf($this->theme->display('Tags'));
            ?>
</li>
                        </ul>
                        <p class="theme-description"><?php 
            echo $this->theme->display('Description');
            ?>
</p>
                        <?php 
            if ($this->theme->parent()) {
                printf(' <p class="howto">' . __('This <a href="%1$s">child theme</a> requires its parent theme, %2$s.', 'redux-framework-demo') . '</p>', __('http://codex.wordpress.org/Child_Themes', 'redux-framework-demo'), $this->theme->parent()->display('Name'));
            }
            ?>

                    </div>
                </div>

                <?php 
            $item_info = ob_get_contents();
            ob_end_clean();
            $sampleHTML = '';
            if (file_exists(dirname(__FILE__) . '/info-html.html')) {
                Redux_Functions::initWpFilesystem();
                global $wp_filesystem;
                $sampleHTML = $wp_filesystem->get_contents(dirname(__FILE__) . '/info-html.html');
            }
            // ACTUAL DECLARATION OF SECTIONS
            $this->sections[] = array('title' => __('Home Settings', 'redux-framework-demo'), 'desc' => __('Redux Framework was created with the developer in mind. It allows for any theme developer to have an advanced theme panel with most of the features a developer would need. For more information check out the Github repo at: <a href="https://github.com/ReduxFramework/Redux-Framework">https://github.com/ReduxFramework/Redux-Framework</a>', 'redux-framework-demo'), 'icon' => 'el el-home', 'fields' => array(array('id' => 'opt-web-fonts', 'type' => 'media', 'title' => __('Web Fonts', 'redux-framework-demo'), 'compiler' => 'true', 'mode' => false, 'desc' => __('Basic media uploader with disabled URL input field.', 'redux-framework-demo'), 'subtitle' => __('Upload any media using the WordPress native uploader', 'redux-framework-demo'), 'hint' => array('content' => 'This is a <b>hint</b> tool-tip for the webFonts field.<br/><br/>Add any HTML based text you like here.')), array('id' => 'section-media-checkbox', 'type' => 'switch', 'title' => __('Section Show', 'redux-framework-demo'), 'subtitle' => __('With the "section" field you can create indent option sections.', 'redux-framework-demo')), array('id' => 'section-media-start', 'type' => 'section', 'title' => __('Media Options', 'redux-framework-demo'), 'subtitle' => __('With the "section" field you can create indent option sections.', 'redux-framework-demo'), 'indent' => true, 'required' => array('section-media-checkbox', "=", 1)), array('id' => 'opt-media', 'type' => 'media', 'url' => true, 'title' => __('Media w/ URL', 'redux-framework-demo'), 'compiler' => 'true', 'desc' => __('Basic media uploader with disabled URL input field.', 'redux-framework-demo'), 'subtitle' => __('Upload any media using the WordPress native uploader', 'redux-framework-demo'), 'default' => array('url' => 'http://s.wordpress.org/style/images/codeispoetry.png')), array('id' => 'section-media-end', 'type' => 'section', 'indent' => false, 'required' => array('section-media-checkbox', "=", 1)), array('id' => 'media-no-url', 'type' => 'media', 'title' => __('Media w/o URL', 'redux-framework-demo'), 'desc' => __('This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'redux-framework-demo'), 'subtitle' => __('Upload any media using the WordPress native uploader', 'redux-framework-demo')), array('id' => 'media-no-preview', 'type' => 'media', 'preview' => false, 'title' => __('Media No Preview', 'redux-framework-demo'), 'desc' => __('This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'redux-framework-demo'), 'subtitle' => __('Upload any media using the WordPress native uploader', 'redux-framework-demo')), array('id' => 'opt-gallery', 'type' => 'gallery', 'title' => __('Add/Edit Gallery', 'redux-framework-demo'), 'subtitle' => __('Create a new Gallery by selecting existing or uploading new images using the WordPress native uploader', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo')), array('id' => 'opt-slider-label', 'type' => 'slider', 'title' => __('Slider Example 1', 'redux-framework-demo'), 'subtitle' => __('This slider displays the value as a label.', 'redux-framework-demo'), 'desc' => __('Slider description. Min: 1, max: 500, step: 1, default value: 250', 'redux-framework-demo'), 'default' => 250, 'min' => 1, 'step' => 1, 'max' => 500, 'display_value' => 'label'), array('id' => 'opt-slider-text', 'type' => 'slider', 'title' => __('Slider Example 2 with Steps (5)', 'redux-framework-demo'), 'subtitle' => __('This example displays the value in a text box', 'redux-framework-demo'), 'desc' => __('Slider description. Min: 0, max: 300, step: 5, default value: 75', 'redux-framework-demo'), 'default' => 75, 'min' => 0, 'step' => 5, 'max' => 300, 'display_value' => 'text'), array('id' => 'opt-slider-select', 'type' => 'slider', 'title' => __('Slider Example 3 with two sliders', 'redux-framework-demo'), 'subtitle' => __('This example displays the values in select boxes', 'redux-framework-demo'), 'desc' => __('Slider description. Min: 0, max: 500, step: 5, slider 1 default value: 100, slider 2 default value: 300', 'redux-framework-demo'), 'default' => array(1 => 100, 2 => 300), 'min' => 0, 'step' => 5, 'max' => '500', 'display_value' => 'select', 'handles' => 2), array('id' => 'opt-slider-float', 'type' => 'slider', 'title' => __('Slider Example 4 with float values', 'redux-framework-demo'), 'subtitle' => __('This example displays float values', 'redux-framework-demo'), 'desc' => __('Slider description. Min: 0, max: 1, step: .1, default value: .5', 'redux-framework-demo'), 'default' => 0.5, 'min' => 0, 'step' => 0.1, 'max' => 1, 'resolution' => 0.1, 'display_value' => 'text'), array('id' => 'opt-spinner', 'type' => 'spinner', 'title' => __('JQuery UI Spinner Example 1', 'redux-framework-demo'), 'desc' => __('JQuery UI spinner description. Min:20, max: 100, step:20, default value: 40', 'redux-framework-demo'), 'default' => '40', 'min' => '20', 'step' => '20', 'max' => '100'), array('id' => 'switch-on', 'type' => 'switch', 'title' => __('Switch On', 'redux-framework-demo'), 'subtitle' => __('Look, it\'s on!', 'redux-framework-demo'), 'default' => true), array('id' => 'switch-off', 'type' => 'switch', 'title' => __('Switch Off', 'redux-framework-demo'), 'subtitle' => __('Look, it\'s on!', 'redux-framework-demo'), 'default' => false), array('id' => 'switch-parent', 'type' => 'switch', 'title' => __('Switch - Nested Children, Enable to show', 'redux-framework-demo'), 'subtitle' => __('Look, it\'s on! Also hidden child elements!', 'redux-framework-demo'), 'default' => 0, 'on' => 'Enabled', 'off' => 'Disabled'), array('id' => 'switch-child1', 'type' => 'switch', 'required' => array('switch-parent', '=', '1'), 'title' => __('Switch - This and the next switch required for patterns to show', 'redux-framework-demo'), 'subtitle' => __('Also called a "fold" parent.', 'redux-framework-demo'), 'desc' => __('Items set with a fold to this ID will hide unless this is set to the appropriate value.', 'redux-framework-demo'), 'default' => false), array('id' => 'switch-child2', 'type' => 'switch', 'required' => array('switch-parent', '=', '1'), 'title' => __('Switch2 - Enable the above switch and this one for patterns to show', 'redux-framework-demo'), 'subtitle' => __('Also called a "fold" parent.', 'redux-framework-demo'), 'desc' => __('Items set with a fold to this ID will hide unless this is set to the appropriate value.', 'redux-framework-demo'), 'default' => false), array('id' => 'opt-patterns', 'type' => 'image_select', 'tiles' => true, 'required' => array(array('switch-child1', 'equals', 1), array('switch-child2', 'equals', 1)), 'title' => __('Images Option (with pattern=>true)', 'redux-framework-demo'), 'subtitle' => __('Select a background pattern.', 'redux-framework-demo'), 'default' => 0, 'options' => $sample_patterns), array('id' => 'opt-homepage-layout', 'type' => 'sorter', 'title' => 'Layout Manager Advanced', 'subtitle' => 'You can add multiple drop areas or columns.', 'compiler' => 'true', 'options' => array('enabled' => array('highlights' => 'Highlights', 'slider' => 'Slider', 'staticpage' => 'Static Page', 'services' => 'Services'), 'disabled' => array(), 'backup' => array()), 'limits' => array('disabled' => 1, 'backup' => 2)), array('id' => 'opt-homepage-layout-2', 'type' => 'sorter', 'title' => 'Homepage Layout Manager', 'desc' => 'Organize how you want the layout to appear on the homepage', 'compiler' => 'true', 'options' => array('disabled' => array('highlights' => 'Highlights', 'slider' => 'Slider'), 'enabled' => array('staticpage' => 'Static Page', 'services' => 'Services'))), array('id' => 'opt-slides', 'type' => 'slides', 'title' => __('Slides Options', 'redux-framework-demo'), 'subtitle' => __('Unlimited slides with drag and drop sortings.', 'redux-framework-demo'), 'desc' => __('This field will store all slides values into a multidimensional array to use into a foreach loop.', 'redux-framework-demo'), 'placeholder' => array('title' => __('This is a title', 'redux-framework-demo'), 'description' => __('Description Here', 'redux-framework-demo'), 'url' => __('Give us a link!', 'redux-framework-demo'))), array('id' => 'opt-presets', 'type' => 'image_select', 'presets' => true, 'title' => __('Preset', 'redux-framework-demo'), 'subtitle' => __('This allows you to set a json string or array to override multiple preferences in your theme.', 'redux-framework-demo'), 'default' => 0, 'desc' => __('This allows you to set a json string or array to override multiple preferences in your theme.', 'redux-framework-demo'), 'options' => array('1' => array('alt' => 'Preset 1', 'img' => ReduxFramework::$_url . '../sample/presets/preset1.png', 'presets' => array('switch-on' => 1, 'switch-off' => 1, 'switch-parent' => 1)), '2' => array('alt' => 'Preset 2', 'img' => ReduxFramework::$_url . '../sample/presets/preset2.png', 'presets' => '{"opt-slider-label":"1", "opt-slider-text":"10"}'))), array('id' => 'opt-typography', 'type' => 'typography', 'title' => __('Typography', 'redux-framework-demo'), 'google' => true, 'font-backup' => true, 'all_styles' => true, 'output' => array('h2.site-description, .entry-title'), 'compiler' => array('h2.site-description-compiler'), 'units' => 'px', 'subtitle' => __('Typography option with each property can be called individually.', 'redux-framework-demo'), 'default' => array('color' => '#333', 'font-style' => '700', 'font-family' => 'Abel', 'google' => true, 'font-size' => '33px', 'line-height' => '40px'))));
            $this->sections[] = array('type' => 'divide');
            $this->sections[] = array('icon' => 'el el-cogs', 'title' => __('General Settings', 'redux-framework-demo'), 'fields' => array(array('id' => 'opt-layout', 'type' => 'image_select', 'compiler' => true, 'title' => __('Main Layout', 'redux-framework-demo'), 'subtitle' => __('Select main content and sidebar alignment. Choose between 1, 2 or 3 column layout.', 'redux-framework-demo'), 'options' => array('1' => array('alt' => '1 Column', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'), '2' => array('alt' => '2 Column Left', 'img' => ReduxFramework::$_url . 'assets/img/2cl.png'), '3' => array('alt' => '2 Column Right', 'img' => ReduxFramework::$_url . 'assets/img/2cr.png'), '4' => array('alt' => '3 Column Middle', 'img' => ReduxFramework::$_url . 'assets/img/3cm.png'), '5' => array('alt' => '3 Column Left', 'img' => ReduxFramework::$_url . 'assets/img/3cl.png'), '6' => array('alt' => '3 Column Right', 'img' => ReduxFramework::$_url . 'assets/img/3cr.png')), 'default' => '2'), array('id' => 'opt-textarea', 'type' => 'textarea', 'required' => array('layout', 'equals', '1'), 'title' => __('Tracking Code', 'redux-framework-demo'), 'subtitle' => __('Paste your Google Analytics (or other) tracking code here. This will be added into the footer template of your theme.', 'redux-framework-demo'), 'validate' => 'js', 'desc' => 'Validate that it\'s javascript!'), array('id' => 'opt-ace-editor-css', 'type' => 'ace_editor', 'title' => __('CSS Code', 'redux-framework-demo'), 'subtitle' => __('Paste your CSS code here.', 'redux-framework-demo'), 'mode' => 'css', 'theme' => 'monokai', 'desc' => 'Possible modes can be found at <a href="http://ace.c9.io" target="_blank">http://ace.c9.io/</a>.', 'default' => "#header{\nmargin: 0 auto;\n}"), array('id' => 'opt-editor', 'type' => 'editor', 'title' => __('Footer Text', 'redux-framework-demo'), 'subtitle' => __('You can use the following shortcodes in your footer text: [wp-url] [site-url] [theme-url] [login-url] [logout-url] [site-title] [site-tagline] [current-year]', 'redux-framework-demo'), 'default' => 'Powered by Redux Framework.'), array('id' => 'password', 'type' => 'password', 'username' => true, 'title' => 'SMTP Account')));
            $this->sections[] = array('icon' => 'el el-website', 'title' => __('Styling Options', 'redux-framework-demo'), 'subsection' => true, 'fields' => array(array('id' => 'opt-select-stylesheet', 'type' => 'select', 'title' => __('Theme Stylesheet', 'redux-framework-demo'), 'subtitle' => __('Select your themes alternative color scheme.', 'redux-framework-demo'), 'options' => array('default.css' => 'default.css', 'color1.css' => 'color1.css'), 'default' => 'default.css'), array('id' => 'opt-color-background', 'type' => 'color', 'output' => array('.site-title'), 'title' => __('Body Background Color', 'redux-framework-demo'), 'subtitle' => __('Pick a background color for the theme (default: #fff).', 'redux-framework-demo'), 'default' => '#FFFFFF', 'validate' => 'color'), array('id' => 'opt-background', 'type' => 'background', 'output' => array('body'), 'title' => __('Body Background', 'redux-framework-demo'), 'subtitle' => __('Body background with image, color, etc.', 'redux-framework-demo')), array('id' => 'opt-color-footer', 'type' => 'color', 'title' => __('Footer Background Color', 'redux-framework-demo'), 'subtitle' => __('Pick a background color for the footer (default: #dd9933).', 'redux-framework-demo'), 'default' => '#dd9933', 'validate' => 'color'), array('id' => 'opt-color-rgba', 'type' => 'color_rgba', 'title' => __('Color RGBA', 'redux-framework-demo'), 'subtitle' => __('Gives you the RGBA color.', 'redux-framework-demo'), 'default' => array('color' => '#7e33dd', 'alpha' => '.8'), 'output' => array('body'), 'mode' => 'background', 'validate' => 'colorrgba'), array('id' => 'opt-color-header', 'type' => 'color_gradient', 'title' => __('Header Gradient Color Option', 'redux-framework-demo'), 'subtitle' => __('Only color validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'default' => array('from' => '#1e73be', 'to' => '#00897e')), array('id' => 'opt-link-color', 'type' => 'link_color', 'title' => __('Links Color Option', 'redux-framework-demo'), 'subtitle' => __('Only color validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'default' => array('regular' => '#aaa', 'hover' => '#bbb', 'active' => '#ccc')), array('id' => 'opt-header-border', 'type' => 'border', 'title' => __('Header Border Option', 'redux-framework-demo'), 'subtitle' => __('Only color validation can be done on this field type', 'redux-framework-demo'), 'output' => array('.site-header'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'default' => array('border-color' => '#1e73be', 'border-style' => 'solid', 'border-top' => '3px', 'border-right' => '3px', 'border-bottom' => '3px', 'border-left' => '3px')), array('id' => 'opt-spacing', 'type' => 'spacing', 'output' => array('.site-header'), 'mode' => 'margin', 'all' => true, 'title' => __('Padding/Margin Option', 'redux-framework-demo'), 'subtitle' => __('Allow your users to choose the spacing or margin they want.', 'redux-framework-demo'), 'desc' => __('You can enable or disable any piece of this field. Top, Right, Bottom, Left, or Units.', 'redux-framework-demo'), 'default' => array('margin-top' => '1px', 'margin-right' => '2px', 'margin-bottom' => '3px', 'margin-left' => '4px')), array('id' => 'opt-dimensions', 'type' => 'dimensions', 'units' => 'em', 'units_extended' => 'true', 'title' => __('Dimensions (Width/Height) Option', 'redux-framework-demo'), 'subtitle' => __('Allow your users to choose width, height, and/or unit.', 'redux-framework-demo'), 'desc' => __('You can enable or disable any piece of this field. Width, Height, or Units.', 'redux-framework-demo'), 'default' => array('width' => 200, 'height' => 100)), array('id' => 'opt-typography-body', 'type' => 'typography', 'title' => __('Body Font', 'redux-framework-demo'), 'subtitle' => __('Specify the body font properties.', 'redux-framework-demo'), 'google' => true, 'default' => array('color' => '#dd9933', 'font-size' => '30px', 'font-family' => 'Arial,Helvetica,sans-serif', 'font-weight' => 'Normal')), array('id' => 'opt-custom-css', 'type' => 'textarea', 'title' => __('Custom CSS', 'redux-framework-demo'), 'subtitle' => __('Quickly add some CSS to your theme by adding it to this block.', 'redux-framework-demo'), 'desc' => __('This field is even CSS validated!', 'redux-framework-demo'), 'validate' => 'css'), array('id' => 'opt-custom-html', 'type' => 'textarea', 'title' => __('Custom HTML', 'redux-framework-demo'), 'subtitle' => __('Just like a text box widget.', 'redux-framework-demo'), 'desc' => __('This field is even HTML validated!', 'redux-framework-demo'), 'validate' => 'html')));
            /**
             *  Note here I used a 'heading' in the sections array construct
             *  This allows you to use a different title on your options page
             * instead of reusing the 'title' value.  This can be done on any
             * section - kp
             */
            $this->sections[] = array('icon' => 'el el-bullhorn', 'title' => __('Field Validation', 'redux-framework-demo'), 'heading' => __('Validate ALL fields within Redux.', 'redux-framework-demo'), 'desc' => __('<p class="description">This is the Description. Again HTML is allowed2</p>', 'redux-framework-demo'), 'fields' => array(array('id' => 'opt-text-email', 'type' => 'text', 'title' => __('Text Option - Email Validated', 'redux-framework-demo'), 'subtitle' => __('This is a little space under the Field Title in the Options table, additional info is good in here.', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'validate' => 'email', 'msg' => 'custom error message', 'default' => '*****@*****.**'), array('id' => 'opt-text-post-type', 'type' => 'text', 'title' => __('Text Option with Data Attributes', 'redux-framework-demo'), 'subtitle' => __('You can also pass an options array if you want. Set the default to whatever you like.', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'data' => 'post_type'), array('id' => 'opt-multi-text', 'type' => 'multi_text', 'title' => __('Multi Text Option - Color Validated', 'redux-framework-demo'), 'validate' => 'color', 'subtitle' => __('If you enter an invalid color it will be removed. Try using the text "blue" as a color.  ;)', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo')), array('id' => 'opt-text-url', 'type' => 'text', 'title' => __('Text Option - URL Validated', 'redux-framework-demo'), 'subtitle' => __('This must be a URL.', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'validate' => 'url', 'default' => 'http://reduxframework.com'), array('id' => 'opt-text-numeric', 'type' => 'text', 'title' => __('Text Option - Numeric Validated', 'redux-framework-demo'), 'subtitle' => __('This must be numeric.', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'validate' => 'numeric', 'default' => '0'), array('id' => 'opt-text-comma-numeric', 'type' => 'text', 'title' => __('Text Option - Comma Numeric Validated', 'redux-framework-demo'), 'subtitle' => __('This must be a comma separated string of numerical values.', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'validate' => 'comma_numeric', 'default' => '0'), array('id' => 'opt-text-no-special-chars', 'type' => 'text', 'title' => __('Text Option - No Special Chars Validated', 'redux-framework-demo'), 'subtitle' => __('This must be a alpha numeric only.', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'validate' => 'no_special_chars', 'default' => '0'), array('id' => 'opt-text-str_replace', 'type' => 'text', 'title' => __('Text Option - Str Replace Validated', 'redux-framework-demo'), 'subtitle' => __('You decide.', 'redux-framework-demo'), 'desc' => __('This field\'s default value was changed by a filter hook!', 'redux-framework-demo'), 'validate' => 'str_replace', 'str' => array('search' => ' ', 'replacement' => 'thisisaspace'), 'default' => 'This is the default.'), array('id' => 'opt-text-preg_replace', 'type' => 'text', 'title' => __('Text Option - Preg Replace Validated', 'redux-framework-demo'), 'subtitle' => __('You decide.', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'validate' => 'preg_replace', 'preg' => array('pattern' => '/[^a-zA-Z_ -]/s', 'replacement' => 'no numbers'), 'default' => '0'), array('id' => 'opt-text-custom_validate', 'type' => 'text', 'title' => __('Text Option - Custom Callback Validated', 'redux-framework-demo'), 'subtitle' => __('You decide.', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'validate_callback' => 'redux_validate_callback_function', 'default' => '0'), array('id' => 'opt-text-custom_validate-class', 'type' => 'text', 'title' => __('Text Option - Custom Callback Validated - Class', 'redux-framework-demo'), 'subtitle' => __('You decide.', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'validate_callback' => array($this, 'validate_callback_function'), 'default' => '0'), array('id' => 'opt-textarea-no-html', 'type' => 'textarea', 'title' => __('Textarea Option - No HTML Validated', 'redux-framework-demo'), 'subtitle' => __('All HTML will be stripped', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'validate' => 'no_html', 'default' => 'No HTML is allowed in here.'), array('id' => 'opt-textarea-html', 'type' => 'textarea', 'title' => __('Textarea Option - HTML Validated', 'redux-framework-demo'), 'subtitle' => __('HTML Allowed (wp_kses)', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'validate' => 'html', 'default' => 'HTML is allowed in here.'), array('id' => 'opt-textarea-some-html', 'type' => 'textarea', 'title' => __('Textarea Option - HTML Validated Custom', 'redux-framework-demo'), 'subtitle' => __('Custom HTML Allowed (wp_kses)', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'validate' => 'html_custom', 'default' => '<p>Some HTML is allowed in here.</p>', 'allowed_html' => array('')), array('id' => 'opt-textarea-js', 'type' => 'textarea', 'title' => __('Textarea Option - JS Validated', 'redux-framework-demo'), 'subtitle' => __('JS will be escaped', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'validate' => 'js')));
            $this->sections[] = array('icon' => 'el el-check', 'title' => __('Radio/Checkbox Fields', 'redux-framework-demo'), 'desc' => __('<p class="description">This is the Description. Again HTML is allowed</p>', 'redux-framework-demo'), 'fields' => array(array('id' => 'opt-checkbox', 'type' => 'checkbox', 'title' => __('Checkbox Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'default' => '1'), array('id' => 'opt-multi-check', 'type' => 'checkbox', 'title' => __('Multi Checkbox Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'options' => array('1' => 'Opt 1', '2' => 'Opt 2', '3' => 'Opt 3'), 'default' => array('1' => '1', '2' => '0', '3' => '0')), array('id' => 'opt-checkbox-data', 'type' => 'checkbox', 'title' => __('Multi Checkbox Option (with menu data)', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'data' => 'menu'), array('id' => 'opt-checkbox-sidebar', 'type' => 'checkbox', 'title' => __('Multi Checkbox Option (with sidebar data)', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'data' => 'sidebars'), array('id' => 'opt-radio', 'type' => 'radio', 'title' => __('Radio Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'options' => array('1' => 'Opt 1', '2' => 'Opt 2', '3' => 'Opt 3'), 'default' => '2'), array('id' => 'opt-radio-data', 'type' => 'radio', 'title' => __('Multi Checkbox Option (with menu data)', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'data' => 'menu'), array('id' => 'opt-image-select', 'type' => 'image_select', 'title' => __('Images Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'options' => array('1' => array('title' => 'Opt 1', 'img' => 'images/align-none.png'), '2' => array('title' => 'Opt 2', 'img' => 'images/align-left.png'), '3' => array('title' => 'Opt 3', 'img' => 'images/align-center.png'), '4' => array('title' => 'Opt 4', 'img' => 'images/align-right.png')), 'default' => '2'), array('id' => 'opt-image-select-layout', 'type' => 'image_select', 'title' => __('Images Option for Layout', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This uses some of the built in images, you can use them for layout options.', 'redux-framework-demo'), 'options' => array('1' => array('alt' => '1 Column', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'), '2' => array('alt' => '2 Column Left', 'img' => ReduxFramework::$_url . 'assets/img/2cl.png'), '3' => array('alt' => '2 Column Right', 'img' => ReduxFramework::$_url . 'assets/img/2cr.png'), '4' => array('alt' => '3 Column Middle', 'img' => ReduxFramework::$_url . 'assets/img/3cm.png'), '5' => array('alt' => '3 Column Left', 'img' => ReduxFramework::$_url . 'assets/img/3cl.png'), '6' => array('alt' => '3 Column Right', 'img' => ReduxFramework::$_url . 'assets/img/3cr.png')), 'default' => '2'), array('id' => 'opt-sortable', 'type' => 'sortable', 'title' => __('Sortable Text Option', 'redux-framework-demo'), 'subtitle' => __('Define and reorder these however you want.', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'label' => true, 'options' => array('si1' => 'Item 1', 'si2' => 'Item 2', 'si3' => 'Item 3')), array('id' => 'opt-check-sortable', 'type' => 'sortable', 'mode' => 'checkbox', 'title' => __('Sortable Text Option', 'redux-framework-demo'), 'subtitle' => __('Define and reorder these however you want.', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'options' => array('si1' => false, 'si2' => true, 'si3' => false))));
            $this->sections[] = array('icon' => 'el el-list-alt', 'title' => __('Select Fields', 'redux-framework-demo'), 'desc' => __('<p class="description">This is the Description. Again HTML is allowed</p>', 'redux-framework-demo'), 'fields' => array(array('id' => 'opt-select', 'type' => 'select', 'title' => __('Select Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'options' => array('1' => 'Opt 1', '2' => 'Opt 2', '3' => 'Opt 3'), 'default' => '2'), array('id' => 'opt-select-optgroup', 'type' => 'select', 'title' => __('Select Option with optgroup', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'options' => array('Group 1' => array('1' => 'Opt 1', '2' => 'Opt 2', '3' => 'Opt 3'), 'Group 2' => array('4' => 'Opt 4', '5' => 'Opt 5', '6' => 'Opt 6'), '7' => 'Opt 7', '8' => 'Opt 8', '9' => 'Opt 9'), 'default' => '2'), array('id' => 'opt-multi-select', 'type' => 'select', 'multi' => true, 'title' => __('Multi Select Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'options' => array('1' => 'Opt 1', '2' => 'Opt 2', '3' => 'Opt 3'), 'default' => array('2', '3')), array('id' => 'opt-select-image', 'type' => 'select_image', 'title' => __('Select Image', 'redux-framework-demo'), 'subtitle' => __('A preview of the selected image will appear underneath the select box.', 'redux-framework-demo'), 'options' => $sample_patterns, 'default' => 'tree_bark.png'), array('id' => 'opt-info', 'type' => 'info', 'desc' => __('You can easily add a variety of data from WordPress.', 'redux-framework-demo')), array('id' => 'opt-select-categories', 'type' => 'select', 'data' => 'categories', 'title' => __('Categories Select Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo')), array('id' => 'opt-select-categories-multi', 'type' => 'select', 'data' => 'categories', 'multi' => true, 'title' => __('Categories Multi Select Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo')), array('id' => 'opt-select-pages', 'type' => 'select', 'data' => 'pages', 'title' => __('Pages Select Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo')), array('id' => 'opt-multi-select-pages', 'type' => 'select', 'data' => 'pages', 'multi' => true, 'title' => __('Pages Multi Select Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo')), array('id' => 'opt-select-tags', 'type' => 'select', 'data' => 'tags', 'title' => __('Tags Select Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo')), array('id' => 'opt-multi-select-tags', 'type' => 'select', 'data' => 'tags', 'multi' => true, 'title' => __('Tags Multi Select Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo')), array('id' => 'opt-select-menus', 'type' => 'select', 'data' => 'menus', 'title' => __('Menus Select Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo')), array('id' => 'opt-multi-select-menus', 'type' => 'select', 'data' => 'menu', 'multi' => true, 'title' => __('Menus Multi Select Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo')), array('id' => 'opt-select-post-type', 'type' => 'select', 'data' => 'post_type', 'title' => __('Post Type Select Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo')), array('id' => 'opt-multi-select-post-type', 'type' => 'select', 'data' => 'post_type', 'multi' => true, 'title' => __('Post Type Multi Select Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo')), array('id' => 'opt-multi-select-sortable', 'type' => 'select', 'data' => 'post_type', 'multi' => true, 'sortable' => true, 'title' => __('Post Type Multi Select Option + Sortable', 'redux-framework-demo'), 'subtitle' => __('This field also has sortable enabled!', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo')), array('id' => 'opt-select-posts', 'type' => 'select', 'data' => 'post', 'title' => __('Posts Select Option2', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo')), array('id' => 'opt-multi-select-posts', 'type' => 'select', 'data' => 'post', 'multi' => true, 'title' => __('Posts Multi Select Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo')), array('id' => 'opt-select-roles', 'type' => 'select', 'data' => 'roles', 'title' => __('User Role Select Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo')), array('id' => 'opt-select-capabilities', 'type' => 'select', 'data' => 'capabilities', 'multi' => true, 'title' => __('Capabilities Select Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo')), array('id' => 'opt-select-elusive', 'type' => 'select', 'data' => 'elusive-icons', 'title' => __('Elusive Icons Select Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('Here\'s a list of all the elusive icons by name and icon.', 'redux-framework-demo'))));
            $theme_info = '<div class="redux-framework-section-desc">';
            $theme_info .= '<p class="redux-framework-theme-data description theme-uri">' . __('<strong>Theme URL:</strong> ', 'redux-framework-demo') . '<a href="' . $this->theme->get('ThemeURI') . '" target="_blank">' . $this->theme->get('ThemeURI') . '</a></p>';
            $theme_info .= '<p class="redux-framework-theme-data description theme-author">' . __('<strong>Author:</strong> ', 'redux-framework-demo') . $this->theme->get('Author') . '</p>';
            $theme_info .= '<p class="redux-framework-theme-data description theme-version">' . __('<strong>Version:</strong> ', 'redux-framework-demo') . $this->theme->get('Version') . '</p>';
            $theme_info .= '<p class="redux-framework-theme-data description theme-description">' . $this->theme->get('Description') . '</p>';
            $tabs = $this->theme->get('Tags');
            if (!empty($tabs)) {
                $theme_info .= '<p class="redux-framework-theme-data description theme-tags">' . __('<strong>Tags:</strong> ', 'redux-framework-demo') . implode(', ', $tabs) . '</p>';
            }
            $theme_info .= '</div>';
            if (file_exists(dirname(__FILE__) . '/../README.md')) {
                $this->sections['theme_docs'] = array('icon' => 'el el-list-alt', 'title' => __('Documentation', 'redux-framework-demo'), 'fields' => array(array('id' => '17', 'type' => 'raw', 'markdown' => true, 'content' => file_get_contents(dirname(__FILE__) . '/../README.md'))));
            }
            // You can append a new section at any time.
            $this->sections[] = array('icon' => 'el el-eye-open', 'title' => __('Additional Fields', 'redux-framework-demo'), 'desc' => __('<p class="description">This is the Description. Again HTML is allowed</p>', 'redux-framework-demo'), 'fields' => array(array('id' => 'opt-datepicker', 'type' => 'date', 'title' => __('Date Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo')), array('id' => 'opt-divide', 'type' => 'divide'), array('id' => 'opt-button-set', 'type' => 'button_set', 'title' => __('Button Set Option', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'options' => array('1' => 'Opt 1', '2' => 'Opt 2', '3' => 'Opt 3'), 'default' => '2'), array('id' => 'opt-button-set-multi', 'type' => 'button_set', 'title' => __('Button Set, Multi Select', 'redux-framework-demo'), 'subtitle' => __('No validation can be done on this field type', 'redux-framework-demo'), 'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'), 'multi' => true, 'options' => array('1' => 'Opt 1', '2' => 'Opt 2', '3' => 'Opt 3'), 'default' => array('2', '3')), array('id' => 'opt-info-field', 'type' => 'info', 'desc' => __('This is the info field, if you want to break sections up.', 'redux-framework-demo')), array('id' => 'opt-info-warning', 'type' => 'info', 'style' => 'warning', 'title' => __('This is a title.', 'redux-framework-demo'), 'desc' => __('This is an info field with the warning style applied and a header.', 'redux-framework-demo')), array('id' => 'opt-info-success', 'type' => 'info', 'style' => 'success', 'icon' => 'el el-info-circle', 'title' => __('This is a title.', 'redux-framework-demo'), 'desc' => __('This is an info field with the success style applied, a header and an icon.', 'redux-framework-demo')), array('id' => 'opt-info-critical', 'type' => 'info', 'style' => 'critical', 'icon' => 'el el-info-circle', 'title' => __('This is a title.', 'redux-framework-demo'), 'desc' => __('This is an info field with the critical style applied, a header and an icon.', 'redux-framework-demo')), array('id' => 'opt-raw_info', 'type' => 'info', 'required' => array('18', 'equals', array('1', '2')), 'raw_html' => true, 'desc' => $sampleHTML), array('id' => 'opt-info-normal', 'type' => 'info', 'notice' => true, 'title' => __('This is a title.', 'redux-framework-demo'), 'desc' => __('This is an info notice field with the normal style applied, a header and an icon.', 'redux-framework-demo')), array('id' => 'opt-notice-info', 'type' => 'info', 'notice' => true, 'style' => 'info', 'title' => __('This is a title.', 'redux-framework-demo'), 'desc' => __('This is an info notice field with the info style applied, a header and an icon.', 'redux-framework-demo')), array('id' => 'opt-notice-warning', 'type' => 'info', 'notice' => true, 'style' => 'warning', 'icon' => 'el el-info-circle', 'title' => __('This is a title.', 'redux-framework-demo'), 'desc' => __('This is an info notice field with the warning style applied, a header and an icon.', 'redux-framework-demo')), array('id' => 'opt-notice-success', 'type' => 'info', 'notice' => true, 'style' => 'success', 'icon' => 'el el-info-circle', 'title' => __('This is a title.', 'redux-framework-demo'), 'desc' => __('This is an info notice field with the success style applied, a header and an icon.', 'redux-framework-demo')), array('id' => 'opt-notice-critical', 'type' => 'info', 'notice' => true, 'style' => 'critical', 'icon' => 'el el-info-circle', 'title' => __('This is a title.', 'redux-framework-demo'), 'desc' => __('This is an notice field with the critical style applied, a header and an icon.', 'redux-framework-demo')), array('id' => 'opt-custom-callback', 'type' => 'callback', 'title' => __('Custom Field Callback', 'redux-framework-demo'), 'subtitle' => __('This is a completely unique field type', 'redux-framework-demo'), 'desc' => __('This is created with a callback function, so anything goes in this field. Make sure to define the function though.', 'redux-framework-demo'), 'callback' => 'redux_my_custom_field'), array('id' => 'opt-custom-callback-class', 'type' => 'callback', 'title' => __('Custom Field Callback - Class', 'redux-framework-demo'), 'subtitle' => __('This is a completely unique field type', 'redux-framework-demo'), 'desc' => __('This is created with a callback function, so anything goes in this field. Make sure to define the function though.', 'redux-framework-demo'), 'callback' => array('Redux_Framework_sample_config', 'class_field_callback')), array('id' => 'opt-customizer-only-in-section', 'type' => 'select', 'title' => __('Customizer Only Option', 'redux-framework-demo'), 'subtitle' => __('The subtitle is NOT visible in customizer', 'redux-framework-demo'), 'desc' => __('The field desc is NOT visible in customizer.', 'redux-framework-demo'), 'customizer_only' => true, 'options' => array('1' => 'Opt 1', '2' => 'Opt 2', '3' => 'Opt 3'), 'default' => '2')));
            $this->sections[] = array('icon' => 'el el-list-alt', 'title' => __('Customizer Only', 'redux-framework-demo'), 'desc' => __('<p class="description">This Section should be visible only in Customizer</p>', 'redux-framework-demo'), 'customizer_only' => true, 'fields' => array(array('id' => 'opt-customizer-only', 'type' => 'select', 'title' => __('Customizer Only Option', 'redux-framework-demo'), 'subtitle' => __('The subtitle is NOT visible in customizer', 'redux-framework-demo'), 'desc' => __('The field desc is NOT visible in customizer.', 'redux-framework-demo'), 'customizer_only' => true, 'options' => array('1' => 'Opt 1', '2' => 'Opt 2', '3' => 'Opt 3'), 'default' => '2')));
            $this->sections[] = array('title' => __('WPML Example', 'redux-framework-demo'), 'desc' => __('These fields can be fully translated by WPML (WordPress Multi-Language). This serves as an example for you to implement. For extra details look at our <a href="http://docs.reduxframework.com/core/advanced/wpml-integration/" target="_blank">WPML Implementation</a> documentation.', 'redux-framework-demo'), 'icon' => 'el el-home', 'fields' => array(array('id' => 'wpml-text', 'type' => 'textarea', 'title' => __('WPML Text', 'redux-framework-demo'), 'desc' => __('This string can be translated via WPML.', 'redux-framework-demo')), array('id' => 'wpml-multicheck', 'type' => 'checkbox', 'title' => __('WPML Multi Checkbox', 'redux-framework-demo'), 'desc' => __('You can literally translate the values via key.', 'redux-framework-demo'), 'options' => array('1' => 'Option 1', '2' => 'Option 2', '3' => 'Option 3'))));
            $this->sections[] = array('title' => __('Import / Export', 'redux-framework-demo'), 'desc' => __('Import and Export your Redux Framework settings from file, text or URL.', 'redux-framework-demo'), 'icon' => 'el el-refresh', 'fields' => array(array('id' => 'opt-import-export', 'type' => 'import_export', 'title' => 'Import Export', 'subtitle' => 'Save and restore your Redux options', 'full_width' => false)));
            $this->sections[] = array('type' => 'divide');
            $this->sections[] = array('icon' => 'el el-info-circle', 'title' => __('Theme Information', 'redux-framework-demo'), 'desc' => __('<p class="description">This is the Description. Again HTML is allowed</p>', 'redux-framework-demo'), 'fields' => array(array('id' => 'opt-raw-info', 'type' => 'raw', 'content' => $item_info)));
            if (file_exists(trailingslashit(dirname(__FILE__)) . 'README.html')) {
                $tabs['docs'] = array('icon' => 'el el-book', 'title' => __('Documentation', 'redux-framework-demo'), 'content' => nl2br(file_get_contents(trailingslashit(dirname(__FILE__)) . 'README.html')));
            }
        }
Exemplo n.º 15
0
 /**
  * Notify about the default tagline if the user hasn't changed it
  */
 public function tagline_notice()
 {
     if (current_user_can('manage_options') && $this->has_default_tagline() && !$this->seen_tagline_notice()) {
         // Only add the notice on GET requests and not in the customizer to prevent faulty return url.
         if ('GET' !== filter_input(INPUT_SERVER, 'REQUEST_METHOD') || is_customize_preview()) {
             return;
         }
         $current_url = is_ssl() ? 'https://' : 'http://';
         $current_url .= sanitize_text_field($_SERVER['SERVER_NAME']) . sanitize_text_field($_SERVER['REQUEST_URI']);
         $customize_url = add_query_arg(array('url' => urlencode($current_url)), wp_customize_url());
         $info_message = sprintf(__('You still have the default WordPress tagline, even an empty one is probably better. %1$sYou can fix this in the customizer%2$s.', 'ymbeseo'), '<a href="' . esc_attr($customize_url) . '">', '</a>');
         $notification_options = array('type' => 'error', 'id' => 'wpseo-dismiss-tagline-notice', 'nonce' => wp_create_nonce('wpseo-dismiss-tagline-notice'));
         Yoast_Notification_Center::get()->add_notification(new Yoast_Notification($info_message, $notification_options));
     }
 }
Exemplo n.º 16
0
function setup_framework_options()
{
    $args = array();
    // For use with a tab below
    $tabs = array();
    ob_start();
    $ct = wp_get_theme();
    $theme_data = $ct;
    $item_name = $theme_data->get('Name');
    $tags = $ct->Tags;
    $screenshot = $ct->get_screenshot();
    $class = $screenshot ? 'has-screenshot' : '';
    $customize_title = sprintf(__('Customize &#8220;%s&#8221;', 'asteria'), $ct->display('Name'));
    ?>
		<div id="current-theme" class="<?php 
    echo esc_attr($class);
    ?>
">
			<?php 
    if ($screenshot) {
        ?>
				<?php 
        if (current_user_can('edit_theme_options')) {
            ?>
				<a href="<?php 
            echo wp_customize_url();
            ?>
" class="load-customize hide-if-no-customize" title="<?php 
            echo esc_attr($customize_title);
            ?>
">
					<img src="<?php 
            echo esc_url($screenshot);
            ?>
" alt="<?php 
            esc_attr_e('Current theme preview');
            ?>
" />
				</a>
				<?php 
        }
        ?>
				<img class="hide-if-customize" src="<?php 
        echo esc_url($screenshot);
        ?>
" alt="<?php 
        esc_attr_e('Current theme preview');
        ?>
" />
			<?php 
    }
    ?>

			<h4>
				<?php 
    echo $ct->display('Name');
    ?>
			</h4>

			<div>
				<ul class="theme-info">
					<li><?php 
    printf(__('By %s', 'asteria'), $ct->display('Author'));
    ?>
</li>
					<li><?php 
    printf(__('Version %s', 'asteria'), $ct->display('Version'));
    ?>
</li>
					<li><?php 
    echo '<strong>' . __('Tags', 'asteria') . ':</strong> ';
    printf($ct->display('Tags'));
    ?>
</li>
				</ul>
				<p class="theme-description"><?php 
    echo $ct->display('Description');
    ?>
</p>
				<?php 
    if ($ct->parent()) {
        printf(' <p class="howto">' . __('This <a href="%1$s">child theme</a> requires its parent theme, %2$s.') . '</p>', __('http://codex.wordpress.org/Child_Themes', 'asteria'), $ct->parent()->display('Name'));
    }
    ?>
				
			</div>

		</div>

		<?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');
    }
    if (file_exists(dirname(__FILE__) . '/documentation/documentation.html')) {
        global $wp_filesystem;
        if (empty($wp_filesystem)) {
            require_once ABSPATH . '/wp-admin/includes/file.php';
            WP_Filesystem();
        }
        $documentation = $wp_filesystem->get_contents(dirname(__FILE__) . '/documentation/documentation.html');
    }
    if (file_exists(dirname(__FILE__) . '/documentation/upgrade.html')) {
        global $wp_filesystem;
        if (empty($wp_filesystem)) {
            require_once ABSPATH . '/wp-admin/includes/file.php';
            WP_Filesystem();
        }
        $upgrade = $wp_filesystem->get_contents(dirname(__FILE__) . '/documentation/upgrade.html');
    }
    // Setting dev mode to true allows you to view the class settings/info in the panel.
    // Default: true
    $args['dev_mode'] = false;
    // Set the icon for the dev mode tab.
    // If $args['icon_type'] = 'image', this should be the path to the icon.
    // If $args['icon_type'] = 'iconfont', this should be the icon name.
    // Default: info-sign
    //$args['dev_mode_icon'] = 'info-sign';
    // Set the class for the dev mode tab icon.
    // This is ignored unless $args['icon_type'] = 'iconfont'
    // Default: null
    $args['dev_mode_icon_class'] = 'icon-large';
    // Set a custom option name. Don't forget to replace spaces with underscores!
    $args['opt_name'] = 'asteria';
    // Setting system info to true allows you to view info useful for debugging.
    // Default: false
    //$args['system_info'] = true;
    // Set the icon for the system info tab.
    // If $args['icon_type'] = 'image', this should be the path to the icon.
    // If $args['icon_type'] = 'iconfont', this should be the icon name.
    // Default: info-sign
    //$args['system_info_icon'] = 'info-sign';
    // Set the class for the system info tab icon.
    // This is ignored unless $args['icon_type'] = 'iconfont'
    // Default: null
    $args['system_info_icon_class'] = 'icon-large';
    $theme = wp_get_theme();
    $args['display_name'] = $theme->get('Name');
    //$args['database'] = "theme_mods_expanded";
    $args['display_version'] = $theme->get('Version');
    // If you want to use Google Webfonts, you MUST define the api key.
    $args['google_api_key'] = 'AIzaSyAolJnJQL-juru43ESvQ9pf5QUY0ZIdLuQ';
    // Define the starting tab for the option panel.
    // Default: '0';
    //$args['last_tab'] = '0';
    // Define the option panel stylesheet. Options are 'standard', 'custom', and 'none'
    // If only minor tweaks are needed, set to 'custom' and override the necessary styles through the included custom.css stylesheet.
    // If replacing the stylesheet, set to 'none' and don't forget to enqueue another stylesheet!
    // Default: 'standard'
    //$args['admin_stylesheet'] = 'standard';
    // Setup custom links in the footer for share icons
    $args['share_icons']['twitter'] = array('link' => 'https://twitter.com/towfiqi', 'title' => 'Follow me on Twitter', 'img' => ReduxFramework::$_url . 'assets/img/social/Twitter.png');
    $args['share_icons']['facebook'] = array('link' => 'http://www.facebook.com/pages/Towfiq-I/180981878579536', 'title' => 'Follow me on Facebook', 'img' => ReduxFramework::$_url . 'assets/img/social/Facebook.png');
    $args['share_icons']['google'] = array('link' => 'https://plus.google.com/114788083723678273482/', 'title' => 'Follow me on Google Plus', 'img' => ReduxFramework::$_url . 'assets/img/social/Google.png');
    // Enable the import/export feature.
    // Default: true
    //$args['show_import_export'] = false;
    // Set the icon for the import/export tab.
    // If $args['icon_type'] = 'image', this should be the path to the icon.
    // If $args['icon_type'] = 'iconfont', this should be the icon name.
    // Default: refresh
    //$args['import_icon'] = 'refresh';
    // Set the class for the import/export tab icon.
    // This is ignored unless $args['icon_type'] = 'iconfont'
    // Default: null
    $args['import_icon_class'] = 'icon-large';
    // Set a custom menu icon.
    //$args['menu_icon'] = '';
    // Set a custom title for the options page.
    // Default: Options
    $args['menu_title'] = __('Asteria Options', 'asteria');
    // Set a custom page title for the options page.
    // Default: Options
    $args['page_title'] = __('Options', 'asteria');
    // Set a custom page slug for options page (wp-admin/themes.php?page=***).
    // Default: redux_options
    $args['page_slug'] = 'redux_options';
    $args['default_show'] = true;
    $args['default_mark'] = '*';
    // Set a custom page capability.
    // Default: manage_options
    //$args['page_cap'] = 'manage_options';
    // Set the menu type. Set to "menu" for a top level menu, or "submenu" to add below an existing item.
    // Default: menu
    $args['page_type'] = 'submenu';
    // Set the parent menu.
    // Default: themes.php
    // A list of available parent menus is available at http://codex.wordpress.org/Function_Reference/add_submenu_page#Parameters
    //$args['page_parent'] = 'options_general.php';
    // Set a custom page location. This allows you to place your menu where you want in the menu order.
    // Must be unique or it will override other items!
    // Default: null
    //$args['page_position'] = null;
    // Set a custom page icon class (used to override the page icon next to heading)
    //$args['page_icon'] = 'icon-themes';
    // Set the icon type. Set to "iconfont" for Font Awesome, or "image" for traditional.
    // Redux no longer ships with standard icons!
    // Default: iconfont
    //$args['icon_type'] = 'image';
    // Disable the panel sections showing as submenu items.
    // Default: true
    //$args['allow_sub_menu'] = false;
    // Set ANY custom page help tabs, displayed using the new help tab API. Tabs are shown in order of definition.
    $args['help_tabs'][] = array('id' => 'redux-opts-1', 'title' => __('Theme Information 1', 'asteria'), 'content' => __('<p>This is the tab content, HTML is allowed.</p>', 'asteria'));
    $args['help_tabs'][] = array('id' => 'redux-opts-2', 'title' => __('Theme Information 2', 'asteria'), 'content' => __('<p>This is the tab content, HTML is allowed.</p>', 'asteria'));
    // Set the help sidebar for the options page.
    $args['help_sidebar'] = __('<p>This is the sidebar content, HTML is allowed.</p>', 'asteria');
    // Add HTML before the form.
    if (!isset($args['global_variable']) || $args['global_variable'] !== false) {
        if (!empty($args['global_variable'])) {
            $v = $args['global_variable'];
        } else {
            $v = str_replace("-", "_", $args['opt_name']);
        }
        $args['intro_text'] = __('<p><strong><a target="_blank" href="http://bit.ly/1FWcAUG"><i class="icon-upload"></i> Upgrade to Asteria PRO</a></strong> to Unlock all features and design your site anyway you want. <strong>Limited Time Offer:</strong> Use coupon code <code>15OFF</code> to get instant 15% off of the PRO!</p>', 'asteria');
    } else {
        $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');
    }
    // Add content after the form.
    $args['footer_text'] = __('Like this Theme? Want to Support the Developer & <strong>Keep it Free forever? <a href="https://wordpress.org/support/view/theme-reviews/asteria-lite?filter=5#postform" target="_blank">Rate it!</a></strong>', 'asteria');
    // Set footer/credit line.
    //$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');
    $sections = array();
    //Background Patterns Reader
    $sample_patterns_path = ReduxFramework::$_dir . '../sample/patterns/';
    $sample_patterns_url = ReduxFramework::$_url . '../sample/patterns/';
    $sample_patterns = array();
    if (is_dir($sample_patterns_path)) {
        if ($sample_patterns_dir = opendir($sample_patterns_path)) {
            $sample_patterns = array();
            while (($sample_patterns_file = readdir($sample_patterns_dir)) !== false) {
                if (stristr($sample_patterns_file, '.png') !== false || stristr($sample_patterns_file, '.jpg') !== false) {
                    $name = explode(".", $sample_patterns_file);
                    $name = str_replace('.' . end($name), '', $sample_patterns_file);
                    $sample_patterns[] = array('alt' => $name, 'img' => $sample_patterns_url . $sample_patterns_file);
                }
            }
        }
    }
    $sections[] = array('title' => __('Basic', 'asteria'), 'header' => '', 'desc' => '', 'icon_class' => 'icon-large', 'icon' => 'cogs', 'fields' => array(array('id' => 'site_width_id', 'type' => 'image_select', 'compiler' => true, 'title' => __('Site Width', 'asteria'), 'subtitle' => __('Select between Fixed Width and Full Width', 'asteria'), 'options' => array('1' => array('alt' => 'Fixed', 'img' => get_template_directory_uri() . '/images/fixed.png'), '2' => array('alt' => 'Full Width', 'img' => get_template_directory_uri() . '/images/fullwidth.png')), 'default' => '1'), array('id' => 'logo_image_id', 'type' => 'text', 'title' => __('Logo/Header Image', 'asteria'), 'desc' => __('The Feature is only available in Asteria PRO', 'asteria'), 'subtitle' => ''), array('id' => 'head_type_id', 'type' => 'select', 'title' => __('Header Type', 'asteria'), 'desc' => __('More Header Types are available in Asteria PRO', 'asteria'), 'subtitle' => __('Change how the header looks', 'asteria'), 'options' => array('head4' => 'Header Type 4'), 'default' => 'head4'), array('id' => 'page_type_id', 'type' => 'select', 'title' => __('Page Header Type', 'asteria'), 'subtitle' => '', 'desc' => __('Change how the Page Title Looks', 'asteria'), 'options' => array('1' => 'Big Page header', '2' => 'Normal Page Header'), 'default' => '1'), array('id' => 'ajax_id', 'type' => 'switch', 'title' => __('Ajax Pagination', 'asteria'), 'subtitle' => __('Ajax pagination(Go to next page without reloading the page', 'asteria'), "default" => 1), array('id' => 'totop_id', 'type' => 'switch', 'title' => __('To Top Button', 'asteria'), 'subtitle' => __('Turn On/Off "To Top Button"(The button that appears on bottom right when you scroll down to pages.', 'asteria'), "default" => 1), array('id' => 'footer_text_id', 'type' => 'editor', 'title' => __('Footer Copyright Text', 'asteria'), 'default' => '')));
    $sections[] = array('type' => 'divide');
    $sections[] = array('icon' => 'home-alt', 'icon_class' => 'icon-large', 'title' => __('Front Page ', 'asteria'), 'fields' => array(array('id' => 'block1_text_id', 'type' => 'text', 'title' => __('Block 1 Title', 'asteria'), 'default' => 'Lorem Ipsum'), array('id' => 'block1_icon', 'type' => 'select', 'title' => __('Block 1 Icon', 'asteria'), 'data' => 'elusive', 'default' => 'fa-camera'), array('id' => 'block1_link_id', 'type' => 'text', 'title' => __('Block 1 Link', 'asteria')), array('id' => 'block1_textarea_id', 'type' => 'editor', 'title' => __('Block 1 Content', 'asteria'), 'default' => 'Lorem ipsum dolor sit amet, consectetur  dol adipiscing elit. Nam nec rhoncus risus. In ultrices lacinia ipsum, posuere faucibus velit bibe.'), array('id' => 'block2_text_id', 'type' => 'text', 'title' => __('Block 2 Title', 'asteria'), 'default' => 'Lorem Ipsum'), array('id' => 'block2_icon', 'type' => 'select', 'title' => __('Block 2 Icon', 'asteria'), 'data' => 'elusive', 'default' => 'fa-rocket'), array('id' => 'block2_link_id', 'type' => 'text', 'title' => __('Block 2 Link', 'asteria')), array('id' => 'block2_textarea_id', 'type' => 'editor', 'title' => __('Block 2 Content', 'asteria'), 'default' => 'Lorem ipsum dolor sit amet, consectetur  dol adipiscing elit. Nam nec rhoncus risus. In ultrices lacinia ipsum, posuere faucibus velit bibe.'), array('id' => 'block3_text_id', 'type' => 'text', 'title' => __('Block 3 Title', 'asteria'), 'default' => 'Lorem Ipsum'), array('id' => 'block3_icon', 'type' => 'select', 'title' => __('Block 3 Icon', 'asteria'), 'data' => 'elusive', 'default' => 'fa-signal'), array('id' => 'block3_link_id', 'type' => 'text', 'title' => __('Block 3 Link', 'asteria')), array('id' => 'block3_textarea_id', 'type' => 'editor', 'title' => __('Block 3 Content', 'asteria'), 'default' => 'Lorem ipsum dolor sit amet, consectetur  dol adipiscing elit. Nam nec rhoncus risus. In ultrices lacinia ipsum, posuere faucibus velit bibe.'), array('id' => 'block4_text_id', 'type' => 'text', 'title' => __('Block 4 Title', 'asteria'), 'default' => 'Lorem Ipsum'), array('id' => 'block4_icon', 'type' => 'select', 'title' => __('Block 4 Icon', 'asteria'), 'data' => 'elusive', 'default' => 'fa-cogs'), array('id' => 'block4_link_id', 'type' => 'text', 'title' => __('Block 4 Link', 'asteria')), array('id' => 'block4_textarea_id', 'type' => 'editor', 'title' => __('Block 4 Content', 'asteria'), 'default' => 'Lorem ipsum dolor sit amet, consectetur  dol adipiscing elit. Nam nec rhoncus risus. In ultrices lacinia ipsum, posuere faucibus velit bibe.'), array('id' => 'welcm_textarea_id', 'type' => 'editor', 'title' => __('Welcome Text', 'asteria'), 'default' => '<h2>Lorem ipsum dolor sit amet, consectetur  dol adipiscing elit. Nam nec rhoncus risus. In ultrices lacinia ipsum, posuere faucibus velit bibe.</h2>'), array('id' => 'welcome_color_id', 'type' => 'color', 'title' => __('Background Color ', 'asteria'), 'default' => '#eeeeee', 'validate' => 'color'), array('id' => 'posts_title_id', 'type' => 'editor', 'title' => __('Title &amp; Description', 'asteria'), 'default' => '<h2 style="text-align: center;"><span style="color: #30B7E8;">Check Out Our Portfolio</span></h2><p style="text-align: center;">The Very recent work for our clients</p>'), array('id' => 'front_layout_id', 'type' => 'image_select', 'compiler' => true, 'title' => __('Posts layout', 'asteria'), 'subtitle' => __('More Posts Layouts are only available in PRO version.', 'asteria'), 'options' => array('1' => array('alt' => 'Layout 1', 'img' => get_template_directory_uri() . '/images/layout1.png')), 'default' => '1'), array('id' => 'enable_cat', 'type' => 'switch', 'title' => __('Display posts from selected Categories', 'asteria'), "default" => 0), array('id' => 'posts_cat_id', 'type' => 'select', 'data' => 'categories', 'multi' => true, 'title' => __('Category Names', 'asteria')), array('id' => 'n_posts_field_id', 'type' => 'text', 'title' => __('Number of Posts ', 'asteria'), 'default' => '9'), array('id' => 'blocks-info', 'type' => 'info', 'desc' => __("You can Add More Blocks in Asteria PRO", "asteria")), array('id' => 'map-info', 'type' => 'info', 'desc' => __("This feature is only available in Asteria PRO", "asteria")), array('id' => 'callaction-info', 'type' => 'info', 'desc' => __("This feature is only available in Asteria PRO", "asteria")), array('id' => 'widget-info', 'type' => 'info', 'desc' => __("This feature is only available in Asteria PRO", "asteria")), array('id' => 'home_sort_id', 'type' => 'sortable', 'mode' => 'checkbox', 'title' => __('Frontpage Elements position', 'asteria'), 'desc' => __('Drag and Drop each element to reorder their position.', 'asteria'), 'options' => array('blocks' => 'Blocks', 'welcome-text' => 'Welcome Text', 'posts' => 'Frontpage Posts'), 'default' => array('blocks' => 'Blocks', 'welcome-text' => 'Welcome Text', 'posts' => 'Frontpage Posts'))));
    $sections[] = array('icon' => 'website', 'icon_class' => 'icon-large', 'title' => __('Slider', 'asteria'), 'fields' => array(array('id' => 'slider_type_id', 'type' => 'select', 'title' => __('Slider Type', 'asteria'), 'options' => array('nivo' => 'Nivo Slider', 'noslider' => 'Disable Slider'), 'desc' => __('More Slider types are only available in PRO version.', 'asteria'), 'default' => 'nivo'), array('id' => 'n_slide_time_id', 'type' => 'text', 'title' => __('Pause Time Between Each Slide ', 'asteria'), 'default' => '4000'), array('id' => 'slide_height', 'type' => 'text', 'title' => __('Slider Height ', 'asteria'), 'description' => __('type in "auto" to make the slider height flexible. ', 'asteria'), 'default' => '500px'), array('id' => 'slidefont_size_id', 'type' => 'text', 'title' => __('Slide Font Size', 'asteria'), 'default' => '60px'), array('id' => 'slide_button_text', 'type' => 'text', 'title' => __('Slider Button Text', 'asteria'), 'description' => __('If you dont want to display The Slider Buttons, keep this field empty', 'asteria'), 'default' => ''), array('id' => 'slides', 'type' => 'slides')));
    $sections[] = array('icon' => 'tint', 'icon_class' => 'icon-large', 'title' => __('Style', 'asteria'), 'fields' => array(array('id' => 'sec_color_id', 'type' => 'color', 'title' => __('Secondary Element background Color', 'asteria'), 'default' => '#30B7E8', 'transparent' => false, 'validate' => 'color'), array('id' => 'primtxt_color_id', 'type' => 'color', 'title' => __('Site wide Text Color', 'asteria'), 'default' => '#888888', 'transparent' => false, 'validate' => 'color'), array('id' => 'sectxt_color_id', 'type' => 'color', 'title' => __('Text Color on secondary elements', 'asteria'), 'default' => '#FFFFFF', 'transparent' => false, 'validate' => 'color'), array('id' => 'leavreplytxt_color_id', 'type' => 'color', 'title' => __('"Leave a Reply" Text Color', 'asteria'), 'default' => '#333333', 'transparent' => false, 'validate' => 'color'), array('id' => 'style_dvd', 'type' => 'divide'), array('id' => 'rounded_id', 'type' => 'switch', 'title' => __('Rounded Corners', 'asteria'), "default" => 0), array('id' => 'shadow_id', 'type' => 'switch', 'title' => __('Drop Shadow', 'asteria'), "default" => 0), array('id' => 'style-info', 'type' => 'info', 'desc' => __("More Styling Options are only available in Asteria PRO", "asteria"))));
    $sections[] = array('icon' => 'text-height', 'icon_class' => 'icon-large', 'title' => __('Typography Settings', 'asteria'), 'fields' => array(array('id' => 'logo_font_id', 'type' => 'typography', 'title' => __('Logo Style', 'asteria'), 'subtitle' => __('Specify the body font properties.', 'asteria'), 'google' => true, 'font-backup' => false, 'line-height' => false, 'default' => array('color' => '#ffffff', 'font-size' => '44px', 'font-family' => 'Raleway', 'font-weight' => 'Normal')), array('id' => 'content_font_id', 'type' => 'typography', 'title' => __('Site Content Text Style', 'asteria'), 'google' => false, 'subsets' => false, 'font-weight' => false, 'font-style' => false, 'font-backup' => false, 'font-size' => false, 'color' => false, 'preview' => true, 'line-height' => false, 'word-spacing' => false, 'letter-spacing' => false, 'default' => array('font-size' => '14px')), array('id' => 'ptitle_font_id', 'type' => 'typography', 'title' => __('Post Titles, headings and Menu Font', 'asteria'), 'google' => false, 'subsets' => false, 'font-weight' => false, 'font-style' => false, 'font-backup' => false, 'color' => false, 'preview' => true, 'line-height' => false, 'word-spacing' => false, 'letter-spacing' => false, 'font-size' => false, 'default' => array('font-family' => 'Open Sans')), array('id' => 'typo-info', 'type' => 'info', 'desc' => __("More Typography Options & 600+ Fonts are only available in Asteria PRO", "asteria"))));
    $sections[] = array('icon' => 'twitter', 'icon_class' => 'icon-large', 'title' => __('Social', 'asteria'), 'fields' => array(array('id' => 'social_single_id', 'type' => 'switch', 'title' => __('Social Share Icons under Posts ', 'asteria'), "default" => 1), array('id' => 'social_color_id', 'type' => 'color', 'title' => __('Social Share Icons Color ', 'asteria'), 'default' => '#CCCCCC', 'transparent' => false, 'validate' => 'color'), array('id' => 'social_dvd', 'type' => 'divide'), array('id' => 'facebook_field_id', 'type' => 'text', 'title' => __('Facebook URL ', 'asteria'), 'validate' => 'url'), array('id' => 'twitter_field_id', 'type' => 'text', 'title' => __('Twitter URL ', 'asteria'), 'validate' => 'url'), array('id' => 'gplus_field_id', 'type' => 'text', 'title' => __('Google Plus URL ', 'asteria'), 'validate' => 'url'), array('id' => 'youtube_field_id', 'type' => 'text', 'title' => __('Youtube URL ', 'asteria'), 'validate' => 'url'), array('id' => 'flickr_field_id', 'type' => 'text', 'title' => __('Flickr URL ', 'asteria'), 'validate' => 'url'), array('id' => 'linkedin_field_id', 'type' => 'text', 'title' => __('Linkedin URL ', 'asteria'), 'validate' => 'url'), array('id' => 'pinterest_field_id', 'type' => 'text', 'title' => __('Pinterest URL ', 'asteria'), 'validate' => 'url'), array('id' => 'tumblr_field_id', 'type' => 'text', 'title' => __('Tumblr URL ', 'asteria'), 'validate' => 'url'), array('id' => 'instagram_field_id', 'type' => 'text', 'title' => __('Instagram URL ', 'asteria'), 'validate' => 'url'), array('id' => 'rss_field_id', 'type' => 'text', 'title' => __('RSS URL ', 'asteria'), 'validate' => 'url')));
    $sections[] = array('icon' => 'tasks', 'icon_class' => 'icon-large', 'title' => __('Miscellaneous Settings', 'asteria'), 'fields' => array(array('id' => 'cat_layout_id', 'type' => 'image_select', 'compiler' => true, 'title' => __('Category, Archive Page posts layout', 'asteria'), 'options' => array('1' => array('alt' => 'Layout 1', 'img' => get_template_directory_uri() . '/images/layout1.png')), 'default' => '1'), array('id' => 'post_info_id', 'type' => 'switch', 'title' => __('Show Post Info - Date, Author Name, Categories etc..', 'asteria'), "default" => 1), array('id' => 'post_nextprev_id', 'type' => 'switch', 'title' => __('Show Next and Previous Posts', 'asteria'), "default" => 1), array('id' => 'post_comments_id', 'type' => 'switch', 'title' => __('Show Comments', 'asteria'), "default" => 1), array('id' => 'post_lightbox_id', 'type' => 'switch', 'title' => __('Lightbox Feature', 'asteria'), "default" => 1), array('id' => 'post_gallery_id', 'type' => 'switch', 'title' => __('Beautify My Galleries', 'asteria'), "default" => 1), array('id' => 'blog_cat_id', 'type' => 'select', 'data' => 'categories', 'title' => __('Display Blog Posts from a selected Category', 'asteria'), 'desc' => __('If you have setup a Blog page with Blog Page Template, choose a category to get the posts from', 'asteria')), array('id' => 'blog_num', 'type' => 'text', 'title' => __('Blog Posts Per Page', 'asteria'), 'desc' => __('If you have setup a Blog page with Blog Page Template, choose the number of posts you want to display per page', 'asteria'), 'default' => '10')));
    $sections[] = array('icon' => 'phone', 'icon_class' => 'icon-large', 'title' => __('Mobile Layout', 'asteria'), 'desc' => __('Checking each of these below option will only hide these elements from the Mobile layout.', 'asteria'), 'fields' => array(array('id' => 'hide_mob_slide', 'type' => 'checkbox', 'title' => __('Hide Slider', 'asteria'), 'desc' => '', 'default' => '0'), array('id' => 'hide_mob_blocks', 'type' => 'checkbox', 'title' => __('Hide Front Page Blocks', 'asteria'), 'desc' => '', 'default' => '0'), array('id' => 'hide_mob_welcm', 'type' => 'checkbox', 'title' => __('Hide Front Page Welcome Text', 'asteria'), 'desc' => '', 'default' => '0'), array('id' => 'hide_mob_frontposts', 'type' => 'checkbox', 'title' => __('Hide Front Page Posts', 'asteria'), 'desc' => '', 'default' => '0'), array('id' => 'hide_mob_footwdgt', 'type' => 'checkbox', 'title' => __('Hide Footer Widgets', 'asteria'), 'desc' => '', 'default' => '0'), array('id' => 'hide_mob_rightsdbr', 'type' => 'checkbox', 'title' => __('Hide Right Sidebar', 'asteria'), 'desc' => '', 'default' => '0')));
    $sections[] = array('icon' => 'css', 'icon_class' => 'icon-large', 'title' => __('Custom CSS', 'asteria'), 'desc' => __('Add your custom css here', 'asteria'), 'fields' => array(array('id' => 'custom-css', 'type' => 'textarea', 'validate' => 'css')));
    $sections[] = array('icon' => 'wrench-alt', 'icon_class' => 'icon-large', 'title' => __('Maintenance Mode', 'asteria'), 'fields' => array(array('id' => 'offline_id', 'type' => 'switch', 'title' => __('Maintenance Mode', 'asteria'), "default" => 0), array('id' => 'offline_date_id', 'type' => 'date', 'title' => __('Date ', 'asteria'), 'subtitle' => __('Site will be online on', 'asteria')), array('id' => 'offline_time_id', 'type' => 'text', 'title' => ''), array('id' => 'offline_text_id', 'type' => 'text', 'title' => __('Title ', 'asteria'), 'default' => 'Maintenance Mode'), array('id' => 'offline_msg_id', 'type' => 'editor', 'title' => __('Message ', 'asteria'), 'default' => 'We are currently undergoing  maintenance. Please try back after')));
    $sections[] = array('type' => 'divide');
    $sections[] = array('icon' => 'exclamation-sign', 'icon_class' => 'icon-large', 'title' => __('About The Theme', 'asteria'), 'fields' => array(array('id' => 'about_id', 'type' => 'info', 'required' => array('18', 'equals', array('1', '2')), 'raw_html' => true, 'desc' => $about)));
    $sections[] = array('icon' => 'upload', 'icon_class' => 'icon-large', 'title' => __('Upgrade to PRO', 'asteria'), 'fields' => array(array('id' => 'upgrade_id', 'type' => 'info', 'required' => array('18', 'equals', array('1', '2')), 'raw_html' => true, 'desc' => $upgrade)));
    $sections[] = array('icon' => 'book', 'icon_class' => 'icon-large', 'title' => __('Documentation', 'asteria'), 'fields' => array(array('id' => 'docu_id', 'type' => 'info', 'required' => array('18', 'equals', array('1', '2')), 'raw_html' => true, 'desc' => $documentation)));
    global $ReduxFramework;
    $ReduxFramework = new ReduxFramework($sections, $args, $tabs);
}
        public function setSections()
        {
            /**
                          Used within different fields. Simply examples. Search for ACTUAL DECLARATION for field examples
                         * */
            // Background Patterns Reader
            $sample_patterns_path = ReduxFramework::$_dir . '../sample/patterns/';
            $sample_patterns_url = ReduxFramework::$_url . '../sample/patterns/';
            $sample_patterns = array();
            if (is_dir($sample_patterns_path)) {
                if ($sample_patterns_dir = opendir($sample_patterns_path)) {
                    $sample_patterns = array();
                    while (($sample_patterns_file = readdir($sample_patterns_dir)) !== false) {
                        if (stristr($sample_patterns_file, '.png') !== false || stristr($sample_patterns_file, '.jpg') !== false) {
                            $name = explode('.', $sample_patterns_file);
                            $name = str_replace('.' . end($name), '', $sample_patterns_file);
                            $sample_patterns[] = array('alt' => $name, 'img' => $sample_patterns_url . $sample_patterns_file);
                        }
                    }
                }
            }
            ob_start();
            $ct = wp_get_theme();
            $this->theme = $ct;
            $item_name = $this->theme->get('Name');
            $tags = $this->theme->Tags;
            $screenshot = $this->theme->get_screenshot();
            $class = $screenshot ? 'has-screenshot' : '';
            $customize_title = sprintf(__('Customize &#8220;%s&#8221;', 'thefoxwp'), $this->theme->display('Name'));
            ?>
            <div id="current-theme" class="<?php 
            echo esc_attr($class);
            ?>
">
            <?php 
            if ($screenshot) {
                ?>
                <?php 
                if (current_user_can('edit_theme_options')) {
                    ?>
                        <a href="<?php 
                    echo wp_customize_url();
                    ?>
" class="load-customize hide-if-no-customize" title="<?php 
                    echo esc_attr($customize_title);
                    ?>
">
                            <img src="<?php 
                    echo esc_url($screenshot);
                    ?>
" alt="<?php 
                    esc_attr_e('Current theme preview');
                    ?>
" />
                        </a>
                <?php 
                }
                ?>
                    <img class="hide-if-customize" src="<?php 
                echo esc_url($screenshot);
                ?>
" alt="<?php 
                esc_attr_e('Current theme preview');
                ?>
" />
                <?php 
            }
            ?>

                <h4><?php 
            echo $this->theme->display('Name');
            ?>
</h4>

                <div>
                    <ul class="theme-info">
                        <li><?php 
            printf(__('By %s', 'thefoxwp'), $this->theme->display('Author'));
            ?>
</li>
                        <li><?php 
            printf(__('Version %s', 'thefoxwp'), $this->theme->display('Version'));
            ?>
</li>
                        <li><?php 
            echo '<strong>' . __('Tags', 'thefoxwp') . ':</strong> ';
            printf($this->theme->display('Tags'));
            ?>
</li>
                    </ul>
                    <p class="theme-description"><?php 
            echo $this->theme->display('Description');
            ?>
</p>
            <?php 
            if ($this->theme->parent()) {
                printf(' <p class="howto">' . __('This <a href="%1$s">child theme</a> requires its parent theme, %2$s.') . '</p>', __('http://codex.wordpress.org/Child_Themes', 'thefoxwp'), $this->theme->parent()->display('Name'));
            }
            ?>

                </div>
            </div>

            <?php 
            $item_info = ob_get_contents();
            ob_end_clean();
            $sampleHTML = '';
            if (file_exists(dirname(__FILE__) . '/info-html.html')) {
                /** @global WP_Filesystem_Direct $wp_filesystem  */
                global $wp_filesystem;
                if (empty($wp_filesystem)) {
                    require_once ABSPATH . '/wp-admin/includes/file.php';
                    WP_Filesystem();
                }
                $sampleHTML = $wp_filesystem->get_contents(dirname(__FILE__) . '/info-html.html');
            }
            // ACTUAL DECLARATION OF SECTIONS
            $this->sections[] = array('title' => __('General Settings', 'thefoxwp'), 'desc' => __('Welcome to TheFox theme options panel! Have fun customizing the theme!', 'thefoxwp'), 'icon' => 'el-icon-edit', 'fields' => array(array('id' => 'rd_logo', 'type' => 'media', 'url' => true, 'title' => __('Dark Logo upload', 'thefoxwp'), 'desc' => __('Dark Logo', 'thefoxwp'), 'subtitle' => __('Use big logo for retina ready display', 'thefoxwp'), 'default' => array('url' => '')), array('id' => 'rd_white_logo', 'type' => 'media', 'url' => true, 'title' => __('Light Logo upload', 'thefoxwp'), 'desc' => __('Upload a logo that will be use when the header is transparent', 'thefoxwp'), 'subtitle' => __('Will be use when transparent header', 'thefoxwp'), 'default' => array('url' => '')), array('id' => 'rd_logo_width', 'type' => 'text', 'title' => __('Logo width', 'thefoxwp'), 'subtitle' => __('Don\'t include "px" in the string. e.g. 150', 'thefoxwp'), 'desc' => __('Set your logo size, ', 'thefoxwp'), 'validate' => 'numeric', 'default' => '155'), array('id' => 'rd_mobile_logo', 'type' => 'media', 'url' => true, 'title' => __('Mobile Dark Logo upload', 'thefoxwp'), 'desc' => __('Mobile Dark Logo', 'thefoxwp'), 'subtitle' => __('If you want to use a different logo when view from Tablet or Mobile ( optional )', 'thefoxwp'), 'default' => array('url' => '')), array('id' => 'rd_mobile_white_logo', 'type' => 'media', 'url' => true, 'title' => __('Mobile Light Logo upload', 'thefoxwp'), 'desc' => __('Mobile Light Logo (used when transparent header)', 'thefoxwp'), 'subtitle' => __('If you want to use a different logo when view from Tablet or Mobile ( optional )', 'thefoxwp'), 'default' => array('url' => '')), array('id' => 'rd_custom_favicon', 'type' => 'media', 'url' => true, 'title' => __('Favicon upload', 'thefoxwp'), 'desc' => __('upload favicon', 'thefoxwp'), 'subtitle' => __('Upload a 32px x 32px Png/Gif/Ico image that will represent your website\'s favicon.', 'thefoxwp'), 'default' => array('url' => 'http://thefoxwp.com/wp-content/uploads/2015/03/favicon2.png')), array('id' => 'rd_responsive', 'type' => 'switch', 'title' => __('Enable Responsive Design', 'thefoxwp'), 'subtitle' => __('This adjusts the layout of the website depending on the screen size/device.', 'thefoxwp'), 'default' => true), array('id' => 'rd_smooth_scroll', 'type' => 'switch', 'title' => __('Smooth Scrolling', 'thefoxwp'), 'subtitle' => __('Toggle whether or not to enable the smooth scrolling effect.', 'thefoxwp'), 'default' => true), array('id' => 'rd_feedburner', 'type' => 'text', 'title' => __('FeedBurner URL', 'thefoxwp'), 'subtitle' => __('Enter your full FeedBurner URL (or any other preferred feed URL) if you wish to use FeedBurner over the standard WordPress Feed e.g. http://feeds.feedburner.com/yoururlhere', 'thefoxwp'), 'desc' => __('This is must be an url.', 'thefoxwp'), 'validate' => 'url', 'default' => '', 'text_hint' => array('title' => '', 'content' => 'Please enter a valid <strong>URL</strong> in this field.'))));
            $this->sections[] = array('icon' => 'el-icon-edit', 'title' => __('Styling Options', 'thefoxwp'), 'fields' => array(array('id' => 'rd_boxed', 'type' => 'switch', 'title' => __('Enable Boxed layout?', 'thefoxwp'), 'subtitle' => __('Turn on to use boxed layout.', 'thefoxwp'), 'default' => false), array('id' => 'rd_topmargin', 'type' => 'text', 'required' => array('rd_boxed', '=', '1'), 'title' => __('Boxed layout margin', 'thefoxwp'), 'subtitle' => __('Set the margin for the boxed layout. e.g. 60', 'thefoxwp'), 'desc' => __('Optional. ', 'thefoxwp'), 'validate' => 'numeric', 'default' => '0'), array('id' => 'rd_background', 'type' => 'background', 'required' => array('rd_boxed', '=', '1'), 'output' => array('body'), 'title' => __('Body Background', 'thefoxwp'), 'subtitle' => __('Select the Body background color or Image.', 'thefoxwp'), 'default' => '#34495e'), array('id' => 'rd_custom_css', 'type' => 'ace_editor', 'title' => __('Custom CSS', 'thefoxwp'), 'subtitle' => __('Paste your CSS code here.', 'thefoxwp'), 'mode' => 'css', 'theme' => 'monokai', 'desc' => '', 'default' => "")));
            $this->sections[] = array('icon' => 'el-icon-cog', 'title' => __('Color Preset', 'thefoxwp'), 'fields' => array(array('id' => 'opt-presets', 'type' => 'image_select', 'presets' => true, 'title' => __('Color Preset', 'thefoxwp'), 'subtitle' => __('Select the color you want to use for the theme.', 'thefoxwp'), 'default' => 0, 'options' => array('color_default' => array('alt' => 'Default', 'img' => ReduxFramework::$_url . 'assets/img/color_default.jpg', 'presets' => array('rd_current_menu_color' => '#1abc9c', 'rd_topbar_hl_color' => '#1abc9c', 'rd_topbar_topborder_color' => '#1abc9c', 'rd_drop_hl_color' => '#1abc9c', 'rd_mb_hl' => '#1abc9c', 'rd_content_hl_color' => '#1abc9c', 'rd_drop_hl_color' => '#1abc9c', 'rd_footer_hl_color' => '#1abc9c', 'rd_footer_hover_color' => '#1abc9c', 'rd_footer_bar_hl_color' => '#1abc9c', 'rd_drop_hover_color' => '#29d9c2', 'rd_content_hover_color' => '#29d9c2', 'rd_content_alt_hl_color' => '#21c2f8', 'rd_content_alt_hover_color' => '#46d1ff', 'rd_footer_bg_color' => '#1a1c27', 'rd_footer_heading_color' => '#ffffff', 'rd_footer_text_color' => '#a1b1bc', 'rd_footer_border_color' => '#243240', 'rd_footer_bar_bg_color' => '#222533', 'rd_footer_bar_heading_color' => '#ffffff', 'rd_footer_bar_text_color' => '#a1b1bc', 'rd_footer_bar_hover_color' => '#ffffff', 'rd_footer_bar_border_color' => '#282b39')), 'color_trending' => array('alt' => 'Trending', 'img' => ReduxFramework::$_url . 'assets/img/color_trending.jpg', 'presets' => array('rd_current_menu_color' => '#04bfbf', 'rd_topbar_hl_color' => '#04bfbf', 'rd_topbar_topborder_color' => '#04bfbf', 'rd_drop_hl_color' => '#04bfbf', 'rd_mb_hl' => '#04bfbf', 'rd_content_hl_color' => '#04bfbf', 'rd_drop_hl_color' => '#04bfbf', 'rd_footer_hl_color' => '#04bfbf', 'rd_footer_hover_color' => '#ffffff', 'rd_footer_bar_hl_color' => '#04bfbf', 'rd_drop_hover_color' => '#21e6f8', 'rd_content_hover_color' => '#21e6f8', 'rd_content_alt_hl_color' => '#04bfbf', 'rd_content_alt_hover_color' => '#13d7d7', 'rd_footer_bg_color' => '#2f2933', 'rd_footer_heading_color' => '#ffffff', 'rd_footer_text_color' => '#a1b1bc', 'rd_footer_border_color' => '#2f2933', 'rd_footer_bar_bg_color' => '#231f26', 'rd_footer_bar_heading_color' => '#ffffff', 'rd_footer_bar_text_color' => '#a1b1bc', 'rd_footer_bar_hover_color' => '#ffffff', 'rd_footer_bar_border_color' => '#282b39')), 'color_lightblue' => array('alt' => 'LightBlue', 'img' => ReduxFramework::$_url . 'assets/img/color_lightblue.jpg', 'presets' => array('rd_current_menu_color' => '#21c2f8', 'rd_topbar_hl_color' => '#21c2f8', 'rd_topbar_topborder_color' => '#21c2f8', 'rd_drop_hl_color' => '#21c2f8', 'rd_mb_hl' => '#21c2f8', 'rd_content_hl_color' => '#21c2f8', 'rd_drop_hl_color' => '#21c2f8', 'rd_footer_hl_color' => '#21c2f8', 'rd_footer_hover_color' => '#21c2f8', 'rd_footer_bar_hl_color' => '#21c2f8', 'rd_drop_hover_color' => '#21e6f8', 'rd_content_hover_color' => '#21e6f8', 'rd_content_alt_hl_color' => '#21c2f8', 'rd_content_alt_hover_color' => '#21e6f8', 'rd_footer_bg_color' => '#2f383d', 'rd_footer_heading_color' => '#ffffff', 'rd_footer_text_color' => '#a1b1bc', 'rd_footer_border_color' => '#465259', 'rd_footer_bar_bg_color' => '#21262a', 'rd_footer_bar_heading_color' => '#ffffff', 'rd_footer_bar_text_color' => '#a1b1bc', 'rd_footer_bar_hover_color' => '#ffffff', 'rd_footer_bar_border_color' => '#21262a')), 'color_businessblue' => array('alt' => 'BusinessBlue', 'img' => ReduxFramework::$_url . 'assets/img/color_businessblue.jpg', 'presets' => array('rd_current_menu_color' => '#288bd0', 'rd_topbar_hl_color' => '#288bd0', 'rd_topbar_topborder_color' => '#288bd0', 'rd_drop_hl_color' => '#288bd0', 'rd_mb_hl' => '#288bd0', 'rd_content_hl_color' => '#288bd0', 'rd_drop_hl_color' => '#288bd0', 'rd_footer_hl_color' => '#288bd0', 'rd_footer_hover_color' => '#288bd0', 'rd_footer_bar_hl_color' => '#288bd0', 'rd_content_alt_hl_color' => '#288bd0', 'rd_drop_hover_color' => '#2396e6', 'rd_content_hover_color' => '#2396e6', 'rd_content_alt_hover_color' => '#2396e6', 'rd_footer_bg_color' => '#232323', 'rd_footer_heading_color' => '#ffffff', 'rd_footer_text_color' => '#DDDDDD', 'rd_footer_border_color' => '#3A3A3A', 'rd_footer_bar_bg_color' => '#1A1A1A', 'rd_footer_bar_heading_color' => '#ffffff', 'rd_footer_bar_text_color' => '#DDDDDD', 'rd_footer_bar_hover_color' => '#ffffff', 'rd_footer_bar_border_color' => '#1A1A1A')), 'color_red' => array('alt' => 'Red', 'img' => ReduxFramework::$_url . 'assets/img/color_red.jpg', 'presets' => array('rd_current_menu_color' => '#FF4539', 'rd_topbar_hl_color' => '#FF4539', 'rd_topbar_topborder_color' => '#FF4539', 'rd_drop_hl_color' => '#FF4539', 'rd_mb_hl' => '#FF4539', 'rd_content_hl_color' => '#FF4539', 'rd_drop_hl_color' => '#FF4539', 'rd_footer_hl_color' => '#FF4539', 'rd_footer_hover_color' => '#FF4539', 'rd_footer_bar_hl_color' => '#FF4539', 'rd_content_alt_hl_color' => '#FF4539', 'rd_drop_hover_color' => '#ff5e54', 'rd_content_hover_color' => '#ff5e54', 'rd_content_alt_hover_color' => '#ff5e54', 'rd_footer_bg_color' => '#232323', 'rd_footer_heading_color' => '#ffffff', 'rd_footer_text_color' => '#DDDDDD', 'rd_footer_border_color' => '#3A3A3A', 'rd_footer_bar_bg_color' => '#1A1A1A', 'rd_footer_bar_heading_color' => '#ffffff', 'rd_footer_bar_text_color' => '#DDDDDD', 'rd_footer_bar_hover_color' => '#ffffff', 'rd_footer_bar_border_color' => '#1A1A1A')), 'color_orange' => array('alt' => 'Orange', 'img' => ReduxFramework::$_url . 'assets/img/color_orange.jpg', 'presets' => array('rd_current_menu_color' => '#ff881e', 'rd_topbar_hl_color' => '#ff881e', 'rd_topbar_topborder_color' => '#ff881e', 'rd_drop_hl_color' => '#ff881e', 'rd_mb_hl' => '#ff881e', 'rd_content_hl_color' => '#ff881e', 'rd_drop_hl_color' => '#ff881e', 'rd_footer_hl_color' => '#ff881e', 'rd_footer_hover_color' => '#ff881e', 'rd_footer_bar_hl_color' => '#ff881e', 'rd_content_alt_hl_color' => '#ff881e', 'rd_drop_hover_color' => '#ff9d1e', 'rd_content_hover_color' => '#ff9d1e', 'rd_content_alt_hover_color' => '#ff9d1e', 'rd_footer_bg_color' => '#232323', 'rd_footer_heading_color' => '#ffffff', 'rd_footer_text_color' => '#DDDDDD', 'rd_footer_border_color' => '#3A3A3A', 'rd_footer_bar_bg_color' => '#1A1A1A', 'rd_footer_bar_heading_color' => '#ffffff', 'rd_footer_bar_text_color' => '#DDDDDD', 'rd_footer_bar_hover_color' => '#ffffff', 'rd_footer_bar_border_color' => '#1A1A1A')), 'color_orangeyellow' => array('alt' => 'Orange yellow', 'img' => ReduxFramework::$_url . 'assets/img/color_orangeyellow.jpg', 'presets' => array('rd_current_menu_color' => '#FCB614', 'rd_topbar_hl_color' => '#FCB614', 'rd_topbar_topborder_color' => '#FCB614', 'rd_drop_hl_color' => '#FCB614', 'rd_mb_hl' => '#FCB614', 'rd_content_hl_color' => '#FCB614', 'rd_drop_hl_color' => '#FCB614', 'rd_footer_hl_color' => '#FCB614', 'rd_footer_hover_color' => '#FCB614', 'rd_footer_bar_hl_color' => '#FCB614', 'rd_content_alt_hl_color' => '#FCB614', 'rd_drop_hover_color' => '#fcd914', 'rd_content_hover_color' => '#fcd914', 'rd_content_alt_hover_color' => '#fcd914', 'rd_footer_bg_color' => '#232323', 'rd_footer_heading_color' => '#ffffff', 'rd_footer_text_color' => '#DDDDDD', 'rd_footer_border_color' => '#3A3A3A', 'rd_footer_bar_bg_color' => '#1A1A1A', 'rd_footer_bar_heading_color' => '#ffffff', 'rd_footer_bar_text_color' => '#DDDDDD', 'rd_footer_bar_hover_color' => '#ffffff', 'rd_footer_bar_border_color' => '#1A1A1A')), 'color_green' => array('alt' => 'Green', 'img' => ReduxFramework::$_url . 'assets/img/color_green.jpg', 'presets' => array('rd_current_menu_color' => '#93ca44', 'rd_topbar_hl_color' => '#93ca44', 'rd_topbar_topborder_color' => '#93ca44', 'rd_drop_hl_color' => '#93ca44', 'rd_mb_hl' => '#93ca44', 'rd_content_hl_color' => '#93ca44', 'rd_drop_hl_color' => '#93ca44', 'rd_footer_hl_color' => '#93ca44', 'rd_footer_hover_color' => '#93ca44', 'rd_footer_bar_hl_color' => '#93ca44', 'rd_content_alt_hl_color' => '#93ca44', 'rd_drop_hover_color' => '#a8de5b', 'rd_content_hover_color' => '#a8de5b', 'rd_content_alt_hover_color' => '#a8de5b', 'rd_footer_bg_color' => '#232323', 'rd_footer_heading_color' => '#ffffff', 'rd_footer_text_color' => '#DDDDDD', 'rd_footer_border_color' => '#3A3A3A', 'rd_footer_bar_bg_color' => '#1A1A1A', 'rd_footer_bar_heading_color' => '#ffffff', 'rd_footer_bar_text_color' => '#DDDDDD', 'rd_footer_bar_hover_color' => '#ffffff', 'rd_footer_bar_border_color' => '#1A1A1A')), 'color_violet' => array('alt' => 'Violet', 'img' => ReduxFramework::$_url . 'assets/img/color_violet.jpg', 'presets' => array('rd_current_menu_color' => '#423FAE', 'rd_topbar_hl_color' => '#423FAE', 'rd_topbar_topborder_color' => '#423FAE', 'rd_drop_hl_color' => '#423FAE', 'rd_mb_hl' => '#423FAE', 'rd_content_hl_color' => '#423FAE', 'rd_drop_hl_color' => '#423FAE', 'rd_footer_hl_color' => '#423FAE', 'rd_footer_hover_color' => '#423FAE', 'rd_footer_bar_hl_color' => '#423FAE', 'rd_content_alt_hl_color' => '#423FAE', 'rd_drop_hover_color' => '#5257DF', 'rd_content_hover_color' => '#5257DF', 'rd_content_alt_hover_color' => '#5257DF', 'rd_footer_bg_color' => '#1f2224', 'rd_footer_heading_color' => '#ffffff', 'rd_footer_text_color' => '#DDDDDD', 'rd_footer_border_color' => '#38353F', 'rd_footer_bar_bg_color' => '#131314', 'rd_footer_bar_heading_color' => '#ffffff', 'rd_footer_bar_text_color' => '#DDDDDD', 'rd_footer_bar_hover_color' => '#ffffff', 'rd_footer_bar_border_color' => '#131314')), 'color_paleorange' => array('alt' => 'Pale Orange/Blue', 'img' => ReduxFramework::$_url . 'assets/img/color_paleorange.jpg', 'presets' => array('rd_current_menu_color' => '#FF8C74', 'rd_topbar_hl_color' => '#FF8C74', 'rd_topbar_topborder_color' => '#FF8C74', 'rd_drop_hl_color' => '#FF8C74', 'rd_mb_hl' => '#FF8C74', 'rd_content_hl_color' => '#FF8C74', 'rd_drop_hl_color' => '#FF8C74', 'rd_footer_hl_color' => '#FF8C74', 'rd_footer_hover_color' => '#FF8C74', 'rd_footer_bar_hl_color' => '#FF8C74', 'rd_content_alt_hl_color' => '#FF8C74', 'rd_drop_hover_color' => '#81CFE0', 'rd_content_hover_color' => '#81CFE0', 'rd_content_alt_hover_color' => '#81CFE0', 'rd_footer_bg_color' => '#232323', 'rd_footer_heading_color' => '#ffffff', 'rd_footer_text_color' => '#DDDDDD', 'rd_footer_border_color' => '#3A3A3A', 'rd_footer_bar_bg_color' => '#1A1A1A', 'rd_footer_bar_heading_color' => '#ffffff', 'rd_footer_bar_text_color' => '#DDDDDD', 'rd_footer_bar_hover_color' => '#ffffff', 'rd_footer_bar_border_color' => '#1A1A1A')), 'color_palered' => array('alt' => 'Pale Red/Blue', 'img' => ReduxFramework::$_url . 'assets/img/color_palered.jpg', 'presets' => array('rd_current_menu_color' => '#FD727D', 'rd_topbar_hl_color' => '#FD727D', 'rd_topbar_topborder_color' => '#FD727D', 'rd_drop_hl_color' => '#FD727D', 'rd_mb_hl' => '#FD727D', 'rd_content_hl_color' => '#FD727D', 'rd_drop_hl_color' => '#FD727D', 'rd_footer_hl_color' => '#FD727D', 'rd_footer_hover_color' => '#FD727D', 'rd_footer_bar_hl_color' => '#FD727D', 'rd_content_alt_hl_color' => '#FD727D', 'rd_drop_hover_color' => '#52DBEB', 'rd_content_hover_color' => '#52DBEB', 'rd_content_alt_hover_color' => '#52DBEB', 'rd_footer_bg_color' => '#232323', 'rd_footer_heading_color' => '#ffffff', 'rd_footer_text_color' => '#DDDDDD', 'rd_footer_border_color' => '#3A3A3A', 'rd_footer_bar_bg_color' => '#1A1A1A', 'rd_footer_bar_heading_color' => '#ffffff', 'rd_footer_bar_text_color' => '#DDDDDD', 'rd_footer_bar_hover_color' => '#ffffff', 'rd_footer_bar_border_color' => '#1A1A1A'))))));
            $this->sections[] = array('icon' => 'el-icon-font', 'title' => __('Typography', 'thefoxwp'), 'fields' => array(array('id' => 'rd_custom_font', 'type' => 'switch', 'title' => __('Use Custom fonts for body?', 'thefoxwp'), 'subtitle' => __('Turn on to use custom fonts for the theme main text.', 'thefoxwp'), 'default' => false), array('id' => 'rd_body_font', 'type' => 'typography', 'required' => array('rd_custom_font', '=', '1'), 'title' => __('Body font', 'thefoxwp'), 'subtitle' => __('Specify the Body font properties. ( color not needed )', 'thefoxwp'), 'google' => true, 'default' => array('color' => '#444', 'font-size' => '14px', 'font-family' => 'Lato', 'font-weight' => 'Normal', 'line-height' => '14px')), array('id' => 'rd_custom_menu_font', 'type' => 'switch', 'title' => __('Use Custom fonts for Menu / Header?', 'thefoxwp'), 'subtitle' => __('Turn on to use custom fonts for the theme Menu / Header.', 'thefoxwp'), 'default' => false), array('id' => 'rd_menu_font', 'type' => 'typography', 'required' => array('rd_custom_menu_font', '=', '1'), 'title' => __('Menu / Header font', 'thefoxwp'), 'subtitle' => __('Specify the Navigation / Header font properties. ( color not needed )', 'thefoxwp'), 'google' => true, 'default' => array('color' => '#444', 'font-size' => '14px', 'font-family' => 'Lato', 'font-weight' => '400', 'line-height' => '14px')), array('id' => 'rd_dropdown_font', 'type' => 'typography', 'required' => array('rd_custom_menu_font', '=', '1'), 'title' => __('Menu dropdown font', 'thefoxwp'), 'subtitle' => __('Specify the Menu drop down font properties. ( color not needed )', 'thefoxwp'), 'google' => true, 'default' => array('color' => '#444', 'font-size' => '13px', 'font-family' => 'Lato', 'font-weight' => '400', 'line-height' => '14px')), array('id' => 'rd_custom_heading_font', 'type' => 'switch', 'title' => __('Use Custom fonts for Headings?', 'thefoxwp'), 'subtitle' => __('Turn on to use custom fonts for the theme Headings.', 'thefoxwp'), 'default' => false), array('id' => 'rd_h1_font', 'type' => 'typography', 'required' => array('rd_custom_heading_font', '=', '1'), 'title' => __('Heading 1 font', 'thefoxwp'), 'subtitle' => __('Specify the Heading 1 ( h1 ) font properties. ( color not needed )', 'thefoxwp'), 'google' => true, 'default' => array('color' => '#444', 'font-size' => '34px', 'font-family' => 'Lato', 'font-weight' => '700', 'line-height' => '42px')), array('id' => 'rd_h2_font', 'type' => 'typography', 'required' => array('rd_custom_heading_font', '=', '1'), 'title' => __('Heading 2 font', 'thefoxwp'), 'subtitle' => __('Specify the Heading 2 ( h2 ) font properties. ( color not needed )', 'thefoxwp'), 'google' => true, 'default' => array('color' => '#444', 'font-size' => '24px', 'font-family' => 'Lato', 'font-weight' => '700', 'line-height' => '36px')), array('id' => 'rd_h3_font', 'type' => 'typography', 'required' => array('rd_custom_heading_font', '=', '1'), 'title' => __('Heading 3 font', 'thefoxwp'), 'subtitle' => __('Specify the Heading 3 ( h3 ) font properties. ( color not needed )', 'thefoxwp'), 'google' => true, 'default' => array('color' => '#444', 'font-size' => '20px', 'font-family' => 'Lato', 'font-weight' => '700', 'line-height' => '24px')), array('id' => 'rd_h4_font', 'type' => 'typography', 'required' => array('rd_custom_heading_font', '=', '1'), 'title' => __('Heading 4 font', 'thefoxwp'), 'subtitle' => __('Specify the Heading 4 ( h4 ) font properties. ( color not needed )', 'thefoxwp'), 'google' => true, 'default' => array('color' => '#444', 'font-size' => '18px', 'font-family' => 'Lato', 'font-weight' => '700', 'line-height' => '24px')), array('id' => 'rd_h5_font', 'type' => 'typography', 'required' => array('rd_custom_heading_font', '=', '1'), 'title' => __('Heading 5 font', 'thefoxwp'), 'subtitle' => __('Specify the Heading 5 ( h5 ) font properties. ( color not needed )', 'thefoxwp'), 'google' => true, 'default' => array('color' => '#444', 'font-size' => '16px', 'font-family' => 'Lato', 'font-weight' => '400', 'line-height' => '24px')), array('id' => 'rd_h6_font', 'type' => 'typography', 'required' => array('rd_custom_heading_font', '=', '1'), 'title' => __('Heading 6 font', 'thefoxwp'), 'subtitle' => __('Specify the Heading 6 ( h6 ) font properties. ( color not needed )', 'thefoxwp'), 'google' => true, 'default' => array('color' => '#444', 'font-size' => '14px', 'font-family' => 'Lato', 'font-weight' => '300', 'line-height' => '24px'))));
            $this->sections[] = array('icon' => 'el-icon-brush', 'title' => __('Header styling', 'thefoxwp'), 'fields' => array(array('id' => 'rd-notice-idea-header', 'type' => 'info', 'icon' => 'el-icon-idea', 'title' => __('PRESET OPTIONS', 'thefoxwp'), 'desc' => __('If you just want to use a preset design check the tab "Header Preset".', 'thefoxwp')), array('id' => 'rd_logo_color', 'type' => 'select', 'title' => __('Select the logo to use', 'thefoxwp'), 'subtitle' => __('Select if you want to use dark logo or light logo ( need to be uploaded )', 'thefoxwp'), 'options' => array('dark_logo_selected' => 'Dark Logo', 'light_logo_selected' => 'Light logo'), 'default' => 'dark_logo_selected'), array('id' => 'rd_nav_type', 'type' => 'select', 'title' => __('Header layout', 'thefoxwp'), 'subtitle' => __('Select the header layout', 'thefoxwp'), 'options' => array('nav_type_1' => 'type 1', 'nav_type_2' => 'type 2', 'nav_type_3' => 'type 3', 'nav_type_4' => 'type 4', 'nav_type_5' => 'type 5', 'nav_type_6' => 'type 6', 'nav_type_7' => 'type 7', 'nav_type_8' => 'type 8', 'nav_type_9' => 'type 9', 'nav_type_10' => 'type 10', 'nav_type_11' => 'type 11', 'nav_type_12' => 'type 12', 'nav_type_13' => 'type 13', 'nav_type_14' => 'type 14', 'nav_type_15' => 'type 15', 'nav_type_16' => 'type 16', 'nav_type_17' => 'type 17', 'nav_type_18' => 'type 18', 'nav_type_19' => 'Left Navigation', 'nav_type_19_f' => 'Left Navigation Fixed', 'nav_type_9_c' => 'Centered Logo'), 'default' => 'nav_type_1'), array('id' => 'rd_header_shrink', 'type' => 'button_set', 'title' => __('Shrink header when scroll down?', 'thefoxwp'), 'subtitle' => __('Select if you want to shrink the header when you scroll down.', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'yes'), array('id' => 'rd_header_bg_color', 'type' => 'color', 'title' => __('Header Background Color', 'thefoxwp'), 'subtitle' => __('Pick a background color for the Header (default: #ffffff).', 'thefoxwp'), 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'rd_transparent_header_bg_color', 'type' => 'color_rgba', 'title' => __('Transparent Header Background Color', 'thefoxwp'), 'subtitle' => __('Pick a background color for the transparent Header ( use transparent color ).', 'thefoxwp'), 'default' => array('color' => '#ffffff', 'alpha' => 0.0)), array('id' => 'rd_menu_color', 'type' => 'color', 'title' => __('Menu Text Color', 'thefoxwp'), 'subtitle' => __('Menu text color (default: #a1b1bc).', 'thefoxwp'), 'default' => '#a1b1bc', 'validate' => 'color'), array('id' => 'rd_menu_bg_color', 'type' => 'color', 'title' => __('Menu background Color', 'thefoxwp'), 'subtitle' => __('Menu background color (default: #ffffff).', 'thefoxwp'), 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'rd_current_menu_color', 'type' => 'color', 'title' => __('Current Menu Text Color', 'thefoxwp'), 'subtitle' => __('Current Menu text color (default: #1abc9c).', 'thefoxwp'), 'default' => '#1abc9c', 'validate' => 'color'), array('id' => 'rd_current_menu_bg_color', 'type' => 'color', 'title' => __('Current Menu background Color', 'thefoxwp'), 'subtitle' => __('Current Menu background color (default: #ffffff).', 'thefoxwp'), 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'rd_header_border_color', 'type' => 'color', 'title' => __('Header border Color', 'thefoxwp'), 'subtitle' => __('Header border color (default: #ecf0f1 ).', 'thefoxwp'), 'default' => '#ecf0f1', 'validate' => 'color'), array('id' => 'rd_left_header_border_color', 'type' => 'color', 'title' => __('Left Navigation\'s right border Color', 'thefoxwp'), 'subtitle' => __('Border that show on the right of the Left Navigation (default: #ecf0f1 ).', 'thefoxwp'), 'required' => array(array('rd_nav_type', 'contains', '19')), 'default' => '#ecf0f1', 'validate' => 'color'), array('id' => 'rd_transparent_header_border_color', 'type' => 'color_rgba', 'title' => __('Transparent Header border Color', 'thefoxwp'), 'subtitle' => __('Pick a color for the transparent Header border ( use transparent color ).', 'thefoxwp'), 'default' => array('color' => '#ffffff', 'alpha' => 0.25)), array('id' => 'rd_header_search', 'type' => 'button_set', 'title' => __('Display "Search" icon in the header?', 'thefoxwp'), 'subtitle' => __('Turn on to display the Search icon.', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'no'), array('id' => 'rd_header_socials', 'type' => 'button_set', 'required' => array(array('rd_nav_type', 'contains', '19')), 'title' => __('Display Socials icon in the header?', 'thefoxwp'), 'subtitle' => __('Turn on to display the Socials icon.', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'no'), array('id' => 'rd-notice-critical-header', 'type' => 'info', 'notice' => true, 'required' => array(array('rd_nav_type', 'not_contain', '19')), 'icon' => 'el-icon-warning-sign', 'style' => 'critical', 'title' => __('WooCommerce Options.', 'thefoxwp'), 'desc' => __('The following options will are only available if you are using WooCommerce.', 'thefoxwp')), array('id' => 'rd_header_cart', 'type' => 'button_set', 'title' => __('Display Cart icon in the header?', 'thefoxwp'), 'required' => array(array('rd_nav_type', 'not_contain', '19')), 'subtitle' => __('Turn on to display the Woocommerce my cart icon.', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'no')));
            $this->sections[] = array('icon' => 'el-icon-cog', 'title' => __('Header Preset', 'thefoxwp'), 'fields' => array(array('id' => 'opt-presets', 'type' => 'image_select', 'presets' => true, 'title' => __('Header Preset', 'thefoxwp'), 'subtitle' => __('Select the design you want to use.', 'thefoxwp'), 'default' => 0, 'options' => array('1' => array('alt' => 'Preset 1', 'img' => ReduxFramework::$_url . 'assets/img/header_01.jpg', 'presets' => array('rd_logo_color' => 'dark_logo_selected', 'rd_nav_type' => 'nav_type_3', 'rd_header_bg_color' => '#ffffff', 'rd_menu_color' => '#a1b1bc', 'rd_menu_bg_color' => '#ffffff', 'rd_current_menu_color' => '#1abc9c', 'rd_current_menu_bg_color' => '#ffffff', 'rd_header_border_color' => '#ecf0f1', 'rd_header_search' => 'yes', 'rd_header_cart' => 'no', 'rd_topbar' => 'no', 'rd_topbar_type' => 'topbar_type_1', 'rd_topbar_bg_color' => '#ffffff', 'rd_topbar_text_color' => '#a1b1bc', 'rd_topbar_textalt_color' => '#2c3e50', 'rd_topbar_hl_color' => '#1abc9c', 'rd_topbar_border_color' => '#ebebeb', 'rd_topbar_topborder_color' => '#1abc9c', 'rd_topbar_phone' => 'no', 'rd_topbar_mail' => 'no', 'rd_topbar_news' => 'no', 'rd_topbar_icon' => 'yes', 'rd_topbar_icon_pos' => 'right', 'rd_topbar_menu' => 'no', 'rd_topbar_cart' => 'yes', 'rd_topbar_login' => 'no', 'rd_topbar_login_type' => 'no', 'rd_topbar_wpml' => 'yes')), '2' => array('alt' => 'Preset 2', 'img' => ReduxFramework::$_url . 'assets/img/header_02.jpg', 'presets' => array('rd_logo_color' => 'dark_logo_selected', 'rd_nav_type' => 'nav_type_2', 'rd_header_bg_color' => '#ffffff', 'rd_menu_color' => '#a1b1bc', 'rd_menu_bg_color' => '#ffffff', 'rd_current_menu_color' => '#1abc9c', 'rd_current_menu_bg_color' => '#ffffff', 'rd_header_border_color' => '#ecedee', 'rd_header_search' => 'yes', 'rd_header_cart' => 'no', 'rd_topbar' => 'yes', 'rd_topbar_type' => 'topbar_type_1', 'rd_topbar_bg_color' => '#ffffff', 'rd_topbar_text_color' => '#a1b1bc', 'rd_topbar_textalt_color' => '#2c3e50', 'rd_topbar_hl_color' => '#1abc9c', 'rd_topbar_border_color' => '#ebebeb', 'rd_topbar_topborder_color' => '#1abc9c', 'rd_topbar_phone' => 'no', 'rd_topbar_mail' => 'no', 'rd_topbar_news' => 'no', 'rd_topbar_icon' => 'yes', 'rd_topbar_icon_pos' => 'right', 'rd_topbar_menu' => 'no', 'rd_topbar_cart' => 'yes', 'rd_topbar_login' => 'no', 'rd_topbar_login_type' => 'no', 'rd_topbar_wpml' => 'yes')), '3' => array('alt' => 'Preset 3', 'img' => ReduxFramework::$_url . 'assets/img/header_03.jpg', 'presets' => array('rd_logo_color' => 'dark_logo_selected', 'rd_nav_type' => 'nav_type_4', 'rd_header_bg_color' => '#ffffff', 'rd_menu_color' => '#34495e', 'rd_menu_bg_color' => '#ffffff', 'rd_current_menu_color' => '#1abc9c', 'rd_current_menu_bg_color' => '#ffffff', 'rd_header_border_color' => '#ecf0f1', 'rd_header_search' => 'no', 'rd_header_cart' => 'no', 'rd_topbar' => 'yes', 'rd_topbar_type' => 'topbar_type_5', 'rd_topbar_bg_color' => '#ffffff', 'rd_topbar_text_color' => '#a1b1bc', 'rd_topbar_textalt_color' => '#2c3e50', 'rd_topbar_hl_color' => '#1abc9c', 'rd_topbar_border_color' => '#ebebeb', 'rd_topbar_topborder_color' => '#1abc9c', 'rd_topbar_phone' => 'no', 'rd_topbar_mail' => 'no', 'rd_topbar_news' => 'yes', 'rd_topbar_icon' => 'no', 'rd_topbar_icon_pos' => 'left', 'rd_topbar_menu' => 'no', 'rd_topbar_cart' => 'no', 'rd_topbar_login' => 'yes', 'rd_topbar_login_type' => 'type1', 'rd_topbar_wpml' => 'yes')), '4' => array('alt' => 'Preset 4', 'img' => ReduxFramework::$_url . 'assets/img/header_04.jpg', 'presets' => array('rd_logo_color' => 'dark_logo_selected', 'rd_nav_type' => 'nav_type_6', 'rd_header_bg_color' => '#ffffff', 'rd_menu_color' => '#2c3e50', 'rd_menu_bg_color' => '#ffffff', 'rd_current_menu_color' => '#1abc9c', 'rd_current_menu_bg_color' => '#ffffff', 'rd_header_border_color' => '#ecf0f1', 'rd_header_search' => 'yes', 'rd_header_cart' => 'yes', 'rd_topbar' => 'yes', 'rd_topbar_type' => 'topbar_type_4', 'rd_topbar_bg_color' => '#a1b1bc', 'rd_topbar_text_color' => '#ffffff', 'rd_topbar_textalt_color' => '#ffffff', 'rd_topbar_hl_color' => '#1abc9c', 'rd_topbar_border_color' => '#8798a3', 'rd_topbar_topborder_color' => '#8798a3', 'rd_topbar_phone' => 'no', 'rd_topbar_mail' => 'no', 'rd_topbar_news' => 'no', 'rd_topbar_icon' => 'yes', 'rd_topbar_icon_pos' => 'left', 'rd_topbar_menu' => 'no', 'rd_topbar_cart' => 'no', 'rd_topbar_login' => 'yes', 'rd_topbar_login_type' => 'type2', 'rd_topbar_wpml' => 'no')), '5' => array('alt' => 'Preset 5', 'img' => ReduxFramework::$_url . 'assets/img/header_05.jpg', 'presets' => array('rd_logo_color' => 'dark_logo_selected', 'rd_nav_type' => 'nav_type_5', 'rd_header_bg_color' => '#ffffff', 'rd_menu_color' => '#a1b1bc', 'rd_menu_bg_color' => '#ffffff', 'rd_current_menu_color' => '#1abc9c', 'rd_current_menu_bg_color' => '#ffffff', 'rd_header_border_color' => '#ecf0f1', 'rd_header_search' => 'yes', 'rd_header_cart' => 'yes', 'rd_topbar' => 'yes', 'rd_topbar_type' => 'topbar_type_1', 'rd_topbar_bg_color' => '#1a1c27', 'rd_topbar_text_color' => '#a1b1bc', 'rd_topbar_textalt_color' => '#ffffff', 'rd_topbar_hl_color' => '#1abc9c', 'rd_topbar_border_color' => '#26303e', 'rd_topbar_topborder_color' => '#26303e', 'rd_topbar_phone' => 'yes', 'rd_topbar_mail' => 'yes', 'rd_topbar_news' => 'no', 'rd_topbar_icon' => 'yes', 'rd_topbar_icon_pos' => 'right', 'rd_topbar_menu' => 'no', 'rd_topbar_cart' => 'no', 'rd_topbar_login' => 'no', 'rd_topbar_login_type' => 'no', 'rd_topbar_wpml' => 'yes')), '6' => array('alt' => 'Preset 6', 'img' => ReduxFramework::$_url . 'assets/img/header_06.jpg', 'presets' => array('rd_logo_color' => 'dark_logo_selected', 'rd_nav_type' => 'nav_type_8', 'rd_header_bg_color' => '#ffffff', 'rd_menu_color' => '#2c3e50', 'rd_menu_bg_color' => '#ffffff', 'rd_current_menu_color' => '#1abc9c', 'rd_current_menu_bg_color' => '#ffffff', 'rd_header_border_color' => '#a0a6ad', 'rd_header_search' => 'yes', 'rd_header_cart' => 'no', 'rd_topbar' => 'yes', 'rd_topbar_type' => 'topbar_type_3', 'rd_topbar_bg_color' => '#2c3e50', 'rd_topbar_text_color' => '#ffffff', 'rd_topbar_textalt_color' => '#ffffff', 'rd_topbar_hl_color' => '#1abc9c', 'rd_topbar_border_color' => '#2c3e50', 'rd_topbar_topborder_color' => '#2c3e50', 'rd_topbar_phone' => 'no', 'rd_topbar_mail' => 'no', 'rd_topbar_news' => 'no', 'rd_topbar_icon' => 'yes', 'rd_topbar_icon_pos' => 'right', 'rd_topbar_menu' => 'no', 'rd_topbar_cart' => 'yes', 'rd_topbar_login' => 'no', 'rd_topbar_login_type' => 'no', 'rd_topbar_wpml' => 'yes')), '7' => array('alt' => 'Preset 7', 'img' => ReduxFramework::$_url . 'assets/img/header_07.jpg', 'presets' => array('rd_logo_color' => 'light_logo_selected', 'rd_nav_type' => 'nav_type_9', 'rd_header_bg_color' => '#222533', 'rd_menu_color' => '#ffffff', 'rd_menu_bg_color' => '#222533', 'rd_current_menu_color' => '#1abc9c', 'rd_current_menu_bg_color' => '#ffffff', 'rd_header_border_color' => '#222533', 'rd_header_search' => 'no', 'rd_header_cart' => 'yes', 'rd_topbar' => 'no', 'rd_topbar_type' => 'topbar_type_1', 'rd_topbar_bg_color' => '#ffffff', 'rd_topbar_text_color' => '#a1b1bc', 'rd_topbar_textalt_color' => '#2c3e50', 'rd_topbar_hl_color' => '#1abc9c', 'rd_topbar_border_color' => '#ebebeb', 'rd_topbar_topborder_color' => '#1abc9c', 'rd_topbar_phone' => 'yes', 'rd_topbar_mail' => 'yes', 'rd_topbar_news' => 'yes', 'rd_topbar_icon' => 'yes', 'rd_topbar_icon_pos' => 'right', 'rd_topbar_menu' => 'no', 'rd_topbar_cart' => 'no', 'rd_topbar_login' => 'no', 'rd_topbar_login_type' => 'no', 'rd_topbar_wpml' => 'no')), '8' => array('alt' => 'Preset 8', 'img' => ReduxFramework::$_url . 'assets/img/header_08.jpg', 'presets' => array('rd_logo_color' => 'light_logo_selected', 'rd_nav_type' => 'nav_type_12', 'rd_header_bg_color' => '#717782', 'rd_menu_color' => '#ffffff', 'rd_menu_bg_color' => '#717782', 'rd_current_menu_color' => '#ffffff', 'rd_current_menu_bg_color' => '#717782', 'rd_header_border_color' => '#717782', 'rd_header_search' => 'yes', 'rd_header_cart' => 'no', 'rd_topbar' => 'no', 'rd_topbar_type' => 'topbar_type_1', 'rd_topbar_bg_color' => '#ffffff', 'rd_topbar_text_color' => '#a1b1bc', 'rd_topbar_textalt_color' => '#2c3e50', 'rd_topbar_hl_color' => '#1abc9c', 'rd_topbar_border_color' => '#ebebeb', 'rd_topbar_topborder_color' => '#1abc9c', 'rd_topbar_phone' => 'yes', 'rd_topbar_mail' => 'yes', 'rd_topbar_news' => 'yes', 'rd_topbar_icon' => 'yes', 'rd_topbar_icon_pos' => 'right', 'rd_topbar_menu' => 'no', 'rd_topbar_cart' => 'no', 'rd_topbar_login' => 'no', 'rd_topbar_login_type' => 'no', 'rd_topbar_wpml' => 'no')), '9' => array('alt' => 'Preset 9', 'img' => ReduxFramework::$_url . 'assets/img/header_09.jpg', 'presets' => array('rd_logo_color' => 'light_logo_selected', 'rd_nav_type' => 'nav_type_11', 'rd_header_bg_color' => '#3e3f48', 'rd_menu_color' => '#ffffff', 'rd_menu_bg_color' => '#3e3f48', 'rd_current_menu_color' => '#ffffff', 'rd_current_menu_bg_color' => '#3e3f48', 'rd_header_border_color' => '#3e3f48', 'rd_header_search' => 'yes', 'rd_header_cart' => 'no', 'rd_topbar' => 'no', 'rd_topbar_type' => 'topbar_type_1', 'rd_topbar_bg_color' => '#ffffff', 'rd_topbar_text_color' => '#a1b1bc', 'rd_topbar_textalt_color' => '#2c3e50', 'rd_topbar_hl_color' => '#1abc9c', 'rd_topbar_border_color' => '#ebebeb', 'rd_topbar_topborder_color' => '#1abc9c', 'rd_topbar_phone' => 'yes', 'rd_topbar_mail' => 'yes', 'rd_topbar_news' => 'yes', 'rd_topbar_icon' => 'yes', 'rd_topbar_icon_pos' => 'right', 'rd_topbar_menu' => 'no', 'rd_topbar_cart' => 'no', 'rd_topbar_login' => 'no', 'rd_topbar_login_type' => 'no', 'rd_topbar_wpml' => 'no')), '10' => array('alt' => 'Preset 10', 'img' => ReduxFramework::$_url . 'assets/img/header_10.jpg', 'presets' => array('rd_logo_color' => 'light_logo_selected', 'rd_nav_type' => 'nav_type_10', 'rd_header_bg_color' => '#1a1c27', 'rd_menu_color' => '#ffffff', 'rd_menu_bg_color' => '#1a1c27', 'rd_current_menu_color' => '#1abc9c', 'rd_current_menu_bg_color' => '#1a1c27', 'rd_header_border_color' => '#1a1c27', 'rd_header_search' => 'no', 'rd_header_cart' => 'no', 'rd_topbar' => 'yes', 'rd_topbar_type' => 'topbar_type_3', 'rd_topbar_bg_color' => '#222533', 'rd_topbar_text_color' => '#a1b1bc', 'rd_topbar_textalt_color' => '#2c3e50', 'rd_topbar_hl_color' => '#ffffff', 'rd_topbar_border_color' => '#222533', 'rd_topbar_topborder_color' => '#222533', 'rd_topbar_phone' => 'no', 'rd_topbar_mail' => 'no', 'rd_topbar_news' => 'no', 'rd_topbar_icon' => 'yes', 'rd_topbar_icon_pos' => 'left', 'rd_topbar_menu' => 'yes', 'rd_topbar_cart' => 'no', 'rd_topbar_login' => 'no', 'rd_topbar_login_type' => 'no', 'rd_topbar_wpml' => 'no')), '11' => array('alt' => 'Preset 11', 'img' => ReduxFramework::$_url . 'assets/img/header_11.jpg', 'presets' => array('rd_logo_color' => 'light_logo_selected', 'rd_nav_type' => 'nav_type_15', 'rd_header_bg_color' => '#222533', 'rd_menu_color' => '#a1b1bc', 'rd_menu_bg_color' => '#222533', 'rd_current_menu_color' => '#ffffff', 'rd_current_menu_bg_color' => '#222533', 'rd_header_border_color' => '#323a48', 'rd_header_search' => 'yes', 'rd_header_cart' => 'yes', 'rd_topbar' => 'yes', 'rd_topbar_type' => 'topbar_type_3', 'rd_topbar_bg_color' => '#1a1c27', 'rd_topbar_text_color' => '#a1b1bc', 'rd_topbar_textalt_color' => '#a1b1bc', 'rd_topbar_hl_color' => '#1abc9c', 'rd_topbar_border_color' => '#1a1c27', 'rd_topbar_topborder_color' => '#1a1c27', 'rd_topbar_phone' => 'no', 'rd_topbar_mail' => 'no', 'rd_topbar_news' => 'no', 'rd_topbar_icon' => 'no', 'rd_topbar_icon_pos' => 'right', 'rd_topbar_menu' => 'yes', 'rd_topbar_cart' => 'no', 'rd_topbar_login' => 'no', 'rd_topbar_login_type' => 'no', 'rd_topbar_wpml' => 'yes')), '12' => array('alt' => 'Preset 12', 'img' => ReduxFramework::$_url . 'assets/img/header_12.jpg', 'presets' => array('rd_logo_color' => 'light_logo_selected', 'rd_nav_type' => 'nav_type_17', 'rd_header_bg_color' => '#1a1c27', 'rd_menu_color' => '#ffffff', 'rd_menu_bg_color' => '#222533', 'rd_current_menu_color' => '#1abc9c', 'rd_current_menu_bg_color' => '#222533', 'rd_header_border_color' => '#2c3042', 'rd_header_search' => 'yes', 'rd_header_cart' => 'yes', 'rd_topbar' => 'no', 'rd_topbar_type' => 'topbar_type_2', 'rd_topbar_bg_color' => '#202937', 'rd_topbar_text_color' => '#a1b1bc', 'rd_topbar_textalt_color' => '#a1b1bc', 'rd_topbar_hl_color' => '#1abc9c', 'rd_topbar_border_color' => '#202937', 'rd_topbar_topborder_color' => '#17222d', 'rd_topbar_phone' => 'yes', 'rd_topbar_mail' => 'yes', 'rd_topbar_news' => 'no', 'rd_topbar_icon' => 'no', 'rd_topbar_icon_pos' => 'right', 'rd_topbar_menu' => 'no', 'rd_topbar_cart' => 'no', 'rd_topbar_login' => 'no', 'rd_topbar_login_type' => 'no', 'rd_topbar_wpml' => 'yes')), '13' => array('alt' => 'Preset 13', 'img' => ReduxFramework::$_url . 'assets/img/header_13.jpg', 'presets' => array('rd_logo_color' => 'light_logo_selected', 'rd_nav_type' => 'nav_type_16', 'rd_header_bg_color' => '#1a1c27', 'rd_menu_color' => '#ffffff', 'rd_menu_bg_color' => '#222533', 'rd_current_menu_color' => '#1abc9c', 'rd_current_menu_bg_color' => '#222533', 'rd_header_border_color' => '#292c3d', 'rd_header_search' => 'yes', 'rd_header_cart' => 'yes', 'rd_topbar' => 'no', 'rd_topbar_type' => 'topbar_type_2', 'rd_topbar_bg_color' => '#202937', 'rd_topbar_text_color' => '#a1b1bc', 'rd_topbar_textalt_color' => '#a1b1bc', 'rd_topbar_hl_color' => '#1abc9c', 'rd_topbar_border_color' => '#202937', 'rd_topbar_topborder_color' => '#17222d', 'rd_topbar_phone' => 'yes', 'rd_topbar_mail' => 'yes', 'rd_topbar_news' => 'no', 'rd_topbar_icon' => 'no', 'rd_topbar_icon_pos' => 'right', 'rd_topbar_menu' => 'no', 'rd_topbar_cart' => 'no', 'rd_topbar_login' => 'no', 'rd_topbar_login_type' => 'no', 'rd_topbar_wpml' => 'yes')), '14' => array('alt' => 'Preset 14', 'img' => ReduxFramework::$_url . 'assets/img/header_14.jpg', 'presets' => array('rd_logo_color' => 'light_logo_selected', 'rd_nav_type' => 'nav_type_18', 'rd_header_bg_color' => '#18202b', 'rd_menu_color' => '#ffffff', 'rd_menu_bg_color' => '#202b38', 'rd_current_menu_color' => '#1abc9c', 'rd_current_menu_bg_color' => '#202b38', 'rd_header_border_color' => '#202937', 'rd_header_search' => 'yes', 'rd_header_cart' => 'yes', 'rd_topbar' => 'yes', 'rd_topbar_type' => 'topbar_type_2', 'rd_topbar_bg_color' => '#202937', 'rd_topbar_text_color' => '#a1b1bc', 'rd_topbar_textalt_color' => '#a1b1bc', 'rd_topbar_hl_color' => '#1abc9c', 'rd_topbar_border_color' => '#314354', 'rd_topbar_topborder_color' => '#17222d', 'rd_topbar_phone' => 'yes', 'rd_topbar_mail' => 'yes', 'rd_topbar_news' => 'no', 'rd_topbar_icon' => 'yes', 'rd_topbar_icon_pos' => 'right', 'rd_topbar_menu' => 'no', 'rd_topbar_cart' => 'no', 'rd_topbar_login' => 'no', 'rd_topbar_login_type' => 'no', 'rd_topbar_wpml' => 'yes'))))));
            $this->sections[] = array('icon' => 'el-icon-brush', 'title' => __('Top bar styling', 'thefoxwp'), 'fields' => array(array('id' => 'rd-notice-info', 'type' => 'info', 'icon' => 'el-icon-info-sign', 'title' => __('TOP BAR.', 'thefoxwp'), 'desc' => __('If you\'d like to use an additional Bar on the top of the header please see settings below.', 'thefoxwp')), array('id' => 'rd_topbar', 'type' => 'button_set', 'title' => __('Use Header Top Bar?', 'thefoxwp'), 'subtitle' => __('If you want to have a bar on the top of the header select yes.', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'no'), array('id' => 'rd_topbar_type', 'type' => 'select', 'required' => array('rd_topbar', '=', 'yes'), 'title' => __('Topbar style', 'thefoxwp'), 'subtitle' => __('Select the topbar style', 'thefoxwp'), 'options' => array('topbar_type_1' => 'Border between elements, No top Border', 'topbar_type_2' => 'Border between elements, Top Border', 'topbar_type_3' => 'No Border between elements, No top Border', 'topbar_type_4' => 'No Border between elements, Top Border', 'topbar_type_5' => 'Thin bar Border between elements, Top/Bottom Border'), 'default' => 'topbar_type_5'), array('id' => 'rd_topbar_bg_color', 'type' => 'color', 'required' => array('rd_topbar', '=', 'yes'), 'title' => __('Top bar Background Color', 'thefoxwp'), 'subtitle' => __('Pick a background color for the Top bar (default: #ffffff).', 'thefoxwp'), 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'rd_topbar_text_color', 'type' => 'color', 'required' => array('rd_topbar', '=', 'yes'), 'title' => __('Top bar Text Color', 'thefoxwp'), 'subtitle' => __('Top text color (default: #a1b1bc).', 'thefoxwp'), 'default' => '#a1b1bc', 'validate' => 'color'), array('id' => 'rd_topbar_textalt_color', 'type' => 'color', 'required' => array('rd_topbar', '=', 'yes'), 'title' => __('Top bar Second text color', 'thefoxwp'), 'subtitle' => __('Will be used for bold text ( maybe a darker color can be the trick || default: #2c3e50).', 'thefoxwp'), 'default' => '#2c3e50', 'validate' => 'color'), array('id' => 'rd_topbar_hl_color', 'type' => 'color', 'required' => array('rd_topbar', '=', 'yes'), 'title' => __('Top bar Highlight Color', 'thefoxwp'), 'subtitle' => __('Select the highlight color (default: #1abc9c).', 'thefoxwp'), 'default' => '#1abc9c', 'validate' => 'color'), array('id' => 'rd_topbar_border_color', 'type' => 'color', 'required' => array('rd_topbar', '=', 'yes'), 'title' => __('Top bar border Color', 'thefoxwp'), 'subtitle' => __('Top bar border color (default: #ebebeb).', 'thefoxwp'), 'default' => '#ebebeb', 'validate' => 'color'), array('id' => 'rd_topbar_topborder_color', 'type' => 'color', 'required' => array('rd_topbar', '=', 'yes'), 'title' => __('Top bar TOP border Color', 'thefoxwp'), 'subtitle' => __('Top bar TOP border color (default: #1abc9c).', 'thefoxwp'), 'default' => '#1abc9c', 'validate' => 'color'), array('id' => 'topbarinfo_warning', 'type' => 'info', 'title' => __('TOP BAR CONTENT', 'thefoxwp'), 'icon' => 'el-icon-warning-sign', 'required' => array('rd_topbar', '=', 'yes'), 'style' => 'warning', 'desc' => __('Too much content in the Top bar will make it looks awful, make sure to not put to much information in the top bar ( e.g : Social icons + Phone text + Email = Clean and good result ||| Bad example : Additional Menu + Social Icon + Phone Text + Email + Login / Register button = BAD RESULT)', 'thefoxwp')), array('id' => 'rd_topbar_phone', 'type' => 'button_set', 'required' => array('rd_topbar', '=', 'yes'), 'title' => __('Display phone number in the top bar?', 'thefoxwp'), 'subtitle' => __('To display the phone number field in the top bar select yes', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'no'), array('id' => 'rd_topbar_phone_text', 'type' => 'textarea', 'required' => array('rd_topbar_phone', '=', 'yes'), 'title' => __('Enter your phone number', 'thefoxwp'), 'subtitle' => __('Text to display next to the phone icon.', 'thefoxwp'), 'validate' => 'html', 'default' => 'Call us: 1.777.77.777'), array('id' => 'rd_topbar_mail', 'type' => 'button_set', 'required' => array('rd_topbar', '=', 'yes'), 'title' => __('Display email in the top bar?', 'thefoxwp'), 'subtitle' => __('To display the email field in the top bar select yes', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'no'), array('id' => 'rd_topbar_mail_text', 'type' => 'textarea', 'required' => array('rd_topbar_mail', '=', 'yes'), 'title' => __('Enter your email', 'thefoxwp'), 'subtitle' => __('enter your mail adress', 'thefoxwp'), 'validate' => 'html', 'default' => '*****@*****.**'), array('id' => 'rd_topbar_news', 'type' => 'button_set', 'required' => array('rd_topbar', '=', 'yes'), 'title' => __('Display news text in the top bar?', 'thefoxwp'), 'subtitle' => __('To display the news field in the top bar select yes', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'no'), array('id' => 'rd_topbar_news_text', 'type' => 'textarea', 'required' => array('rd_topbar_news', '=', 'yes'), 'title' => __('Enter some text to display in the top bar', 'thefoxwp'), 'subtitle' => __('Text to display next to the news icon.', 'thefoxwp'), 'validate' => 'html', 'default' => '<strong>Latest news:</strong> TheFox is the Best Theme on Themeforest'), array('id' => 'rd_topbar_icon', 'type' => 'button_set', 'required' => array('rd_topbar', '=', 'yes'), 'title' => __('Display social icon?', 'thefoxwp'), 'subtitle' => __('Turn on to display social Icon.', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'no'), array('id' => 'rd_topbar_icon_pos', 'type' => 'button_set', 'required' => array('rd_topbar_icon', '=', 'yes'), 'title' => __('Icon position', 'thefoxwp'), 'subtitle' => __('Select the icon position', 'thefoxwp'), 'options' => array('left' => 'Left', 'right' => 'Right'), 'default' => 'right'), array('id' => 'rd_topbar_menu', 'type' => 'button_set', 'required' => array('rd_topbar', '=', 'yes'), 'title' => __('Display an additional menu in the top bar?', 'thefoxwp'), 'subtitle' => __('If you want to use an additional menu in the top bar select yes', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'no'), array('id' => 'rd-notice-critical', 'type' => 'info', 'notice' => true, 'style' => 'critical', 'required' => array('rd_topbar', '=', 'yes'), 'title' => __('WooCommerce Options.', 'thefoxwp'), 'desc' => __('The following options are only available if you are using WooCommerce.', 'thefoxwp')), array('id' => 'rd_topbar_cart', 'type' => 'button_set', 'required' => array(array('rd_header_cart', '=', 'no'), array('rd_topbar', '=', 'yes')), 'title' => __('Display Cart Icon in the top bar?', 'thefoxwp'), 'subtitle' => __('Turn on to display the Woocommerce my cart icon.', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'no'), array('id' => 'rd_topbar_cart_text', 'type' => 'button_set', 'required' => array('rd_topbar_cart', '=', 'yes'), 'title' => __('Make Cart Text Uppercase?', 'thefoxwp'), 'subtitle' => __('If you want to make the Cart Text Uppercase select yes.', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'yes'), array('id' => 'rd_topbar_cart_type', 'type' => 'select', 'required' => array('rd_topbar_cart', '=', 'yes'), 'title' => __('Cart Icon style', 'thefoxwp'), 'subtitle' => __('Select the cart icon style', 'thefoxwp'), 'options' => array('' => 'Text and Icon only', 'tbi-with-border' => 'With Thin border', 'tbi-with-bg' => 'With Background'), 'default' => ''), array('id' => 'rd_topbar_login', 'type' => 'button_set', 'required' => array('rd_topbar', '=', 'yes'), 'title' => __('Display "Login / Register" button?', 'thefoxwp'), 'subtitle' => __('Turn on to display the login / register button.', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'no'), array('id' => 'rd_topbar_login_type', 'type' => 'image_select', 'required' => array('rd_topbar_login', '=', 'yes'), 'title' => __('Button style', 'thefoxwp'), 'subtitle' => __('Select the style of the button', 'thefoxwp'), 'options' => array('type1' => array('alt' => 'Type 1', 'img' => ReduxFramework::$_url . 'assets/img/login_btn_1.jpg'), 'type2' => array('alt' => 'Type 2', 'img' => ReduxFramework::$_url . 'assets/img/login_btn_2.jpg')), 'default' => 'type1'), array('id' => 'rd-notice-critical_2', 'type' => 'info', 'notice' => true, 'style' => 'critical', 'required' => array('rd_topbar', '=', 'yes'), 'title' => __('WMPL Options.', 'thefoxwp'), 'desc' => __('The following options are only available if you are using WPML plugin.', 'thefoxwp')), array('id' => 'rd_topbar_wpml', 'type' => 'button_set', 'required' => array('rd_topbar', '=', 'yes'), 'title' => __('Display "Choose language" in the top bar?', 'thefoxwp'), 'subtitle' => __('Turn on to display the Choose language dropdown in the top bar.', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'no')));
            $this->sections[] = array('icon' => 'el-icon-brush', 'title' => __('Dropdown styling', 'thefoxwp'), 'fields' => array(array('id' => 'rd_drop_bg_color', 'type' => 'color', 'title' => __('Dropdown Background Color', 'thefoxwp'), 'subtitle' => __('Background color for dropdown (default: #ffffff).', 'thefoxwp'), 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'rd_drop_heading_color', 'type' => 'color', 'title' => __('Dropdown Heading Color', 'thefoxwp'), 'subtitle' => __('Dropdown Heading color (default: #2c3e50).', 'thefoxwp'), 'default' => '#2c3e50', 'validate' => 'color'), array('id' => 'rd_drop_text_color', 'type' => 'color', 'title' => __('Dropdown Text Color', 'thefoxwp'), 'subtitle' => __('Dropdown text color (default: #ffffff).', 'thefoxwp'), 'default' => '#a1b1bc', 'validate' => 'color'), array('id' => 'rd_drop_hl_color', 'type' => 'color', 'title' => __('Dropdown highlight color', 'thefoxwp'), 'subtitle' => __('Dropdown highlight color (default: #1abc9c).', 'thefoxwp'), 'default' => '#1abc9c', 'validate' => 'color'), array('id' => 'rd_drop_hover_color', 'type' => 'color', 'title' => __('Hover color for dark element', 'thefoxwp'), 'subtitle' => __('Dropdown hover color (default: #29d9c2).', 'thefoxwp'), 'default' => '#29d9c2', 'validate' => 'color'), array('id' => 'rd_drop_light_hover_color', 'type' => 'color', 'title' => __('Hover color for light element', 'thefoxwp'), 'subtitle' => __('Dropdown light hover color (default: #222533).', 'thefoxwp'), 'default' => '#222533', 'validate' => 'color'), array('id' => 'rd_drop_border_color', 'type' => 'color', 'title' => __('Dropdown border color', 'thefoxwp'), 'subtitle' => __('Dropdown border color (default: #ecf0f1).', 'thefoxwp'), 'default' => '#ecf0f1', 'validate' => 'color')));
            $this->sections[] = array('icon' => 'el-icon-brush', 'title' => __('Mobile Menu styling', 'thefoxwp'), 'fields' => array(array('id' => 'rd_mb_text', 'type' => 'color', 'title' => __('Mobile Menu Text color', 'thefoxwp'), 'subtitle' => __('Color for the Text(default: #ffffff).', 'thefoxwp'), 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'rd_mb_hl', 'type' => 'color', 'title' => __('Mobile Menu Highlight color', 'thefoxwp'), 'subtitle' => __('Mobile Menu Highlight color (default: #1abc9c).', 'thefoxwp'), 'default' => '#1abc9c', 'validate' => 'color'), array('id' => 'rd_mb_icon', 'type' => 'color', 'title' => __('Mobile Menu Icon color', 'thefoxwp'), 'subtitle' => __('Mobile Menu Icon color (default: #5a5d6b).', 'thefoxwp'), 'default' => '#5a5d6b', 'validate' => 'color'), array('id' => 'rd_mb_bg', 'type' => 'color', 'title' => __('Mobile Menu Background Color', 'thefoxwp'), 'subtitle' => __('Mobile Menu Background Color (default: #222533).', 'thefoxwp'), 'default' => '#222533', 'validate' => 'color'), array('id' => 'rd_mb_current', 'type' => 'color', 'title' => __('Current page Background Color', 'thefoxwp'), 'subtitle' => __('Background color for current page (default: #191b26).', 'thefoxwp'), 'default' => '#191b26', 'validate' => 'color'), array('id' => 'rd_mb_submenu', 'type' => 'color', 'title' => __('Submenu page Background Color', 'thefoxwp'), 'subtitle' => __('Background color for the submenu page(default: #2e3244).', 'thefoxwp'), 'default' => '#2e3244', 'validate' => 'color'), array('id' => 'rd_mb_submenu_icon', 'type' => 'color', 'title' => __('Mobile Sub Menu Icon color', 'thefoxwp'), 'subtitle' => __('Mobile Sub Menu Icon color (default: #5d637d).', 'thefoxwp'), 'default' => '#5d637d', 'validate' => 'color'), array('id' => 'rd_mb_sub_submenu', 'type' => 'color', 'title' => __('Sub-Submenu page Background Color', 'thefoxwp'), 'subtitle' => __('Background color for the Sub-submenu page(default: #35384d).', 'thefoxwp'), 'default' => '#35384d', 'validate' => 'color'), array('id' => 'rd_mb_sub_submenu_text', 'type' => 'color', 'title' => __('Sub-Submenu Text Color', 'thefoxwp'), 'subtitle' => __('Text color for the Sub-submenu page(default: #69708f).', 'thefoxwp'), 'default' => '#69708f', 'validate' => 'color')));
            $this->sections[] = array('icon' => 'el-icon-brush', 'title' => __('Title styling', 'thefoxwp'), 'fields' => array(array('id' => 'rd_title_background', 'type' => 'background', 'output' => array('.page_title_ctn'), 'title' => __('Title Background Color / Image', 'thefoxwp'), 'subtitle' => __('Select the Title background color or Image.', 'thefoxwp'), 'default' => '#f9fafb'), array('id' => 'rd_title_color', 'type' => 'color', 'title' => __('Title Text Color', 'thefoxwp'), 'subtitle' => __('Title text color (default: #2c3e50).', 'thefoxwp'), 'default' => '#2c3e50', 'validate' => 'color'), array('id' => 'rd_title_border', 'type' => 'color', 'title' => __('Title border color', 'thefoxwp'), 'subtitle' => __('Title Border color (default: #ecf0f1).', 'thefoxwp'), 'default' => '#ecf0f1', 'validate' => 'color'), array('id' => 'rd_breadcrumbs_color', 'type' => 'color', 'title' => __('Breadcrumbs Color', 'thefoxwp'), 'subtitle' => __('Breadcrumbs text color (default: #a1b1bc).', 'thefoxwp'), 'default' => '#a1b1bc', 'validate' => 'color'), array('id' => 'rd_breadbtn_bg_color', 'type' => 'color', 'title' => __('Breadcrumbs button background Color', 'thefoxwp'), 'subtitle' => __('Breadcrumbs button background color (default: #ffffff).', 'thefoxwp'), 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'rd_breadbtn_text_color', 'type' => 'color', 'title' => __('Breadcrumbs button text and border Color', 'thefoxwp'), 'subtitle' => __('Breadcrumbs button text and border color (default: #a1b1bc).', 'thefoxwp'), 'default' => '#a1b1bc', 'validate' => 'color'), array('id' => 'rd_breadcrumbs', 'type' => 'switch', 'title' => __('Show breadcrumbs?', 'thefoxwp'), 'subtitle' => __('Turn on to show the breadcrumbs in the title.', 'thefoxwp'), 'default' => true)));
            $this->sections[] = array('icon' => 'el-icon-brush', 'title' => __('Main content styling', 'thefoxwp'), 'fields' => array(array('id' => 'rd_content_bg_color', 'type' => 'color', 'title' => __('Main content Background Color', 'thefoxwp'), 'subtitle' => __('Background color for the Main content (default: #ffffff).', 'thefoxwp'), 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'rd_content_heading_color', 'type' => 'color', 'title' => __('Main content Heading Color', 'thefoxwp'), 'subtitle' => __('Main content Heading color (default: #2c3e50).', 'thefoxwp'), 'default' => '#2c3e50', 'validate' => 'color'), array('id' => 'rd_content_text_color', 'type' => 'color', 'title' => __('Main content Text Color', 'thefoxwp'), 'subtitle' => __('Main content text color (default: #ffffff).', 'thefoxwp'), 'default' => '#a1b1bc', 'validate' => 'color'), array('id' => 'rd_content_hl_color', 'type' => 'color', 'title' => __('Main content highlight color', 'thefoxwp'), 'subtitle' => __('Main content highlight color (default: #1abc9c).', 'thefoxwp'), 'default' => '#1abc9c', 'validate' => 'color'), array('id' => 'rd_content_hover_color', 'type' => 'color', 'title' => __('Hover color for dark element', 'thefoxwp'), 'subtitle' => __('Main content hover color (default: #29d9c2).', 'thefoxwp'), 'default' => '#29d9c2', 'validate' => 'color'), array('id' => 'rd_content_light_hover_color', 'type' => 'color', 'title' => __('Hover color for light element', 'thefoxwp'), 'subtitle' => __('Main content light hover color (default: #222533).', 'thefoxwp'), 'default' => '#222533', 'validate' => 'color'), array('id' => 'rd_content_border_color', 'type' => 'color', 'title' => __('Main content border color', 'thefoxwp'), 'subtitle' => __('Main content border color (default: #ecf0f1).', 'thefoxwp'), 'default' => '#ecf0f1', 'validate' => 'color'), array('id' => 'rd_content_grey_color', 'type' => 'color', 'title' => __('Main content grey field color', 'thefoxwp'), 'subtitle' => __('Grey field background color (default: #f9fafb).', 'thefoxwp'), 'default' => '#f9fafb', 'validate' => 'color'), array('id' => 'rd_content_alt_bg_color', 'type' => 'color', 'title' => __('Alternative Background Color', 'thefoxwp'), 'subtitle' => __('Alternative Background color for the elements e.g icon box, tab etc.. (default: #ffffff).', 'thefoxwp'), 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'rd_content_alt_heading_color', 'type' => 'color', 'title' => __('Alternative Heading Color', 'thefoxwp'), 'subtitle' => __('Alternative Main content Heading color for elements e.g icon box, tab etc..(default: #2c3e50).', 'thefoxwp'), 'default' => '#2c3e50', 'validate' => 'color'), array('id' => 'rd_content_alt_text_color', 'type' => 'color', 'title' => __('Alternative Text Color', 'thefoxwp'), 'subtitle' => __('Alternative text color (default: #ffffff).', 'thefoxwp'), 'default' => '#a1b1bc', 'validate' => 'color'), array('id' => 'rd_content_alt_hl_color', 'type' => 'color', 'title' => __('Alternative highlight color', 'thefoxwp'), 'subtitle' => __('Alternative highlight color (default: #21c2f8).', 'thefoxwp'), 'default' => '#21c2f8', 'validate' => 'color'), array('id' => 'rd_content_alt_hover_color', 'type' => 'color', 'title' => __('Alternative hover color for dark element', 'thefoxwp'), 'subtitle' => __('Alternative hover color (default: #46d1ff).', 'thefoxwp'), 'default' => '#46d1ff', 'validate' => 'color'), array('id' => 'rd_content_alt_light_hover_color', 'type' => 'color', 'title' => __('Alternative hover color for light element', 'thefoxwp'), 'subtitle' => __('Alternative hover color (default: #222533).', 'thefoxwp'), 'default' => '#222533', 'validate' => 'color'), array('id' => 'rd_content_alt_border_color', 'type' => 'color', 'title' => __('Alternative border color', 'thefoxwp'), 'subtitle' => __('Alternative border color (default: #eceef0).', 'thefoxwp'), 'default' => '#eceef0', 'validate' => 'color')));
            $this->sections[] = array('icon' => 'el-icon-brush', 'title' => __('Footer styling', 'thefoxwp'), 'fields' => array(array('id' => 'rd_footer', 'type' => 'button_set', 'title' => __('Show Footer?', 'thefoxwp'), 'subtitle' => __('Turn on to show the Footer.', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'yes'), array('id' => 'rd_footer_col', 'type' => 'select', 'required' => array('rd_footer', '=', 'yes'), 'title' => __('Footer columns number', 'thefoxwp'), 'subtitle' => __('Select the Footer number of columns', 'thefoxwp'), 'options' => array('footer_1_col' => '1 column', 'footer_2_col' => '2 columns', 'footer_3_col' => '3 columns', 'footer_4_col' => '4 columns'), 'default' => 'footer_4_col'), array('id' => 'rd_footer_type', 'type' => 'select', 'required' => array('rd_footer', '=', 'yes'), 'title' => __('Footer style', 'thefoxwp'), 'subtitle' => __('Select the Footer style', 'thefoxwp'), 'options' => array('footer_type_1' => 'type 1', 'footer_type_2' => 'type 2', 'footer_type_3' => 'type 3', 'footer_type_4' => 'type 4', 'footer_type_5' => 'type 5', 'footer_type_6' => 'type 6', 'footer_type_7' => 'type 7', 'footer_type_8' => 'type 8', 'footer_type_9' => 'type 9', 'footer_type_10' => 'type 10', 'footer_type_11' => 'type 11'), 'default' => 'footer_type_1'), array('id' => 'rd_footer_bg_color', 'type' => 'color', 'required' => array('rd_footer', '=', 'yes'), 'title' => __('Footer Background Color', 'thefoxwp'), 'subtitle' => __('Background color for the Footer (default: #1a1c27).', 'thefoxwp'), 'default' => '#1a1c27', 'validate' => 'color'), array('id' => 'rd_footer_heading_color', 'type' => 'color', 'required' => array('rd_footer', '=', 'yes'), 'title' => __('Footer Heading Color', 'thefoxwp'), 'subtitle' => __('Footer Heading color (default: #ffffff).', 'thefoxwp'), 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'rd_footer_text_color', 'type' => 'color', 'required' => array('rd_footer', '=', 'yes'), 'title' => __('Footer Text Color', 'thefoxwp'), 'subtitle' => __('Footer text color (default: #a1b1bc).', 'thefoxwp'), 'default' => '#a1b1bc', 'validate' => 'color'), array('id' => 'rd_footer_hl_color', 'type' => 'color', 'required' => array('rd_footer', '=', 'yes'), 'title' => __('Footer highlight color', 'thefoxwp'), 'subtitle' => __('Footer highlight color (default: #1abc9c).', 'thefoxwp'), 'default' => '#1abc9c', 'validate' => 'color'), array('id' => 'rd_footer_hover_color', 'type' => 'color', 'required' => array('rd_footer', '=', 'yes'), 'title' => __('Footer hover color', 'thefoxwp'), 'subtitle' => __('Footer hover color (default: #1abc9c).', 'thefoxwp'), 'default' => '#1abc9c', 'validate' => 'color'), array('id' => 'rd_footer_border_color', 'type' => 'color', 'required' => array('rd_footer', '=', 'yes'), 'title' => __('Footer border color', 'thefoxwp'), 'subtitle' => __('Footer border color (default: #243240).', 'thefoxwp'), 'default' => '#243240', 'validate' => 'color'), array('id' => 'rd-notice-info', 'type' => 'info', 'notice' => true, 'style' => 'info', 'title' => __('Footer under bar.', 'thefoxwp'), 'desc' => __('If you\'d like to use an under Bar for the Footer please see settings below.', 'thefoxwp')), array('id' => 'rd_footer_bar', 'type' => 'button_set', 'title' => __('Use Under Bar', 'thefoxwp'), 'subtitle' => __('Turn ON to use an under bar.', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'yes'), array('id' => 'rd_footer_html', 'type' => 'button_set', 'required' => array('rd_footer_bar', '=', 'yes'), 'title' => __('Show custom text ?', 'thefoxwp'), 'subtitle' => __('Select Yes to show your custom text in the under bar.', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'yes'), array('id' => 'rd_footer_html_pos', 'type' => 'button_set', 'required' => array(array('rd_footer_bar', '=', 'yes'), array('rd_footer_html', '=', 'yes')), 'title' => __('Custom text position', 'thefoxwp'), 'subtitle' => __('Select Custom text position.', 'thefoxwp'), 'options' => array('f_message_left' => 'Left', 'f_message_right' => 'Right'), 'default' => 'f_message_left'), array('id' => 'rd_footer_message', 'type' => 'textarea', 'required' => array(array('rd_footer_bar', '=', 'yes'), array('rd_footer_html', '=', 'yes')), 'title' => __('Text to display in footer under bar', 'thefoxwp'), 'subtitle' => __('write your copyright information or anything you\'d like.', 'thefoxwp'), 'validate' => 'html', 'default' => 'Copyright 2015 <a href="http://themeforest.net/user/tranmautritam?ref=tranmautritam" target="_blank">Tranmautritam\'s team</a>   |   All Rights Reserved'), array('id' => 'rd_footer_social', 'type' => 'button_set', 'required' => array('rd_footer_bar', '=', 'yes'), 'title' => __('Show Social icons in the bar?', 'thefoxwp'), 'subtitle' => __('Select Yes to show the social icons in the bar.', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'yes'), array('id' => 'rd_footer_social_pos', 'type' => 'button_set', 'required' => array(array('rd_footer_bar', '=', 'yes'), array('rd_footer_social', '=', 'yes')), 'title' => __('Social Icons positions', 'thefoxwp'), 'subtitle' => __('Select the socials icon positions.', 'thefoxwp'), 'options' => array('f_si_left' => 'Left', 'f_si_right' => 'Right'), 'default' => 'f_si_right'), array('id' => 'rd_footer_social_type', 'type' => 'select', 'required' => array(array('rd_footer_bar', '=', 'yes'), array('rd_footer_social', '=', 'yes')), 'title' => __('Social Icons style', 'thefoxwp'), 'subtitle' => __('Select the socials icon style.', 'thefoxwp'), 'options' => array('f_si_type1' => 'Icons only', 'f_si_type2' => 'Icons with colored background'), 'default' => 'f_si_type1'), array('id' => 'rd_footer_menu', 'type' => 'button_set', 'required' => array('rd_footer_bar', '=', 'yes'), 'title' => __('Show menu in the bar?', 'thefoxwp'), 'subtitle' => __('Select Yes to show the menu in the bar.', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'yes'), array('id' => 'rd_footer_menu_pos', 'type' => 'button_set', 'required' => array(array('rd_footer_bar', '=', 'yes'), array('rd_footer_menu', '=', 'yes')), 'title' => __('Menu position', 'thefoxwp'), 'subtitle' => __('Select the menu position.', 'thefoxwp'), 'options' => array('f_menu_left' => 'Left', 'f_menu_right' => 'Right'), 'default' => 'f_menu_left'), array('id' => 'rd_footer_menu_type', 'type' => 'select', 'required' => array(array('rd_footer_bar', '=', 'yes'), array('rd_footer_menu', '=', 'yes')), 'title' => __('Menu style', 'thefoxwp'), 'subtitle' => __('Select Menu style.', 'thefoxwp'), 'options' => array('m_normal' => 'Normal', 'm_uppercase' => 'Uppercase', 'm_normal_bold' => 'Normal / Bold ', 'm_uppercase_bold' => 'Uppercase / Bold '), 'default' => 'm_normal'), array('id' => 'rd_footer_bar_bg_color', 'type' => 'color', 'required' => array('rd_footer_bar', '=', 'yes'), 'title' => __('Under bar Background Color', 'thefoxwp'), 'subtitle' => __('Background color for the under bar (default: #222533).', 'thefoxwp'), 'default' => '#222533', 'validate' => 'color'), array('id' => 'rd_footer_bar_heading_color', 'type' => 'color', 'required' => array('rd_footer_bar', '=', 'yes'), 'title' => __('Under bar Heading Color', 'thefoxwp'), 'subtitle' => __('Under bar Heading color (default: #ffffff).', 'thefoxwp'), 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'rd_footer_bar_text_color', 'type' => 'color', 'required' => array('rd_footer_bar', '=', 'yes'), 'title' => __('Under bar Text Color', 'thefoxwp'), 'subtitle' => __('Under bar text color (default: #a1b1bc).', 'thefoxwp'), 'default' => '#a1b1bc', 'validate' => 'color'), array('id' => 'rd_footer_bar_hl_color', 'type' => 'color', 'required' => array('rd_footer_bar', '=', 'yes'), 'title' => __('Under bar highlight color', 'thefoxwp'), 'subtitle' => __('Under bar highlight color (default: #1abc9c).', 'thefoxwp'), 'default' => '#1abc9c', 'validate' => 'color'), array('id' => 'rd_footer_bar_hover_color', 'type' => 'color', 'required' => array('rd_footer_bar', '=', 'yes'), 'title' => __('Under bar hover color', 'thefoxwp'), 'subtitle' => __('Under bar hover color (default: #ffffff).', 'thefoxwp'), 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'rd_footer_bar_border_color', 'type' => 'color', 'required' => array('rd_footer_bar', '=', 'yes'), 'title' => __('Under bar border color', 'thefoxwp'), 'subtitle' => __('Under bar border color (default: #282b39).', 'thefoxwp'), 'default' => '#282b39', 'validate' => 'color')));
            $this->sections[] = array('icon' => 'el-icon-th', 'title' => __('Blog options', 'thefoxwp'), 'fields' => array(array('id' => 'rd_blog_title', 'type' => 'text', 'title' => __('Category / Tag page name', 'thefoxwp'), 'subtitle' => __('Leave blank to use the translation string.', 'thefoxwp'), 'default' => ''), array('id' => 'rd_blog_sidebar', 'type' => 'button_set', 'title' => __('Show Sidebar for tags, category, etc pages?', 'thefoxwp'), 'subtitle' => __('Select Yes to show the Sidebar.', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'yes')));
            $this->sections[] = array('icon' => 'el-icon-th', 'title' => __('Portfolio options', 'thefoxwp'), 'fields' => array(array('id' => 'rd_bc_portlink', 'type' => 'text', 'title' => __('URL to your Main Portfolio Page', 'thefoxwp'), 'subtitle' => __('This must be a URL.', 'thefoxwp'), 'desc' => __('Put the URL of your Portfolio page.', 'thefoxwp'), 'validate' => 'url', 'default' => ''), array('id' => 'rd_bc_porttext', 'type' => 'text', 'title' => __('Portfolio breadcrumbs name', 'thefoxwp'), 'subtitle' => __('Insert the title for the portfolio breadcrumbs.', 'thefoxwp'), 'default' => 'Portfolio'), array('id' => 'rd_port_slug', 'type' => 'text', 'title' => __('Custom Slug', 'thefoxwp'), 'subtitle' => __('If you want your portfolio post type to have a custom slug in the url, please enter it here. .', 'thefoxwp'), 'desc' => __('You will still have to refresh your permalinks after saving this! 
This is done by going to Settings > Permalinks and clicking save.', 'thefoxwp'), 'validate' => 'str_replace', 'str' => array('search' => ' ', 'replacement' => '-'), 'default' => 'project')));
            $this->sections[] = array('icon' => 'el-icon-th', 'title' => __('Staff options', 'thefoxwp'), 'fields' => array(array('id' => 'rd_bc_stafflink', 'type' => 'text', 'title' => __('URL to your Main Staff Page', 'thefoxwp'), 'subtitle' => __('This must be a URL.', 'thefoxwp'), 'desc' => __('Put the URL of your Staff page.', 'thefoxwp'), 'validate' => 'url', 'default' => ''), array('id' => 'rd_bc_stafftext', 'type' => 'text', 'title' => __('Staff breadcrumbs name', 'thefoxwp'), 'subtitle' => __('Insert the title for the Staff breadcrumbs.', 'thefoxwp'), 'default' => 'Staff'), array('id' => 'rd_staff_slug', 'type' => 'text', 'title' => __('Custom Slug', 'thefoxwp'), 'subtitle' => __('If you want your staff post type to have a custom slug in the url, please enter it here. .', 'thefoxwp'), 'desc' => __('You will still have to refresh your permalinks after saving this! 
This is done by going to Settings > Permalinks and clicking save.', 'thefoxwp'), 'validate' => 'str_replace', 'str' => array('search' => ' ', 'replacement' => '-'), 'default' => 'staff')));
            $this->sections[] = array('icon' => 'el-icon-shopping-cart-sign', 'title' => __('WooCommerce options', 'thefoxwp'), 'fields' => array(array('id' => 'rd_shop_design', 'type' => 'select', 'title' => __('Shop Item design', 'thefoxwp'), 'subtitle' => __('Select the Shop Item design', 'thefoxwp'), 'options' => array('classic' => 'classic', 'trending' => 'trending'), 'default' => 'classic'), array('id' => 'rd_shop_columns', 'type' => 'select', 'title' => __('Shop page layout', 'thefoxwp'), 'subtitle' => __('Select the number of columns for the shop page', 'thefoxwp'), 'options' => array('2' => '2', '3' => '3', '4' => '4'), 'default' => '3'), array('id' => 'rd_shop_item_per_page', 'type' => 'text', 'title' => __('Item per page', 'thefoxwp'), 'subtitle' => __('Choose the number of item to show per page. e.g 12', 'thefoxwp'), 'validate' => 'numeric', 'default' => '12')));
            $this->sections[] = array('icon' => 'el-icon-repeat', 'title' => __('Page Loader', 'thefoxwp'), 'fields' => array(array('id' => 'rd_loader', 'type' => 'button_set', 'title' => __('Use Page Pre-Loader?', 'thefoxwp'), 'subtitle' => __('If you want to use a pre-loader for the page select yes.', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'yes'), array('id' => 'rd_loader_style', 'type' => 'button_set', 'required' => array('rd_loader', '=', 'yes'), 'title' => __('Select the Loader main color', 'thefoxwp'), 'subtitle' => __('Select If you want to use the Light or Dark Style for the Loader.', 'thefoxwp'), 'options' => array('white_loader' => 'Light', 'dark_loader' => 'Dark'), 'default' => 'white_loader'), array('id' => 'rd_loader_type', 'type' => 'button_set', 'required' => array('rd_loader', '=', 'yes'), 'title' => __('Select the Loader type ( Design )', 'thefoxwp'), 'subtitle' => __('Select If you want to use the Simple Design (small) or Complex Design (big).', 'thefoxwp'), 'options' => array('simple_loader' => 'Simple', 'complex_loader' => 'Complex'), 'default' => 'complex_loader'), array('id' => 'rd_loader_bar_first_color', 'required' => array('rd_loader', '=', 'yes'), 'type' => 'color', 'title' => __('Loading bar first color', 'thefoxwp'), 'subtitle' => __('Loading bar first color.', 'thefoxwp'), 'default' => '#21c2f8', 'validate' => 'color'), array('id' => 'rd_loader_bar_second_color', 'required' => array('rd_loader', '=', 'yes'), 'type' => 'color', 'title' => __('Loading bar second color', 'thefoxwp'), 'subtitle' => __('Loading bar second color.', 'thefoxwp'), 'default' => '#13d4ae', 'validate' => 'color'), array('id' => 'rd_loader_logo', 'required' => array('rd_loader_type', '=', 'complex_loader'), 'type' => 'media', 'url' => true, 'title' => __('Loader Logo upload', 'thefoxwp'), 'subtitle' => __('Use big logo for retina ready display', 'thefoxwp'), 'default' => array('url' => 'http://thefoxwp.com/wp-content/uploads/2015/03/thefox-logo2.png')), array('id' => 'rd_loader_sb_first_color', 'required' => array('rd_loader_type', '=', 'complex_loader'), 'type' => 'color', 'title' => __('Spinning bar first color', 'thefoxwp'), 'subtitle' => __('Spinning bar first color.', 'thefoxwp'), 'default' => '#1abc9c', 'validate' => 'color'), array('id' => 'rd_loader_sb_second_color', 'required' => array('rd_loader_type', '=', 'complex_loader'), 'type' => 'color', 'title' => __('Spinning bar second color', 'thefoxwp'), 'subtitle' => __('Spinning bar second color (for gradient).', 'thefoxwp'), 'default' => '#34C0BF', 'validate' => 'color'), array('id' => 'rd_loader_sb_third_color', 'required' => array('rd_loader_type', '=', 'complex_loader'), 'type' => 'color', 'title' => __('Spinning bar third color', 'thefoxwp'), 'subtitle' => __('Spinning bar third color (for gradient).', 'thefoxwp'), 'default' => '#4DC4E2', 'validate' => 'color'), array('id' => 'rd_loader_sb_ball_color', 'required' => array('rd_loader_type', '=', 'complex_loader'), 'type' => 'color', 'title' => __('Spinning bar ball color', 'thefoxwp'), 'subtitle' => __('Spinning bar ball color.', 'thefoxwp'), 'default' => '#21C2F8', 'validate' => 'color')));
            $this->sections[] = array('icon' => 'el-icon-remove-circle', 'title' => __('Page 404 options', 'thefoxwp'), 'fields' => array(array('id' => 'rd_error_title', 'type' => 'text', 'title' => __('Page 404 Title', 'thefoxwp'), 'subtitle' => __('Insert the 404 page Title', 'thefoxwp'), 'default' => 'Page Not Found'), array('id' => 'rd_error_text', 'type' => 'text', 'title' => __('Page 404 Error Text', 'thefoxwp'), 'subtitle' => __('Insert the Error text to show', 'thefoxwp'), 'default' => 'Oops, This Page Could Not Be Found!'), array('id' => 'rd_error_subtext', 'type' => 'text', 'title' => __('Page 404 Error Sub-Text', 'thefoxwp'), 'subtitle' => __('Insert the second Error text to show', 'thefoxwp'), 'default' => 'The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.'), array('id' => 'rd_error_img', 'type' => 'media', 'url' => true, 'title' => __('Page 404 image', 'thefoxwp'), 'desc' => __('Upload an Image if you want to replace the Page 404 default image', 'thefoxwp'), 'subtitle' => __('Will be to replace the 404 image', 'thefoxwp'), 'default' => array('url' => ''))));
            $this->sections[] = array('icon' => 'el-icon-time', 'title' => __('Coming Soon Page', 'thefoxwp'), 'fields' => array(array('id' => 'rd_csp_style', 'type' => 'button_set', 'title' => __('Select the Coming Soon Page Style ( Design )', 'thefoxwp'), 'subtitle' => __('Select If you want to use the Light or Dark Style for the coming soon page.', 'thefoxwp'), 'options' => array('white_csp' => 'Light', 'dark_csp' => 'Dark'), 'default' => 'white_csp'), array('id' => 'rd_csp_first_color', 'type' => 'color', 'title' => __('Loading bar first color', 'thefoxwp'), 'subtitle' => __('Loading spining bar first color.', 'thefoxwp'), 'default' => '#1abc9c', 'validate' => 'color'), array('id' => 'rd_csp_second_color', 'type' => 'color', 'title' => __('Loading bar second color', 'thefoxwp'), 'subtitle' => __('Loading Spinning bar second color (for gradient).', 'thefoxwp'), 'default' => '#34C0BF', 'validate' => 'color'), array('id' => 'rd_csp_third_color', 'type' => 'color', 'title' => __('Loading bar third color', 'thefoxwp'), 'subtitle' => __('Loading Spinning bar third color (for gradient).', 'thefoxwp'), 'default' => '#4DC4E2', 'validate' => 'color'), array('id' => 'rd_csp_ball_color', 'type' => 'color', 'title' => __('Loading bar ball color', 'thefoxwp'), 'subtitle' => __('Loading Spinning bar ball color.', 'thefoxwp'), 'default' => '#21C2F8', 'validate' => 'color'), array('id' => 'rd_csp_logo', 'type' => 'media', 'url' => true, 'title' => __('Coming Soon Page Logo upload', 'thefoxwp'), 'subtitle' => __('Use big logo for retina ready display', 'thefoxwp'), 'default' => array('url' => 'http://thefoxwp.com/wp-content/uploads/2015/03/thefox-logo2.png')), array('id' => 'rd_csp_text', 'type' => 'text', 'title' => __('Coming Soon Page Text', 'thefoxwp'), 'subtitle' => __('Insert the text to show on the coming soon page', 'thefoxwp'), 'default' => 'we are coming soon'), array('id' => 'rd_csp_date', 'type' => 'text', 'title' => __('Date', 'thefoxwp'), 'subtitle' => __('Format yyyy-mm-dd ( eg. 2016-04-16 )', 'thefoxwp'), 'desc' => __('Insert the Release Date ( format yyyy-mm-dd, eg. 2016-04-16 )', 'thefoxwp'), 'default' => '2016-04-16'), array('id' => 'rd_csp_days', 'type' => 'text', 'title' => __('Text For Days', 'thefoxwp'), 'subtitle' => __('Insert the text to use for the Days counter', 'thefoxwp'), 'default' => 'Days'), array('id' => 'rd_csp_days_color', 'type' => 'color', 'title' => __('Days Counter Bar color', 'thefoxwp'), 'subtitle' => __('Days Bar Color.', 'thefoxwp'), 'default' => '#21c2f8', 'validate' => 'color'), array('id' => 'rd_csp_hours', 'type' => 'text', 'title' => __('Text For Hours', 'thefoxwp'), 'subtitle' => __('Insert the text to use for the Hours counter', 'thefoxwp'), 'default' => 'Hours'), array('id' => 'rd_csp_hours_color', 'type' => 'color', 'title' => __('Hours Counter Bar color', 'thefoxwp'), 'subtitle' => __('Hours Bar Color.', 'thefoxwp'), 'default' => '#f28776', 'validate' => 'color'), array('id' => 'rd_csp_minutes', 'type' => 'text', 'title' => __('Text For Minutes', 'thefoxwp'), 'subtitle' => __('Insert the text to use for the Minutes counter', 'thefoxwp'), 'default' => 'Minutes'), array('id' => 'rd_csp_minutes_color', 'type' => 'color', 'title' => __('Minutes Counter Bar color', 'thefoxwp'), 'subtitle' => __('Minutes Bar Color.', 'thefoxwp'), 'default' => '#9674ed', 'validate' => 'color'), array('id' => 'rd_csp_seconds', 'type' => 'text', 'title' => __('Text For Seconds', 'thefoxwp'), 'subtitle' => __('Insert the text to use for the Seconds counter', 'thefoxwp'), 'default' => 'Seconds'), array('id' => 'rd_csp_seconds_color', 'type' => 'color', 'title' => __('Seconds Counter Bar color', 'thefoxwp'), 'subtitle' => __('Seconds Bar Color.', 'thefoxwp'), 'default' => '#facc43', 'validate' => 'color'), array('id' => 'rd_csp_mail', 'type' => 'button_set', 'title' => __('Use Mail Form?', 'thefoxwp'), 'subtitle' => __('If you want to use a Mail form to let user register their email.', 'thefoxwp'), 'options' => array('yes' => 'Yes', 'no' => 'No'), 'default' => 'yes'), array('id' => 'rd_csp_mail_adress', 'required' => array('rd_csp_mail', '=', 'yes'), 'type' => 'text', 'title' => __('Email', 'thefoxwp'), 'desc' => __('Put the email adress that will receive mail from the form', 'thefoxwp'), 'subtitle' => __('Put your email', 'thefoxwp'), 'default' => '*****@*****.**'), array('id' => 'rd_csp_mail_subject', 'required' => array('rd_csp_mail', '=', 'yes'), 'type' => 'text', 'title' => __('Email Subject', 'thefoxwp'), 'desc' => __('Put the email Suject (e.g Email From Coming Soon Page )', 'thefoxwp'), 'subtitle' => __('Email Subject ( Title of the mail coming to your mail box )', 'thefoxwp'), 'default' => 'Mail From Coming Soon Page'), array('id' => 'rd_csp_mail_placeholder', 'required' => array('rd_csp_mail', '=', 'yes'), 'type' => 'text', 'title' => __('Form Placeholder', 'thefoxwp'), 'desc' => __('Put the text user will see before enter their email', 'thefoxwp'), 'subtitle' => __('Form Place Holder', 'thefoxwp'), 'default' => 'Enter your email and we will contact you when ready')));
            $this->sections[] = array('icon' => 'el-icon-globe', 'title' => __('Social Media', 'thefoxwp'), 'fields' => array(array('id' => 'rd_facebook_link', 'type' => 'text', 'title' => __('Facebook URL', 'thefoxwp'), 'subtitle' => __('Please enter in your Facebook URL.', 'thefoxwp'), 'validate' => 'url', 'default' => ''), array('id' => 'rd_twitter_link', 'type' => 'text', 'title' => __('Twitter URL', 'thefoxwp'), 'subtitle' => __('Please enter in your Twitter URL.', 'thefoxwp'), 'validate' => 'url', 'default' => ''), array('id' => 'rd_googleplus_link', 'type' => 'text', 'title' => __('Google+ URL', 'thefoxwp'), 'subtitle' => __('Please enter in your Google+ URL.', 'thefoxwp'), 'validate' => 'url', 'default' => ''), array('id' => 'rd_vimeo_link', 'type' => 'text', 'title' => __('Vimeo URL', 'thefoxwp'), 'subtitle' => __('Please enter in your Vimeo URL.', 'thefoxwp'), 'validate' => 'url', 'default' => ''), array('id' => 'rd_lin_link', 'type' => 'text', 'title' => __('Linkedin URL', 'thefoxwp'), 'subtitle' => __('Please enter in your Linkedin URL.', 'thefoxwp'), 'validate' => 'url', 'default' => ''), array('id' => 'rd_tumblr_link', 'type' => 'text', 'title' => __('Tumblr URL', 'thefoxwp'), 'subtitle' => __('Please enter in your Tumblr URL.', 'thefoxwp'), 'validate' => 'url', 'default' => ''), array('id' => 'rd_pinterest_link', 'type' => 'text', 'title' => __('Pinterest URL', 'thefoxwp'), 'subtitle' => __('Please enter in your Pinterest URL.', 'thefoxwp'), 'validate' => 'url', 'default' => ''), array('id' => 'rd_skype_link', 'type' => 'text', 'title' => __('Skype ID', 'thefoxwp'), 'subtitle' => __('Enter your skype ID.', 'thefoxwp'), 'validate' => 'url', 'default' => ''), array('id' => 'rd_dribbble_link', 'type' => 'text', 'title' => __('Dribbble URL', 'thefoxwp'), 'subtitle' => __('Please enter in your Dribbble URL.', 'thefoxwp'), 'validate' => 'url', 'default' => ''), array('id' => 'rd_yt_link', 'type' => 'text', 'title' => __('Youtube URL', 'thefoxwp'), 'subtitle' => __('Please enter in your Youtube URL.', 'thefoxwp'), 'validate' => 'url', 'default' => ''), array('id' => 'rd_behance_link', 'type' => 'text', 'title' => __('Behance URL', 'thefoxwp'), 'subtitle' => __('Please enter in your Behance URL.', 'thefoxwp'), 'validate' => 'url', 'default' => ''), array('id' => 'rd_flickr_link', 'type' => 'text', 'title' => __('Flickr URL', 'thefoxwp'), 'subtitle' => __('Please enter in your Flickr URL.', 'thefoxwp'), 'validate' => 'url', 'default' => ''), array('id' => 'rd_instagram_link', 'type' => 'text', 'title' => __('Instagram URL', 'thefoxwp'), 'subtitle' => __('Please enter in your Instagram URL.', 'thefoxwp'), 'validate' => 'url', 'default' => ''), array('id' => 'rd_da_link', 'type' => 'text', 'title' => __('Deviant Art URL', 'thefoxwp'), 'subtitle' => __('Please enter in your Deviant Art URL.', 'thefoxwp'), 'validate' => 'url', 'default' => ''), array('id' => 'rd_digg_link', 'type' => 'text', 'title' => __('Digg URL', 'thefoxwp'), 'subtitle' => __('Please enter in your Digg URL.', 'thefoxwp'), 'validate' => 'url', 'default' => ''), array('id' => 'rd_reddit_link', 'type' => 'text', 'title' => __('Reddit URL', 'thefoxwp'), 'subtitle' => __('Please enter in your Reddit URL.', 'thefoxwp'), 'validate' => 'url', 'default' => '')));
            $theme_info = '<div class="redux-framework-section-desc">';
            $theme_info .= '<p class="redux-framework-theme-data description theme-uri">' . __('<strong>Theme URL:</strong> ', 'thefoxwp') . '<a href="' . $this->theme->get('ThemeURI') . '" target="_blank">' . $this->theme->get('ThemeURI') . '</a></p>';
            $theme_info .= '<p class="redux-framework-theme-data description theme-author">' . __('<strong>Author:</strong> ', 'thefoxwp') . $this->theme->get('Author') . '</p>';
            $theme_info .= '<p class="redux-framework-theme-data description theme-version">' . __('<strong>Version:</strong> ', 'thefoxwp') . $this->theme->get('Version') . '</p>';
            $theme_info .= '<p class="redux-framework-theme-data description theme-description">' . $this->theme->get('Description') . '</p>';
            $tabs = $this->theme->get('Tags');
            if (!empty($tabs)) {
                $theme_info .= '<p class="redux-framework-theme-data description theme-tags">' . __('<strong>Tags:</strong> ', 'thefoxwp') . implode(', ', $tabs) . '</p>';
            }
            $theme_info .= '</div>';
            if (file_exists(dirname(__FILE__) . '/../README.md')) {
                $this->sections['theme_docs'] = array('icon' => 'el-icon-list-alt', 'title' => __('Documentation', 'thefoxwp'), 'fields' => array(array('id' => '17', 'type' => 'raw', 'markdown' => true, 'content' => file_get_contents(dirname(__FILE__) . '/../README.md'))));
            }
            $this->sections[] = array('title' => __('Import / Export', 'thefoxwp'), 'desc' => __('Import and Export your Redux Framework settings from file, text or URL.', 'thefoxwp'), 'icon' => 'el-icon-refresh', 'fields' => array(array('id' => 'opt-import-export', 'type' => 'import_export', 'title' => 'Import Export', 'subtitle' => 'Save and restore your Redux options', 'full_width' => false)));
            $this->sections[] = array('type' => 'divide');
            $this->sections[] = array('icon' => 'el-icon-info-sign', 'title' => __('Theme Information', 'thefoxwp'), 'desc' => __('<p class="description">This is the Description. Again HTML is allowed</p>', 'thefoxwp'), 'fields' => array(array('id' => 'opt-raw-info', 'type' => 'raw', 'content' => $item_info)));
            if (file_exists(trailingslashit(dirname(__FILE__)) . 'README.html')) {
                $tabs['docs'] = array('icon' => 'el-icon-book', 'title' => __('Documentation', 'thefoxwp'), 'content' => nl2br(file_get_contents(trailingslashit(dirname(__FILE__)) . 'README.html')));
            }
        }
Exemplo n.º 18
0
        public function setSections()
        {
            //Stylesheets
            $styles = array('bootstrap.min.css' => 'Bootstrap', 'cerulean.min.css' => 'Cerulean', 'cosmo.min.css' => 'Cosmo', 'cyborg.min.css' => 'Cyborg', 'darkly.min.css' => 'Darkly', 'flatly.min.css' => 'Flatly', 'journal.min.css' => 'Journal', 'lumen.min.css' => 'Lumen', 'paper.min.css' => 'Paper', 'readable.min.css' => 'Readable', 'sandstone.min.css' => 'Sandstone', 'simplex.min.css' => 'Simplex', 'slate.min.css' => 'Slate', 'spacelab.min.css' => 'Spacelab', 'superhero.min.css' => 'Superhero', 'united.min.css' => 'United', 'yeti.min.css' => 'Yeti');
            // Bootstrap Button Colors
            $btn_color = array("default" => "Default", "primary" => "Primary", "info" => "Info", "success" => "Success", "warning" => "Warning", "danger" => "Danger", "link" => "Link");
            // Bootstrap Button Size
            $btn_size = array("xs" => "Extra Small", "sm" => "Small", "default" => "Medium", "lg" => "Large");
            /**
             * Used within different fields. Simply examples. Search for ACTUAL DECLARATION for field examples
             * */
            // Background Patterns Reader
            $sample_patterns_path = ReduxFramework::$_dir . '../sample/patterns/';
            $sample_patterns_url = ReduxFramework::$_url . '../sample/patterns/';
            $sample_patterns = array();
            if (is_dir($sample_patterns_path)) {
                if ($sample_patterns_dir = opendir($sample_patterns_path)) {
                    $sample_patterns = array();
                    while (($sample_patterns_file = readdir($sample_patterns_dir)) !== false) {
                        if (stristr($sample_patterns_file, '.png') !== false || stristr($sample_patterns_file, '.jpg') !== false) {
                            $name = explode('.', $sample_patterns_file);
                            $name = str_replace('.' . end($name), '', $sample_patterns_file);
                            $sample_patterns[] = array('alt' => $name, 'img' => $sample_patterns_url . $sample_patterns_file);
                        }
                    }
                }
            }
            ob_start();
            $ct = wp_get_theme();
            $this->theme = $ct;
            $item_name = $this->theme->get('Name');
            $tags = $this->theme->Tags;
            $screenshot = $this->theme->get_screenshot();
            $class = $screenshot ? 'has-screenshot' : '';
            $customize_title = sprintf(__('Customize &#8220;%s&#8221;', 'bootstrapwp'), $this->theme->display('Name'));
            ?>
                <div id="current-theme" class="<?php 
            echo esc_attr($class);
            ?>
">
                    <?php 
            if ($screenshot) {
                ?>
                        <?php 
                if (current_user_can('edit_theme_options')) {
                    ?>
                            <a href="<?php 
                    echo wp_customize_url();
                    ?>
" class="load-customize hide-if-no-customize"
                               title="<?php 
                    echo esc_attr($customize_title);
                    ?>
">
                                <img src="<?php 
                    echo esc_url($screenshot);
                    ?>
"
                                     alt="<?php 
                    esc_attr_e('Current theme preview', 'bootstrapwp');
                    ?>
"/>
                            </a>
                        <?php 
                }
                ?>
                        <img class="hide-if-customize" src="<?php 
                echo esc_url($screenshot);
                ?>
"
                             alt="<?php 
                esc_attr_e('Current theme preview', 'bootstrapwp');
                ?>
"/>
                    <?php 
            }
            ?>

                    <h4><?php 
            echo $this->theme->display('Name');
            ?>
</h4>

                    <div>
                        <ul class="theme-info">
                            <li><?php 
            printf(__('By %s', 'bootstrapwp'), $this->theme->display('Author'));
            ?>
</li>
                            <li><?php 
            printf(__('Version %s', 'bootstrapwp'), $this->theme->display('Version'));
            ?>
</li>
                            <li><?php 
            echo '<strong>' . __('Tags', 'bootstrapwp') . ':</strong> ';
            printf($this->theme->display('Tags'));
            ?>
</li>
                        </ul>
                        <p class="theme-description"><?php 
            echo $this->theme->display('Description');
            ?>
</p>
                        <?php 
            if ($this->theme->parent()) {
                printf(' <p class="howto">' . __('This <a href="%1$s">child theme</a> requires its parent theme, %2$s.', 'bootstrapwp') . '</p>', __('http://codex.wordpress.org/Child_Themes', 'bootstrapwp'), $this->theme->parent()->display('Name'));
            }
            ?>

                    </div>
                </div>

                <?php 
            $item_info = ob_get_contents();
            ob_end_clean();
            $sampleHTML = '';
            if (file_exists(dirname(__FILE__) . '/info-html.html')) {
                Redux_Functions::initWpFilesystem();
                global $wp_filesystem;
                $sampleHTML = $wp_filesystem->get_contents(dirname(__FILE__) . '/info-html.html');
            }
            // ACTUAL DECLARATION OF SECTIONS
            //General
            $this->sections[] = array('icon' => 'el-icon-cog', 'title' => __('General', 'bootstrapwp'), 'fields' => array(array('type' => 'select', 'id' => 'css_style', 'title' => __('Theme Stylesheet', 'bootstrapwp'), 'subtitle' => __('Select your themes alternative color scheme.', 'bootstrapwp'), 'default' => 'bootstrap.min.css', 'options' => $styles), array('title' => __('Favicon', 'bootstrapwp'), 'subtitle' => __('Use this field to upload your custom favicon.', 'bootstrapwp'), 'id' => 'custom_favicon', 'default' => '', 'type' => 'media', 'url' => true)));
            // Header
            $this->sections[] = array('icon' => 'el-icon-website', 'title' => __('Header', 'bootstrapwp'), 'fields' => array(array('title' => __('Fixed Navbar', 'bootstrapwp'), 'subtitle' => __('Select to enable/disable a fixed navbar.', 'bootstrapwp'), 'id' => 'disable_fixed_navbar', 'default' => false, 'on' => __('Enable', 'bootstrapwp'), 'off' => __('Disable', 'bootstrapwp'), 'type' => 'switch'), array('title' => __('Inverse Navbar', 'bootstrapwp'), 'subtitle' => __('Select to enable/disable an inverse navbar color.', 'bootstrapwp'), 'id' => "disable_inverse_navbar", 'default' => false, 'on' => __('Enable', 'bootstrapwp'), 'off' => __('Disable', 'bootstrapwp'), 'type' => 'switch'), array('title' => __('Logo', 'bootstrapwp'), 'subtitle' => __('Use this field to upload your custom logo icon for use in the theme header. This is the icon that will be visible in mobile and animated rotation on hover at top left. (Recommended 40px x 40px)', 'bootstrapwp'), 'id' => 'custom_logo', 'default' => '', 'type' => 'media', 'url' => true), array('title' => __('Wordmark', 'bootstrapwp'), 'subtitle' => __('Use this field to upload your custom logo for use in the theme header. Will not be visible on tablets and mobile. (Recommended 200px x 50px)', 'bootstrapwp'), 'id' => 'custom_wordmark', 'default' => '', 'type' => 'media', 'url' => true)));
            //Blog
            $this->sections[] = array('icon' => 'el-icon-wordpress', 'title' => __('Blog', 'bootstrapwp'), 'fields' => array(array('title' => __('Display Meta Data', 'bootstrapwp'), 'subtitle' => __('Select to enable/disable the date and author.', 'bootstrapwp'), 'id' => 'disable_meta', 'default' => true, 'on' => __('Enable', 'bootstrapwp'), 'off' => __('Disable', 'bootstrapwp'), 'type' => 'switch'), array('title' => __('Read More Button Text', 'bootstrapwp'), 'subtitle' => __('This is the text that will replace Read More.', 'bootstrapwp'), 'id' => 'read_more_text', 'default' => 'Read More', 'type' => 'text'), array('title' => __('Make the Read More button Full Width - Block', 'bootstrapwp'), 'subtitle' => __('Enable/Disable full width button.', 'bootstrapwp'), 'id' => 'read_more_block', 'default' => true, 'on' => __('Enable', 'bootstrapwp'), 'off' => __('Disable', 'bootstrapwp'), 'type' => 'switch'), array('title' => __('Read More Button Size', 'bootstrapwp'), 'subtitle' => __('Select the Bootstrap button size you want.', 'bootstrapwp'), 'id' => 'read_more_size', 'default' => 'default', 'type' => 'select', 'options' => $btn_size), array('title' => __('Read More Button Color', 'bootstrapwp'), 'subtitle' => __('Select the Bootstrap button color you want.', 'bootstrapwp'), 'id' => 'read_more_color', 'default' => 'default', 'type' => 'select', 'options' => $btn_color), array('title' => __('Display Tags', 'bootstrapwp'), 'subtitle' => __('Select to enable/disable the post tags.', 'bootstrapwp'), 'id' => 'enable_disable_tags', 'default' => true, 'on' => __('Enable', 'bootstrapwp'), 'off' => __('Disable', 'bootstrapwp'), 'type' => 'switch')));
            //CSS
            $this->sections[] = array('icon' => 'el-icon-css', 'title' => __('CSS', 'bootstrapwp'), 'fields' => array(array('title' => __('Custom CSS', 'bootstrapwp'), 'subtitle' => __('Insert any custom CSS.', 'bootstrapwp'), 'id' => 'custom_css', 'type' => 'ace_editor', 'mode' => 'css', 'theme' => 'monokai')));
            if (file_exists(trailingslashit(dirname(__FILE__)) . 'README.html')) {
                $tabs['docs'] = array('icon' => 'el-icon-book', 'title' => __('Documentation', 'bootstrapwp'), 'content' => nl2br(file_get_contents(trailingslashit(dirname(__FILE__)) . 'README.html')));
            }
        }
Exemplo n.º 19
0
 function layers_edit_layout_admin_menu()
 {
     global $wp_admin_bar, $post;
     if (is_page() && layers_is_builder_page()) {
         $current_url = (is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
         $args = array('id' => 'layers-edit-layout', 'title' => '<span class="ab-icon"></span><span class="ab-label">' . __('Edit Layout', 'layerswp') . '</span>', 'href' => esc_url(add_query_arg('url', urlencode($current_url), wp_customize_url())), 'meta' => array('class' => 'my-toolbar-page'));
         $wp_admin_bar->add_node($args);
     }
 }
        public function setSections()
        {
            /**
                          Used within different fields. Simply examples. Search for ACTUAL DECLARATION for field examples
                         * */
            // Background Patterns Reader
            $sample_patterns_path = ReduxFramework::$_dir . '../sample/patterns/';
            $sample_patterns_url = ReduxFramework::$_url . '../sample/patterns/';
            $sample_patterns = array();
            if (is_dir($sample_patterns_path)) {
                if ($sample_patterns_dir = opendir($sample_patterns_path)) {
                    $sample_patterns = array();
                    while (($sample_patterns_file = readdir($sample_patterns_dir)) !== false) {
                        if (stristr($sample_patterns_file, '.png') !== false || stristr($sample_patterns_file, '.jpg') !== false) {
                            $name = explode('.', $sample_patterns_file);
                            $name = str_replace('.' . end($name), '', $sample_patterns_file);
                            $sample_patterns[] = array('alt' => $name, 'img' => $sample_patterns_url . $sample_patterns_file);
                        }
                    }
                }
            }
            ob_start();
            $ct = wp_get_theme();
            $this->theme = $ct;
            $item_name = $this->theme->get('Name');
            $tags = $this->theme->Tags;
            $screenshot = $this->theme->get_screenshot();
            $class = $screenshot ? 'has-screenshot' : '';
            $customize_title = sprintf(__('Customize &#8220;%s&#8221;', 'framework'), $this->theme->display('Name'));
            ?>
            <div id="current-theme" class="<?php 
            echo esc_attr($class);
            ?>
">
            <?php 
            if ($screenshot) {
                ?>
                <?php 
                if (current_user_can('edit_theme_options')) {
                    ?>
                        <a href="<?php 
                    echo wp_customize_url();
                    ?>
" class="load-customize hide-if-no-customize" title="<?php 
                    echo esc_attr($customize_title);
                    ?>
">
                            <img src="<?php 
                    echo esc_url($screenshot);
                    ?>
" alt="<?php 
                    esc_attr_e('Current theme preview');
                    ?>
" />
                        </a>
                <?php 
                }
                ?>
                    <img class="hide-if-customize" src="<?php 
                echo esc_url($screenshot);
                ?>
" alt="<?php 
                esc_attr_e('Current theme preview');
                ?>
" />
                <?php 
            }
            ?>
                <h4><?php 
            echo $this->theme->display('Name');
            ?>
</h4>
                <div>
                    <ul class="theme-info">
                        <li><?php 
            printf(__('By %s', 'framework'), $this->theme->display('Author'));
            ?>
</li>
                        <li><?php 
            printf(__('Version %s', 'framework'), $this->theme->display('Version'));
            ?>
</li>
                        <li><?php 
            echo '<strong>' . __('Tags', 'framework') . ':</strong> ';
            printf($this->theme->display('Tags'));
            ?>
</li>
                    </ul>
                    <p class="theme-description"><?php 
            echo $this->theme->display('Description');
            ?>
</p>
            <?php 
            if ($this->theme->parent()) {
                printf(' <p class="howto">' . __('This <a href="%1$s">child theme</a> requires its parent theme, %2$s.') . '</p>', __('http://codex.wordpress.org/Child_Themes', 'framework'), $this->theme->parent()->display('Name'));
            }
            ?>
                </div>
            </div>
            <?php 
            $item_info = ob_get_contents();
            ob_end_clean();
            $sampleHTML = '';
            if (file_exists(dirname(__FILE__) . '/info-html.html')) {
                /** @global WP_Filesystem_Direct $wp_filesystem  */
                global $wp_filesystem;
                if (empty($wp_filesystem)) {
                    require_once ABSPATH . '/wp-admin/includes/file.php';
                    WP_Filesystem();
                }
                $sampleHTML = $wp_filesystem->get_contents(dirname(__FILE__) . '/info-html.html');
            }
            $defaultLogo = get_template_directory_uri() . '/images/logo.png';
            $defaultAdminLogo = get_template_directory_uri() . '/images/logo@2x.png';
            $defaultBannerImages = get_template_directory_uri() . '/images/page-header1.jpg';
            $defaultFavicon = get_template_directory_uri() . '/images/favicon.ico';
            $default_agent_image = get_template_directory_uri() . '/images/default_agent.png';
            $this->sections[] = array('type' => 'divide');
            $this->sections[] = array('icon' => 'el-icon-cogs', 'title' => __('General Settings', 'framework'), 'fields' => array(array('id' => 'logo_upload', 'type' => 'media', 'url' => true, 'title' => __('Upload Logo', 'framework'), 'subtitle' => __('Upload site logo to display in header.', 'framework'), 'default' => array('url' => $defaultLogo)), array('id' => 'banner_image', 'type' => 'media', 'url' => true, 'title' => __('Header Image', 'framework'), 'desc' => __('Default header image for post types.', 'framework'), 'subtitle' => __('Set this image as default header image for all Page/Post/Property/Agents/Gallery.', 'framework'), 'default' => array('url' => $defaultBannerImages)), array('id' => 'default_agent_image', 'type' => 'media', 'url' => true, 'title' => __('Default Image for Agent', 'framework'), 'subtitle' => __('Upload default image for agent.', 'framework'), 'default' => array('url' => $default_agent_image)), array('id' => 'enable_maintenance', 'type' => 'switch', 'title' => __('Enable Maintenance', 'framework'), 'subtitle' => __('Enable the themes in maintenance mode.', 'framework'), 'default' => 0, 'on' => __('Enabled', 'framework'), 'off' => __('Disabled', 'framework')), array('id' => 'switch-responsive', 'type' => 'switch', 'title' => __('Enable Responsive', 'framework'), 'subtitle' => __('Enable/Disable the responsive behaviour of the theme', 'framework'), 'default' => 1), array('id' => 'enable_rtl', 'type' => 'switch', 'title' => __('Enable RTL', 'framework'), 'subtitle' => __('If you are using wordpress for RTL languages then you should enable this option.', 'imic-framework-admin'), "default" => 0), array('id' => 'enable_backtotop', 'type' => 'switch', 'title' => __('Enable Back To Top', 'framework'), 'subtitle' => __('Enable the back to top button that appears in the bottom right corner of the screen.', 'framework'), 'default' => 0), array('id' => 'custom_favicon', 'type' => 'media', 'compiler' => 'true', 'title' => __('Custom favicon', 'framework'), 'desc' => __('Upload a image that will represent your website favicon', 'imic-framework-admin'), 'default' => array('url' => $defaultFavicon)), array('id' => 'tracking-code', 'type' => 'textarea', 'title' => __('Tracking Code', 'framework'), 'subtitle' => __('Paste your Google Analytics (or other) tracking code here. This will be added into the footer template of your theme.', 'framework'), 'default' => ''), array('id' => 'custom_admin_login_logo', 'type' => 'media', 'url' => true, 'title' => __('Custom admin login logo', 'framework'), 'compiler' => 'true', 'desc' => __('Upload a 254 x 95px image here to replace the admin login logo.', 'framework'), 'subtitle' => '', 'default' => array('url' => $defaultAdminLogo)), $fields = array('id' => 'country-select', 'multi' => true, 'type' => 'select', 'title' => __('Select Country', 'framework'), 'subtitle' => __('Select country for this site.', 'framework'), 'desc' => __('State list will generate through selected country.', 'framework'), 'options' => array('tocustom' => 'Theme Options Custom Values', 'Algeria' => 'Algeria', 'Angola' => 'Angola', 'Benin' => 'Benin', 'Botswana' => 'Botswana', 'Burkina-Faso' => 'Burkina Faso', 'Burundi' => 'Burundi', 'Cameroon' => 'Cameroon', 'Cape-Verde' => 'Cape Verde', 'Central-African-Republic' => 'Central African Republic', 'Chad' => 'Chad', 'Comoros' => 'Comoros', 'Congo' => 'Congo', 'democratic-republic-of-the-congo' => 'Democratic Republic of the Congo', 'Djibouti' => 'Djibouti', 'Egypt' => 'Egypt', 'Equatorial-Guinea' => 'Equatorial Guinea', 'Eritrea' => 'Eritrea', 'Ethiopia' => 'Ethiopia', 'Gabon' => 'Gabon', 'Gambia' => 'Gambia', 'Ghana' => 'Ghana', 'Guinea' => 'Guinea', 'Guinea-Bissau' => 'Guinea-Bissau', 'ivory-coast' => 'Ivory Coast', 'Kenya' => 'Kenya', 'Lesotho' => 'Lesotho', 'Liberia' => 'Liberia', 'Libya' => 'Libya', 'Madagascar' => 'Madagascar', 'Malawi' => 'Malawi', 'Mali' => 'Mali', 'Mauritania' => 'Mauritania', 'Mauritius' => 'Mauritius', 'Morocco' => 'Morocco', 'Mozambique' => 'Mozambique', 'Namibia' => 'Namibia', 'Niger' => 'Niger', 'Nigeria' => 'Nigeria', 'Rwanda' => 'Rwanda', 'saint-helena' => 'Saint Helena', 'Sao-Tome-Principe' => 'Sao Tome/Principe', 'Senegal' => 'Senegal', 'Seychelles' => 'Seychelles', 'Sierra-Leone' => 'Sierra Leone', 'Somalia' => 'Somalia', 'South-Africa' => 'South Africa', 'Sudan' => 'Sudan', 'Swaziland' => 'Swaziland', 'Tanzania' => 'Tanzania', 'Togo' => 'Togo', 'Tunisia' => 'Tunisia', 'Uganda' => 'Uganda', 'Zambia' => 'Zambia', 'Zimbabwe' => 'Zimbabwe', 'Bangladesh' => 'Bangladesh', 'Bhutan' => 'Bhutan', 'Brunei' => 'Brunei', 'Myanmar' => 'Myanmar', 'Cambodia' => 'Cambodia', 'China' => 'China', 'East-Timor' => 'East Timor', 'India' => 'India', 'Indonesia' => 'Indonesia', 'Japan' => 'Japan', 'Kazakhstan' => 'Kazakhstan', 'Korea-north' => 'Korea (north)', 'Korea-south' => 'Korea (south)', 'Laos' => 'Laos', 'Malaysia' => 'Malaysia', 'Maldives' => 'Maldives', 'Mongolia' => 'Mongolia', 'Nepal' => 'Nepal', 'Philippines' => 'Philippines', 'russia' => 'Russia', 'Singapore' => 'Singapore', 'Sri-Lanka' => 'Sri Lanka', 'Taiwan' => 'Taiwan', 'Thailand' => 'Thailand', 'Vietnam' => 'Vietnam', 'Australia' => 'Australia', 'Fiji' => 'Fiji', 'Kiribati' => 'Kiribati', 'Micronesia' => 'Micronesia', 'Nauru' => 'Nauru', 'New-Zealand' => 'New Zealand', 'Palau' => 'Palau', 'Papua-New-Guinea' => 'Papua New Guinea', 'Samoa' => 'Samoa', 'solomon-islands' => 'Solomon Islands', 'Tonga' => 'Tonga', 'Tuvalu' => 'Tuvalu', 'Vanuatu' => 'Vanuatu', 'Anguilla' => 'Anguilla', 'Antigua-Barbuda' => 'Antigua/Barbuda', 'Aruba' => 'Aruba', 'Bahamas' => 'Bahamas', 'Barbados' => 'Barbados', 'Cuba' => 'Cuba', 'Dominica' => 'Dominica', 'Dominican-Republic' => 'Dominican Republic', 'Grenada' => 'Grenada', 'Guadeloupe' => 'Guadeloupe', 'Haiti' => 'Haiti', 'Jamaica' => 'Jamaica', 'Martinique' => 'Martinique', 'Montserrat' => 'Montserrat', 'Netherlands -Antilles' => 'Netherlands Antilles', 'Puerto-Rico' => 'Puerto Rico', 'St-Kitts-Nevis' => 'St. Kitts/Nevis', 'St-Lucia' => 'St. Lucia', 'St Vincent/Grenadines' => 'St-Vincent-Grenadines', 'Trinidad-Tobago' => 'Trinidad/Tobago', 'Turks-Caicos' => 'Turks/Caicos', 'Belize' => 'Belize', 'Costa-Rica' => 'Costa Rica', 'El-Salvador' => 'El Salvador', 'Guatemala' => 'Guatemala', 'Honduras' => 'Honduras', 'Nicaragua' => 'Nicaragua', 'Panama' => 'Panama', 'Albania' => 'Albania', 'Andorra' => 'Andorra', 'Austria' => 'Austria', 'Belarus' => 'Belarus', 'Belgium' => 'Belgium', 'Bosnia-Herzegovina' => 'Bosnia/Herzegovina', 'Bulgaria' => 'Bulgaria', 'Croatia' => 'Croatia', 'Czech-Republic' => 'Czech Republic', 'Denmark' => 'Denmark', 'Estonia' => 'Estonia', 'Finland' => 'Finland', 'France' => 'France', 'Georgia' => 'Georgia', 'Germany' => 'Germany', 'Greece' => 'Greece', 'Hungary' => 'Hungary', 'Iceland' => 'Iceland', 'Ireland' => 'Ireland', 'Italy' => 'Italy', 'Latvia' => 'Latvia', 'Liechtenstein' => 'Liechtenstein', 'Lithuania' => 'Lithuania', 'Luxembourg' => 'Luxembourg', 'Macedonia' => 'Macedonia', 'Malta' => 'Malta', 'Moldova' => 'Moldova', 'Monaco' => 'Monaco', 'Netherlands' => 'Netherlands', 'northern-ireland' => 'Northern Ireland in United Kingdom', 'Norway' => 'Norway', 'Poland' => 'Poland', 'Portugal' => 'Portugal', 'Romania' => 'Romania', 'San-Marino' => 'San Marino', 'scotland' => 'Scotland in United Kingdom', 'Serbia' => 'Serbia', 'Slovakia' => 'Slovakia', 'Slovenia' => 'Slovenia', 'Spain' => 'Spain', 'Sweden' => 'Sweden', 'Switzerland' => 'Switzerland', 'Ukraine' => 'Ukraine', 'wales' => 'Wales', 'United-Kingdom' => 'United Kingdom', 'Arctic-Ocean' => 'Arctic Ocean', 'Atlantic-Ocean-North' => 'Atlantic Ocean (North)', 'Atlantic-Ocean-South' => 'Atlantic Ocean (South)', 'Assorted' => 'Assorted', 'Caribbean-Sea' => 'Caribbean Sea', 'Greek-Isles' => 'Greek Isles', 'Indian-Ocean' => 'Indian Ocean', 'Mediterranean-Sea' => 'Mediterranean Sea', 'Oceania' => 'Oceania', 'Pacific-Ocean-North' => 'Pacific Ocean (North)', 'Afghanistan' => 'Afghanistan', 'Armenia' => 'Armenia', 'Azerbaijan' => 'Azerbaijan', 'Bahrain' => 'Bahrain', 'Cyprus' => 'Cyprus', 'Iran' => 'Iran', 'Iraq' => 'Iraq', 'Israel' => 'Israel', 'Jordan' => 'Jordan', 'Kuwait' => 'Kuwait', 'Kyrgyzstan' => 'Kyrgyzstan', 'Lebanon' => 'Lebanon', 'macao' => 'Macao', 'Oman' => 'Oman', 'Pakistan' => 'Pakistan', 'Qatar' => 'Qatar', 'Saudi-Arabia' => 'Saudi Arabia', 'Syria' => 'Syria', 'Tajikistan' => 'Tajikistan', 'Turkey' => 'Turkey', 'Turkmenistan' => 'Turkmenistan', 'United-Arab-Emirates' => 'United Arab Emirates', 'Uzbekistan' => 'Uzbekistan', 'Yemen' => 'Yemen', 'Bermuda' => 'Bermuda', 'Canada' => 'Canada', 'cayman-islands' => 'Cayman Islands', 'Caribbean' => 'Caribbean', 'Greenland' => 'Greenland', 'Mexico' => 'Mexico', 'Brazil' => 'Brazil', 'United-States' => 'United States', 'us-virgin-islands' => 'U.S. Virgin Islands', 'Argentina' => 'Argentina', 'Bolivia' => 'Bolivia', 'Chile' => 'Chile', 'Colombia' => 'Colombia', 'Ecuador' => 'Ecuador', 'Guyana' => 'Guyana', 'Paraguay' => 'Paraguay', 'Peru' => 'Peru', 'Suriname' => 'Suriname', 'Uruguay' => 'Uruguay', 'Venezuela' => 'Venezuela'), 'default' => array('United-States')), $fields = array('id' => 'custom_province', 'required' => array('country-select', 'equals', 'tocustom'), 'type' => 'textarea', 'title' => __('Custom Provinces', 'framework'), 'subtitle' => __('Enter comma "," separated state/provinces.', 'framework'), 'default' => ''), $fields = array('id' => 'currency-select', 'type' => 'select', 'title' => __('Select Currency', 'framework'), 'subtitle' => __('Select Currency for this site.', 'framework'), 'options' => array('AED' => __('United Arab Emirates Dirham', 'framework'), 'AUD' => __('Australian Dollars', 'framework'), 'BDT' => __('Bangladeshi Taka', 'framework'), 'BRL' => __('Brazilian Real', 'framework'), 'BGN' => __('Bulgarian Lev', 'framework'), 'CAD' => __('Canadian Dollars', 'framework'), 'CLP' => __('Chilean Peso', 'framework'), 'CNY' => __('Chinese Yuan', 'framework'), 'COP' => __('Colombian Peso', 'framework'), 'CZK' => __('Czech Koruna', 'framework'), 'DKK' => __('Danish Krone', 'framework'), 'EUR' => __('Euros', 'framework'), 'HKD' => __('Hong Kong Dollar', 'framework'), 'HRK' => __('Croatia kuna', 'framework'), 'HUF' => __('Hungarian Forint', 'framework'), 'ISK' => __('Icelandic krona', 'framework'), 'IDR' => __('Indonesia Rupiah', 'framework'), 'INR' => __('Indian Rupee', 'framework'), 'ILS' => __('Israeli Shekel', 'framework'), 'JMD' => __('Jamaica Dollar', 'framework'), 'JPY' => __('Japanese Yen', 'framework'), 'KRW' => __('South Korean Won', 'framework'), 'MYR' => __('Malaysian Ringgits', 'framework'), 'MXN' => __('Mexican Peso', 'framework'), 'NGN' => __('Nigerian Naira', 'framework'), 'NOK' => __('Norwegian Krone', 'framework'), 'NZD' => __('New Zealand Dollar', 'framework'), 'PHP' => __('Philippine Pesos', 'framework'), 'PLN' => __('Polish Zloty', 'framework'), 'PKR' => __('Pakistan Rupee', 'framework'), 'GBP' => __('Pounds Sterling', 'framework'), 'RON' => __('Romanian Leu', 'framework'), 'RUB' => __('Russian Ruble', 'framework'), 'SGD' => __('Singapore Dollar', 'framework'), 'ZAR' => __('South African rand', 'framework'), 'SEK' => __('Swedish Krona', 'framework'), 'CHF' => __('Swiss Franc', 'framework'), 'TWD' => __('Taiwan New Dollars', 'framework'), 'THB' => __('Thai Baht', 'framework'), 'TRY' => __('Turkish Lira', 'framework'), 'USD' => __('US Dollars', 'framework'), 'VND' => __('Vietnamese Dong', 'framework')), 'default' => 'USD')));
            $this->sections[] = array('icon' => 'el-icon-chevron-up', 'title' => __('Featured Block', 'framework'), 'desc' => __('<p class="description">Add Slides for featured block area on homepage.</p>', 'framework'), 'fields' => array($fields = array('id' => 'opt-slides', 'type' => 'slides', 'title' => __('Featured Block Options', 'framework'), 'subtitle' => __('Add Slides for featured block on homepage.', 'framework'), 'desc' => '', 'placeholder' => array('title' => __('Insert title for featured block', 'framework'), 'description' => __('Insert description for featured block', 'framework'), 'url' => __('Insert URL for featured block!', 'framework')))));
            $this->sections[] = array('icon' => 'el-icon-chevron-up', 'title' => __('Header Options', 'framework'), 'desc' => __('<p class="description">These are the options for the header.</p>', 'framework'), 'fields' => array(array('id' => 'enable-top-header-login-dropdown', 'type' => 'switch', 'title' => __('Enable Top header login dropdown', 'framework'), 'subtitle' => __('Enable/Disable Top header login dropdown behaviour of the theme', 'framework'), 'default' => 1), array('id' => 'top_social_links', 'type' => 'sortable', 'label' => true, 'compiler' => true, 'title' => __('Social Links', 'framework'), 'desc' => __('Enter the social links and sort to active and display according to sequence.', 'framework'), 'options' => array('fa-dribbble' => 'dribbble', 'fa-dropbox' => 'dropbox', 'fa-facebook' => 'facebook', 'fa-flickr' => 'flickr', 'fa-foursquare' => 'foursquare', 'fa-github' => 'github', 'fa-google-plus' => 'plus.google', 'fa-instagram' => 'instagram', 'fa-linkedin' => 'linkedin', 'fa-pinterest' => 'pinterest', 'fa-skype' => 'skype', 'fa-stack-exchange' => 'stackexchange', 'fa-stack-overflow' => 'stackoverflow', 'fa-trello' => 'trello', 'fa-tumblr' => 'tumblr', 'fa-twitter' => 'twitter', 'fa-vimeo-square' => 'vimeo', 'fa-xing' => 'xing', 'fa-youtube' => 'youtube', 'fa-rss' => 'rss')), array('id' => 'enable-header-stick', 'type' => 'switch', 'title' => __('Enable Header Stick', 'framework'), 'subtitle' => __('Enable/Disable Header Stick behaviour of the theme', 'framework'), 'default' => 1), array('id' => 'header_free_line_title', 'type' => 'text', 'title' => __('Header Info 1 Title', 'framework'), 'subtitle' => __('Enter your header info 1 title', 'framework'), 'default' => 'Free Line For You'), array('id' => 'header_free_line_icon', 'type' => 'text', 'title' => __('Header Info 1 Icon', 'framework'), 'subtitle' => __('Enter your info 1 icon name. <a href="http://fontawesome.io/icons/" target="_blank">Icon names</a>', 'framework'), 'default' => 'phone'), array('id' => 'header_free_line', 'type' => 'text', 'title' => __('Header Info 1', 'framework'), 'subtitle' => __('Enter your header info 1 information', 'framework'), 'default' => '08037867890'), array('id' => 'header_email_us_title', 'type' => 'text', 'title' => __('Header Info 2 Title', 'framework'), 'subtitle' => __('Enter your header info 2 title', 'framework'), 'default' => 'Email Us'), array('id' => 'header_email_us_icon', 'type' => 'text', 'title' => __('Header Info 2 Icon', 'framework'), 'subtitle' => __('Enter your info 2 icon name. <a href="http://fontawesome.io/icons/" target="_blank">Icon names</a>', 'framework'), 'default' => 'envelope'), array('id' => 'header_email_us', 'type' => 'text', 'title' => __('Header Info 2', 'framework'), 'subtitle' => __('Enter your header info 2 information', 'framework'), 'default' => '*****@*****.**'), array('id' => 'header_working_hours_title', 'type' => 'text', 'title' => __('Header Info 3 Title', 'framework'), 'subtitle' => __('Enter your header info 3 title', 'framework'), 'default' => 'Working Hours'), array('id' => 'header_working_hours_icon', 'type' => 'text', 'title' => __('Header Info 3 Icon', 'framework'), 'subtitle' => __('Enter your info 3 icon name. <a href="http://fontawesome.io/icons/" target="_blank">Icon names</a>', 'framework'), 'default' => 'clock-o'), array('id' => 'header_working_hours', 'type' => 'text', 'title' => __('Header Info 3', 'framework'), 'subtitle' => __('Enter your header info 3 information', 'framework'), 'default' => '09:00 to 17:00'), array('id' => 'header_background_color', 'type' => 'color', 'title' => __('Header Background Color', 'framework'), 'subtitle' => __('Pick a color for Header Background.', 'imic-framework-admin'), 'validate' => 'color')));
            $this->sections[] = array('icon' => 'el-icon-chevron-down', 'title' => __('Footer Options', 'framework'), 'desc' => __('<p class="description">These are the options for the footer.</p>', 'framework'), 'fields' => array(array('id' => 'footer_column', 'type' => 'image_select', 'title' => __('Footer Columns', 'framework'), 'desc' => __('Select type of footer column to display in footer.', 'framework'), 'options' => array('12' => array('alt' => 'One Column', 'img' => ReduxFramework::$_url . 'assets/img/footerColumns/one-column.png'), '6' => array('alt' => 'One Half Column', 'img' => ReduxFramework::$_url . 'assets/img/footerColumns/one-half-column.png'), '4' => array('alt' => 'One Third Column', 'img' => ReduxFramework::$_url . 'assets/img/footerColumns/one-third-column.png'), '3' => array('alt' => 'One Fourth Column', 'img' => ReduxFramework::$_url . 'assets/img/footerColumns/one-fourth-column.png')), 'default' => '3'), array('id' => 'footer_sidebar_background_color', 'type' => 'color', 'title' => __('Footer Sidebar Background Color', 'framework'), 'subtitle' => __('Pick a color for Footer Sidebar Background.', 'imic-framework-admin'), 'validate' => 'color'), array('id' => 'footer_background_color', 'type' => 'color', 'title' => __('Footer Background Color', 'framework'), 'subtitle' => __('Pick a color for Footer Background.', 'imic-framework-admin'), 'validate' => 'color'), array('id' => 'footer_copyright_text', 'type' => 'text', 'title' => __('Footer Copyright Text', 'framework'), 'subtitle' => __(' Enter Copyright Text', 'framework'), 'default' => __('All Rights Reserved', 'framework')), array('id' => 'footer_social_links', 'type' => 'sortable', 'label' => true, 'compiler' => true, 'title' => __('Social Links', 'framework'), 'desc' => __('Enter the social links and sort to active and display according to sequence in footer.', 'framework'), 'options' => array('fa-dribbble' => 'dribbble', 'fa-dropbox' => 'dropbox', 'fa-facebook' => 'facebook', 'fa-flickr' => 'flickr', 'fa-foursquare' => 'foursquare', 'fa-github' => 'github', 'fa-google-plus' => 'plus.google', 'fa-instagram' => 'instagram', 'fa-linkedin' => 'linkedin', 'fa-pinterest' => 'pinterest', 'fa-skype' => 'skype', 'fa-stack-exchange' => 'stackexchange', 'fa-stack-overflow' => 'stackoverflow', 'fa-trello' => 'trello', 'fa-tumblr' => 'tumblr', 'fa-twitter' => 'twitter', 'fa-vimeo-square' => 'vimeo', 'fa-xing' => 'xing', 'fa-youtube' => 'youtube', 'fa-rss' => 'rss'))));
            $this->sections[] = array('icon' => 'el-icon-website', 'title' => __('Theme Color Options', 'framework'), 'fields' => array(array('id' => 'theme_color_type', 'type' => 'button_set', 'compiler' => true, 'title' => __('Color Scheme', 'framework'), 'subtitle' => __('Select between premade schemes or custom color options', 'framework'), 'options' => array('0' => __('Pre-Defined Color Schemes', 'framework'), '1' => __('Custom Color', 'framework')), 'default' => '0'), array('id' => 'theme_color_scheme', 'type' => 'select', 'required' => array('theme_color_type', 'equals', '0'), 'title' => __('Theme Color Scheme', 'framework'), 'subtitle' => __('Select the prebuilt color scheme', 'framework'), 'options' => array('color1.css' => 'color1.css', 'color2.css' => 'color2.css', 'color3.css' => 'color3.css', 'color4.css' => 'color4.css', 'color5.css' => 'color5.css', 'color6.css' => 'color6.css', 'color7.css' => 'color7.css', 'color8.css' => 'color8.css', 'color9.css' => 'color9.css', 'color10.css' => 'color10.css'), 'default' => 'color1.css'), array('id' => 'custom_theme_color', 'type' => 'color', 'required' => array('theme_color_type', 'equals', '1'), 'title' => __('Custom Theme Color', 'framework'), 'subtitle' => __('Pick a color for the template.', 'framework'), 'validate' => 'color')));
            $this->sections[] = array('icon' => 'el-icon-text-height', 'title' => __('Font Options', 'imic-framework-admin'), 'fields' => array(array('id' => 'body_font_typo', 'type' => 'typography', 'title' => __('Body text default typography', 'imic-framework-demo'), 'subtitle' => __('<strong>Defaults:</strong><br>Font Family - Open Sans<br>Font weight - 400(normal)<br>Font Size - 13px<br>Line Height - 20px<br>Letter Spacing - 0px<br>Color - #666666<br>Text transform - none', 'imic-framework-demo'), 'google' => true, 'font-backup' => true, 'subsets' => true, 'color' => true, 'font-family' => true, 'font-style' => true, 'font-weight' => true, 'preview' => true, 'text-align' => false, 'font-size' => true, 'line-height' => true, 'letter-spacing' => true, 'text-transform' => true, 'output' => array('body'), 'units' => 'px', 'default' => array()), array('id' => 'body_h1_font_typo', 'type' => 'typography', 'title' => __('H1 heading typography', 'imic-framework-demo'), 'subtitle' => __('<strong>Defaults:</strong><br>Font Family - Montserrat<br>Font weight - Normal<br>Font Size - 36px<br>Line Height - 42px<br>Letter Spacing - 0px<br>Color - #333333<br>Text transform - none', 'imic-framework-demo'), 'google' => true, 'font-backup' => true, 'subsets' => true, 'color' => true, 'font-family' => true, 'font-style' => true, 'font-weight' => true, 'preview' => true, 'text-align' => false, 'font-size' => true, 'line-height' => true, 'text-transform' => true, 'letter-spacing' => true, 'output' => array('h1'), 'units' => 'px', 'default' => array()), array('id' => 'body_h2_font_typo', 'type' => 'typography', 'title' => __('H2 heading typography', 'imic-framework-demo'), 'subtitle' => __('<strong>Defaults:</strong><br>Font Family - Montserrat<br>Font weight - Normal<br>Font Size - 30px<br>Line Height - 36px<br>Letter Spacing - 0px<br>Color - #333333<br>Text transform - none', 'imic-framework-demo'), 'google' => true, 'font-backup' => true, 'subsets' => true, 'color' => true, 'font-family' => true, 'font-style' => true, 'font-weight' => true, 'preview' => true, 'text-align' => false, 'font-size' => true, 'line-height' => true, 'text-transform' => true, 'letter-spacing' => true, 'output' => array('h2'), 'units' => 'px', 'default' => array()), array('id' => 'body_h3_font_typo', 'type' => 'typography', 'title' => __('H3 heading typography', 'imic-framework-demo'), 'subtitle' => __('<strong>Defaults:</strong><br>Font Family - Montserrat<br>Font weight - Normal<br>Font Size - 24px<br>Line Height - 30px<br>Letter Spacing - 0px<br>Color - #333333<br>Text transform - none', 'imic-framework-demo'), 'google' => true, 'font-backup' => true, 'subsets' => true, 'color' => true, 'font-family' => true, 'font-style' => true, 'font-weight' => true, 'preview' => true, 'text-align' => false, 'font-size' => true, 'line-height' => true, 'text-transform' => true, 'letter-spacing' => true, 'output' => array('h3'), 'units' => 'px', 'default' => array()), array('id' => 'body_h4_font_typo', 'type' => 'typography', 'title' => __('H4 heading typography', 'imic-framework-demo'), 'subtitle' => __('<strong>Defaults:</strong><br>Font Family - Montserrat Condensed<br>Font weight - Bold<br>Font Size - 16px<br>Line Height - 22px<br>Letter Spacing - 2px<br>Color - #333333<br>Text transform - Uppercase', 'imic-framework-demo'), 'google' => true, 'font-backup' => true, 'subsets' => true, 'color' => true, 'font-family' => true, 'font-style' => true, 'font-weight' => true, 'preview' => true, 'text-align' => false, 'font-size' => true, 'line-height' => true, 'text-transform' => true, 'letter-spacing' => true, 'output' => array('h4'), 'units' => 'px', 'default' => array()), array('id' => 'body_h5_font_typo', 'type' => 'typography', 'title' => __('H5 heading typography', 'imic-framework-demo'), 'subtitle' => __('<strong>Defaults:</strong><br>Font Family - Montserrat<br>Font weight - Bold<br>Font Size - 14px<br>Line Height - 22px<br>Letter Spacing - 0px<br>Color - #333333<br>Text transform - none', 'imic-framework-demo'), 'google' => true, 'font-backup' => true, 'subsets' => true, 'color' => true, 'font-family' => true, 'font-style' => true, 'font-weight' => true, 'preview' => true, 'text-align' => false, 'font-size' => true, 'line-height' => true, 'text-transform' => true, 'letter-spacing' => true, 'output' => array('h5'), 'units' => 'px', 'default' => array()), array('id' => 'body_h6_font_typo', 'type' => 'typography', 'title' => __('H6 heading typography', 'imic-framework-demo'), 'subtitle' => __('<strong>Defaults:</strong><br>Font Family - Montserrat<br>Font weight - Normal<br>Font Size - 12px<br>Line Height - 18px<br>Letter Spacing - 0px<br>Color - #333333<br>Text transform - none', 'imic-framework-demo'), 'google' => true, 'font-backup' => true, 'subsets' => true, 'color' => true, 'font-family' => true, 'font-style' => true, 'font-weight' => true, 'preview' => true, 'text-align' => false, 'font-size' => true, 'line-height' => true, 'text-transform' => true, 'letter-spacing' => true, 'output' => array('h6'), 'units' => 'px', 'default' => array())));
            $this->sections[] = array('icon' => 'el-icon-share', 'title' => __('Share Options', 'imic-framework-admin'), 'fields' => array(array('id' => 'switch_sharing', 'type' => 'switch', 'title' => __('Social Sharing', 'imic-framework-admin'), 'subtitle' => __('Enable/Disable theme default social sharing buttons for posts/events/sermons/causes single pages', 'imic-framework-admin'), "default" => 1), array('id' => 'sharing_style', 'type' => 'button_set', 'compiler' => true, 'title' => __('Share Buttons Style', 'imic-framework-admin'), 'subtitle' => __('Choose the style of share button icons', 'imic-framework-admin'), 'options' => array('0' => __('Rounded', 'imic-framework-admin'), '1' => __('Squared', 'imic-framework-admin')), 'default' => '0'), array('id' => 'sharing_color', 'type' => 'button_set', 'compiler' => true, 'title' => __('Share Buttons Color', 'imic-framework-admin'), 'subtitle' => __('Choose the color scheme of the share button icons', 'imic-framework-admin'), 'options' => array('0' => __('Brand Colors', 'imic-framework-admin'), '1' => __('Theme Color', 'imic-framework-admin'), '2' => __('GrayScale', 'imic-framework-admin')), 'default' => '0'), array('id' => 'share_icon', 'type' => 'checkbox', 'required' => array('switch_sharing', 'equals', '1'), 'title' => __('Social share options', 'redux-framework-demo'), 'subtitle' => __('Click on the buttons to disable/enable share buttons', 'redux-framework-demo'), 'options' => array('1' => 'Facebook', '2' => 'Twitter', '3' => 'Google', '4' => 'Tumblr', '5' => 'Pinterest', '6' => 'Reddit', '7' => 'Linkedin', '8' => 'Email'), 'default' => array('1' => '1', '2' => '1', '3' => '1', '4' => '1', '5' => '1', '6' => '1', '7' => '1', '8' => '1')), array('id' => 'share_post_types', 'type' => 'checkbox', 'required' => array('switch_sharing', 'equals', '1'), 'title' => __('Select share buttons for post types', 'imic-framework-admin'), 'subtitle' => __('Uncheck to disable for any type', 'imic-framework-admin'), 'options' => array('1' => 'Posts', '2' => 'Pages', '3' => 'Properties'), 'default' => array('1' => '1', '2' => '1', '3' => '1'))));
            $this->sections[] = array('icon' => 'el-icon-check-empty', 'title' => __('Layout Options', 'imic-framework-admin'), 'fields' => array(array('id' => 'site_layout', 'type' => 'image_select', 'compiler' => true, 'title' => __('Page Layout', 'imic-framework-admin'), 'subtitle' => __('Select the page layout type', 'imic-framework-admin'), 'options' => array('wide' => array('alt' => 'Wide', 'img' => ReduxFramework::$_url . 'assets/img/wide.png'), 'boxed' => array('alt' => 'Boxed', 'img' => ReduxFramework::$_url . 'assets/img/boxed.png')), 'default' => 'wide'), array('id' => 'repeatable-bg-image', 'type' => 'image_select', 'required' => array('site_layout', 'equals', 'boxed'), 'title' => __('Repeatable Background Images', 'imic-framework-admin'), 'subtitle' => __('Select image to set in background.', 'imic-framework-admin'), 'options' => array('pt1.png' => array('alt' => 'pt1', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt1.png'), 'pt2.png' => array('alt' => 'pt2', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt2.png'), 'pt3.png' => array('alt' => 'pt3', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt3.png'), 'pt4.png' => array('alt' => 'pt4', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt4.png'), 'pt5.png' => array('alt' => 'pt5', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt5.png'), 'pt6.png' => array('alt' => 'pt6', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt6.png'), 'pt7.png' => array('alt' => 'pt7', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt7.png'), 'pt8.png' => array('alt' => 'pt8', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt8.png'), 'pt9.png' => array('alt' => 'pt9', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt9.png'), 'pt10.png' => array('alt' => 'pt10', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt10.png'), 'pt11.jpg' => array('alt' => 'pt11', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt11.png'), 'pt12.jpg' => array('alt' => 'pt12', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt12.png'), 'pt13.jpg' => array('alt' => 'pt13', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt13.png'), 'pt14.jpg' => array('alt' => 'pt14', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt14.png'), 'pt15.jpg' => array('alt' => 'pt15', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt15.png'), 'pt17.png' => array('alt' => 'pt17', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt17.png'), 'pt18.png' => array('alt' => 'pt18', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt18.png'), 'pt19.png' => array('alt' => 'pt19', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt19.png'), 'pt20.png' => array('alt' => 'pt20', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt20.png'), 'pt21.png' => array('alt' => 'pt21', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt21.png'), 'pt22.png' => array('alt' => 'pt22', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt22.png'), 'pt23.png' => array('alt' => 'pt23', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt23.png'), 'pt24.png' => array('alt' => 'pt24', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt24.png'), 'pt25.png' => array('alt' => 'pt25', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt25.png'), 'pt26.png' => array('alt' => 'pt26', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt26.png'), 'pt27.png' => array('alt' => 'pt27', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt27.png'), 'pt28.png' => array('alt' => 'pt28', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt28.png'), 'pt29.png' => array('alt' => 'pt29', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt29.png'), 'pt30.png' => array('alt' => 'pt30', 'img' => ReduxFramework::$_url . 'assets/img/patterns/pt30.png'))), array('id' => 'upload-repeatable-bg-image', 'compiler' => true, 'required' => array('site_layout', 'equals', 'boxed'), 'type' => 'media', 'url' => true, 'title' => __('Upload Repeatable Background Image', 'imic-framework-admin')), array('id' => 'full-screen-bg-image', 'compiler' => true, 'required' => array('site_layout', 'equals', 'boxed'), 'type' => 'media', 'url' => true, 'title' => __('Upload Full Screen Background Image', 'imic-framework-admin'))));
            $this->sections[] = array('icon' => 'el-icon-align-justify', 'title' => __('Custom Messages', 'framework'), 'desc' => __('<p class="description">Custom Messages of theme.</p>', 'framework'), 'fields' => array(array('id' => 'logged_out_msg', 'type' => 'textarea', 'title' => __('Logged out message', 'framework'), 'subtitle' => __('Enter message for logged out users', 'framework'), 'default' => __('<h2>You must have Agents rights to view this page.</h2>', 'famework')), array('id' => 'no_agents_msg', 'type' => 'textarea', 'title' => __('Agents Message', 'framework'), 'subtitle' => __('Enter message for agents page if not found agents.', 'framework'), 'default' => __('<h2>No Agents has been registered for this website.</h2>', 'famework')), array('id' => 'paypal_thanks', 'type' => 'textarea', 'title' => __('Paypal Thanks Message', 'framework'), 'subtitle' => __('Enter message for paypal redirection page.', 'framework'), 'default' => __('Your Payment has been made successfull, you can now start adding property.', 'famework')), array('id' => 'publish_property_email', 'type' => 'ace_editor', 'title' => __('On Publish Property Mail Content', 'framework'), 'subtitle' => __('Paste your HTML email code here.', 'framework'), 'mode' => 'html', 'theme' => 'chrome', 'desc' => __('Please use these default shortcodes for sending email dynamic on property publish with their details. <br />[title] = For property name in email.<br /> [url] = For property url in email.', 'framework'), 'default' => "Now property [title] goes live on website. Click here to see property detail [url]"), array('id' => 'favorite_property_email', 'type' => 'ace_editor', 'title' => __('Favorite Property Mail Content', 'framework'), 'subtitle' => __('Paste your HTML email code here.', 'framework'), 'mode' => 'html', 'theme' => 'chrome', 'desc' => __('Please use these default shortcodes for sending email dynamic on property adding to favorite. <br />[title] = For property name in email.<br /> [url] = For property url in email.', 'framework'), 'default' => "You added [title]  to your favorite.Click here to see property detail [url]")));
            $this->sections[] = array('icon' => 'el-icon-th', 'title' => __('Home Search Options', 'framework'), 'desc' => __('<p class="description">These are the options for Search on home.</p>', 'framework'), 'fields' => array(array('id' => 'search-home-blocks', 'type' => 'sorter', 'title' => 'Search Home Layout Manager', 'desc' => 'Organize how you want the layout to appear on the Home Search', 'options' => array('Enabled' => array('price' => 'Price', 'area' => 'Area', 'property_type' => 'Property Type', 'contract' => 'Contract', 'location' => 'Location', 'city' => 'City', 'beds' => 'Beds', 'baths' => 'Baths', 'search_by' => 'Search By'), 'Disabled' => array()))));
            $this->sections[] = array('icon' => 'el-icon-th', 'title' => __('Search Widget Options', 'framework'), 'desc' => __('<p class="description">These are the options for Search Widget.</p>', 'framework'), 'fields' => array(array('id' => 'search-widget-blocks', 'type' => 'sorter', 'title' => 'Search Widget Layout Manager', 'desc' => 'Organize how you want the layout to appear on the Search Widget', 'options' => array('Enabled' => array('property_type' => 'Property Type', 'contract' => 'Contract', 'location' => 'Location', 'city' => 'City', 'beds' => 'Beds', 'baths' => 'Baths', 'price' => 'Price', 'area' => 'Area', 'search_by' => 'Search By'), 'Disabled' => array()))));
            $this->sections[] = array('icon' => 'el-icon-home', 'title' => __('Property Options', 'framework'), 'desc' => __('<p class="description">These are the options for Property.</p>', 'framework'), 'fields' => array(array('id' => 'enable_agent_details', 'type' => 'switch', 'title' => __('Enable Agent details', 'framework'), 'subtitle' => __('Enable/Disable Agent details on single property page.', 'framework'), 'default' => 1, 'on' => __('Enabled', 'framework'), 'off' => __('Disabled', 'framework')), array('id' => 'submit_post_status', 'type' => 'select', 'title' => __('New Property Post Status', 'framework'), 'subtitle' => __('Choose Post Status for new property', 'framework'), 'options' => array('draft' => 'draft', 'publish' => 'publish'), 'default' => 'draft'), array('id' => 'buyer_rights', 'type' => 'select', 'title' => __('Buyer Properties submission', 'framework'), 'subtitle' => __('Choose property submission rights for buyer', 'framework'), 'options' => array('0' => 'Disable', '1' => 'Enable'), 'default' => '0'), array('id' => 'property_id_wording', 'type' => 'text', 'title' => __('Property Id Wording', 'framework'), 'subtitle' => __('Enter Property Id Wording', 'framework'), 'default' => __('rs-', 'famework')), array('id' => 'enable_property_id', 'type' => 'switch', 'title' => __('Show Property id', 'framework'), 'subtitle' => __('Show/Hide Property id in your site.', 'framework'), 'default' => 1, 'on' => __('Enabled', 'framework'), 'off' => __('Disabled', 'framework')), array('id' => 'property_details_option_enable', 'type' => 'checkbox', 'title' => __('Property Details Option Enable or Disable', 'redux-framework-demo'), 'subtitle' => __('Click on the buttons to enable or disable property details', 'redux-framework-demo'), 'options' => array('1' => 'Property name', '2' => 'Address', '3' => 'Area', '4' => 'Province', '5' => 'Property Pin Code', '6' => 'Propery Description'), 'default' => array('1' => '1', '2' => '1', '3' => '1', '4' => '1', '5' => '1', '6' => '1')), array('id' => 'property_details_option_required', 'type' => 'checkbox', 'title' => __('Property Details Option Required', 'redux-framework-demo'), 'subtitle' => __('Option to make fields required in property details', 'redux-framework-demo'), 'options' => array('1' => 'Property name', '2' => 'Address', '3' => 'Area', '4' => 'Province', '6' => 'Propery Description'), 'default' => array('1' => '1', '2' => '1', '3' => '1', '4' => '1', '6' => '1')), array('id' => 'additional_info_option_enable', 'type' => 'checkbox', 'title' => __('Additional Info Option Enable or Disable', 'redux-framework-demo'), 'subtitle' => __('Click on the buttons to enable or disable additional info', 'redux-framework-demo'), 'options' => array('1' => 'Price', '2' => 'Property Type', '3' => 'Contract Type', '4' => 'Beds', '5' => 'Baths', '6' => 'Parking'), 'default' => array('1' => '1', '2' => '1', '3' => '1', '4' => '1', '5' => '1', '6' => '1')), array('id' => 'additional_info_option_required', 'type' => 'checkbox', 'title' => __('Additional Info Option Required', 'redux-framework-demo'), 'subtitle' => __('Option to make fields required in additional info', 'redux-framework-demo'), 'options' => array('1' => 'Price', '2' => 'Property Type', '3' => 'Contract Type', '4' => 'Beds', '5' => 'Baths', '6' => 'Parking'), 'default' => array('1' => '1', '2' => '1', '3' => '1', '4' => '1', '5' => '1', '6' => '1'))));
            $this->sections[] = array('icon' => 'el-icon-star', 'title' => __('Property Amenities Options', 'framework'), 'desc' => __('<p class="description">These are the options for Property Amenities.</p>', 'framework'), 'fields' => array(array('id' => 'properties_amenities', 'type' => 'multi_text', 'title' => __("Enter Property's amenity", "framework"), 'subtitle' => __("Enter Property's amenity", "framework"), 'default' => array(__('Air Conditioning', 'framework'), __('Heating', 'framework'), __('Balcony', 'framework'), __('Dishwasher', 'framework'), __('Pool', 'framework'), __('Internet', 'framework'), __('Terrace', 'framework'), __('Microwave', 'framework'), __('Fridge', 'framework'), __('Cable TV', 'framework'), __('Security Camera', 'framework'), __('Toaster', 'framework'), __('Grill', 'framework'), __('Oven', 'framework'), __('Fans', 'framework'), __('Servants', 'framework'), __('Furnished', 'framework'), __('Cupboards', 'framework'))), array('id' => 'properties_beds', 'type' => 'multi_text', 'title' => __("Property Beds values", "framework"), 'subtitle' => __("Enter Property's beds", "framework"), 'default' => array(__('1', 'framework'), __('2', 'framework'), __('3', 'framework'), __('4', 'framework'), __('5', 'framework'), __('6', 'framework'), __('7', 'framework'), __('8', 'framework'), __('9', 'framework'), __('10', 'framework'))), array('id' => 'properties_baths', 'type' => 'multi_text', 'title' => __("Property Baths values", "framework"), 'subtitle' => __("Enter Property's baths", "framework"), 'default' => array(__('1', 'framework'), __('2', 'framework'), __('3', 'framework'), __('4', 'framework'), __('5', 'framework'), __('6', 'framework'), __('7', 'framework'), __('8', 'framework'), __('9', 'framework'), __('10', 'framework'))), array('id' => 'properties_parking', 'type' => 'multi_text', 'title' => __("Property Parking values", "framework"), 'subtitle' => __("Enter Property's parking", "framework"), 'default' => array(__('1', 'framework'), __('2', 'framework'), __('3', 'framework'), __('4', 'framework'), __('5', 'framework'))), array('id' => 'properties_price_range', 'type' => 'multi_text', 'title' => __("Property Price range", "framework"), 'subtitle' => __("Enter Property's price range for search", "framework"), 'default' => array(__(1000, 'framework'), __(5000, 'framework'), __(10000, 'framework'), __(50000, 'framework'), __(100000, 'framework'), __(3000000, 'framework'), __(5000000, 'framework'), __(10000000, 'framework')))));
            $this->sections[] = array('icon' => 'el-icon-credit-card', 'title' => __('Property Payment Plans', 'framework'), 'desc' => __('<p class="description">These are the options for Property Payment Plans.</p>', 'framework'), 'fields' => array(array('id' => 'plan_show_option', 'type' => 'switch', 'compiler' => true, 'title' => __('Paid Properties', 'imic-framework-admin'), 'subtitle' => __('Enable or disable paid property listing option', 'imic-framework-admin'), 'desc' => __('Make sure you have "Paid Property imithemes" plugin activated before you enable this option.', 'framework'), 'default' => false, 'on' => __('Enabled', 'framework'), 'off' => __('Disabled', 'framework')), array('id' => 'plan_group', 'type' => 'text_group', 'required' => array('plan_show_option', 'equals', '1'), 'title' => __('Payment Plans', 'framework'), 'subtitle' => __('Add Plans for paid property listing.', 'framework'), 'placeholder' => array('title' => __('Enter Plan Name', 'framework'), 'description' => __('Enter number of properties available to list with this plan', 'framework'), 'url' => __("Enter plan price", 'framework'))), array('id' => 'free_plan_scheme', 'type' => 'text', 'required' => array('plan_show_option', 'equals', '1'), 'title' => __('Free Plan Scheme', 'framework'), 'subtitle' => __('Enter the number of times a user can register for free plan(if have any). Enter 0 for none', 'framework'), 'default' => 1)));
            $this->sections[] = array('icon' => 'el-icon-edit', 'title' => __('Custom CSS/JS', 'imic-framework-admin'), 'fields' => array(array('id' => 'custom_css', 'type' => 'ace_editor', 'title' => __('CSS Code', 'imic-framework-admin'), 'subtitle' => __('Paste your CSS code here.', 'imic-framework-admin'), 'mode' => 'css', 'theme' => 'monokai', 'desc' => '', 'default' => "#header{\nmargin: 0 auto;\n}"), array('id' => 'custom_js', 'type' => 'ace_editor', 'title' => __('JS Code', 'imic-framework-admin'), 'subtitle' => __('Paste your JS code here.', 'imic-framework-admin'), 'mode' => 'javascript', 'theme' => 'chrome', 'desc' => '', 'default' => "jQuery(document).ready(function(){\n\n});")));
            $theme_info = '<div class="redux-framework-section-desc">';
            $theme_info .= '<p class="redux-framework-theme-data description theme-uri">' . __('<strong>Theme URL:</strong> ', 'framework') . '<a href="' . $this->theme->get('ThemeURI') . '" target="_blank">' . $this->theme->get('ThemeURI') . '</a></p>';
            $theme_info .= '<p class="redux-framework-theme-data description theme-author">' . __('<strong>Author:</strong> ', 'framework') . $this->theme->get('Author') . '</p>';
            $theme_info .= '<p class="redux-framework-theme-data description theme-version">' . __('<strong>Version:</strong> ', 'framework') . $this->theme->get('Version') . '</p>';
            $theme_info .= '<p class="redux-framework-theme-data description theme-description">' . $this->theme->get('Description') . '</p>';
            $tabs = $this->theme->get('Tags');
            if (!empty($tabs)) {
                $theme_info .= '<p class="redux-framework-theme-data description theme-tags">' . __('<strong>Tags:</strong> ', 'framework') . implode(', ', $tabs) . '</p>';
            }
            $theme_info .= '</div>';
            $this->sections[] = array('title' => __('Import / Export', 'framework'), 'desc' => __('Import and Export your Theme Framework settings from file, text or URL.', 'framework'), 'icon' => 'el-icon-refresh', 'fields' => array(array('id' => 'opt-import-export', 'type' => 'import_export', 'title' => __('Import Export', 'framework'), 'subtitle' => __('Save and restore your Theme options', 'framework'), 'full_width' => false)));
            $this->sections[] = array('type' => 'divide');
            $this->sections[] = array('icon' => 'el-icon-info-sign', 'title' => __('Theme Information', 'framework'), 'desc' => __('<p class="description">Real Spaces</p>', 'framework'), 'fields' => array(array('id' => 'opt-raw-info', 'type' => 'raw', 'content' => $item_info)));
            if (file_exists(trailingslashit(dirname(__FILE__)) . 'README.html')) {
                $tabs['docs'] = array('icon' => 'el-icon-book', 'title' => __('Documentation', 'framework'), 'content' => nl2br(file_get_contents(trailingslashit(dirname(__FILE__)) . 'README.html')));
            }
        }
Exemplo n.º 21
0
/**
 * Add appearance submenu items to the "Site Name" menu.
 *
 * @since 3.1.0
 *
 * @param WP_Admin_Bar $wp_admin_bar
 */
function wp_admin_bar_appearance_menu($wp_admin_bar)
{
    $wp_admin_bar->add_group(array('parent' => 'site-name', 'id' => 'appearance'));
    $current_url = (is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    $customize_url = add_query_arg('url', urlencode($current_url), wp_customize_url());
    if (current_user_can('switch_themes')) {
        $wp_admin_bar->add_menu(array('parent' => 'appearance', 'id' => 'themes', 'title' => __('Themes'), 'href' => admin_url('themes.php'), 'meta' => array('class' => 'hide-if-customize')));
        if (current_user_can('customize')) {
            $wp_admin_bar->add_menu(array('parent' => 'appearance', 'id' => 'customize-themes', 'title' => __('Themes'), 'href' => add_query_arg(urlencode('autofocus[section]'), 'themes', $customize_url), 'meta' => array('class' => 'hide-if-no-customize')));
        }
    }
    if (current_user_can('customize')) {
        $wp_admin_bar->add_menu(array('parent' => 'appearance', 'id' => 'customize', 'title' => __('Customize'), 'href' => $customize_url, 'meta' => array('class' => 'hide-if-no-customize')));
        add_action('wp_before_admin_bar_render', 'wp_customize_support_script');
    }
    if (!current_user_can('edit_theme_options')) {
        return;
    }
    if (current_theme_supports('widgets')) {
        $wp_admin_bar->add_menu(array('parent' => 'appearance', 'id' => 'widgets', 'title' => __('Widgets'), 'href' => admin_url('widgets.php'), 'meta' => array('class' => 'hide-if-customize')));
        if (current_user_can('customize')) {
            $wp_admin_bar->add_menu(array('parent' => 'appearance', 'id' => 'customize-widgets', 'title' => __('Widgets'), 'href' => add_query_arg(urlencode('autofocus[panel]'), 'widgets', $customize_url), 'meta' => array('class' => 'hide-if-no-customize')));
        }
    }
    if (current_theme_supports('menus') || current_theme_supports('widgets')) {
        $wp_admin_bar->add_menu(array('parent' => 'appearance', 'id' => 'menus', 'title' => __('Menus'), 'href' => admin_url('nav-menus.php')));
    }
    if (current_theme_supports('custom-background')) {
        $wp_admin_bar->add_menu(array('parent' => 'appearance', 'id' => 'background', 'title' => __('Background'), 'href' => admin_url('themes.php?page=custom-background'), 'meta' => array('class' => 'hide-if-customize')));
        if (current_user_can('customize')) {
            $wp_admin_bar->add_menu(array('parent' => 'appearance', 'id' => 'customize-background', 'title' => __('Background'), 'href' => add_query_arg(urlencode('autofocus[control]'), 'background_image', $customize_url), 'meta' => array('class' => 'hide-if-no-customize')));
        }
    }
    if (current_theme_supports('custom-header')) {
        $wp_admin_bar->add_menu(array('parent' => 'appearance', 'id' => 'header', 'title' => __('Header'), 'href' => admin_url('themes.php?page=custom-header'), 'meta' => array('class' => 'hide-if-customize')));
        if (current_user_can('customize')) {
            $wp_admin_bar->add_menu(array('parent' => 'appearance', 'id' => 'customize-header', 'title' => __('Header'), 'href' => add_query_arg(urlencode('autofocus[control]'), 'header_image', $customize_url), 'meta' => array('class' => 'hide-if-no-customize')));
        }
    }
}
Exemplo n.º 22
0
        public function setSections()
        {
            ob_start();
            $ct = wp_get_theme();
            $this->theme = $ct;
            $item_name = $this->theme->get('Name');
            $tags = $this->theme->Tags;
            $screenshot = $this->theme->get_screenshot();
            $class = $screenshot ? 'has-screenshot' : '';
            $customize_title = sprintf(__('Customize &#8220;%s&#8221;', 'redux-framework-demo'), $this->theme->display('Name'));
            ?>
                <div id="current-theme" class="<?php 
            echo esc_attr($class);
            ?>
">
                    <?php 
            if ($screenshot) {
                ?>
                        <?php 
                if (current_user_can('edit_theme_options')) {
                    ?>
                            <a href="<?php 
                    echo wp_customize_url();
                    ?>
" class="load-customize hide-if-no-customize"
                               title="<?php 
                    echo esc_attr($customize_title);
                    ?>
">
                                <img src="<?php 
                    echo esc_url($screenshot);
                    ?>
"
                                     alt="<?php 
                    esc_attr_e('Current theme preview', 'redux-framework-demo');
                    ?>
"/>
                            </a>
                        <?php 
                }
                ?>
                        <img class="hide-if-customize" src="<?php 
                echo esc_url($screenshot);
                ?>
"
                             alt="<?php 
                esc_attr_e('Current theme preview', 'redux-framework-demo');
                ?>
"/>
                    <?php 
            }
            ?>

                    <h4><?php 
            echo $this->theme->display('Name');
            ?>
</h4>

                    <div>
                        <ul class="theme-info">
                            <li><?php 
            printf(__('By %s', 'redux-framework-demo'), $this->theme->display('Author'));
            ?>
</li>
                            <li><?php 
            printf(__('Version %s', 'redux-framework-demo'), $this->theme->display('Version'));
            ?>
</li>
                            <li><?php 
            echo '<strong>' . __('Tags', 'redux-framework-demo') . ':</strong> ';
            printf($this->theme->display('Tags'));
            ?>
</li>
                        </ul>
                        <p class="theme-description"><?php 
            echo $this->theme->display('Description');
            ?>
</p>
                        <?php 
            if ($this->theme->parent()) {
                printf(' <p class="howto">' . __('This <a href="%1$s">child theme</a> requires its parent theme, %2$s.', 'redux-framework-demo') . '</p>', __('http://codex.wordpress.org/Child_Themes', 'redux-framework-demo'), $this->theme->parent()->display('Name'));
            }
            ?>

                    </div>
                </div>

                <?php 
            $item_info = ob_get_contents();
            ob_end_clean();
            // ACTUAL DECLARATION OF SECTIONS
            // General CF7 Styles
            $this->sections[] = array('title' => __('General Styles', 'redux-framework-demo'), 'desc' => __('Also known as the traditional input field, this section allows for the quick styling of text fields for Contact Form 7', 'redux-framework-demo'), 'icon' => 'el-icon-wrench', 'fields' => array(array('id' => 'cf7_general_backgrounds', 'type' => 'section', 'title' => __('General Backgrounds', 'redux-framework-demo'), 'subtitle' => __('This section adds general background options for Contact Form 7.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_general_form_background', 'type' => 'background', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form', '.wpcf7 .wpcf7-form'), 'title' => __('Form Background', 'redux-framework-demo'), 'subtitle' => __('Set the background of the entire form area.', 'redux-framework-demo'), 'preview' => false), array('id' => 'cf7_general_section_background', 'type' => 'background', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form p', '.wpcf7 .wpcf7-form p'), 'title' => __('Section Background', 'redux-framework-demo'), 'subtitle' => __('Set the background for all the different field section. Please make sure all sections are wrapped with the paragraph tag as in the demo form that comes with Contact Form 7.', 'redux-framework-demo'), 'preview' => false), array('id' => 'cf7_general_section_hover_background', 'type' => 'background', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form p:hover', '.wpcf7 .wpcf7-form p:hover'), 'title' => __('Section Background: Hover', 'redux-framework-demo'), 'subtitle' => __('Set the background for all the different field section when hovering over them. Please make sure all sections are wrapped with the paragraph tag as in the demo form that comes with Contact Form 7.', 'redux-framework-demo'), 'preview' => false), array('id' => 'cf7_general_button_background', 'type' => 'background', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form .wpcf7-submit', '.wpcf7 .wpcf7-form .wpcf7-submit'), 'title' => __('Submit Button Background', 'redux-framework-demo'), 'subtitle' => __('Set the background for the form submit button.', 'redux-framework-demo'), 'preview' => false), array('id' => 'cf7_general_buttonhover_background', 'type' => 'background', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form .wpcf7-submit:hover', '.wpcf7 .wpcf7-form .wpcf7-submit:hover'), 'title' => __('Submit Button Background Hover', 'redux-framework-demo'), 'subtitle' => __('Set the background for the form submit button on hover.', 'redux-framework-demo'), 'preview' => false), array('id' => 'cf7_general_borders', 'type' => 'section', 'title' => __('Borders', 'redux-framework-demo'), 'subtitle' => __('This section adds border styles for the input field section.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_general_form_border', 'type' => 'border', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form', '.wpcf7 .wpcf7-form'), 'title' => __('Form Border', 'redux-framework-demo'), 'subtitle' => __('Set the border of the entire form.', 'redux-framework-demo'), 'all' => false, 'top' => true, 'right' => true, 'left' => true, 'bottom' => true), array('id' => 'cf7_general_section_border', 'type' => 'border', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form p', '.wpcf7 .wpcf7-form p'), 'title' => __('Field Section Border', 'redux-framework-demo'), 'subtitle' => __('Set the border around each field section. Please make sure all sections are wrapped with the paragraph tag as in the demo form that comes with Contact Form 7.', 'redux-framework-demo'), 'all' => false, 'top' => true, 'right' => true, 'left' => true, 'bottom' => true), array('id' => 'cf7_general_button_border', 'type' => 'border', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form .wpcf7-submit', '.wpcf7 .wpcf7-form .wpcf7-submit'), 'title' => __('Submit Button Border', 'redux-framework-demo'), 'subtitle' => __('Set the border for the form submit button.', 'redux-framework-demo'), 'all' => false, 'top' => true, 'right' => true, 'left' => true, 'bottom' => true), array('id' => 'cf7__general_spacing', 'type' => 'section', 'title' => __('Padding / Margin', 'redux-framework-demo'), 'subtitle' => __('This section adds padding / margin options for the entire form.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_general_form_padding', 'type' => 'spacing', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form', '.wpcf7 .wpcf7-form'), 'mode' => 'padding', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Form Padding', 'redux-framework-demo'), 'subtitle' => __('Specifies the padding used for the entire form.', 'redux-framework-demo')), array('id' => 'cf7_general_form_margin', 'type' => 'spacing', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form', '.wpcf7 .wpcf7-form'), 'mode' => 'margin', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Form Margin', 'redux-framework-demo'), 'subtitle' => __('Specifies the margin used for the entire form.', 'redux-framework-demo')), array('id' => 'cf7_general_section_padding', 'type' => 'spacing', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form p', '.wpcf7 .wpcf7-form p'), 'mode' => 'padding', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Section Padding', 'redux-framework-demo'), 'subtitle' => __('Specifies the padding used for each form field section. Please make sure all sections are wrapped with the paragraph tag as in the demo form that comes with Contact Form 7.', 'redux-framework-demo')), array('id' => 'cf7_general_section_margin', 'type' => 'spacing', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form p', '.wpcf7 .wpcf7-form p'), 'mode' => 'margin', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Section Margin', 'redux-framework-demo'), 'subtitle' => __('Specifies the margin used for each form field section. Please make sure all sections are wrapped with the paragraph tag as in the demo form that comes with Contact Form 7.', 'redux-framework-demo')), array('id' => 'cf7_general_button_padding', 'type' => 'spacing', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form .wpcf7-submit', '.wpcf7 .wpcf7-form .wpcf7-submit'), 'mode' => 'padding', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Submit Button Padding', 'redux-framework-demo'), 'subtitle' => __('Specifies the padding used for the form submit button.', 'redux-framework-demo')), array('id' => 'cf7_general_button_margin', 'type' => 'spacing', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form .wpcf7-submit', '.wpcf7 .wpcf7-form .wpcf7-submit'), 'mode' => 'margin', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Submit Button Margin', 'redux-framework-demo'), 'subtitle' => __('Specifies the margin used for the form submit button.', 'redux-framework-demo')), array('id' => 'cf7_general_fonts', 'type' => 'section', 'title' => __('Fonts', 'redux-framework-demo'), 'subtitle' => __('This section sets font rules for the entire form.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_general_form_font', 'type' => 'typography', 'title' => __('Form Fonts', 'redux-framework-demo'), 'google' => true, 'font-backup' => true, 'font-style' => true, 'subsets' => true, 'font-size' => true, 'line-height' => true, 'color' => true, 'preview' => true, 'all_styles' => true, 'text-transform' => true, 'output' => array('#cf7-styles .wpcf7 .wpcf7-form', '#cf7-styles .wpcf7 .wpcf7-form p', '.wpcf7 .wpcf7-form', '.wpcf7 .wpcf7-form p'), 'units' => 'px', 'subtitle' => __('Set the fonts for the entire form.', 'redux-framework-demo')), array('id' => 'cf7_general_button_font', 'type' => 'typography', 'title' => __('Submit Button Font', 'redux-framework-demo'), 'google' => true, 'font-backup' => true, 'font-style' => true, 'subsets' => true, 'font-size' => true, 'line-height' => true, 'color' => true, 'preview' => true, 'all_styles' => true, 'text-transform' => true, 'output' => array('#cf7-styles .wpcf7-submit', '.wpcf7 .wpcf7-form .wpcf7-submit'), 'units' => 'px', 'subtitle' => __('Set the font to be used for the form submit button.', 'redux-framework-demo')), array('id' => 'cf7_general_dimensions', 'type' => 'section', 'title' => __('Dimensions', 'redux-framework-demo'), 'subtitle' => __('This section sets dimension rules for the entire form.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_general_form_dimension', 'type' => 'dimensions', 'units' => array('em', 'px', '%'), 'units_extended' => 'true', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form', '.wpcf7 .wpcf7-form'), 'title' => __('Form Width', 'redux-framework-demo'), 'subtitle' => __('Allow your users to set the overall width of the form', 'redux-framework-demo'), 'width' => true, 'height' => false), array('id' => 'cf7_general_button_dimension', 'type' => 'dimensions', 'units' => array('em', 'px', '%'), 'units_extended' => 'true', 'output' => array('#cf7-styles .wpcf7-submit', '.wpcf7 .wpcf7-form .wpcf7-submit'), 'title' => __('Submit Button Width', 'redux-framework-demo'), 'subtitle' => __('Allow your users to set the width / height of the form submit button', 'redux-framework-demo'), 'width' => true, 'height' => true)));
            // Input Field Styles
            $this->sections[] = array('title' => __('Text Field', 'redux-framework-demo'), 'desc' => __('Also known as the traditional input fields, this section allows for the quick styling of text, email, URL and contact numbers fields for Contact Form 7.', 'redux-framework-demo'), 'icon' => 'el-icon-minus', 'fields' => array(array('id' => 'cf7_input_section_backgrounds', 'type' => 'section', 'title' => __('Backgrounds', 'redux-framework-demo'), 'subtitle' => __('This section adds background styles for the input field section.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_input_field_background', 'type' => 'background', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form input.wpcf7-text', '.wpcf7 .wpcf7-form input.wpcf7-text'), 'title' => __('Input Field Background', 'redux-framework-demo'), 'subtitle' => __('Set the background of the text text element (input field)', 'redux-framework-demo'), 'preview' => false), array('id' => 'cf7_input_section_borders', 'type' => 'section', 'title' => __('Borders', 'redux-framework-demo'), 'subtitle' => __('This section adds border styles for the input field section.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_input_field_border', 'type' => 'border', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form input.wpcf7-text', '.wpcf7 .wpcf7-form input.wpcf7-text'), 'title' => __('Input Field Border', 'redux-framework-demo'), 'subtitle' => __('Set the border of each text text element (input field)', 'redux-framework-demo'), 'all' => false, 'top' => true, 'right' => true, 'left' => true, 'bottom' => true), array('id' => 'cf7_input_section_spacing', 'type' => 'section', 'title' => __('Padding / Margin', 'redux-framework-demo'), 'subtitle' => __('This section adds padding and margin for the input field section.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_input_field_padding', 'type' => 'spacing', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form input.wpcf7-text', '.wpcf7 .wpcf7-form input.wpcf7-text'), 'mode' => 'padding', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Input Field Padding', 'redux-framework-demo'), 'subtitle' => __('Specifies the padding used for the text text (input) field.', 'redux-framework-demo')), array('id' => 'cf7_input_field_margin', 'type' => 'spacing', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form input.wpcf7-text', '.wpcf7 .wpcf7-form input.wpcf7-text'), 'mode' => 'margin', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Input Field Margin', 'redux-framework-demo'), 'subtitle' => __('Specifies the margin used for the text text (input) field.', 'redux-framework-demo')), array('id' => 'cf7_input_section_fonts', 'type' => 'section', 'title' => __('Fonts', 'redux-framework-demo'), 'subtitle' => __('This section sets font rules for the text text (input) field.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_input_field_font', 'type' => 'typography', 'title' => __('Input Field', 'redux-framework-demo'), 'google' => true, 'font-backup' => true, 'font-style' => true, 'subsets' => true, 'font-size' => true, 'line-height' => true, 'color' => true, 'preview' => true, 'all_styles' => true, 'text-transform' => true, 'output' => array('#cf7-styles .wpcf7 .wpcf7-form input.wpcf7-text', '.wpcf7 .wpcf7-form input.wpcf7-text'), 'units' => 'px', 'subtitle' => __('Applies to all input fields generated by Contact Form 7.', 'redux-framework-demo')), array('id' => 'cf7_input_section_dimensions', 'type' => 'section', 'title' => __('Dimensions', 'redux-framework-demo'), 'subtitle' => __('This section adds dimension options for the text text (input) field.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_input_field_dimension', 'type' => 'dimensions', 'units' => array('em', 'px', '%'), 'units_extended' => 'true', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form input.wpcf7-text', '.wpcf7 .wpcf7-form input.wpcf7-text'), 'title' => __('Width / Height', 'redux-framework-demo'), 'subtitle' => __('Allow your users to set the width / height of Contact Form 7 input fields.', 'redux-framework-demo'))));
            // Textarea Field Styles
            $this->sections[] = array('title' => __('Textarea', 'redux-framework-demo'), 'desc' => __('This section allows for the quick styling of textarea fields for Contact Form 7', 'redux-framework-demo'), 'icon' => 'el-icon-stop', 'fields' => array(array('id' => 'cf7_textarea_section_backgrounds', 'type' => 'section', 'title' => __('Backgrounds', 'redux-framework-demo'), 'subtitle' => __('This section adds background styles for the textarea field section.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_textarea_field_background', 'type' => 'background', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form textarea.wpcf7-textarea', '.wpcf7 .wpcf7-form textarea.wpcf7-textarea'), 'title' => __('Textarea Field Background', 'redux-framework-demo'), 'subtitle' => __('Set the background of the textarea field.', 'redux-framework-demo'), 'preview' => false), array('id' => 'cf7_textarea_section_borders', 'type' => 'section', 'title' => __('Borders', 'redux-framework-demo'), 'subtitle' => __('This section adds border styles for the textarea section.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_textarea_field_border', 'type' => 'border', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form textarea.wpcf7-textarea', '.wpcf7 .wpcf7-form textarea.wpcf7-textarea'), 'title' => __('Textarea Field Border', 'redux-framework-demo'), 'subtitle' => __('Set the border of each textarea field.', 'redux-framework-demo'), 'all' => false, 'top' => true, 'right' => true, 'left' => true, 'bottom' => true), array('id' => 'cf7_textarea_section_spacing', 'type' => 'section', 'title' => __('Padding / Margin', 'redux-framework-demo'), 'subtitle' => __('This section adds padding and margin for the textarea section.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_textarea_field_padding', 'type' => 'spacing', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form textarea.wpcf7-textarea', '.wpcf7 .wpcf7-form textarea.wpcf7-textarea'), 'mode' => 'padding', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Textarea Field Padding', 'redux-framework-demo'), 'subtitle' => __('Specifies the padding used for the textarea field.', 'redux-framework-demo')), array('id' => 'cf7_textarea_field_margin', 'type' => 'spacing', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form textarea.wpcf7-textarea', '.wpcf7 .wpcf7-form textarea.wpcf7-textarea'), 'mode' => 'margin', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Textarea Field Margin', 'redux-framework-demo'), 'subtitle' => __('Specifies the margin used for the textarea field.', 'redux-framework-demo')), array('id' => 'cf7_textarea_section_fonts', 'type' => 'section', 'title' => __('Fonts', 'redux-framework-demo'), 'subtitle' => __('This section sets font rules for the textarea field.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_textarea_field_font', 'type' => 'typography', 'title' => __('Textarea Field', 'redux-framework-demo'), 'google' => true, 'font-backup' => true, 'font-style' => true, 'subsets' => true, 'font-size' => true, 'line-height' => true, 'color' => true, 'preview' => true, 'all_styles' => true, 'text-transform' => true, 'output' => array('#cf7-styles .wpcf7 .wpcf7-form textarea.wpcf7-textarea', '.wpcf7 .wpcf7-form textarea.wpcf7-textarea'), 'units' => 'px', 'subtitle' => __('Applies to all textarea generated by Contact Form 7.', 'redux-framework-demo')), array('id' => 'cf7_textarea_section_dimensions', 'type' => 'section', 'title' => __('Dimensions', 'redux-framework-demo'), 'subtitle' => __('This section adds dimension options for the textarea field.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_textarea_field_dimension', 'type' => 'dimensions', 'units' => array('em', 'px', '%'), 'units_extended' => 'true', 'output' => array('#cf7-styles .wpcf7 .wpcf7-form textarea.wpcf7-textarea', '.wpcf7 .wpcf7-form textarea.wpcf7-textarea'), 'title' => __('Width / Height', 'redux-framework-demo'), 'subtitle' => __('Allow your users to set the width / height of Contact Form 7 textarea fields.', 'redux-framework-demo'))));
            // Spinbox Number Field Styles
            $this->sections[] = array('title' => __('Numbers - Spinbox', 'redux-framework-demo'), 'icon' => 'el-icon-braille', 'fields' => array(array('id' => 'opt-notice-critical', 'type' => 'info', 'notice' => true, 'style' => 'critical', 'title' => __('Pro Feature', 'redux-framework-demo'), 'desc' => __('This feature is reserved for the Pro version of Contact Form 7 Designer. Values saved here will not take effect on the front end. <br />Please visit <a href="http://tinygiantstudios.co.uk/product/contact-form-7-designer-pro/" target="_blank">Tiny Giant Studios</a> for more information.', 'redux-framework-demo')), array('id' => 'cf7_spinbox_section_backgrounds', 'type' => 'section', 'title' => __('Backgrounds', 'redux-framework-demo'), 'subtitle' => __('This section adds background styles for the spinbox number field sections.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_spinbox_field_background', 'type' => 'background', 'title' => __('Spinbox Number Field Background', 'redux-framework-demo'), 'subtitle' => __('Set the background of the spinbox number element.', 'redux-framework-demo'), 'preview' => false), array('id' => 'cf7_spinbox_section_borders', 'type' => 'section', 'title' => __('Borders', 'redux-framework-demo'), 'subtitle' => __('This section adds border styles for the spinbox number section.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_spinbox_field_border', 'type' => 'border', 'title' => __('Spinbox Number Field Border', 'redux-framework-demo'), 'subtitle' => __('Set the border of each spinbox number element.', 'redux-framework-demo'), 'all' => false, 'top' => true, 'right' => true, 'left' => true, 'bottom' => true), array('id' => 'cf7_spinbox_section_spacing', 'type' => 'section', 'title' => __('Padding / Margin', 'redux-framework-demo'), 'subtitle' => __('This section adds padding and margin for the spinbox number element.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_spinbox_field_padding', 'type' => 'spacing', 'mode' => 'padding', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Spinbox Number Field Padding', 'redux-framework-demo'), 'subtitle' => __('Specifies the padding used for the spinbox number element.', 'redux-framework-demo')), array('id' => 'cf7_spinbox_field_margin', 'type' => 'spacing', 'mode' => 'margin', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Spinbox Number Field Margin', 'redux-framework-demo'), 'subtitle' => __('Specifies the margin used for the spinbox number element.', 'redux-framework-demo')), array('id' => 'cf7_spinbox_section_fonts', 'type' => 'section', 'title' => __('Fonts', 'redux-framework-demo'), 'subtitle' => __('This section sets font rules for the spinbox number element.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_spinbox_field_font', 'type' => 'typography', 'title' => __('Spinbox Input Field', 'redux-framework-demo'), 'google' => true, 'font-backup' => true, 'font-style' => true, 'subsets' => true, 'font-size' => true, 'line-height' => true, 'color' => true, 'preview' => true, 'all_styles' => true, 'text-transform' => true, 'units' => 'px', 'subtitle' => __('Applies to all spinbox number elements generated by Contact Form 7.', 'redux-framework-demo')), array('id' => 'cf7_spinbox_section_dimensions', 'type' => 'section', 'title' => __('Dimensions', 'redux-framework-demo'), 'subtitle' => __('This section adds dimension options for thespinbox number element.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_spinbox_field_dimension', 'type' => 'dimensions', 'units' => array('em', 'px', '%'), 'units_extended' => 'true', 'title' => __('Width / Height', 'redux-framework-demo'), 'subtitle' => __('Allow your users to set the width / height of Contact Form 7 spinbox number element.', 'redux-framework-demo'))));
            // Slider Number Field Styles - Currently canned while we wait for CSS specs to catch up
            /*
            $this->sections[] = array( 
                'title'  => __( 'Numbers: Slider', 'redux-framework-demo' ),
                'icon'   => 'el-icon-minus',
                'fields' => array(
            
                    // Pro Warning
                    array(
                        'id'     => 'opt-notice-critical',
                        'type'   => 'info',
                        'notice' => true,
                        'style'  => 'critical',
                        'title'  => __( 'Pro Feature', 'redux-framework-demo' ),
                        'desc'   => __( 'This feature is reserved for the Pro version of Contact Form 7 Designer. Values saved here will not take effect on the front end. <br />Please visit <a href="http://tinygiantstudios.co.uk/product/contact-form-7-designer-pro/" target="_blank">Tiny Giant Studios</a> for more information.', 'redux-framework-demo' )
                    ),
            
                    // Background Section
                    array(
                        'id' => 'cf7_slider_section_backgrounds',
                        'type' => 'section',
                        'title' => __('Backgrounds', 'redux-framework-demo'),
                        'subtitle' => __('This section adds background styles for the slider number field sections.', 'redux-framework-demo'),
                        'indent' => true 
                    ),
            
                        array(
                            'id'       => 'cf7_slider_track_background',
                            'type'     => 'background',
                            'title'    => __( 'Slider Track Background', 'redux-framework-demo' ),
                            'subtitle' => __( 'Set the background of the slider number track.', 'redux-framework-demo' ),
                            'preview'  => false,
                        ),
            
                        array(
                            'id'       => 'cf7_slider_thumb_background',
                            'type'     => 'background',
                            'title'    => __( 'Slider Thumb Background', 'redux-framework-demo' ),
                            'subtitle' => __( 'Set the background of the slider number thumb.', 'redux-framework-demo' ),
                            'preview'  => false,
                        ),
            
                    // Borders Section
                    array(
                        'id'        => 'cf7_slider_section_borders',
                        'type'      => 'section',
                        'title'     => __('Borders', 'redux-framework-demo'),
                        'subtitle'  => __('This section adds border styles for the slider number section.', 'redux-framework-demo'),
                        'indent'    => true 
                    ),
            
                        array(
                            'id'       => 'cf7_slider_track_border',
                            'type'     => 'border',
                            'title'    => __( 'Slider Track Border', 'redux-framework-demo' ),
                            'subtitle' => __( 'Set the border for each slider track.', 'redux-framework-demo' ),
                            'all'      => true,
                        ),
            
                        array(
                            'id'       => 'cf7_slider_thumb_border',
                            'type'     => 'border',
                            'title'    => __( 'Slider Thumb Border', 'redux-framework-demo' ),
                            'subtitle' => __( 'Set the border for each slider thumb.', 'redux-framework-demo' ),
                            'all'      => true,
                        ),
            
                    // Padding & Margin
                    array(
                        'id'        => 'cf7_slider_section_spacing',
                        'type'      => 'section',
                        'title'     => __('Padding / Margin', 'redux-framework-demo'),
                        'subtitle'  => __('This section adds padding and margin for the slider number element.', 'redux-framework-demo'),
                        'indent'    => true,
                    ),
            
                        array(
                            'id'                => 'cf7_slider_field_padding',
                            'type'              => 'spacing',
                            'mode'              => 'padding', 
                            'units'             => array('em', 'px', '%'),
                            'units_extended'    => false,
                            'display_units'     => true, 
                            'title'             => __('Input Field Padding', 'redux-framework-demo'),
                            'subtitle'          => __('Specifies the padding used for the slider number element.', 'redux-framework-demo'),
                        ),
            
                        array(
                            'id'                => 'cf7_slider_field_margin',
                            'type'              => 'spacing',
                            'mode'              => 'margin', 
                            'units'             => array('em', 'px', '%'),
                            'units_extended'    => false,
                            'display_units'     => true, 
                            'title'             => __('Input Field Margin', 'redux-framework-demo'),
                            'subtitle'          => __('Specifies the margin used for the slider number element.', 'redux-framework-demo'),
                        ),
            
                    // Fonts
                    array(
                        'id'        => 'cf7_slider_section_fonts',
                        'type'      => 'section',
                        'title'     => __('Fonts', 'redux-framework-demo'),
                        'subtitle'  => __('This section sets font rules for the slider number element.', 'redux-framework-demo'),
                        'indent'    => true 
                    ),
            
                        array(
                            'id'                => 'cf7_slider_field_font',
                            'type'              => 'typography',
                            'title'             => __('Slider Label', 'redux-framework-demo'),
                            'google'            => true, 
                            'font-backup'       => true, 
                            'font-style'        => true,
                            'subsets'           => true,
                            'font-size'         => true,
                            'line-height'       => true,
                            'color'             => true,
                            'preview'           => true, 
                            'all_styles'        => true,
                            'text-transform'    => true,
                            'units'             => 'px',
                            'subtitle'          => __('Applies to all slider number elements generated by Contact Form 7.', 'redux-framework-demo'),
                        ),
            
                    // Dimensions
                    array(
                        'id'        => 'cf7_slider_section_dimensions',
                        'type'      => 'section',
                        'title'     => __('Dimensions', 'redux-framework-demo'),
                        'subtitle'  => __('This section adds dimension options for the slider number element.', 'redux-framework-demo'),
                        'indent'    => true 
                    ),
            
                        array(
                            'id'             => 'cf7_slider_track_dimension',
                            'type'           => 'dimensions',
                            'units'          => array('em','px','%'),
                            'units_extended' => 'true', 
                            'title'          => __( 'Width / Height', 'redux-framework-demo' ),
                            'subtitle'       => __( 'Allow your users to set the width / height of Contact Form 7 number slider track.', 'redux-framework-demo' ),
                        ), 
            
                        array(
                            'id'             => 'cf7_slider_thumb_dimension',
                            'type'           => 'dimensions',
                            'units'          => array('em','px','%'),
                            'units_extended' => 'true', 
                            'title'          => __( 'Width / Height', 'redux-framework-demo' ),
                            'subtitle'       => __( 'Allow your users to set the width / height of Contact Form 7 number slider thumb.', 'redux-framework-demo' ),
                        ), 
                ),
            );
            */
            // Date Styles
            $this->sections[] = array('title' => __('Date', 'redux-framework-demo'), 'icon' => 'el-icon-calendar', 'fields' => array(array('id' => 'opt-notice-critical', 'type' => 'info', 'notice' => true, 'style' => 'critical', 'title' => __('Pro Feature', 'redux-framework-demo'), 'desc' => __('This feature is reserved for the Pro version of Contact Form 7 Designer. Values saved here will not take effect on the front end. <br />Please visit <a href="http://tinygiantstudios.co.uk/product/contact-form-7-designer-pro/" target="_blank">Tiny Giant Studios</a> for more information.', 'redux-framework-demo')), array('id' => 'cf7date_section_backgrounds', 'type' => 'section', 'title' => __('Backgrounds', 'redux-framework-demo'), 'subtitle' => __('This section adds background styles for the date fields.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_date_field_background', 'type' => 'background', 'title' => __('Date Dropdown Background', 'redux-framework-demo'), 'subtitle' => __('Set the background of the date input fields.', 'redux-framework-demo'), 'preview' => false), array('id' => 'cf7_date_section_borders', 'type' => 'section', 'title' => __('Borders', 'redux-framework-demo'), 'subtitle' => __('This section adds border styles for the date fields.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_date_field_border', 'type' => 'border', 'title' => __('Date Dropdown Border', 'redux-framework-demo'), 'subtitle' => __('Set the border of each date field.', 'redux-framework-demo'), 'all' => false, 'top' => true, 'right' => true, 'left' => true, 'bottom' => true), array('id' => 'cf7_date_section_spacing', 'type' => 'section', 'title' => __('Padding / Margin', 'redux-framework-demo'), 'subtitle' => __('This section adds padding and margin for each of the date dropdown fields.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_date_field_padding', 'type' => 'spacing', 'mode' => 'padding', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Date Dropdown Field Padding', 'redux-framework-demo'), 'subtitle' => __('Specifies the padding used for each of the date dropdown fields.', 'redux-framework-demo')), array('id' => 'cf7_date_field_margin', 'type' => 'spacing', 'mode' => 'margin', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Date Dropdown Field Margin', 'redux-framework-demo'), 'subtitle' => __('Specifies the margin used for each the date dropdown fields.', 'redux-framework-demo')), array('id' => 'cf7_date_section_fonts', 'type' => 'section', 'title' => __('Fonts', 'redux-framework-demo'), 'subtitle' => __('This section sets font rules for the date dropdown fields.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_date_field_font', 'type' => 'typography', 'title' => __('Date Dropdown Field', 'redux-framework-demo'), 'google' => true, 'font-backup' => true, 'font-style' => true, 'subsets' => true, 'font-size' => true, 'line-height' => true, 'color' => true, 'preview' => true, 'all_styles' => true, 'text-transform' => true, 'output' => array('#cf7-styles .wpcf7 .wpcf7-form input.wpcf7-date', '.wpcf7 .wpcf7-form input.wpcf7-date'), 'units' => 'px', 'subtitle' => __('Applies to all date dropdown fields generated by Contact Form 7.', 'redux-framework-demo')), array('id' => 'cf7_date_section_dimensions', 'type' => 'section', 'title' => __('Dimensions', 'redux-framework-demo'), 'subtitle' => __('This section adds dimension options for the date dropdown fields.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_date_field_dimension', 'type' => 'dimensions', 'units' => array('em', 'px', '%'), 'units_extended' => 'true', 'title' => __('Width / Height', 'redux-framework-demo'), 'subtitle' => __('Allow your users to set the width / height of Contact Form 7 date dropdown fields.', 'redux-framework-demo'))));
            // Dropdown Styles
            $this->sections[] = array('title' => __('Dropdown', 'redux-framework-demo'), 'icon' => 'el-icon-lines', 'fields' => array(array('id' => 'opt-notice-critical', 'type' => 'info', 'notice' => true, 'style' => 'critical', 'title' => __('Pro Feature', 'redux-framework-demo'), 'desc' => __('This feature is reserved for the Pro version of Contact Form 7 Designer. Values saved here will not take effect on the front end. <br />Please visit <a href="http://tinygiantstudios.co.uk/product/contact-form-7-designer-pro/" target="_blank">Tiny Giant Studios</a> for more information.', 'redux-framework-demo')), array('id' => 'cf7_select_section_backgrounds', 'type' => 'section', 'title' => __('Backgrounds', 'redux-framework-demo'), 'subtitle' => __('This section adds background styles for the dropdown section.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_select_field_background', 'type' => 'background', 'title' => __('Dropdown Background', 'redux-framework-demo'), 'subtitle' => __('Set the background of the dropdown section.', 'redux-framework-demo'), 'preview' => false), array('id' => 'cf7_select_section_borders', 'type' => 'section', 'title' => __('Borders', 'redux-framework-demo'), 'subtitle' => __('This section adds border styles for the dropdown section.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_select_field_border', 'type' => 'border', 'title' => __('Dropdown Menu Border', 'redux-framework-demo'), 'subtitle' => __('Set the border of each dropdown field.', 'redux-framework-demo'), 'all' => false, 'top' => true, 'right' => true, 'left' => true, 'bottom' => true), array('id' => 'cf7_select_section_spacing', 'type' => 'section', 'title' => __('Padding / Margin', 'redux-framework-demo'), 'subtitle' => __('This section adds padding and margin for the dropdown field section.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_select_field_padding', 'type' => 'spacing', 'mode' => 'padding', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Dropdown Menu Padding', 'redux-framework-demo'), 'subtitle' => __('Specifies the padding used for the dropdown field.', 'redux-framework-demo')), array('id' => 'cf7_select_field_margin', 'type' => 'spacing', 'mode' => 'margin', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Dropdown Menu Margin', 'redux-framework-demo'), 'subtitle' => __('Specifies the margin used for the dropdown field.', 'redux-framework-demo')), array('id' => 'cf7_select_section_fonts', 'type' => 'section', 'title' => __('Fonts', 'redux-framework-demo'), 'subtitle' => __('This section sets font rules for the dropdown (select) field.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_select_field_font', 'type' => 'typography', 'title' => __('Dropdown Field', 'redux-framework-demo'), 'google' => true, 'font-backup' => true, 'font-style' => true, 'subsets' => true, 'font-size' => true, 'line-height' => true, 'color' => true, 'preview' => true, 'all_styles' => true, 'text-transform' => true, 'units' => 'px', 'subtitle' => __('Applies to all dropdown fields (select) generated by Contact Form 7.', 'redux-framework-demo')), array('id' => 'cf7_select_section_dimensions', 'type' => 'section', 'title' => __('Dimensions', 'redux-framework-demo'), 'subtitle' => __('This section adds dimension options for the dropdown (select) field.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_select_field_dimension', 'type' => 'dimensions', 'units' => array('em', 'px', '%'), 'units_extended' => 'true', 'title' => __('Width / Height', 'redux-framework-demo'), 'subtitle' => __('Allow your users to set the width / height of Contact Form 7 dropdown (select) fields.', 'redux-framework-demo'))));
            // Checkbox Styles
            $this->sections[] = array('title' => __('Checkboxes', 'redux-framework-demo'), 'icon' => 'el-icon-check', 'fields' => array(array('id' => 'opt-notice-critical', 'type' => 'info', 'notice' => true, 'style' => 'critical', 'title' => __('Pro Feature', 'redux-framework-demo'), 'desc' => __('This feature is reserved for the Pro version of Contact Form 7 Designer. Values saved here will not take effect on the front end. <br />Please visit <a href="http://tinygiantstudios.co.uk/product/contact-form-7-designer-pro/" target="_blank">Tiny Giant Studios</a> for more information.', 'redux-framework-demo')), array('id' => 'cf7_checkbox_section_spacing', 'type' => 'section', 'title' => __('Padding / Margin', 'redux-framework-demo'), 'subtitle' => __('This section adds padding and margin for the checkbox field section.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_checkbox_label_padding', 'type' => 'spacing', 'mode' => 'padding', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Checkbox Label Padding', 'redux-framework-demo'), 'subtitle' => __('Specifies the padding used for the checkbox label.', 'redux-framework-demo')), array('id' => 'cf7_checkbox_label_margin', 'type' => 'spacing', 'mode' => 'margin', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Checkbox Label Margin', 'redux-framework-demo'), 'subtitle' => __('Specifies the margin used for the checkbox label.', 'redux-framework-demo')), array('id' => 'cf7_checkbox_field_padding', 'type' => 'spacing', 'mode' => 'padding', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Checkbox Option Padding', 'redux-framework-demo'), 'subtitle' => __('Specifies the padding used for the checkbox option.', 'redux-framework-demo')), array('id' => 'cf7_checkbox_field_margin', 'type' => 'spacing', 'mode' => 'margin', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Checkbox Option Margin', 'redux-framework-demo'), 'subtitle' => __('Specifies the margin used for the checkbox option.', 'redux-framework-demo')), array('id' => 'cf7_checkbox_item_padding', 'type' => 'spacing', 'mode' => 'padding', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Checkbox List Item Padding', 'redux-framework-demo'), 'subtitle' => __('Specifies the padding used for the entire checkbox list item.', 'redux-framework-demo')), array('id' => 'cf7_checkbox_item_margin', 'type' => 'spacing', 'mode' => 'margin', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Checkbox List Item Margin', 'redux-framework-demo'), 'subtitle' => __('Specifies the margin used for the entire checkbox list item.', 'redux-framework-demo')), array('id' => 'cf7_checkbox_section_fonts', 'type' => 'section', 'title' => __('Fonts', 'redux-framework-demo'), 'subtitle' => __('This section sets font rules for the checkbox field.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_checkbox_label_font', 'type' => 'typography', 'title' => __('Checkbox Label', 'redux-framework-demo'), 'google' => true, 'font-backup' => true, 'font-style' => true, 'subsets' => true, 'font-size' => true, 'line-height' => true, 'color' => true, 'preview' => true, 'all_styles' => true, 'text-transform' => true, 'units' => 'px', 'subtitle' => __('Applies to all dropdown (select) field labels generated by Contact Form 7.', 'redux-framework-demo'))));
            // Radio Button Styles
            $this->sections[] = array('title' => __('Radio Buttons', 'redux-framework-demo'), 'icon' => 'el-icon-record', 'fields' => array(array('id' => 'opt-notice-critical', 'type' => 'info', 'notice' => true, 'style' => 'critical', 'title' => __('Pro Feature', 'redux-framework-demo'), 'desc' => __('This feature is reserved for the Pro version of Contact Form 7 Designer. Values saved here will not take effect on the front end. <br />Please visit <a href="http://tinygiantstudios.co.uk/product/contact-form-7-designer-pro/" target="_blank">Tiny Giant Studios</a> for more information.', 'redux-framework-demo')), array('id' => 'cf7_radio_section_spacing', 'type' => 'section', 'title' => __('Padding / Margin', 'redux-framework-demo'), 'subtitle' => __('This section adds padding and margin for the radio button field section.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_radio_label_padding', 'type' => 'spacing', 'mode' => 'padding', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Radio Button Label Padding', 'redux-framework-demo'), 'subtitle' => __('Specifies the padding used for the radio button label.', 'redux-framework-demo')), array('id' => 'cf7_radio_label_margin', 'type' => 'spacing', 'mode' => 'margin', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Radio Button Label Margin', 'redux-framework-demo'), 'subtitle' => __('Specifies the margin used for the radio button label.', 'redux-framework-demo')), array('id' => 'cf7_radio_field_padding', 'type' => 'spacing', 'mode' => 'padding', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Radio Button Option Padding', 'redux-framework-demo'), 'subtitle' => __('Specifies the padding used for the radio button option.', 'redux-framework-demo')), array('id' => 'cf7_radio_field_margin', 'type' => 'spacing', 'mode' => 'margin', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Radio Button Option Margin', 'redux-framework-demo'), 'subtitle' => __('Specifies the margin used for the radio button option.', 'redux-framework-demo')), array('id' => 'cf7_radio_item_padding', 'type' => 'spacing', 'mode' => 'padding', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Radio Button List Item Padding', 'redux-framework-demo'), 'subtitle' => __('Specifies the padding used for the entire radio button list item.', 'redux-framework-demo')), array('id' => 'cf7_radio_item_margin', 'type' => 'spacing', 'mode' => 'margin', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Radio Button List Item Margin', 'redux-framework-demo'), 'subtitle' => __('Specifies the margin used for the entire radio button list item.', 'redux-framework-demo')), array('id' => 'cf7_radio_section_fonts', 'type' => 'section', 'title' => __('Fonts', 'redux-framework-demo'), 'subtitle' => __('This section sets font rules for the checkbox field.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_radio_label_font', 'type' => 'typography', 'title' => __('Radio Button Label', 'redux-framework-demo'), 'google' => true, 'font-backup' => true, 'font-style' => true, 'subsets' => true, 'font-size' => true, 'line-height' => true, 'color' => true, 'preview' => true, 'all_styles' => true, 'text-transform' => true, 'units' => 'px', 'subtitle' => __('Applies to all radio button labels generated by Contact Form 7.', 'redux-framework-demo'))));
            // Quiz Field Styles
            $this->sections[] = array('title' => __('Quiz', 'redux-framework-demo'), 'icon' => 'el-icon-ok', 'fields' => array(array('id' => 'opt-notice-critical', 'type' => 'info', 'notice' => true, 'style' => 'critical', 'title' => __('Pro Feature', 'redux-framework-demo'), 'desc' => __('This feature is reserved for the Pro version of Contact Form 7 Designer. Values saved here will not take effect on the front end. <br />Please visit <a href="http://tinygiantstudios.co.uk/product/contact-form-7-designer-pro/" target="_blank">Tiny Giant Studios</a> for more information.', 'redux-framework-demo')), array('id' => 'cf7_quiz_section_backgrounds', 'type' => 'section', 'title' => __('Backgrounds', 'redux-framework-demo'), 'subtitle' => __('This section adds background styles for the input field section.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_quiz_field_background', 'type' => 'background', 'title' => __('Quiz Field Background', 'redux-framework-demo'), 'subtitle' => __('Set the background of the quiz element', 'redux-framework-demo'), 'preview' => false), array('id' => 'cf7_quiz_section_borders', 'type' => 'section', 'title' => __('Borders', 'redux-framework-demo'), 'subtitle' => __('This section adds border styles for the input field section.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_quiz_field_border', 'type' => 'border', 'title' => __('Quiz Field Border', 'redux-framework-demo'), 'subtitle' => __('Set the border of each quiz element.', 'redux-framework-demo'), 'all' => false, 'top' => true, 'right' => true, 'left' => true, 'bottom' => true), array('id' => 'cf7_quiz_section_spacing', 'type' => 'section', 'title' => __('Padding / Margin', 'redux-framework-demo'), 'subtitle' => __('This section adds padding and margin for the quiz field section.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_quiz_field_padding', 'type' => 'spacing', 'mode' => 'padding', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Quiz Field Padding', 'redux-framework-demo'), 'subtitle' => __('Specifies the padding used for the text text (input) field.', 'redux-framework-demo')), array('id' => 'cf7_quiz_field_margin', 'type' => 'spacing', 'mode' => 'margin', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Quiz Field Margin', 'redux-framework-demo'), 'subtitle' => __('Specifies the margin used for the quiz field.', 'redux-framework-demo')), array('id' => 'cf7_quiz_label_padding', 'type' => 'spacing', 'mode' => 'padding', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Quiz Label Padding', 'redux-framework-demo'), 'subtitle' => __('Specifies the padding used for the text text (input) field.', 'redux-framework-demo')), array('id' => 'cf7_quiz_label_margin', 'type' => 'spacing', 'mode' => 'margin', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Quiz Label Margin', 'redux-framework-demo'), 'subtitle' => __('Specifies the margin used for the quiz field.', 'redux-framework-demo')), array('id' => 'cf7_quiz_section_fonts', 'type' => 'section', 'title' => __('Fonts', 'redux-framework-demo'), 'subtitle' => __('This section sets font rules for the quiz field.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_quiz_field_font', 'type' => 'typography', 'title' => __('Quiz Field', 'redux-framework-demo'), 'google' => true, 'font-backup' => true, 'font-style' => true, 'subsets' => true, 'font-size' => true, 'line-height' => true, 'color' => true, 'preview' => true, 'all_styles' => true, 'text-transform' => true, 'units' => 'px', 'subtitle' => __('Applies to all quiz fields generated by Contact Form 7.', 'redux-framework-demo')), array('id' => 'cf7_quiz_section_dimensions', 'type' => 'section', 'title' => __('Dimensions', 'redux-framework-demo'), 'subtitle' => __('This section adds dimension options for the quiz field.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_quiz_field_dimension', 'type' => 'dimensions', 'units' => array('em', 'px', '%'), 'units_extended' => 'true', 'title' => __('Width / Height', 'redux-framework-demo'), 'subtitle' => __('Allow your users to set the width / height of Contact Form 7 quiz fields.', 'redux-framework-demo'))));
            // Captcha Styles
            $this->sections[] = array('title' => __('Captcha', 'redux-framework-demo'), 'icon' => 'el-icon-barcode', 'fields' => array(array('id' => 'opt-notice-critical', 'type' => 'info', 'notice' => true, 'style' => 'critical', 'title' => __('Pro Feature', 'redux-framework-demo'), 'desc' => __('This feature is reserved for the Pro version of Contact Form 7 Designer. Values saved here will not take effect on the front end. <br />Please visit <a href="http://tinygiantstudios.co.uk/product/contact-form-7-designer-pro/" target="_blank">Tiny Giant Studios</a> for more information.', 'redux-framework-demo')), array('id' => 'cf7_captcha_section_backgrounds', 'type' => 'section', 'title' => __('Backgrounds', 'redux-framework-demo'), 'subtitle' => __('This section adds background styles for the Captcha field section.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_captcha_field_background', 'type' => 'background', 'title' => __('Captcha Field Background', 'redux-framework-demo'), 'subtitle' => __('Set the background of the Captcha element (input field)', 'redux-framework-demo'), 'preview' => false), array('id' => 'cf7_captcha_section_borders', 'type' => 'section', 'title' => __('Borders', 'redux-framework-demo'), 'subtitle' => __('This section adds border styles for the Captcha field section.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_captcha_field_border', 'type' => 'border', 'title' => __('Captcha Field Border', 'redux-framework-demo'), 'subtitle' => __('Set the border of each Captcha element.', 'redux-framework-demo'), 'all' => false, 'top' => true, 'right' => true, 'left' => true, 'bottom' => true), array('id' => 'cf7_captcha_image_border', 'type' => 'border', 'title' => __('Captcha Field Border', 'redux-framework-demo'), 'subtitle' => __('Set the border of each Captcha image .', 'redux-framework-demo'), 'all' => false, 'top' => true, 'right' => true, 'left' => true, 'bottom' => true), array('id' => 'cf7_captcha_section_spacing', 'type' => 'section', 'title' => __('Padding / Margin', 'redux-framework-demo'), 'subtitle' => __('This section adds padding and margin for the Captcha field section.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_captcha_field_padding', 'type' => 'spacing', 'mode' => 'padding', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Captcha Field Padding', 'redux-framework-demo'), 'subtitle' => __('Specifies the padding used for the Captcha field.', 'redux-framework-demo')), array('id' => 'cf7_captcha_field_margin', 'type' => 'spacing', 'mode' => 'margin', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Captcha Field Margin', 'redux-framework-demo'), 'subtitle' => __('Specifies the margin used for the Captcha field.', 'redux-framework-demo')), array('id' => 'cf7_captcha_image_padding', 'type' => 'spacing', 'mode' => 'padding', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Captcha Image Padding', 'redux-framework-demo'), 'subtitle' => __('Specifies the padding used for the Captcha image.', 'redux-framework-demo')), array('id' => 'cf7_captcha_image_margin', 'type' => 'spacing', 'mode' => 'margin', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Captcha Image Margin', 'redux-framework-demo'), 'subtitle' => __('Specifies the margin used for the Captcha image.', 'redux-framework-demo')), array('id' => 'cf7_captcha_section_fonts', 'type' => 'section', 'title' => __('Fonts', 'redux-framework-demo'), 'subtitle' => __('This section sets font rules for the Captcha field.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_captcha_field_font', 'type' => 'typography', 'title' => __('Captcha Field', 'redux-framework-demo'), 'google' => true, 'font-backup' => true, 'font-style' => true, 'subsets' => true, 'font-size' => true, 'line-height' => true, 'color' => true, 'preview' => true, 'all_styles' => true, 'text-transform' => true, 'units' => 'px', 'subtitle' => __('Applies to all Captcha fields generated by Contact Form 7.', 'redux-framework-demo')), array('id' => 'cf7_captcha_section_dimensions', 'type' => 'section', 'title' => __('Dimensions', 'redux-framework-demo'), 'subtitle' => __('This section adds dimension options for the Captcha field.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_captcha_field_dimension', 'type' => 'dimensions', 'units' => array('em', 'px', '%'), 'units_extended' => 'true', 'title' => __('Width / Height', 'redux-framework-demo'), 'subtitle' => __('Allow your users to set the width / height of Contact Form 7 Captcha fields.', 'redux-framework-demo'))));
            // File Upload Styles
            $this->sections[] = array('title' => __('File Upload', 'redux-framework-demo'), 'icon' => 'el-icon-stackoverflow', 'fields' => array(array('id' => 'opt-notice-critical', 'type' => 'info', 'notice' => true, 'style' => 'critical', 'title' => __('Pro Feature', 'redux-framework-demo'), 'desc' => __('This feature is reserved for the Pro version of Contact Form 7 Designer. Values saved here will not take effect on the front end. <br />Please visit <a href="http://tinygiantstudios.co.uk/product/contact-form-7-designer-pro/" target="_blank">Tiny Giant Studios</a> for more information.', 'redux-framework-demo')), array('id' => 'cf7_upload_section_spacing', 'type' => 'section', 'title' => __('Padding / Margin', 'redux-framework-demo'), 'subtitle' => __('This section adds padding and margin for the upload file element.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_upload_field_padding', 'type' => 'spacing', 'mode' => 'padding', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Upload File Padding', 'redux-framework-demo'), 'subtitle' => __('Specifies the padding used for the uploaded file element.', 'redux-framework-demo')), array('id' => 'cf7_upload_field_margin', 'type' => 'spacing', 'mode' => 'margin', 'units' => array('em', 'px', '%'), 'units_extended' => false, 'display_units' => true, 'title' => __('Upload File Margin', 'redux-framework-demo'), 'subtitle' => __('Specifies the margin used for the uploaded file element.', 'redux-framework-demo')), array('id' => 'cf7_upload_section_fonts', 'type' => 'section', 'title' => __('Fonts', 'redux-framework-demo'), 'subtitle' => __('This section sets font rules for the file upload field.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_upload_field_font', 'type' => 'typography', 'title' => __('Uploaded File Field', 'redux-framework-demo'), 'google' => true, 'font-backup' => true, 'font-style' => true, 'subsets' => true, 'font-size' => true, 'line-height' => true, 'color' => true, 'preview' => true, 'all_styles' => true, 'text-transform' => true, 'units' => 'px', 'subtitle' => __('Applies to all upload file fields generated by Contact Form 7.', 'redux-framework-demo')), array('id' => 'cf7_upload_section_dimensions', 'type' => 'section', 'title' => __('Dimensions', 'redux-framework-demo'), 'subtitle' => __('This section adds dimension options for the file upload field.', 'redux-framework-demo'), 'indent' => true), array('id' => 'cf7_upload_field_dimension', 'type' => 'dimensions', 'units' => array('em', 'px', '%'), 'units_extended' => 'true', 'title' => __('Width / Height', 'redux-framework-demo'), 'subtitle' => __('Allow your users to set the width / height of Contact Form 7 file upload fields.', 'redux-framework-demo'))));
            $this->sections[] = array('type' => 'divide');
        }
Exemplo n.º 23
0
 /**
  * @ticket 21749
  */
 function test_wp_theme_uris_with_spaces()
 {
     $theme = new WP_Theme('theme with spaces', $this->theme_root . '/subdir');
     // Make sure subdir/ is considered part of the stylesheet, as we must avoid encoding /'s.
     $this->assertEquals('subdir/theme with spaces', $theme->get_stylesheet());
     // Check that in a URI path, we have raw url encoding (spaces become %20)
     // Don't try to verify the complete URI path. get_theme_root_uri() breaks down quickly.
     $this->assertEquals('theme%20with%20spaces', basename($theme->get_stylesheet_directory_uri()));
     $this->assertEquals('theme%20with%20spaces', basename($theme->get_template_directory_uri()));
     // Check that wp_customize_url() uses url encoding, as it is a query arg (spaces become +)
     $this->assertEquals(admin_url('customize.php?theme=theme+with+spaces'), wp_customize_url('theme with spaces'));
 }
Exemplo n.º 24
0
 /**
  * Returns the url of the customizer with the current url arguments + an optional customizer section args
  * @param $section is an array indicating the panel or section and its name. Ex : array( 'panel' => 'widgets')
  * @return url string
  * @since Customizr 3.4+
  */
 static function tc_get_customizer_url($_panel_or_section = null)
 {
     $_current_url = (is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
     $_customize_url = add_query_arg('url', urlencode($_current_url), wp_customize_url());
     $_panel_or_section = !is_array($_panel_or_section) || empty($_panel_or_section) ? null : $_panel_or_section;
     if (is_null($_panel_or_section)) {
         return $_customize_url;
     }
     if (!array_key_exists('section', $_panel_or_section) && !array_key_exists('panel', $_panel_or_section)) {
         return $_customize_url;
     }
     $_what = array_key_exists('section', $_panel_or_section) ? 'section' : 'panel';
     return add_query_arg(urlencode("autofocus[{$_what}]"), $_panel_or_section[$_what], $_customize_url);
 }
Exemplo n.º 25
0
 /**
  * Returns the url of the customizer with the current url arguments + an optional customizer section args
  *
  * @param $autofocus(optional) is an array indicating the elements to focus on ( control,section,panel).
  * Ex : array( 'control' => 'tc_front_slider', 'section' => 'frontpage_sec').
  * Wordpress will cycle among autofocus keys focusing the existing element - See wp-admin/customize.php.
  * The actual focused element depends on its type according to this priority scale: control, section, panel.
  * In this sense when specifying a control, additional section and panel could be considered as fall-back.
  *
  * @param $control_wrapper(optional) is a string indicating the wrapper to apply to the passed control. By default is "tc_theme_options".
  * Ex: passing $aufocus = array('control' => 'tc_front_slider') will produce the query arg 'autofocus'=>array('control' => 'tc_theme_options[tc_front_slider]'
  *
  * @return url string
  * @since Customizr 3.4+
  */
 static function tc_get_customizer_url($autofocus = null, $control_wrapper = 'tc_theme_options')
 {
     $_current_url = (is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
     $_customize_url = add_query_arg('url', urlencode($_current_url), wp_customize_url());
     $autofocus = !is_array($autofocus) || empty($autofocus) ? null : $autofocus;
     if (is_null($autofocus)) {
         return $_customize_url;
     }
     // $autofocus must contain at least one key among (control,section,panel)
     if (!count(array_intersect(array_keys($autofocus), array('control', 'section', 'panel')))) {
         return $_customize_url;
     }
     // wrap the control in the $control_wrapper if neded
     if (array_key_exists('control', $autofocus) && !empty($autofocus['control']) && $control_wrapper) {
         $autofocus['control'] = $control_wrapper . '[' . $autofocus['control'] . ']';
     }
     // We don't really have to care for not existent autofocus keys, wordpress will stash them when passing the values to the customize js
     return add_query_arg(array('autofocus' => $autofocus), $_customize_url);
 }
Exemplo n.º 26
0
 function after()
 {
     $update_actions = array();
     if (!empty($this->upgrader->result['destination_name']) && ($theme_info = $this->upgrader->theme_info())) {
         $name = $theme_info->display('Name');
         $stylesheet = $this->upgrader->result['destination_name'];
         $template = $theme_info->get_template();
         $preview_link = add_query_arg(array('preview' => 1, 'template' => urlencode($template), 'stylesheet' => urlencode($stylesheet)), trailingslashit(home_url()));
         $activate_link = add_query_arg(array('action' => 'activate', 'template' => urlencode($template), 'stylesheet' => urlencode($stylesheet)), admin_url('themes.php'));
         $activate_link = wp_nonce_url($activate_link, 'switch-theme_' . $stylesheet);
         if (get_stylesheet() == $stylesheet) {
             if (current_user_can('edit_theme_options')) {
                 $update_actions['preview'] = '<a href="' . wp_customize_url($stylesheet) . '" class="hide-if-no-customize load-customize" title="' . esc_attr(sprintf(__('Customize &#8220;%s&#8221;'), $name)) . '">' . __('Customize') . '</a>';
             }
         } elseif (current_user_can('switch_themes')) {
             $update_actions['preview'] = '<a href="' . esc_url($preview_link) . '" class="hide-if-customize" title="' . esc_attr(sprintf(__('Preview &#8220;%s&#8221;'), $name)) . '">' . __('Preview') . '</a>';
             $update_actions['preview'] .= '<a href="' . wp_customize_url($stylesheet) . '" class="hide-if-no-customize load-customize" title="' . esc_attr(sprintf(__('Preview &#8220;%s&#8221;'), $name)) . '">' . __('Live Preview') . '</a>';
             $update_actions['activate'] = '<a href="' . esc_url($activate_link) . '" class="activatelink" title="' . esc_attr(sprintf(__('Activate &#8220;%s&#8221;'), $name)) . '">' . __('Activate') . '</a>';
         }
         if (!$this->result || is_wp_error($this->result) || is_network_admin()) {
             unset($update_actions['preview'], $update_actions['activate']);
         }
     }
     $update_actions['themes_page'] = '<a href="' . self_admin_url('themes.php') . '" title="' . esc_attr__('Return to Themes page') . '" target="_parent">' . __('Return to Themes page') . '</a>';
     $update_actions = apply_filters('update_theme_complete_actions', $update_actions, $this->theme);
     if (!empty($update_actions)) {
         $this->feedback(implode(' | ', (array) $update_actions));
     }
 }
Exemplo n.º 27
0
 * @since Interface 1.0
 */
add_action('add_meta_boxes', 'interface_add_custom_box');
/**
 * Add Meta Boxes.
 * 
 * Add Meta box in page and post post types.
 */
function interface_add_custom_box()
{
    add_meta_box('siderbar-layout', __('Select layout for this specific Page only ( Note: This setting only reflects if page Template is set as Default Template and Blog Type Templates.)', 'interface'), 'interface_sidebar_layout', 'page');
    add_meta_box('siderbar-layout', __('Select layout for this specific Post only', 'interface'), 'interface_sidebar_layout', 'post');
}
/****************************************************************************************/
global $sidebar_layout;
$sidebar_layout = array('default-sidebar' => array('id' => 'interface_sidebarlayout', 'value' => 'default', 'label' => __('Default Layout Set in', 'interface') . ' ' . '<a href="' . wp_customize_url() . '?autofocus[section]=interface_default_layout" target="_blank">' . __('Customizer', 'interface') . '</a>', 'thumbnail' => ' '), 'no-sidebar' => array('id' => 'interface_sidebarlayout', 'value' => 'no-sidebar', 'label' => __('No sidebar', 'interface'), 'thumbnail' => ''), 'no-sidebar-full-width' => array('id' => 'interface_sidebarlayout', 'value' => 'no-sidebar-full-width', 'label' => __('No sidebar, Full Width', 'interface'), 'thumbnail' => ''), 'left-sidebar' => array('id' => 'interface_sidebarlayout', 'value' => 'left-sidebar', 'label' => __('Left sidebar', 'interface'), 'thumbnail' => ''), 'right-sidebar' => array('id' => 'interface_sidebarlayout', 'value' => 'right-sidebar', 'label' => __('Right sidebar', 'interface'), 'thumbnail' => ''));
/****************************************************************************************/
/**
 * Displays metabox to for sidebar layout
 */
function interface_sidebar_layout()
{
    global $sidebar_layout, $post;
    // Use nonce for verification
    wp_nonce_field(basename(__FILE__), 'custom_meta_box_nonce');
    // for security purpose
    // Begin the field table and loop
    ?>

<table id="sidebar-metabox" class="form-table" width="100%">
  <tbody>
Exemplo n.º 28
0
        public function setSections()
        {
            /**
                          Used within different fields. Simply examples. Search for ACTUAL DECLARATION for field examples
                         * */
            // Background Patterns Reader
            $sample_patterns_path = ReduxFramework::$_dir . '../sample/patterns/';
            $sample_patterns_url = ReduxFramework::$_url . '../sample/patterns/';
            $sample_patterns = array();
            if (is_dir($sample_patterns_path)) {
                if ($sample_patterns_dir = opendir($sample_patterns_path)) {
                    $sample_patterns = array();
                    while (($sample_patterns_file = readdir($sample_patterns_dir)) !== false) {
                        if (stristr($sample_patterns_file, '.png') !== false || stristr($sample_patterns_file, '.jpg') !== false) {
                            $name = explode(".", $sample_patterns_file);
                            $name = str_replace('.' . end($name), '', $sample_patterns_file);
                            $sample_patterns[] = array('alt' => $name, 'img' => $sample_patterns_url . $sample_patterns_file);
                        }
                    }
                }
            }
            ob_start();
            $ct = wp_get_theme();
            $this->theme = $ct;
            $item_name = $this->theme->get('Name');
            $tags = $this->theme->Tags;
            $screenshot = $this->theme->get_screenshot();
            $class = $screenshot ? 'has-screenshot' : '';
            $customize_title = sprintf(__('Customize &#8220;%s&#8221;', 'flaton'), $this->theme->display('Name'));
            ?>
            <div id="current-theme" class="<?php 
            echo esc_attr($class);
            ?>
">
            <?php 
            if ($screenshot) {
                ?>
                <?php 
                if (current_user_can('edit_theme_options')) {
                    ?>
                        <a href="<?php 
                    echo wp_customize_url();
                    ?>
" class="load-customize hide-if-no-customize" title="<?php 
                    echo esc_attr($customize_title);
                    ?>
">
                            <img src="<?php 
                    echo esc_url($screenshot);
                    ?>
" alt="<?php 
                    esc_attr_e('Current theme preview', 'flaton');
                    ?>
" />
                        </a>
                <?php 
                }
                ?>
                    <img class="hide-if-customize" src="<?php 
                echo esc_url($screenshot);
                ?>
" alt="<?php 
                esc_attr_e('Current theme preview', 'flaton');
                ?>
" />
            <?php 
            }
            ?>

                <h4>
            <?php 
            echo $this->theme->display('Name');
            ?>
                </h4>

                <div>
                    <ul class="theme-info">
                        <li><?php 
            printf(__('By %s', 'flaton'), $this->theme->display('Author'));
            ?>
</li>
                        <li><?php 
            printf(__('Version %s', 'flaton'), $this->theme->display('Version'));
            ?>
</li>
                        <li><?php 
            echo '<strong>' . __('Tags', 'flaton') . ':</strong> ';
            printf($this->theme->display('Tags'));
            ?>
</li>
                    </ul>
                    <p class="theme-description"><?php 
            echo $this->theme->display('Description');
            ?>
</p>
                <?php 
            if ($this->theme->parent()) {
                printf(' <p class="howto">' . __('This <a href="%1$s">child theme</a> requires its parent theme, %2$s.', 'flaton') . '</p>', __('http://codex.wordpress.org/Child_Themes', 'flaton'), $this->theme->parent()->display('Name'));
            }
            ?>

                </div>

            </div>

            <?php 
            $item_info = ob_get_contents();
            ob_end_clean();
            $sampleHTML = '';
            if (file_exists(dirname(__FILE__) . '/info-html.html')) {
                /** @global WP_Filesystem_Direct $wp_filesystem  */
                global $wp_filesystem;
                if (empty($wp_filesystem)) {
                    require_once ABSPATH . '/wp-admin/includes/file.php';
                    WP_Filesystem();
                }
                $sampleHTML = $wp_filesystem->get_contents(dirname(__FILE__) . '/info-html.html');
            }
            $featuresHTML = <<<FEATURES
            <div class="one-third column">
                <div class="icon-wrap"><i class="fa fa-cog"></i></div>
                <h3>Page Builder</h3>
                <p>FlatOn Pro supports Page Builder. All our shortcodes can be used as widgets too. You can drag and drop our widgets with page builder visual editor.</p>
            </div>
            <div class="one-third column">
                <div class="icon-wrap"><i class="fa fa-th-large"></i></div>
                <h3>Page Layout</h3>
                <p>FlatOn Pro offers many different page layouts so you can quickly and easily create your pages with various layout without any hassle!</p>
            </div>            
            <div class="one-third column">
                <div class="icon-wrap"><i class="fa fa-th"></i></div>
                <h3>Unlimited Sidebar</h3>
                <p>Unlimited sidebars allows you to create multiple sidebars. Check out our demo site to see how different pages displays different sidebars!</p>
            </div>
            <div class="one-third column">
                <div class="icon-wrap"><i class="fa fa-code-fork"></i></div>
                <h3>Shortcode Builder</h3>
                <p>With our shortcode builder and lots of shortcodes, you can easily create nested shortcodes and build custom pages!</p>
            </div>
            <div class="one-third column">
                <div class="icon-wrap"><i class="fa fa-camera"></i></div>
                <h3>Multi Portfolio</h3>
                <p>7 portfolio layouts with Isotope filtering, 3 blog layouts and multiple other alternate layouts for interior pages!</p>
            </div>
            <div class="one-third column">
                <div class="icon-wrap"><i class="fa fa-font"></i></div>
                <h3>Typography</h3>
                <p>FlatOn Pro loves typography, you can choose from over 500+ Google Fonts and Standard Fonts to customize your site!</p>
            </div>
            <div class="one-third column">
                <div class="icon-wrap"><i class="fa fa-slideshare"></i></div>
                <h3>Awesome Sliders</h3>
                <p>FlatOn Pro includes two types of slider. You can use both Flex and Elastic sliders anywhere in your site.</p>
            </div>
            <div class="one-third column">
                <div class="icon-wrap"><i class="fa fa-leaf"></i></div>
                <h3>Woo Commerce</h3>
                <p>FlatOn Pro has full design/code integration for WooCommerce, your shop will look as good as the rest of your site!</p>
            </div>
            <div class="one-third column">
                <div class="icon-wrap"><i class="fa fa-tasks"></i></div>
                <h3>Custom Widget</h3>
                <p>We offer many custom widgets that are stylized and ready for use. Simply drag &amp; drop into place to activate!</p>
            </div>
            <div class="one-third column">
                <div class="icon-wrap"><i class="fa fa-dashboard"></i></div>
                <h3>Advanced Admin</h3>
                <p>Advanced Redux Framework for theme options panel, you can customize any part of your site quickly and easily!</p>
            </div>            
            <div class="one-third column">
                <div class="icon-wrap"><i class="fa fa-magic"></i></div>
                <h3>Font Awesome</h3>
                <p>Font Awesome icons are fully integrated into the theme. Use them anywhere in your site in 6 different sizes!</p>
            </div>
            <div class="one-third column">
                <div class="icon-wrap"><i class="fa fa-arrows"></i></div>
                <h3>Responsive Layout</h3>
                <p>FlatOn Pro is fully responsive and can adapt to any screen size. Resize your browser window to view it!</p>
            </div>  

            <div class="one-third column">
                <div class="icon-wrap"><i class="fa fa-magic"></i></div>
                <h3>Testimonials</h3>
                <p>With our testimonial post type, shortcode and widget, Displaying testimonials is a breeze.</p>
            </div>
            <div class="one-third column">
                <div class="icon-wrap"><i class="fa fa-twitter"></i></div>
                <h3>Social Media</h3>
                <p>Want your users to stay in touch? No problem, FlatOn Pro has Social Media icons all throughout the theme!</p>
            </div>
            <div class="one-third column">
                <div class="icon-wrap"><i class="fa fa-map-marker"></i></div>
                <h3>Google Map</h3>
                <p>FlatOn Pro includes Goole Map as shortcode and widget. So, you can use it anywhere in your site!</p>
            </div>
        </div>
FEATURES;
            /*
            <!--
                        <div class="one-third column">
                            <div class="icon-wrap"><i class="el-icon-opensource"></i></div>
                            <h3>Excellent Support</h3>
                            <p>We truly care about our customers and theme’s performance. We assure you that you will get the best after sale support like never before!</p>
                        </div>
                        <div class="one-third column">
                            <div class="icon-wrap"><i class="el-icon-picture"></i></div>
                            <h3>Retina Ready</h3>
                            <p>FlatOn Pro is Retina Ready. So, Everything looks amazingly sharp and crisp on high resolution retina displays of all sizes!</p>
                        </div>
                     
                        <div class="one-third column">
                            <div class="icon-wrap"><i class="el-icon-idea"></i></div>
                            <h3>Demo Content</h3>
                            <p>FlatOn Pro includes demo content files. You can quickly setup the site like our demo and get started easily!</p>
                        </div>
                        <div class="one-third column">
                            <div class="icon-wrap"><i class="el-icon-wrench-alt"></i></div>
                            <h3>Customization</h3>
                            <p>With advanced theme options, page options &amp; extensive docs, its never been easier to customize a theme!</p>
                        </div>
                        <div class="one-third column">
                            <div class="icon-wrap"><i class="el-icon-cogs"></i></div>
                            <h3>Improvement</h3>
                            <p>We love our theme and customers. We are committed to improve and add new features to FlatOn Pro!</p>
                        </div>
                        <div class="one-third column">
                            <div class="icon-wrap"><i class="el-icon-inbox-alt"></i></div>
                            <h3>Regular Updates</h3>
                            <p>We keep our themes secure and keep adding great new features!</p>
                        </div>        
            -->
            */
            // ACTUAL DECLARATION OF SECTIONS
            $this->sections[] = array('title' => __('General Settings', 'flaton'), 'desc' => __('General Settings of Theme to change look and feel through out the site', 'flaton'), 'icon' => 'fa fa fa-cogs', 'fields' => array(array('id' => 'color', 'type' => 'select', 'title' => __('Color Scheme', 'flaton'), 'subtitle' => __('Select your color scheme.', 'flaton'), 'options' => array('1' => 'default', '2' => 'green', '3' => 'More color schemes in FlatOn Pro Version.'), 'default' => '1'), array('id' => 'breadcrumb', 'type' => 'switch', 'title' => __('Enable Breadcrumb Navigation', 'flaton'), 'subtitle' => __('Check to display breadcrumb navigation.', 'flaton'), 'default' => 1, 'on' => 'Enable', 'off' => 'Disable'), array('id' => 'breadcrumb-char', 'type' => 'select', 'title' => __('Breadcrumb Character', 'flaton'), 'subtitle' => __('Check to display breadcrumb navigation.', 'flaton'), 'options' => array('1' => ' &raquo; ', '2' => ' / ', '3' => ' > '), 'default' => '1'), array('id' => 'upgrade-notice-1', 'type' => 'info', 'notice' => true, 'style' => 'critical', 'icon' => 'fa fa-info-circle', 'title' => __('FlatOn Pro Options. <a href="http://www.webulousthemes.com/?add-to-cart=23">Upgrade Now</a> for just $39.', 'flaton'), 'desc' => __('These options are available only in FlatOn Pro version theme. Upgrade now for just $39.', 'flaton')), array('id' => 'pagenavi', 'type' => 'switch', 'title' => __('Enable Numeric Page Navigation', 'flaton'), 'subtitle' => __('Check to display numeric page navigation, instead of Previous Posts / Next Posts links.', 'flaton'), 'default' => 1, 'on' => 'Enable', 'off' => 'Disable'), array('id' => 'slicknav', 'type' => 'switch', 'title' => __('Enable SlickNav', 'flaton'), 'subtitle' => __('Check to display reponsive menu using SlickNav', 'flaton'), 'default' => 1, 'on' => 'Enable', 'off' => 'Disable'), array('id' => 'layout', 'type' => 'image_select', 'compiler' => true, 'title' => __('Main Layout', 'flaton'), 'subtitle' => __('Select main content and sidebar alignment.', 'flaton'), 'options' => array('2' => array('alt' => 'Right Sidebar', 'img' => ReduxFramework::$_url . 'assets/img/2cl.png'), '3' => array('alt' => 'Left Sidebar', 'img' => ReduxFramework::$_url . 'assets/img/2cr.png')), 'default' => '3'), array('id' => 'custom-js', 'type' => 'textarea', 'title' => __('Custom Javascript', 'flaton'), 'subtitle' => __('Quickly add some Javascript to your theme by adding it to this block.', 'flaton'), 'desc' => 'Validate that it\'s javascript!'), array('id' => 'custom-css', 'type' => 'ace_editor', 'title' => __('Custom CSS', 'flaton'), 'subtitle' => __('Quickly add some CSS to your theme by adding it to this block.', 'flaton'), 'mode' => 'css', 'theme' => 'monokai', 'desc' => 'Possible modes can be found at <a href="http://ace.c9.io" target="_blank">http://ace.c9.io/</a>.')));
            $this->sections[] = array('title' => __('Header', 'flaton'), 'desc' => __('Theme options related to header section', 'flaton'), 'icon' => 'fa fa-arrow-up', 'fields' => array(array('id' => 'site-title', 'type' => 'switch', 'title' => __('Logo as site title', 'flaton'), 'subtitle' => __('Enable to load custom logo as site title in header.', 'flaton'), "default" => 0, 'on' => 'Enable', 'off' => 'Disable'), array('id' => 'custom-logo', 'type' => 'media', 'url' => true, 'title' => __('Custom Logo', 'flaton'), 'compiler' => 'true', 'desc' => __('Upload logo to use as site title', 'flaton'), 'subtitle' => __('Upload any media using the WordPress native uploader', 'flaton'), 'default' => array('url' => 'http://s.wordpress.org/style/images/codeispoetry.png')), array('id' => 'site-description', 'type' => 'switch', 'title' => __('Site Description', 'flaton'), 'subtitle' => __('Enable to show site description in header.', 'flaton'), "default" => 1, 'on' => 'Enable', 'off' => 'Disable'), array('id' => 'upgrade-notice-2', 'type' => 'info', 'notice' => true, 'style' => 'critical', 'icon' => 'fa fa-info-circle', 'title' => __('FlatOn Pro Options. <a href="http://www.webulousthemes.com/?add-to-cart=23">Upgrade Now</a> for just $39.', 'flaton'), 'desc' => __('These options are available only in FlatOn Pro version theme. Upgrade now for just $39.', 'flaton')), array('id' => 'favicon', 'type' => 'media', 'preview' => false, 'title' => __('Custom Favicon (ICO)', 'flaton'), 'desc' => __('You can upload an ico image that will represent your website\'s favicon (16px X 16px)', 'flaton')), array('id' => 'ipad-icon-retina', 'type' => 'media', 'preview' => false, 'title' => __('Apple iPad Retina Icon Upload (144px X 144px)', 'flaton'), 'desc' => __('For third-generation iPad with high-resolution Retina display', 'flaton')), array('id' => 'iphone-icon-retina', 'type' => 'media', 'preview' => false, 'title' => __('Apple iPhone Retina Icon Upload (114px X 114px)', 'flaton'), 'desc' => __('For iPhone with high-resolution Retina display', 'flaton')), array('id' => 'ipad-icon', 'type' => 'media', 'preview' => false, 'title' => __('Apple iPad Icon Upload (72px X 72px)', 'flaton'), 'desc' => __('For first- and second-generation iPad', 'flaton')), array('id' => 'iphone-icon', 'type' => 'media', 'preview' => false, 'title' => __('Apple iPhone Icon Upload (57px X 57px)', 'flaton'), 'desc' => __('For non-Retina iPhone, iPod Touch, and Android 2.1+ devices', 'flaton')), array('id' => 'google-analytics', 'type' => 'textarea', 'title' => __('Tracking Code', 'flaton'), 'subtitle' => __('Paste your Google Analytics (or other) tracking code here. This will be added into the footer template of your theme.', 'flaton'), 'desc' => 'Validate that it\'s javascript!'), array('id' => 'analytics-place', 'type' => 'switch', 'title' => __('Load Tracking Code in Footer', 'flaton'), 'subtitle' => __('Check to load analytics in footer. Uncheck to load in header.', 'flaton'), 'default' => 0, 'on' => 'In Footer', 'off' => 'In Header')));
            $this->sections[] = array('title' => __('Footer', 'flaton'), 'desc' => __('Theme options related to footer area of theme', 'flaton'), 'icon' => 'fa fa-arrow-down', 'fields' => array(array('id' => 'footer-widgets', 'type' => 'switch', 'title' => __('Enable Footer Widget Area', 'flaton'), 'subtitle' => __('Check to enable 4 Column Footer widget Area', 'flaton'), "default" => 0, 'on' => 'Enable', 'off' => 'Disable'), array('id' => 'upgrade-notice-3', 'type' => 'info', 'notice' => true, 'style' => 'critical', 'icon' => 'fa fa-info-circle', 'title' => __('FlatOn Pro Options. <a href="http://www.webulousthemes.com/?add-to-cart=23">Upgrade Now</a> for just $39.', 'flaton'), 'desc' => __('These options are available only in FlatOn Pro version theme. Upgrade now for just $39.', 'flaton')), array('id' => 'footer-text', 'type' => 'textarea', 'title' => __('Footer Copyright Text', 'flaton'), 'subtitle' => __('Footer copyright text. HTML Allowed', 'flaton'), 'desc' => __('This field is even HTML validated!', 'flaton'), 'default' => __('Powered by <a href="http://wordpress.org/" target="_blank">WordPress</a>. Theme by <a href="http://www.webulousthemes.com/">Webulous Themes</a>.', 'flaton'), 'validate' => 'html'), array('id' => 'footer-menu', 'type' => 'select', 'data' => 'menus', 'title' => __('Select Menu', 'flaton'), 'subtitle' => __('Select menu to display in footer.', 'flaton'))));
            $this->sections[] = array('title' => __('Home', 'flaton'), 'desc' => __('Theme options related to home page', 'flaton'), 'icon' => 'fa fa-home', 'fields' => array(array('id' => 'slides', 'type' => 'slides', 'title' => __('Flex Slider Options', 'flaton'), 'subtitle' => __('Unlimited slides with drag and drop sortings.', 'flaton')), array('id' => 'service-main-title', 'type' => 'text', 'title' => __('Services Main Title', 'flaton'), 'desc' => __('Enter title of this section', 'flaton'), 'default' => __('Our Services', 'flaton')), array('id' => 'service-sub-title', 'type' => 'text', 'title' => __('Services Section Sub Title', 'flaton'), 'desc' => __('Enter subtitle of this section', 'flaton'), 'default' => __('Our Professional Solutions', 'flaton')), array('id' => 'service-icon-1', 'type' => 'text', 'title' => __('1. Service Icon', 'flaton'), 'subtitle' => __('Enter Font Awesome Icon name. e.g. fa fa-bullhorn', 'flaton'), 'default' => 'fa fa-bullhorn'), array('id' => 'service-title-1', 'type' => 'text', 'title' => __('Service Title', 'flaton'), 'desc' => __('Enter title of this service', 'flaton'), 'default' => __('Research', 'flaton')), array('id' => 'service-description-1', 'type' => 'textarea', 'title' => __('1. Service Description', 'flaton'), 'validate' => 'html', 'default' => __('<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>', 'flaton')), array('id' => 'service-icon-2', 'type' => 'text', 'title' => __('2. Service Icon', 'flaton'), 'subtitle' => __('Enter Font Awesome Icon name. e.g. fa fa-bullhorn', 'flaton'), 'default' => 'fa fa-cogs'), array('id' => 'service-title-2', 'type' => 'text', 'title' => __('Service Title', 'flaton'), 'desc' => __('Enter title of this service', 'flaton'), 'default' => __('Usability', 'flaton')), array('id' => 'service-description-2', 'type' => 'textarea', 'title' => __('2. Service Description', 'flaton'), 'validate' => 'html', 'default' => __('<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper.</p><ul>   <li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li>   <li>Aliquam tincidunt mauris eu risus.</li>   <li>Vestibulum auctor dapibus neque.</li></ul>', 'flaton')), array('id' => 'service-icon-3', 'type' => 'text', 'title' => __('3. Service Icon', 'flaton'), 'subtitle' => __('Enter Font Awesome Icon name. e.g. fa fa-bullhorn', 'flaton'), 'default' => 'fa fa-twitter'), array('id' => 'service-title-3', 'type' => 'text', 'title' => __('Service Title', 'flaton'), 'desc' => __('Enter title of this service', 'flaton'), 'default' => __('Design', 'flaton')), array('id' => 'service-description-3', 'type' => 'textarea', 'title' => __('3. Service Description', 'flaton'), 'validate' => 'html', 'default' => __('<h2>Header Level 2</h2><ol><li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li><li>Aliquam tincidunt mauris eu risus.</li></ol>', 'flaton')), array('id' => 'service-icon-4', 'type' => 'text', 'title' => __('4. Service Icon', 'flaton'), 'subtitle' => __('Enter Font Awesome Icon name. e.g. fa fa-bullhorn', 'flaton'), 'default' => 'fa fa-group'), array('id' => 'service-title-4', 'type' => 'text', 'title' => __('Service Title', 'flaton'), 'desc' => __('Enter title of this service', 'flaton'), 'default' => __('Design', 'flaton')), array('id' => 'service-description-4', 'type' => 'textarea', 'title' => __('4. Service Description', 'flaton'), 'default' => __('<h2>Header Level 2</h2><ol><li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li><li>Aliquam tincidunt mauris eu risus.</li></ol>', 'flaton'), 'validate' => 'html'), array('id' => 'service-icon-5', 'type' => 'text', 'title' => __('5. Service Icon', 'flaton'), 'subtitle' => __('Enter Font Awesome Icon name. e.g. fa fa-bullhorn', 'flaton'), 'default' => 'fa fa-digg'), array('id' => 'service-title-5', 'type' => 'text', 'title' => __('Service Title', 'flaton'), 'desc' => __('Enter title of this service', 'flaton'), 'default' => __('Design', 'flaton')), array('id' => 'service-description-5', 'type' => 'textarea', 'title' => __('5. Service Description', 'flaton'), 'validate' => 'html', 'default' => __('<h2>Header Level 2</h2><ol><li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li><li>Aliquam tincidunt mauris eu risus.</li></ol>', 'flaton')), array('id' => 'team', 'type' => 'textarea', 'title' => __('Our Team', 'flaton'), 'validate' => 'html', 'default' => __('<div class="eight columns team-col"><img src="http://localhost/flaton/wp-content/uploads/2014/04/team-mem1.gif" alt="" /><p>Many desktop publishing packages and we page editors now use Lorem Ipsum as their default model text, and a search for "lorem ipsum" will uncover many websites still in their infancy. Various verions have evolved over the years,sometimes by accident.<h5><strong>Feugiat Cursus</strong>Senior Manager</h5></div><div class="eight columns team-col"><img src="http://localhost/flaton/wp-content/uploads/2014/04/team-mem2.gif" alt="" /><p>Many desktop publishing packages and we page editors now use Lorem Ipsum as their default model text, and a search for "lorem ipsum" will uncover many websites still in their infancy. Various verions have evolved over the years,sometimes by accident.<h5><strong>Kelly Clarkson</strong>Art Director</h5></div><div class="eight columns team-col"><img src="http://localhost/flaton/wp-content/uploads/2014/04/team-mem3.gif" alt="" /><p>Many desktop publishing packages and we page editors now use Lorem Ipsum as their default model text, and a search for "lorem ipsum" will uncover many websites still in their infancy. Various verions have evolved over the years,sometimes by accident.<h5><strong>Chris Pontius</strong>Designer</h5></div><div class="eight columns team-col"><img src="http://localhost/flaton/wp-content/uploads/2014/04/team-mem4.gif" alt="" /><p>Many desktop publishing packages and we page editors now use Lorem Ipsum as their default model text, and a search for "lorem ipsum" will uncover many websites still in their infancy. Various verions have evolved over the years,sometimes by accident.<h5><strong>Bom Margera</strong>Code Ninja</h5></div><br class="clear" />', 'flaton')), array('id' => 'features', 'type' => 'textarea', 'title' => __('Why Us? (or) Featrues', 'flaton'), 'subtitle' => __('A list is best, like "Why Us?", "Features".', 'flaton'), 'validate' => 'html', 'default' => __('<h2>Why Choose FlatOn</h2><p>The standard chunk of Lorem Ipsum used since the 1500s is reproduced blow for those interested. Sections 1.10.32 and 1.10.33 from "De Finibus Bonorum et Malorum" by Cicero are also reproduced in their Exact original form, accompanied. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipusm has been the industry\'s standard dummy text ever since the...</p><p class="btn-more"><a href="http://www.webulousthemes.com/?add-to-cart=23">Buy Now</a></p>', 'flaton')), array('id' => 'skill-heading', 'type' => 'text', 'title' => __('Skills Heading', 'flaton'), 'subtitle' => __('Enter heading of the skills list', 'flaton'), 'default' => __('Our Skills', 'flaton')), array('id' => 'skill-1', 'type' => 'text', 'title' => __('1. Skill Name', 'flaton'), 'subtitle' => __('Enter name of the skill', 'flaton'), 'default' => __('Web Design', 'flaton')), array('id' => 'percentage-1', 'type' => 'spinner', 'title' => __('1. Skill Percentage', 'flaton'), 'desc' => __('Enter 0 to 50', 'flaton'), 'min' => '0', 'max' => '100', 'step' => '5', 'default' => '80'), array('id' => 'skill-icon-1', 'type' => 'text', 'title' => __('1. Skill Icon', 'flaton'), 'subtitle' => __('Select icon that represents this skill', 'flaton'), 'default' => 'fa fa-bell'), array('id' => 'skill-2', 'type' => 'text', 'title' => __('2. Skill Name', 'flaton'), 'subtitle' => __('Enter name of the skill', 'flaton'), 'default' => __('Management', 'flaton')), array('id' => 'percentage-2', 'type' => 'spinner', 'title' => __('2. Skill Percentage', 'flaton'), 'desc' => __('Enter 0 to 50', 'flaton'), 'min' => '0', 'max' => '100', 'step' => '5', 'default' => '60'), array('id' => 'skill-icon-2', 'type' => 'text', 'title' => __('2. Skill Icon', 'flaton'), 'subtitle' => __('Select icon that represents this skill', 'flaton'), 'default' => 'fa fa-camera'), array('id' => 'skill-3', 'type' => 'text', 'title' => __('3. Skill Name', 'flaton'), 'subtitle' => __('Enter name of the skill', 'flaton'), 'default' => __('Design', 'flaton')), array('id' => 'percentage-3', 'type' => 'spinner', 'title' => __('3. Skill Percentage', 'flaton'), 'desc' => __('Enter 0 to 50', 'flaton'), 'min' => '0', 'max' => '100', 'step' => '5', 'default' => '90'), array('id' => 'skill-icon-3', 'type' => 'text', 'title' => __('3. Skill Icon', 'flaton'), 'subtitle' => __('Select icon that represents this skill', 'flaton'), 'default' => 'fa fa-recycle'), array('id' => 'skill-4', 'type' => 'text', 'title' => __('4. Skill Name', 'flaton'), 'subtitle' => __('Enter name of the skill', 'flaton'), 'default' => __('HTML &amp; CSS', 'flaton')), array('id' => 'percentage-4', 'type' => 'spinner', 'title' => __('4. Skill Percentage', 'flaton'), 'desc' => __('Enter 0 to 50', 'flaton'), 'min' => '0', 'max' => '100', 'step' => '5', 'default' => '50'), array('id' => 'skill-icon-4', 'type' => 'text', 'title' => __('4. Skill Icon', 'flaton'), 'subtitle' => __('Select icon that represents this skill', 'flaton'), 'default' => 'fa fa-user'), array('id' => 'skill-5', 'type' => 'text', 'title' => __('5. Skill Name', 'flaton'), 'subtitle' => __('Enter name of the skill', 'flaton'), 'default' => __('WordPress', 'flaton')), array('id' => 'percentage-5', 'type' => 'spinner', 'title' => __('5. Skill Percentage', 'flaton'), 'desc' => __('Enter 0 to 50', 'flaton'), 'min' => '0', 'max' => '100', 'step' => '5', 'default' => '80'), array('id' => 'skill-icon-5', 'type' => 'text', 'title' => __('5. Skill Icon', 'flaton'), 'subtitle' => __('Select icon that represents this skill', 'flaton'), 'default' => 'fa fa-video-camera'), array('id' => 'extra-info', 'type' => 'textarea', 'title' => __('Additional Info', 'flaton'), 'validate' => 'html', 'default' => __('<h2>Top Features</h2><img src="http://localhost/flaton/wp-content/uploads/2013/03/soworthloving-wallpaper-300x187.jpg" alt="" class="alignleft" /><h5><strong>Lorem ipsum dolor sit amet</strong></h5><p>It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p><p class="btn-more"><a href="http://www.webulousthemes.com/?add-to-cart=23">Buy Now</a></p>', 'flaton')), array('id' => 'upgrade-notice-4', 'type' => 'info', 'notice' => true, 'style' => 'critical', 'icon' => 'fa fa-info-circle', 'title' => __('FlatOn Pro Options. <a href="http://www.webulousthemes.com/?add-to-cart=23">Upgrade Now</a> for just $39.', 'flaton'), 'desc' => __('These options are available only in FlatOn Pro version theme. Upgrade now for just $39.', 'flaton')), array("id" => "homepage_blocks", "type" => "sorter", "title" => "Homepage Layout Manager", "desc" => "Organize how you want the layout to appear on the homepage", "compiler" => 'true', 'options' => array("enabled" => array("placebo" => "placebo", "slider" => "Slider", "services" => "Services", "team" => "Team Members", "features" => "Why Us and Skills", "extra-info" => "Additioanl Section for Extra information", 'recent_posts' => 'Recent Posts'), "disabled" => array("placebo" => "placebo", 'default' => "Default content"))), array('id' => 'home-pagebuilder', 'type' => 'switch', 'title' => __('Disable Home Options.', 'flaton'), 'subtitle' => __('Check this to disable options for home page content and use page builder to enter content', 'flaton'), "default" => 0, 'on' => 'Enable', 'off' => 'Disable'), array('id' => 'home-flexslider', 'type' => 'text', 'title' => __('Enter FlexSlider shortcode', 'flaton'), 'subtitle' => __('FlexSlider for Home Page', 'flaton'), 'desc' => __('Enter a FlexSlider shortcode to be displayed on Home Page', 'flaton'))));
            $this->sections[] = array('title' => __('Blog', 'flaton'), 'desc' => __('Blog options for site', 'flaton'), 'icon' => 'fa fa-file', 'fields' => array(array('id' => 'featured-image', 'type' => 'switch', 'title' => __('Featured Image', 'flaton'), 'subtitle' => __('Check to show featured image', 'flaton'), "default" => 0, 'on' => 'Show', 'off' => 'Hide'), array('id' => 'single-featured-image', 'type' => 'switch', 'title' => __('Single Post Featured Image', 'flaton'), 'subtitle' => __('Check to show featured image on single post', 'flaton'), "default" => 0, 'on' => 'Show', 'off' => 'Hide'), array('id' => 'upgrade-notice-5', 'type' => 'info', 'notice' => true, 'style' => 'critical', 'icon' => 'fa fa-info-circle', 'title' => __('FlatOn Pro Options. <a href="http://www.webulousthemes.com/?add-to-cart=23">Upgrade Now</a> for just $39.', 'flaton'), 'desc' => __('These options are available only in FlatOn Pro version theme. Upgrade now for just $39.', 'flaton')), array('id' => 'show-author-bio', 'type' => 'switch', 'title' => __('Author Bio Box', 'flaton'), 'subtitle' => __('Show Author information box below single post.', 'flaton'), "default" => 0, 'on' => 'Show', 'off' => 'Hide'), array('id' => 'show-social-sharing', 'type' => 'switch', 'title' => __('Social Sharing Box', 'flaton'), 'subtitle' => __('Show social sharing options box below single post.', 'flaton'), "default" => 0, 'on' => 'Show', 'off' => 'Hide'), array('id' => 'show-related-posts', 'type' => 'switch', 'title' => __('Related Posts', 'flaton'), 'subtitle' => __('Show related posts.', 'flaton'), "default" => 0, 'on' => 'Show', 'off' => 'Hide'), array('id' => 'show-comments', 'type' => 'switch', 'title' => __('Comments', 'flaton'), 'subtitle' => __('Show comments.', 'flaton'), "default" => 1, 'on' => 'Show', 'off' => 'Hide'), array('id' => 'show-post-meta', 'type' => 'switch', 'title' => __('Post Meta', 'flaton'), 'subtitle' => __('Show post meta.', 'flaton'), "default" => 1, 'on' => 'Show', 'off' => 'Hide'), array('id' => 'excerpt-length', 'type' => 'text', 'title' => __('Excerpt Length', 'flaton'), 'subtitle' => __('Input the number of words you want to cut from the content to be the excerpt of search and archive page.', 'flaton'), 'default' => 100)));
            $this->sections[] = array('title' => __('Support', 'flaton'), 'desc' => __('Documentation', 'flaton'), 'icon' => 'fa fa-user', 'fields' => array(array('id' => 'support-notice', 'type' => 'info', 'style' => 'critical', 'title' => __('Support and Documentation.', 'flaton'), 'desc' => __('Please refer to documentation page of this site\'s demo to know how to use theme options specific to this theme. For professional support about customization and other advices from theme author, Please <a href="http://www.webulousthemes.com/?add-to-cart=23">Upgrade</a> to FlatOn Pro Version', 'flaton'))));
            $this->sections[] = array('title' => __('Why Upgrade?', 'flaton'), 'desc' => __('Features you\'ll get in Pro Version', 'flaton'), 'icon' => 'fa fa-magic', 'fields' => array(array('id' => 'pro-features', 'type' => 'raw', 'content' => $featuresHTML)));
            $this->sections[] = array('title' => __('Social Sharing Box', 'flaton'), 'desc' => __('Social Sharing Icons Setup', 'flaton'), 'icon' => 'fa fa-share', 'fields' => array(array('id' => 'ss_box_facebook', 'type' => 'switch', 'title' => 'Facebook', 'subtitle' => 'Show facebook sharing option in single posts.', 'default' => 0, 'on' => 'Show', 'off' => 'Hide'), array('id' => 'ss_box_twitter', 'type' => 'switch', 'title' => 'Twitter', 'subtitle' => 'Show twitter sharing option in single posts.', 'default' => 0, 'on' => 'Show', 'off' => 'Hide'), array('id' => 'ss_box_linkedin', 'type' => 'switch', 'title' => 'LinkedIn', 'subtitle' => 'Show linkedin sharing option in single posts.', 'default' => 0, 'on' => 'Show', 'off' => 'Hide'), array('id' => 'ss_box_googleplus', 'type' => 'switch', 'title' => 'Google Plus', 'subtitle' => 'Show googleplus sharing option in single posts.', 'default' => 0, 'on' => 'Show', 'off' => 'Hide'), array('id' => 'ss_box_email', 'type' => 'switch', 'title' => 'Email', 'subtitle' => 'Show email sharing option in single posts.', 'default' => 0, 'on' => 'Show', 'off' => 'Hide')));
            $this->sections[] = array('title' => __('Social Network', 'flaton'), 'desc' => __('Social Network Links', 'flaton'), 'icon' => 'fa fa-share', 'fields' => array(array('id' => 'social-digg', 'type' => 'text', 'title' => 'Digg', 'subtitle' => 'Your Digg link'), array('id' => 'social-dribble', 'type' => 'text', 'title' => 'Dribble', 'subtitle' => 'Your Dribble link'), array('id' => 'social-facebook', 'type' => 'text', 'title' => 'Facebook', 'subtitle' => 'Your Facebook link'), array('id' => 'social-flickr', 'type' => 'text', 'title' => 'Flickr', 'subtitle' => 'Your Flickr link'), array('id' => 'social-google', 'type' => 'text', 'title' => 'Google', 'subtitle' => 'Your Google link'), array('id' => 'social-linkedin', 'type' => 'text', 'title' => 'LinkedIn', 'subtitle' => 'Your LinkedIn link'), array('id' => 'social-pinterest', 'type' => 'text', 'title' => 'Pinterest', 'subtitle' => 'Your Pinterest link'), array('id' => 'social-rss', 'type' => 'text', 'title' => 'RSS', 'subtitle' => 'Your RSS link'), array('id' => 'social-skype', 'type' => 'text', 'title' => 'Skype', 'subtitle' => 'Your Skype link'), array('id' => 'social-tumblr', 'type' => 'text', 'title' => 'Tumblr', 'subtitle' => 'Your Tumblr link'), array('id' => 'social-twitter', 'type' => 'text', 'title' => 'Twitter', 'subtitle' => 'Your Twitter link'), array('id' => 'social-vimeo', 'type' => 'text', 'title' => 'Vimeo', 'subtitle' => 'Your Vimeo link'), array('id' => 'social-youtube', 'type' => 'text', 'title' => 'YouTube', 'subtitle' => 'Your YouTube link')));
            $this->sections[] = array('title' => __('Flex Slider', 'flaton'), 'desc' => __('Flex Slider Settings', 'flaton'), 'icon' => 'fa fa-photo', 'fields' => array(array('id' => 'upgrade-notice-6', 'type' => 'info', 'notice' => true, 'style' => 'critical', 'icon' => 'fa fa-info-circle', 'title' => __('FlatOn Pro Options. <a href="http://www.webulousthemes.com/?add-to-cart=23">Upgrade Now</a> for just $39.', 'flaton'), 'desc' => __('These options are available only in FlatOn Pro version theme. Upgrade now for just $39.', 'flaton')), array('id' => 'flexslider_animation', 'type' => 'select', 'title' => 'Animation', 'subtitle' => 'Select slider animation effect.', 'default' => '1', 'options' => array(1 => 'fade', 2 => 'slide')), array('id' => 'flexslider_slide_direction', 'type' => 'select', 'title' => 'Slide Direction', 'subtitle' => 'Select direction to slide (if you are using the "Slide" animation)', 'default' => '1', 'options' => array('1' => 'horizontal', '2' => 'vertical')), array('id' => 'flexslider_slideshow_speed', 'type' => 'spinner', 'title' => 'Slideshow Speed', 'subtitle' => 'Set the delay between each slide animation (in milliseconds)', 'default' => '7000', 'min' => '0', 'max' => '10000', 'step' => '100'), array('id' => 'flexslider_animation_speed', 'type' => 'spinner', 'title' => 'Animation Speed', 'subtitle' => 'Set the duration of each slide animation (in milliseconds)', 'default' => '600', 'min' => '0', 'max' => '10000', 'step' => '100'), array('id' => 'flexslider_slideshow', 'type' => 'switch', 'title' => 'Slideshow', 'subtitle' => 'Animate the slideshows automatically', 'default' => 0, 'on' => 'Yes', 'off' => 'No'), array('id' => 'flexslider_smooth_height', 'type' => 'switch', 'title' => 'Auto Height', 'subtitle' => 'Adjust the height of the slideshow to the height of the current slide', 'default' => 0, 'on' => 'Yes', 'off' => 'No'), array('id' => 'flexslider_direction_nav', 'type' => 'switch', 'title' => 'Previous / Next Buttons', 'subtitle' => 'Display the "Previous/Next" Buttons', 'default' => 0, 'on' => 'Show', 'off' => 'Hide'), array('id' => 'flexslider_control_nav', 'type' => 'switch', 'title' => 'Pagination', 'subtitle' => 'Display the slideshow pagination', 'default' => 0, 'on' => 'Show', 'off' => 'Hide'), array('id' => 'flexslider_keyboard_nav', 'type' => 'switch', 'title' => 'Keyboard Navigation', 'subtitle' => 'Enable keyboard navigation', 'default' => 0, 'on' => 'Enable', 'off' => 'Disable'), array('id' => 'flexslider_mousewheel_nav', 'type' => 'switch', 'title' => 'Mouse Wheel Navigation', 'subtitle' => 'Enable the mousewheel navigation', 'default' => 0, 'on' => 'Enable', 'off' => 'Disable'), array('id' => 'flexslider_pauseplay', 'type' => 'switch', 'title' => 'Pause / Play', 'subtitle' => 'Enable the "Pause/Play" event', 'default' => 0, 'on' => 'Enable', 'off' => 'Disable'), array('id' => 'flexslider_randomize', 'type' => 'switch', 'title' => 'Random Slides', 'subtitle' => 'Randomize the order of slides in slideshows', 'default' => 0, 'on' => 'Yes', 'off' => 'No'), array('id' => 'flexslider_animation_loop', 'type' => 'switch', 'title' => 'Loop Slideshow', 'subtitle' => 'Loop the slideshow animations', 'default' => 0, 'on' => 'Yes', 'off' => 'No'), array('id' => 'flexslider_pause_on_action', 'type' => 'switch', 'title' => 'Pause On Action', 'subtitle' => 'Pause the slideshow autoplay when using the pagination or "Previous/Next" navigation', 'default' => 0, 'on' => 'Yes', 'off' => 'No'), array('id' => 'flexslider_pause_on_hover', 'type' => 'switch', 'title' => 'Pause On Hover', 'subtitle' => 'Pause the slideshow autoplay when hovering over a slide', 'default' => 0, 'on' => 'Yes', 'off' => 'No'), array('id' => 'flexslider_prev_text', 'type' => 'text', 'title' => '"Previous" Button', 'subtitle' => 'The text to display on the "Previous" button.', 'default' => 'Previous'), array('id' => 'flexslider_next_text', 'type' => 'text', 'title' => '"Next" Button', 'subtitle' => 'The text to display on the "Next" button.', 'default' => 'Next'), array('id' => 'flexslider_play_text', 'type' => 'text', 'title' => '"Play" Button', 'subtitle' => 'The text to display on the "Play" button.', 'default' => 'Play'), array('id' => 'flexslider_pause_text', 'type' => 'text', 'title' => '"Pause" Button', 'subtitle' => 'The text to display on the "Pause" button.', 'default' => 'Pause')));
            $this->sections[] = array('title' => __('Light Box', 'flaton'), 'desc' => __('Light Box Settings', 'flaton'), 'icon' => 'fa fa-lightbulb-o', 'fields' => array(array('id' => 'upgrade-notice-7', 'type' => 'info', 'notice' => true, 'style' => 'critical', 'icon' => 'fa fa-info-circle', 'title' => __('FlatOn Pro Options. <a href="http://www.webulousthemes.com/?add-to-cart=23">Upgrade Now</a> for just $39.', 'flaton'), 'desc' => __('These options are available only in FlatOn Pro version theme. Upgrade now for just $39.', 'flaton')), array('id' => 'lightbox_theme', 'type' => 'select', 'title' => 'Lightbox Theme', 'subtitle' => '', 'default' => '1', 'options' => array('1' => 'pp_default', '2' => 'light_rounded', '3' => 'dark_rounded', '4' => 'light_square', '5' => 'dark_square', '6' => 'facebook')), array('id' => 'lightbox_animation_speed', 'type' => 'select', 'title' => 'Animation Speed', 'subtitle' => '', 'default' => '1', 'options' => array('1' => 'Fast', '2' => 'Slow', '3' => 'Normal')), array('id' => 'lightbox_slideshow', 'type' => 'spinner', 'title' => 'Autoplay Gallery Speed', 'subtitle' => 'If autoplay is set to true, select the slideshow speed in ms. (Default: 5000, 500 ms = 1 second)', 'default' => '5000', 'min' => '1000', 'max' => '10000', 'step' => '100'), array('id' => 'lightbox_autoplay_slideshow', 'type' => 'switch', 'title' => 'Autoplay Gallery', 'subtitle' => 'Check to autoplay the lightbox gallery', 'default' => 0, 'on' => 'Yes', 'off' => 'No'), array('id' => 'lightbox_opacity', 'type' => 'text', 'title' => 'Background Opacity', 'subtitle' => 'Enter 0.1 to 1.0', 'default' => '0.7'), array('id' => 'lightbox_show_title', 'type' => 'switch', 'title' => 'Title', 'subtitle' => 'Select visibility of the title', 'default' => 1, 'on' => 'Show', 'off' => 'Hide'), array('id' => 'lightbox_overlay_gallery', 'type' => 'switch', 'title' => 'Show Gallery Thumbnails', 'subtitle' => 'Check to show gallery thumbnails', 'default' => 1, 'on' => 'Show', 'off' => 'Hide'), array('id' => 'lightbox_social_tools', 'type' => 'switch', 'title' => 'Social Icons', 'subtitle' => 'Check to show social sharing icons', 'default' => 1, 'on' => 'Show', 'off' => 'Hide')));
            $this->sections[] = array('title' => __('Typography', 'flaton'), 'desc' => __('Typography and Link Color Settings', 'flaton'), 'icon' => 'fa fa-font', 'fields' => array(array('id' => 'upgrade-notice-8', 'type' => 'info', 'notice' => true, 'style' => 'critical', 'icon' => 'fa fa-info-circle', 'title' => __('FlatOn Pro Options. <a href="http://www.webulousthemes.com/?add-to-cart=23">Upgrade Now</a> for just $39.', 'flaton'), 'desc' => __('These options are available only in FlatOn Pro version theme. Upgrade now for just $39.', 'flaton')), array('id' => 'custom-typography', 'type' => 'switch', 'title' => __('Enable Custom Typography', 'flaton'), 'subtitle' => __('Turn on to customize typography and turn off for default typography.', 'flaton'), 'default' => 0, 'on' => 'Enable', 'off' => 'Disable'), array('id' => 'opt-link-color', 'type' => 'link_color', 'title' => __('Links Color Option', 'flaton'), 'subtitle' => __('Only color validation can be done on this field type', 'flaton'), 'desc' => __('This is the description field, again good for additional info.', 'flaton'), 'default' => array('regular' => '#ff4200', 'hover' => '#ff4200', 'active' => '#ff4200', 'visited' => '#ff4200')), array('id' => 'dummy-typography', 'type' => 'typography', 'title' => __('Font Preview', 'flaton'), 'google' => true, 'text-align' => false, 'subsets' => false, 'line-height' => false, 'color' => false, 'subtitle' => __('Preview Google fonts using this field. Sets nothing, just preview.', 'flaton'), 'default' => array('font-family' => 'Abel', 'font-size' => '24px')), array('id' => 'bd-typography', 'type' => 'typography', 'title' => __('Body Font', 'flaton'), 'google' => true, 'text-align' => false, 'subsets' => false, 'line-height' => false, 'preview' => false, 'subtitle' => __('Specify the body font properties.', 'flaton'), 'default' => array('color' => '#333', 'font-style' => '400', 'font-family' => 'Roboto', 'google' => true, 'font-size' => '14px', 'line-height' => '1.4')), array('id' => 'nav-typography', 'type' => 'typography', 'title' => __('Navigation Font', 'flaton'), 'google' => true, 'text-align' => false, 'subsets' => false, 'line-height' => false, 'preview' => false, 'subtitle' => __('Specify the navigation font properties.', 'flaton'), 'default' => array('color' => '#ffffff', 'font-style' => '400', 'font-family' => 'Roboto', 'google' => true, 'font-size' => '14px')), array('id' => 'h1-typography', 'type' => 'typography', 'title' => __('H1 Font Properties', 'flaton'), 'google' => true, 'text-align' => false, 'subsets' => false, 'line-height' => false, 'preview' => false, 'subtitle' => __('Specify the h1 font properties.', 'flaton'), 'default' => array('color' => '#333', 'font-style' => '400', 'font-family' => 'Bree Serif', 'google' => true, 'font-size' => '47.6px')), array('id' => 'h2-typography', 'type' => 'typography', 'title' => __('H2 Font Properties', 'flaton'), 'google' => true, 'text-align' => false, 'subsets' => false, 'line-height' => false, 'preview' => false, 'subtitle' => __('Specify the h2 font properties.', 'flaton'), 'default' => array('color' => '#333', 'font-style' => '400', 'font-family' => 'Bree Serif', 'google' => true, 'font-size' => '30.8px')), array('id' => 'h3-typography', 'type' => 'typography', 'title' => __('H3 Font Properties', 'flaton'), 'google' => true, 'text-align' => false, 'subsets' => false, 'line-height' => false, 'preview' => false, 'subtitle' => __('Specify the h3 font properties.', 'flaton'), 'default' => array('color' => '#333', 'font-style' => '400', 'font-family' => 'Bree Serif', 'google' => true, 'font-size' => '23.8px')), array('id' => 'h4-typography', 'type' => 'typography', 'title' => __('H4 Font Properties', 'flaton'), 'google' => true, 'text-align' => false, 'subsets' => false, 'line-height' => false, 'preview' => false, 'subtitle' => __('Specify the h4 font properties.', 'flaton'), 'default' => array('color' => '#333', 'font-style' => '400', 'font-family' => 'Bree Serif', 'google' => true, 'font-size' => '21px')), array('id' => 'h5-typography', 'type' => 'typography', 'title' => __('H5 Font Properties', 'flaton'), 'google' => true, 'text-align' => false, 'subsets' => false, 'line-height' => false, 'preview' => false, 'subtitle' => __('Specify the h5 font properties.', 'flaton'), 'default' => array('color' => '#333', 'font-style' => '400', 'font-family' => 'Bree Serif', 'google' => true, 'font-size' => '18.2px')), array('id' => 'h6-typography', 'type' => 'typography', 'title' => __('H6 Font Properties', 'flaton'), 'google' => true, 'text-align' => false, 'subsets' => false, 'line-height' => false, 'preview' => false, 'subtitle' => __('Specify the h6 font properties.', 'flaton'), 'default' => array('color' => '#333', 'font-style' => '400', 'font-family' => 'Bree Serif', 'google' => true, 'font-size' => '16.1px'))));
        }
Exemplo n.º 29
0
        if (!is_wp_error($user) && !$reauth) {
            if ($interim_login) {
                $message = '<p class="message">' . __('You have logged in successfully.') . '</p>';
                $interim_login = '******';
                login_header('', $message);
                ?>
			</div>
			<?php 
                /** This action is documented in wp-login.php */
                do_action('login_footer');
                ?>
			<?php 
                if ($customize_login) {
                    ?>
				<script type="text/javascript">setTimeout( function(){ new wp.customize.Messenger({ url: '<?php 
                    echo wp_customize_url();
                    ?>
', channel: 'login' }).send('login') }, 1000 );</script>
			<?php 
                }
                ?>
			</body></html>
<?php 
                exit;
            }
            if (empty($redirect_to) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url()) {
                // If the user doesn't belong to a blog, send them to user admin. If the user can't edit posts, send them to their profile.
                if (is_multisite() && !get_active_blog_for_user($user->ID) && !is_super_admin($user->ID)) {
                    $redirect_to = user_admin_url();
                } elseif (is_multisite() && !$user->has_cap('read')) {
                    $redirect_to = get_dashboard_url($user->ID);
Exemplo n.º 30
0
function redux_setup_framework_options()
{
    $args = array();
    // For use with a tab below
    $tabs = array();
    ob_start();
    $ct = wp_get_theme();
    $theme_data = $ct;
    $item_name = $theme_data->get('Name');
    $tags = $ct->Tags;
    $screenshot = $ct->get_screenshot();
    $class = $screenshot ? 'has-screenshot' : '';
    $customize_title = sprintf(__('Customize &#8220;%s&#8221;', 'redux-framework'), $ct->display('Name'));
    ?>
		<div id="current-theme" class="<?php 
    echo esc_attr($class);
    ?>
">
			<?php 
    if ($screenshot) {
        ?>
				<?php 
        if (current_user_can('edit_theme_options')) {
            ?>
				<a href="<?php 
            echo wp_customize_url();
            ?>
" class="load-customize hide-if-no-customize" title="<?php 
            echo esc_attr($customize_title);
            ?>
">
					<img src="<?php 
            echo esc_url($screenshot);
            ?>
" alt="<?php 
            esc_attr_e('Current theme preview');
            ?>
" />
				</a>
				<?php 
        }
        ?>
				<img class="hide-if-customize" src="<?php 
        echo esc_url($screenshot);
        ?>
" alt="<?php 
        esc_attr_e('Current theme preview');
        ?>
" />
			<?php 
    }
    ?>

			<h4>
				<?php 
    echo $ct->display('Name');
    ?>
			</h4>

			<div>
				<ul class="theme-info">
					<li><?php 
    printf(__('By %s', 'redux-framework'), $ct->display('Author'));
    ?>
</li>
					<li><?php 
    printf(__('Version %s', 'redux-framework'), $ct->display('Version'));
    ?>
</li>
					<li><?php 
    echo '<strong>' . __('Tags', 'redux-framework') . ':</strong> ';
    printf($ct->display('Tags'));
    ?>
</li>
				</ul>
				<p class="theme-description"><?php 
    echo $ct->display('Description');
    ?>
</p>
				<?php 
    if ($ct->parent()) {
        printf(' <p class="howto">' . __('This <a href="%1$s">child theme</a> requires its parent theme, %2$s.', 'redux-framework') . '</p>', __('http://codex.wordpress.org/Child_Themes', 'redux-framework'), $ct->parent()->display('Name'));
    }
    ?>
				
			</div>

		</div>

		<?php 
    $item_info = ob_get_contents();
    ob_end_clean();
    // Setting dev mode to true allows you to view the class settings/info in the panel.
    // Default: true
    // $args['dev_mode'] = true;
    // Set the icon for the dev mode tab.
    // If $args['icon_type'] = 'image', this should be the path to the icon.
    // If $args['icon_type'] = 'iconfont', this should be the icon name.
    // Default: info-sign
    //$args['dev_mode_icon'] = 'info-sign';
    // Set the class for the dev mode tab icon.
    // This is ignored unless $args['icon_type'] = 'iconfont'
    // Default: null
    $args['dev_mode_icon_class'] = 'icon-large';
    // Set a custom option name. Don't forget to replace spaces with underscores!
    $args['opt_name'] = 'redux';
    // Setting system info to true allows you to view info useful for debugging.
    // Default: true
    $args['system_info'] = false;
    // Set the icon for the system info tab.
    // If $args['icon_type'] = 'image', this should be the path to the icon.
    // If $args['icon_type'] = 'iconfont', this should be the icon name.
    // Default: info-sign
    //$args['system_info_icon'] = 'info-sign';
    // Set the class for the system info tab icon.
    // This is ignored unless $args['icon_type'] = 'iconfont'
    // Default: null
    $args['system_info_icon_class'] = 'icon-large';
    $theme = wp_get_theme();
    $args['display_name'] = $theme->get('Name');
    //$args['database'] = "theme_mods_expanded";
    $args['display_version'] = $theme->get('Version');
    // If you want to use Google Webfonts, you MUST define the api key.
    $args['google_api_key'] = 'AIzaSyAX_2L_UzCDPEnAHTG7zhESRVpMPS4ssII';
    // Define the starting tab for the option panel.
    // Default: '0';
    //$args['last_tab'] = '0';
    // Define the option panel stylesheet. Options are 'standard', 'custom', and 'none'
    // If only minor tweaks are needed, set to 'custom' and override the necessary styles through the included custom.css stylesheet.
    // If replacing the stylesheet, set to 'none' and don't forget to enqueue another stylesheet!
    // Default: 'standard'
    //$args['admin_stylesheet'] = 'standard';
    // Setup custom links in the footer for share icons
    $args['share_icons']['twitter'] = array('link' => 'http://twitter.com/thinkupthemes', 'title' => 'Follow on Twitter', 'img' => REDUX_URL . 'assets/img/social/Twitter.png');
    $args['share_icons']['facebook'] = array('link' => 'http://www.facebook.com/thinkupthemes', 'title' => 'Join on Facebook', 'img' => REDUX_URL . 'assets/img/social/Facebook.png');
    // Enable the import/export feature.
    // Default: true
    // $args['show_import_export'] = false;
    // Set the icon for the import/export tab.
    // If $args['icon_type'] = 'image', this should be the path to the icon.
    // If $args['icon_type'] = 'iconfont', this should be the icon name.
    // Default: refresh
    //$args['import_icon'] = 'refresh';
    // Set the class for the import/export tab icon.
    // This is ignored unless $args['icon_type'] = 'iconfont'
    // Default: null
    $args['import_icon_class'] = 'icon-large';
    // Set a custom menu icon.
    //$args['menu_icon'] = '';
    // Set a custom title for the options page.
    // Default: Options
    $args['menu_title'] = __('Theme Options', 'redux-framework');
    // Set a custom page title for the options page.
    // Default: Options
    $args['page_title'] = __('Options', 'redux-framework');
    // Set a custom page slug for options page (wp-admin/themes.php?page=***).
    // Default: redux_options
    $args['page_slug'] = 'redux_options';
    $args['default_show'] = true;
    $args['default_mark'] = '*';
    // Set a custom page capability.
    // Default: manage_options
    //$args['page_cap'] = 'manage_options';
    // Set the menu type. Set to "menu" for a top level menu, or "submenu" to add below an existing item.
    // Default: menu
    // $args['page_type'] = 'submenu';
    // Set the parent menu.
    // Default: themes.php
    // A list of available parent menus is available at http://codex.wordpress.org/Function_Reference/add_submenu_page#Parameters
    //$args['page_parent'] = 'options_general.php';
    // Set a custom page location. This allows you to place your menu where you want in the menu order.
    // Must be unique or it will override other items!
    // Default: null
    //$args['page_position'] = null;
    // Set a custom page icon class (used to override the page icon next to heading)
    //$args['page_icon'] = 'icon-themes';
    // Set the icon type. Set to "iconfont" for Font Awesome, or "image" for traditional.
    // Redux no longer ships with standard icons!
    // Default: iconfont
    //$args['icon_type'] = 'image';
    // Disable the panel sections showing as submenu items.
    // Default: true
    $args['allow_sub_menu'] = false;
    // Set ANY custom page help tabs, displayed using the new help tab API. Tabs are shown in order of definition.
    /*    $args['help_tabs'][] = array(
            'id' => 'redux-opts-1',
            'title' => __('Theme Information 1', 'redux-framework'),
            'content' => __('<p>This is the tab content, HTML is allowed.</p>', 'redux-framework')
        );
        $args['help_tabs'][] = array(
            'id' => 'redux-opts-2',
            'title' => __('Theme Information 2', 'redux-framework'),
            'content' => __('<p>This is the tab content, HTML is allowed.</p>', 'redux-framework')
        );
    
        // Set the help sidebar for the options page.                                        
        $args['help_sidebar'] = __('<p>This is the sidebar content, HTML is allowed.</p>', 'redux-framework');
    */
    // Add HTML before the form.
    /*    if (!isset($args['global_variable']) || $args['global_variable'] !== false ) {
        	if (!empty($args['global_variable'])) {
        		$v = $args['global_variable'];
        	} else {
        		$v = str_replace("-", "_", $args['opt_name']);
        	}
        	$args['intro_text'] = __('<p>Did you know that Redux sets a global variable for you? To access any of your saved options from within your code you can use your global variable: <strong>$'.$v.'</strong></p>', 'redux-framework');
        } else {
        	$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>', 'redux-framework');
        }
    */
    // Add content after the form.
    /*    $args['footer_text'] = __('<p>This text is displayed below the options panel. It isn\'t required, but more info is always better! The footer_text field accepts all HTML.</p>', 'redux-framework');
    */
    // Set footer/credit line.
    $args['footer_credit'] = __('<p>Thank you for creating with <a href="http://wordpress.org/">WordPress</a></p>', 'redux-framework');
    $sections = array();
    //Background Patterns Reader
    $sample_patterns_path = REDUX_DIR . 'sample/patterns/';
    $sample_patterns_url = REDUX_URL . 'sample/patterns/';
    $sample_patterns = array();
    if (is_dir($sample_patterns_path)) {
        if ($sample_patterns_dir = opendir($sample_patterns_path)) {
            $sample_patterns = array();
            while (($sample_patterns_file = readdir($sample_patterns_dir)) !== false) {
                if (stristr($sample_patterns_file, '.png') !== false || stristr($sample_patterns_file, '.jpg') !== false) {
                    $name = explode(".", $sample_patterns_file);
                    $name = str_replace('.' . end($name), '', $sample_patterns_file);
                    $sample_patterns[] = array('alt' => $name, 'img' => $sample_patterns_url . $sample_patterns_file);
                }
            }
        }
    }
    /*-----------------------------------------------------------------------------------
    	 	1.	General Settings
    	-----------------------------------------------------------------------------------*/
    $sections[] = array('title' => __('General Settings', 'redux-framework'), 'header' => __('Welcome to the Simple Options Framework Demo', 'redux-framework'), 'desc' => __('<span class="redux-title">Logo & Favicon Settings</span>', 'redux-framework'), 'icon_class' => 'icon-large', 'icon' => 'wrench', 'fields' => array(array('title' => __('Logo Settings', 'redux-framework'), 'subtitle' => __('If you have an image logo you can upload it, otherwise you can display a text site title', 'redux-framework'), 'id' => 'thinkup_general_logoswitch', 'type' => 'radio', 'options' => array('option1' => 'Custom Image Logo', 'option2' => 'Display Site Title')), array('title' => __('Custom Image Logo', 'redux-framework'), 'subtitle' => __('Upload image logo or specify the image url.<br />Name the logo image logo.png.', 'redux-framework'), 'id' => 'thinkup_general_logolink', 'type' => 'media', 'url' => true), array('title' => __('Custom Image Logo (Retina display)', 'redux-framework'), 'subtitle' => __('Upload a logo image twice the size of logo.png. Name the logo image logo@2x.png.', 'redux-framework'), 'id' => 'thinkup_general_logolinkretina', 'type' => 'media', 'url' => true), array('title' => __('Site Title', 'redux-framework'), 'subtitle' => __('Input a message to display as your site title. Leave blank to display your default site title.', 'redux-framework'), 'id' => 'thinkup_general_sitetitle', 'type' => 'text', 'validate' => 'html'), array('title' => __('Site Description', 'redux-framework'), 'subtitle' => __('Input a message to display as site description. Leave blank to display default site description.', 'redux-framework'), 'id' => 'thinkup_general_sitedescription', 'type' => 'text', 'validate' => 'html'), array('title' => __('Custom Favicon', 'redux-framework'), 'subtitle' => __('Uploads favicon or specify the favicon url.', 'redux-framework'), 'id' => 'thinkup_general_faviconlink', 'type' => 'media', 'url' => true), array('id' => 'info_page_structure', 'type' => 'info', 'style' => 'help', 'desc' => __('<span class="redux-title">Page Structure</span>', 'redux-framework')), array('title' => __('Page Layout', 'redux-framework'), 'subtitle' => __('Select page layout. This will only be applied to published Pages (I.e. Not posts, blog or home).', 'redux-framework'), 'id' => 'thinkup_general_layout', 'type' => 'image_select', 'compiler' => true, 'default' => '0', 'options' => array('option1' => array('alt' => '1 Column', 'img' => REDUX_URL . 'assets/img/1col.png'), 'option2' => array('alt' => '2 Column Left', 'img' => REDUX_URL . 'assets/img/2cl.png'), 'option3' => array('alt' => '2 Column Right', 'img' => REDUX_URL . 'assets/img/2cr.png'))), array('title' => __('Select a Sidebar', 'redux-framework'), 'subtitle' => __('Choose a sidebar to use with the page layout.', 'redux-framework'), 'id' => 'thinkup_general_sidebars', 'type' => 'select', 'data' => 'sidebars'), array('title' => __('Enable Responsive Layout', 'redux-framework'), 'subtitle' => __('Check to enable responsive layout.', 'redux-framework'), 'id' => 'thinkup_general_responsiveswitch', 'type' => 'switch', 'default' => '0'), array('title' => __('Enable Breadcrumbs', 'redux-framework'), 'subtitle' => __('Switch on to enable breadcrumbs.', 'redux-framework'), 'id' => 'thinkup_general_breadcrumbswitch', 'type' => 'switch', 'default' => '0'), array('title' => __('Breadcrumb Delimiter', 'redux-framework'), 'subtitle' => __('Specify a custom delimiter to use instead of the default &#40; / &#41; when displaying breadcrumbs.', 'redux-framework'), 'default' => '/', 'id' => 'thinkup_general_breadcrumbdelimeter', 'type' => 'text', 'validate' => 'html', 'fold' => array('thinkup_general_breadcrumbswitch' => 1)), array('id' => 'info_page_structure', 'type' => 'info', 'style' => 'help', 'desc' => __('<span class="redux-title">Custom Code</span>', 'redux-framework')), array('title' => __('Custom CSS', 'redux-framework'), 'subtitle' => __('Developers can use this to apply custom css. Use this to control, by styling of any element on the webpage by targeting id&#39;s and classes.', 'redux-framework'), 'id' => 'thinkup_general_customcss', 'type' => 'textarea', 'validate' => 'css'), array('title' => __('Custom jQuery - Front End', 'redux-framework'), 'subtitle' => __('Developers can use this to apply custom jQuery which will only affect the front end of the website.<br /><br />Use this to control your site by adding great jQuery features.', 'redux-framework'), 'id' => 'thinkup_general_customjavafront', 'type' => 'textarea', 'validate' => 'html'), array('id' => 'demo-intro', 'type' => 'info', 'style' => 'help', 'header' => __('This is a header.', 'redux-framework'), 'desc' => __('<span class="redux-title">Demo Content</span>', 'redux-framework')), array('title' => __('Enable Demo Content?', 'redux-framework'), 'desc' => __('Check to enable demo content.', 'redux-framework'), 'id' => 'thinkup_general_democontent', 'type' => 'checkbox', 'default' => '0')));
    $sections[] = array('type' => 'divide');
    /*-----------------------------------------------------------------------------------
    	 	2.1.	Home Settings				
    	-----------------------------------------------------------------------------------*/
    $sections[] = array('title' => __('Homepage', 'redux-framework'), 'desc' => __('<span class="redux-title">Control Homepage Layout</span>', 'redux-framework'), 'icon_class' => 'icon-large', 'icon' => 'home', 'fields' => array(array('title' => __('Homepage Layout', 'redux-framework'), 'subtitle' => __('Select page layout. This will only be applied to the home page.', 'redux-framework'), 'id' => 'thinkup_homepage_layout', 'type' => 'image_select', 'compiler' => true, 'default' => '0', 'options' => array('option1' => array('alt' => '1 Column', 'img' => REDUX_URL . 'assets/img/1col.png'), 'option2' => array('alt' => '2 Column Left', 'img' => REDUX_URL . 'assets/img/2cl.png'), 'option3' => array('alt' => '2 Column Right', 'img' => REDUX_URL . 'assets/img/2cr.png'))), array('title' => __('Select a Sidebar', 'redux-framework'), 'subtitle' => __('Choose a sidebar to use with the layout.', 'redux-framework'), 'id' => 'thinkup_homepage_sidebars', 'type' => 'select', 'data' => 'sidebars'), array('id' => 'info_page_structure', 'type' => 'info', 'style' => 'help', 'desc' => __('<span class="redux-title">Homepage Slider</span>', 'redux-framework')), array('title' => __('Enable Homepage Slider', 'redux-framework'), 'subtitle' => __('Switch on to enable home page slider.', 'redux-framework'), 'id' => 'thinkup_homepage_sliderswitch', 'type' => 'button_set', 'options' => array('option1' => 'ThinkUpSlider', 'option2' => 'Custom Slider', 'option3' => 'Disable'), 'default' => 'option3'), array('title' => __('Homepage Slider Shortcode', 'redux-framework'), 'subtitle' => __('Input the shortcode of the slider you want to display. I.e. [shortcode_name].', 'redux-framework'), 'id' => 'thinkup_homepage_slidername', 'type' => 'text', 'validate' => 'html'), array('title' => __('Built-In Slider', 'redux-framework'), 'subtitle' => __('Unlimited slides with drag and drop sortings.', 'redux-framework'), 'id' => 'thinkup_homepage_sliderpreset', 'type' => 'slides'), array('title' => __('Enable Full-Width Slider', 'redux-framework'), 'subtitle' => __('Switch on to enable full-width slider.', 'redux-framework'), 'id' => 'thinkup_homepage_sliderpresetwidth', 'type' => 'switch', 'default' => '1'), array('id' => 'thinkup_homepage_sliderpresetheight', 'type' => 'slider', 'title' => __('Slider Height (Max)', 'redux-framework-demo'), 'subtitle' => __('Specify the maximum slider height (px).', 'redux-framework'), "default" => "350", "min" => "200", "step" => "5", "max" => "500"), array('id' => 'info_page_structure', 'type' => 'info', 'style' => 'help', 'desc' => __('<span class="redux-title">Call To Action - Intro</span>', 'redux-framework')), array('title' => __('Message', 'redux-framework'), 'desc' => __('Check to enable intro on home page.', 'redux-framework'), 'id' => 'thinkup_homepage_introswitch', 'type' => 'checkbox', 'default' => '0'), array('subtitle' => __('Enter a <strong>main</strong> message.<br /><br />This will be one of the first messages your visitors see. Use this to get their attention.', 'redux-framework'), 'id' => 'thinkup_homepage_introaction', 'type' => 'textarea', 'validate' => 'html'), array('subtitle' => __('Enter a <strong>teaser</strong> message. <br /><br />Use this to provide more details about what you offer.', 'redux-framework'), 'id' => 'thinkup_homepage_introactionteaser', 'type' => 'textarea', 'validate' => 'html'), array('title' => __('Button Text', 'redux-framework'), 'subtitle' => __('Input text to display on the action button.', 'redux-framework'), 'id' => 'thinkup_homepage_introactionbutton', 'type' => 'text', 'validate' => 'html'), array('title' => __('Link', 'redux-framework'), 'subtitle' => __('Specify whether the action button should link to a page on your site, out to external webpage or disable the link altogether.', 'redux-framework'), 'id' => 'thinkup_homepage_introactionlink', 'type' => 'radio', 'options' => array('option1' => 'Link to a Page', 'option2' => 'Specify Custom link', 'option3' => 'Disable Link')), array('title' => __('Link to a page', 'redux-framework'), 'subtitle' => __('Select a target page for action button link.', 'redux-framework'), 'id' => 'thinkup_homepage_introactionpage', 'type' => 'select', 'data' => 'pages'), array('title' => __('Custom link', 'redux-framework'), 'subtitle' => __('Input a custom url for the action button link.<br>Add http:// if linking to an external webpage.', 'redux-framework'), 'id' => 'thinkup_homepage_introactioncustom', 'type' => 'text', 'validate' => 'url')));
    /*-----------------------------------------------------------------------------------
    	 	2.2.	Home Content				
    	-----------------------------------------------------------------------------------*/
    $sections[] = array('title' => __('Homepage (Content)', 'redux-framework'), 'desc' => __('<span class="redux-title">Display Pre-Designed Homepage Layout</span>', 'redux-framework'), 'icon_class' => 'icon-large', 'icon' => 'pencil', 'fields' => array(array('title' => __('Enable Pre-Made Homepage ', 'redux-framework'), 'subtitle' => __('switch on to enable pre-designed homepage layout.', 'redux-framework'), 'id' => 'thinkup_homepage_sectionswitch', 'type' => 'switch', 'default' => '0'), array('title' => __('Content Area 1', 'redux-framework'), 'desc' => __('Add an image for the section background.', 'redux-framework'), 'id' => 'thinkup_homepage_section1_image', 'type' => 'media', 'url' => true, 'fold' => array('thinkup_homepage_sectionswitch' => 1)), array('id' => 'thinkup_homepage_section1_title', 'desc' => __('Add a title to the section.', 'redux-framework'), 'type' => 'text', 'validate' => 'html', 'fold' => array('thinkup_homepage_sectionswitch' => 1)), array('id' => 'thinkup_homepage_section1_desc', 'desc' => __('Add some text to featured section 1.', 'redux-framework'), 'type' => 'textarea', 'validate' => 'html', 'fold' => array('thinkup_homepage_sectionswitch' => 1)), array('id' => 'thinkup_homepage_section1_link', 'desc' => __('Link to a page', 'redux-framework'), 'type' => 'select', 'data' => 'pages', 'fold' => array('thinkup_homepage_sectionswitch' => 1)), array('title' => __('Content Area 2', 'redux-framework'), 'desc' => __('Add an image for the section background.', 'redux-framework'), 'id' => 'thinkup_homepage_section2_image', 'type' => 'media', 'url' => true, 'fold' => array('thinkup_homepage_sectionswitch' => 1)), array('id' => 'thinkup_homepage_section2_title', 'desc' => __('Add a title to the section.', 'redux-framework'), 'type' => 'text', 'validate' => 'html', 'fold' => array('thinkup_homepage_sectionswitch' => 1)), array('id' => 'thinkup_homepage_section2_desc', 'desc' => __('Add some text to featured section 2.', 'redux-framework'), 'type' => 'textarea', 'validate' => 'html', 'fold' => array('thinkup_homepage_sectionswitch' => 1)), array('id' => 'thinkup_homepage_section2_link', 'desc' => __('Link to a page', 'redux-framework'), 'type' => 'select', 'data' => 'pages', 'fold' => array('thinkup_homepage_sectionswitch' => 1)), array('title' => __('Content Area 3', 'redux-framework'), 'desc' => __('Add an image for the section background.', 'redux-framework'), 'id' => 'thinkup_homepage_section3_image', 'type' => 'media', 'url' => true, 'fold' => array('thinkup_homepage_sectionswitch' => 1)), array('id' => 'thinkup_homepage_section3_title', 'desc' => __('Add a title to the section.', 'redux-framework'), 'type' => 'text', 'validate' => 'html', 'fold' => array('thinkup_homepage_sectionswitch' => 1)), array('id' => 'thinkup_homepage_section3_desc', 'desc' => __('Add some text to featured section 3.', 'redux-framework'), 'type' => 'textarea', 'validate' => 'html', 'fold' => array('thinkup_homepage_sectionswitch' => 1)), array('id' => 'thinkup_homepage_section3_link', 'desc' => __('Link to a page', 'redux-framework'), 'type' => 'select', 'data' => 'pages', 'fold' => array('thinkup_homepage_sectionswitch' => 1))));
    /*-----------------------------------------------------------------------------------
    	 	3.	Header
    	-----------------------------------------------------------------------------------*/
    $sections[] = array('title' => __('Header', 'redux-framework'), 'desc' => __('<span class="redux-title">Control Header Content</span>', 'redux-framework'), 'icon' => 'chevron-up', 'icon_class' => 'icon-large', 'fields' => array(array('title' => __('Enable Search', 'redux-framework'), 'subtitle' => __('Switch on to enable header search.', 'redux-framework'), 'id' => 'thinkup_header_searchswitch', 'type' => 'switch', 'default' => '0'), array('title' => __('Enable Social Media Links', 'redux-framework'), 'subtitle' => __('Switch on to enable links to social media pages.', 'redux-framework'), 'id' => 'thinkup_header_socialswitch', 'type' => 'switch', 'default' => '0'), array('id' => 'info_page_structure', 'type' => 'info', 'style' => 'help', 'desc' => __('<span class="redux-title">Manage Social Media Content</span>', 'redux-framework')), array('title' => __('Display Message', 'redux-framework'), 'subtitle' => __('Add a message here. E.g. &#34;Follow Us&#34;.', 'redux-framework'), 'id' => 'thinkup_header_socialmessage', 'type' => 'text', 'validate' => 'html'), array('title' => __('Facebook', 'redux-framework'), 'subtitle' => __('Enable link to Facebook profile.', 'redux-framework'), 'id' => 'thinkup_header_facebookswitch', 'type' => 'switch', 'default' => '0'), array('desc' => __('Input the url to your Facebook page. <strong>Note:</strong> Add http:// as the url is an external link.', 'redux-framework'), 'id' => 'thinkup_header_facebooklink', 'type' => 'text', 'validate' => 'url', 'fold' => array('thinkup_header_facebookswitch' => 1)), array('desc' => __('Use Custom Facebook Icon', 'redux-framework'), 'id' => 'thinkup_header_facebookiconswitch', 'type' => 'checkbox', 'default' => '0', 'fold' => array('thinkup_header_facebookswitch' => 1)), array('desc' => __('Add a link to the image or upload one from your desktop. The image will be resized.', 'redux-framework'), 'id' => 'thinkup_header_facebookcustomicon', 'type' => 'media', 'url' => true, 'fold' => array('thinkup_header_facebookswitch' => 1)), array('title' => __('Twitter', 'redux-framework'), 'subtitle' => __('Enable link to Twitter profile.', 'redux-framework'), 'id' => 'thinkup_header_twitterswitch', 'type' => 'switch', 'default' => '0'), array('desc' => __('Input the url to your Twitter page. <strong>Note:</strong> Add http:// as the url is an external link.', 'redux-framework'), 'id' => 'thinkup_header_twitterlink', 'type' => 'text', 'validate' => 'url', 'fold' => array('thinkup_header_twitterswitch' => 1)), array('desc' => __('Use Custom Twitter Icon', 'redux-framework'), 'id' => 'thinkup_header_twittericonswitch', 'type' => 'checkbox', 'default' => '0', 'fold' => array('thinkup_header_twitterswitch' => 1)), array('desc' => __('Add a link to the image or upload one from your desktop. The image will be resized.', 'redux-framework'), 'id' => 'thinkup_header_twittercustomicon', 'type' => 'media', 'url' => true, 'fold' => array('thinkup_header_twitterswitch' => 1)), array('title' => __('Google+', 'redux-framework'), 'subtitle' => __('Enable link to Google+ profile.', 'redux-framework'), 'id' => 'thinkup_header_googleswitch', 'type' => 'switch', 'default' => '0'), array('desc' => __('Input the url to your Google+ page. <strong>Note:</strong> Add http:// as the url is an external link.', 'redux-framework'), 'id' => 'thinkup_header_googlelink', 'type' => 'text', 'validate' => 'url', 'fold' => array('thinkup_header_googleswitch' => 1)), array('desc' => __('Use Custom Google+ Icon', 'redux-framework'), 'id' => 'thinkup_header_googleiconswitch', 'type' => 'checkbox', 'default' => '0', 'fold' => array('thinkup_header_googleswitch' => 1)), array('desc' => __('Add a link to the image or upload one from your desktop. The image will be resized.', 'redux-framework'), 'id' => 'thinkup_header_googlecustomicon', 'type' => 'media', 'url' => true, 'fold' => array('thinkup_header_googleswitch' => 1)), array('title' => __('LinkedIn', 'redux-framework'), 'subtitle' => __('Enable link to LinkedIn profile.', 'redux-framework'), 'id' => 'thinkup_header_linkedinswitch', 'type' => 'switch', 'default' => '0'), array('desc' => __('Input the url to your LinkedIn page. <strong>Note:</strong> Add http:// as the url is an external link.', 'redux-framework'), 'id' => 'thinkup_header_linkedinlink', 'type' => 'text', 'validate' => 'url', 'fold' => array('thinkup_header_linkedinswitch' => 1)), array('desc' => __('Use Custom LinkedIn Icon', 'redux-framework'), 'id' => 'thinkup_header_linkediniconswitch', 'type' => 'checkbox', 'default' => '0', 'fold' => array('thinkup_header_linkedinswitch' => 1)), array('desc' => __('Add a link to the image or upload one from your desktop. The image will be resized.', 'redux-framework'), 'id' => 'thinkup_header_linkedincustomicon', 'type' => 'media', 'url' => true, 'fold' => array('thinkup_header_linkedinswitch' => 1)), array('title' => __('Flickr', 'redux-framework'), 'subtitle' => __('Enable link to Flickr profile.', 'redux-framework'), 'id' => 'thinkup_header_flickrswitch', 'type' => 'switch', 'default' => '0'), array('desc' => __('Input the url to your Flickr page. <strong>Note:</strong> Add http:// as the url is an external link.', 'redux-framework'), 'id' => 'thinkup_header_flickrlink', 'type' => 'text', 'validate' => 'url', 'fold' => array('thinkup_header_flickrswitch' => 1)), array('desc' => __('Use Custom Flickr Icon', 'redux-framework'), 'id' => 'thinkup_header_flickriconswitch', 'type' => 'checkbox', 'default' => '0', 'fold' => array('thinkup_header_flickrswitch' => 1)), array('desc' => __('Add a link to the image or upload one from your desktop. The image will be resized.', 'redux-framework'), 'id' => 'thinkup_header_flickrcustomicon', 'type' => 'media', 'url' => true, 'fold' => array('thinkup_header_flickrswitch' => 1)), array('title' => __('YouTube', 'redux-framework'), 'subtitle' => __('Enable link to YouTube profile.', 'redux-framework'), 'id' => 'thinkup_header_youtubeswitch', 'type' => 'switch', 'default' => '0'), array('desc' => __('Input the url to your YouTube page. <strong>Note:</strong> Add http:// as the url is an external link.', 'redux-framework'), 'id' => 'thinkup_header_youtubelink', 'type' => 'text', 'validate' => 'url', 'fold' => array('thinkup_header_youtubeswitch' => 1)), array('desc' => __('Use Custom YouTube Icon', 'redux-framework'), 'id' => 'thinkup_header_youtubeiconswitch', 'type' => 'checkbox', 'default' => '0', 'fold' => array('thinkup_header_youtubeswitch' => 1)), array('desc' => __('Add a link to the image or upload one from your desktop. The image will be resized.', 'redux-framework'), 'id' => 'thinkup_header_youtubecustomicon', 'type' => 'media', 'url' => true, 'fold' => array('thinkup_header_youtubeswitch' => 1)), array('title' => __('RSS', 'redux-framework'), 'subtitle' => __('Enable link to RSS profile.', 'redux-framework'), 'id' => 'thinkup_header_rssswitch', 'type' => 'switch', 'default' => '0'), array('desc' => __('Input the url to your RSS page. <strong>Note:</strong> Add http:// as the url is an external link.', 'redux-framework'), 'id' => 'thinkup_header_rsslink', 'type' => 'text', 'validate' => 'url', 'fold' => array('thinkup_header_rssswitch' => 1)), array('desc' => __('Use Custom RSS Icon', 'redux-framework'), 'id' => 'thinkup_header_rssiconswitch', 'type' => 'checkbox', 'default' => '0', 'fold' => array('thinkup_header_rssswitch' => 1)), array('desc' => __('Add a link to the image or upload one from your desktop. The image will be resized.', 'redux-framework'), 'id' => 'thinkup_header_rsscustomicon', 'type' => 'media', 'url' => true, 'fold' => array('thinkup_header_rssswitch' => 1))));
    /*-----------------------------------------------------------------------------------
    	 	4.	Footer
    	-----------------------------------------------------------------------------------*/
    $sections[] = array('title' => __('Footer', 'redux-framework'), 'desc' => __('<span class="redux-title">Control Footer Content</span>', 'redux-framework'), 'icon' => 'chevron-down', 'icon_class' => 'icon-large', 'fields' => array(array('title' => __('Footer Widgets Layout', 'redux-framework'), 'subtitle' => __('Select footer layout. Take complete control of the footer content by adding widgets.', 'redux-framework'), 'id' => 'thinkup_footer_layout', 'type' => 'image_select', 'compiler' => true, 'default' => '0', 'options' => array('option1' => REDUX_URL . 'assets/img/layout/footer/option01.png', 'option2' => REDUX_URL . 'assets/img/layout/footer/option02.png', 'option3' => REDUX_URL . 'assets/img/layout/footer/option03.png', 'option4' => REDUX_URL . 'assets/img/layout/footer/option04.png', 'option5' => REDUX_URL . 'assets/img/layout/footer/option05.png', 'option6' => REDUX_URL . 'assets/img/layout/footer/option06.png', 'option7' => REDUX_URL . 'assets/img/layout/footer/option07.png', 'option8' => REDUX_URL . 'assets/img/layout/footer/option08.png', 'option9' => REDUX_URL . 'assets/img/layout/footer/option09.png', 'option10' => REDUX_URL . 'assets/img/layout/footer/option10.png', 'option11' => REDUX_URL . 'assets/img/layout/footer/option11.png', 'option12' => REDUX_URL . 'assets/img/layout/footer/option12.png', 'option13' => REDUX_URL . 'assets/img/layout/footer/option13.png', 'option14' => REDUX_URL . 'assets/img/layout/footer/option14.png', 'option15' => REDUX_URL . 'assets/img/layout/footer/option15.png', 'option16' => REDUX_URL . 'assets/img/layout/footer/option16.png', 'option17' => REDUX_URL . 'assets/img/layout/footer/option17.png', 'option18' => REDUX_URL . 'assets/img/layout/footer/option18.png')), array('title' => __('Disable Footer Widgets', 'redux-framework'), 'desc' => __('Check to disable footer widgets.', 'redux-framework'), 'id' => 'thinkup_footer_widgetswitch', 'type' => 'checkbox', 'default' => '0')));
    /*-----------------------------------------------------------------------------------
    	 	5.	Blog
    	-----------------------------------------------------------------------------------*/
    $sections[] = array('title' => __('Blog', 'redux-framework'), 'desc' => __('<span class="redux-title">Control Blog Pages</span>', 'redux-framework'), 'icon' => 'comment', 'icon_class' => 'icon-large', 'fields' => array(array('title' => __('Blog Layout', 'redux-framework'), 'subtitle' => __('Select blog page layout. Only applied to the main blog page and not individual posts.', 'redux-framework'), 'id' => 'thinkup_blog_layout', 'type' => 'image_select', 'compiler' => true, 'options' => array('option1' => REDUX_URL . 'assets/img/layout/blog/option01.png', 'option2' => REDUX_URL . 'assets/img/layout/blog/option02.png', 'option3' => REDUX_URL . 'assets/img/layout/blog/option03.png')), array('title' => __('Select a Sidebar', 'redux-framework'), 'subtitle' => __('<strong>Note:</strong> Sidebars will not be applied to homepage Blog. Control sidebars on the homepage from the &#39;Home Settings&#39; option.', 'redux-framework'), 'id' => 'thinkup_blog_sidebars', 'type' => 'select', 'data' => 'sidebars'), array('title' => __('Post Content', 'redux-framework'), 'subtitle' => __('Control how much content you want to show from each post on the main blog page. Remember to control the full article content by using the Wordpress <a href="http://en.support.wordpress.com/splitting-content/more-tag/">more</a> tag in your post.', 'redux-framework'), 'id' => 'thinkup_blog_postswitch', 'type' => 'radio', 'options' => array('option1' => 'Show excerpt', 'option2' => 'Show full article', 'option3' => 'Hide article')), array('id' => 'info_page_structure', 'type' => 'info', 'style' => 'help', 'desc' => __('<span class="redux-title">Control Single Post Page</span>', 'redux-framework')), array('title' => __('Post Layout', 'redux-framework'), 'subtitle' => __('Select blog page layout. This will only be applied to individual posts and not the main blog page.', 'redux-framework'), 'id' => 'thinkup_post_layout', 'type' => 'image_select', 'compiler' => true, 'default' => 'option1', 'options' => array('option1' => array('alt' => '1 Column', 'img' => REDUX_URL . 'assets/img/1col.png'), 'option2' => array('alt' => '2 Column Left', 'img' => REDUX_URL . 'assets/img/2cl.png'), 'option3' => array('alt' => '2 Column Right', 'img' => REDUX_URL . 'assets/img/2cr.png'))), array('title' => __('Select a Sidebar', 'redux-framework'), 'subtitle' => __('Choose a sidebar to use with the layout.', 'redux-framework'), 'id' => 'thinkup_post_sidebars', 'type' => 'select', 'data' => 'sidebars')));
    /*-----------------------------------------------------------------------------------
    		6.	Portfolio - PREMIUM FEATURE
    	-----------------------------------------------------------------------------------*/
    /*-----------------------------------------------------------------------------------
    	 	7.	Contact Page - PREMIUM FEATURE
    	-----------------------------------------------------------------------------------*/
    /*-----------------------------------------------------------------------------------
    		8.	Special Page - PREMIUM FEATURE
    	-----------------------------------------------------------------------------------*/
    /*-----------------------------------------------------------------------------------
    	 	9.	Notification Bar - PREMIUM FEATURE
    	-----------------------------------------------------------------------------------*/
    /*-----------------------------------------------------------------------------------
    	 	11.	Search Engine Optimisation - PREMIUM FEATURE
    	-----------------------------------------------------------------------------------*/
    /*-----------------------------------------------------------------------------------
    	 	12.	Typography - PREMIUM FEATURE
    	-----------------------------------------------------------------------------------*/
    /*-----------------------------------------------------------------------------------
    	 	13.	Custom Styling - PREMIUM FEATURE
    	-----------------------------------------------------------------------------------*/
    /*-----------------------------------------------------------------------------------
    	 	14.	Support
    	-----------------------------------------------------------------------------------*/
    $sections[] = array('title' => __('Support', 'redux-framework'), 'desc' => __('<span class="redux-title">Documentation</span><p>Please refer to the "ThinkUpThemes - Lite Documentation" file included with this theme for information on how to use the theme options. For premium support direct from the theme developers, or advice on customizations please <a href="http://www.thinkupthemes.com/themes/minamaze/" target="_blank">upgrade</a> to the Premium Theme Membership.</p>', 'redux-framework'), 'icon' => 'user', 'icon_class' => 'icon-large', 'fields' => array());
    global $ReduxFramework;
    $ReduxFramework = new ReduxFramework($sections, $args, $tabs);
}