'15px',
'face' => 'georgia',
'style' => 'bold',
'color' => '#bada55' );
// Typography Options
$typography_options = array(
'sizes' => array( '6','12','14','16','20' ),
'faces' => array( 'Helvetica Neue' => 'Helvetica Neue','Arial' => 'Arial' ),
'styles' => array( 'normal' => 'Normal','bold' => 'Bold' ),
'color' => false
);
// Pull all the categories into an array
$options_categories = array();
$options_categories_obj = get_categories();
foreach ($options_categories_obj as $category) {
$options_categories[$category->cat_ID] = $category->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 = get_template_directory_uri() . '/images/';
$choices = array(
'yes' => __( 'Yes', 'alchem' ),
'no' => __( 'No', 'alchem' )
);
$choices_reverse = array(
'no'=> __( 'No', 'alchem' ),
'yes' => __( 'Yes', 'alchem' )
);
$align = array(
'left' => __( 'Left', 'alchem' ),
'right' => __( 'Right', 'alchem' ),
'center' => __( 'Center', 'alchem' )
);
$repeat = array(
'repeat' => __( 'repeat', 'alchem' ),
'repeat-x' => __( 'repeat-x', 'alchem' ),
'repeat-y' => __( 'repeat-y', 'alchem' ),
'no-repeat' => __( 'no-repeat', 'alchem' )
);
$position = array(
'top left' => __( 'top left', 'alchem' ),
'top center' => __( 'top center', 'alchem' ),
'top right' => __( 'top right', 'alchem' ),
'center left' => __( 'center left', 'alchem' ),
'center center' => __( 'center center', 'alchem' ),
'center right' => __( 'center right', 'alchem' ),
'bottom left' => __( 'bottom left', 'alchem' ),
'bottom center' => __( 'bottom center', 'alchem' ),
'bottom right' => __( 'bottom right', 'alchem' )
);
$opacity = array_combine(range(0.1,1,0.1), range(0.1,1,0.1));
$font_size = array_combine(range(1,100,1), range(1,100,1));
$alchem_social_icons = array(
array('title'=>'Facebook','icon' => 'facebook', 'link'=>'#'),
array ('title'=>'Twitter','icon' => 'twitter', 'link'=>'#'),
array('title'=>'LinkedIn','icon' => 'linkedin', 'link'=>'#'),
array ('title'=>'YouTube','icon' => 'youtube', 'link'=>'#'),
array('title'=>'Skype','icon' => 'skype', 'link'=>'#'),
array ('title'=>'Pinterest','icon' => 'pinterest', 'link'=>'#'),
array('title'=>'Google+','icon' => 'google-plus', 'link'=>'#'),
array('title'=>'Email','icon' => 'envelope', 'link'=>'#'),
array ('title'=>'RSS','icon' => 'rss', 'link'=>'#')
);
$target = array(
'_blank' => __( 'Open in new window', 'alchem' ),
'_self' => __( 'Open in same window', 'alchem' )
);
// Stores all the controls that will be added
$options = array();
// Stores all the sections to be added
$sections = array();
// Stores all the panels to be added
$panels = array();
// Adds the sections to the $options array
$options['sections'] = $sections;
##### Home Page #####
$alchem_homepage_sections = array(
'banner' => __( 'Section - Banner', 'alchem' ),
'tagline' => __( 'Section - Tagline', 'alchem' ),
'service' => __( 'Section - Service', 'alchem' ),
'recent-works' => __( 'Section - Recent Works', 'alchem' ),
'features' => __( 'Section - Features', 'alchem' ),
'about-us' => __( 'Section - About Us', 'alchem' ),
'team' => __( 'Section - Our Team', 'alchem' ),
'testimonials' => __( 'Section - Testimonials', 'alchem' ),
'news' => __( 'Section - News', 'alchem' ),
'partners' => __( 'Section - Partners', 'alchem' ),
'slogan' => __( 'Section - Slogan', 'alchem' ),
);
$panel = 'alchem-home-page';
$panels[] = array(
'id' => $panel,
'title' => __( 'Home Page', 'alchem' ),
'priority' => '1'
);
// Section Banner
$section = 'alchem-section-banner';
$sections[] = array(
'id' => $section,
'title' => __( 'Section - Banner', 'alchem' ),
'priority' => '10',
'description' => '',
'panel' => $panel
);
$options['alchem_section_0_model'] = array(
'id' => 'alchem_section_0_model',
'label' => __( 'Content Model', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => array('0'=>__( 'Default', 'alchem' ),'1'=>__( 'Custom', 'alchem' )),
'default' => '0',
'description' => __( 'Choose Default to fill this section form with fixed layout. Choose Custom to fill this section with custom html code.', 'alchem' )
);
$options['alchem_section_0_background_color'] = array(
'id' => 'alchem_section_0_background_color',
'label' => __( 'Background Color', 'alchem' ),
'section' => $section,
'type' => 'color',
'default' => '',
'description' => __( 'Set background color for this section.', 'alchem' )
);
$options['alchem_section_0_background_image'] = array(
'id' => 'alchem_section_0_background_image',
'label' => __( 'Background Image', 'alchem' ),
'section' => $section,
'type' => 'upload',
'default' => esc_url('https://demo.mageewp.com/alchem/wp-content/uploads/sites/21/2015/08/banner-1.jpg'),
'description' => __( 'Upload background image for this section.', 'alchem' )
);
$options['alchem_section_0_top_padding'] = array(
'id' => 'alchem_section_0_top_padding',
'label' => __( 'Section Top Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '200px',
);
$options['alchem_section_0_bottom_padding'] = array(
'id' => 'alchem_section_0_bottom_padding',
'label' => __( 'Section Bottom Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '200px',
);
$options['alchem_section_0_title'] = array(
'id' => 'alchem_section_0_title',
'label' => __( 'Big Title', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'LIFE IS
WHAT YOU MAKE IT',
);
$options['alchem_section_0_sub_title'] = array(
'id' => 'alchem_section_0_sub_title',
'label' => __( 'Sub Title', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'This is a elegant theme for you to build beautiful site.',
);
$options['alchem_section_0_button_text'] = array(
'id' => 'alchem_section_0_button_text',
'label' => __( 'Button Text', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'Learn More',
);
$options['alchem_section_0_button_link'] = array(
'id' => 'alchem_section_0_button_link',
'label' => __( 'Button Link', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => '#',
);
$options['alchem_section_0_button_target'] = array(
'id' => 'alchem_section_0_button_target',
'label' => __( 'Button Link Target', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'select',
'choices' => $target,
'default' => '_blank',
);
$options['alchem_section_0_content_align'] = array(
'id' => 'alchem_section_0_content_align',
'label' => __( 'Content Align', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'select',
'choices' => $align,
'default' => 'right',
);
$options['alchem_section_0_id'] = array(
'id' => 'alchem_section_0_id',
'label' => __( 'Section ID', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'section-1',
);
$options['alchem_section_0_content'] = array(
'id' => 'alchem_section_0_content',
'label' => __( 'Custom Section Content', 'alchem' ),
'description' => __( 'This would display instead of fixed layout once Content Modal is set as Custom. HTML Code and Shortcode are both allowed.', 'alchem' ),
'section' => $section,
'type' => 'textarea',
'default' => '',
);
$options['alchem_section_0_hide'] = array(
'id' => 'alchem_section_0_hide',
'label' => __( 'Hide Section', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'checkbox',
'default' => '',
);
// Section Tagline
$section = 'alchem-section-tagline';
$sections[] = array(
'id' => $section,
'title' => __( 'Section - Tagline', 'alchem' ),
'priority' => '11',
'description' => '',
'panel' => $panel
);
$options['alchem_section_1_model'] = array(
'id' => 'alchem_section_1_model',
'label' => __( 'Content Model', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => array('0'=>__( 'Default', 'alchem' ),'1'=>__( 'Custom', 'alchem' )),
'default' => '0',
'description' => __( 'Choose Default to fill this section form with fixed layout. Choose Custom to fill this section with custom html code.', 'alchem' )
);
$options['alchem_section_1_background_color'] = array(
'id' => 'alchem_section_1_background_color',
'label' => __( 'Background Color', 'alchem' ),
'section' => $section,
'type' => 'color',
'default' => '#f5f5f5',
'description' => __( 'Set background color for this section.', 'alchem' )
);
$options['alchem_section_1_background_image'] = array(
'id' => 'alchem_section_1_background_image',
'label' => __( 'Background Image', 'alchem' ),
'section' => $section,
'type' => 'upload',
'default' => '',
'description' => __( 'Upload background image for this section.', 'alchem' )
);
$options['alchem_section_1_top_padding'] = array(
'id' => 'alchem_section_1_top_padding',
'label' => __( 'Section Top Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '20px',
);
$options['alchem_section_1_bottom_padding'] = array(
'id' => 'alchem_section_1_bottom_padding',
'label' => __( 'Section Bottom Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '20px',
);
$options['alchem_section_1_slogan_title'] = array(
'id' => 'alchem_section_1_slogan_title',
'label' => __( 'Slogan Title', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => '5 star rating & positive reviews',
);
$options['alchem_section_1_slogan_content'] = array(
'id' => 'alchem_section_1_slogan_content',
'label' => __( 'Slogan Content', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'textarea',
'default' => 'Lorem ipsum dolor sit amet, mauris suspendisse viverra eleifend tortor tellus suscipit, tortor aliquet atnullafa ignissim neque, nulla neque. Ultrices proin mi suspendisse viverra eleifend.',
);
$options['alchem_section_1_button_text'] = array(
'id' => 'alchem_section_1_button_text',
'label' => __( 'Button Text', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'Download Now',
);
$options['alchem_section_1_button_link'] = array(
'id' => 'alchem_section_1_button_link',
'label' => __( 'Button Link', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => '#',
);
$options['alchem_section_1_button_target'] = array(
'id' => 'alchem_section_1_button_target',
'label' => __( 'Button Link Target', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'select',
'choices' => $target,
'default' => '_blank',
);
$options['alchem_section_1_id'] = array(
'id' => 'alchem_section_1_id',
'label' => __( 'Section ID', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'section-2',
);
$options['alchem_section_1_content'] = array(
'id' => 'alchem_section_1_content',
'label' => __( 'Custom Section Content', 'alchem' ),
'description' => __( 'This would display instead of fixed layout once Content Modal is set as Custom. HTML Code and Shortcode are both allowed.', 'alchem' ),
'section' => $section,
'type' => 'textarea',
'default' => '',
);
$options['alchem_section_1_hide'] = array(
'id' => 'alchem_section_1_hide',
'label' => __( 'Hide Section', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'checkbox',
'default' => '',
);
// Section Service
$section = 'alchem-section-service';
$sections[] = array(
'id' => $section,
'title' => __( 'Section - Service', 'alchem' ),
'priority' => '12',
'description' => '',
'panel' => $panel
);
$options['alchem_section_2_model'] = array(
'id' => 'alchem_section_2_model',
'label' => __( 'Content Model', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => array('0'=>__( 'Default', 'alchem' ),'1'=>__( 'Custom', 'alchem' )),
'default' => '0',
'description' => __( 'Choose Default to fill this section form with fixed layout. Choose Custom to fill this section with custom html code.', 'alchem' )
);
$options['alchem_section_2_background_color'] = array(
'id' => 'alchem_section_2_background_color',
'label' => __( 'Background Color', 'alchem' ),
'section' => $section,
'type' => 'color',
'default' => '',
'description' => __( 'Set background color for this section.', 'alchem' )
);
$options['alchem_section_2_background_image'] = array(
'id' => 'alchem_section_2_background_image',
'label' => __( 'Background Image', 'alchem' ),
'section' => $section,
'type' => 'upload',
'default' => '',
'description' => __( 'Upload background image for this section.', 'alchem' )
);
$options['alchem_section_2_top_padding'] = array(
'id' => 'alchem_section_2_top_padding',
'label' => __( 'Section Top Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '50px',
);
$options['alchem_section_2_bottom_padding'] = array(
'id' => 'alchem_section_2_bottom_padding',
'label' => __( 'Section Bottom Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '50px',
);
$options['alchem_section_2_title'] = array(
'id' => 'alchem_section_2_title',
'label' => __( 'Title', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'Services We Offer',
);
$options['alchem_section_2_columns'] = array(
'id' => 'alchem_section_2_columns',
'label' => __( 'Columns', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'select',
'choices' => array(2=>2,3=>3,4=>4),
'default' => '3',
);
$feature_icons = array('magic','desktop','thumbs-up','flag','leaf','user');
$feature_titles = array('Impressive Design','Responsive Layout','Bootstrap Framwork','Font Awesome Icons','SEO Friendly','Continuous Support');
for( $i=0;$i < 6;$i++ ){
$j = $i+1;
$options['alchem_section_2_feature_icon_'.$i] = array(
'id' => 'alchem_section_2_feature_icon_'.$i,
'label' => sprintf(__( 'Font Awesome Icon %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => $feature_icons[$i],
);
$options['alchem_section_2_feature_image_'.$i] = array(
'id' => 'alchem_section_2_feature_image_'.$i,
'label' => sprintf(__( 'Upload Icon %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'upload',
'default' => '',
);
$options['alchem_section_2_feature_title_'.$i] = array(
'id' => 'alchem_section_2_feature_title_'.$i,
'label' => sprintf(__( 'Feature Box Title %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => $feature_titles[$i],
);
$options['alchem_section_2_feature_content_'.$i] = array(
'id' => 'alchem_section_2_feature_content_'.$i,
'label' => sprintf(__( 'Feature Box Content %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'textarea',
'default' => 'Lorem ipsum dolor sit amet, consectetur adipiscingelit. Integer sed magna vel velit dignissim luctus eu n urna. Dapibus ege-stas turpis. Praesent faucibus nisl sit amet nulla sollicitudin.',
);
$options['alchem_section_2_link_'.$i] = array(
'id' => 'alchem_section_2_link_'.$i,
'label' => sprintf(__( 'Title Link %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => '',
);
$options['alchem_section_2_target_'.$i] = array(
'id' => 'alchem_section_2_target_'.$i,
'label' => sprintf(__( 'Link Target %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'select',
'choices' => $target,
'default' => '_blank',
);
}
$options['alchem_section_2_id'] = array(
'id' => 'alchem_section_2_id',
'label' => __( 'Section ID', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'section-3',
);
$options['alchem_section_2_content'] = array(
'id' => 'alchem_section_2_content',
'label' => __( 'Custom Section Content', 'alchem' ),
'description' => __( 'This would display instead of fixed layout once Content Modal is set as Custom. HTML Code and Shortcode are both allowed.', 'alchem' ),
'section' => $section,
'type' => 'textarea',
'default' => '',
);
$options['alchem_section_2_hide'] = array(
'id' => 'alchem_section_2_hide',
'label' => __( 'Hide Section', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'checkbox',
'default' => '',
);
// Section Recent Works
$section = 'alchem-section-recent-works';
$sections[] = array(
'id' => $section,
'title' => __( 'Section - Recent Works', 'alchem' ),
'priority' => '13',
'description' => '',
'panel' => $panel
);
$options['alchem_section_3_model'] = array(
'id' => 'alchem_section_3_model',
'label' => __( 'Content Model', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => array('0'=>__( 'Default', 'alchem' ),'1'=>__( 'Custom', 'alchem' )),
'default' => '0',
'description' => __( 'Choose Default to fill this section form with fixed layout. Choose Custom to fill this section with custom html code.', 'alchem' )
);
$options['alchem_section_3_background_color'] = array(
'id' => 'alchem_section_3_background_color',
'label' => __( 'Background Color', 'alchem' ),
'section' => $section,
'type' => 'color',
'default' => '#f3f3f4',
'description' => __( 'Set background color for this section.', 'alchem' )
);
$options['alchem_section_3_background_image'] = array(
'id' => 'alchem_section_3_background_image',
'label' => __( 'Background Image', 'alchem' ),
'section' => $section,
'type' => 'upload',
'default' => '',
'description' => __( 'Upload background image for this section.', 'alchem' )
);
$options['alchem_section_3_top_padding'] = array(
'id' => 'alchem_section_3_top_padding',
'label' => __( 'Section Top Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '50px',
);
$options['alchem_section_3_bottom_padding'] = array(
'id' => 'alchem_section_3_bottom_padding',
'label' => __( 'Section Bottom Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '50px',
);
$options['alchem_section_3_title'] = array(
'id' => 'alchem_section_3_title',
'label' => __( 'Title', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'Recent Works',
);
$options['alchem_section_3_columns'] = array(
'id' => 'alchem_section_3_columns',
'label' => __( 'Columns', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'select',
'choices' => array(2=>2,3=>3,4=>4),
'default' => '3',
);
$works = array(
'https://demo.mageewp.com/alchem/wp-content/uploads/sites/23/2015/12/p1.jpg',
'https://demo.mageewp.com/alchem/wp-content/uploads/sites/23/2015/12/p2.jpg',
'https://demo.mageewp.com/alchem/wp-content/uploads/sites/23/2015/12/p3.jpg',
'https://demo.mageewp.com/alchem/wp-content/uploads/sites/23/2015/12/p4-3.jpg',
'https://demo.mageewp.com/alchem/wp-content/uploads/sites/23/2015/12/p5-1.jpg',
'https://demo.mageewp.com/alchem/wp-content/uploads/sites/23/2015/12/p6.jpg'
);
for( $i=0;$i < 6;$i++ ){
$j = $i+1;
$options['alchem_section_3_image_'.$i] = array(
'id' => 'alchem_section_3_image_'.$i,
'label' => sprintf(__( 'Image %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'upload',
'default' => esc_url($works[$i]),
);
$options['alchem_section_3_link_'.$i] = array(
'id' => 'alchem_section_3_link_'.$i,
'label' => sprintf(__( 'Image Link %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => '#',
);
$options['alchem_section_3_target_'.$i] = array(
'id' => 'alchem_section_3_target_'.$i,
'label' => sprintf(__( 'Link Target %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'select',
'choices' => $target,
'default' => '_blank',
);
}
$options['alchem_section_3_button_text'] = array(
'id' => 'alchem_section_3_button_text',
'label' => __( 'Button Text', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'See More',
);
$options['alchem_section_3_button_link'] = array(
'id' => 'alchem_section_3_button_link',
'label' => __( 'Button Link', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => '#',
);
$options['alchem_section_3_button_target'] = array(
'id' => 'alchem_section_3_button_target',
'label' => __( 'Button Link Target', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'select',
'choices' => $target,
'default' => '_blank',
);
$options['alchem_section_3_id'] = array(
'id' => 'alchem_section_3_id',
'label' => __( 'Section ID', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'section-4',
);
$options['alchem_section_3_content'] = array(
'id' => 'alchem_section_3_content',
'label' => __( 'Custom Section Content', 'alchem' ),
'description' => __( 'This would display instead of fixed layout once Content Modal is set as Custom. HTML Code and Shortcode are both allowed.', 'alchem' ),
'section' => $section,
'type' => 'textarea',
'default' => '',
);
$options['alchem_section_3_hide'] = array(
'id' => 'alchem_section_3_hide',
'label' => __( 'Hide Section', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'checkbox',
'default' => '',
);
// Section Features
$section = 'alchem-section-features';
$sections[] = array(
'id' => $section,
'title' => __( 'Section - Features', 'alchem' ),
'priority' => '14',
'description' => '',
'panel' => $panel
);
$options['alchem_section_4_model'] = array(
'id' => 'alchem_section_4_model',
'label' => __( 'Content Model', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => array('0'=>__( 'Default', 'alchem' ),'1'=>__( 'Custom', 'alchem' )),
'default' => '0',
'description' => __( 'Choose Default to fill this section form with fixed layout. Choose Custom to fill this section with custom html code.', 'alchem' )
);
$options['alchem_section_4_background_color'] = array(
'id' => 'alchem_section_4_background_color',
'label' => __( 'Background Color', 'alchem' ),
'section' => $section,
'type' => 'color',
'default' => '',
'description' => __( 'Set background color for this section.', 'alchem' )
);
$options['alchem_section_4_background_image'] = array(
'id' => 'alchem_section_4_background_image',
'label' => __( 'Background Image', 'alchem' ),
'section' => $section,
'type' => 'upload',
'default' => '',
'description' => __( 'Upload background image for this section.', 'alchem' )
);
$options['alchem_section_4_top_padding'] = array(
'id' => 'alchem_section_4_top_padding',
'label' => __( 'Section Top Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '60px',
);
$options['alchem_section_4_bottom_padding'] = array(
'id' => 'alchem_section_4_bottom_padding',
'label' => __( 'Section Bottom Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '50px',
);
$options['alchem_section_4_title'] = array(
'id' => 'alchem_section_4_title',
'label' => __( 'Title', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'Use Alchem Theme to build beautiful site.',
);
$options['alchem_section_4_image'] = array(
'id' => 'alchem_section_4_image',
'label' => __( 'Image', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => esc_url('https://demo.mageewp.com/alchem/wp-content/uploads/sites/21/2015/09/show-img-1.png'),
);
$feature_icons = array('magic','desktop','thumbs-up','','','');
$feature_titles = array('Impressive Design','Responsive Layout','Bootstrap Framwork','','','');
$featrue_content = array(
'Lorem ipsum dolor sit amet, consectetur adipiscingelit. Integer sed magna vel velit dignissim luctus eu n urna. Dapibus ege-stas turpis. Praesent faucibus nisl sit amet nulla sollicitudin.',
'Lorem ipsum dolor sit amet, consectetur adipiscingelit. Integer sed magna vel velit dignissim luctus eu n urna. Dapibus ege-stas turpis. Praesent faucibus nisl sit amet nulla sollicitudin.',
'Lorem ipsum dolor sit amet, consectetur adipiscingelit. Integer sed magna vel velit dignissim luctus eu n urna. Dapibus ege-stas turpis. Praesent faucibus nisl sit amet nulla sollicitudin.',
'',
'',
''
);
for( $i=0;$i < 6;$i++ ){
$j = $i+1;
$options['alchem_section_4_feature_icon_'.$i] = array(
'id' => 'alchem_section_4_feature_icon_'.$i,
'label' => sprintf(__( 'Font Awesome Icon %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => $feature_icons[$i],
);
$options['alchem_section_4_feature_image_'.$i] = array(
'id' => 'alchem_section_4_feature_image_'.$i,
'label' => sprintf(__( 'Upload Icon %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'upload',
'default' => '',
);
$options['alchem_section_4_feature_title_'.$i] = array(
'id' => 'alchem_section_4_feature_title_'.$i,
'label' => sprintf(__( 'Feature Box Title %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => $feature_titles[$i],
);
$options['alchem_section_4_feature_content_'.$i] = array(
'id' => 'alchem_section_4_feature_content_'.$i,
'label' => sprintf(__( 'Feature Box Content %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'textarea',
'default' => $featrue_content[$i],
);
$options['alchem_section_4_link_'.$i] = array(
'id' => 'alchem_section_4_link_'.$i,
'label' => sprintf(__( 'Title Link %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => '',
);
$options['alchem_section_4_target_'.$i] = array(
'id' => 'alchem_section_4_target_'.$i,
'label' => sprintf(__( 'Link Target %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'select',
'choices' => $target,
'default' => '_blank',
);
}
$options['alchem_section_4_id'] = array(
'id' => 'alchem_section_4_id',
'label' => __( 'Section ID', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'section-5',
);
$options['alchem_section_4_content'] = array(
'id' => 'alchem_section_4_content',
'label' => __( 'Custom Section Content', 'alchem' ),
'description' => __( 'This would display instead of fixed layout once Content Modal is set as Custom. HTML Code and Shortcode are both allowed.', 'alchem' ),
'section' => $section,
'type' => 'textarea',
'default' => '',
);
$options['alchem_section_4_hide'] = array(
'id' => 'alchem_section_4_hide',
'label' => __( 'Hide Section', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'checkbox',
'default' => '',
);
// Section About Us
$section = 'alchem-section-about-us';
$sections[] = array(
'id' => $section,
'title' => __( 'Section - About Us', 'alchem' ),
'priority' => '15',
'description' => '',
'panel' => $panel
);
$options['alchem_section_5_model'] = array(
'id' => 'alchem_section_5_model',
'label' => __( 'Content Model', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => array('1'=>__( 'Custom', 'alchem' )),
'default' => '1',
'description' => __( 'Choose Default to fill this section form with fixed layout. Choose Custom to fill this section with custom html code.', 'alchem' )
);
$options['alchem_section_5_background_color'] = array(
'id' => 'alchem_section_5_background_color',
'label' => __( 'Background Color', 'alchem' ),
'section' => $section,
'type' => 'color',
'default' => '',
'description' => __( 'Set background color for this section.', 'alchem' )
);
$options['alchem_section_5_background_image'] = array(
'id' => 'alchem_section_5_background_image',
'label' => __( 'Background Image', 'alchem' ),
'section' => $section,
'type' => 'upload',
'default' => esc_url('https://demo.mageewp.com/alchem/wp-content/uploads/sites/23/2015/12/bg-02-1.jpg'),
'description' => __( 'Upload background image for this section.', 'alchem' )
);
$options['alchem_section_5_top_padding'] = array(
'id' => 'alchem_section_5_top_padding',
'label' => __( 'Section Top Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '60px',
);
$options['alchem_section_5_bottom_padding'] = array(
'id' => 'alchem_section_5_bottom_padding',
'label' => __( 'Section Bottom Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '50px',
);
$options['alchem_section_5_id'] = array(
'id' => 'alchem_section_5_id',
'label' => __( 'Section ID', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'section-6',
);
$options['alchem_section_5_content'] = array(
'id' => 'alchem_section_5_content',
'label' => __( 'Custom Section Content', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'textarea',
'default' => '
About Us
Lorem ipsum dolor sit amet, consectetur adipiscing elit
List
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris consequat non ex quis consectetur. Aliquam iaculis dolor erat, ut ornare dui vulputate nec.
Communication
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris consequat non ex quis consectetur. Aliquam iaculis dolor erat, ut ornare dui vulputate nec.
Finished
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris consequat non ex quis consectetur. Aliquam iaculis dolor erat, ut ornare dui vulputate nec.
',
);
$options['alchem_section_5_hide'] = array(
'id' => 'alchem_section_5_hide',
'label' => __( 'Hide Section', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'checkbox',
'default' => '',
);
// Section Our Team
$section = 'alchem-section-team';
$sections[] = array(
'id' => $section,
'title' => __( 'Section - Our Team', 'alchem' ),
'priority' => '16',
'description' => '',
'panel' => $panel
);
$options['alchem_section_6_model'] = array(
'id' => 'alchem_section_6_model',
'label' => __( 'Content Model', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => array('0'=>__( 'Default', 'alchem' ),'1'=>__( 'Custom', 'alchem' )),
'default' => '0',
'description' => __( 'Choose Default to fill this section form with fixed layout. Choose Custom to fill this section with custom html code.', 'alchem' )
);
$options['alchem_section_6_background_color'] = array(
'id' => 'alchem_section_6_background_color',
'label' => __( 'Background Color', 'alchem' ),
'section' => $section,
'type' => 'color',
'default' => '',
'description' => __( 'Set background color for this section.', 'alchem' )
);
$options['alchem_section_6_background_image'] = array(
'id' => 'alchem_section_6_background_image',
'label' => __( 'Background Image', 'alchem' ),
'section' => $section,
'type' => 'upload',
'default' => '',
'description' => __( 'Upload background image for this section.', 'alchem' )
);
$options['alchem_section_6_top_padding'] = array(
'id' => 'alchem_section_6_top_padding',
'label' => __( 'Section Top Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '50px',
);
$options['alchem_section_6_bottom_padding'] = array(
'id' => 'alchem_section_6_bottom_padding',
'label' => __( 'Section Bottom Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '50px',
);
$options['alchem_section_6_title'] = array(
'id' => 'alchem_section_6_title',
'label' => __( 'Title', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'Our Team',
);
$options['alchem_section_6_columns'] = array(
'id' => 'alchem_section_6_columns',
'label' => __( 'Columns', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'select',
'choices' => array(2=>2,3=>3,4=>4),
'default' => '4',
);
$avatar = array(
esc_url('https://demo.mageewp.com/alchem/wp-content/uploads/sites/21/2015/08/team-img-3.jpg'),
esc_url('https://demo.mageewp.com/alchem/wp-content/uploads/sites/21/2015/08/team-img-1.jpg'),
esc_url('https://demo.mageewp.com/alchem/wp-content/uploads/sites/21/2015/08/team-img-2.jpg'),
esc_url('https://demo.mageewp.com/alchem/wp-content/uploads/sites/21/2015/08/team-img-4.jpg'),
'',
'',
'',
'');
$name = array('JOHN GREEN','JOHN GREEN','JOHN GREEN','JOHN GREEN','','','','');
$byline = array('CEO','CEO','CEO','CEO','','','','');
$social_icon = array('instagram','facebook','google-plus','envelope');
for( $i=0;$i < 8;$i++ ){
$j = $i+1;
$options['alchem_section_6_avatar_'.$i] = array(
'id' => 'alchem_section_6_avatar_'.$i,
'label' => sprintf(__( 'Upload Avatar %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'upload',
'default' => $avatar[$i],
);
$options['alchem_section_6_link_'.$i] = array(
'id' => 'alchem_section_6_link_'.$i,
'label' => sprintf(__( 'Avatar Link %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => '#',
);
$options['alchem_section_6_name_'.$i] = array(
'id' => 'alchem_section_6_name_'.$i,
'label' => sprintf(__( 'Name %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => $name[$i],
);
$options['alchem_section_6_byline_'.$i] = array(
'id' => 'alchem_section_6_byline_'.$i,
'label' => sprintf(__( 'Byline %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => $byline[$i],
);
$options['alchem_section_6_desc_'.$i] = array(
'id' => 'alchem_section_6_desc_'.$i,
'label' => sprintf(__( 'Description %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'textarea',
'default' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam congue gravida ligula eget congue. Quisque nibh nunc, dapibus id pulvinar id, interdum quis enim.',
);
for($k=0;$k<4;$k++):
$options['alchem_section_6_social_icon_'.$i.'_'.$k] = array(
'id' => 'alchem_section_6_social_icon_'.$i.'_'.$k,
'label' => sprintf(__( 'Social Icon %d - %d', 'alchem' ),$j,$k+1),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => $social_icon[$k],
);
$options['alchem_section_6_social_link_'.$i.'_'.$k] = array(
'id' => 'alchem_section_6_social_link_'.$i.'_'.$k,
'label' => sprintf(__( 'Social Icon Link %d - %d', 'alchem' ),$j,$k+1),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => '#',
);
endfor;
}
$options['alchem_section_6_id'] = array(
'id' => 'alchem_section_6_id',
'label' => __( 'Section ID', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'section-7',
);
$options['alchem_section_6_content'] = array(
'id' => 'alchem_section_6_content',
'label' => __( 'Custom Section Content', 'alchem' ),
'description' => __( 'This would display instead of fixed layout once Content Modal is set as Custom. HTML Code and Shortcode are both allowed.', 'alchem' ),
'section' => $section,
'type' => 'textarea',
'default' => '',
);
$options['alchem_section_6_hide'] = array(
'id' => 'alchem_section_6_hide',
'label' => __( 'Hide Section', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'checkbox',
'default' => '',
);
// Section Testimonials
$section = 'alchem-section-testimonials';
$sections[] = array(
'id' => $section,
'title' => __( 'Section - Testimonials', 'alchem' ),
'priority' => '17',
'description' => '',
'panel' => $panel
);
$options['alchem_section_7_model'] = array(
'id' => 'alchem_section_7_model',
'label' => __( 'Content Model', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => array('0'=>__( 'Default', 'alchem' ),'1'=>__( 'Custom', 'alchem' )),
'default' => '0',
'description' => __( 'Choose Default to fill this section form with fixed layout. Choose Custom to fill this section with custom html code.', 'alchem' )
);
$options['alchem_section_7_background_color'] = array(
'id' => 'alchem_section_7_background_color',
'label' => __( 'Background Color', 'alchem' ),
'section' => $section,
'type' => 'color',
'default' => '',
'description' => __( 'Set background color for this section.', 'alchem' )
);
$options['alchem_section_7_background_image'] = array(
'id' => 'alchem_section_7_background_image',
'label' => __( 'Background Image', 'alchem' ),
'section' => $section,
'type' => 'upload',
'default' => esc_url('https://demo.mageewp.com/alchem/wp-content/uploads/sites/23/2015/12/bg-003-2.jpg'),
'description' => __( 'Upload background image for this section.', 'alchem' )
);
$options['alchem_section_7_top_padding'] = array(
'id' => 'alchem_section_7_top_padding',
'label' => __( 'Section Top Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '50px',
);
$options['alchem_section_7_bottom_padding'] = array(
'id' => 'alchem_section_7_bottom_padding',
'label' => __( 'Section Bottom Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '50px',
);
$options['alchem_section_7_title'] = array(
'id' => 'alchem_section_7_title',
'label' => __( 'Title', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'Testimonials',
);
$options['alchem_section_7_columns'] = array(
'id' => 'alchem_section_7_columns',
'label' => __( 'Columns', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'select',
'choices' => array(2=>2,3=>3,4=>4),
'default' => '3',
);
$avatar = array(
esc_url('https://demo.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/111.jpg'),
esc_url('https://demo.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/222.jpg'),
esc_url('https://demo.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/222.jpg'),
'',
'',
'',
'',
'');
$name = array('JACK GREEN','ANNA CASS','ANNA CASS','','','');
$byline = array('Web Developer','Conference','Conference','','','');
$description = array(
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris consequat non ex quis consectetur. Aliquam iaculis dolor erat, ut ornare dui vulputate nec. Cras a sem mattis, tincidunt urna nec, iaculis nisl. Nam congue ultricies dui.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris consequat non ex quis consectetur. Aliquam iaculis dolor erat, ut ornare dui vulputate nec. Cras a sem mattis, tincidunt urna nec, iaculis nisl. Nam congue ultricies dui.',
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris consequat non ex quis consectetur. Aliquam iaculis dolor erat, ut ornare dui vulputate nec. Cras a sem mattis, tincidunt urna nec, iaculis nisl. Nam congue ultricies dui.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris consequat non ex quis consectetur. Aliquam iaculis dolor erat, ut ornare dui vulputate nec. Cras a sem mattis, tincidunt urna nec, iaculis nisl. Nam congue ultricies dui.',
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris consequat non ex quis consectetur. Aliquam iaculis dolor erat, ut ornare dui vulputate nec. Cras a sem mattis, tincidunt urna nec, iaculis nisl. Nam congue ultricies dui.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris consequat non ex quis consectetur. Aliquam iaculis dolor erat, ut ornare dui vulputate nec. Cras a sem mattis, tincidunt urna nec, iaculis nisl. Nam congue ultricies dui.',
'',
'',
''
);
for( $i=0;$i < 6;$i++ ){
$j = $i+1;
$options['alchem_section_7_avatar_'.$i] = array(
'id' => 'alchem_section_7_avatar_'.$i,
'label' => sprintf(__( 'Upload Avatar %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'upload',
'default' => $avatar[$i],
);
$options['alchem_section_7_name_'.$i] = array(
'id' => 'alchem_section_7_name_'.$i,
'label' => sprintf(__( 'Name %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => $name[$i],
);
$options['alchem_section_7_byline_'.$i] = array(
'id' => 'alchem_section_7_byline_'.$i,
'label' => sprintf(__( 'Byline %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => $byline[$i],
);
$options['alchem_section_7_desc_'.$i] = array(
'id' => 'alchem_section_7_desc_'.$i,
'label' => sprintf(__( 'Description %d', 'alchem' ),$j),
'description' => '',
'section' => $section,
'type' => 'textarea',
'default' => $description[$i],
);
}
$options['alchem_section_7_id'] = array(
'id' => 'alchem_section_7_id',
'label' => __( 'Section ID', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'section-8',
);
$options['alchem_section_7_content'] = array(
'id' => 'alchem_section_7_content',
'label' => __( 'Custom Section Content', 'alchem' ),
'description' => __( 'This would display instead of fixed layout once Content Modal is set as Custom. HTML Code and Shortcode are both allowed.', 'alchem' ),
'section' => $section,
'type' => 'textarea',
'default' => '',
);
$options['alchem_section_7_hide'] = array(
'id' => 'alchem_section_7_hide',
'label' => __( 'Hide Section', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'checkbox',
'default' => '',
);
// Section Latest News
$section = 'alchem-section-news';
$sections[] = array(
'id' => $section,
'title' => __( 'Section - Latest News', 'alchem' ),
'priority' => '18',
'description' => '',
'panel' => $panel
);
$options['alchem_section_8_model'] = array(
'id' => 'alchem_section_8_model',
'label' => __( 'Content Model', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => array('0'=>__( 'Default', 'alchem' ),'1'=>__( 'Custom', 'alchem' )),
'default' => '0',
'description' => __( 'Choose Default to fill this section form with fixed layout. Choose Custom to fill this section with custom html code.', 'alchem' )
);
$options['alchem_section_8_background_color'] = array(
'id' => 'alchem_section_8_background_color',
'label' => __( 'Background Color', 'alchem' ),
'section' => $section,
'type' => 'color',
'default' => '',
'description' => __( 'Set background color for this section.', 'alchem' )
);
$options['alchem_section_8_background_image'] = array(
'id' => 'alchem_section_8_background_image',
'label' => __( 'Background Image', 'alchem' ),
'section' => $section,
'type' => 'upload',
'default' => '',
'description' => __( 'Upload background image for this section.', 'alchem' )
);
$options['alchem_section_8_top_padding'] = array(
'id' => 'alchem_section_8_top_padding',
'label' => __( 'Section Top Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '50px',
);
$options['alchem_section_8_bottom_padding'] = array(
'id' => 'alchem_section_8_bottom_padding',
'label' => __( 'Section Bottom Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '50px',
);
$options['alchem_section_8_title'] = array(
'id' => 'alchem_section_8_title',
'label' => __( 'Title', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'Latest News',
);
$options['alchem_section_8_columns'] = array(
'id' => 'alchem_section_8_columns',
'label' => __( 'Columns', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'select',
'choices' => array(2=>2,3=>3,4=>4),
'default' => '3',
);
$options['alchem_section_8_posts_num'] = array(
'id' => 'alchem_section_8_posts_num',
'label' => __( 'Posts Num', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'select',
'choices' => array(2=>2,3=>3,4=>4,5=>5,6=>6,7=>7,8=>8,9=>9,10=>10),
'default' => '3',
);
$options['alchem_section_8_id'] = array(
'id' => 'alchem_section_8_id',
'label' => __( 'Section ID', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'section-9',
);
$options['alchem_section_8_content'] = array(
'id' => 'alchem_section_8_content',
'label' => __( 'Custom Section Content', 'alchem' ),
'description' => __( 'This would display instead of fixed layout once Content Modal is set as Custom. HTML Code and Shortcode are both allowed.', 'alchem' ),
'section' => $section,
'type' => 'textarea',
'default' => '',
);
$options['alchem_section_8_hide'] = array(
'id' => 'alchem_section_8_hide',
'label' => __( 'Hide Section', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'checkbox',
'default' => '',
);
// Section Partners
$section = 'alchem-section-partners';
$sections[] = array(
'id' => $section,
'title' => __( 'Section - Partners', 'alchem' ),
'priority' => '20',
'description' => '',
'panel' => $panel
);
$options['alchem_section_9_model'] = array(
'id' => 'alchem_section_9_model',
'label' => __( 'Content Model', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => array('0'=>__( 'Default', 'alchem' ),'1'=>__( 'Custom', 'alchem' )),
'default' => '0',
'description' => __( 'Choose Default to fill this section form with fixed layout. Choose Custom to fill this section with custom html code.', 'alchem' )
);
$options['alchem_section_9_background_color'] = array(
'id' => 'alchem_section_9_background_color',
'label' => __( 'Background Color', 'alchem' ),
'section' => $section,
'type' => 'color',
'default' => '#eeeeee',
'description' => __( 'Set background color for this section.', 'alchem' )
);
$options['alchem_section_9_background_image'] = array(
'id' => 'alchem_section_9_background_image',
'label' => __( 'Background Image', 'alchem' ),
'section' => $section,
'type' => 'upload',
'default' => '',
'description' => __( 'Upload background image for this section.', 'alchem' )
);
$options['alchem_section_9_top_padding'] = array(
'id' => 'alchem_section_9_top_padding',
'label' => __( 'Section Top Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '20px',
);
$options['alchem_section_9_bottom_padding'] = array(
'id' => 'alchem_section_9_bottom_padding',
'label' => __( 'Section Bottom Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '30px',
);
$partners = array(
'https://demo.mageewp.com/alchem/wp-content/uploads/sites/21/2015/08/partners1.png',
'https://demo.mageewp.com/alchem/wp-content/uploads/sites/21/2015/08/partners2.png',
'https://demo.mageewp.com/alchem/wp-content/uploads/sites/21/2015/08/partners3.png',
'https://demo.mageewp.com/alchem/wp-content/uploads/sites/21/2015/08/partners4.png',
'https://demo.mageewp.com/alchem/wp-content/uploads/sites/21/2015/08/partners5.png',
''
);
for( $i=0;$i<5;$i++){
$options['alchem_section_9_partner_'.$i] = array(
'id' => 'alchem_section_9_partner_'.$i,
'label' => __( 'Upload Image', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'upload',
'default' => $partners[$i],
);
}
$options['alchem_section_9_id'] = array(
'id' => 'alchem_section_9_id',
'label' => __( 'Section ID', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'section-10',
);
$options['alchem_section_9_content'] = array(
'id' => 'alchem_section_9_content',
'label' => __( 'Custom Section Content', 'alchem' ),
'description' => __( 'This would display instead of fixed layout once Content Modal is set as Custom. HTML Code and Shortcode are both allowed.', 'alchem' ),
'section' => $section,
'type' => 'textarea',
'default' => '',
);
$options['alchem_section_9_hide'] = array(
'id' => 'alchem_section_9_hide',
'label' => __( 'Hide Section', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'checkbox',
'default' => '',
);
// Section Slogan
$section = 'alchem-section-slogan';
$sections[] = array(
'id' => $section,
'title' => __( 'Section - Slogan', 'alchem' ),
'priority' => '21',
'description' => '',
'panel' => $panel
);
$options['alchem_section_10_model'] = array(
'id' => 'alchem_section_10_model',
'label' => __( 'Content Model', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => array('0'=>__( 'Default', 'alchem' ),'1'=>__( 'Custom', 'alchem' )),
'default' => '0',
'description' => __( 'Choose Default to fill this section form with fixed layout. Choose Custom to fill this section with custom html code.', 'alchem' )
);
$options['alchem_section_10_background_color'] = array(
'id' => 'alchem_section_10_background_color',
'label' => __( 'Background Color', 'alchem' ),
'section' => $section,
'type' => 'color',
'default' => '',
'description' => __( 'Set background color for this section.', 'alchem' )
);
$options['alchem_section_10_background_image'] = array(
'id' => 'alchem_section_10_background_image',
'label' => __( 'Background Image', 'alchem' ),
'section' => $section,
'type' => 'upload',
'default' => esc_url('https://demo.mageewp.com/alchem/wp-content/uploads/sites/23/2015/12/bg-03-1.jpg'),
'description' => __( 'Upload background image for this section.', 'alchem' )
);
$options['alchem_section_10_top_padding'] = array(
'id' => 'alchem_section_10_top_padding',
'label' => __( 'Section Top Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '50px',
);
$options['alchem_section_10_bottom_padding'] = array(
'id' => 'alchem_section_10_bottom_padding',
'label' => __( 'Section Bottom Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '50px',
);
$options['alchem_section_10_title'] = array(
'id' => 'alchem_section_10_title',
'label' => __( 'Title', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'The most elegant theme you\'ve ever seen.
Want it? Feel free to contact us.',
);
$options['alchem_section_10_button_text'] = array(
'id' => 'alchem_section_10_button_text',
'label' => __( 'Button Text', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'Get The Theme!',
);
$options['alchem_section_10_button_link'] = array(
'id' => 'alchem_section_10_button_link',
'label' => __( 'Button Link', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => '#',
);
$options['alchem_section_10_button_target'] = array(
'id' => 'alchem_section_10_button_target',
'label' => __( 'Button Link Target', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'select',
'choices' => $target,
'default' => '_blank',
);
$options['alchem_section_10_id'] = array(
'id' => 'alchem_section_10_id',
'label' => __( 'Section ID', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'text',
'default' => 'section-11',
);
$options['alchem_section_10_content'] = array(
'id' => 'alchem_section_10_content',
'label' => __( 'Custom Section Content', 'alchem' ),
'description' => __( 'This would display instead of fixed layout once Content Modal is set as Custom. HTML Code and Shortcode are both allowed.', 'alchem' ),
'section' => $section,
'type' => 'textarea',
'default' => '',
);
$options['alchem_section_10_hide'] = array(
'id' => 'alchem_section_10_hide',
'label' => __( 'Hide Section', 'alchem' ),
'description' => '',
'section' => $section,
'type' => 'checkbox',
'default' => '',
);
##### General panel #####
// General panel
$panel = 'general';
$panels[] = array(
'id' => $panel,
'title' => __( 'General', 'alchem' ),
'priority' => '10'
);
// Scheme Options
$section = 'scheme-options';
$sections[] = array(
'id' => $section,
'title' => __( 'Scheme Options', 'alchem' ),
'priority' => '10',
'description' => '',
'panel' => $panel
);
$options['alchem_scheme'] = array(
'id' => 'alchem_scheme',
'label' => __( 'Primary Color', 'alchem' ),
'section' => $section,
'type' => 'color',
'default' => '#fdd200',
'description' => __( 'Set primary color for your site.', 'alchem' )
);
##### Site Width #####
// Site Width panel
$panel = 'site-width';
$panels[] = array(
'id' => $panel,
'title' => __( 'Site Width', 'alchem' ),
'priority' => '11'
);
// Layout Options
$section = 'layout-options';
$sections[] = array(
'id' => $section,
'title' => __( 'Layout Options', 'alchem' ),
'priority' => '10',
'description' => '',
'panel' => $panel
);
$options['alchem_layout'] = array(
'id' => 'alchem_layout',
'label' => __( 'Layout', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => array(
'boxed' => __( 'Boxed', 'alchem' ),
'wide' => __( 'Wide', 'alchem' ),
),
'default' => 'wide',
'description' => __( 'Select boxed or wide layout.', 'alchem')
);
$options['alchem_site_width'] = array(
'id' => 'alchem_site_width',
'label' => __( 'Site Width', 'alchem' ),
'description' =>__( 'Controls the overall site width. In px or %, ex: 100% or 1170px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '1170px',
);
// Content Width/Sidebar Width
$section = 'content-sidebar';
$sections[] = array(
'id' => $section,
'title' => __( 'Content Width/Sidebar Width', 'alchem' ),
'priority' => '10',
'description' => __( 'These settings are used on pages with 1 sidebar. Total values must add up to 100.', 'alchem' ),
'panel' => $panel
);
$options['alchem_content_width_1'] = array(
'id' => 'alchem_content_width_1',
'label' => __( 'Content Width', 'alchem' ),
'description' => __( 'Controls the width of the content area. In px or %, ex: 100% or 1170px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '75%%',
);
$options['alchem_sidebar_width'] = array(
'id' => 'alchem_sidebar_width',
'label' => __( 'Sidebar Width', 'alchem' ),
'description' => __( 'Controls the width of the sidebar. In px or %', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '25%%',
);
// Content Width/Sidebar Width
$section = 'content-sidebar-sidebar';
$sections[] = array(
'id' => $section,
'title' => __( 'Content Width/Left & Right Sidebar Width', 'alchem' ),
'priority' => '10',
'description' => __( 'These settings are used on pages with 2 sidebars. Total values must add up to 100%.', 'alchem' ),
'panel' => $panel
);
$options['alchem_content_width_2'] = array(
'id' => 'alchem_content_width_2',
'label' => __( 'Content Width', 'alchem' ),
'description' => __( 'Controls the width of the content area. In px or %, ex: 100% or 1170px.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '60%%',
);
$options['alchem_sidebar_width_1'] = array(
'id' => 'alchem_sidebar_width_1',
'label' => __( 'Sidebar 1 Width', 'alchem' ),
'description' => __( 'Controls the width of the sidebar 1. In px or %.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '20%%',
);
$options['alchem_sidebar_width_2'] = array(
'id' => 'alchem_sidebar_width_2',
'label' => __( 'Sidebar 2 Width', 'alchem' ),
'description' => __( 'Controls the width of the sidebar 2. In px or %.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '20%%',
);
##### Header #####
// Header panel
$panel = 'header';
$panels[] = array(
'id' => $panel,
'title' => __( 'Header', 'alchem' ),
'priority' => '12'
);
// Header Background
$section = 'header-background';
$sections[] = array(
'id' => $section,
'title' => __( 'Header Background', 'alchem' ),
'priority' => '10',
'description' => '',
'panel' => $panel
);
$options['alchem_header_overlay'] = array(
'id' => 'alchem_header_overlay',
'label' => __( 'Header Overlay', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => $choices_reverse,
'default' => 'yes',
'description' => __( 'Choose to set header as overlay style.', 'alchem'),
);
$options['alchem_header_background_image'] = array(
'id' => 'alchem_header_background_image',
'label' => __( 'Header Background Image', 'alchem' ),
'section' => $section,
'type' => 'upload',
'default' => '',
'description' => __( 'Background Image For Header Area.', 'alchem' ),
);
$options['alchem_header_background_full'] = array(
'id' => 'alchem_header_background_full',
'label' => __( '100% Background Image', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => $choices,
'default' => 'no',
'description' => __( 'Turn on to have the header background image display at 100% in width and height and scale according to the browser size.', 'alchem' ),
);
$options['alchem_header_background_parallax'] = array(
'id' => 'alchem_header_background_parallax',
'label' => __( 'Parallax Background Image', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => $choices_reverse,
'default' => 'no',
'description' => __( 'Turn on to enable parallax scrolling on the background image for header top positions.', 'alchem' ),
);
$options['alchem_header_background_repeat'] = array(
'id' => 'alchem_header_background_repeat',
'label' => __( 'Background Repeat', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => $repeat,
'default' => 'no',
'description' => __( 'Select how the background image repeats.', 'alchem' ),
);
$options['alchem_header_top_padding'] = array(
'id' => 'alchem_header_top_padding',
'label' => __( 'Header Top Padding', 'alchem' ),
'description' => __( 'In pixels or percentage, ex: 10px or 10%.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '0px',
);
$options['alchem_header_bottom_padding'] = array(
'id' => 'alchem_header_bottom_padding',
'label' => __( 'Header Bottom Padding', 'alchem' ),
'description' => __( 'In pixels or percentage, ex: 10px or 10%.', 'alchem' ),
'section' => $section,
'type' => 'text',
'default' => '0px',
);
// Header Background
$section = 'top-bar-options';
$sections[] = array(
'id' => $section,
'title' => __( 'Top Bar Options', 'alchem' ),
'priority' => '10',
'description' => __( 'Top Bar Options.', 'alchem' ),
'panel' => $panel
);
$options['alchem_display_top_bar'] = array(
'id' => 'alchem_display_top_bar',
'label' => __( 'Display Top Bar', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => $choices,
'default' => 'no',
'description' => __( 'Choose to display top bar or not.', 'alchem' ),
);
$options['alchem_top_bar_background_color'] = array(
'id' => 'alchem_top_bar_background_color',
'label' => __( 'Background Color', 'alchem' ),
'section' => $section,
'type' => 'color',
'default' => '#eee',
'description' => __( 'Set background color for top bar.', 'alchem' )
);
$options['alchem_top_bar_left_content'] = array(
'id' => 'alchem_top_bar_left_content',
'label' => __( 'Left Content', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => array(
'info' => __( 'Info', 'alchem' ),
'sns' => __( 'SNS', 'alchem' ),
'menu' => __( 'Menu', 'alchem' ),
'none' => __( 'None', 'alchem' ),
),
'default' => 'info',
'description' => __( 'Select which content displays in left content area.', 'alchem')
);
$options['alchem_top_bar_right_content'] = array(
'id' => 'alchem_top_bar_right_content',
'label' => __( 'Right Content', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => array(
'info' => __( 'Info', 'alchem' ),
'sns' => __( 'SNS', 'alchem' ),
'menu' => __( 'Menu', 'alchem' ),
'none' => __( 'None', 'alchem' ),
),
'default' => 'sns',
'description' => __( 'Select which content displays in right content area.', 'alchem')
);
$options['alchem_top_bar_info_content'] = array(
'id' => 'alchem_top_bar_info_content',
'label' => __( 'Info Content', 'alchem' ),
'section' => $section,
'type' => 'textarea',
'default' => __( 'Mail: support@mageewp.com Phone: 1-234-567-8899', 'alchem' )
);
$options['alchem_top_bar_info_color'] = array(
'id' => 'alchem_top_bar_info_color',
'label' => __( 'Info Color', 'alchem' ),
'section' => $section,
'type' => 'color',
'default' => '',
);
$options['alchem_top_bar_menu_color'] = array(
'id' => 'alchem_top_bar_menu_color',
'label' => __( 'Menu Color', 'alchem' ),
'section' => $section,
'type' => 'color',
'default' => '',
'description' => __( 'Set font color for menu.', 'alchem')
);
if( $alchem_social_icons ):
$i = 1;
foreach($alchem_social_icons as $social_icon){
$options['alchem_header_social_title_'.$i] = array(
'id' => 'alchem_header_social_title_'.$i,
'label' => __( 'Social Title', 'alchem' ) .' '.$i,
'default' => $social_icon['title'],
'section' => $section,
'type' => 'text',
'description' => __( 'This would display in tooltip.', 'alchem' )
);
$options['alchem_header_social_icon_'.$i] = array(
'id' => 'alchem_header_social_icon_'.$i,
'label' => __( 'Social Icon', 'alchem' ).' '.$i,
'default' => $social_icon['icon'],
'section' => $section,
'type' => 'text',
'description' => sprintf(__( 'Insert font awesome icon here, more icons can be found at FontAwesome Icons.', 'alchem' ),esc_url('http://fontawesome.io/icons'))
);
$options['alchem_header_social_link_'.$i] = array(
'id' => 'alchem_header_social_link_'.$i,
'label' => __( 'Social Icon Link', 'alchem' ).' '.$i,
'default' => $social_icon['link'],
'section' => $section,
'type' => 'text',
'description' => __( 'Insert the link to show this icon.', 'alchem' )
);
$i++;
}
endif;
$options['alchem_top_bar_social_icons_color'] = array(
'id' => 'alchem_top_bar_social_icons_color',
'label' => __( 'Social Icons Color', 'alchem' ),
'section' => $section,
'type' => 'color',
'default' => '',
'description' => __( 'Set color for social icons.', 'alchem' )
);
$options['alchem_top_bar_social_icons_tooltip_position'] = array(
'id' => 'alchem_top_bar_social_icons_tooltip_position',
'label' => __( 'Tooltip Position for Social Icons', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => array(
'left' => __( 'left', 'alchem' ),
'right' => __( 'right', 'alchem' ),
'bottom' => __( 'bottom', 'alchem' ),
),
'default' => 'left',
'description' => __( 'Controls the tooltip position of the social icons in top bar.', 'alchem' )
);
##### Sticky Header #####
// Header Background
$section = 'sticky-header';
$sections[] = array(
'id' => $section,
'title' => __( 'Sticky Header', 'alchem' ),
'priority' => '13',
'description' => '',
);
$options['alchem_enable_sticky_header'] = array(
'id' => 'alchem_enable_sticky_header',
'label' => __( 'Enable Sticky Header', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => $choices,
'default' => 'yes',
'description' => __( 'Choose to enable a fixed header when scrolling.', 'alchem' ),
);
$options['alchem_enable_sticky_header_tablets'] = array(
'id' => 'alchem_enable_sticky_header_tablets',
'label' => __( 'Enable Sticky Header on Tablets', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => $choices,
'default' => 'no',
'description' => __( 'Choose to enable a fixed header when scrolling on tablets.', 'alchem' ),
);
$options['alchem_enable_sticky_header_mobiles'] = array(
'id' => 'alchem_enable_sticky_header_mobiles',
'label' => __( 'Enable Sticky Header on Mobiles', 'alchem' ),
'section' => $section,
'type' => 'select',
'choices' => $choices,
'default' => 'no',
'description' => __( 'Choose to enable a fixed header when scrolling on mobiles.', 'alchem' ),
);
$options['alchem_sticky_header_menu_item_padding'] = array(
'id' => 'alchem_sticky_header_menu_item_padding',
'label' => __( 'Sticky Header Menu Item Padding', 'alchem' ),
'description' => __( 'Controls the space between each menu item in the sticky header. Use a number without \'px\', default is 0. ex: 10', 'alchem' ),
'default' => '0',
'type' => 'text',
'section' => $section,
);
$options['alchem_sticky_header_navigation_font_size'] = array(
'id' => 'alchem_sticky_header_navigation_font_size',
'label' => __( 'Sticky Header Navigation Font Size', 'alchem' ),
'description' => __( 'Controls the font size of the menu items in the sticky header. Use a number without \'px\', default is 14. ex: 14', 'alchem' ),
'default' => '14',
'type' => 'text',
'section' => $section,
);
#### Logo #####
$panel = 'logo';
$panels[] = array(
'id' => $panel,
'title' => __( 'Logo', 'alchem' ),
'priority' => '14'
);
// Logo
$section = 'logo';
$sections[] = array(
'id' => $section,
'title' => __( 'Logo', 'alchem' ),
'priority' => '10',
'description' => '',
'panel' => $panel
);
$options['alchem_default_logo'] = array(
'id' => 'alchem_default_logo',
'label' => __( 'Upload Logo', 'alchem' ),
'description' => __( 'Select an image file for your logo.', 'alchem' ),
'default' => '',
'type' => 'upload',
'section' => $section,
);
$options['alchem_default_logo_retina'] = array(
'id' => 'alchem_default_logo_retina',
'label' => __( 'Upload Logo (Retina Version @2x)', 'alchem' ),
'description' => __( 'Select an image file for the retina version of the logo. It should be exactly 2x the size of main logo.', 'alchem' ),
'default' => '',
'type' => 'upload',
'section' => $section,
);
$options['alchem_retina_logo_width'] = array(
'id' => 'alchem_retina_logo_width',
'label' => __( 'Standard Logo Width for Retina Logo', 'alchem' ),
'description' => __( 'If retina logo is uploaded, enter the standard logo (1x) version width, do not enter the retina logo width. Use a number without \'px\', ex: 40', 'alchem' ),
'default' => '',
'type' => 'text',
'section' => $section,
);
$options['alchem_retina_logo_height'] = array(
'id' => 'alchem_retina_logo_height',
'label' => __( 'Standard Logo Height for Retina Logo', 'alchem' ),
'description' => __( 'If retina logo is uploaded, enter the standard logo (1x) version height, do not enter the retina logo height. Use a number without \'px\', ex: 40', 'alchem' ),
'default' => '',
'type' => 'text',
'section' => $section,
);
// Sticky Logo
$section = 'sticky-logo';
$sections[] = array(
'id' => $section,
'title' => __( 'Sticky Logo', 'alchem' ),
'priority' => '20',
'description' => '',
'panel' => $panel
);
$options['alchem_sticky_header_logo'] = array(
'id' => 'alchem_sticky_header_logo',
'label' => __( 'Sticky Header Logo', 'alchem' ).' ',
'description' => '',
'default' => '',
'type' => 'textblock-titled',
'section' => $section,
);
$options['alchem_sticky_logo'] = array(
'id' => 'alchem_sticky_logo',
'label' => __( 'Upload Logo', 'alchem' ),
'description' => __( 'Select an image file for your logo.', 'alchem' ),
'default' => '',
'type' => 'upload',
'section' => $section,
);
$options['alchem_sticky_logo_retina'] = array(
'id' => 'alchem_sticky_logo_retina',
'label' => __( 'Upload Logo (Retina Version @2x)', 'alchem' ),
'description' => __( 'Select an image file for the retina version of the logo. It should be exactly 2x the size of main logo.', 'alchem' ),
'default' => '',
'type' => 'upload',
'section' => $section,
);
$options['alchem_sticky_logo_width_for_retina_logo'] = array(
'id' => 'alchem_sticky_logo_width_for_retina_logo',
'label' => __( 'Sticky Logo Width for Retina Logo', 'alchem' ),
'description' => __( 'If retina logo is uploaded, enter the standard logo (1x) version width, do not enter the retina logo width. Use a number without \'px\', ex: 40', 'alchem' ),
'default' => '',
'type' => 'text',
'section' => $section,
);
$options['alchem_sticky_logo_height_for_retina_logo'] = array(
'id' => 'alchem_sticky_logo_height_for_retina_logo',
'label' => __( 'Sticky Logo Height for Retina Logo', 'alchem' ),
'description' => __( 'If retina logo is uploaded, enter the standard logo (1x) version height, do not enter the retina logo height. Use a number without \'px\', ex: 40', 'alchem' ),
'default' => '',
'type' => 'text',
'section' => $section,
);
// Logo Options
$section = 'logo-options';
$sections[] = array(
'id' => $section,
'title' => __( 'Logo Options', 'alchem' ),
'priority' => '30',
'description' => '',
'panel' => $panel
);
$options['alchem_logo_left_margin'] = array(
'id' => 'alchem_logo_left_margin',
'label' => __( 'Logo Left Margin', 'alchem' ),
'description' => __( 'Use a number without \'px\', ex: 40', 'alchem' ),
'default' => '',
'type' => 'text',
'section' => $section,
);
$options['alchem_logo_right_margin'] = array(
'id' => 'alchem_logo_right_margin',
'label' => __( 'Logo Right Margin', 'alchem' ),
'description' => __( 'Use a number without \'px\', ex: 40', 'alchem' ),
'default' => '',
'type' => 'text',
'section' => $section,
);
$options['alchem_logo_top_margin'] = array(
'id' => 'alchem_logo_top_margin',
'label' => __( 'Logo Top Margin', 'alchem' ),
'description' => __( 'Use a number without \'px\', ex: 40', 'alchem' ),
'default' => '',
'type' => 'text',
'section' => $section,
);
$options['alchem_logo_bottom_margin'] = array(
'id' => 'alchem_logo_bottom_margin',
'label' => __( 'Logo Bottom Margin', 'alchem' ),
'description' => __( 'Use a number without \'px\', ex: 40', 'alchem' ),
'default' => '',
'type' => 'text',
'section' => $section,
);
#### page title bar options ####
$panel = 'page-title-bar';
$panels[] = array(
'id' => $panel,
'title' => __( 'Page Title Bar', 'alchem' ),
'priority' => '14'
);
// Page Title Bar Options
$section = 'page-title-bar-options';
$sections[] = array(
'id' => $section,
'title' => __( 'Page Title Bar Options', 'alchem' ),
'priority' => '10',
'description' => '',
'panel' => $panel
);
$options['alchem_enable_page_title_bar'] = array(
'id' => 'alchem_enable_page_title_bar',
'label' => __( 'Enable Page Title Bar', 'alchem' ),
'description' => '',
'default' => 'yes',
'type' => 'select',
'section' => $section,
'choices' => $choices,
'description' => __( 'Choose to display page title bar for pages & posts.', 'alchem' )
);
$options['alchem_page_title_bar_top_padding'] = array(
'id' => 'alchem_page_title_bar_top_padding',
'label' => __( 'Page Title Bar Top Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 210px', 'alchem' ),
'default' => '210px',
'type' => 'text',
'section' => $section,
);
$options['alchem_page_title_bar_bottom_padding'] = array(
'id' => 'alchem_page_title_bar_bottom_padding',
'label' => __( 'Page Title Bar Bottom Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 160px', 'alchem' ),
'default' => '160px',
'type' => 'text',
'section' => $section,
);
$options['alchem_page_title_bar_mobile_top_padding'] = array(
'id' => 'alchem_page_title_bar_mobile_top_padding',
'label' => __( 'Page Title Bar Mobile Top Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 70px', 'alchem' ),
'default' => '70px',
'type' => 'text',
'section' => $section,
);
$options['alchem_page_title_bar_mobile_bottom_padding'] = array(
'id' => 'alchem_page_title_bar_mobile_bottom_padding',
'label' => __( 'Page Title Bar Mobile Bottom Padding', 'alchem' ),
'description' => __( 'In pixels, ex: 50px', 'alchem' ),
'default' => '50px',
'type' => 'text',
'section' => $section,
);
$options['alchem_page_title_bar_background'] = array(
'id' => 'alchem_page_title_bar_background',
'label' => __( 'Page Title Bar Background', 'alchem' ),
'description' => __( 'Set background image for page title bar.', 'alchem' ),
'default' => $imagepath.'bg-1.jpg',
'type' => 'upload',
'section' => $section,
);
$options['alchem_page_title_bar_retina_background'] = array(
'id' => 'alchem_page_title_bar_retina_background',
'label' => __( 'Page Title Bar Background (Retina Version @2x)', 'alchem' ),
'description' => __( 'Set background image for retina page title bar.', 'alchem' ),
'default' => '',
'type' => 'upload',
'section' => $section,
);
$options['alchem_page_title_bg_full'] = array(
'id' => 'alchem_page_title_bg_full',
'label' => __( '100% Background Image', 'alchem' ),
'description' => __( 'Select yes to have the page title bar background image display at 100% in width and height and scale according to the browser size.', 'alchem' ),
'default' => 'no',
'type' => 'select',
'section' => $section,
'choices' => $choices_reverse
);
$options['alchem_page_title_bg_parallax'] = array(
'id' => 'alchem_page_title_bg_parallax',
'label' => __( 'Parallax Background Image', 'alchem' ),
'description' => __( 'Select yes to enable parallax background image when scrolling.', 'alchem' ),
'default' => 'no',
'type' => 'select',
'section' => $section,
'choices' => $choices_reverse
);
$options['alchem_page_title_align'] = array(
'id' => 'alchem_page_title_align',
'label' => __( 'Page Title Align', 'alchem' ),
'description' => __( 'Set alignment for page title.' ,'alchem' ),
'default' => 'left',
'type' => 'select',
'section' => $section,
'choices' => $align
);
// Breadcrumb Options
$section = 'breadcrumb-options';
$sections[] = array(
'id' => $section,
'title' => __( 'Breadcrumb Options', 'alchem' ),
'priority' => '11',
'description' => '',
'panel' => $panel
);
$options['alchem_display_breadcrumb'] = array(
'id' => 'alchem_display_breadcrumb',
'label' => __( 'Display breadcrumbs', 'alchem' ),
'description' => __( 'Choose to display or hide breadcrumbs.', 'alchem'),
'default' => 'yes',
'type' => 'select',
'section' => $section,
'choices' => $choices
);
$options['alchem_breadcrumbs_on_mobile_devices'] = array(
'id' => 'alchem_breadcrumbs_on_mobile_devices',
'label' => __( 'Breadcrumbs on Mobile Devices', 'alchem' ),
'description' => __( 'Choose to display breadcrumbs on mobile devices.', 'alchem' ),
'default' => 'no',
'type' => 'select',
'section' => $section,
'choices' => $choices_reverse
);
$options['alchem_breadcrumb_menu_prefix'] = array(
'id' => 'alchem_breadcrumb_menu_prefix',
'label' => __( 'Breadcrumb Menu Prefix', 'alchem' ),
'description' => __( 'The text before the breadcrumb menu.', 'alchem' ),
'default' => '',
'type' => 'text',
'section' => $section,
);
$options['alchem_breadcrumb_menu_separator'] = array(
'id' => 'alchem_breadcrumb_menu_separator',
'label' => __( 'Breadcrumb Menu Separator', 'alchem' ),
'description' => __( 'Choose a separator between the single breadcrumbs.', 'alchem' ),
'default' => '/',
'type' => 'text',
'section' => $section,
);
$options['alchem_breadcrumb_show_post_type_archive'] = array(
'id' => 'alchem_breadcrumb_show_post_type_archive',
'label' => __( 'Show Custom Post Type Archives on Breadcrumbs.', 'alchem' ),
'description' => __( 'Choose to display custom post type archives in the breadcrumb path.', 'alchem' ),
'default' => 'no',
'type' => 'select',
'section' => $section,
'choices' => $choices_reverse
);
$options['alchem_breadcrumb_show_categories'] = array(
'id' => 'alchem_breadcrumb_show_categories',
'label' => __( 'Show Post Categories on Breadcrumbs', 'alchem' ),
'description' => __( 'Choose to display custom post categories in the breadcrumb path.', 'alchem' ),
'default' => 'yes',
'type' => 'select',
'section' => $section,
'choices' => $choices
);
### Footer ###
$panel = 'footer';
$panels[] = array(
'id' => $panel,
'title' => __( 'Footer', 'alchem' ),
'priority' => '16'
);
// General Footer Options
$section = 'general_footer_options';
$sections[] = array(
'id' => $section,
'title' => __( 'General Footer Options', 'alchem' ),
'priority' => '10',
'description' => '',
'panel' => $panel
);
$options['alchem_footer_special_effects'] = array(
'id' => 'alchem_footer_special_effects',
'label' => __( 'Footer Special Effects', 'alchem' ),
'description' => __( 'Select your preferred footer special effect.', 'alchem' ),
'default' => 'none',
'type' => 'select',
'section' => $section,
'choices' => array(
'none' => __( 'None', 'alchem' ),
'footer_sticky' => __( 'Sticky Footer', 'alchem' ),
),
);
// Footer Widgets Area Options
$section = 'footer_widgets_area_options';
$sections[] = array(
'id' => $section,
'title' => __( 'Footer Widgets Area Options', 'alchem' ),
'priority' => '10',
'description' => '',
'panel' => $panel
);
$options['alchem_display_footer_widgets'] = array(
'id' => 'alchem_display_footer_widgets',
'label' => __( 'Display footer widgets?', 'alchem' ),
'description' => __( 'Choose to display footer widget area.', 'alchem' ),
'default' => 'no',
'type' => 'select',
'section' => $section,
'choices' => $choices
);
$options['alchem_footer_columns'] = array(
'id' => 'alchem_footer_columns',
'label' => __( 'Number of Footer Columns', 'alchem' ),
'description' => __( 'Set columns for footer widgets', 'alchem' ),
'default' => '4',
'type' => 'select',
'section' => $section,
'choices' => array(
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
),
);
$options['alchem_footer_background_image'] = array(
'id' => 'alchem_footer_background_image',
'label' => __( 'Upload Background Image', 'alchem' ),
'description' => __( 'Background image for footer', 'alchem'),
'default' => '',
'type' => 'upload',
'section' => $section,
);
$options['alchem_footer_bg_full'] = array(
'id' => 'alchem_footer_bg_full',
'label' => __( '100% Background Image', 'alchem' ),
'description' => __( 'Select yes to have the footer widgets area background image display at 100% in width and height and scale according to the browser size.', 'alchem' ),
'default' => 'no',
'type' => 'select',
'section' => $section,
'choices' => $choices_reverse
);
$options['alchem_footer_parallax_background'] = array(
'id' => 'alchem_footer_parallax_background',
'label' => __( 'Parallax Background Image', 'alchem' ),
'description' => __( 'Turn on to enable parallax scrolling on the background image for footer.', 'alchem' ),
'default' => 'no',
'type' => 'select',
'section' => $section,
'choices' => $choices_reverse
);
$options['alchem_footer_background_repeat'] = array(
'id' => 'alchem_footer_background_repeat',
'label' => __( 'Background Repeat', 'alchem' ),
'description' => __( 'Select how the background image repeats.', 'alchem' ),
'default' => 'repeat',
'type' => 'select',
'section' => $section,
'choices' => $repeat
);
$options['alchem_footer_background_position'] = array(
'id' => 'alchem_footer_background_position',
'label' => __( 'Background Position', 'alchem' ),
'description' => __( 'Set background image position.', 'alchem' ),
'default' => 'top left',
'type' => 'select',
'section' => $section,
'choices' => $position
);
$options['alchem_footer_top_padding'] = array(
'id' => 'alchem_footer_top_padding',
'label' => __( 'Footer Top Padding', 'alchem' ),
'description' => __( 'In pixels or percentage, ex: 10px or 10%.', 'alchem' ),
'default' => '60px',
'type' => 'text',
'section' => $section,
);
$options['alchem_footer_bottom_padding'] = array(
'id' => 'alchem_footer_bottom_padding',
'label' => __( 'Footer Bottom Padding', 'alchem' ),
'description' => __( 'In pixels or percentage, ex: 10px or 10%.', 'alchem' ),
'default' => '40px',
'type' => 'text',
'section' => $section,
);
// Copyright Options
$section = 'copyright-options';
$sections[] = array(
'id' => $section,
'title' => __( 'Copyright Options', 'alchem' ),
'priority' => '10',
'description' => '',
'panel' => $panel
);
$options['alchem_display_copyright_bar'] = array(
'id' => 'alchem_display_copyright_bar',
'label' => __( 'Display Copyright Bar', 'alchem' ),
'description' => __( 'Choose to display copyright bar.', 'alchem' ),
'default' => 'yes',
'type' => 'select',
'section' => $section,
'choices' => $choices
);
$options['alchem_copyright_text'] = array(
'id' => 'alchem_copyright_text',
'label' => __( 'Copyright Text', 'alchem' ),
'description' => __( 'Enter the text that displays in the copyright bar. HTML markup can be used.', 'alchem' ),
'default' => '',
'type' => 'textarea',
'section' => $section,
);
$options['alchem_copyright_top_padding'] = array(
'id' => 'alchem_copyright_top_padding',
'label' => __( 'Copyright Top Padding', 'alchem' ),
'description' => __( 'In pixels or percentage, ex: 10px or 10%.', 'alchem' ),
'default' => '40px',
'type' => 'text',
'section' => $section,
);
$options['alchem_copyright_bottom_padding'] = array(
'id' => 'alchem_copyright_bottom_padding',
'label' => __( 'Copyright Bottom Padding', 'alchem' ),
'description' => __( 'In pixels or percentage, ex: 10px or 10%.', 'alchem' ),
'default' => '40px',
'type' => 'text',
'section' => $section,
);
// Social Icon Options
$section = 'social_icon_options';
$sections[] = array(
'id' => $section,
'title' => __( 'Social Icon Options', 'alchem' ),
'priority' => '10',
'description' => '',
'panel' => $panel
);
if( $alchem_social_icons ):
$i = 1;
foreach($alchem_social_icons as $social_icon){
$options['alchem_footer_social_title_'.$i] = array(
'id' => 'alchem_footer_social_title_'.$i,
'label' => __( 'Social Title', 'alchem' ) .' '.$i,
'description' => __( 'This would display in tooltip.' , 'alchem' ),
'default' => $social_icon['title'],
'type' => 'text',
'section' => $section,
);
$options['alchem_footer_social_icon_'.$i] = array(
'id' => 'alchem_footer_social_icon_'.$i,
'label' => __( 'Social Icon', 'alchem' ).' '.$i,
'description' => __( 'Insert font awesome icon here, more icons can be found at FontAwesome Icons.', 'alchem' ),
'default' => $social_icon['icon'],
'type' => 'text',
'section' => $section,
);
$options['alchem_footer_social_link_'.$i] = array(
'id' => 'alchem_footer_social_link_'.$i,
'label' => __( 'Social Icon Link', 'alchem' ).' '.$i,
'description' => __( 'Insert the link to show this icon.', 'alchem'),
'default' => $social_icon['link'],
'type' => 'text',
'section' => $section,
);
$i++;
}
endif;
$options['alchem_footer_social_icons_color'] = array(
'id' => 'alchem_footer_social_icons_color',
'label' => __( 'Social Icons Color', 'alchem' ),
'description' => __( 'Set color for icons.', 'alchem' ),
'default' => '#c5c7c9',
'type' => 'color',
'section' => $section,
);
$options['alchem_footer_social_icons_boxed'] = array(
'id' => 'alchem_footer_social_icons_boxed',
'label' => __( 'Social Icons Boxed', 'alchem' ),
'description' => __( 'Choose to display boxed icons', 'alchem'),
'default' => 'no',
'type' => 'select',
'section' => $section,
'choices' => $choices
);
$options['alchem_footer_social_icons_box_color'] = array(
'id' => 'alchem_footer_social_icons_box_color',
'label' => __( 'Social Icons Box Color', 'alchem' ),
'description' => __( 'Set background color for boxed icons', 'alchem' ),
'default' => '#ffffff',
'type' => 'color',
'section' => $section,
);
$options['alchem_footer_social_icons_boxed_radius'] = array(
'id' => 'alchem_footer_social_icons_boxed_radius',
'label' => __( 'Social Icons Boxed Radius', 'alchem' ),
'description' => __( 'In pixels, ex: 10px.', 'alchem' ),
'default' => '10px',
'type' => 'text',
'section' => $section,
);
$options['alchem_footer_social_icons_tooltip_position'] = array(
'id' => 'alchem_footer_social_icons_tooltip_position',
'label' => __( 'Social Icon Tooltip Position', 'alchem' ),
'description' => __( 'Controls the tooltip position of the social icons.', 'alchem' ),
'default' => 'top',
'type' => 'select',
'section' => $section,
'choices' => array(
'top' => __( 'Top', 'alchem' ),
'bottom' => __( 'Bottom', 'alchem' ),
),
);
### Sidebar ###
$panel = 'sidebar';
$panels[] = array(
'id' => $panel,
'title' => __( 'Sidebar', 'alchem' ),
'priority' => '17'
);
// Pages
$section = 'sidebar-pages';
$sections[] = array(
'id' => $section,
'title' => __( 'Pages', 'alchem' ),
'priority' => '10',
'description' => '',
'panel' => $panel
);
$options['alchem_left_sidebar_pages'] = array(
'id' => 'alchem_left_sidebar_pages',
'label' => __( 'Left Sidebar', 'alchem' ),
'description' => __( 'Select left sidebar that will display on all pages.', 'alchem' ),
'default' => '',
'type' => 'select',
'section' => $section,
'choices' => $alchem_sidebars,
);
$options['alchem_right_sidebar_pages'] = array(
'id' => 'alchem_right_sidebar_pages',
'label' => __( 'Right Sidebar', 'alchem' ),
'description' => __( 'Select right sidebar that will display on all pages.', 'alchem' ),
'default' => '',
'type' => 'select',
'section' => $section,
'choices' => $alchem_sidebars,
);
// Blog Posts
$section = 'sidebar_blog_posts';
$sections[] = array(
'id' => $section,
'title' => __( 'Blog Posts', 'alchem' ),
'priority' => '11',
'description' => '',
'panel' => $panel
);
$options['alchem_left_sidebar_blog_posts'] = array(
'id' => 'alchem_left_sidebar_blog_posts',
'label' => __( 'Left Sidebar', 'alchem' ),
'description' => __( 'Select left sidebar that will display on all blog posts.', 'alchem' ),
'default' => '',
'type' => 'select',
'section' => $section,
'choices' => $alchem_sidebars,
);
$options['alchem_right_sidebar_blog_posts'] = array(
'id' => 'alchem_right_sidebar_blog_posts',
'label' => __( 'Right Sidebar', 'alchem' ),
'description' => __( 'Select right sidebar that will display on all blog posts.', 'alchem' ),
'default' => '',
'type' => 'select',
'section' => $section,
'choices' => $alchem_sidebars,
);
// Blog Posts
$section = 'sidebar_blog_archive';
$sections[] = array(
'id' => $section,
'title' => __( 'Blog Archive Category Pages', 'alchem' ),
'priority' => '12',
'description' => '',
'panel' => $panel
);
$options['alchem_left_sidebar_blog_archive'] = array(
'id' => 'alchem_left_sidebar_blog_archive',
'label' => __( 'Left Sidebar', 'alchem' ),
'description' => __( 'Select left sidebar that will display on blog archive pages.', 'alchem' ),
'default' => '',
'type' => 'select',
'section' => $section,
'choices' => $alchem_sidebars,
);
$options['alchem_right_sidebar_blog_archive'] = array(
'id' => 'alchem_right_sidebar_blog_archive',
'label' => __( 'Right Sidebar', 'alchem' ),
'description' => __( 'Select right sidebar that will display on blog archive pages.', 'alchem' ),
'default' => '',
'type' => 'select',
'section' => $section,
'choices' => $alchem_sidebars,
);
//Sidebar search
$section = 'sidebar_search';
$sections[] = array(
'id' => $section,
'title' => __( 'Search Page', 'alchem' ),
'priority' => '13',
'description' => '',
'panel' => $panel
);
$options['alchem_left_sidebar_search'] = array(
'id' => 'alchem_left_sidebar_search',
'label' => __( 'Left Sidebar', 'alchem' ),
'description' => __( 'Select left sidebar that will display on search pages.', 'alchem' ),
'default' => '',
'type' => 'select',
'section' => $section,
'choices' => $alchem_sidebars,
);
$options['alchem_right_sidebar_search'] = array(
'id' => 'alchem_right_sidebar_search',
'label' => __( 'Right Sidebar', 'alchem' ),
'description' => __( 'Select right sidebar that will display on all pages.', 'alchem' ),
'default' => '',
'type' => 'select',
'section' => $section,
'choices' => $alchem_sidebars,
);
### Background ###
$panel = 'background_options';
$panels[] = array(
'id' => $panel,
'title' => __( 'Background Options', 'alchem' ),
'priority' => '18'
);
// BACKGROUND OPTIONS BELOW ONLY WORK IN BOXED MODE
$section = 'background_boxed';
$sections[] = array(
'id' => $section,
'title' => __( 'Background Options Only Work in Boxed Mode', 'alchem' ),
'priority' => '10',
'description' => '',
'panel' => $panel
);
$options['alchem_bg_image_upload'] = array(
'id' => 'alchem_bg_image_upload',
'label' => __( 'Background Image For Outer Areas In Boxed Mode', 'alchem' ),
'description' => __( 'Upload an image to use for the backgroud.', 'alchem' ),
'default' => '',
'type' => 'upload',
'section' => $section,
);
$options['alchem_bg_full'] = array(
'id' => 'alchem_bg_full',
'label' => __( '100% Background Image', 'alchem' ),
'description' => __( 'Choose to have the background image display at 100% in width and height and scale according to the browser size.', 'alchem' ),
'default' => 'no',
'type' => 'select',
'section' => $section,
'choices' => $choices_reverse
);
$options['alchem_bg_repeat'] = array(
'id' => 'alchem_bg_repeat',
'label' => __( 'Background Repeat', 'alchem' ),
'description' => __( 'Select how the background image repeats.', 'alchem' ),
'default' => 'repeat',
'type' => 'select',
'section' => $section,
'choices' => $repeat
);
$options['alchem_bg_color'] = array(
'id' => 'alchem_bg_color',
'label' => __( 'Background Color For Outer Areas In Boxed Mode', 'alchem' ),
'description' => __( 'Set background color for uter areas in boxed mode.', 'alchem' ),
'default' => '#ffffff',
'type' => 'color',
'section' => $section,
);
// BACKGROUND OPTIONS BELOW ONLY WORK IN BOXED MODE
$section = 'background_wide';
$sections[] = array(
'id' => $section,
'title' => __( 'Background Options Below Work For Boxed & Wide Mode', 'alchem' ),
'priority' => '11',
'description' => '',
'panel' => $panel
);
$options['alchem_content_bg_image'] = array(
'id' => 'alchem_content_bg_image',
'label' => __( 'Background Image For Main Content Area', 'alchem' ),
'description' => __( 'Upload an image to use for the backgroud.', 'alchem' ),
'default' => '',
'type' => 'upload',
'section' => $section,
);
$options['alchem_content_bg_full'] = array(
'id' => 'alchem_content_bg_full',
'label' => __( '100% Background Image', 'alchem' ),
'description' => __( 'Choose to have the background image display at 100% in width and height and scale according to the browser size.', 'alchem' ),
'default' => 'no',
'type' => 'select',
'section' => $section,
'choices' => $choices_reverse
);
$options['alchem_content_bg_repeat'] = array(
'id' => 'alchem_content_bg_repeat',
'label' => __( 'Background Repeat', 'alchem' ),
'description' => __( 'Select how the background image repeats.', 'alchem' ),
'default' => 'repeat',
'type' => 'select',
'section' => $section,
'choices' => $repeat
);
### Slider Settings ###
$section = 'slider-settings';
$sections[] = array(
'id' => $section,
'title' => __( 'Slider Settings', 'alchem' ),
'priority' => '19',
'description' => '',
);
$options['alchem_slider_autoplay'] = array(
'id' => 'alchem_slider_autoplay',
'label' => __( 'Autoplay', 'alchem' ),
'description' => __( 'Choose to autoplay the slides.', 'alchem' ),
'default' => 'yes',
'type' => 'select',
'section' => $section,
'choices' => $choices
);
$options['alchem_slideshow_speed'] = array(
'id' => 'alchem_slideshow_speed',
'label' => __( 'Slideshow Speed', 'alchem' ),
'description' => __( 'Controls the speed of slideshows for the [alchem_slider] shortcode and sliders within posts. ex: 1000 = 1 second.', 'alchem' ),
'default' => '3000',
'type' => 'text',
'section' => $section,
);
$options['alchem_display_slider_pagination'] = array(
'id' => 'alchem_display_slider_pagination',
'label' => __( 'Display Slider Pagination', 'alchem' ),
'description' => __( 'Choose to display slider pagination', 'alchem' ),
'default' => 'yes',
'type' => 'select',
'section' => $section,
'choices' => $choices
);
$options['alchem_caption_font_color'] = array(
'id' => 'alchem_caption_font_color',
'label' => __( 'Caption Font Color', 'alchem' ),
'description' => __( 'Set font color for slides caption.', 'alchem' ),
'default' => '',
'type' => 'color',
'section' => $section,
);
$options['alchem_caption_heading_color'] = array(
'id' => 'alchem_caption_heading_color',
'label' => __( 'Caption Heading h1-h6 Font Color', 'alchem' ),
'description' => __( 'Set font color for headings in slides caption.', 'alchem' ),
'default' => '',
'type' => 'color',
'section' => $section,
);
$options['alchem_caption_font_size'] = array(
'id' => 'alchem_caption_font_size',
'label' => __( 'Caption Font Size', 'alchem' ),
'description' => __( 'Set font size for slides caption.', 'alchem' ),
'default' => '14px',
'type' => 'text',
'section' => $section,
'choices' => ''
);
$options['alchem_caption_alignment'] = array(
'id' => 'alchem_caption_alignment',
'label' => __( 'Caption Alignment', 'alchem' ),
'description' => __( 'Set alignment for slides caption.', 'alchem' ),
'default' => 'left',
'type' => 'select',
'section' => $section,
'choices' => $align,
);
### 404 Page ###
$section = '404-page';
$sections[] = array(
'id' => $section,
'title' => __( '404 Page', 'alchem' ),
'priority' => '20',
'description' => '',
);
$options['alchem_title_404'] = array(
'id' => 'alchem_title_404',
'label' => __( '404 Page Title', 'alchem' ),
'description' => __( 'Insert title for 404 page.', 'alchem' ),
'default' => 'OOPS!',
'type' => 'text',
'section' => $section,
'choices' => ''
);
$options['alchem_content_404'] = array(
'id' => 'alchem_content_404',
'label' => __( '404 Page Content', 'alchem' ),
'description' => __( 'Insert content for 404 page.', 'alchem' ),
'default' => 'OOPS!
Can\'t find the page.
',
'type' => 'textarea',
'section' => $section,
'choices' => ''
);
$options['alchem_page_404_sidebar'] = array(
'id' => 'alchem_page_404_sidebar',
'label' => __( 'Sidebar Position', 'alchem' ),
'description' => __( 'Select siderbar positions for 404 page.', 'alchem' ),
'default' => 'none',
'type' => 'select',
'section' => $section,
'choices' => array(
'none' => __( 'None', 'alchem' ),
'left' => __( 'Left', 'alchem' ),
'right' => __( 'Right', 'alchem' ),
'both' => __( 'Both', 'alchem' ),
),
);
### Custom CSS ###
$section = 'custom-css';
$sections[] = array(
'id' => $section,
'title' => __( 'Custom CSS', 'alchem' ),
'priority' => '20',
'description' => '',
);
$options['alchem_custom_css'] = array(
'id' => 'alchem_custom_css',
'label' => __( 'Custom CSS', 'alchem' ),
'description' => __( 'The following css code will add to the header before the closing </head> tag.', 'alchem'),
'default' => '#custom {
}',
'type' => 'textarea',
'section' => $section,
'capability' => 'edit_theme_options',
'sanitize_callback' => 'wp_filter_nohtml_kses',
'sanitize_js_callback' => 'wp_filter_nohtml_kses'
);
$alchem_default_options = array();
foreach ( (array) $options as $option ) {
if ( ! isset( $option['id'] ) ) {
continue;
}
if ( ! isset( $option['default'] ) ) {
continue;
}
$alchem_default_options[$option['id']] = $option['default'];
}
// Adds the sections to the $options array
$options['sections'] = $sections;
// Adds the panels to the $options array
$options['panels'] = $panels;
$customizer_library = Customizer_Library::Instance();
$customizer_library->add_options( $options );
// To delete custom mods use: customizer_library_remove_theme_mods();
}
add_action( 'init', 'alchem_customizer_options' );