cat_ID] = $category->cat_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() . '/library/functions/images/'; $imagepathfolder = get_template_directory_uri() . '/library/media/images/'; $evolve_shortname = "evl"; $template_url = get_template_directory_uri(); $options = array(); // Layout $options[] = array( "name" => $evolve_shortname."-tab-1", "id" => $evolve_shortname."-tab-1", "type" => "open-tab"); // Favicon Option @since 3.1.5 $options['evl_favicon'] = array( "name" => __( 'Custom Favicon', 'evolve' ), "desc" => __( 'Upload custom favicon.', 'evolve' ), "id" => $evolve_shortname."_favicon", "type" => "upload" ); $options['evl_layout'] = array( "name" => __( 'Select a layout', 'evolve' ), "desc" => __( 'Select main content and sidebar alignment.', 'evolve' ), "id" => $evolve_shortname."_layout", "std" => "2cl", "type" => "images", "options" => array( '1c' => $imagepath . '1c.png', '2cl' => $imagepath . '2cl.png', '2cr' => $imagepath . '2cr.png', '3cm' => $imagepath . '3cm.png', '3cr' => $imagepath . '3cr.png', '3cl' => $imagepath . '3cl.png' ) ); $options['evl_width_layout'] = array( "name" => __( 'Layout Style', 'evolve' ), "desc" => __( 'Boxed version automatically enables custom background', 'evolve' ), "id" => $evolve_shortname."_width_layout", "std" => "fixed", "type" => "select", "options" => array( 'fixed' => __( 'Boxed    (default)', 'evolve' ), 'fluid' => __( 'Wide', 'evolve' ) ) ); $options['evl_width_px'] = array( "name" => __( 'Layout Width', 'evolve' ), "desc" => __( 'Select the width for your website', 'evolve' ), "id" => $evolve_shortname."_width_px", "std" => "1200", "type" => "select", "options" => array( '800' => '800px', '985' => '985px', '1200' => '1200px    '.__( '(default)', 'evolve' ), '1600' => '1600px' ) ); $options[] = array( "name" => $evolve_shortname."-tab-1", "id" => $evolve_shortname."-tab-1", "type" => "close-tab" ); // Posts $options[] = array( "name" => $evolve_shortname."-tab-2", "id" => $evolve_shortname."-tab-2", "type" => "open-tab"); $options['evl_post_layout'] = array( "name" => __( 'Blog layout', 'evolve' ), "desc" => __( 'Grid layout with 3 posts per row is recommended to use with disabled Sidebar(s)', 'evolve' ), "id" => $evolve_shortname."_post_layout", "type" => "images", "std" => "two", "options" => array( 'one' => $imagepath . 'one-post.png', 'two' => $imagepath . 'two-posts.png', 'three' => $imagepath . 'three-posts.png', )); $options['evl_excerpt_thumbnail'] = array( "name" => __( 'Enable post excerpts', 'evolve' ), "desc" => __( 'Check this box if you want to display post excerpts on one column blog layout', 'evolve' ), "id" => $evolve_shortname."_excerpt_thumbnail", "type" => "checkbox", "std" => "0"); $options['evl_featured_images'] = array( "name" => __( 'Enable featured images', 'evolve' ), "desc" => __( 'Check this box if you want to display featured images', 'evolve' ), "id" => $evolve_shortname."_featured_images", "type" => "checkbox", "std" => "1"); $options['evl_blog_featured_image'] = array( "name" => __( 'Enable featured image on Single Blog Posts', 'evolve' ), "desc" => __( 'Check this box if you want to display featured image on Single Blog Posts', 'evolve' ), "id" => $evolve_shortname."_blog_featured_image", "type" => "checkbox", "std" => "0"); $options['evl_thumbnail_default_images'] = array( "name" => __( 'Hide default thumbnail images', 'evolve' ), "desc" => __( 'Check this box if you don\'t want to display default thumbnail images', 'evolve' ), "id" => $evolve_shortname."_thumbnail_default_images", "type" => "checkbox", "std" => "0"); $options['evl_author_avatar'] = array( "name" => __( 'Enable post author avatar', 'evolve' ), "desc" => __( 'Check this box if you want to display post author avatar', 'evolve' ), "id" => $evolve_shortname."_author_avatar", "type" => "checkbox", "std" => "0"); $options['evl_posts_excerpt_title_length'] = array( "name" => __( 'Post Title Excerpt Length', 'evolve' ), "desc" => __( 'Enter number of characters for Post Title Excerpt. This works only if a grid layout is enabled.', 'evolve' ), "id" => $evolve_shortname."_posts_excerpt_title_length", "type" => "text", "std" => "40" ); $options['evl_header_meta'] = array( "name" => __( 'Post meta header placement', 'evolve' ), "desc" => __( 'Choose placement of the post meta header - Date, Author, Comments', 'evolve' ), "id" => $evolve_shortname."_header_meta", "type" => "select", "std" => "single_archive", "options" => array( 'single_archive' => __( 'Single posts + Archive pages    (default)', 'evolve' ), 'single' => __( 'Single posts', 'evolve' ), 'disable' => __( 'Disable', 'evolve' ) )); $options['evl_category_page_title'] = array( "name" => __( 'Category Page Title', 'evolve' ), "desc" => __( 'Enable page title in category pages ?', 'evolve' ), "id" => $evolve_shortname."_category_page_title", "type" => "select", "std" => "1", "options" => array( "1" => __( 'Enable', 'evolve' ), "0" => __( 'Disable', 'evolve' ) )); $options['evl_share_this'] = array( "name" => __( '\'Share This\' buttons placement', 'evolve' ), "desc" => __( 'Choose placement of the \'Share This\' buttons', 'evolve' ), "id" => $evolve_shortname."_share_this", "type" => "select", "std" => "single", "options" => array( 'single' => __( 'Single posts    (default)', 'evolve' ), 'single_archive' => __( 'Single posts + Archive pages', 'evolve' ), 'all' => __( 'All pages', 'evolve' ), 'disable' => __( 'Disable', 'evolve' ) )); $options['evl_post_links'] = array( "name" => __( 'Position of previous/next posts links', 'evolve' ), "desc" => __( 'Choose the position of the Previous/Next Post links', 'evolve' ), "id" => $evolve_shortname."_post_links", "type" => "select", "std" => "after", "options" => array( 'after' => __( 'After posts    (default)', 'evolve' ), 'before' => __( 'Before posts', 'evolve' ), 'both' => __( 'Both', 'evolve' ) )); $options['evl_similar_posts'] = array( "name" => __( 'Display Similar posts', 'evolve' ), "desc" => __( 'Choose if you want to display Similar posts in articles', 'evolve' ), "id" => $evolve_shortname."_similar_posts", "type" => "select", "std" => "disable", "options" => array( 'disable' => __( 'Disable    (default)', 'evolve' ), 'category' => __( 'Match by categories', 'evolve' ), 'tag' => __( 'Match by tags', 'evolve' ) )); $options['evl_pagination_type'] = array( "name" => __( 'Pagination Type', 'evolve' ), "desc" => __( 'Select the pagination type for the assigned blog page in Settings > Reading.', 'evolve' ), "id" => $evolve_shortname."_pagination_type", "type" => "select", "std" => "pagination", "options" => array( 'pagination' => __( 'Pagination', 'evolve' ), 'infinite' => __( 'Infinite Scroll', 'evolve' ) )); $options[] = array( "name" => $evolve_shortname."-tab-2", "id" => $evolve_shortname."-tab-2", "type" => "close-tab" ); // Subscribe buttons $options[] = array( "name" => $evolve_shortname."-tab-3", "id" => $evolve_shortname."-tab-3", "type" => "open-tab"); $options['evl_social_links'] = array( "name" => __( 'Enable Subscribe/Social links in header', 'evolve' ), "desc" => __( 'Check this box if you want to display Subscribe/Social links in header', 'evolve' ), "id" => $evolve_shortname."_social_links", "type" => "checkbox", "std" => "1"); $options['evl_social_color_scheme'] = array( "name" => __( 'Subscribe/Social icons color', 'evolve' ), "desc" => __( 'Choose the color scheme of subscribe/social icons', 'evolve' ), "id" => $evolve_shortname."_social_color_scheme", "type" => "color", "std" => "#999999" ); $options['evl_social_icons_size'] = array( "name" => __( 'Subscribe/Social icons size', 'evolve' ), "desc" => __( 'Choose the size of subscribe/social icons', 'evolve' ), "id" => $evolve_shortname."_social_icons_size", "type" => "select", "std" => "normal", "options" => array( 'normal' => __( 'Normal    (default)', 'evolve' ), 'small' => __( 'Small', 'evolve' ), 'large' => __( 'Large', 'evolve' ), 'x-large' => __( 'X-Large', 'evolve' ) )); // RSS Feed $options['evl_show_rss'] = array( "name" => __( 'Enable RSS Feed', 'evolve' ), "desc" => __( 'Check this box to enable RSS Feed', 'evolve' ), "id" => $evolve_shortname."_show_rss", "type" => "checkbox", "std" => "1"); $options['evl_rss_feed'] = array( "name" => __( 'RSS Feed', 'evolve' ), "desc" => __( 'Insert custom RSS Feed URL, e.g. http://feeds.feedburner.com/Example', 'evolve' ), "id" => $evolve_shortname."_rss_feed", "type" => "text", "class" => "hidden", "std" => ""); // Newsletter $options['evl_newsletter'] = array( "name" => __( 'Newsletter', 'evolve' ), "desc" => __( 'Insert custom newsletter URL, e.g. http://feedburner.google.com/fb/a/mailverify?uri=Example&loc=en_US', 'evolve' ), "id" => $evolve_shortname."_newsletter", "type" => "text", "std" => ""); // Facebook $options['evl_facebook'] = array( "name" => __( 'Facebook', 'evolve' ), "desc" => __( 'Insert your Facebook URL', 'evolve' ), "id" => $evolve_shortname."_facebook", "type" => "text", "std" => ""); // Twitter $options['evl_twitter_id'] = array( "name" => __( 'Twitter', 'evolve' ), "desc" => __( 'Insert your Twitter URL', 'evolve' ), "id" => $evolve_shortname."_twitter_id", "type" => "text", "std" => ""); // Instagram $options['evl_instagram'] = array( "name" => __( 'Instagram', 'evolve' ), "desc" => __( 'Insert your Instagram URL', 'evolve' ), "id" => $evolve_shortname."_instagram", "type" => "text", "std" => ""); // Skype $options['evl_skype'] = array( "name" => __( 'Skype', 'evolve' ), "desc" => __( 'Insert your Skype ID', 'evolve' ), "id" => $evolve_shortname."_skype", "type" => "text", "std" => ""); // YouTube $options['evl_youtube'] = array( "name" => __( 'YouTube', 'evolve' ), "desc" => __( 'Insert your YouTube URL', 'evolve' ), "id" => $evolve_shortname."_youtube", "type" => "text", "std" => ""); // Flickr $options['evl_flickr'] = array( "name" => __( 'Flickr', 'evolve' ), "desc" => __( 'Insert your Flickr URL', 'evolve' ), "id" => $evolve_shortname."_flickr", "type" => "text", "std" => ""); // LinkedIn $options['evl_linkedin'] = array( "name" => __( 'LinkedIn', 'evolve' ), "desc" => __( 'Insert your LinkedIn profile URL', 'evolve' ), "id" => $evolve_shortname."_linkedin", "type" => "text", "std" => ""); // Google Plus $options['evl_googleplus'] = array( "name" => __( 'Google Plus', 'evolve' ), "desc" => __( 'Insert your Google Plus profile URL', 'evolve' ), "id" => $evolve_shortname."_googleplus", "type" => "text", "std" => ""); // Pinterest $options['evl_pinterest'] = array( "name" => __( 'Pinterest', 'evolve' ), "desc" => __( 'Insert your Pinterest profile URL', 'evolve' ), "id" => $evolve_shortname."_pinterest", "type" => "text", "std" => ""); $options[] = array( "name" => $evolve_shortname."-tab-3", "id" => $evolve_shortname."-tab-3", "type" => "close-tab" ); // Header content $options[] = array( "name" => $evolve_shortname."-tab-4", "id" => $evolve_shortname."-tab-4", "type" => "open-tab"); $options['evl_header_logo'] = array( "name" => __( 'Custom logo', 'evolve' ), "desc" => __( 'Upload a logo for your theme, or specify an image URL directly.', 'evolve' ), "id" => $evolve_shortname."_header_logo", "type" => "upload", "std" => ""); $options['evl_pos_logo'] = array( "name" => __( 'Logo position', 'evolve' ), "desc" => __( 'Choose the position of your custom logo', 'evolve' ), "id" => $evolve_shortname."_pos_logo", "type" => "select", "std" => "left", "options" => array( 'left' => __( 'Left    (default)', 'evolve' ), 'center' => __( 'Center', 'evolve' ), 'right' => __( 'Right', 'evolve' ), 'disable' => __( 'Disable', 'evolve' ) )); $options['evl_blog_title'] = array( "name" => __( 'Disable Blog Title', 'evolve' ), "desc" => __( 'Check this box if you don\'t want to display title of your blog', 'evolve' ), "id" => $evolve_shortname."_blog_title", "type" => "checkbox", "std" => "0"); $options['evl_tagline_pos'] = array( "name" => __( 'Blog Tagline position', 'evolve' ), "desc" => __( 'Choose the position of blog tagline', 'evolve' ), "id" => $evolve_shortname."_tagline_pos", "type" => "select", "std" => "next", "options" => array( 'next' => __( 'Next to blog title    (default)', 'evolve' ), 'above' => __( 'Above blog title', 'evolve' ), 'under' => __( 'Under blog title', 'evolve' ), 'disable' => __( 'Disable', 'evolve' ) )); $options['evl_main_menu'] = array( "name" => __( 'Disable main menu', 'evolve' ), "desc" => __( 'Check this box if you don\'t want to display main menu', 'evolve' ), "id" => $evolve_shortname."_main_menu", "type" => "checkbox", "std" => "0"); $options['evl_main_menu_hover_effect'] = array( "name" => __( 'Disable main menu Hover Effect', 'evolve' ), "desc" => __( 'Check this box if you don\'t want to display main menu hover effect', 'evolve' ), "id" => $evolve_shortname."_main_menu_hover_effect", "type" => "checkbox", "std" => "0"); $options['evl_sticky_header'] = array( "name" => __( 'Enable sticky header', 'evolve' ), "desc" => __( 'Check this box if you want to display sticky header', 'evolve' ), "id" => $evolve_shortname."_sticky_header", "type" => "checkbox", "std" => "1"); $options['evl_searchbox'] = array( "name" => __( 'Enable searchbox in main menu', 'evolve' ), "desc" => __( 'Check this box if you want to display searchbox in main menu', 'evolve' ), "id" => $evolve_shortname."_searchbox", "type" => "checkbox", "std" => "1"); $options['evl_widgets_header'] = array( "name" => __( 'Number of widget cols in header', 'evolve' ), "desc" => __( 'Select how many header widget areas you want to display.', 'evolve' ), "id" => $evolve_shortname."_widgets_header", "type" => "images", "std" => "disable", "options" => array( 'disable' => $imagepath . '1c.png', 'one' => $imagepath . 'header-widgets-1.png', 'two' => $imagepath . 'header-widgets-2.png', 'three' => $imagepath . 'header-widgets-3.png', 'four' => $imagepath . 'header-widgets-4.png', )); $options['evl_header_widgets_placement'] = array( "name" => __( 'Header widgets placement', 'evolve' ), "desc" => __( 'Choose where to display header widgets', 'evolve' ), "id" => $evolve_shortname."_header_widgets_placement", "std" => "home", "type" => "select", "options" => array( 'home' => __( 'Home page    (default)', 'evolve' ), 'single' => __( 'Single Post', 'evolve' ), 'page' => __( 'Pages', 'evolve' ), 'all' => __( 'All pages', 'evolve' ), 'custom' => __( 'Select Per Post/Page', 'evolve' ) ) ); $options[] = array( "name" => $evolve_shortname."-tab-4", "id" => $evolve_shortname."-tab-4", "type" => "close-tab" ); // Footer content $options[] = array( "name" => $evolve_shortname."-tab-5", "id" => $evolve_shortname."-tab-5", "type" => "open-tab"); $options['evl_widgets_num'] = array( "name" => __( 'Number of widget cols in footer', 'evolve' ), "desc" => __( 'Select how many footer widget areas you want to display.', 'evolve' ), "id" => $evolve_shortname."_widgets_num", "type" => "images", "std" => "disable", "options" => array( 'disable' => $imagepath . '1c.png', 'one' => $imagepath . 'footer-widgets-1.png', 'two' => $imagepath . 'footer-widgets-2.png', 'three' => $imagepath . 'footer-widgets-3.png', 'four' => $imagepath . 'footer-widgets-4.png', )); $options['evl_footer_content'] = array( "name" => __( 'Custom footer', 'evolve' ), "desc" => __( 'Available HTML tags and attributes:

<b> <i> <a href="" title=""> <blockquote> <del datetime="">
<ins datetime=""> <img src="" alt="" /> <ul> <ol> <li>
<code> <em> <strong> <div> <span> <h1> <h2> <h3> <h4> <h5> <h6>
<table> <tbody> <tr> <td> <br /> <hr />
', 'evolve' ), "id" => $evolve_shortname."_footer_content", "type" => "textarea", "std" => "

evolve theme by Theme4Press  •  Powered by WordPress

" ); $options[] = array( "name" => $evolve_shortname."-tab-5", "id" => $evolve_shortname."-tab-5", "type" => "close-tab" ); // Typography $options[] = array( "id" => $evolve_shortname."-tab-6", "type" => "open-tab"); $options['evl_title_font'] = array( "name" => __( 'Blog Title font', 'evolve' ), "desc" => __( 'Select the typography you want for your blog title. * non web-safe font.', 'evolve' ), "id" => $evolve_shortname."_title_font", "type" => "typography", "std" => array('size' => '39px', 'face' => 'Roboto','style' => 'bold','color' => '') ); $options['evl_tagline_font'] = array( "name" => __( 'Blog tagline font', 'evolve' ), "desc" => __( 'Select the typography you want for your blog tagline. * non web-safe font.', 'evolve' ), "id" => $evolve_shortname."_tagline_font", "type" => "typography", "std" => array('size' => '13px', 'face' => 'Roboto','style' => 'normal','color' => '') ); $options['evl_menu_font'] = array( "name" => __( 'Main menu font', 'evolve' ), "desc" => __( 'Select the typography you want for your main menu. * non web-safe font.', 'evolve' ), "id" => $evolve_shortname."_menu_font", "type" => "typography", "std" => array('size' => '14px', 'face' => 'Roboto','style' => 'normal','color' => '') ); $options['evl_post_font'] = array( "name" => __( 'Post title font', 'evolve' ), "desc" => __( 'Select the typography you want for your post titles. * non web-safe font.', 'evolve' ), "id" => $evolve_shortname."_post_font", "type" => "typography", "std" => array('size' => '28px', 'face' => 'Roboto','style' => 'normal','color' => '') ); $options['evl_content_font'] = array( "name" => __( 'Content font', 'evolve' ), "desc" => __( 'Select the typography you want for your blog content. * non web-safe font.', 'evolve' ), "id" => $evolve_shortname."_content_font", "type" => "typography", "std" => array('size' => '16px', 'face' => 'Roboto','style' => 'normal','color' => '') ); $options['evl_heading_font'] = array( "name" => __( 'Headings font', 'evolve' ), "desc" => __( 'Select the typography you want for your blog headings (H1, H2, H3, H4, H5, H6). * non web-safe font.', 'evolve' ), "id" => $evolve_shortname."_heading_font", "type" => "typography", "std" => array('size' => 'none', 'face' => 'Roboto','style' => 'normal','color' => '') ); $options[] = array( "name" => $evolve_shortname."-tab-6", "id" => $evolve_shortname."-tab-6", "type" => "close-tab" ); // Extra Options $options[] = array( "id" => $evolve_shortname."-tab-7", "type" => "open-tab"); $options['evl_breadcrumbs'] = array( "name" => __( 'Enable Breadcrumbs Navigation', 'evolve' ), "desc" => __( 'Check this box if you want to enable breadcrumbs navigation', 'evolve' ), "id" => $evolve_shortname."_breadcrumbs", "type" => "checkbox", "std" => "1"); $options['evl_nav_links'] = array( "name" => __( 'Position of navigation links', 'evolve' ), "desc" => __( 'Choose the position of the Older/Newer Posts links', 'evolve' ), "id" => $evolve_shortname."_nav_links", "type" => "select", "std" => "after", "options" => array( 'after' => __( 'After posts    (default)', 'evolve' ), 'before' => __( 'Before posts', 'evolve' ), 'both' => __( 'Both', 'evolve' ) )); $options['evl_pos_button'] = array( "name" => __( 'Position of \'Back to Top\' button', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_pos_button", "type" => "select", "std" => "right", "options" => array( 'disable' => __( 'Disable', 'evolve' ), 'left' => __( 'Left', 'evolve' ), 'right' => __( 'Right    (default)', 'evolve' ), 'middle' => __( 'Middle', 'evolve' ) )); $options['evl_parallax_slider_support'] = array( "name" => __( 'Enable Parallax Slider support', 'evolve' ), "desc" => __( 'Check this box if you want to enable Parallax Slider support', 'evolve' ), "id" => $evolve_shortname."_parallax_slider_support", "type" => "checkbox", "std" => "1"); $options['evl_carousel_slider'] = array( "name" => __( 'Enable Carousel Slider support', 'evolve' ), "desc" => __( 'Check this box if you want to enable Carousel Slider support', 'evolve' ), "id" => $evolve_shortname."_carousel_slider", "type" => "checkbox", "std" => "1"); $options['evl_status_gmap'] = array( "name" => __( 'Enable Google Map Scripts', 'evolve' ), "desc" => __( 'Check this box if you want to enable Google Map Scripts', 'evolve' ), "id" => $evolve_shortname."_status_gmap", "type" => "checkbox", "std" => "1"); $options['evl_animatecss'] = array( "name" => __( 'Enable Animate.css plugin support', 'evolve' ), "desc" => __( 'Check this box if you want to enable Animate.css plugin support - (menu hover effect, featured image hover effect, button hover effect, etc.)', 'evolve' ), "id" => $evolve_shortname."_animatecss", "type" => "checkbox", "std" => "1"); $options[] = array( "name" => $evolve_shortname."-tab-7", "id" => $evolve_shortname."-tab-7", "type" => "close-tab" ); // General Styling $options[] = array( "name" => $evolve_shortname."-tab-10", "id" => $evolve_shortname."-tab-10", "type" => "open-tab"); $options['evl_content_back'] = array( "name" => __( 'Content color', 'evolve' ), "desc" => __( 'Background color of content', 'evolve' ), "id" => $evolve_shortname."_content_back", "type" => "select", "std" => "light", "options" => array( 'light' => __( 'Light', 'evolve' ), 'dark' => __( 'Dark', 'evolve' ) )); $options['evl_menu_back'] = array( "name" => __( 'Menu color', 'evolve' ), "desc" => __( 'Background color of main menu', 'evolve' ), "id" => $evolve_shortname."_menu_back", "type" => "select", "std" => "light", "options" => array( 'light' => __( 'Light', 'evolve' ), 'dark' => __( 'Dark', 'evolve' ) )); $options['evl_menu_back_color'] = array( "name" => __( 'Or custom menu color', 'evolve' ), "desc" => __( 'Custom background color of main menu. Dark menu must be enabled.', 'evolve' ), "id" => $evolve_shortname."_menu_back_color", "type" => "color", "std" => "" ); $options['evl_disable_menu_back'] = array( "name" => __( 'Disable Menu Background', 'evolve' ), "desc" => __( 'Check this box if you want to disable menu background', 'evolve' ), "id" => $evolve_shortname."_disable_menu_back", "type" => "checkbox", "std" => "0"); $options['evl_header_footer_back_color'] = array( "name" => __( 'Header and Footer color', 'evolve' ), "desc" => __( 'Custom background color of header and footer', 'evolve' ), "id" => $evolve_shortname."_header_footer_back_color", "type" => "color", "std" => "" ); $options['evl_pattern'] = array( "name" => __( 'Header and Footer pattern', 'evolve' ), "desc" => __( 'Choose the pattern for header and footer background', 'evolve' ), "id" => $evolve_shortname."_pattern", "type" => "images", "std" => "pattern_8.png", "options" => array( 'none' => $imagepathfolder . '/header-two/none.jpg', 'pattern_1.png' => $imagepathfolder . '/pattern/pattern_1_thumb.png', 'pattern_2.png' => $imagepathfolder . '/pattern/pattern_2_thumb.png', 'pattern_3.png' => $imagepathfolder . '/pattern/pattern_3_thumb.png', 'pattern_4.png' => $imagepathfolder . '/pattern/pattern_4_thumb.png', 'pattern_5.png' => $imagepathfolder . '/pattern/pattern_5_thumb.png', 'pattern_6.png' => $imagepathfolder . '/pattern/pattern_6_thumb.png', 'pattern_7.png' => $imagepathfolder . '/pattern/pattern_7_thumb.png', 'pattern_8.png' => $imagepathfolder . '/pattern/pattern_8_thumb.png' )); $options['evl_scheme_widgets'] = array( "name" => __( 'Color scheme of the slideshow and widgets area', 'evolve' ), "desc" => __( 'Choose the color scheme for the area below header menu', 'evolve' ), "id" => $evolve_shortname."_scheme_widgets", "type" => "color", "std" => "#595959" ); $options['evl_scheme_background'] = array( "name" => __( 'Background Image of the slideshow and widgets area', 'evolve' ), "desc" => __( 'Upload an image for the area below header menu', 'evolve' ), "id" => $evolve_shortname."_scheme_background", "type" => "upload", "std" => '', ); $options['evl_scheme_background_100'] = array( "name" => __( '100% Background Image', 'evolve' ), "desc" => __( 'Have background image always at 100% in width and height and scale according to the browser size.', 'evolve' ), "id" => $evolve_shortname."_scheme_background_100", "type" => "checkbox", "std" => "0"); $options['evl_scheme_background_repeat'] = array( "name" => __( 'Background Repeat', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_scheme_background_repeat", "type" => "select", "std" => "no-repeat", "options" => array( 'repeat' => __( 'repeat', 'evolve' ), 'repeat-x' => __( 'repeat-x', 'evolve' ), 'repeat-y' => __( 'repeat-y', 'evolve' ), 'no-repeat' => __( 'no-repeat    (default)', 'evolve' ) )); $options['evl_general_link'] = array( "name" => __( 'General Link Color', 'evolve' ), "desc" => __( 'Custom color for links', 'evolve' ), "id" => $evolve_shortname."_general_link", "type" => "color", "std" => "#7a9cad" ); $options['evl_button_1'] = array( "name" => __( 'Buttons 1 Color', 'evolve' ), "desc" => __( 'Custom color for buttons: Read more, Reply', 'evolve' ), "id" => $evolve_shortname."_button_1", "type" => "color", "std" => "" ); $options['evl_button_2'] = array( "name" => __( 'Buttons 2 Color', 'evolve' ), "desc" => __( 'Custom color for buttons: Post Comment, Submit', 'evolve' ), "id" => $evolve_shortname."_button_2", "type" => "color", "std" => "" ); $options['evl_widget_background'] = array( "name" => __( 'Enable Widget Title Black Background', 'evolve' ), "desc" => __( 'Check this box if you want to enable black background for widget titles', 'evolve' ), "id" => $evolve_shortname."_widget_background", "type" => "checkbox", "std" => "0"); $options['evl_widget_background_image'] = array( "name" => __( 'Disable Widget Background', 'evolve' ), "desc" => __( 'Check this box if you want to disable widget background', 'evolve' ), "id" => $evolve_shortname."_widget_background_image", "type" => "checkbox", "std" => "0"); $options[] = array( "name" => $evolve_shortname."-tab-10", "id" => $evolve_shortname."-tab-10", "type" => "close-tab" ); // Custom CSS $options[] = array( "id" => $evolve_shortname."-tab-11", "type" => "open-tab"); $options['evl_css_content'] = array( "name" => __( 'Custom CSS', 'evolve' ), "desc" => ''.__( 'For advanced users only', 'evolve' ).': '.__( 'insert custom CSS, default', 'evolve' ).' style.css '.__( 'file', 'evolve' ).'', "id" => $evolve_shortname."_css_content", "type" => "textarea", "std" => ""); $options[] = array( "name" => $evolve_shortname."-tab-11", "id" => $evolve_shortname."-tab-11", "type" => "close-tab" ); // Parallax Slider $options[] = array( "id" => $evolve_shortname."-tab-8", "type" => "open-tab"); $options['evl_parallax_slider'] = array( "name" => __( 'Parallax Slider placement', 'evolve' ), "desc" => __( 'Display Parallax Slider on the homepage, all pages or select the slider in the post/page edit mode.', 'evolve' ), "id" => $evolve_shortname."_parallax_slider", "type" => "select", "std" => "post", "options" => array( 'homepage' => __( 'Homepage only', 'evolve' ), 'post' => __( 'Manually select in a Post/Page edit mode    (default)', 'evolve' ), 'all' => __( 'All pages', 'evolve' ) )); $options['evl_parallax_speed'] = array( "name" => __( 'Parallax Speed', 'evolve' ), "desc" => __( 'Input the time between transitions (Default: 4000);', 'evolve' ), "id" => $evolve_shortname."_parallax_speed", "type" => "text", "std" => "4000"); $options['evl_parallax_slide_title_font'] = array( "name" => __( 'Slider Title font', 'evolve' ), "desc" => __( 'Select the typography you want for the slide title. * non web-safe font.', 'evolve' ), "id" => $evolve_shortname."_parallax_slide_title_font", "type" => "typography", "std" => array('size' => '36px', 'face' => 'Roboto','style' => 'normal','color' => '') ); $options['evl_parallax_slide_desc_font'] = array( "name" => __( 'Slider Description font', 'evolve' ), "desc" => __( 'Select the typography you want for the slide description. * non web-safe font.', 'evolve' ), "id" => $evolve_shortname."_parallax_slide_desc_font", "type" => "typography", "std" => array('size' => '18px', 'face' => 'Roboto','style' => 'normal','color' => '') ); $options['evl_show_slide1'] = array( "name" => __( 'Enable Slide 1', 'evolve' ), "desc" => __( 'Check this box to enable Slide 1', 'evolve' ), "id" => $evolve_shortname."_show_slide1", "type" => "checkbox", "std" => "1"); $options['evl_slide1_img'] = array( "name" => __( 'Slide 1 Image', 'evolve' ), "desc" => __( 'Upload an image for the Slide 1, or specify an image URL directly.', 'evolve' ), "id" => $evolve_shortname."_slide1_img", "type" => "upload", "class" => "hidden", "std" => $imagepathfolder . 'parallax/6.png'); $options['evl_slide1_title'] = array( "name" => __( 'Slide 1 Title', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_slide1_title", "type" => "text", "class" => "hidden", "std" => __( 'Super Awesome WP Theme', 'evolve' )); $options['evl_slide1_desc'] = array( "name" => __( 'Slide 1 Description', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_slide1_desc", "type" => "textarea", "class" => "hidden", "std" => __( 'Absolutely free of cost theme with amazing design and premium features which will impress your visitors', 'evolve' )); $options['evl_slide1_button'] = array( "name" => __( 'Slide 1 Button', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_slide1_button", "type" => "textarea", "class" => "hidden", "std" => ''.__( 'Learn more', 'evolve' ).'' ); $options['evl_show_slide2'] = array( "name" => __( 'Enable Slide 2', 'evolve' ), "desc" => __( 'Check this box to enable Slide 2', 'evolve' ), "id" => $evolve_shortname."_show_slide2", "type" => "checkbox", "std" => "1"); $options['evl_slide2_img'] = array( "name" => __( 'Slide 2 Image', 'evolve' ), "desc" => __( 'Upload an image for the Slide 2, or specify an image URL directly.', 'evolve' ), "id" => $evolve_shortname."_slide2_img", "type" => "upload", "class" => "hidden", "std" => $imagepathfolder . 'parallax/5.png'); $options['evl_slide2_title'] = array( "name" => __( 'Slide 2 Title', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_slide2_title", "type" => "text", "class" => "hidden", "std" => __( 'Bootstrap and Font Awesome Ready', 'evolve' )); $options['evl_slide2_desc'] = array( "name" => __( 'Slide 2 Description', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_slide2_desc", "type" => "textarea", "class" => "hidden", "std" => __( 'Built-in Bootstrap Elements and Font Awesome let you do amazing things with your website', 'evolve' )); $options['evl_slide2_button'] = array( "name" => __( 'Slide 2 Button', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_slide2_button", "type" => "textarea", "class" => "hidden", "std" => ''.__( 'Learn more', 'evolve' ).''); $options['evl_show_slide3'] = array( "name" => __( 'Enable Slide 3', 'evolve' ), "desc" => __( 'Check this box to enable Slide 3', 'evolve' ), "id" => $evolve_shortname."_show_slide3", "type" => "checkbox", "std" => "1"); $options['evl_slide3_img'] = array( "name" => __( 'Slide 3 Image', 'evolve' ), "desc" => __( 'Upload an image for the Slide 3, or specify an image URL directly.', 'evolve' ), "id" => $evolve_shortname."_slide3_img", "type" => "upload", "class" => "hidden", "std" => $imagepathfolder . 'parallax/4.png'); $options['evl_slide3_title'] = array( "name" => __( 'Slide 3 Title', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_slide3_title", "type" => "text", "class" => "hidden", "std" => __( 'Easy to use control panel', 'evolve' )); $options['evl_slide3_desc'] = array( "name" => __( 'Slide 3 Description', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_slide3_desc", "type" => "textarea", "class" => "hidden", "std" => __( 'Select of 500+ Google Fonts, choose layout as you need, set up your social links', 'evolve' )); $options['evl_slide3_button'] = array( "name" => __( 'Slide 3 Button', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_slide3_button", "type" => "textarea", "class" => "hidden", "std" => ''.__( 'Learn more', 'evolve' ).'' ); $options['evl_show_slide4'] = array( "name" => __( 'Enable Slide 4', 'evolve' ), "desc" => __( 'Check this box to enable Slide 4', 'evolve' ), "id" => $evolve_shortname."_show_slide4", "type" => "checkbox", "std" => "1"); $options['evl_slide4_img'] = array( "name" => __( 'Slide 4 Image', 'evolve' ), "desc" => __( 'Upload an image for the Slide 4, or specify an image URL directly.', 'evolve' ), "id" => $evolve_shortname."_slide4_img", "type" => "upload", "class" => "hidden", "std" => $imagepathfolder . 'parallax/1.png'); $options['evl_slide4_title'] = array( "name" => __( 'Slide 4 Title', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_slide4_title", "type" => "text", "class" => "hidden", "std" => __( 'Fully responsive theme', 'evolve' )); $options['evl_slide4_desc'] = array( "name" => __( 'Slide 4 Description', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_slide4_desc", "type" => "textarea", "class" => "hidden", "std" => __( 'Adaptive to any screen depending on the device being used to view the site', 'evolve' )); $options['evl_slide4_button'] = array( "name" => __( 'Slide 4 Button', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_slide4_button", "type" => "textarea", "class" => "hidden", "std" => ''.__( 'Learn more', 'evolve' ).'' ); $options['evl_show_slide5'] = array( "name" => __( 'Enable Slide 5', 'evolve' ), "desc" => __( 'Check this box to enable Slide 5', 'evolve' ), "id" => $evolve_shortname."_show_slide5", "type" => "checkbox", "std" => "1"); $options['evl_slide5_img'] = array( "name" => __( 'Slide 5 Image', 'evolve' ), "desc" => __( 'Upload an image for the Slide 5, or specify an image URL directly.', 'evolve' ), "id" => $evolve_shortname."_slide5_img", "type" => "upload", "class" => "hidden", "std" => $imagepathfolder . 'parallax/3.png'); $options['evl_slide5_title'] = array( "name" => __( 'Slide 5 Title', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_slide5_title", "type" => "text", "class" => "hidden", "std" => __( 'Unlimited color schemes', 'evolve' )); $options['evl_slide5_desc'] = array( "name" => __( 'Slide 5 Description', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_slide5_desc", "type" => "textarea", "class" => "hidden", "std" => __( 'Upload your own logo, change background color or images, select links color which you love - it\'s limitless', 'evolve' )); $options['evl_slide5_button'] = array( "name" => __( 'Slide 5 Button', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_slide5_button", "type" => "textarea", "class" => "hidden", "std" => ''.__( 'Learn more', 'evolve' ).'' ); $options[] = array( "name" => $evolve_shortname."-tab-8", "id" => $evolve_shortname."-tab-8", "type" => "close-tab" ); // Posts Slider $options[] = array( "id" => $evolve_shortname."-tab-9", "type" => "open-tab"); $options['evl_posts_slider'] = array( "name" => __( 'Posts Slider placement', 'evolve' ), "desc" => __( 'Display Posts Slider on the homepage, all pages or select the slider in the post/page edit mode.', 'evolve' ), "id" => $evolve_shortname."_posts_slider", "type" => "select", "std" => "post", "options" => array( 'homepage' => __( 'Homepage only', 'evolve' ), 'post' => __( 'Manually select in a Post/Page edit mode    (default)', 'evolve' ), 'all' => __( 'All pages', 'evolve' ) )); $options['evl_posts_number'] = array( "name" => __( 'Number of posts to display', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_posts_number", "type" => "select", "std" => "5", "options" => array( '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5    '.__( '(default)', 'evolve' ), '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10', )); $options['evl_posts_slider_content'] = array( "name" => __( 'Slideshow content', 'evolve' ), "desc" => __( 'Choose to display latest posts or posts of a category.', 'evolve' ), "id" => $evolve_shortname."_posts_slider_content", "type" => "select", "std" => "recent", "options" => array( 'recent' => __( 'Recent posts    (default)', 'evolve' ), 'category' => __( 'Posts in category', 'evolve' ) )); $options['evl_posts_slider_id'] = array( "name" => __( 'Category ID(s)', 'evolve' ), "desc" => __( 'Enter category ID(s) of posts separated by commas, e.g. 1,6,59,86. Posts in category option must be enabled', 'evolve' ), "id" => $evolve_shortname."_posts_slider_id", "type" => "text", "std" => "" ); $options['evl_carousel_speed'] = array( "name" => __( 'Slider Speed', 'evolve' ), "desc" => __( 'Input the time between transitions (Default: 3500);', 'evolve' ), "id" => $evolve_shortname."_carousel_speed", "type" => "text", "std" => "7000"); $options['evl_carousel_slide_title_font'] = array( "name" => __( 'Slider Title font', 'evolve' ), "desc" => __( 'Select the typography you want for the slide title. * non web-safe font.', 'evolve' ), "id" => $evolve_shortname."_carousel_slide_title_font", "type" => "typography", "std" => array('size' => '36px', 'face' => 'Roboto','style' => 'normal','color' => '') ); $options['evl_carousel_slide_desc_font'] = array( "name" => __( 'Slider Description font', 'evolve' ), "desc" => __( 'Select the typography you want for the slide description. * non web-safe font.', 'evolve' ), "id" => $evolve_shortname."_carousel_slide_desc_font", "type" => "typography", "std" => array('size' => '18px', 'face' => 'Roboto','style' => 'normal','color' => '') ); $options[] = array( "name" => $evolve_shortname."-tab-9", "id" => $evolve_shortname."-tab-9", "type" => "close-tab" ); // Back Up Options $options[] = array( "id" => $evolve_shortname."-tab-12", "type" => "open-tab"); $options[] = array( "name" => __( 'Backup Options', 'evolve' ), "type" => "backup", "id" => $evolve_shortname."_backup" ); $options[] = array( "name" => $evolve_shortname."-tab-12", "id" => $evolve_shortname."-tab-12", "type" => "close-tab" ); // Contact Options $options[] = array( "id" => $evolve_shortname."-tab-13", "type" => "open-tab"); $options['evl_gmap_type'] = array( "name" => __( 'Google Map Type', 'evolve' ), "desc" => __( 'Select the type of google map to show on the contact page.', 'evolve' ), "id" => $evolve_shortname."_gmap_type", "std" => "hybrid", "options" => array( 'roadmap' => __( 'roadmap', 'evolve' ), 'satellite' => __( 'satellite', 'evolve' ), 'hybrid' => __( 'hybrid (default)', 'evolve' ), 'terrain' => __( 'terrain', 'evolve' ), "type" => "select" )); $options['evl_gmap_width'] = array( "name" => __( 'Google Map Width', 'evolve' ), "desc" => __( '(in pixels or percentage, e.g.:100% or 100px)', 'evolve' ), "id" => $evolve_shortname."_gmap_width", "std" => "100%", "type" => "text"); $options['evl_gmap_height'] = array( "name" => __( 'Google Map Height', 'evolve' ), "desc" => __( '(in pixels, e.g.: 100px)', 'evolve' ), "id" => $evolve_shortname."_gmap_height", "std" => "415px", "type" => "text"); $options['evl_gmap_address'] = array( "name" => __( 'Google Map Address', 'evolve' ), "desc" => __( 'Example: 775 New York Ave, Brooklyn, Kings, New York 11203.
For multiple markers, separate the addresses with the | symbol. ex: Address 1|Address 2|Address 3.', 'evolve' ), "id" => $evolve_shortname."_gmap_address", "std" => "Via dei Fori Imperiali", "type" => "text"); $options['evl_sent_email_header'] = array( "name" => __( 'Sent Email Header (From)', 'evolve' ), "desc" => __( 'Insert name of header which will be in the header of sent email.', 'evolve' ), "id" => $evolve_shortname."_sent_email_header", "std" => get_bloginfo('name'), "type" => "text"); $options['evl_email_address'] = array( "name" => __( 'Email Address', 'evolve' ), "desc" => __( 'Enter the email adress the form will be sent to.', 'evolve' ), "id" => $evolve_shortname."_email_address", "std" => "", "type" => "text"); $options['evl_map_zoom_level'] = array( "name" => __( 'Map Zoom Level', 'evolve' ), "desc" => __( 'Higher number will be more zoomed in.', 'evolve' ), "id" => $evolve_shortname."_map_zoom_level", "std" => "18", "type" => "text"); $options['evl_map_pin'] = array( "name" => __( 'Hide Address Pin', 'evolve' ), "desc" => __( 'Check the box to hide the address pin.', 'evolve' ), "id" => $evolve_shortname."_map_pin", "std" => 0, "type" => "checkbox"); $options['evl_map_popup'] = array( "name" => __( 'Show Map Popup On Click', 'evolve' ), "desc" => __( 'Check the box to keep the popup graphic with address info hidden when the google map loads. It will only show when the pin on the map is clicked.', 'evolve' ), "id" => $evolve_shortname."_map_popup", "std" => 0, "type" => "checkbox"); $options['evl_map_scrollwheel'] = array( "name" => __( 'Disable Map Scrollwheel', 'evolve' ), "desc" => __( 'Check the box to disable scrollwheel on google maps.', 'evolve' ), "id" => $evolve_shortname."_map_scrollwheel", "std" => 0, "type" => "checkbox"); $options['evl_map_scale'] = array( "name" => __( 'Disable Map Scale', 'evolve' ), "desc" => __( 'Check the box to disable scale on google maps.', 'evolve' ), "id" => $evolve_shortname."_map_scale", "std" => 0, "type" => "checkbox"); $options['evl_map_zoomcontrol'] = array( "name" => __( 'Disable Map Zoom & Pan Control Icons', 'evolve' ), "desc" => __( 'Check the box to disable zoom control icon and pan control icon on google maps.', 'evolve' ), "id" => $evolve_shortname."_map_zoomcontrol", "std" => 0, "type" => "checkbox"); if (!function_exists('recaptcha_get_html')) { $options[] = array( "name" => __( 'Required Captcha Plugin', 'evolve' ), "desc" => __( 'Please install', 'evolve' ). " WP-reCAPTCHA ". __(' plugin to enable spam protection on the contact page.', 'evolve' ), "id" => $evolve_shortname."_captcha_plugin", "std" => 0, "type" => "info"); } $options[] = array( "name" => __( 'Recaptcha Public Key', 'evolve' ), "desc" => __( 'Follow the steps in our docs to get your key', 'evolve' ), "id" => $evolve_shortname."_recaptcha_public", "std" => "", "type" => "text"); $options[] = array( "name" => __( 'Recaptcha Private Key', 'evolve' ), "desc" => __( 'Follow the steps in our docs to get your key', 'evolve' ), "id" => $evolve_shortname."_recaptcha_private", "std" => "", "type" => "text"); $options[] = array( "name" => $evolve_shortname."-tab-13", "id" => $evolve_shortname."-tab-13", "type" => "close-tab" ); // Bootstrap Slider $options[] = array( "id" => $evolve_shortname."-tab-14", "type" => "open-tab"); $options['evl_bootstrap_slider'] = array( "name" => __( 'Bootstrap Slider placement', 'evolve' ), "desc" => __( 'Display Bootstrap Slider on the homepage, all pages or select the slider in the post/page edit mode.', 'evolve' ), "id" => $evolve_shortname."_bootstrap_slider", "type" => "select", "std" => "homepage", "options" => array( 'homepage' => __( 'Homepage only    (default)', 'evolve' ), 'post' => __( 'Manually select in a Post/Page edit mode', 'evolve' ), 'all' => __( 'All pages', 'evolve' ) )); $options['evl_bootstrap_speed'] = array( "name" => __( 'Speed', 'evolve' ), "desc" => __( 'Input the time between transitions (Default: 7000);', 'evolve' ), "id" => $evolve_shortname."_bootstrap_speed", "type" => "text", "std" => "7000"); $options['evl_bootstrap_slide_title_font'] = array( "name" => __( 'Slider Title font', 'evolve' ), "desc" => __( 'Select the typography you want for the slide title. * non web-safe font.', 'evolve' ), "id" => $evolve_shortname."_bootstrap_slide_title_font", "type" => "typography", "std" => array('size' => '36px', 'face' => 'Roboto','style' => 'normal','color' => '') ); $options['evl_bootstrap_slide_desc_font'] = array( "name" => __( 'Slider Description font', 'evolve' ), "desc" => __( 'Select the typography you want for the slide description. * non web-safe font.', 'evolve' ), "id" => $evolve_shortname."_bootstrap_slide_desc_font", "type" => "typography", "std" => array('size' => '18px', 'face' => 'Roboto','style' => 'normal','color' => '') ); $options['evl_bootstrap_slide1'] = array( "name" => __( 'Enable Slide 1', 'evolve' ), "desc" => __( 'Check this box to enable Slide 1', 'evolve' ), "id" => $evolve_shortname."_bootstrap_slide1", "type" => "checkbox", "std" => "1"); $options['evl_bootstrap_slide1_img'] = array( "name" => __( 'Slide 1 Image', 'evolve' ), "desc" => __( 'Upload an image for the Slide 1, or specify an image URL directly.', 'evolve' ), "id" => $evolve_shortname."_bootstrap_slide1_img", "type" => "upload", "class" => "hidden", "std" => $imagepathfolder . 'bootstrap-slider/1.jpg'); $options['evl_bootstrap_slide1_title'] = array( "name" => __( 'Slide 1 Title', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_bootstrap_slide1_title", "type" => "text", "class" => "hidden", "std" => __( 'Super Awesome WP Theme', 'evolve' )); $options['evl_bootstrap_slide1_desc'] = array( "name" => __( 'Slide 1 Description', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_bootstrap_slide1_desc", "type" => "textarea", "class" => "hidden", "std" => __( 'Absolutely free of cost theme with amazing design and premium features which will impress your visitors', 'evolve' )); $options['evl_bootstrap_slide1_button'] = array( "name" => __( 'Slide 1 Button', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_bootstrap_slide1_button", "type" => "textarea", "class" => "hidden", "std" => ''.__( 'Learn more', 'evolve' ).'' ); $options['evl_bootstrap_slide2'] = array( "name" => __( 'Enable Slide 2', 'evolve' ), "desc" => __( 'Check this box to enable Slide 2', 'evolve' ), "id" => $evolve_shortname."_bootstrap_slide2", "type" => "checkbox", "std" => "1"); $options['evl_bootstrap_slide2_img'] = array( "name" => __( 'Slide 2 Image', 'evolve' ), "desc" => __( 'Upload an image for the Slide 2, or specify an image URL directly.', 'evolve' ), "id" => $evolve_shortname."_bootstrap_slide2_img", "type" => "upload", "class" => "hidden", "std" => $imagepathfolder . 'bootstrap-slider/2.jpg'); $options['evl_bootstrap_slide2_title'] = array( "name" => __( 'Slide 2 Title', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_bootstrap_slide2_title", "type" => "text", "class" => "hidden", "std" => __( 'Bootstrap and Font Awesome Ready', 'evolve' )); $options['evl_bootstrap_slide2_desc'] = array( "name" => __( 'Slide 2 Description', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_bootstrap_slide2_desc", "type" => "textarea", "class" => "hidden", "std" => __( 'Built-in Bootstrap Elements and Font Awesome let you do amazing things with your website', 'evolve' )); $options['evl_bootstrap_slide2_button'] = array( "name" => __( 'Slide 2 Button', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_bootstrap_slide2_button", "type" => "textarea", "class" => "hidden", "std" => ''.__( 'Learn more', 'evolve' ).'' ); $options['evl_bootstrap_slide3'] = array( "name" => __( 'Enable Slide 3', 'evolve' ), "desc" => __( 'Check this box to enable Slide 3', 'evolve' ), "id" => $evolve_shortname."_bootstrap_slide3", "type" => "checkbox", "std" => "1"); $options['evl_bootstrap_slide3_img'] = array( "name" => __( 'Slide 3 Image', 'evolve' ), "desc" => __( 'Upload an image for the Slide 3, or specify an image URL directly.', 'evolve' ), "id" => $evolve_shortname."_bootstrap_slide3_img", "type" => "upload", "class" => "hidden", "std" => $imagepathfolder . 'bootstrap-slider/3.jpg'); $options['evl_bootstrap_slide3_title'] = array( "name" => __( 'Slide 3 Title', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_bootstrap_slide3_title", "type" => "text", "class" => "hidden", "std" => __( 'Easy to use control panel', 'evolve' )); $options['evl_bootstrap_slide3_desc'] = array( "name" => __( 'Slide 3 Description', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_bootstrap_slide3_desc", "type" => "textarea", "class" => "hidden", "std" => __( 'Select of 500+ Google Fonts, choose layout as you need, set up your social links', 'evolve' )); $options['evl_bootstrap_slide3_button'] = array( "name" => __( 'Slide 3 Button', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_bootstrap_slide3_button", "type" => "textarea", "class" => "hidden", "std" => ''.__( 'Learn more', 'evolve' ).'' ); $options['evl_bootstrap_slide4'] = array( "name" => __( 'Enable Slide 4', 'evolve' ), "desc" => __( 'Check this box to enable Slide 4', 'evolve' ), "id" => $evolve_shortname."_bootstrap_slide4", "type" => "checkbox", "std" => "1"); $options['evl_bootstrap_slide4_img'] = array( "name" => __( 'Slide 4 Image', 'evolve' ), "desc" => __( 'Upload an image for the Slide 4, or specify an image URL directly.', 'evolve' ), "id" => $evolve_shortname."_bootstrap_slide4_img", "type" => "upload", "class" => "hidden", "std" => $imagepathfolder . 'bootstrap-slider/4.jpg'); $options['evl_bootstrap_slide4_title'] = array( "name" => __( 'Slide 4 Title', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_bootstrap_slide4_title", "type" => "text", "class" => "hidden", "std" => __( 'Fully responsive theme', 'evolve' )); $options['evl_bootstrap_slide4_desc'] = array( "name" => __( 'Slide 4 Description', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_bootstrap_slide4_desc", "type" => "textarea", "class" => "hidden", "std" => __( 'Adaptive to any screen depending on the device being used to view the site', 'evolve' )); $options['evl_bootstrap_slide4_button'] = array( "name" => __( 'Slide 4 Button', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_bootstrap_slide4_button", "type" => "textarea", "class" => "hidden", "std" => ''.__( 'Learn more', 'evolve' ).'' ); $options['evl_bootstrap_slide5'] = array( "name" => __( 'Enable Slide 5', 'evolve' ), "desc" => __( 'Check this box to enable Slide 5', 'evolve' ), "id" => $evolve_shortname."_bootstrap_slide5", "type" => "checkbox", "std" => "1"); $options['evl_bootstrap_slide5_img'] = array( "name" => __( 'Slide 5 Image', 'evolve' ), "desc" => __( 'Upload an image for the Slide 5, or specify an image URL directly.', 'evolve' ), "id" => $evolve_shortname."_bootstrap_slide5_img", "type" => "upload", "class" => "hidden", "std" => $imagepathfolder . 'bootstrap-slider/5.jpg'); $options['evl_bootstrap_slide5_title'] = array( "name" => __( 'Slide 5 Title', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_bootstrap_slide5_title", "type" => "text", "class" => "hidden", "std" => __( 'Unlimited color schemes', 'evolve' )); $options['evl_bootstrap_slide5_desc'] = array( "name" => __( 'Slide 5 Description', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_bootstrap_slide5_desc", "type" => "textarea", "class" => "hidden", "std" => __( 'Upload your own logo, change background color or images, select links color which you love - it\'s limitless', 'evolve' )); $options['evl_bootstrap_slide5_button'] = array( "name" => __( 'Slide 5 Button', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_bootstrap_slide5_button", "type" => "textarea", "class" => "hidden", "std" => ''.__( 'Learn more', 'evolve' ).'', 'evolve' ); $options[] = array( "name" => $evolve_shortname."-tab-14", "id" => $evolve_shortname."-tab-14", "type" => "close-tab" ); // Front Page Content Boxes $options[] = array( "id" => $evolve_shortname."-tab-15", "type" => "open-tab"); $options['evl_content_boxes'] = array( "name" => __( 'Enable Front Page Content Boxes', 'evolve' ), "desc" => __( 'Check this box to enable Front Page Content Boxes', 'evolve' ), "id" => $evolve_shortname."_content_boxes", "type" => "checkbox", "std" => "1"); // Frontpage Content Box 1 $options['evl_content_box1_enable'] = array( "name" => __( 'Enable Content Box 1 ?', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box1_enable", "type" => "checkbox", "std" => "1"); $options['evl_content_box1_title'] = array( "name" => __( 'Content Box 1 Title', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box1_title", "type" => "text", "std" => __( 'Beautifully Simple', 'evolve' )); $options['evl_content_box1_icon'] = array( "name" => __( 'Content Box 1 Icon (FontAwesome)', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box1_icon", "type" => "text", "std" => "fa-cube"); $options['evl_content_box1_icon_color'] = array( "name" => __( 'Content Box 1 Icon Color', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box1_icon_color", "type" => "color", "std" => "#faa982"); $options['evl_content_box1_desc'] = array( "name" => __( 'Content Box 1 Description', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box1_desc", "type" => "textarea", "std" => __( 'Clean and modern theme with smooth and pixel perfect design focused on details', 'evolve' )); $options['evl_content_box1_button'] = array( "name" => __( 'Content Box 1 Button', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box1_button", "type" => "textarea", "std" => __( 'Learn more', 'evolve' )); // Frontpage Content Box 2 $options['evl_content_box2_enable'] = array( "name" => __( 'Enable Content Box 2 ?', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box2_enable", "type" => "checkbox", "std" => "1"); $options['evl_content_box2_title'] = array( "name" => __( 'Content Box 2 Title', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box2_title", "type" => "text", "std" => __( 'Easy Customizable', 'evolve' )); $options['evl_content_box2_icon'] = array( "name" => __( 'Content Box 2 Icon (FontAwesome)', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box2_icon", "type" => "text", "std" => "fa-circle-o-notch"); $options['evl_content_box2_icon_color'] = array( "name" => __( 'Content Box 2 Icon Color', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box2_icon_color", "type" => "color", "std" => "#8fb859"); $options['evl_content_box2_desc'] = array( "name" => __( 'Content Box 2 Description', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box2_desc", "type" => "textarea", "std" => __( 'Over a hundred theme options ready to make your website unique', 'evolve' )); $options['evl_content_box2_button'] = array( "name" => __( 'Content Box 2 Button', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box2_button", "type" => "textarea", "std" => __( 'Learn more', 'evolve' )); // Frontpage Content Box 3 $options['evl_content_box3_enable'] = array( "name" => __( 'Enable Content Box 3 ?', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box3_enable", "type" => "checkbox", "std" => "1"); $options['evl_content_box3_title'] = array( "name" => __( 'Content Box 3 Title', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box3_title", "type" => "text", "std" => __( 'Contact Form Ready', 'evolve' )); $options['evl_content_box3_icon'] = array( "name" => __( 'Content Box 3 Icon (FontAwesome)', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box3_icon", "type" => "text", "std" => "fa-send"); $options['evl_content_box3_icon_color'] = array( "name" => __( 'Content Box 3 Icon Color', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box3_icon_color", "type" => "color", "std" => "#78665e"); $options['evl_content_box3_desc'] = array( "name" => __( 'Content Box 3 Description', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box3_desc", "type" => "textarea", "std" => __( 'Built-In Contact Page with Google Maps is a standard for this theme', 'evolve' )); $options['evl_content_box3_button'] = array( "name" => __( 'Content Box 3 Button', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box3_button", "type" => "textarea", "std" => __( 'Learn more', 'evolve' )); // Frontpage Content Box 4 $options['evl_content_box4_enable'] = array( "name" => __( 'Enable Content Box 4 ?', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box4_enable", "type" => "checkbox", "std" => "1"); $options['evl_content_box4_title'] = array( "name" => __( 'Content Box 4 Title', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box4_title", "type" => "text", "std" => __( 'Responsive Blog', 'evolve' )); $options['evl_content_box4_icon'] = array( "name" => __( 'Content Box 4 Icon (FontAwesome)', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box4_icon", "type" => "text", "std" => "fa-tablet"); $options['evl_content_box4_icon_color'] = array( "name" => __( 'Content Box 4 Icon Color', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box4_icon_color", "type" => "color", "std" => "#82a4fa"); $options['evl_content_box4_desc'] = array( "name" => __( 'Content Box 4 Description', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box4_desc", "type" => "textarea", "std" => __( 'Up to 3 Blog Layouts, Bootstrap 3 ready, responsive on all media devices', 'evolve' )); $options['evl_content_box4_button'] = array( "name" => __( 'Content Box 4 Button', 'evolve' ), "desc" => "", "id" => $evolve_shortname."_content_box4_button", "type" => "textarea", "std" => __( 'Learn more', 'evolve' )); $options[] = array( "name" => $evolve_shortname."-tab-15", "id" => $evolve_shortname."-tab-15", "type" => "close-tab" ); return $options; } /** * Front End Customizer * * WordPress 3.4 Required */ add_action( 'customize_register', 'evolve_customizer_register' ); function evolve_customizer_register( $wp_customize ) { /** * This is optional, but if you want to reuse some of the defaults * or values you already have built in the options panel, you * can load them into $options for easy reference */ get_template_part('library/functions/customizer-class') ; $customizer_array = array( 'layout' => array( 'name' => __( 'General', 'evolve'), 'priority' => 101, 'settings' => array( 'evl_favicon', 'evl_layout', 'evl_width_layout', 'evl_width_px', ) ), 'header' => array( 'name' => __( 'Header', 'evolve'), 'priority' => 102, 'settings' => array( 'evl_header_logo', 'evl_pos_logo', 'evl_blog_title', 'evl_tagline_pos', 'evl_main_menu', 'evl_sticky_header', 'evl_searchbox', 'evl_widgets_header', 'evl_header_widgets_placement', ) ), 'footer' => array( 'name' => __( 'Footer', 'evolve'), 'priority' => 103, 'settings' => array( 'evl_widgets_num', 'evl_footer_content', ) ), 'typography' => array( 'name' => __( 'Typography', 'evolve'), 'priority' => 104, 'settings' => array( 'evl_title_font', 'evl_tagline_font', 'evl_menu_font', 'evl_post_font', 'evl_content_font', 'evl_heading_font', ) ), 'styling' => array( 'name' => __( 'Styling', 'evolve'), 'priority' => 105, 'settings' => array( 'evl_content_back', 'evl_menu_back', 'evl_menu_back_color', 'evl_disable_menu_back', 'evl_header_footer_back_color', 'evl_pattern', 'evl_scheme_widgets', 'evl_scheme_background', 'evl_scheme_background_100', 'evl_scheme_background_repeat', 'evl_general_link', 'evl_button_1', 'evl_button_2', 'evl_widget_background', 'evl_widget_background_image', ) ), 'blog' => array( 'name' => __( 'Blog', 'evolve'), 'priority' => 106, 'settings' => array( 'evl_post_layout', 'evl_excerpt_thumbnail', 'evl_featured_images', 'evl_blog_featured_image', 'evl_author_avatar', 'evl_header_meta', 'evl_category_page_title', 'evl_posts_excerpt_title_length', 'evl_share_this', 'evl_post_links', 'evl_similar_posts', 'evl_pagination_type' ) ), 'social' => array( 'name' => __( 'Social Media Links', 'evolve'), 'priority' => 107, 'settings' => array( 'evl_social_links', 'evl_social_color_scheme', 'evl_social_icons_size', 'evl_show_rss', 'evl_rss_feed', 'evl_newsletter', 'evl_facebook', 'evl_twitter_id', 'evl_instagram', 'evl_skype', 'evl_youtube', 'evl_flickr', 'evl_linkedin', 'evl_googleplus', 'evl_pinterest', ) ), 'boxes' => array( 'name' => __( 'Front Page Content Boxes', 'evolve'), 'priority' => 108, 'settings' => array( 'evl_content_boxes', 'evl_content_box1_title', 'evl_content_box1_icon', 'evl_content_box1_icon_color', 'evl_content_box1_desc', 'evl_content_box1_button', 'evl_content_box2_title', 'evl_content_box2_icon', 'evl_content_box2_icon_color', 'evl_content_box2_desc', 'evl_content_box2_button', 'evl_content_box3_title', 'evl_content_box3_icon', 'evl_content_box3_icon_color', 'evl_content_box3_desc', 'evl_content_box3_button', 'evl_content_box4_title', 'evl_content_box4_icon', 'evl_content_box4_icon_color', 'evl_content_box4_desc', 'evl_content_box4_button', ) ), 'bootstrap' => array( 'name' => __( 'Bootstrap Slider', 'evolve'), 'priority' => 109, 'settings' => array( 'evl_bootstrap_slider', 'evl_bootstrap_speed', 'evl_bootstrap_slide_title_font', 'evl_bootstrap_slide_desc_font', 'evl_bootstrap_slide1', 'evl_bootstrap_slide1_img', 'evl_bootstrap_slide1_title', 'evl_bootstrap_slide1_desc', 'evl_bootstrap_slide1_button', 'evl_bootstrap_slide2', 'evl_bootstrap_slide2_img', 'evl_bootstrap_slide2_title', 'evl_bootstrap_slide2_desc', 'evl_bootstrap_slide2_button', 'evl_bootstrap_slide3', 'evl_bootstrap_slide3_img', 'evl_bootstrap_slide3_title', 'evl_bootstrap_slide3_desc', 'evl_bootstrap_slide3_button', 'evl_bootstrap_slide4', 'evl_bootstrap_slide4_img', 'evl_bootstrap_slide4_title', 'evl_bootstrap_slide4_desc', 'evl_bootstrap_slide4_button', 'evl_bootstrap_slide5', 'evl_bootstrap_slide5_img', 'evl_bootstrap_slide5_title', 'evl_bootstrap_slide5_desc', 'evl_bootstrap_slide5_button', ) ), 'parallax' => array( 'name' => __( 'Parallax Slider', 'evolve'), 'priority' => 110, 'settings' => array( 'evl_parallax_slider', 'evl_parallax_speed', 'evl_parallax_slide_title_font', 'evl_parallax_slide_desc_font', 'evl_show_slide1', 'evl_slide1_img', 'evl_slide1_title', 'evl_slide1_desc', 'evl_slide1_button', 'evl_show_slide2', 'evl_slide2_img', 'evl_slide2_title', 'evl_slide2_desc', 'evl_slide2_button', 'evl_show_slide3', 'evl_slide3_img', 'evl_slide3_title', 'evl_slide3_desc', 'evl_slide3_button', 'evl_show_slide4', 'evl_slide4_img', 'evl_slide4_title', 'evl_slide4_desc', 'evl_slide4_button', 'evl_show_slide5', 'evl_slide5_img', 'evl_slide5_title', 'evl_slide5_desc', 'evl_slide5_button', ) ), 'posts' => array( 'name' => __( 'Posts Slider', 'evolve'), 'priority' => 111, 'settings' => array( 'evl_posts_slider', 'evl_posts_number', 'evl_posts_slider_content', 'evl_posts_slider_id', 'evl_carousel_speed', 'evl_carousel_slide_title_font', 'evl_carousel_slide_desc_font', ) ), 'contact' => array( 'name' => __( 'Contact', 'evolve'), 'priority' => 112, 'settings' => array( 'evl_gmap_type', 'evl_gmap_width', 'evl_gmap_height', 'evl_gmap_address', 'evl_sent_email_header', 'evl_email_address', 'evl_map_zoom_level', 'evl_map_pin', 'evl_map_popup', 'evl_map_scrollwheel', 'evl_map_scale', 'evl_map_zoomcontrol', ) ), 'extra' => array( 'name' => __( 'Extra', 'evolve'), 'priority' => 113, 'settings' => array( 'evl_breadcrumbs', 'evl_nav_links', 'evl_pos_button', 'evl_parallax_slider_support', 'evl_carousel_slider', 'evl_status_gmap', 'evl_animatecss', ) ), 'css' => array( 'name' => __( 'Custom CSS', 'evolve'), 'priority' => 114, 'settings' => array( 'evl_css_content', ) ), ); global $my_image_controls; $my_image_controls = array(); $options = evolve_options(); $i = 0; foreach ( $customizer_array as $name => $val ) { $wp_customize->add_section( "evolve-theme_$name", array( 'title' => $val['name'], 'priority' => $val['priority'] ) ); foreach ( $val['settings'] as $setting ) { $options[$setting]['std'] = isset( $options[$setting]['std'] ) ? $options[$setting]['std'] : ''; $options[$setting]['type'] = isset( $options[$setting]['type'] ) ? $options[$setting]['type'] : ''; //evolve_sanitize_typography if ( $options[$setting]['type'] == 'typography' ){ $wp_customize->add_setting( "evolve-theme[$setting]", array( 'default' => $options[$setting]['std'], 'type' => 'option', 'sanitize_callback' => 'evolve_sanitize_typography', ) ); } else{ /* $wp_customize->add_setting( "evolve-theme[$setting]", array( 'default' => $options[$setting]['std'], 'type' => 'option' ) ); */ //sanitize everything else switch($options[$setting]['id']) { /* image sanitization start */ case "evl_favicon": case "evl_header_logo": case "evl_scheme_background": case "evl_bootstrap_slide1_img": case "evl_bootstrap_slide2_img": case "evl_bootstrap_slide3_img": case "evl_bootstrap_slide4_img": case "evl_bootstrap_slide5_img": case "evl_slide1_img": case "evl_slide2_img": case "evl_slide3_img": case "evl_slide4_img": case "evl_slide5_img": case "evl_scheme_background": $wp_customize->add_setting( "evolve-theme[$setting]", array( 'default' => $options[$setting]['std'], 'type' => 'option', 'sanitize_callback' => 'evolve_sanitize_upload' )); break; // image sanitization end // hex color sanitization start case "evl_menu_back_color": case "evl_header_footer_back_color": case "evl_scheme_widgets": case "evl_general_link": case "evl_button_1": case "evl_button_2": case "evl_social_color_scheme": case "evl_content_box1_icon_color": case "evl_content_box2_icon_color": case "evl_content_box3_icon_color": case "evl_content_box4_icon_color": $wp_customize->add_setting( "evolve-theme[$setting]", array( 'default' => $options[$setting]['std'], 'type' => 'option', 'sanitize_callback' => 'evolve_sanitize_hex' )); break; // hex color sanitization end // select sanitization start case "evl_layout": case "evl_width_layout": case "evl_post_links": case "evl_pos_logo": case "evl_tagline_pos": case "evl_widgets_header": case "evl_header_widgets_placement": case "evl_widgets_num": case "evl_content_back": case "evl_menu_back": case "evl_pattern": case "evl_scheme_background_repeat": case "evl_post_layout": case "evl_header_meta": case "evl_share_this": case "evl_similar_posts": case "evl_pagination_type": case "evl_social_icons_size": case "evl_bootstrap_slider": case "evl_parallax_slider": case "evl_posts_slider": case "evl_posts_number": case "evl_posts_slider_content": case "evl_gmap_type": case "evl_nav_links": case "evl_pos_button": $wp_customize->add_setting( "evolve-theme[$setting]", array( 'default' => $options[$setting]['std'], 'type' => 'option', 'sanitize_callback' => 'evolve_sanitize_choices' )); break; // select sanitization end // numerical text sanitization start case "evl_bootstrap_speed": case "evl_parallax_speed": case "evl_carousel_speed": case "evl_map_zoom_level": case "evl_width_px": case "evl_posts_excerpt_title_length": case "evl_category_page_title": $wp_customize->add_setting( "evolve-theme[$setting]", array( 'default' => $options[$setting]['std'], 'type' => 'option', 'sanitize_callback' => 'evolve_sanitize_numbers' )); break; // numerical text sanitization end // pixel sanitization start case "evl_gmap_width": case "evl_gmap_height": $wp_customize->add_setting( "evolve-theme[$setting]", array( 'default' => $options[$setting]['std'], 'type' => 'option', 'sanitize_callback' => 'evolve_sanitize_pixel' )); break; // pixel sanitization end // text url sanitization start case "evl_newsletter": case "evl_facebook": case "evl_rss_feed": case "evl_twitter_id": case "evl_instagram": case "evl_skype": case "evl_youtube": case "evl_flickr": case "evl_linkedin": case "evl_googleplus": case "evl_pinterest": $wp_customize->add_setting( "evolve-theme[$setting]", array( 'default' => $options[$setting]['std'], 'type' => 'option', 'sanitize_callback' => 'esc_url_raw' )); break; // text url sanitization end // text field sanitization start case "evl_content_box1_title": case "evl_bootstrap_slide1_title": case "evl_bootstrap_slide2_title": case "evl_bootstrap_slide3_title": case "evl_bootstrap_slide4_title": case "evl_bootstrap_slide5_title": case "evl_content_box2_title": case "evl_content_box3_title": case "evl_content_box4_title": case "evl_slide1_title": case "evl_slide2_title": case "evl_slide3_title": case "evl_slide4_title": case "evl_slide5_title": case "evl_posts_slider_id": case "evl_gmap_address": case "evl_sent_email_header": $wp_customize->add_setting( "evolve-theme[$setting]", array( 'default' => $options[$setting]['std'], 'type' => 'option', 'sanitize_callback' => 'evolve_sanitize_text_field' )); break; // text field sanitization end // fontawesome fields sanitization start case "evl_content_box1_icon": case "evl_content_box2_icon": case "evl_content_box3_icon": case "evl_content_box4_icon": $wp_customize->add_setting( "evolve-theme[$setting]", array( 'default' => $options[$setting]['std'], 'type' => 'option', 'sanitize_callback' => 'evolve_sanitize_text_field' )); break; // fontawesome fields sanitization end // text email field sanitization start case "evl_email_address": $wp_customize->add_setting( "evolve-theme[$setting]", array( 'default' => $options[$setting]['std'], 'type' => 'option', 'sanitize_callback' => 'sanitize_email' )); break; // text email field sanitization end // textarea sanitization start case "evl_footer_content": case "evl_content_box1_desc": case "evl_content_box1_button": case "evl_content_box2_desc": case "evl_content_box2_button": case "evl_content_box3_desc": case "evl_content_box3_button": case "evl_content_box4_desc": case "evl_content_box4_button": case "evl_bootstrap_slide1_desc": case "evl_bootstrap_slide1_button": case "evl_bootstrap_slide2_desc": case "evl_bootstrap_slide2_button": case "evl_bootstrap_slide3_desc": case "evl_bootstrap_slide3_button": case "evl_bootstrap_slide4_desc": case "evl_bootstrap_slide4_button": case "evl_bootstrap_slide5_desc": case "evl_bootstrap_slide5_button": case "evl_slide1_desc": case "evl_slide1_button": case "evl_slide2_desc": case "evl_slide2_button": case "evl_slide3_desc": case "evl_slide3_button": case "evl_slide4_desc": case "evl_slide4_button": case "evl_slide5_desc": case "evl_slide5_button": case "evl_css_content": $wp_customize->add_setting( "evolve-theme[$setting]", array( 'default' => $options[$setting]['std'], 'type' => 'option', 'sanitize_callback' => 'evolve_sanitize_textarea' )); break; // textarea sanitization end // checkbox sanitization start case "evl_blog_title": case "evl_main_menu": case "evl_disable_menu_back": case "evl_scheme_background_100": case "evl_widget_background": case "evl_widget_background_image": case "evl_pagination_type": case "evl_excerpt_thumbnail": case "evl_author_avatar": case "evl_map_pin": case "evl_map_popup": case "evl_map_scrollwheel": case "evl_map_scale": case "evl_map_zoomcontrol": // Following has 1 by default for the checkbox case "evl_sticky_header": case "evl_searchbox": case "evl_featured_images": case "evl_blog_featured_image": case "evl_social_links": case "evl_show_rss": case "evl_content_boxes": case "evl_bootstrap_slide1": case "evl_bootstrap_slide2": case "evl_bootstrap_slide3": case "evl_bootstrap_slide4": case "evl_bootstrap_slide5": case "evl_show_slide1": case "evl_show_slide2": case "evl_show_slide3": case "evl_show_slide4": case "evl_show_slide5": case "evl_breadcrumbs": case "evl_parallax_slider_support": case "evl_carousel_slider": case "evl_status_gmap": case "evl_animatecss": $wp_customize->add_setting( "evolve-theme[$setting]", array( 'default' => $options[$setting]['std'], 'type' => 'option', 'sanitize_callback' => 'evolve_sanitize_checkbox' )); break; // checkbox sanitization end } } if ( $options[$setting]['type'] == 'radio' || $options[$setting]['type'] == 'select' ) { $wp_customize->add_control( "evolve-theme_$setting", array( 'label' => $options[$setting]['name'], 'section' => "evolve-theme_$name", 'settings' => "evolve-theme[$setting]", 'type' => $options[$setting]['type'], 'choices' => $options[$setting]['options'], 'priority' => $i ) ); } elseif ( $options[$setting]['type'] == 'text' || $options[$setting]['type'] == 'checkbox' ) { $wp_customize->add_control( "evolve-theme_$setting", array( 'label' => $options[$setting]['name'], 'section' => "evolve-theme_$name", 'settings' => "evolve-theme[$setting]", 'type' => $options[$setting]['type'], 'priority' => $i ) ); } elseif ( $options[$setting]['type'] == 'color' ) { $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, "evolve-theme_$setting", array( 'label' => $options[$setting]['name'], 'section' => "evolve-theme_$name", 'settings' => "evolve-theme[$setting]", 'type' => $options[$setting]['type'], 'priority' => $i ) ) ); /******************************************** * * Typography add new by ddo * * code cho class evolve_Customize_Typography_Control dat o : * library/functions/customizer-class.php * *********************************************/ } elseif ( $options[$setting]['type'] == 'typography' ) { $wp_customize->add_control( new evolve_Customize_Typography_Control( $wp_customize, "evolve-theme_$setting", array( 'label' => $options[$setting]['name'], 'section' => "evolve-theme_$name", 'settings' => "evolve-theme[$setting]", 'priority' => $i ) ) ); } elseif ( $options[$setting]['type'] == 'upload' ) { $my_image_controls["evolve-theme_$setting"] = evolve_add_image_control($options,$setting, $name,$i); } elseif ( $options[$setting]['type'] == 'images' ) { $wp_customize->add_control( new evolve_Customize_Image_Control( $wp_customize, "evolve-theme_$setting", array( 'label' => $options[$setting]['name'], 'section' => "evolve-theme_$name", 'settings' => "evolve-theme[$setting]", 'type' => $options[$setting]['type'], 'choices' => $options[$setting]['options'], 'priority' => $i ) ) ); } elseif ( $options[$setting]['type'] == 'textarea' ) { $wp_customize->add_control( new evolve_Customize_Textarea_Control( $wp_customize, "evolve-theme_$setting", array( 'label' => $options[$setting]['name'], 'section' => "evolve-theme_$name", 'settings' => "evolve-theme[$setting]", 'type' => $options[$setting]['type'], 'priority' => $i ) ) ); } $i++; } } foreach ($my_image_controls as $id => $control) { $control->add_tab( 'library', __( 'Media Library', 'evolve' ), 'evolve_library_tab' ); } } function evolve_library_tab() { global $my_image_controls; static $tab_num = 0; // Sync tab to each image control $control = array_slice($my_image_controls, $tab_num, 1); ?> $options[$setting]['name'], 'section' => "evolve-theme_$name", 'priority' => $i, 'settings' => "evolve-theme[$setting]"// "evolve-theme[$setting]" ) ); $wp_customize->add_control($control); return $control; }