/**
 * Adds the CyberChimps credit.
 *
 * @since 1.0
 */
function cyberchimps_footer_credit()
{
    ?>
	<div class="container-full-width" id="after_footer">
		<div class="container">
			<div class="container-fluid">
				<footer class="site-footer row-fluid">
					<div class="span6">
						<div id="credit">
							<?php 
    if (cyberchimps_get_option('footer_cyberchimps_link', 1) == '1') {
        ?>
								<a href="http://cyberchimps.com/" target="_blank" title="CyberChimps Themes">
									<?php 
        if ('free' == cyberchimps_theme_check()) {
            ?>
										<h4 class="cc-credit-text">CyberChimps WordPress Themes</h4></a>
									<?php 
        } else {
            ?>
										
										<img width="32" height="32" class="cc-credit-logo" src="<?php 
            echo get_template_directory_uri();
            ?>
/cyberchimps/lib/images/achimps.png" alt="CyberChimps"/>
										<h4 class="cc-credit-text"><span>Cyber</span>Chimps</h4></a>
                                                                                <div class="market" style="line-height:2.3"><a href="http://neilpatel.com/" rel="noindex, nofollow">Marketed  By Neil Patel</a></div>
									<?php 
        }
        ?>
								
							<?php 
    }
    ?>
						
						</div>
					</div>
					<!-- Adds the afterfooter copyright area -->
					<div class="span6">
						<?php 
    $copyright = cyberchimps_get_option('footer_copyright_text') ? cyberchimps_get_option('footer_copyright_text') : 'CyberChimps &#169;' . date('Y');
    ?>
						<div id="copyright">
							<?php 
    echo wp_kses_post($copyright);
    ?>
						</div>
					</div>
				</footer>
				<!-- row-fluid -->
			</div>
			<!-- .container-fluid-->
		</div>
		<!-- .container -->
	</div>    <!-- #after_footer -->
<?php 
}
Example #2
0
function cyberchimps_add_core_fields($fields_list)
{
    //theme check
    $theme_check = cyberchimps_theme_check();
    // Set directory uri
    $directory_uri = get_template_directory_uri();
    /*************************** LISTS AND DEFAULTS *********************************************/
    // post byline
    $pbe_defaults = array('author' => 1, 'categories' => 1, 'date' => 1, 'comments' => 1, 'tags' => 1);
    $pbe_array = array('author' => __('Author', 'cyberchimps_core'), 'categories' => __('Categories', 'cyberchimps_core'), 'date' => __('Date', 'cyberchimps_core'), 'comments' => __('Comments', 'cyberchimps_core'), 'tags' => __('Tags', 'cyberchimps_core'));
    // Pull all the categories into an array
    $options_categories = array();
    $options_categories_obj = get_categories();
    foreach ($options_categories_obj as $category) {
        $options_categories['all'] = 'All';
        $options_categories[$category->cat_ID] = $category->cat_name;
    }
    // Pull all carousel categories
    $options_carousel_cats = array();
    $carousel_categories = get_terms('carousel_categories', array('hide_empty' => 0));
    if (!is_wp_error($carousel_categories)) {
        foreach ($carousel_categories as $carousel_cat) {
            $options_carousel_cats[$carousel_cat->term_id] = $carousel_cat->name;
        }
    }
    // Get custom categories of boxes element
    $options_boxes_cats = array();
    $boxes_terms = get_terms('boxes_categories', 'hide_empty=0');
    if (!is_wp_error($boxes_terms)) {
        foreach ($boxes_terms as $term) {
            $options_boxes_cats[$term->slug] = $term->name;
        }
    }
    // Pull all portfolio categories
    $options_portfolio_cats = array();
    $portfolio_categories = get_terms('portfolio_cats', array('hide_empty' => 0));
    if (!is_wp_error($portfolio_categories)) {
        foreach ($portfolio_categories as $portfolio_cat) {
            $options_portfolio_cats[$portfolio_cat->term_id] = $portfolio_cat->name;
        }
    }
    // Pull all slider categories
    $options_slide_cats = array();
    $slide_categories = get_terms('slide_categories', array('hide_empty' => 0));
    if (!is_wp_error($portfolio_categories)) {
        foreach ($slide_categories as $slide_cat) {
            $options_slide_cats[$slide_cat->term_id] = $slide_cat->name;
        }
    }
    // Get all post categories
    $all_cats = array();
    $all_categories = get_terms('category');
    if (!is_wp_error($all_categories)) {
        foreach ($all_categories as $all_cat) {
            $all_cats[$all_cat->term_id] = $all_cat->name;
        }
    }
    // Pull all tags into an array
    $options_tags = array();
    $options_tags_obj = get_tags();
    foreach ($options_tags_obj as $tag) {
        $options_tags[$tag->term_id] = $tag->name;
    }
    // Pull all the pages into an array
    $options_pages = array();
    $options_pages_obj = get_pages('sort_column=post_parent,menu_order');
    $options_pages[''] = 'Select a page:';
    foreach ($options_pages_obj as $page) {
        $options_pages[$page->ID] = $page->post_title;
    }
    // If using image radio buttons, define a directory path
    $imagepath = $directory_uri . '/cyberchimps/lib/images/';
    $fields_list = array();
    // Typography Defaults
    $typography_defaults = apply_filters('cyberchimps_typography_defaults', array('size' => '14px', 'face' => 'Arial, Helvetica, sans-serif', 'style' => 'normal', 'color' => '#333333'));
    // Heading Typography Defaults
    $typography_heading_defaults = apply_filters('cyberchimps_typography_heading_defaults', array('size' => '', 'face' => 'Arial, Helvetica, sans-serif', 'style' => '', 'color' => ''));
    /*************************** HELP *****************************************************/
    $fields_list[] = array('name' => apply_filters('cyberchimps_help_sub_heading', __('CyberChimps Help', 'cyberchimps_core')), 'id' => 'help_info_display', 'type' => 'welcome', 'section' => 'cyberchimps_help_section', 'heading' => 'cyberchimps_help_heading');
    /*************************** DESIGN ***************************************************/
    /* LAYOUT OPTIONS */
    $fields_list[] = array('name' => __('Responsive Design', 'cyberchimps_core'), 'id' => 'responsive_design', 'type' => 'toggle', 'std' => 'checked', 'section' => 'cyberchimps_custom_layout_section', 'heading' => 'cyberchimps_design_heading');
    $fields_list[] = array('name' => __('Responsive Videos', 'cyberchimps_core'), 'id' => 'responsive_videos', 'type' => 'toggle', 'section' => 'cyberchimps_custom_layout_section', 'heading' => 'cyberchimps_design_heading');
    $fields_list[] = array('name' => __('Gallery Lightbox', 'cyberchimps_core'), 'id' => 'gallery_lightbox', 'type' => 'toggle', 'std' => 'checked', 'section' => 'cyberchimps_custom_layout_section', 'heading' => 'cyberchimps_design_heading');
    $fields_list[] = array('name' => __('Wide Sidebar', 'cyberchimps_core'), 'id' => 'wide_sidebar', 'type' => 'toggle', 'std' => 0, 'desc' => __('Only works on layouts with 1 sidebar', 'cyberchimps_core'), 'section' => 'cyberchimps_custom_layout_section', 'heading' => 'cyberchimps_design_heading');
    $fields_list[] = array('name' => __('Max Width', 'cyberchimps_core'), 'id' => 'max_width', 'class' => '', 'std' => 1020, 'desc' => __('enter the width of your site in pixels', 'cyberchimps_core'), 'type' => 'text', 'section' => 'cyberchimps_custom_layout_section', 'heading' => 'cyberchimps_design_heading');
    /** COMMENTED OUT - we are using WP background options instead. When deleting remove relevant functions from wp-head-hooks.php
     * /* BACKGROUND
     *
     * $fields_list[] = array(
     * 'name' => __('Select a background', 'cyberchimps_core' ),
     * 'id' => 'select_background',
     * 'std' => 'none',
     * 'type' => 'images',
     * 'options' => apply_filters( 'cyberchimps_background_image', array(
     * 'none' => $imagepath . 'backgrounds/thumbs/none.png',
     * 'noise' => $imagepath . 'backgrounds/thumbs/noise.png',
     * 'blue' => $imagepath . 'backgrounds/thumbs/blue.png',
     * 'dark' => $imagepath . 'backgrounds/thumbs/dark.png',
     * 'space' => $imagepath . 'backgrounds/thumbs/space.png'
     * ) ),
     * 'section' => 'cyberchimps_custom_background_section',
     * 'heading' => 'cyberchimps_design_heading'
     * );
     *
     * $fields_list[] = array(
     * 'name' => __('Use a custom background', 'cyberchimps_core' ),
     * 'id' => 'custom_background',
     * 'type' => 'toggle',
     * 'section' => 'cyberchimps_custom_background_section',
     * 'heading' => 'cyberchimps_design_heading'
     * );
     *
     * $fields_list[] = array(
     * 'name' => __('Background Image', 'cyberchimps_core' ),
     * 'desc' => __('Enter URL or upload file', 'cyberchimps_core' ),
     * 'id' => 'custom_background_image',
     * 'class' => 'custom_background_toggle',
     * 'type' => 'upload',
     * 'std' => '',
     * 'section' => 'cyberchimps_custom_background_section',
     * 'heading' => 'cyberchimps_design_heading'
     * );
     *
     * $fields_list[] = array(
     * 'name' => __('Image position', 'cyberchimps_core' ),
     * 'id' => 'background_image_position',
     * 'class' => 'custom_background_toggle',
     * 'std' => 'top center',
     * 'type' => 'radio',
     * 'options' => array(
     * 'top left' => 'Left',
     * 'top center' => 'Center',
     * 'top right' => 'Right'
     * ),
     * 'section' => 'cyberchimps_custom_background_section',
     * 'heading' => 'cyberchimps_design_heading'
     * );
     *
     * $fields_list[] = array(
     * 'name' => __('Image repeat', 'cyberchimps_core' ),
     * 'id' => 'background_image_repeat',
     * 'class' => 'custom_background_toggle',
     * 'std' => 'repeat',
     * 'type' => 'radio',
     * 'options' => array(
     * 'repeat' => 'Tile',
     * 'repeat-x' => 'Tile horizontally',
     * 'repeat-y' => 'Tile vertically',
     * 'no-repeat' => 'No tile'
     * ),
     * 'section' => 'cyberchimps_custom_background_section',
     * 'heading' => 'cyberchimps_design_heading'
     * );
     *
     * $fields_list[] = array(
     * 'name' => __('Image attachment', 'cyberchimps_core' ),
     * 'id' => 'background_image_attachment',
     * 'class' => 'custom_background_toggle',
     * 'std' => 'scroll',
     * 'type' => 'radio',
     * 'options' => array(
     * 'scroll' => 'Scroll',
     * 'fixed' => 'Fixed'
     * ),
     * 'section' => 'cyberchimps_custom_background_section',
     * 'heading' => 'cyberchimps_design_heading'
     * );
     *
     * /* CUSTOM COLORS */
    $fields_list[] = array('name' => __('Select a Skin Color', 'cyberchimps_core'), 'id' => 'cyberchimps_skin_color', 'std' => 'default', 'type' => 'images', 'options' => apply_filters('cyberchimps_skin_color', array('default' => $directory_uri . '/inc/css/skins/images/default.png')), 'section' => 'cyberchimps_custom_colors_section', 'heading' => 'cyberchimps_design_heading');
    /** COMMENTED OUT - Using WP background customization
     * $fields_list[] = array(
     * 'name' => __('Background Color', 'cyberchimps_core' ),
     * 'desc' => __('Select background color', 'cyberchimps_core' ),
     * 'id' => 'background_colorpicker',
     * 'std' => '',
     * 'type' => 'color',
     * 'section' => 'cyberchimps_custom_colors_section',
     * 'heading' => 'cyberchimps_design_heading' );
     */
    $fields_list[] = array('name' => __('Text Color', 'cyberchimps_core'), 'desc' => __('Select text color', 'cyberchimps_core'), 'id' => 'text_colorpicker', 'std' => '', 'type' => 'color', 'section' => 'cyberchimps_custom_colors_section', 'heading' => 'cyberchimps_design_heading');
    $fields_list[] = array('name' => __('Link Color', 'cyberchimps_core'), 'desc' => __('Select link color', 'cyberchimps_core'), 'id' => 'link_colorpicker', 'std' => '', 'type' => 'color', 'section' => 'cyberchimps_custom_colors_section', 'heading' => 'cyberchimps_design_heading');
    $fields_list[] = array('name' => __('Link Hover Color', 'cyberchimps_core'), 'desc' => __('Select link hover color', 'cyberchimps_core'), 'id' => 'link_hover_colorpicker', 'std' => '', 'type' => 'color', 'section' => 'cyberchimps_custom_colors_section', 'heading' => 'cyberchimps_design_heading');
    /* Typography Options */
    /* Default font faces */
    $faces = array('Arial, Helvetica, sans-serif' => 'Arial', 'Arial Black, Gadget, sans-serif' => 'Arial Black', 'Comic Sans MS, cursive' => 'Comic Sans MS', 'Courier New, monospace' => 'Courier New', 'Georgia, serif' => 'Georgia', '"Helvetica Neue Light", "Helvetica Neue",
		Helvetica, Arial, "Lucida Grande", sans-serif' => 'Helvetica Neue', 'Impact, Charcoal, sans-serif' => 'Impact', 'Lucida Console, Monaco, monospace' => 'Lucida Console', 'Lucida Sans Unicode, Lucida Grande, sans-serif' => 'Lucida Sans Unicode', '"Open Sans", sans-serif' => 'Open Sans', 'Palatino Linotype, Book Antiqua, Palatino, serif' => 'Palatino Linotype', 'Tahoma, Geneva, sans-serif' => 'Tahoma', 'Times New Roman, Times, serif' => 'Times New Roman', 'Trebuchet MS, sans-serif' => 'Trebuchet MS', 'Verdana, Geneva, sans-serif' => 'Verdana', 'Symbol' => 'Symbol', 'Webdings' => 'Webdings', 'Wingdings, Zapf Dingbats' => 'Wingdings', 'MS Sans Serif, Geneva, sans-serif' => 'MS Sans Serif', 'MS Serif, New York, serif' => 'MS Serif', 'Google Fonts' => 'Google Fonts');
    $typography_options = array('sizes' => apply_filters('cyberchimps_typography_sizes', array('8', '10', '12', '14', '16', '20')), 'faces' => apply_filters('cyberchimps_typography_faces', $faces), 'styles' => apply_filters('cyberchimps_typography_styles', array('normal' => 'Normal', 'bold' => 'Bold')), 'color' => false);
    $typography_heading_options = array('sizes' => false, 'faces' => apply_filters('cyberchimps_typography_faces', $faces), 'styles' => false, 'color' => false);
    /* Typography Section */
    $fields_list[] = array('id' => 'typography_options', 'name' => __('Typography Options', 'cyberchimps_core'), 'type' => 'typography', 'std' => $typography_defaults, 'options' => $typography_options, 'section' => 'cyberchimps_typography_section', 'heading' => 'cyberchimps_design_heading');
    // Entry field for google font
    $fields_list[] = array('name' => __('Enter Google font', 'cyberchimps_core'), 'id' => 'google_font_field', 'type' => 'text', 'desc' => __('Google font names are case sensitive', 'cyberchimps_core'), 'section' => 'cyberchimps_typography_section', 'heading' => 'cyberchimps_design_heading');
    $fields_list[] = array('name' => __('Demo Text', 'cyberchimps_core'), 'id' => 'font_demo_text', 'type' => 'info', 'desc' => 'The quick CyberChimp jumps over the lazy dog', 'section' => 'cyberchimps_typography_section', 'heading' => 'cyberchimps_design_heading');
    // Font Family for headings.
    $fields_list[] = array('name' => __('Font Family for headings', 'cyberchimps_core'), 'id' => 'font_family_headings', 'type' => 'typography', 'std' => $typography_heading_defaults, 'options' => $typography_heading_options, 'section' => 'cyberchimps_typography_section', 'heading' => 'cyberchimps_design_heading');
    // Google Font for headings.
    $fields_list[] = array('name' => __('Google font for headings', 'cyberchimps_core'), 'id' => 'google_font_headings', 'type' => 'text', 'desc' => __('Google font names are case sensitive', 'cyberchimps_core'), 'section' => 'cyberchimps_typography_section', 'heading' => 'cyberchimps_design_heading');
    /*************************** HEADER STARTS ***************************************************/
    $fields_list[] = array('id' => 'header_section_order', 'name' => __('Header Drag/Drop', 'cyberchimps_core'), 'callback' => 'cyberchimps_drag_drop_field', 'std' => apply_filters('header_drag_and_drop_default', array('cyberchimps_header_content' => __('Logo + Icons', 'cyberchimps_core'))), 'type' => 'section_order', 'options' => apply_filters('header_drag_and_drop_options', array('cyberchimps_header_content' => __('Logo + Icons', 'cyberchimps_core'), 'cyberchimps_logo_search' => __('Logo + Search', 'cyberchimps_core'), 'cyberchimps_logo' => __('Logo', 'cyberchimps_core'))), 'section' => 'cyberchimps_header_drag_drop_section', 'heading' => 'cyberchimps_header_heading');
    /********** HEADER OPTIONS STARTS ************/
    $fields_list[] = array('name' => __('Custom Logo URL', 'cyberchimps_core'), 'id' => 'custom_logo_url', 'type' => 'toggle', 'section' => 'cyberchimps_header_options_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('URL', 'cyberchimps_core'), 'desc' => __('Enter URL', 'cyberchimps_core'), 'id' => 'custom_logo_url_link', 'class' => 'custom_logo_url_toggle', 'type' => 'text', 'std' => home_url(), 'section' => 'cyberchimps_header_options_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Custom Logo', 'cyberchimps_core'), 'id' => 'custom_logo', 'type' => 'toggle', 'std' => apply_filters('cyberchimps_logo_toggle', 0), 'section' => 'cyberchimps_header_options_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Logo Image', 'cyberchimps_core'), 'desc' => __('Enter URL or upload file', 'cyberchimps_core'), 'id' => 'custom_logo_uploader', 'class' => 'custom_logo_toggle', 'type' => 'upload', 'std' => apply_filters('cyberchimps_default_logo', $directory_uri . '/cyberchimps/lib/images/achimps.png'), 'section' => 'cyberchimps_header_options_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Custom Favicon', 'cyberchimps_core'), 'id' => 'custom_favicon', 'type' => 'toggle', 'section' => 'cyberchimps_header_options_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Favicon URL', 'cyberchimps_core'), 'desc' => __('Enter URL or upload file', 'cyberchimps_core'), 'id' => 'favicon_uploader', 'class' => 'custom_favicon_toggle', 'type' => 'upload', 'section' => 'cyberchimps_header_options_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Custom Apple touch icon', 'cyberchimps_core'), 'id' => 'custom_apple', 'type' => 'toggle', 'section' => 'cyberchimps_header_options_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Apple Touch URL', 'cyberchimps_core'), 'desc' => __('Enter URL or upload file', 'cyberchimps_core'), 'id' => 'apple_touch_uploader', 'class' => 'custom_apple_toggle', 'type' => 'upload', 'section' => 'cyberchimps_header_options_section', 'heading' => 'cyberchimps_header_heading');
    // Add Google Analytics only to pro themes. In free themes it will be added by plugin as per WP standards.
    if ($theme_check == 'pro') {
        $fields_list[] = array('id' => 'google_analytics', 'name' => __('Google Analytics', 'cyberchimps_core'), 'type' => 'textarea', 'desc' => __('Copy and paste your Google Analytics code here', 'cyberchimps_core'), 'section' => 'cyberchimps_header_options_section', 'heading' => 'cyberchimps_header_heading');
    }
    // Search bar toggle
    $fields_list[] = array('name' => __('Searchbar', 'cyberchimps_core'), 'id' => 'searchbar', 'type' => 'toggle', 'std' => apply_filters('searchbar_default', ''), 'section' => 'cyberchimps_header_options_section', 'heading' => 'cyberchimps_header_heading');
    // Option to enter scripts into header.
    if ($theme_check == 'pro') {
        $fields_list[] = array('id' => 'header_scripts', 'name' => __('Header Scripts', 'cyberchimps_core'), 'type' => 'unfiltered_textarea', 'desc' => __('Please add script tags', 'cyberchimps_core'), 'section' => 'cyberchimps_header_options_section', 'heading' => 'cyberchimps_header_heading');
    }
    /********** HEADER OPTIONS ENDS ************/
    /********** SOCIAL STARTS ************/
    $fields_list[] = array('name' => __('Choose your icon style', 'cyberchimps_core'), 'id' => 'theme_backgrounds', 'std' => apply_filters('cyberchimps_social_icon_default', 'default'), 'type' => 'images', 'options' => apply_filters('cyberchimps_social_icon_options', array('default' => $imagepath . 'social/thumbs/icons-default.png', 'legacy' => $imagepath . 'social/thumbs/icons-classic.png', 'round' => $imagepath . 'social/thumbs/icons-round.png')), 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    // Facebook
    $fields_list[] = array('name' => __('Facebook', 'cyberchimps_core'), 'id' => 'social_facebook', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Facebook URL', 'cyberchimps_core'), 'id' => 'facebook_url', 'class' => 'social_facebook_toggle', 'std' => 'http://www.facebook.com/', 'type' => 'text', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    // Twitter
    $fields_list[] = array('name' => __('Twitter', 'cyberchimps_core'), 'id' => 'social_twitter', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Twitter URL', 'cyberchimps_core'), 'id' => 'twitter_url', 'class' => 'social_twitter_toggle', 'std' => 'http://www.twitter.com/', 'type' => 'text', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    // Google+
    $fields_list[] = array('name' => __('Google+', 'cyberchimps_core'), 'id' => 'social_google', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Google+ URL', 'cyberchimps_core'), 'id' => 'google_url', 'class' => 'social_google_toggle', 'std' => 'http://www.google.com/', 'type' => 'text', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    // LinkedIn
    $fields_list[] = array('name' => __('LinkedIn', 'cyberchimps_core'), 'id' => 'social_linkedin', 'type' => 'toggle', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('LinkedIn URL', 'cyberchimps_core'), 'id' => 'linkedin_url', 'class' => 'social_linkedin_toggle', 'std' => 'http://www.linkedin.com/', 'type' => 'text', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    // YouTube
    $fields_list[] = array('name' => __('YouTube', 'cyberchimps_core'), 'id' => 'social_youtube', 'type' => 'toggle', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('YouTube URL', 'cyberchimps_core'), 'id' => 'youtube_url', 'class' => 'social_youtube_toggle', 'std' => 'http://www.youtube.com/', 'type' => 'text', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    // Flickr
    $fields_list[] = array('name' => __('Flickr', 'cyberchimps_core'), 'id' => 'social_flickr', 'type' => 'toggle', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Flickr URL', 'cyberchimps_core'), 'id' => 'flickr_url', 'class' => 'social_flickr_toggle', 'std' => 'http://www.flickr.com/', 'type' => 'text', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    // Pinterest
    $fields_list[] = array('name' => __('Pinterest', 'cyberchimps_core'), 'id' => 'social_pinterest', 'type' => 'toggle', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Pinterest URL', 'cyberchimps_core'), 'id' => 'pinterest_url', 'class' => 'social_pinterest_toggle', 'std' => 'http://www.pinterest.com/', 'type' => 'text', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    // Google Maps
    $fields_list[] = array('name' => __('Google Maps', 'cyberchimps_core'), 'id' => 'social_googlemaps', 'type' => 'toggle', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Google Maps URL', 'cyberchimps_core'), 'id' => 'googlemaps_url', 'class' => 'social_googlemaps_toggle', 'std' => 'http://www.maps.google.com/', 'type' => 'text', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    // Email
    $fields_list[] = array('name' => __('Email', 'cyberchimps_core'), 'id' => 'social_email', 'type' => 'toggle', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Email Address', 'cyberchimps_core'), 'id' => 'email_url', 'class' => 'social_email_toggle', 'type' => 'text', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    // RSS
    $fields_list[] = array('name' => __('RSS', 'cyberchimps_core'), 'id' => 'social_rss', 'type' => 'toggle', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('RSS URL', 'cyberchimps_core'), 'id' => 'rss_url', 'class' => 'social_rss_toggle', 'std' => get_bloginfo_rss('rss_url'), 'type' => 'text', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    // Instagram
    $fields_list[] = array('name' => __('Instagram', 'cyberchimps_core'), 'id' => 'social_instagram', 'type' => 'toggle', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Instagram URL', 'cyberchimps_core'), 'id' => 'instagram_url', 'class' => 'social_instagram_toggle', 'std' => 'http://instagram.com/', 'type' => 'text', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    /********** SOCIAL ENDS ************/
    /*************************** HEADER ENDS ***************************************************/
    /*************************** BLOG STARTS ***************************************************/
    $fields_list[] = array('id' => 'blog_section_order', 'name' => __('Drag & Drop Blog Elements', 'cyberchimps_core'), 'callback' => 'cyberchimps_drag_drop_field', 'std' => apply_filters('cyberchimps_elements_draganddrop_defaults', array('slider_lite' => __('Slider Lite', 'cyberchimps_core'), 'boxes_lite' => __('Boxes', 'cyberchimps_core'), 'blog_post_page' => __('Post Page', 'cyberchimps_core'))), 'type' => 'section_order', 'options' => apply_filters('cyberchimps_elements_draganddrop_options', array('boxes_lite' => __('Boxes', 'cyberchimps_core'), 'portfolio_lite' => __('Portfolio Lite', 'cyberchimps_core'), 'blog_post_page' => __('Post Page', 'cyberchimps_core'), 'slider_lite' => __('Slider Lite', 'cyberchimps_core'))), 'section' => 'cyberchimps_drag_and_drop_section', 'heading' => 'cyberchimps_blog_heading');
    /********* BLOG OPTIONS STARTS ***********/
    $fields_list[] = array('name' => __('Select Page Layout', 'cyberchimps_core'), 'id' => 'sidebar_images', 'std' => apply_filters('cyberchimps_blog_layout_options_default', 'right_sidebar'), 'type' => 'images', 'options' => apply_filters('sidebar_layout_options', array('full_width' => $imagepath . '1col.png', 'right_sidebar' => $imagepath . '2cr.png')), 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Blog Title', 'cyberchimps_core'), 'id' => 'blog_title', 'type' => 'toggle', 'std' => 0, 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Blog Title Text', 'cyberchimps_core'), 'id' => 'blog_title_text', 'class' => 'blog_title_toggle', 'type' => 'text', 'std' => 'Our Blog', 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Post Formats Icons', 'cyberchimps_core'), 'id' => 'post_format_icons', 'type' => 'toggle', 'std' => apply_filters('cyberchimps_post_format_icons_default', 0), 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Post Excerpts', 'cyberchimps_core'), 'id' => 'post_excerpts', 'type' => 'toggle', 'std' => 0, 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Read More Text', 'cyberchimps_core'), 'id' => 'blog_read_more_text', 'class' => 'post_excerpts_toggle', 'type' => 'text', 'std' => 'Read More...', 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Excerpt Length', 'cyberchimps_core'), 'id' => 'blog_excerpt_length', 'class' => 'post_excerpts_toggle', 'type' => 'text', 'std' => 55, 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Featured Images', 'cyberchimps_core'), 'id' => 'post_featured_images', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    /********* Post Byline Starts***********/
    // Author
    $fields_list[] = array('name' => __('Post Byline Author', 'cyberchimps_core'), 'id' => 'post_byline_author', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    // Categories
    $fields_list[] = array('name' => __('Post Byline Categories', 'cyberchimps_core'), 'id' => 'post_byline_categories', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    // Date
    $fields_list[] = array('name' => __('Post Byline Date', 'cyberchimps_core'), 'id' => 'post_byline_date', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    // Comments
    $fields_list[] = array('name' => __('Post Byline Comments', 'cyberchimps_core'), 'id' => 'post_byline_comments', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    // Tags
    $fields_list[] = array('name' => __('Post Byline Tags', 'cyberchimps_core'), 'id' => 'post_byline_tags', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    /********* Post Byline Ends ***********/
    /********* BLOG OPTIONS ENDS ***********/
    if ($theme_check == 'free') {
        /********* BOXES LITE STARTS ****************/
        $fields_list[] = array('name' => __('Boxes Upgrade', 'cyberchimps_core'), 'id' => 'boxes_upgrade', 'class' => 'cyberchimps_pro_upgrade', 'desc' => sprintf(__('Boxes Lite limits you to a total of 3 boxes throughout your whole site. Upgrade to %1$s to be able to create as many boxes as you like. Categorize them and display each category on a different page.', 'cyberchimps_core'), '<a href="' . apply_filters('cyberchimps_upgrade_link', 'http://cyberchimps.com') . '" title="' . apply_filters('cyberchimps_upgrade_pro_title', __('Pro', 'cyberchimps_core')) . '">' . apply_filters('cyberchimps_upgrade_pro_title', __('Pro', 'cyberchimps_core')) . '</a>'), 'type' => 'info', 'section' => 'cyberchimps_blog_boxes_lite_section', 'heading' => 'cyberchimps_blog_heading');
        /* Options for box 1 starts */
        // Image uploader
        $fields_list[] = array('name' => __('First Box Image', 'cyberchimps_core'), 'desc' => __('Enter URL or upload file', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_boxes_lite_image_one', 'type' => 'upload', 'std' => $directory_uri . apply_filters('cyberchimps_boxes_lite_img1', '/elements/lib/images/boxes/slidericon.png'), 'section' => 'cyberchimps_blog_boxes_lite_section', 'heading' => 'cyberchimps_blog_heading');
        // URL of Box link
        $fields_list[] = array('name' => __('Link URL', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_boxes_link_url_one', 'std' => apply_filters('cyberchimps_boxes_lite_url1', 'http://wordpress.org'), 'type' => 'text', 'section' => 'cyberchimps_blog_boxes_lite_section', 'heading' => 'cyberchimps_blog_heading');
        // Box text
        $fields_list[] = array('name' => __('First Box Text', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_boxes_lite_image_one_text', 'type' => 'textarea', 'std' => 'Alto ventos est coeptis utque fecit. Phoebe sine circumfuso arce. Tanto aliis. Matutinis cornua origo formaeque animal mundo. Chaos: fabricator. Natura mundo caesa addidit.
        Cuncta habendum meis omni ille formaeque emicuit septemque et. Lege fecit aethere porrexerat gentes horrifer formas.', 'section' => 'cyberchimps_blog_boxes_lite_section', 'heading' => 'cyberchimps_blog_heading');
        /* Options for box 1 ends */
        /* Options for box 2 starts */
        // Image uploader
        $fields_list[] = array('name' => __('Second Box Image', 'cyberchimps_core'), 'desc' => __('Enter URL or upload file', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_boxes_lite_image_two', 'type' => 'upload', 'std' => $directory_uri . apply_filters('cyberchimps_boxes_lite_img2', '/elements/lib/images/boxes/blueprint.png'), 'section' => 'cyberchimps_blog_boxes_lite_section', 'heading' => 'cyberchimps_blog_heading');
        // URL of Box link
        $fields_list[] = array('name' => __('Link URL', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_boxes_link_url_two', 'std' => apply_filters('cyberchimps_boxes_lite_url2', 'http://wordpress.org'), 'type' => 'text', 'section' => 'cyberchimps_blog_boxes_lite_section', 'heading' => 'cyberchimps_blog_heading');
        // Box text
        $fields_list[] = array('name' => __('Second Box Text', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_boxes_lite_image_two_text', 'type' => 'textarea', 'std' => 'Alto ventos est coeptis utque fecit. Phoebe sine circumfuso arce. Tanto aliis. Matutinis cornua origo formaeque animal mundo. Chaos: fabricator. Natura mundo caesa addidit.
        Cuncta habendum meis omni ille formaeque emicuit septemque et. Lege fecit aethere porrexerat gentes horrifer formas.', 'section' => 'cyberchimps_blog_boxes_lite_section', 'heading' => 'cyberchimps_blog_heading');
        /* Options for box 2 ends */
        /* Options for box 3 starts */
        // Image uploader
        $fields_list[] = array('name' => __('Third Box Image', 'cyberchimps_core'), 'desc' => __('Enter URL or upload file', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_boxes_lite_image_three', 'type' => 'upload', 'std' => $directory_uri . apply_filters('cyberchimps_boxes_lite_img3', '/elements/lib/images/boxes/docs.png'), 'section' => 'cyberchimps_blog_boxes_lite_section', 'heading' => 'cyberchimps_blog_heading');
        // URL of Box link
        $fields_list[] = array('name' => __('Link URL', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_boxes_link_url_three', 'std' => apply_filters('cyberchimps_boxes_lite_url3', 'http://wordpress.org'), 'type' => 'text', 'section' => 'cyberchimps_blog_boxes_lite_section', 'heading' => 'cyberchimps_blog_heading');
        // Box text
        $fields_list[] = array('name' => __('Third Box Text', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_boxes_lite_image_three_text', 'type' => 'textarea', 'std' => 'Alto ventos est coeptis utque fecit. Phoebe sine circumfuso arce. Tanto aliis. Matutinis cornua origo formaeque animal mundo. Chaos: fabricator. Natura mundo caesa addidit.
        Cuncta habendum meis omni ille formaeque emicuit septemque et. Lege fecit aethere porrexerat gentes horrifer formas.', 'section' => 'cyberchimps_blog_boxes_lite_section', 'heading' => 'cyberchimps_blog_heading');
        /* Options for box 3 ends */
        /********* BOXES LITE ENDS ******************/
        /********* PORTFOLIO LITE STARTS ****************/
        $fields_list[] = array('name' => __('Portfolio Upgrade', 'cyberchimps_core'), 'id' => 'portfolio_upgrade', 'class' => 'cyberchimps_pro_upgrade', 'desc' => sprintf(__('Portfolio Lite limits you to a total of 4 items throughout your whole site. Upgrade to %1$s to be able to create as many portfolio items as you like. Categorize them and display each category on a different page.', 'cyberchimps_core'), '<a href="' . apply_filters('cyberchimps_upgrade_link', 'http://cyberchimps.com') . '" title="' . apply_filters('cyberchimps_upgrade_pro_title', __('Pro', 'cyberchimps_core')) . '">' . apply_filters('cyberchimps_upgrade_pro_title', __('Pro', 'cyberchimps_core')) . '</a>'), 'type' => 'info', 'section' => 'cyberchimps_blog_portfolio_lite_section', 'heading' => 'cyberchimps_blog_heading');
        /* Options for portfolio 1 starts */
        // Image uploader
        $fields_list[] = array('name' => __('First Portfolio Image', 'cyberchimps_core'), 'desc' => __('Enter URL or upload file', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_lite_image_one', 'type' => 'upload', 'std' => $directory_uri . apply_filters('cyberchimps_portfolio_lite_img1', '/cyberchimps/lib/images/portfolio.jpg'), 'section' => 'cyberchimps_blog_portfolio_lite_section', 'heading' => 'cyberchimps_blog_heading');
        // Image caption
        $fields_list[] = array('name' => __('First Portfolio Image Caption', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_lite_image_one_caption', 'std' => apply_filters('cyberchimps_portfolio_lite_caption1', 'CyberChimps'), 'type' => 'text', 'section' => 'cyberchimps_blog_portfolio_lite_section', 'heading' => 'cyberchimps_blog_heading');
        // Portfolio link toggle
        $fields_list[] = array('name' => __('First Porfolio Link', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_link_toggle_one', 'type' => 'toggle', 'section' => 'cyberchimps_blog_portfolio_lite_section', 'heading' => 'cyberchimps_blog_heading');
        // URL of portfolio link
        $fields_list[] = array('name' => __('Link URL', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_link_url_one', 'class' => 'cyberchimps_blog_portfolio_link_toggle_one_toggle', 'std' => apply_filters('cyberchimps_portfolio_lite_url1', 'http://cyberchimps.com'), 'type' => 'text', 'section' => 'cyberchimps_blog_portfolio_lite_section', 'heading' => 'cyberchimps_blog_heading');
        /* Options for portfolio 1 ends */
        /* Options for portfolio 2 starts */
        // Image uploader
        $fields_list[] = array('name' => __('Second Portfolio Image', 'cyberchimps_core'), 'desc' => __('Enter URL or upload file', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_lite_image_two', 'type' => 'upload', 'std' => $directory_uri . apply_filters('cyberchimps_portfolio_lite_img2', '/cyberchimps/lib/images/portfolio.jpg'), 'section' => 'cyberchimps_blog_portfolio_lite_section', 'heading' => 'cyberchimps_blog_heading');
        // Image caption
        $fields_list[] = array('name' => __('Second Portfolio Image Caption', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_lite_image_two_caption', 'std' => apply_filters('cyberchimps_portfolio_lite_caption2', 'CyberChimps'), 'type' => 'text', 'section' => 'cyberchimps_blog_portfolio_lite_section', 'heading' => 'cyberchimps_blog_heading');
        // Portfolio link toggle
        $fields_list[] = array('name' => __('Second Porfolio Link', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_link_toggle_two', 'type' => 'toggle', 'section' => 'cyberchimps_blog_portfolio_lite_section', 'heading' => 'cyberchimps_blog_heading');
        // URL of portfolio link
        $fields_list[] = array('name' => __('Link URL', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_link_url_two', 'class' => 'cyberchimps_blog_portfolio_link_toggle_two_toggle', 'std' => apply_filters('cyberchimps_portfolio_lite_url2', 'http://cyberchimps.com'), 'type' => 'text', 'section' => 'cyberchimps_blog_portfolio_lite_section', 'heading' => 'cyberchimps_blog_heading');
        /* Options for portfolio 2 ends */
        /* Options for portfolio 3 starts */
        // Image uploader
        $fields_list[] = array('name' => __('Third Portfolio Image', 'cyberchimps_core'), 'desc' => __('Enter URL or upload file', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_lite_image_three', 'type' => 'upload', 'std' => $directory_uri . apply_filters('cyberchimps_portfolio_lite_img3', '/cyberchimps/lib/images/portfolio.jpg'), 'section' => 'cyberchimps_blog_portfolio_lite_section', 'heading' => 'cyberchimps_blog_heading');
        // Image caption
        $fields_list[] = array('name' => __('Third Portfolio Image Caption', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_lite_image_three_caption', 'std' => apply_filters('cyberchimps_portfolio_lite_caption3', 'CyberChimps'), 'type' => 'text', 'section' => 'cyberchimps_blog_portfolio_lite_section', 'heading' => 'cyberchimps_blog_heading');
        // Portfolio link toggle
        $fields_list[] = array('name' => __('Third Porfolio Link', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_link_toggle_three', 'type' => 'toggle', 'section' => 'cyberchimps_blog_portfolio_lite_section', 'heading' => 'cyberchimps_blog_heading');
        // URL of portfolio link
        $fields_list[] = array('name' => __('Link URL', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_link_url_three', 'class' => 'cyberchimps_blog_portfolio_link_toggle_three_toggle', 'std' => apply_filters('cyberchimps_portfolio_lite_url3', 'http://cyberchimps.com'), 'type' => 'text', 'section' => 'cyberchimps_blog_portfolio_lite_section', 'heading' => 'cyberchimps_blog_heading');
        /* Options for portfolio 3 ends */
        /* Options for portfolio 4 starts */
        // Image uploader
        $fields_list[] = array('name' => __('Fourth Portfolio Image', 'cyberchimps_core'), 'desc' => __('Enter URL or upload file', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_lite_image_four', 'type' => 'upload', 'std' => $directory_uri . apply_filters('cyberchimps_portfolio_lite_img4', '/cyberchimps/lib/images/portfolio.jpg'), 'section' => 'cyberchimps_blog_portfolio_lite_section', 'heading' => 'cyberchimps_blog_heading');
        // Image caption
        $fields_list[] = array('name' => __('Fourth Portfolio Image Caption', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_lite_image_four_caption', 'std' => apply_filters('cyberchimps_portfolio_lite_caption4', 'CyberChimps'), 'type' => 'text', 'section' => 'cyberchimps_blog_portfolio_lite_section', 'heading' => 'cyberchimps_blog_heading');
        // Portfolio link toggle
        $fields_list[] = array('name' => __('Fourth Porfolio Link', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_link_toggle_four', 'type' => 'toggle', 'section' => 'cyberchimps_blog_portfolio_lite_section', 'heading' => 'cyberchimps_blog_heading');
        // URL of portfolio link
        $fields_list[] = array('name' => __('Link URL', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_link_url_four', 'class' => 'cyberchimps_blog_portfolio_link_toggle_four_toggle', 'std' => apply_filters('cyberchimps_portfolio_lite_url4', 'http://cyberchimps.com'), 'type' => 'text', 'section' => 'cyberchimps_blog_portfolio_lite_section', 'heading' => 'cyberchimps_blog_heading');
        /* Options for portfolio 4 ends */
        // Portfolio title toggle
        $fields_list[] = array('name' => __('Portfolio Title', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_title_toggle', 'type' => 'toggle', 'std' => 'checked', 'section' => 'cyberchimps_blog_portfolio_lite_section', 'heading' => 'cyberchimps_blog_heading');
        // Portfolio title
        $fields_list[] = array('name' => __('Title', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_title', 'std' => 'Portfolio', 'type' => 'text', 'section' => 'cyberchimps_blog_portfolio_lite_section', 'heading' => 'cyberchimps_blog_heading');
        /********* PORTFOLIO LITE ENDS ****************/
        /********* SLIDER LITE STARTS *********/
        $fields_list[] = array('name' => __('Slider Upgrade', 'cyberchimps_core'), 'id' => 'slider_upgrade', 'class' => 'cyberchimps_pro_upgrade', 'desc' => sprintf(__('Slider Lite limits you to a total of 3 images throughout your whole site. Upgrade to %1$s to be able to create more images. Categorize them and display each category on a different page.', 'cyberchimps_core'), '<a href="' . apply_filters('cyberchimps_upgrade_link', 'http://cyberchimps.com') . '" title="' . apply_filters('cyberchimps_upgrade_pro_title', __('Pro', 'cyberchimps_core')) . '">' . apply_filters('cyberchimps_upgrade_pro_title', __('Pro', 'cyberchimps_core')) . '</a>'), 'type' => 'info', 'section' => 'cyberchimps_blog_slider_lite_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Slider Image 1', 'cyberchimps_core'), 'desc' => __('Enter URL or upload file', 'cyberchimps_core'), 'id' => 'image_one_slide', 'type' => 'upload', 'std' => $directory_uri . apply_filters('cyberchimps_slider_lite_img1', '/images/branding/slide1.jpg'), 'section' => 'cyberchimps_blog_slider_lite_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Slide 1 URL', 'cyberchimps_core'), 'id' => 'image_one_slide_url', 'std' => apply_filters('cyberchimps_slider_lite_url1', 'http://cyberchimps.com'), 'type' => 'text', 'section' => 'cyberchimps_blog_slider_lite_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Slider Image 2', 'cyberchimps_core'), 'desc' => __('Enter URL or upload file', 'cyberchimps_core'), 'id' => 'image_two_slide', 'type' => 'upload', 'std' => $directory_uri . apply_filters('cyberchimps_slider_lite_img2', '/elements/lib/images/slider/slide1.jpg'), 'section' => 'cyberchimps_blog_slider_lite_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Slide 2 URL', 'cyberchimps_core'), 'id' => 'image_two_slide_url', 'std' => apply_filters('cyberchimps_slider_lite_url2', 'http://cyberchimps.com'), 'type' => 'text', 'section' => 'cyberchimps_blog_slider_lite_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Slider Image 3', 'cyberchimps_core'), 'desc' => __('Enter URL or upload file', 'cyberchimps_core'), 'id' => 'image_three_slide', 'type' => 'upload', 'std' => $directory_uri . apply_filters('cyberchimps_slider_lite_img3', '/elements/lib/images/slider/slide1.jpg'), 'section' => 'cyberchimps_blog_slider_lite_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Slide 3 URL', 'cyberchimps_core'), 'id' => 'image_three_slide_url', 'std' => apply_filters('cyberchimps_slider_lite_url3', 'http://cyberchimps.com'), 'type' => 'text', 'section' => 'cyberchimps_blog_slider_lite_section', 'heading' => 'cyberchimps_blog_heading');
        /********* SLIDER LITE ENDS ***********/
    }
    // end free theme check
    //pro theme check
    if ($theme_check == 'pro') {
        /********* PORTFOLIO PRO STARTS ***************/
        $fields_list[] = array('name' => __('Images per Row', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_pro_per_row', 'std' => 3, 'type' => 'select', 'options' => array(3 => 'Three (default)', 2 => 'Two', 4 => 'Four'), 'section' => 'cyberchimps_portfolio_pro_section', 'heading' => 'cyberchimps_blog_heading');
        if ($options_portfolio_cats) {
            $fields_list[] = array('name' => __('Portfolio Category', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_pro_category', 'type' => 'select', 'options' => $options_portfolio_cats, 'section' => 'cyberchimps_portfolio_pro_section', 'heading' => 'cyberchimps_blog_heading');
        } else {
            $fields_list[] = array('name' => __('Portfolio Category', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_pro_category_help', 'type' => 'help', 'desc' => __('You need to create a Category', 'cyberchimps_core'), 'section' => 'cyberchimps_portfolio_pro_section', 'heading' => 'cyberchimps_blog_heading');
        }
        $fields_list[] = array('name' => __('Portfolio Title', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_pro_title', 'type' => 'toggle', 'section' => 'cyberchimps_portfolio_pro_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Title', 'cyberchimps_core'), 'id' => 'cyberchimps_blog_portfolio_pro_title_text', 'class' => 'cyberchimps_blog_portfolio_pro_title_toggle', 'type' => 'text', 'section' => 'cyberchimps_portfolio_pro_section', 'heading' => 'cyberchimps_blog_heading');
        /********* PORTFOLIO PRO ENDS *****************/
        /********* BLOG SLIDER STARTS ***********/
        $fields_list[] = array('name' => __('Slider Size', 'cyberchimps_core'), 'id' => 'blog_slider_size', 'type' => 'select', 'std' => 'full', 'options' => array('full' => __('Full', 'cyberchimps_core'), 'half' => __('Half', 'cyberchimps_core')), 'section' => 'cyberchimps_slider_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Slider Type', 'cyberchimps_core'), 'id' => 'blog_slider_type', 'class' => 'select-hide', 'type' => 'select', 'std' => 'custom_slides', 'options' => array('post' => __('Posts', 'cyberchimps_core'), 'custom_slides' => __('Custom', 'cyberchimps_core')), 'section' => 'cyberchimps_slider_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Post Categories', 'cyberchimps_core'), 'id' => 'blog_slider_post_cats', 'class' => 'post-select', 'type' => 'select', 'std' => 'all', 'options' => $options_categories, 'section' => 'cyberchimps_slider_section', 'heading' => 'cyberchimps_blog_heading');
        if ($options_slide_cats) {
            $fields_list[] = array('name' => __('Custom Categories', 'cyberchimps_core'), 'id' => 'custom_slider_post_cats', 'class' => 'custom_slides-select', 'type' => 'select', 'std' => 'cyberchimps_all', 'options' => $options_slide_cats, 'section' => 'cyberchimps_slider_section', 'heading' => 'cyberchimps_blog_heading');
        } else {
            $fields_list[] = array('name' => __('Custom Categories', 'cyberchimps_core'), 'id' => 'custom_slider_post_cats_help', 'class' => 'custom_slides-select', 'type' => 'help', 'desc' => __('You need to create a Category', 'cyberchimps_core'), 'section' => 'cyberchimps_slider_section', 'heading' => 'cyberchimps_blog_heading');
        }
        $fields_list[] = array('name' => __('Number of Featured Blog Posts', 'cyberchimps_core'), 'id' => 'blog_no_featured_posts', 'std' => '', 'type' => 'text', 'section' => 'cyberchimps_slider_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Slider Height', 'cyberchimps_core'), 'id' => 'slider_height', 'std' => '', 'type' => 'text', 'section' => 'cyberchimps_slider_section', 'heading' => 'cyberchimps_blog_heading');
        // Slider Speed
        $fields_list[] = array('name' => __('Slider Speed ', 'cyberchimps_core'), 'id' => 'slider_speed', 'std' => '3000', 'type' => 'text', 'section' => 'cyberchimps_slider_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Slider Arrows', 'cyberchimps_core'), 'id' => 'slider_arrows', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_slider_section', 'heading' => 'cyberchimps_blog_heading');
        /********* BLOG SLIDER ENDS ***********/
        /********* CALLOUT OPTIONS STARTS ***********/
        $fields_list[] = array('name' => __('Callout Title', 'cyberchimps_core'), 'id' => 'callout_title', 'std' => sprintf(__('%1$s\'s Call Out Element', 'cyberchimps_core'), apply_filters('cyberchimps_current_theme_name', 'CyberChimps')), 'type' => 'text', 'section' => 'cyberchimps_callout_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Callout Text', 'cyberchimps_core'), 'id' => 'callout_text', 'std' => sprintf(__('Use %1$s\'s Call Out section on any page where you want to deliver an important message to your customer or client.', 'cyberchimps_core'), apply_filters('cyberchimps_current_theme_name', 'CyberChimps')), 'type' => 'editor', 'section' => 'cyberchimps_callout_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Callout Button', 'cyberchimps_core'), 'id' => 'callout_button', 'std' => '', 'type' => 'toggle', 'section' => 'cyberchimps_callout_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Callout Button Text', 'cyberchimps_core'), 'id' => 'callout_button_text', 'class' => 'callout_button_toggle', 'std' => __('Click Here', 'cyberchimps_core'), 'type' => 'text', 'section' => 'cyberchimps_callout_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Callout Button URL', 'cyberchimps_core'), 'id' => 'callout_button_url', 'class' => 'callout_button_toggle', 'std' => '', 'type' => 'text', 'section' => 'cyberchimps_callout_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Custom Callout Options', 'cyberchimps_core'), 'id' => 'custom_callout_options', 'std' => '', 'type' => 'toggle', 'section' => 'cyberchimps_callout_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Button', 'cyberchimps_core'), 'id' => 'custom_callout_button', 'class' => 'custom_callout_options_toggle', 'std' => '', 'type' => 'upload', 'section' => 'cyberchimps_callout_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Background Color', 'cyberchimps_core'), 'id' => 'custom_callout_background_color', 'class' => 'custom_callout_options_toggle', 'std' => '', 'type' => 'color', 'section' => 'cyberchimps_callout_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Title Color', 'cyberchimps_core'), 'id' => 'custom_callout_title_color', 'class' => 'custom_callout_options_toggle', 'std' => '', 'type' => 'color', 'section' => 'cyberchimps_callout_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Text Color', 'cyberchimps_core'), 'id' => 'custom_callout_text_color', 'class' => 'custom_callout_options_toggle', 'std' => '', 'type' => 'color', 'section' => 'cyberchimps_callout_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Button Color', 'cyberchimps_core'), 'id' => 'custom_callout_button_color', 'class' => 'custom_callout_options_toggle', 'std' => '', 'type' => 'color', 'section' => 'cyberchimps_callout_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Button Text Color', 'cyberchimps_core'), 'id' => 'custom_callout_button_text_color', 'class' => 'custom_callout_options_toggle', 'std' => '', 'type' => 'color', 'section' => 'cyberchimps_callout_section', 'heading' => 'cyberchimps_blog_heading');
        /*********** CALLOUT OPTIONS ENDS **************/
        /********* HTML BOX OPTIONS STARTS ***********/
        $fields_list[] = array('name' => __('HTML Box', 'cyberchimps_core'), 'id' => 'html_box', 'std' => '', 'desc' => __('Enter your custom HTML code here', 'cyberchimps_core'), 'type' => 'editor', 'settings' => array('media_buttons' => true), 'section' => 'cyberchimps_html_box_section', 'heading' => 'cyberchimps_blog_heading');
        /********* HTML BOX OPTIONS ENDS *************/
        /************ RECENT POSTS STARTS **************/
        $fields_list[] = array('name' => __('Title', 'cyberchimps_core'), 'id' => 'recent_posts_title', 'std' => '', 'type' => 'toggle', 'section' => 'cyberchimps_recent_posts_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Custom Title', 'cyberchimps_core'), 'id' => 'recent_posts_custom_title', 'class' => 'recent_posts_title_toggle', 'std' => '', 'type' => 'text', 'section' => 'cyberchimps_recent_posts_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Post Categories', 'cyberchimps_core'), 'id' => 'recent_posts_post_cats', 'type' => 'select', 'std' => 'all', 'options' => $options_categories, 'section' => 'cyberchimps_recent_posts_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => __('Images', 'cyberchimps_core'), 'id' => 'recent_posts_images', 'std' => '', 'type' => 'toggle', 'section' => 'cyberchimps_recent_posts_section', 'heading' => 'cyberchimps_blog_heading');
        /************ RECENT POSTS ENDS ****************/
        /********* CAROUSEL OPTIONS STARTS ***********/
        if ($options_carousel_cats) {
            $fields_list[] = array('name' => __('Select a Category', 'cyberchimps_core'), 'id' => 'carousel_categories', 'type' => 'select', 'options' => $options_carousel_cats, 'section' => 'cyberchimps_carousel_section', 'heading' => 'cyberchimps_blog_heading');
        } else {
            $fields_list[] = array('name' => __('Select a Category', 'cyberchimps_core'), 'id' => 'carousel_categories_help', 'type' => 'help', 'desc' => __('You need to create a Category', 'cyberchimps_core'), 'section' => 'cyberchimps_carousel_section', 'heading' => 'cyberchimps_blog_heading');
        }
        /********* CAROUSEL OPTIONS ENDS ***********/
        /********* BOXES OPTIONS STARTS ***********/
        if ($options_boxes_cats) {
            $fields_list[] = array('name' => __('Select a Category', 'cyberchimps_core'), 'id' => 'boxes_category', 'type' => 'select', 'options' => $options_boxes_cats, 'section' => 'cyberchimps_boxes_section', 'heading' => 'cyberchimps_blog_heading');
        } else {
            $fields_list[] = array('name' => __('Select a Category', 'cyberchimps_core'), 'id' => 'boxes_category_help', 'type' => 'help', 'desc' => __('You need to create a Category', 'cyberchimps_core'), 'section' => 'cyberchimps_boxes_section', 'heading' => 'cyberchimps_blog_heading');
        }
        $fields_list[] = array('name' => __('Number of boxes per row', 'cyberchimps_core'), 'id' => 'boxes_per_row', 'type' => 'select', 'options' => array(2 => '2', 3 => '3', 4 => '4'), 'std' => apply_filters('cyberchimps_boxes_default_number', 3), 'section' => 'cyberchimps_boxes_section', 'heading' => 'cyberchimps_blog_heading');
        /********* BOXES OPTIONS ENDS ***********/
    }
    // end pro option fields
    /********* FEATURED POSTS START ************/
    /*$fields_list[] = array(
    		'name' => __('Post Categories', 'cyberchimps_core' ),
    		'id' => 'featured_posts_categories',
    		'type' => 'select',
    		'std' => 'all',
    		'options' => $options_categories,
    		'section' => 'cyberchimps_featured_posts_section',
    		'heading' => 'cyberchimps_blog_heading'
    	);
    	/********* FEATURED POSTS ENDS ************/
    /********* PROFILE OPTIONS STARTS **********
     *
     * // add gravatar image as default
     * $email = get_option( 'admin_email' );
     * if( $email ) {
     * $hash = md5( strtolower( trim ( $email ) ) );
     * $default_image =  'http://gravatar.com/avatar/' . $hash . '.jpg?s=250&r=g';
     * }
     * else {
     * $default_image = get_template_directory_uri() . '/elements/lib/images/profile/profile.jpg';
     * }
     *
     * $fields_list[]    = array(
     * 'name'        => __('Profile Name', 'cyberchimps_core' ),
     * 'id'        => 'profile_name',
     * 'type'        => 'text',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading'
     * );
     *
     * $fields_list[]    = array(
     * 'name'        => __('Profile Picture', 'cyberchimps_core' ),
     * 'desc'        => __('Enter URL or upload picture', 'cyberchimps_core' ),
     * 'id'        => 'profile_picture',
     * 'type'        => 'upload',
     * 'std'        => $default_image,
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading'
     * );
     *
     * $fields_list[]    = array(
     * 'name'        => __('Profession', 'cyberchimps_core' ),
     * 'id'        => 'profile_profession',
     * 'type'        => 'text',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading'
     * );
     *
     * $fields_list[]    = array(
     * 'name'        => __('About', 'cyberchimps_core' ),
     * 'id'        => 'profile_about',
     * 'std'        => '',
     * 'type'        => 'textarea',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading'
     * );
     *
     * $fields_list[]    = array(
     * 'name'        => __('Location', 'cyberchimps_core' ),
     * 'id'        => 'profile_location',
     * 'type'        => 'text',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading'
     * );
     *
     * $fields_list[]    = array(
     * 'name'        => __('Phone Number', 'cyberchimps_core' ),
     * 'id'        => 'profile_phone',
     * 'type'        => 'text',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading'
     * );
     *
     * $fields_list[]    = array(
     * 'name'        => __('Email Address', 'cyberchimps_core' ),
     * 'id'        => 'profile_email',
     * 'type'        => 'text',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading'
     * );
     *
     * $fields_list[]    = array(
     * 'name'        => __('Website Address', 'cyberchimps_core' ),
     * 'id'        => 'profile_website',
     * 'type'        => 'text',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading'
     * );
     *
     * /* Social options for profile starts *
     * $fields_list[]    = array(
     * 'name'        => __('Twitter', 'cyberchimps_core' ),
     * 'id'        => 'profile_twitter',
     * 'std'        => 'checked',
     * 'type'        => 'toggle',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading');
     *
     * $fields_list[]    = array(
     * 'name'        => __('Twitter URL', 'cyberchimps_core' ),
     * 'id'        => 'profile_twitter_url',
     * 'class'        => 'profile_twitter_toggle',
     * 'std'        => 'http://www.twitter.com/',
     * 'type'        => 'text',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading'
     * );
     *
     * $fields_list[]    = array(
     * 'name'        => __('Facebook', 'cyberchimps_core' ),
     * 'id'        => 'profile_facebook',
     * 'std'        => 'checked',
     * 'type'        => 'toggle',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading');
     *
     * $fields_list[]    = array(
     * 'name'        => __('Facebook URL', 'cyberchimps_core' ),
     * 'id'        => 'profile_facebook_url',
     * 'class'        => 'profile_facebook_toggle',
     * 'std'        => 'http://www.facebook.com/',
     * 'type'        => 'text',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading'
     * );
     *
     * $fields_list[]    = array(
     * 'name'        => __('Google+', 'cyberchimps_core' ),
     * 'id'        => 'profile_google',
     * 'std'        => 'checked',
     * 'type'        => 'toggle',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading');
     *
     * $fields_list[]    = array(
     * 'name'        => __('Google+ URL', 'cyberchimps_core' ),
     * 'id'        => 'profile_google_url',
     * 'class'        => 'profile_google_toggle',
     * 'std'        => 'http://www.google.com/',
     * 'type'        => 'text',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading'
     * );
     *
     * $fields_list[]    = array(
     * 'name'        => __('Flickr', 'cyberchimps_core' ),
     * 'id'        => 'profile_flickr',
     * 'type'        => 'toggle',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading');
     *
     * $fields_list[]    = array(
     * 'name'        => __('Flickr URL', 'cyberchimps_core' ),
     * 'id'        => 'profile_flickr_url',
     * 'class'        => 'profile_flickr_toggle',
     * 'std'        => 'http://www.flickr.com/',
     * 'type'        => 'text',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading'
     * );
     *
     * $fields_list[]    = array(
     * 'name'        => __('Pinterest', 'cyberchimps_core' ),
     * 'id'        => 'profile_pinterest',
     * 'type'        => 'toggle',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading');
     *
     * $fields_list[]    = array(
     * 'name'        => __('Pinterest URL', 'cyberchimps_core' ),
     * 'id'        => 'profile_pinterest_url',
     * 'class'        => 'profile_pinterest_toggle',
     * 'std'        => 'http://www.pinterest.com/',
     * 'type'        => 'text',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading'
     * );
     *
     * $fields_list[]    = array(
     * 'name'        => __('LinkedIn', 'cyberchimps_core' ),
     * 'id'        => 'profile_linkedin',
     * 'type'        => 'toggle',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading');
     *
     * $fields_list[] = array(
     * 'name'        => __('LinkedIn URL', 'cyberchimps_core' ),
     * 'id'        => 'profile_linkedin_url',
     * 'class'        => 'profile_linkedin_toggle',
     * 'std'        => 'http://www.linkedin.com/',
     * 'type'        => 'text',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading'
     * );
     *
     * $fields_list[]    = array(
     * 'name'        => __('YouTube', 'cyberchimps_core' ),
     * 'id'        => 'profile_youtube',
     * 'type'        => 'toggle',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading');
     *
     * $fields_list[]    = array(
     * 'name'        => __('YouTube URL', 'cyberchimps_core' ),
     * 'id'        => 'profile_youtube_url',
     * 'class'        => 'profile_youtube_toggle',
     * 'std'        => 'http://www.youtube.com/',
     * 'type'        => 'text',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading'
     * );
     *
     * $fields_list[]    = array(
     * 'name'        => __('RSS', 'cyberchimps_core' ),
     * 'id'        => 'profile_rss',
     * 'type'        => 'toggle',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading');
     *
     * $fields_list[]    = array(
     * 'name'        => __('RSS URL', 'cyberchimps_core' ),
     * 'id'        => 'profile_rss_url',
     * 'class'        => 'profile_rss_toggle',
     * 'std'        => get_bloginfo_rss( 'rss_url' ),
     * 'type'        => 'text',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading'
     * );
     *
     * $fields_list[]    = array(
     * 'name'        => __('Email', 'cyberchimps_core' ),
     * 'id'        => 'profile_email_id',
     * 'type'        => 'toggle',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading');
     *
     * $fields_list[]    = array(
     * 'name'        => __('Email Address', 'cyberchimps_core' ),
     * 'id'        => 'profile_email_id_url',
     * 'class'        => 'profile_email_id_toggle',
     * 'type'        => 'text',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading'
     * );
     *
     * $fields_list[]    = array(
     * 'name'        => __('Google Maps', 'cyberchimps_core' ),
     * 'id'        => 'profile_googlemaps',
     * 'type'        => 'toggle',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading');
     *
     * $fields_list[]    = array(
     * 'name'        => __('Google Maps URL', 'cyberchimps_core' ),
     * 'id'        => 'profile_googlemaps_url',
     * 'class'        => 'profile_googlemaps_toggle',
     * 'std'        => 'http://www.maps.google.com/',
     * 'type'        => 'text',
     * 'section'    => 'cyberchimps_profile_section',
     * 'heading'    => 'cyberchimps_blog_heading'
     * );
     * /* Social options for profile ends */
    /********* PROFILE OPTIONS ENDS ************/
    /*************************** TEMPLATES ***************************************************/
    /* SINGLE POSTS */
    $fields_list[] = array('name' => __('Sidebar Options', 'cyberchimps_core'), 'desc' => __('Images for layout.', 'cyberchimps_core'), 'id' => 'single_post_sidebar_options', 'std' => 'right_sidebar', 'type' => 'images', 'options' => apply_filters('sidebar_layout_options', array('full_width' => $imagepath . '1col.png', 'right_sidebar' => $imagepath . '2cr.png')), 'section' => 'cyberchimps_single_post_section', 'heading' => 'cyberchimps_templates_heading');
    // Toggle for post title
    $fields_list[] = array('name' => __('Post title', 'cyberchimps_core'), 'id' => 'single_post_title', 'type' => 'toggle', 'std' => 'checked', 'section' => 'cyberchimps_single_post_section', 'heading' => 'cyberchimps_templates_heading');
    $fields_list[] = array('name' => __('Featured Images', 'cyberchimps_core'), 'id' => 'single_post_featured_images', 'type' => 'toggle', 'section' => 'cyberchimps_single_post_section', 'heading' => 'cyberchimps_templates_heading');
    $fields_list[] = array('name' => __('Post Format Icons', 'cyberchimps_core'), 'id' => 'single_post_format_icons', 'type' => 'toggle', 'section' => 'cyberchimps_single_post_section', 'heading' => 'cyberchimps_templates_heading');
    /********* Post Byline Starts***********/
    // Author
    $fields_list[] = array('name' => __('Post Byline Author', 'cyberchimps_core'), 'id' => 'single_post_byline_author', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_single_post_section', 'heading' => 'cyberchimps_templates_heading');
    // Categories
    $fields_list[] = array('name' => __('Post Byline Categories', 'cyberchimps_core'), 'id' => 'single_post_byline_categories', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_single_post_section', 'heading' => 'cyberchimps_templates_heading');
    // Date
    $fields_list[] = array('name' => __('Post Byline Date', 'cyberchimps_core'), 'id' => 'single_post_byline_date', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_single_post_section', 'heading' => 'cyberchimps_templates_heading');
    // Comments
    $fields_list[] = array('name' => __('Post Byline Comments', 'cyberchimps_core'), 'id' => 'single_post_byline_comments', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_single_post_section', 'heading' => 'cyberchimps_templates_heading');
    // Tags
    $fields_list[] = array('name' => __('Post Byline Tags', 'cyberchimps_core'), 'id' => 'single_post_byline_tags', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_single_post_section', 'heading' => 'cyberchimps_templates_heading');
    /********* Post Byline Ends ***********/
    /* ARCHIVE */
    $fields_list[] = array('name' => __('Sidebar Options', 'cyberchimps_core'), 'desc' => __('Images for layout.', 'cyberchimps_core'), 'id' => 'archive_sidebar_options', 'std' => 'right_sidebar', 'type' => 'images', 'options' => apply_filters('sidebar_layout_options', array('full_width' => $imagepath . '1col.png', 'right_sidebar' => $imagepath . '2cr.png')), 'section' => 'cyberchimps_archive_section', 'heading' => 'cyberchimps_templates_heading');
    $fields_list[] = array('name' => __('Post Format Icons', 'cyberchimps_core'), 'id' => 'archive_format_icons', 'type' => 'toggle', 'section' => 'cyberchimps_archive_section', 'heading' => 'cyberchimps_templates_heading');
    $fields_list[] = array('name' => __('Post Excerpts', 'cyberchimps_core'), 'id' => 'archive_post_excerpts', 'type' => 'toggle', 'std' => 0, 'section' => 'cyberchimps_archive_section', 'heading' => 'cyberchimps_templates_heading');
    $fields_list[] = array('name' => __('Featured Images', 'cyberchimps_core'), 'id' => 'archive_featured_images', 'type' => 'toggle', 'section' => 'cyberchimps_archive_section', 'heading' => 'cyberchimps_templates_heading');
    /********* Post Byline Starts***********/
    // Author
    $fields_list[] = array('name' => __('Post Byline Author', 'cyberchimps_core'), 'id' => 'archive_post_byline_author', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_archive_section', 'heading' => 'cyberchimps_templates_heading');
    // Categories
    $fields_list[] = array('name' => __('Post Byline Categories', 'cyberchimps_core'), 'id' => 'archive_post_byline_categories', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_archive_section', 'heading' => 'cyberchimps_templates_heading');
    // Date
    $fields_list[] = array('name' => __('Post Byline Date', 'cyberchimps_core'), 'id' => 'archive_post_byline_date', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_archive_section', 'heading' => 'cyberchimps_templates_heading');
    // Comments
    $fields_list[] = array('name' => __('Post Byline Comments', 'cyberchimps_core'), 'id' => 'archive_post_byline_comments', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_archive_section', 'heading' => 'cyberchimps_templates_heading');
    // Tags
    $fields_list[] = array('name' => __('Post Byline Tags', 'cyberchimps_core'), 'id' => 'archive_post_byline_tags', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_archive_section', 'heading' => 'cyberchimps_templates_heading');
    /********* Post Byline Ends ***********/
    /* SEARCH */
    $fields_list[] = array('name' => __('Sidebar Options', 'cyberchimps_core'), 'desc' => __('Images for layout.', 'cyberchimps_core'), 'id' => 'search_sidebar_options', 'std' => 'right_sidebar', 'type' => 'images', 'options' => apply_filters('sidebar_layout_options', array('full_width' => $imagepath . '1col.png', 'right_sidebar' => $imagepath . '2cr.png')), 'section' => 'cyberchimps_search_section', 'heading' => 'cyberchimps_templates_heading');
    $fields_list[] = array('name' => __('Post Excerpts', 'cyberchimps_core'), 'id' => 'search_post_excerpts', 'type' => 'toggle', 'section' => 'cyberchimps_search_section', 'heading' => 'cyberchimps_templates_heading');
    $fields_list[] = array('name' => __('Read More Text', 'cyberchimps_core'), 'id' => 'search_post_read_more', 'class' => 'search_post_excerpts_toggle', 'type' => 'text', 'std' => 'Read More...', 'section' => 'cyberchimps_search_section', 'heading' => 'cyberchimps_templates_heading');
    $fields_list[] = array('name' => __('Excerpt Length', 'cyberchimps_core'), 'id' => 'search_post_excerpt_length', 'class' => 'search_post_excerpts_toggle', 'type' => 'text', 'std' => 55, 'section' => 'cyberchimps_search_section', 'heading' => 'cyberchimps_templates_heading');
    /* 404 */
    $fields_list[] = array('name' => __('Sidebar Options', 'cyberchimps_core'), 'desc' => __('Images for layout.', 'cyberchimps_core'), 'id' => 'error_sidebar_options', 'std' => 'full_width', 'type' => 'images', 'options' => apply_filters('sidebar_layout_options', array('full_width' => $imagepath . '1col.png', 'right_sidebar' => $imagepath . '2cr.png')), 'section' => 'cyberchimps_error_section', 'heading' => 'cyberchimps_templates_heading');
    $fields_list[] = array('name' => __('Custom 404 Title', 'cyberchimps_core'), 'id' => 'error_custom_title', 'type' => 'text', 'section' => 'cyberchimps_error_section', 'heading' => 'cyberchimps_templates_heading');
    $fields_list[] = array('name' => __('Custom 404 Content', 'cyberchimps_core'), 'id' => 'error_custom_content', 'std' => '', 'type' => 'editor', 'settings' => array('media_buttons' => true), 'section' => 'cyberchimps_error_section', 'heading' => 'cyberchimps_templates_heading');
    /*************************** FOOTER ***************************************************/
    $fields_list[] = array('name' => __('Footer Widgets', 'cyberchimps_core'), 'id' => 'footer_show_toggle', 'std' => 1, 'type' => 'toggle', 'section' => 'cyberchimps_footer_section', 'heading' => 'cyberchimps_footer_heading');
    $fields_list[] = array('id' => 'footer_copyright_text', 'name' => __('Footer Copyright Text', 'cyberchimps_core'), 'std' => '&copy; ' . get_bloginfo('name'), 'type' => 'text_html', 'section' => 'cyberchimps_footer_section', 'heading' => 'cyberchimps_footer_heading');
    return apply_filters('cyberchimps_field_filter', $fields_list);
}
Example #3
0
function cyberchimps_welcome_notice()
{
    global $pagenow;
    if (is_admin() && isset($_GET['activated']) && $pagenow == "themes.php") {
        if ('free' == cyberchimps_theme_check()) {
            ?>
			<div id="welcome" style="
										background: #81c7ef;
										padding: 0 20px 20px;
										margin: 20px 20px 20px 0;
										font-size: 1.5em;
										border: 1px solid #5ba9d3;
										-webkit-border-radius: 3px;
										border-radius: 3px;">
				<p style="color: #ffffff;
							text-align: center;
							line-height: 1.4em;
							font-weight: bold;
							margin: 5px 0 0;">
					<img src="<?php 
            echo get_template_directory_uri() . '/cyberchimps/options/lib/images/chimp.png';
            ?>
" alt="CyberChimps" style="position:relative; top:10px; left:0; margin-right:
					5px;">
					Welcome to <?php 
            echo apply_filters('cyberchimps_current_theme_name', 'CyberChimps ');
            ?>
 by <a target="_blank" href="http://www.cyberchimps.com/">CyberChimps</a>. Please visit the <a href="themes.php?page=cyberchimps-theme-options">Theme Options</a> to setup and build your website.</p>
			</div>
		<?php 
        }
    }
}
Example #4
0
function cyberchimps_options_help_text()
{
    $text = '';
    $instruction_img = get_template_directory_uri() . '/cyberchimps/options/lib/images/document.png';
    $support_img = get_template_directory_uri() . '/cyberchimps/options/lib/images/questionsupport.png';
    $text .= '<div class="cc_help_section">
						<div class="row-fluid"><div class="span3">
							<a href="' . apply_filters('cyberchimps_documentation', 'http://cyberchimps.com') . '" title="CyberChimps Instructions">
								<img src="' . $instruction_img . '" alt="CyberChimps Instructions" />
								<div class="cc_help_caption"><p>' . __('Instructions', 'cyberchimps_core') . '</p></div>
							</a>
						</div>
						<div class="span3">
							<a href="' . apply_filters('cyberchimps_support_forum', 'http://cyberchimps.com') . '" title="CyberChimps Support">
								<img src="' . $support_img . '" alt="CyberChimps Help" />
								<div class="cc_help_caption"><p>' . __('Support', 'cyberchimps_core') . '</p></div>
							</a>
						</div>
						</div>';
    // Upgrade Button and text for free themes
    if (cyberchimps_theme_check() == 'free') {
        $upgrade_link = apply_filters('cyberchimps_upgrade_link', 'http://cyberchimps.com');
        $pro_title = apply_filters('cyberchimps_upgrade_pro_title', 'CyberChimps Pro');
        $text .= '<div class="row-fluid">
						<div class="span6">
						<a href="' . $upgrade_link . '" title="' . $pro_title . '">
						<div class="cc_help_upgrade_bar">' . sprintf(__('Upgrade to %1$s', 'cyberchimps_core'), $pro_title) . '</div>
						</a>
						</div>
						</div>
						</div>
						<div class="clear"></div>';
        $text .= sprintf('<p>' . __('For even more amazing new features, upgrade to %1$s which includes a slider with customizable features, an image carousel, widgetized boxes, a callout section, expanded typography (including Google Fonts), additional color skins, and many more powerful new features. Visit %2$s to learn more!', 'cyberchimps_core') . '</p>', '<a href="' . $upgrade_link . ' title="' . $pro_title . '">' . $pro_title . '</a>', '<a href="cyberchimps.com" title="CyberChimps">CyberChimps.com</a>');
    } else {
        $text .= '</div><div class="clear"></div>';
    }
    return $text;
}
Example #5
0
    exit;
}
if (is_admin()) {
    /*********************************** PAGE OPTIONS STARTS ******************************************/
    $image_path = get_template_directory_uri() . '/cyberchimps/lib/images/';
    $themenamefull = apply_filters('cyberchimps_current_theme_name', 'CyberChimps');
    $pagedocs = apply_filters('cyberchimps_page_options_help', 'http://cyberchimps.com/guide/how-to-use-the-page-or-post-page-element/');
    $fields = array(array('type' => 'image_select', 'id' => 'cyberchimps_page_sidebar', 'class' => '', 'name' => __('Select Page Layout', 'cyberchimps_core'), 'options' => apply_filters('sidebar_layout_options', array('full_width' => $image_path . '1col.png', 'right_sidebar' => $image_path . '2cr.png')), 'std' => 'right_sidebar'), array('type' => 'checkbox', 'id' => 'cyberchimps_page_title_toggle', 'class' => 'checkbox', 'name' => __('Page Title', 'cyberchimps_core'), 'std' => 1), array('type' => 'section_order', 'id' => 'cyberchimps_page_section_order', 'class' => '', 'name' => __('Page Elements', 'cyberchimps_core'), 'options' => apply_filters('cyberchimps_elements_draganddrop_page_options', array('boxes' => __('Boxes', 'cyberchimps_core'), 'page_section' => __('Page', 'cyberchimps_core'), 'portfolio_lite' => __('Portfolio Lite', 'cyberchimps_core'), 'slider_lite' => __('Slider Lite', 'cyberchimps_core'), 'twitterbar_section' => __('Twitter Bar', 'cyberchimps_core'))), 'std' => array('page_section')), array('type' => 'help', 'id' => 'cyberchimps_page_help', 'class' => 'help-message', 'name' => __('Need Help?', 'cyberchimps_core'), 'help_text' => '<a href="' . $pagedocs . '" target="_blank">' . sprintf(__('Visit the %s page options guide', 'cyberchimps_core'), $themenamefull) . '</a></td>'));
    /*
     * configure your meta box
     */
    $config = array('id' => 'cyberchimps_page_options', 'title' => __('Page Options', 'cyberchimps_core'), 'pages' => array('page'), 'context' => 'normal', 'priority' => 'high', 'fields' => $fields, 'local_images' => false, 'use_with_theme' => true);
    /*
     * Initiate your meta box
     */
    $my_meta = new Cyberchimps_Meta_Box($config);
    /************************************ PAGE OPTIONS ENDS ***************************************/
    /************************************ POST SLIDER OPTIONS STARTS ***************************************/
    $slider_fields = array(array('type' => 'single_image', 'id' => 'cyberchimps_slider_image', 'class' => '', 'name' => __('Slider Image', 'cyberchimps_core'), 'std' => ''), array('type' => 'text', 'id' => 'cyberchimps_slider_caption', 'class' => '', 'name' => __('Slider Caption', 'cyberchimps_core')), array('type' => 'text', 'id' => 'cyberchimps_slider_url', 'class' => '', 'name' => __('Custom Slide Link', 'cyberchimps_core')), array('type' => 'checkbox', 'id' => 'cyberchimps_slider_hidetitle', 'class' => 'checkbox', 'name' => __('Title', 'cyberchimps_core'), 'std' => 1), array('type' => 'checkbox', 'id' => 'cyberchimps_slider_hidecaption', 'class' => 'checkbox', 'name' => __('Caption', 'cyberchimps_core'), 'std' => 0));
    /*
     * configure your meta box
     */
    $slider_config = array('id' => 'post_slider_options', 'title' => __('Custom Feature Slides', 'cyberchimps_core'), 'pages' => array('post'), 'context' => 'normal', 'priority' => 'high', 'fields' => $slider_fields, 'local_images' => false, 'use_with_theme' => true);
    /*
     * Initiate your meta box
     */
    if ('free' != cyberchimps_theme_check()) {
        $slider_meta = new Cyberchimps_Meta_Box($slider_config);
    }
    /************************************ POST SLIDER OPTIONS ENDS ***************************************/
}
Example #6
0
function cyberchimps_pro_welcome_notice()
{
    global $pagenow;
    if (is_admin() && isset($_GET['activated']) && $pagenow == "themes.php") {
        if ('pro' == cyberchimps_theme_check()) {
            wp_redirect('themes.php?page=cyberchimps-theme-options');
        }
    }
}
	<script type="text/javascript">
		jQuery(document).ready(function ($) {
			jQuery('#customize-info .accordion-section-title').append('<a target="_blank" class="button btn-upgrade" href="<?php 
    echo $upgrade_link;
    ?>
">Upgrade To Pro</a>');
			jQuery('#customize-info .btn-upgrade').click(function(event){
				event.stopPropagation();
			});
		});
	</script>
	<style>
		.wp-core-ui .btn-upgrade {
			color: #fff;
			background: none repeat scroll 0 0 #5BC0DE;
			border-color: #CCCCCC;
			box-shadow: 0 1px 0 #5BC0DE inset, 0 1px 0 rgba(0, 0, 0, 0.08);
			float: right;
			margin-top: -23px;
		}
		.wp-core-ui .btn-upgrade:hover {
			color: #fff;
			background: none repeat scroll 0 0 #39B3D7;
			box-shadow: 0 1px 0 #39B3D7 inset, 0 1px 0 rgba(0, 0, 0, 0.08);
		}
	</style>
<?php 
}
if (cyberchimps_theme_check() == 'free') {
    add_action('customize_controls_print_footer_scripts', 'cc_add_upgrade_button');
}
Example #8
0
function cyberchimps_add_core_fields($fields_list)
{
    //theme check
    $theme_check = cyberchimps_theme_check();
    // Set directory uri
    $directory_uri = get_template_directory_uri();
    /*************************** LISTS AND DEFAULTS *********************************************/
    // post byline
    $pbe_defaults = array('author' => 1, 'categories' => 1, 'date' => 1, 'comments' => 1, 'tags' => 1);
    $pbe_array = array('author' => __('Author', 'cyberchimps'), 'categories' => __('Categories', 'cyberchimps'), 'date' => __('Date', 'cyberchimps'), 'comments' => __('Comments', 'cyberchimps'), 'tags' => __('Tags', 'cyberchimps'));
    // Pull all the categories into an array
    $options_categories = array();
    $options_categories_obj = get_categories();
    foreach ($options_categories_obj as $category) {
        $options_categories['all'] = 'All';
        $options_categories[$category->cat_ID] = $category->cat_name;
    }
    // Pull all carousel categories
    $options_carousel_cats = array();
    $carousel_categories = get_terms('carousel_categories', array('hide_empty' => 0));
    if (!is_wp_error($carousel_categories)) {
        foreach ($carousel_categories as $carousel_cat) {
            $options_carousel_cats[$carousel_cat->term_id] = $carousel_cat->name;
        }
    }
    // Get custom categories of boxes element
    $options_boxes_cats = array();
    $boxes_terms = get_terms('boxes_categories', 'hide_empty=0');
    if (!is_wp_error($boxes_terms)) {
        foreach ($boxes_terms as $term) {
            $options_boxes_cats[$term->slug] = $term->name;
        }
    }
    // Pull all slider categories
    $options_slide_cats = array();
    $slide_categories = get_terms('slide_categories', array('hide_empty' => 0));
    if (!is_wp_error($slide_categories)) {
        foreach ($slide_categories as $slide_cat) {
            $options_slide_cats[$slide_cat->term_id] = $slide_cat->name;
        }
    }
    // Get all post categories
    $all_cats = array();
    $all_categories = get_terms('category');
    if (!is_wp_error($all_categories)) {
        foreach ($all_categories as $all_cat) {
            $all_cats[$all_cat->term_id] = $all_cat->name;
        }
    }
    // Pull all tags into an array
    $options_tags = array();
    $options_tags_obj = get_tags();
    foreach ($options_tags_obj as $tag) {
        $options_tags[$tag->term_id] = $tag->name;
    }
    // Pull all the pages into an array
    $options_pages = array();
    $options_pages_obj = get_pages('sort_column=post_parent,menu_order');
    $options_pages[''] = 'Select a page:';
    foreach ($options_pages_obj as $page) {
        $options_pages[$page->ID] = $page->post_title;
    }
    // If using image radio buttons, define a directory path
    $imagepath = $directory_uri . '/cyberchimps/lib/images/';
    $fields_list = array();
    // Typography Defaults
    $typography_defaults = apply_filters('typography_defaults', array('size' => '14px', 'face' => 'arial', 'style' => 'normal', 'color' => '#333333'));
    /**************************** PERSONALIZATION *****************************************/
    $fields_list[] = array('name' => __('Logo Image', 'cyberchimps'), 'desc' => __('Enter URL or upload file', 'cyberchimps'), 'id' => 'custom_logo_uploader', 'type' => 'upload', 'section' => 'cyberchimps_personalize_section', 'heading' => 'cyberchimps_personalize_heading');
    $fields_list[] = array('name' => __('Custom Logo URL', 'cyberchimps'), 'id' => 'custom_logo_url', 'type' => 'toggle', 'section' => 'cyberchimps_personalize_section', 'heading' => 'cyberchimps_personalize_heading');
    $fields_list[] = array('name' => __('URL', 'cyberchimps'), 'desc' => __('Enter URL', 'cyberchimps'), 'id' => 'custom_logo_url_link', 'class' => 'custom_logo_url_toggle', 'type' => 'text', 'std' => home_url(), 'section' => 'cyberchimps_personalize_section', 'heading' => 'cyberchimps_personalize_heading');
    $fields_list[] = array('name' => __('Blog Title', 'cyberchimps'), 'id' => 'blogname', 'type' => 'general_settings', 'std' => get_option('blogname'), 'section' => 'cyberchimps_personalize_section', 'heading' => 'cyberchimps_personalize_heading');
    $fields_list[] = array('name' => __('Description', 'cyberchimps'), 'id' => 'description_toggle', 'type' => 'toggle', 'std' => 'checked', 'section' => 'cyberchimps_personalize_section', 'heading' => 'cyberchimps_personalize_heading');
    $fields_list[] = array('name' => __('Description text', 'cyberchimps'), 'id' => 'blogdescription', 'class' => 'description_toggle_toggle', 'type' => 'general_settings', 'std' => get_option('blogdescription'), 'section' => 'cyberchimps_personalize_section', 'heading' => 'cyberchimps_personalize_heading');
    /*********************** PERSONALIZATION **********************************************/
    /*************************** DESIGN ***************************************************/
    /* LAYOUT OPTIONS */
    $fields_list[] = array('name' => __('Responsive Design', 'cyberchimps'), 'id' => 'responsive_design', 'type' => 'toggle', 'std' => 'checked', 'section' => 'cyberchimps_custom_layout_section', 'heading' => 'cyberchimps_design_heading');
    $fields_list[] = array('name' => __('Responsive Videos', 'cyberchimps'), 'id' => 'responsive_videos', 'type' => 'toggle', 'std' => 'checked', 'section' => 'cyberchimps_custom_layout_section', 'heading' => 'cyberchimps_design_heading');
    $fields_list[] = array('name' => __('Max Width', 'cyberchimps'), 'id' => 'max_width', 'class' => '', 'std' => 1020, 'desc' => __('enter the width of your site in pixels', 'cyberchimps'), 'type' => 'text', 'section' => 'cyberchimps_custom_layout_section', 'heading' => 'cyberchimps_design_heading');
    /* CUSTOM COLORS */
    $fields_list[] = array('name' => __('Select a Skin Color', 'cyberchimps'), 'id' => 'cyberchimps_skin_color', 'std' => 'default', 'type' => 'images', 'options' => apply_filters('cyberchimps_skin_color', array('default' => $directory_uri . '/inc/css/skins/images/default.png')), 'section' => 'cyberchimps_custom_colors_section', 'heading' => 'cyberchimps_design_heading');
    $fields_list[] = array('name' => __('Text Color', 'cyberchimps'), 'desc' => __('Select text color', 'cyberchimps'), 'id' => 'text_colorpicker', 'std' => '', 'type' => 'color', 'section' => 'cyberchimps_custom_colors_section', 'heading' => 'cyberchimps_design_heading');
    $fields_list[] = array('name' => __('Link Color', 'cyberchimps'), 'desc' => __('Select link color', 'cyberchimps'), 'id' => 'link_colorpicker', 'std' => '', 'type' => 'color', 'section' => 'cyberchimps_custom_colors_section', 'heading' => 'cyberchimps_design_heading');
    $fields_list[] = array('name' => __('Link Hover Color', 'cyberchimps'), 'desc' => __('Select link hover color', 'cyberchimps'), 'id' => 'link_hover_colorpicker', 'std' => '', 'type' => 'color', 'section' => 'cyberchimps_custom_colors_section', 'heading' => 'cyberchimps_design_heading');
    /* Typography Options */
    $typography_options = array('sizes' => apply_filters('cyberchimps_typography_sizes', array('8', '10', '12', '14', '16', '20')), 'faces' => apply_filters('cyberchimps_typography_faces', array('Helvetica Neue' => 'Helvetica Neue', 'Arial' => 'Arial')), 'styles' => apply_filters('cyberchimps_typography_styles', array('normal' => 'Normal', 'bold' => 'Bold')), 'color' => false);
    /* Typography Section */
    $fields_list[] = array('id' => 'typography_options', 'name' => __('Typography Options', 'cyberchimps'), 'type' => 'typography', 'std' => $typography_defaults, 'options' => $typography_options, 'section' => 'cyberchimps_typography_section', 'heading' => 'cyberchimps_design_heading');
    // Toggle for google font
    $fields_list[] = array('name' => __('Google fonts', 'cyberchimps'), 'id' => 'google_font', 'type' => 'toggle', 'section' => 'cyberchimps_typography_section', 'heading' => 'cyberchimps_design_heading');
    // Entry field for google font
    $fields_list[] = array('name' => __('Enter Google font', 'cyberchimps'), 'id' => 'google_font_field', 'class' => 'google_font_toggle', 'type' => 'text', 'desc' => 'Google font names are case sensitive', 'section' => 'cyberchimps_typography_section', 'heading' => 'cyberchimps_design_heading');
    $fields_list[] = array('name' => __('Demo Text', 'cyberchimps'), 'id' => 'font_demo_text', 'type' => 'info', 'desc' => 'The quick CyberChimp jumps over the lazy dog', 'section' => 'cyberchimps_typography_section', 'heading' => 'cyberchimps_design_heading');
    /*************************** HEADER STARTS ***************************************************/
    /********** HEADER DRAG & DROP STARTS ************/
    $fields_list[] = array('id' => 'header_section_order', 'name' => __('Header Drag/Drop', 'cyberchimps'), 'callback' => 'cyberchimps_drag_drop_field', 'std' => apply_filters('header_drag_and_drop_default', array('cyberchimps_header_content' => __('Logo + Icons', 'cyberchimps'))), 'type' => 'section_order', 'options' => apply_filters('header_drag_and_drop_options', array('cyberchimps_header_content' => __('Logo + Icons', 'cyberchimps'), 'cyberchimps_logo_search' => __('Logo + Search', 'cyberchimps'), 'cyberchimps_logo' => __('Logo', 'cyberchimps'))), 'section' => 'cyberchimps_header_drag_drop_section', 'heading' => 'cyberchimps_header_heading');
    /********** HEADER DRAG & DROP ENDS ************/
    /********** HEADER OPTIONS STARTS ************/
    $fields_list[] = array('name' => __('Custom Favicon', 'cyberchimps'), 'id' => 'custom_favicon', 'type' => 'toggle', 'section' => 'cyberchimps_header_options_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Favicon URL', 'cyberchimps'), 'desc' => __('Enter URL or upload file', 'cyberchimps'), 'id' => 'favicon_uploader', 'class' => 'custom_favicon_toggle', 'type' => 'upload', 'section' => 'cyberchimps_header_options_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Custom Apple touch icon', 'cyberchimps'), 'id' => 'custom_apple', 'type' => 'toggle', 'section' => 'cyberchimps_header_options_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Apple Touch URL', 'cyberchimps'), 'desc' => __('Enter URL or upload file', 'cyberchimps'), 'id' => 'apple_touch_uploader', 'class' => 'custom_apple_toggle', 'type' => 'upload', 'section' => 'cyberchimps_header_options_section', 'heading' => 'cyberchimps_header_heading');
    // Search bar toggle
    $fields_list[] = array('name' => __('Searchbar', 'cyberchimps'), 'id' => 'searchbar', 'type' => 'toggle', 'std' => apply_filters('searchbar_default', ''), 'section' => 'cyberchimps_header_options_section', 'heading' => 'cyberchimps_header_heading');
    /********** HEADER OPTIONS ENDS ************/
    /********** SOCIAL STARTS ************/
    $fields_list[] = array('name' => __('Choose your icon style', 'cyberchimps'), 'id' => 'theme_backgrounds', 'std' => apply_filters('cyberchimps_social_icon_default', 'default'), 'type' => 'images', 'options' => apply_filters('cyberchimps_social_icon_options', array('default' => $imagepath . 'social/thumbs/icons-default.png', 'legacy' => $imagepath . 'social/thumbs/icons-classic.png', 'round' => $imagepath . 'social/thumbs/icons-round.png')), 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Twitter', 'cyberchimps'), 'id' => 'social_twitter', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Twitter URL', 'cyberchimps'), 'id' => 'twitter_url', 'class' => 'social_twitter_toggle', 'std' => 'http://www.twitter.com/', 'type' => 'text', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Facebook', 'cyberchimps'), 'id' => 'social_facebook', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Facebook URL', 'cyberchimps'), 'id' => 'facebook_url', 'class' => 'social_facebook_toggle', 'std' => 'http://www.facebook.com/', 'type' => 'text', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Google+', 'cyberchimps'), 'id' => 'social_google', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Google+ URL', 'cyberchimps'), 'id' => 'google_url', 'class' => 'social_google_toggle', 'std' => 'http://www.google.com/', 'type' => 'text', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Flickr', 'cyberchimps'), 'id' => 'social_flickr', 'type' => 'toggle', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Flickr URL', 'cyberchimps'), 'id' => 'flickr_url', 'class' => 'social_flickr_toggle', 'std' => 'http://www.flickr.com/', 'type' => 'text', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Pinterest', 'cyberchimps'), 'id' => 'social_pinterest', 'type' => 'toggle', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Pinterest URL', 'cyberchimps'), 'id' => 'pinterest_url', 'class' => 'social_pinterest_toggle', 'std' => 'http://www.pinterest.com/', 'type' => 'text', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('LinkedIn', 'cyberchimps'), 'id' => 'social_linkedin', 'type' => 'toggle', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('LinkedIn URL', 'cyberchimps'), 'id' => 'linkedin_url', 'class' => 'social_linkedin_toggle', 'std' => 'http://www.linkedin.com/', 'type' => 'text', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('YouTube', 'cyberchimps'), 'id' => 'social_youtube', 'type' => 'toggle', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('YouTube URL', 'cyberchimps'), 'id' => 'youtube_url', 'class' => 'social_youtube_toggle', 'std' => 'http://www.youtube.com/', 'type' => 'text', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('RSS', 'cyberchimps'), 'id' => 'social_rss', 'type' => 'toggle', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('RSS URL', 'cyberchimps'), 'id' => 'rss_url', 'class' => 'social_rss_toggle', 'std' => get_bloginfo_rss('rss_url'), 'type' => 'text', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Email', 'cyberchimps'), 'id' => 'social_email', 'type' => 'toggle', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    $fields_list[] = array('name' => __('Email Address', 'cyberchimps'), 'id' => 'email_url', 'class' => 'social_email_toggle', 'type' => 'text', 'section' => 'cyberchimps_header_social_section', 'heading' => 'cyberchimps_header_heading');
    /********** SOCIAL ENDS ************/
    /*************************** HEADER ENDS ***************************************************/
    /*************************** BLOG STARTS ***************************************************/
    $fields_list[] = array('id' => 'blog_section_order', 'name' => __('Drag & Drop Blog Elements', 'cyberchimps'), 'callback' => 'cyberchimps_drag_drop_field', 'std' => apply_filters('cyberchimps_elements_draganddrop_defaults', array('boxes_lite' => __('Boxes', 'cyberchimps'), 'blog_post_page' => __('Post Page', 'cyberchimps'))), 'type' => 'section_order', 'options' => apply_filters('cyberchimps_elements_draganddrop_options', array('boxes_lite' => __('Boxes', 'cyberchimps'), 'blog_post_page' => __('Post Page', 'cyberchimps'), 'slider_lite' => __('Slider Lite', 'cyberchimps'), 'twitterbar_section' => __('Twitter Bar', 'cyberchimps'))), 'section' => 'cyberchimps_blog_drag_and_drop_section', 'heading' => 'cyberchimps_blog_heading');
    /********* BLOG OPTIONS STARTS ***********/
    $fields_list[] = array('name' => __('Sidebar Options', 'cyberchimps'), 'id' => 'sidebar_images', 'std' => apply_filters('sidebar_default', 'right_sidebar'), 'type' => 'images', 'options' => apply_filters('sidebar_layout_options', array('full_width' => $imagepath . '1col.png', 'right_sidebar' => $imagepath . '2cr.png', 'left_sidebar' => $imagepath . '2cl.png', 'left_right_sidebar' => $imagepath . '3cr.png', 'content_middle' => $imagepath . '3col.png')), 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Post Formats Icons', 'cyberchimps'), 'id' => 'post_format_icons', 'type' => 'toggle', 'std' => 0, 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Post Excerpts', 'cyberchimps'), 'id' => 'post_excerpts', 'type' => 'toggle', 'std' => 0, 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Read More Text', 'cyberchimps'), 'id' => 'blog_read_more_text', 'class' => 'post_excerpts_toggle', 'type' => 'text', 'std' => 'Read More...', 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Excerpt Length', 'cyberchimps'), 'id' => 'blog_excerpt_length', 'class' => 'post_excerpts_toggle', 'type' => 'text', 'std' => 55, 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Featured Images', 'cyberchimps'), 'id' => 'post_featured_images', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    /********* Post Byline Starts***********/
    // Author
    $fields_list[] = array('name' => __('Post Byline Author', 'cyberchimps'), 'id' => 'post_byline_author', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    // Categories
    $fields_list[] = array('name' => __('Post Byline Categories', 'cyberchimps'), 'id' => 'post_byline_categories', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    // Date
    $fields_list[] = array('name' => __('Post Byline Date', 'cyberchimps'), 'id' => 'post_byline_date', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    // Comments
    $fields_list[] = array('name' => __('Post Byline Comments', 'cyberchimps'), 'id' => 'post_byline_comments', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    // Tags
    $fields_list[] = array('name' => __('Post Byline Tags', 'cyberchimps'), 'id' => 'post_byline_tags', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_blog_options_section', 'heading' => 'cyberchimps_blog_heading');
    /********* Post Byline Ends ***********/
    /********* BLOG OPTIONS ENDS ***********/
    /********* BOXES LITE STARTS ****************/
    $fields_list[] = array('name' => __('Boxes Upgrade', 'cyberchimps'), 'id' => 'boxes_upgrade', 'class' => 'cyberchimps_pro_upgrade', 'desc' => sprintf(__('Boxes Lite limits you to a total of 3 boxes throughout your whole site. Upgrade to %1$s to be able to create as many boxes as you like. Categorize them and display each category on a different page.', 'cyberchimps'), '<a href="' . apply_filters('cyberchimps_upgrade_link', 'http://cyberchimps.com') . '" title="' . apply_filters('cyberchimps_upgrade_pro_title', __('Pro', 'cyberchimps')) . '">' . apply_filters('cyberchimps_upgrade_pro_title', __('Pro', 'cyberchimps')) . '</a>'), 'type' => 'info', 'section' => 'cyberchimps_blog_boxes_lite_section', 'heading' => 'cyberchimps_blog_heading');
    /********* BOXES LITE ENDS ******************/
    /********* BOXES OPTIONS STARTS ***********/
    if ($options_boxes_cats) {
        $fields_list[] = array('name' => __('Select a Category', 'cyberchimps'), 'id' => 'boxes_category', 'type' => 'select', 'options' => $options_boxes_cats, 'section' => 'cyberchimps_boxes_section', 'heading' => 'cyberchimps_blog_heading');
    } else {
        $fields_list[] = array('name' => __('Select a Category', 'cyberchimps'), 'id' => 'boxes_category_help', 'type' => 'help', 'desc' => __('You need to create a Category', 'cyberchimps'), 'section' => 'cyberchimps_boxes_section', 'heading' => 'cyberchimps_blog_heading');
    }
    /********* BOXES OPTIONS ENDS ***********/
    /************ RECENT POSTS STARTS **************/
    $fields_list[] = array('name' => __('Title', 'cyberchimps'), 'id' => 'recent_posts_title', 'std' => '1', 'type' => 'toggle', 'section' => 'cyberchimps_blog_recent_posts_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Custom Title', 'cyberchimps'), 'id' => 'recent_posts_custom_title', 'class' => 'recent_posts_title_toggle', 'std' => __('Latest Blog Posts', 'cyberchimps'), 'type' => 'text', 'section' => 'cyberchimps_blog_recent_posts_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Post Categories', 'cyberchimps'), 'id' => 'recent_posts_post_cats', 'type' => 'select', 'std' => 'all', 'options' => $options_categories, 'section' => 'cyberchimps_blog_recent_posts_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Images', 'cyberchimps'), 'id' => 'recent_posts_images', 'std' => '', 'type' => 'toggle', 'section' => 'cyberchimps_blog_recent_posts_section', 'heading' => 'cyberchimps_blog_heading');
    /************ RECENT POSTS ENDS ****************/
    /********* CALLOUT OPTIONS STARTS ***********/
    $fields_list[] = array('name' => __('Callout Title', 'cyberchimps'), 'id' => 'callout_title', 'std' => sprintf(__('%1$s\'s Call Out Element', 'cyberchimps'), apply_filters('cyberchimps_current_theme_name', 'Cyberchimps')), 'type' => 'text', 'section' => 'cyberchimps_blog_callout_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Callout Text', 'cyberchimps'), 'id' => 'callout_text', 'std' => sprintf(__('Use %1$s\'s Call Out section on any page where you want to deliver an important message to your customer or client.', 'cyberchimps'), apply_filters('cyberchimps_current_theme_name', 'Cyberchimps')), 'type' => 'editor', 'section' => 'cyberchimps_blog_callout_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Callout Button', 'cyberchimps'), 'id' => 'callout_button', 'std' => '', 'type' => 'toggle', 'section' => 'cyberchimps_blog_callout_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Callout Button Text', 'cyberchimps'), 'id' => 'callout_button_text', 'class' => 'callout_button_toggle', 'std' => __('Click Here', 'cyberchimps'), 'type' => 'text', 'section' => 'cyberchimps_blog_callout_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Callout Button URL', 'cyberchimps'), 'id' => 'callout_button_url', 'class' => 'callout_button_toggle', 'std' => '', 'type' => 'text', 'section' => 'cyberchimps_blog_callout_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Custom Callout Options', 'cyberchimps'), 'id' => 'custom_callout_options', 'std' => '', 'type' => 'toggle', 'section' => 'cyberchimps_blog_callout_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Custom Callout Button', 'cyberchimps'), 'id' => 'custom_callout_button', 'class' => 'custom_callout_options_toggle', 'std' => '', 'type' => 'upload', 'section' => 'cyberchimps_blog_callout_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Custom Callout Background Color', 'cyberchimps'), 'id' => 'custom_callout_background_color', 'class' => 'custom_callout_options_toggle', 'std' => '', 'type' => 'color', 'section' => 'cyberchimps_blog_callout_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Custom Callout Title Color', 'cyberchimps'), 'id' => 'custom_callout_title_color', 'class' => 'custom_callout_options_toggle', 'std' => '', 'type' => 'color', 'section' => 'cyberchimps_blog_callout_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Custom Callout Text Color', 'cyberchimps'), 'id' => 'custom_callout_text_color', 'class' => 'custom_callout_options_toggle', 'std' => '', 'type' => 'color', 'section' => 'cyberchimps_blog_callout_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Custom Callout Button Color', 'cyberchimps'), 'id' => 'custom_callout_button_color', 'class' => 'custom_callout_options_toggle', 'std' => '', 'type' => 'color', 'section' => 'cyberchimps_blog_callout_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Custom Callout Button Text Color', 'cyberchimps'), 'id' => 'custom_callout_button_text_color', 'class' => 'custom_callout_options_toggle', 'std' => '', 'type' => 'color', 'section' => 'cyberchimps_blog_callout_section', 'heading' => 'cyberchimps_blog_heading');
    /*********** CALLOUT OPTIONS ENDS **************/
    /********* SLIDER STARTS *********/
    $fields_list[] = array('name' => __('Slider Size', 'cyberchimps'), 'id' => 'blog_slider_size', 'std' => 'full', 'type' => 'select', 'options' => array('full' => __('Full', 'cyberchimps'), 'half' => __('Half', 'cyberchimps')), 'section' => 'cyberchimps_blog_slider_lite_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Slider Height', 'cyberchimps'), 'id' => 'slider_height', 'type' => 'text', 'section' => 'cyberchimps_blog_slider_lite_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Slider Speed', 'cyberchimps'), 'id' => 'slider_speed', 'type' => 'text', 'section' => 'cyberchimps_blog_slider_lite_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Slider Arrows', 'cyberchimps'), 'id' => 'slider_arrows', 'type' => 'toggle', 'std' => 'checked', 'section' => 'cyberchimps_blog_slider_lite_section', 'heading' => 'cyberchimps_blog_heading');
    /* slide generator */
    for ($i = 1; $i <= 12; $i++) {
        $slide_std = $i === 1 ? $directory_uri . apply_filters('cyberchimps_slider_lite_img_1', '/elements/lib/images/slider/slide1.jpg') : '';
        $fields_list[] = array('name' => __('Slider Image ', 'cyberchimps') . $i, 'desc' => __('Enter URL or upload file', 'cyberchimps'), 'id' => 'image_slide_' . $i, 'type' => 'upload', 'std' => $slide_std, 'section' => 'cyberchimps_blog_slider_lite_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => sprintf(__('Slide %1$s URL', 'cyberchimps'), $i), 'id' => 'image_slide_url_' . $i, 'type' => 'text', 'section' => 'cyberchimps_blog_slider_lite_section', 'heading' => 'cyberchimps_blog_heading');
        $fields_list[] = array('name' => sprintf(__('Slide %1$s Caption', 'cyberchimps'), $i), 'id' => 'image_slide_caption_' . $i, 'type' => 'text', 'section' => 'cyberchimps_blog_slider_lite_section', 'heading' => 'cyberchimps_blog_heading');
    }
    /********* SLIDER ENDS ***********/
    /********* TWITTERBAR OPTIONS STARTS ***********/
    $fields_list[] = array('name' => __('Twitter Handle', 'cyberchimps'), 'id' => 'twitter_handle', 'std' => 'CyberChimps', 'type' => 'text', 'section' => 'cyberchimps_twitterbar_section', 'heading' => 'cyberchimps_blog_heading');
    /********* TWITTERBAR OPTIONS ENDS ***********/
    /********* FEATURED POSTS START ************/
    /*$fields_list[] = array(
    		'name' => __('Post Categories', 'cyberchimps'),
    		'id' => 'featured_posts_categories',
    		'type' => 'select',
    		'std' => 'all',
    		'options' => $options_categories,
    		'section' => 'cyberchimps_featured_posts_section',
    		'heading' => 'cyberchimps_blog_heading'
    	);*/
    /********* PRODUCT OPTIONS STARTS ************/
    /********* PRODUCT OPTIONS ENDS ************/
    $fields_list[] = array('name' => __('Product Layout', 'cyberchimps'), 'id' => 'cyberchimps_product_layout', 'type' => 'select', 'options' => array(1 => __('Text Left - Media Right', 'cyberchimps'), 2 => __('Text Right - Media Left', 'cyberchimps')), 'section' => 'cyberchimps_product_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Product Title', 'cyberchimps'), 'id' => 'cyberchimps_product_title', 'std' => 'Product', 'type' => 'text', 'section' => 'cyberchimps_product_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Product Text', 'cyberchimps'), 'id' => 'cyberchimps_product_text', 'type' => 'textarea', 'std' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ornare sem in diam aliquet sollicitudin. Proin ut nisi diam, sed venenatis elit. Proin sed tortor nunc. Proin quis felis dui. Integer id magna ac arcu imperdiet lobortis. Nulla a lectus non nisl euismod porttitor. Etiam massa libero, pretium id laoreet.', 'section' => 'cyberchimps_product_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Media Type', 'cyberchimps'), 'id' => 'cyberchimps_product_media_type', 'type' => 'select', 'options' => array(1 => __('Image', 'cyberchimps'), 2 => __('Video', 'cyberchimps')), 'section' => 'cyberchimps_product_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Product Image', 'cyberchimps'), 'desc' => __('Enter URL or upload file', 'cyberchimps'), 'id' => 'cyberchimps_product_image', 'std' => $directory_uri . '/elements/lib/images/product/product.jpg', 'type' => 'upload', 'section' => 'cyberchimps_product_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Product Image Link', 'cyberchimps'), 'id' => 'cyberchimps_product_image_link_toggle', 'type' => 'toggle', 'std' => 'checked', 'section' => 'cyberchimps_product_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Link URL', 'cyberchimps'), 'id' => 'cyberchimps_product_image_link', 'class' => 'cyberchimps_product_image_link_toggle_toggle', 'std' => home_url(), 'type' => 'text', 'section' => 'cyberchimps_product_section', 'heading' => 'cyberchimps_blog_heading');
    $fields_list[] = array('name' => __('Video Embed', 'cyberchimps'), 'id' => 'cyberchimps_product_video', 'type' => 'unfiltered_textarea', 'section' => 'cyberchimps_product_section', 'heading' => 'cyberchimps_blog_heading');
    /*************************** TEMPLATES ***************************************************/
    /* SINGLE POSTS */
    $fields_list[] = array('name' => __('Sidebar Options', 'cyberchimps'), 'desc' => __('Images for layout.', 'cyberchimps'), 'id' => 'single_post_sidebar_options', 'std' => 'right_sidebar', 'type' => 'images', 'options' => apply_filters('sidebar_layout_options', array('full_width' => $imagepath . '1col.png', 'right_sidebar' => $imagepath . '2cr.png')), 'section' => 'cyberchimps_single_post_section', 'heading' => 'cyberchimps_templates_heading');
    // Toggle for post title
    $fields_list[] = array('name' => __('Post title', 'cyberchimps'), 'id' => 'single_post_title', 'type' => 'toggle', 'std' => 'checked', 'section' => 'cyberchimps_single_post_section', 'heading' => 'cyberchimps_templates_heading');
    $fields_list[] = array('name' => __('Featured Images', 'cyberchimps'), 'id' => 'single_post_featured_images', 'type' => 'toggle', 'section' => 'cyberchimps_single_post_section', 'heading' => 'cyberchimps_templates_heading');
    $fields_list[] = array('name' => __('Post Format Icons', 'cyberchimps'), 'id' => 'single_post_format_icons', 'type' => 'toggle', 'section' => 'cyberchimps_single_post_section', 'heading' => 'cyberchimps_templates_heading');
    /********* Post Byline Starts***********/
    // Author
    $fields_list[] = array('name' => __('Post Byline Author', 'cyberchimps'), 'id' => 'single_post_byline_author', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_single_post_section', 'heading' => 'cyberchimps_templates_heading');
    // Categories
    $fields_list[] = array('name' => __('Post Byline Categories', 'cyberchimps'), 'id' => 'single_post_byline_categories', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_single_post_section', 'heading' => 'cyberchimps_templates_heading');
    // Date
    $fields_list[] = array('name' => __('Post Byline Date', 'cyberchimps'), 'id' => 'single_post_byline_date', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_single_post_section', 'heading' => 'cyberchimps_templates_heading');
    // Comments
    $fields_list[] = array('name' => __('Post Byline Comments', 'cyberchimps'), 'id' => 'single_post_byline_comments', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_single_post_section', 'heading' => 'cyberchimps_templates_heading');
    // Tags
    $fields_list[] = array('name' => __('Post Byline Tags', 'cyberchimps'), 'id' => 'single_post_byline_tags', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_single_post_section', 'heading' => 'cyberchimps_templates_heading');
    /********* Post Byline Ends ***********/
    /* ARCHIVE */
    $fields_list[] = array('name' => __('Sidebar Options', 'cyberchimps'), 'desc' => __('Images for layout.', 'cyberchimps'), 'id' => 'archive_sidebar_options', 'std' => 'right_sidebar', 'type' => 'images', 'options' => apply_filters('sidebar_layout_options', array('full_width' => $imagepath . '1col.png', 'right_sidebar' => $imagepath . '2cr.png')), 'section' => 'cyberchimps_archive_section', 'heading' => 'cyberchimps_templates_heading');
    $fields_list[] = array('name' => __('Post Format Icons', 'cyberchimps'), 'id' => 'archive_format_icons', 'type' => 'toggle', 'section' => 'cyberchimps_archive_section', 'heading' => 'cyberchimps_templates_heading');
    $fields_list[] = array('name' => __('Post Excerpts', 'cyberchimps'), 'id' => 'archive_post_excerpts', 'type' => 'toggle', 'std' => 0, 'section' => 'cyberchimps_archive_section', 'heading' => 'cyberchimps_templates_heading');
    $fields_list[] = array('name' => __('Featured Images', 'cyberchimps'), 'id' => 'archive_featured_images', 'type' => 'toggle', 'section' => 'cyberchimps_archive_section', 'heading' => 'cyberchimps_templates_heading');
    /********* Post Byline Starts***********/
    // Author
    $fields_list[] = array('name' => __('Post Byline Author', 'cyberchimps'), 'id' => 'archive_post_byline_author', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_archive_section', 'heading' => 'cyberchimps_templates_heading');
    // Categories
    $fields_list[] = array('name' => __('Post Byline Categories', 'cyberchimps'), 'id' => 'archive_post_byline_categories', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_archive_section', 'heading' => 'cyberchimps_templates_heading');
    // Date
    $fields_list[] = array('name' => __('Post Byline Date', 'cyberchimps'), 'id' => 'archive_post_byline_date', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_archive_section', 'heading' => 'cyberchimps_templates_heading');
    // Comments
    $fields_list[] = array('name' => __('Post Byline Comments', 'cyberchimps'), 'id' => 'archive_post_byline_comments', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_archive_section', 'heading' => 'cyberchimps_templates_heading');
    // Tags
    $fields_list[] = array('name' => __('Post Byline Tags', 'cyberchimps'), 'id' => 'archive_post_byline_tags', 'std' => 'checked', 'type' => 'toggle', 'section' => 'cyberchimps_archive_section', 'heading' => 'cyberchimps_templates_heading');
    /********* Post Byline Ends ***********/
    /* SEARCH */
    $fields_list[] = array('name' => __('Sidebar Options', 'cyberchimps'), 'desc' => __('Images for layout.', 'cyberchimps'), 'id' => 'search_sidebar_options', 'std' => 'right_sidebar', 'type' => 'images', 'options' => apply_filters('sidebar_layout_options', array('full_width' => $imagepath . '1col.png', 'right_sidebar' => $imagepath . '2cr.png')), 'section' => 'cyberchimps_search_section', 'heading' => 'cyberchimps_templates_heading');
    $fields_list[] = array('name' => __('Post Excerpts', 'cyberchimps'), 'id' => 'search_post_excerpts', 'type' => 'toggle', 'section' => 'cyberchimps_search_section', 'heading' => 'cyberchimps_templates_heading');
    $fields_list[] = array('name' => __('Read More Text', 'cyberchimps'), 'id' => 'search_post_read_more', 'class' => 'search_post_excerpts_toggle', 'type' => 'text', 'std' => 'Read More...', 'section' => 'cyberchimps_search_section', 'heading' => 'cyberchimps_templates_heading');
    $fields_list[] = array('name' => __('Excerpt Length', 'cyberchimps'), 'id' => 'search_post_excerpt_length', 'class' => 'search_post_excerpts_toggle', 'type' => 'text', 'std' => 55, 'section' => 'cyberchimps_search_section', 'heading' => 'cyberchimps_templates_heading');
    /* 404 */
    $fields_list[] = array('name' => __('Sidebar Options', 'cyberchimps'), 'desc' => __('Images for layout.', 'cyberchimps'), 'id' => 'error_sidebar_options', 'std' => 'full_width', 'type' => 'images', 'options' => apply_filters('sidebar_layout_options', array('full_width' => $imagepath . '1col.png', 'right_sidebar' => $imagepath . '2cr.png')), 'section' => 'cyberchimps_error_section', 'heading' => 'cyberchimps_templates_heading');
    $fields_list[] = array('name' => __('Custom 404 Title', 'cyberchimps'), 'id' => 'error_custom_title', 'type' => 'text', 'section' => 'cyberchimps_error_section', 'heading' => 'cyberchimps_templates_heading');
    $fields_list[] = array('name' => __('Custom 404 Content', 'cyberchimps'), 'id' => 'error_custom_content', 'std' => '', 'type' => 'textarea', 'section' => 'cyberchimps_error_section', 'heading' => 'cyberchimps_templates_heading');
    /*************************** FOOTER ***************************************************/
    $fields_list[] = array('name' => __('Footer Widgets', 'cyberchimps'), 'id' => 'footer_show_toggle', 'std' => 1, 'type' => 'toggle', 'section' => 'cyberchimps_footer_section', 'heading' => 'cyberchimps_footer_heading');
    $fields_list[] = array('id' => 'footer_copyright_text', 'name' => __('Footer Copyright Text', 'cyberchimps'), 'std' => '&copy; ' . get_bloginfo('name'), 'type' => 'text', 'section' => 'cyberchimps_footer_section', 'heading' => 'cyberchimps_footer_heading');
    return apply_filters('cyberchimps_field_filter', $fields_list);
}
 $choices = apply_filters('cyberchimps_skin_color', array('default' => get_template_directory_uri() . '/inc/css/skins/images/default.png'));
 if (count($choices) > 1) {
     $wp_customize->add_setting('cyberchimps_options[cyberchimps_skin_color]', array('default' => array('default' => get_template_directory_uri() . '/inc/css/skins/images/default.png'), 'type' => 'option'));
     $wp_customize->add_control(new Cyberchimps_skin_selector($wp_customize, 'skin_color', array('label' => __('Skin Color', 'cyberchimps_core'), 'section' => 'cyberchimps_design_section', 'settings' => 'cyberchimps_options[cyberchimps_skin_color]', 'choices' => $choices)));
 }
 // text color
 $wp_customize->add_setting('cyberchimps_options[text_colorpicker]', array('default' => '', 'type' => 'option'));
 $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'text_colorpicker', array('label' => __('Text Color', 'cyberchimps_core'), 'section' => 'cyberchimps_design_section', 'settings' => 'cyberchimps_options[text_colorpicker]')));
 // link color
 $wp_customize->add_setting('cyberchimps_options[link_colorpicker]', array('default' => '', 'type' => 'option'));
 $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'link_colorpicker', array('label' => __('Link Color', 'cyberchimps_core'), 'section' => 'cyberchimps_design_section', 'settings' => 'cyberchimps_options[link_colorpicker]')));
 // link hover color
 $wp_customize->add_setting('cyberchimps_options[link_hover_colorpicker]', array('default' => '', 'type' => 'option'));
 $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'link_hover_colorpicker', array('label' => __('Link Hover Color', 'cyberchimps_core'), 'section' => 'cyberchimps_design_section', 'settings' => 'cyberchimps_options[link_hover_colorpicker]')));
 // Custom CSS
 if ('pro' == cyberchimps_theme_check()) {
     $wp_customize->add_setting('cyberchimps_options[custom_css]', array('default' => '', 'type' => 'option'));
     // Content area
     $wp_customize->add_control(new Cyberchimps_Form($wp_customize, 'custom_css', array('label' => __('Custom Css', 'cyberchimps_core'), 'section' => 'cyberchimps_design_section', 'settings' => 'cyberchimps_options[custom_css]', 'type' => 'textarea')));
 }
 // new typography section
 $wp_customize->add_section('cyberchimps_typography_section', array('title' => 'Typography', 'priority' => 40));
 // typography sizes
 $wp_customize->add_setting('cyberchimps_options[typography_options][size]', array('default' => '14px', 'type' => 'option'));
 $wp_customize->add_control(new Cyberchimps_Typography_Size($wp_customize, 'typography_size', array('label' => __('Typography Size', 'cyberchimps_core'), 'section' => 'cyberchimps_typography_section', 'type' => 'select', 'settings' => 'cyberchimps_options[typography_options][size]', 'choices' => apply_filters('cyberchimps_typography_sizes', ''))));
 // typography style
 $wp_customize->add_setting('cyberchimps_options[typography_options][style]', array('default' => 'normal', 'type' => 'option'));
 $wp_customize->add_control('typography_style', array('label' => __('Typography Style', 'cyberchimps_core'), 'section' => 'cyberchimps_typography_section', 'type' => 'select', 'settings' => 'cyberchimps_options[typography_options][style]', 'choices' => apply_filters('cyberchimps_typography_styles', '')));
 // typography face
 /* Default font faces */
 $faces = array('Arial, Helvetica, sans-serif' => 'Arial', 'Arial Black, Gadget, sans-serif' => 'Arial Black', 'Comic Sans MS, cursive' => 'Comic Sans MS', 'Courier New, monospace' => 'Courier New', 'Georgia, serif' => 'Georgia', '"HelveticaNeue-Light", "Helvetica Neue Light",