'cyberchimps_help_heading',
'title' => __('Help', 'cyberchimps'),
);
$headings_list[] = array(
'id' => 'cyberchimps_design_heading',
'title' => __('Design', 'cyberchimps'),
);
$headings_list[] = array(
'id' => 'cyberchimps_header_heading',
'title' => __('Header', 'cyberchimps'),
);
$headings_list[] = array(
'id' => 'cyberchimps_blog_heading',
'title' => __('Blog', 'cyberchimps'),
);
$headings_list[] = array(
'id' => 'cyberchimps_templates_heading',
'title' => __('Templates', 'cyberchimps'),
);
$headings_list[] = array(
'id' => 'cyberchimps_footer_heading',
'title' => __('Footer', 'cyberchimps'),
);
return apply_filters( 'cyberchimps_headings_filter', $headings_list );
}
add_filter('cyberchimps_heading_list', 'cyberchimps_add_core_headings');
/**************************************************************************************/
/*************************** SUBSECTIONS **********************************************/
/**************************************************************************************/
function cyberchimps_add_core_sections( $sections_list ) {
//theme check
$theme_check = cyberchimps_theme_check();
$sections_list = array();
/*************************** WELCOME **************************************************/
$sections_list[] = array(
'id' => 'cyberchimps_help_section',
'label' => apply_filters( 'cyberchimps_help_heading', 'CyberChimps' ),
'heading' => 'cyberchimps_help_heading'
);
/**************************** DESIGN **************************************************/
$sections_list[] = array(
'id' => 'cyberchimps_custom_layout_section',
'label' => __('Layout Options', 'cyberchimps'),
'heading' => 'cyberchimps_design_heading'
);
/** COMMENTED OUT - Using WP background customization
$sections_list[] = array(
'id' => 'cyberchimps_custom_background_section',
'label' => __('Background Options', 'cyberchimps'),
'heading' => 'cyberchimps_design_heading'
);
*/
$sections_list[] = array(
'id' => 'cyberchimps_custom_colors_section',
'label' => __('Custom Colors', 'cyberchimps'),
'heading' => 'cyberchimps_design_heading'
);
$sections_list[] = array(
'id' => 'cyberchimps_typography_section',
'label' => __('Typography', 'cyberchimps'),
'heading' => 'cyberchimps_design_heading'
);
/*$sections_list[] = array(
'id' => 'cyberchimps_custom_css_section',
'label' => __('Custom CSS', 'cyberchimps'),
'heading' => 'cyberchimps_design_heading'
);
/**************************** HEADER **************************************************/
$sections_list[] = array(
'id' => 'cyberchimps_header_drag_drop_section',
'label' => __('Header Drag & Drop', 'cyberchimps'),
'heading' => 'cyberchimps_header_heading'
);
$sections_list[] = array(
'id' => 'cyberchimps_header_options_section',
'label' => __('Header Options', 'cyberchimps'),
'heading' => 'cyberchimps_header_heading'
);
$sections_list[] = array(
'id' => 'cyberchimps_header_social_section',
'label' => __('Social Icons', 'cyberchimps'),
'heading' => 'cyberchimps_header_heading'
);
/***************************** BLOG **************************************************/
$sections_list[] = array(
'id' => 'cyberchimps_blog_drag_and_drop_section',
'label' => __('Drag & Drop', 'cyberchimps'),
'heading' => 'cyberchimps_blog_heading'
);
$sections_list[] = array(
'id' => 'cyberchimps_blog_options_section',
'label' => __('Blog Options', 'cyberchimps'),
'heading' => 'cyberchimps_blog_heading'
);
//check if free theme
if( $theme_check == 'free' ):
$sections_list[] = array(
'id' => 'cyberchimps_blog_slider_lite_section',
'label' => __('Blog Slider Lite', 'cyberchimps'),
'heading' => 'cyberchimps_blog_heading'
);
$sections_list[] = array(
'id' => 'cyberchimps_blog_portfolio_lite_section',
'label' => __('Portfolio Lite Options', 'cyberchimps'),
'heading' => 'cyberchimps_blog_heading'
);
$sections_list[] = array(
'id' => 'cyberchimps_blog_boxes_lite_section',
'label' => __('Boxes Lite', 'cyberchimps'),
'heading' => 'cyberchimps_blog_heading'
);
endif;
//check if pro theme
if( $theme_check == 'pro' ):
$sections_list[] = array(
'id' => 'cyberchimps_blog_slider_section',
'label' => __('Blog Slider', 'cyberchimps'),
'heading' => 'cyberchimps_blog_heading'
);
$sections_list[] = array(
'id' => 'cyberchimps_blog_callout_section',
'label' => __('Callout Options', 'cyberchimps'),
'heading' => 'cyberchimps_blog_heading'
);
$sections_list[] = array(
'id' => 'cyberchimps_html_box_section',
'label' => __('HTML Box Options', 'cyberchimps'),
'heading' => 'cyberchimps_blog_heading'
);
$sections_list[] = array(
'id' => 'cyberchimps_carousel_section',
'label' => __('Carousel Options', 'cyberchimps'),
'heading' => 'cyberchimps_blog_heading'
);
/*$sections_list[] = array(
'id' => 'cyberchimps_blog_magazine_section',
'label' => __('Magazine Options', 'cyberchimps'),
'heading' => 'cyberchimps_blog_heading'
);*/
$sections_list[] = array(
'id' => 'cyberchimps_blog_portfolio_pro_section',
'label' => __('Portfolio Pro Options', 'cyberchimps'),
'heading' => 'cyberchimps_blog_heading'
);
$sections_list[] = array(
'id' => 'cyberchimps_blog_recent_posts_section',
'label' => __('Recent Posts Options', 'cyberchimps'),
'heading' => 'cyberchimps_blog_heading'
);
endif;
$sections_list[] = array(
'id' => 'cyberchimps_twitterbar_section',
'label' => __('Twitterbar Options', 'cyberchimps'),
'heading' => 'cyberchimps_blog_heading'
);
$sections_list[] = array(
'id' => 'cyberchimps_boxes_section',
'label' => __('Boxes Options', 'cyberchimps'),
'heading' => 'cyberchimps_blog_heading'
);
/*$sections_list[] = array(
'id' => 'cyberchimps_featured_posts_section',
'label' => __('Featured Posts Options', 'cyberchimps'),
'heading' => 'cyberchimps_blog_heading'
);*/
/*$sections_list[] = array(
'id' => 'cyberchimps_profile_section',
'label' => __('Profile Options', 'cyberchimps'),
'heading' => 'cyberchimps_blog_heading'
);*/
/*************************** TEMPLATE ************************************************/
$sections_list[] = array(
'id' => 'cyberchimps_single_post_section',
'label' => __('Single Post', 'cyberchimps'),
'heading' => 'cyberchimps_templates_heading'
);
$sections_list[] = array(
'id' => 'cyberchimps_archive_section',
'label' => __('Archive', 'cyberchimps'),
'heading' => 'cyberchimps_templates_heading'
);
$sections_list[] = array(
'id' => 'cyberchimps_search_section',
'label' => __('Search', 'cyberchimps'),
'heading' => 'cyberchimps_templates_heading'
);
$sections_list[] = array(
'id' => 'cyberchimps_error_section',
'label' => '404',
'heading' => 'cyberchimps_templates_heading'
);
/**************************** FOOTER **************************************************/
$sections_list[] = array(
'id' => 'cyberchimps_footer_section',
'label' => __('Footer Options', 'cyberchimps'),
'heading' => 'cyberchimps_footer_heading'
);
return apply_filters( 'cyberchimps_sections_filter', $sections_list );
}
add_filter('cyberchimps_section_list', 'cyberchimps_add_core_sections');
/**************************************************************************************/
/**************************** FIELDS **************************************************/
/**************************************************************************************/
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;
}
endif;
// 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 = array(
'size' => '14px',
'face' => 'arial',
'style' => 'normal',
'color' => '#333333' );
/*************************** HELP *****************************************************/
$fields_list[] = array(
'name' => apply_filters( 'cyberchimps_help_sub_heading', __( 'Cyberchimps Help', 'cyberchimps' ) ),
'id' => 'help_info_display',
'type' => 'welcome',
'section' => 'cyberchimps_help_section',
'heading' => 'cyberchimps_help_heading');
//hidden field to set whether to show modal window or not
$fields_list[] = array(
'name' => __( 'Welcome Note', 'cyberchimps' ),
'id' => 'modal_welcome_note_display',
'type' => 'toggle',
'std' => 'checked',
'section' => 'cyberchimps_help_section',
'heading' => 'cyberchimps_help_heading');
/*************************** 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',
'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'
);
/** 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'),
'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'),
'id' => 'custom_background',
'type' => 'toggle',
'section' => 'cyberchimps_custom_background_section',
'heading' => 'cyberchimps_design_heading'
);
$fields_list[] = array(
'name' => __('Background Image', 'cyberchimps'),
'desc' => __('Enter URL or upload file', 'cyberchimps'),
'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'),
'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'),
'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'),
'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'),
'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'),
'desc' => __('Select background color', 'cyberchimps'),
'id' => 'background_colorpicker',
'std' => '',
'type' => 'color',
'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 ***************************************************/
$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 OPTIONS STARTS ************/
$fields_list[] = array(
'name' => __('Custom Logo URL', 'cyberchimps'),
'id' => 'custom_logo_url',
'type' => 'toggle',
'section' => 'cyberchimps_header_options_section',
'heading' => 'cyberchimps_header_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_header_options_section',
'heading' => 'cyberchimps_header_heading'
);
$fields_list[] = array(
'name' => __('Custom Logo', 'cyberchimps'),
'id' => 'custom_logo',
'type' => 'toggle',
'section' => 'cyberchimps_header_options_section',
'heading' => 'cyberchimps_header_heading'
);
$fields_list[] = array(
'name' => __('Logo Image', 'cyberchimps'),
'desc' => __('Enter URL or upload file', 'cyberchimps'),
'id' => 'custom_logo_uploader',
'class' => 'custom_logo_toggle',
'type' => 'upload',
'std' => $directory_uri . '/cyberchimps/lib/images/achimps.png',
'section' => 'cyberchimps_header_options_section',
'heading' => 'cyberchimps_header_heading'
);
$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'
);
$fields_list[] = array(
'name' => __('Google Maps', 'cyberchimps'),
'id' => 'social_googlemaps',
'type' => 'toggle',
'section' => 'cyberchimps_header_social_section',
'heading' => 'cyberchimps_header_heading');
$fields_list[] = array(
'name' => __('Google Maps URL', 'cyberchimps'),
'id' => 'googlemaps_url',
'class' => 'social_googlemaps_toggle',
'std' => 'http://www.maps.google.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'),
'callback' => 'cyberchimps_drag_drop_field',
'std' => apply_filters( 'cyberchimps_elements_draganddrop_defaults', array(
'slider_lite' => __( 'Slider Lite', 'cyberchimps' ),
'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' ),
'portfolio_lite' => __( 'Portfolio Lite', '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' => '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' => __('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 ***********/
if( $theme_check == 'free' ):
/********* 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' ),
''.apply_filters( 'cyberchimps_upgrade_pro_title', __( 'Pro', 'cyberchimps' ) ).''
),
'type' => 'info',
'section' => 'cyberchimps_blog_boxes_lite_section',
'heading' => 'cyberchimps_blog_heading'
);
/********* BOXES LITE ENDS ******************/
/********* PORTFOLIO LITE STARTS ****************/
$fields_list[] = array(
'name' => __('Portfolio Upgrade', 'cyberchimps'),
'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' ),
''.apply_filters( 'cyberchimps_upgrade_pro_title', __( 'Pro', 'cyberchimps' ) ).''
),
'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'),
'desc' => __('Enter URL or upload file', 'cyberchimps'),
'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'),
'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'),
'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'),
'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'),
'desc' => __('Enter URL or upload file', 'cyberchimps'),
'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'),
'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'),
'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'),
'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'),
'desc' => __('Enter URL or upload file', 'cyberchimps'),
'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'),
'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'),
'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'),
'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'),
'desc' => __('Enter URL or upload file', 'cyberchimps'),
'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'),
'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'),
'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'),
'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'),
'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'),
'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'),
'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' ),
''.apply_filters( 'cyberchimps_upgrade_pro_title', __( 'Pro', 'cyberchimps' ) ).''
),
'type' => 'info',
'section' => 'cyberchimps_blog_slider_lite_section',
'heading' => 'cyberchimps_blog_heading'
);
$fields_list[] = array(
'name' => __('Slider Image 1', 'cyberchimps'),
'desc' => __('Enter URL or upload file', 'cyberchimps'),
'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'),
'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'),
'desc' => __('Enter URL or upload file', 'cyberchimps'),
'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'),
'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'),
'desc' => __('Enter URL or upload file', 'cyberchimps'),
'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'),
'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 ***********/
endif;// end free theme check
//pro theme check
if( $theme_check == 'pro' ):
/********* PORTFOLIO PRO STARTS ***************/
$fields_list[] = array(
'name' => __('Images per Row', 'cyberchimps'),
'id' => 'cyberchimps_blog_portfolio_pro_per_row',
'std' => 3,
'type' => 'select',
'options' => array(
3 => 'Three (default)',
2 => 'Two',
4 => 'Four' ),
'section' => 'cyberchimps_blog_portfolio_pro_section',
'heading' => 'cyberchimps_blog_heading'
);
if( $options_portfolio_cats ) {
$fields_list[] = array(
'name' => __('Portfolio Category', 'cyberchimps'),
'id' => 'cyberchimps_blog_portfolio_pro_category',
'type' => 'select',
'options' => $options_portfolio_cats,
'section' => 'cyberchimps_blog_portfolio_pro_section',
'heading' => 'cyberchimps_blog_heading'
);
}
else {
$fields_list[] = array(
'name' => __('Portfolio Category', 'cyberchimps'),
'id' => 'cyberchimps_blog_portfolio_pro_category_help',
'type' => 'help',
'desc' => __( 'You need to create a Category', 'cyberchimps' ),
'section' => 'cyberchimps_blog_portfolio_pro_section',
'heading' => 'cyberchimps_blog_heading'
);
}
$fields_list[] = array(
'name' => __('Portfolio Title', 'cyberchimps'),
'id' => 'cyberchimps_blog_portfolio_pro_title',
'type' => 'toggle',
'section' => 'cyberchimps_blog_portfolio_pro_section',
'heading' => 'cyberchimps_blog_heading'
);
$fields_list[] = array(
'name' => __('Title', 'cyberchimps'),
'id' => 'cyberchimps_blog_portfolio_pro_title_text',
'class' => 'cyberchimps_blog_portfolio_pro_title_toggle',
'type' => 'text',
'section' => 'cyberchimps_blog_portfolio_pro_section',
'heading' => 'cyberchimps_blog_heading'
);
/********* PORTFOLIO PRO ENDS *****************/
/********* MAGAZINE STARTS *****************
$fields_list[] = array(
'name' => __('Meta Data', 'cyberchimps'),
'id' => 'blog_magazine_metadata',
'type' => 'toggle',
'std' => 'checked',
'section' => 'cyberchimps_blog_magazine_section',
'heading' => 'cyberchimps_blog_heading'
);
$fields_list[] = array(
'name' => __('Featured Image', 'cyberchimps'),
'id' => 'blog_magazine_featured_image',
'type' => 'toggle',
'std' => 'checked',
'section' => 'cyberchimps_blog_magazine_section',
'heading' => 'cyberchimps_blog_heading'
);
$fields_list[] = array(
'name' => __('Category', 'cyberchimps'),
'id' => 'blog_magazine_category',
'type' => 'select',
'options' => $options_categories,
'section' => 'cyberchimps_blog_magazine_section',
'heading' => 'cyberchimps_blog_heading'
);
$fields_list[] = array(
'name' => __('Featured Excerpt Length', 'cyberchimps'),
'id' => 'blog_magazine_excerpt_length',
'type' => 'text',
'std' => '70',
'section' => 'cyberchimps_blog_magazine_section',
'heading' => 'cyberchimps_blog_heading'
);
$fields_list[] = array(
'name' => __('Number of Columns', 'cyberchimps'),
'id' => 'blog_magazine_no_of_columns',
'type' => 'select',
'std' => 2,
'options' => array(
2 => '2',
3 => '3'
),
'section' => 'cyberchimps_blog_magazine_section',
'heading' => 'cyberchimps_blog_heading'
);
$fields_list[] = array(
'name' => __('Number of Rows', 'cyberchimps'),
'id' => 'blog_magazine_no_of_rows',
'type' => 'select',
'std' => '2',
'options' => array(
'1' => '1', '2' => '2', '3' => '3', '4' => '4',
'5' => '5', '6' => '6', '7' => '7', '8' => '8',
'9' => '9', '10' => '10', '11' => '11', '12' => '12',
'13' => '13', '14' => '14', '15' => '15', '16' => '16',
'17' => '17', '18' => '18', '19' => '19', '20' => '20'
),
'section' => 'cyberchimps_blog_magazine_section',
'heading' => 'cyberchimps_blog_heading'
);
$fields_list[] = array(
'name' => __('Wide Posts Below Magazine', 'cyberchimps'),
'id' => 'blog_magazine_wide_post',
'type' => 'toggle',
'std' => 'checked',
'section' => 'cyberchimps_blog_magazine_section',
'heading' => 'cyberchimps_blog_heading'
);
$fields_list[] = array(
'name' => __('Wide Post Excerpt Length', 'cyberchimps'),
'id' => 'blog_magazine_wide_excerpt_length',
'type' => 'text',
'std' => '130',
'section' => 'cyberchimps_blog_magazine_section',
'heading' => 'cyberchimps_blog_heading'
);
$fields_list[] = array(
'name' => __('Number of Wide Posts', 'cyberchimps'),
'id' => 'blog_magazine_no_of_wide_posts',
'type' => 'select',
'std' => '6',
'options' => array(
'1' => '1', '2' => '2', '3' => '3', '4' => '4',
'5' => '5', '6' => '6', '7' => '7', '8' => '8',
'9' => '9', '10' => '10', '11' => '11', '12' => '12',
'13' => '13', '14' => '14', '15' => '15', '16' => '16',
'17' => '17', '18' => '18', '19' => '19', '20' => '20'
),
'section' => 'cyberchimps_blog_magazine_section',
'heading' => 'cyberchimps_blog_heading'
);
/********* MAGAZINE ENDS *****************/
/********* BLOG SLIDER STARTS ***********/
$fields_list[] = array(
'name' => __('Slider Size', 'cyberchimps'),
'id' => 'blog_slider_size',
'type' => 'select',
'std' => 'full',
'options' => array(
'full' => __('Full', 'cyberchimps'),
'half' => __('Half', 'cyberchimps'),
),
'section' => 'cyberchimps_blog_slider_section',
'heading' => 'cyberchimps_blog_heading',
);
$fields_list[] = array(
'name' => __('Slider Type', 'cyberchimps'),
'id' => 'blog_slider_type',
'type' => 'select',
'std' => 'custom_slides',
'options' => array(
'post' => __('Posts', 'cyberchimps'),
'custom_slides' => __('Custom', 'cyberchimps'),
),
'section' => 'cyberchimps_blog_slider_section',
'heading' => 'cyberchimps_blog_heading'
);
$fields_list[] = array(
'name' => __('Post Categories', 'cyberchimps'),
'id' => 'blog_slider_post_cats',
'type' => 'select',
'std' => 'all',
'options' => $options_categories,
'section' => 'cyberchimps_blog_slider_section',
'heading' => 'cyberchimps_blog_heading'
);
if( $options_slide_cats ) {
$fields_list[] = array(
'name' => __('Custom Categories', 'cyberchimps'),
'id' => 'custom_slider_post_cats',
'type' => 'select',
'std' => 'cyberchimps_all',
'options' => $options_slide_cats,
'section' => 'cyberchimps_blog_slider_section',
'heading' => 'cyberchimps_blog_heading'
);
}
else{
$fields_list[] = array(
'name' => __('Custom Categories', 'cyberchimps'),
'id' => 'custom_slider_post_cats_help',
'type' => 'help',
'desc' => __( 'You need to create a Category', 'cyberchimps' ),
'section' => 'cyberchimps_blog_slider_section',
'heading' => 'cyberchimps_blog_heading'
);
}
$fields_list[] = array(
'name' => __('Number of Featured Blog Posts', 'cyberchimps'),
'id' => 'blog_no_featured_posts',
'std' => '',
'type' => 'text',
'section' => 'cyberchimps_blog_slider_section',
'heading' => 'cyberchimps_blog_heading'
);
$fields_list[] = array(
'name' => __('Slider Height', 'cyberchimps'),
'id' => 'slider_height',
'std' => '',
'type' => 'text',
'section' => 'cyberchimps_blog_slider_section',
'heading' => 'cyberchimps_blog_heading'
);
// Slider Speed
$fields_list[] = array(
'name' => __('Slider Speed ', 'cyberchimps'),
'id' => 'slider_speed',
'std' => '3000',
'type' => 'text',
'section' => 'cyberchimps_blog_slider_section',
'heading' => 'cyberchimps_blog_heading'
);
$fields_list[] = array(
'name' => __('Slider Arrows', 'cyberchimps'),
'id' => 'slider_arrows',
'std' => 'checked',
'type' => 'toggle',
'section' => 'cyberchimps_blog_slider_section',
'heading' => 'cyberchimps_blog_heading'
);
/********* BLOG SLIDER 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 **************/
/********* HTML BOX OPTIONS STARTS ***********/
$fields_list[] = array(
'name' => __('HTML Box', 'cyberchimps'),
'id' => 'html_box',
'std' => '',
'desc' => __( 'Enter your custom HTML code here', 'cyberchimps' ),
'type' => 'unfiltered_textarea',
'section' => 'cyberchimps_html_box_section',
'heading' => 'cyberchimps_blog_heading'
);
/********* HTML BOX OPTIONS ENDS *************/
/************ RECENT POSTS STARTS **************/
$fields_list[] = array(
'name' => __('Title', 'cyberchimps'),
'id' => 'recent_posts_title',
'std' => '',
'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' => '',
'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 ****************/
/********* CAROUSEL OPTIONS STARTS ***********/
if( $options_carousel_cats ){
$fields_list[] = array(
'name' => __('Select a Category', 'cyberchimps'),
'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'),
'id' => 'carousel_categories_help',
'type' => 'help',
'desc' => __( 'You need to create a Category', 'cyberchimps' ),
'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'),
'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 ***********/
endif;// end pro option fields
/********* 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'
);
/********* FEATURED POSTS ENDS ************/
/********* PROFILE OPTIONS STARTS **********
$fields_list[] = array(
'name' => __('Profile Name', 'cyberchimps'),
'id' => 'profile_name',
'type' => 'text',
'section' => 'cyberchimps_profile_section',
'heading' => 'cyberchimps_blog_heading'
);
$fields_list[] = array(
'name' => __('Profile Picture', 'cyberchimps'),
'desc' => __('Enter URL or upload picture', 'cyberchimps'),
'id' => 'profile_picture',
'type' => 'upload',
'section' => 'cyberchimps_profile_section',
'heading' => 'cyberchimps_blog_heading'
);
$fields_list[] = array(
'name' => __('Profession', 'cyberchimps'),
'id' => 'profile_profession',
'type' => 'text',
'section' => 'cyberchimps_profile_section',
'heading' => 'cyberchimps_blog_heading'
);
$fields_list[] = array(
'name' => __('About', 'cyberchimps'),
'id' => 'profile_about',
'std' => '',
'type' => 'textarea',
'section' => 'cyberchimps_profile_section',
'heading' => 'cyberchimps_blog_heading'
);
$fields_list[] = array(
'name' => __('Location', 'cyberchimps'),
'id' => 'profile_location',
'type' => 'text',
'section' => 'cyberchimps_profile_section',
'heading' => 'cyberchimps_blog_heading'
);
$fields_list[] = array(
'name' => __('Phone Number', 'cyberchimps'),
'id' => 'profile_phone',
'type' => 'text',
'section' => 'cyberchimps_profile_section',
'heading' => 'cyberchimps_blog_heading'
);
$fields_list[] = array(
'name' => __('Email Address', 'cyberchimps'),
'id' => 'profile_email',
'type' => 'text',
'section' => 'cyberchimps_profile_section',
'heading' => 'cyberchimps_blog_heading'
);
$fields_list[] = array(
'name' => __('Website Address', 'cyberchimps'),
'id' => 'profile_website',
'type' => 'text',
'section' => 'cyberchimps_profile_section',
'heading' => 'cyberchimps_blog_heading'
);
/* Social options for profile starts
$fields_list[] = array(
'name' => __('Twitter', 'cyberchimps'),
'id' => 'profile_twitter',
'std' => 'checked',
'type' => 'toggle',
'section' => 'cyberchimps_profile_section',
'heading' => 'cyberchimps_blog_heading');
$fields_list[] = array(
'name' => __('Twitter URL', 'cyberchimps'),
'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'),
'id' => 'profile_facebook',
'std' => 'checked',
'type' => 'toggle',
'section' => 'cyberchimps_profile_section',
'heading' => 'cyberchimps_blog_heading');
$fields_list[] = array(
'name' => __('Facebook URL', 'cyberchimps'),
'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'),
'id' => 'profile_google',
'std' => 'checked',
'type' => 'toggle',
'section' => 'cyberchimps_profile_section',
'heading' => 'cyberchimps_blog_heading');
$fields_list[] = array(
'name' => __('Google+ URL', 'cyberchimps'),
'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'),
'id' => 'profile_flickr',
'type' => 'toggle',
'section' => 'cyberchimps_profile_section',
'heading' => 'cyberchimps_blog_heading');
$fields_list[] = array(
'name' => __('Flickr URL', 'cyberchimps'),
'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'),
'id' => 'profile_pinterest',
'type' => 'toggle',
'section' => 'cyberchimps_profile_section',
'heading' => 'cyberchimps_blog_heading');
$fields_list[] = array(
'name' => __('Pinterest URL', 'cyberchimps'),
'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'),
'id' => 'profile_linkedin',
'type' => 'toggle',
'section' => 'cyberchimps_profile_section',
'heading' => 'cyberchimps_blog_heading');
$fields_list[] = array(
'name' => __('LinkedIn URL', 'cyberchimps'),
'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'),
'id' => 'profile_youtube',
'type' => 'toggle',
'section' => 'cyberchimps_profile_section',
'heading' => 'cyberchimps_blog_heading');
$fields_list[] = array(
'name' => __('YouTube URL', 'cyberchimps'),
'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'),
'id' => 'profile_rss',
'type' => 'toggle',
'section' => 'cyberchimps_profile_section',
'heading' => 'cyberchimps_blog_heading');
$fields_list[] = array(
'name' => __('RSS URL', 'cyberchimps'),
'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'),
'id' => 'profile_email_id',
'type' => 'toggle',
'section' => 'cyberchimps_profile_section',
'heading' => 'cyberchimps_blog_heading');
$fields_list[] = array(
'name' => __('Email Address', 'cyberchimps'),
'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'),
'id' => 'profile_googlemaps',
'type' => 'toggle',
'section' => 'cyberchimps_profile_section',
'heading' => 'cyberchimps_blog_heading');
$fields_list[] = array(
'name' => __('Google Maps URL', 'cyberchimps'),
'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'),
'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' => '© ' . get_bloginfo('name'),
'type' => 'text',
'section' => 'cyberchimps_footer_section',
'heading' => 'cyberchimps_footer_heading'
);
$fields_list[] = array(
'id' => 'google_analytics',
'name' => __('Google Analytics', 'cyberchimps'),
'type' => 'textarea',
'desc' => __( 'Copy and paste your Google Analytics code here', 'cyberchimps' ),
'section' => 'cyberchimps_footer_section',
'heading' => 'cyberchimps_footer_heading'
);
return apply_filters( 'cyberchimps_field_filter', $fields_list );
}
add_filter('cyberchimps_field_list', 'cyberchimps_add_core_fields');