You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1081 lines
54 KiB
PHTML
1081 lines
54 KiB
PHTML
8 months ago
|
<?php
|
||
|
global $epanelMainTabs, $themename, $shortname, $options;
|
||
|
|
||
|
$epanelMainTabs = array('general','navigation','layout','ad','seo','integration','updates');
|
||
|
|
||
|
$cats_array = get_categories('hide_empty=0');
|
||
|
$pages_array = get_pages('hide_empty=0');
|
||
|
$pages_number = count($pages_array);
|
||
|
|
||
|
$site_pages = array();
|
||
|
$site_cats = array();
|
||
|
$pages_ids = array();
|
||
|
$cats_ids = array();
|
||
|
|
||
|
foreach ($pages_array as $pagg) {
|
||
|
$site_pages[$pagg->ID] = htmlspecialchars($pagg->post_title);
|
||
|
$pages_ids[] = $pagg->ID;
|
||
|
}
|
||
|
|
||
|
foreach ($cats_array as $categs) {
|
||
|
$site_cats[$categs->cat_ID] = $categs->cat_name;
|
||
|
$cats_ids[] = $categs->cat_ID;
|
||
|
}
|
||
|
|
||
|
$shortname = esc_html( $shortname );
|
||
|
$pages_ids = array_map( 'intval', $pages_ids );
|
||
|
$cats_ids = array_map( 'intval', $cats_ids );
|
||
|
|
||
|
// Get default sidebar class
|
||
|
if ( is_rtl() ) {
|
||
|
$sidebar_options = array(
|
||
|
'et_left_sidebar' => esc_html__( 'Left Sidebar', $themename ),
|
||
|
'et_right_sidebar' => esc_html__( 'Right Sidebar', $themename ),
|
||
|
);
|
||
|
|
||
|
$shop_page_sidebar_options = array(
|
||
|
'et_left_sidebar' => esc_html__( 'Left Sidebar', $themename ),
|
||
|
'et_right_sidebar' => esc_html__( 'Right Sidebar', $themename ),
|
||
|
'et_full_width_page' => esc_html__( 'Fullwidth', $themename ),
|
||
|
);
|
||
|
|
||
|
$default_sidebar_class = 'et_left_sidebar';
|
||
|
} else {
|
||
|
$sidebar_options = array(
|
||
|
'et_right_sidebar' => esc_html__( 'Right Sidebar', $themename ),
|
||
|
'et_left_sidebar' => esc_html__( 'Left Sidebar', $themename ),
|
||
|
);
|
||
|
|
||
|
$shop_page_sidebar_options = array(
|
||
|
'et_right_sidebar' => esc_html__( 'Right Sidebar', $themename ),
|
||
|
'et_left_sidebar' => esc_html__( 'Left Sidebar', $themename ),
|
||
|
'et_full_width_page' => esc_html__( 'Fullwidth', $themename ),
|
||
|
);
|
||
|
|
||
|
$default_sidebar_class = 'et_right_sidebar';
|
||
|
}
|
||
|
|
||
|
$child_theme_active = is_child_theme();
|
||
|
|
||
|
$options = array (
|
||
|
|
||
|
array( "name" => "wrap-general",
|
||
|
"type" => "contenttab-wrapstart",),
|
||
|
|
||
|
array( "type" => "subnavtab-start",),
|
||
|
|
||
|
array( "name" => "general-1",
|
||
|
"type" => "subnav-tab",
|
||
|
"desc" => esc_html__( "General", $themename) ),
|
||
|
|
||
|
array( "name" => "general-2",
|
||
|
"type" => "subnav-tab",
|
||
|
"desc" => esc_html__( "Performance", $themename) ),
|
||
|
|
||
|
array( "type" => "subnavtab-end",),
|
||
|
|
||
|
array( "name" => "general-1",
|
||
|
"type" => "subcontent-start",),
|
||
|
|
||
|
array( "name" => esc_html__( "Logo", $themename ),
|
||
|
"id" => $shortname . "_logo",
|
||
|
"type" => "upload",
|
||
|
"button_text" => esc_html__( "Set As Logo", $themename ),
|
||
|
"std" => "",
|
||
|
"desc" => esc_html__( "If you would like to use your own custom logo image click the Upload Image button.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Fixed Navigation Bar", $themename ),
|
||
|
"id" => $shortname . "_fixed_nav",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "on",
|
||
|
"desc" => esc_html__( "By default the navigation bar stays on top of the screen at all times. We suggest to disable this option, if you need to use a logo taller than the default one.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Enable Divi Gallery", $themename ),
|
||
|
"id" => $shortname . "_gallery_layout_enable",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "off",
|
||
|
"desc" => esc_html__( "Enable this if you want to replace the WordPress default gallery with the Divi-style gallery.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Color Pickers Default Palette", $themename ),
|
||
|
"id" => $shortname . "_color_palette",
|
||
|
"type" => "et_color_palette",
|
||
|
"items_amount" => 8,
|
||
|
"std" => '#000000|#FFFFFF|#E02B20|#E09900|#EDF000|#7CDA24|#0C71C3|#8300E9',
|
||
|
"desc" => esc_html__( "Define the default color palette for color pickers in the Divi Builder.", $themename ),
|
||
|
),
|
||
|
|
||
|
array( "type" => "clearfix",),
|
||
|
|
||
|
array( "name" => esc_html__( "Grab the first post image", $themename ),
|
||
|
"id" => $shortname . "_grab_image",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__("By default thumbnail images are created using custom fields. However, if you would rather use the images that are already in your post for your thumbnail (and bypass using custom fields) you can activate this option. Once activated thumbnail images will be generated automatically using the first image in your post. The image must be hosted on your own server.",$themename)
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Blog Style Mode", $themename ),
|
||
|
"id" => $shortname . "_blog_style",
|
||
|
"type" => "checkbox2",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__( "By default the theme truncates your posts on index/homepages automatically to create post previews. If you would rather show your posts in full on index pages like a traditional blog then you can activate this feature.", $themename ),
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Sidebar Layout", $themename ),
|
||
|
"id" => $shortname . "_sidebar",
|
||
|
"type" => "select",
|
||
|
"options" => $sidebar_options,
|
||
|
"std" => $default_sidebar_class,
|
||
|
"desc" => esc_html__( "Here you can choose default sidebar layout", $themename ),
|
||
|
'et_save_values' => true,
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Shop Page & Category Page Layout for WooCommerce", $themename ),
|
||
|
"id" => $shortname . "_shop_page_sidebar",
|
||
|
"type" => "select",
|
||
|
"options" => $shop_page_sidebar_options,
|
||
|
"std" => $default_sidebar_class,
|
||
|
"desc" => esc_html__( "Here you can choose Shop Page & Category Page Layout for WooCommerce.", $themename ),
|
||
|
'et_save_values' => true,
|
||
|
),
|
||
|
|
||
|
array(
|
||
|
"name" => esc_html__( "Google API Key", $themename ),
|
||
|
"id" => "et_google_api_settings_api_key",
|
||
|
"std" => "",
|
||
|
"type" => "text",
|
||
|
"validation_type" => "apikey",
|
||
|
'is_global' => true,
|
||
|
'main_setting_name' => 'et_google_api_settings',
|
||
|
'sub_setting_name' => 'api_key',
|
||
|
"desc" => et_get_safe_localization( sprintf( __( 'The Maps module uses the Google Maps API and requires a valid Google API Key to function. Before using the map module, please make sure you have added your API key here. Learn more about how to create your Google API Key <a target="_blank" href="%1$s">here</a>.', $themename ), 'https://www.elegantthemes.com/documentation/divi/map/' ) ),
|
||
|
),
|
||
|
|
||
|
array(
|
||
|
"name" => esc_html__( "Use Google Fonts", $themename ),
|
||
|
"id" => "et_use_google_fonts",
|
||
|
"main_setting_name" => "et_google_api_settings",
|
||
|
"sub_setting_name" => 'use_google_fonts',
|
||
|
'is_global' => true,
|
||
|
"type" => "checkbox",
|
||
|
"std" => "on",
|
||
|
"desc" => esc_html__( "Disable this option to remove the Google Fonts from your Divi Builder Pages.", $themename ),
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Google Fonts Subsets", $themename ),
|
||
|
"id" => $shortname . "_gf_enable_all_character_sets",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__( "This will enable Google Fonts for Non-English languages.", $themename )
|
||
|
),
|
||
|
|
||
|
array(
|
||
|
"name" => esc_html__( "Enqueue Google Maps Script", $themename ),
|
||
|
"id" => "et_enqueue_google_maps_script",
|
||
|
"main_setting_name" => "et_google_api_settings",
|
||
|
"sub_setting_name" => 'enqueue_google_maps_script',
|
||
|
'is_global' => true,
|
||
|
"type" => "checkbox",
|
||
|
"std" => "on",
|
||
|
"desc" => esc_html__( "Disable this option to remove the Google Maps API script from your Divi Builder Pages. This may improve compatibility with third party plugins that also enqueue this script. Please Note: Modules that rely on the Google Maps API in order to function properly, such as the Maps and Fullwidth Maps Modules, will still be available but will not function while this option is disabled (unless you manually add Google Maps API script).", $themename ),
|
||
|
),
|
||
|
|
||
|
array( "name" =>esc_html__( "Show Facebook Icon", $themename ),
|
||
|
"id" => $shortname . "_show_facebook_icon",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "on",
|
||
|
"desc" =>esc_html__( "Here you can choose to display the Facebook Icon on your homepage. ", $themename ) ),
|
||
|
|
||
|
array( "name" =>esc_html__( "Show X Icon", $themename ),
|
||
|
"id" => $shortname . "_show_twitter_icon",
|
||
|
"type" => "checkbox2",
|
||
|
"std" => "on",
|
||
|
"desc" =>esc_html__( "Here you can choose to display the X Icon. ", $themename ) ),
|
||
|
|
||
|
array( 'name' => esc_html__( 'Show Instagram Icon', $themename ),
|
||
|
'id' => $shortname . '_show_instagram_icon',
|
||
|
'type' => 'checkbox',
|
||
|
'std' => ( true === et_divi_is_fresh_install() ) ? 'on' : 'false',
|
||
|
'desc' => esc_html__( 'Here you can choose to display the Instagram Icon on your homepage. ', $themename ) ),
|
||
|
|
||
|
array( "name" =>esc_html__( "Show RSS Icon", $themename ),
|
||
|
"id" => $shortname . "_show_rss_icon",
|
||
|
"type" => "checkbox2",
|
||
|
"std" => "on",
|
||
|
"desc" =>esc_html__( "Here you can choose to display the RSS Icon. ", $themename ) ),
|
||
|
|
||
|
array( "name" =>esc_html__( "Facebook Profile Url", $themename ),
|
||
|
"id" => $shortname . "_facebook_url",
|
||
|
"std" => "#",
|
||
|
"type" => "text",
|
||
|
"validation_type" => "url",
|
||
|
"desc" =>esc_html__( "Enter the URL of your Facebook Profile. ", $themename ) ),
|
||
|
|
||
|
array( "name" =>esc_html__( "X Profile Url", $themename ),
|
||
|
"id" => $shortname . "_twitter_url",
|
||
|
"std" => "#",
|
||
|
"type" => "text",
|
||
|
"validation_type" => "url",
|
||
|
"desc" =>esc_html__( "Enter the URL of your X Profile.", $themename ) ),
|
||
|
|
||
|
array( 'name' => esc_html__( 'Instagram Profile Url', $themename ),
|
||
|
'id' => $shortname . '_instagram_url',
|
||
|
'std' => '#',
|
||
|
'type' => 'text',
|
||
|
'validation_type' => 'url',
|
||
|
'desc' => esc_html__( 'Enter the URL of your Instagram Profile. ', $themename ) ),
|
||
|
|
||
|
array( "name" =>esc_html__( "RSS Icon Url", $themename ),
|
||
|
"id" => $shortname . "_rss_url",
|
||
|
"std" => "",
|
||
|
"type" => "text",
|
||
|
"validation_type" => "url",
|
||
|
"desc" =>esc_html__( "Enter the URL of your RSS feed. ", $themename ) ),
|
||
|
|
||
|
array( "name" => esc_html__( "Number of Products displayed on WooCommerce archive pages", $themename ),
|
||
|
"id" => $shortname . "_woocommerce_archive_num_posts",
|
||
|
"std" => "9",
|
||
|
"type" => "text",
|
||
|
"desc" => esc_html__( "Here you can designate how many WooCommerce products are displayed on the archive page. This option works independently from the Settings > Reading options in wp-admin.", $themename),
|
||
|
"validation_type" => "number"
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Number of Posts displayed on Category page", $themename ),
|
||
|
"id" => $shortname . "_catnum_posts",
|
||
|
"std" => "6",
|
||
|
"type" => "text",
|
||
|
"desc" => esc_html__( "Here you can designate how many recent articles are displayed on the Category page. This option works independently from the Settings > Reading options in wp-admin.", $themename ),
|
||
|
"validation_type" => "number"
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Number of Posts displayed on Archive pages", $themename ),
|
||
|
"id" => $shortname . "_archivenum_posts",
|
||
|
"std" => "5",
|
||
|
"type" => "text",
|
||
|
"desc" => esc_html__( "Here you can designate how many recent articles are displayed on the Archive pages. This option works independently from the Settings > Reading options in wp-admin.", $themename ),
|
||
|
"validation_type" => "number"
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Number of Posts displayed on Search pages", $themename ),
|
||
|
"id" => $shortname . "_searchnum_posts",
|
||
|
"std" => "5",
|
||
|
"type" => "text",
|
||
|
"desc" => esc_html__( "Here you can designate how many recent articles are displayed on the Search results pages. This option works independently from the Settings > Reading options in wp-admin.", $themename ),
|
||
|
"validation_type" => "number"
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Number of Posts displayed on Tag pages", $themename ),
|
||
|
"id" => $shortname . "_tagnum_posts",
|
||
|
"std" => "5",
|
||
|
"type" => "text",
|
||
|
"desc" => esc_html__( "Here you can designate how many recent articles are displayed on the Tag pages. This option works independently from the Settings > Reading options in wp-admin.", $themename ),
|
||
|
"validation_type" => "number"
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Date format", $themename ),
|
||
|
"id" => $shortname . "_date_format",
|
||
|
"std" => "M j, Y",
|
||
|
"type" => "text",
|
||
|
"desc" => et_get_safe_localization( __("This option allows you to change how your dates are displayed. For more information please refer to the WordPress codex here:<a href='http://codex.wordpress.org/Formatting_Date_and_Time' target='_blank'>Formatting Date and Time</a>",$themename) ),
|
||
|
"validation_type" => "date_format"
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Use excerpts when defined", $themename ),
|
||
|
"id" => $shortname . "_use_excerpt",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__( "This will enable the use of excerpts in posts or pages.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Back To Top Button", $themename ),
|
||
|
"id" => $shortname . "_back_to_top",
|
||
|
"type" => "checkbox2",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__( "Enable this option to display Back To Top Button while scrolling", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Smooth Scrolling", $themename ),
|
||
|
"id" => $shortname . "_smooth_scroll",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__( "Enable this option to get the smooth scrolling effect with mouse wheel", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Disable Translations", $themename ),
|
||
|
"id" => $shortname . "_disable_translations",
|
||
|
"type" => "checkbox2",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__( "Disable translations if you don't want to display translated theme strings on your site.", $themename )
|
||
|
),
|
||
|
|
||
|
array(
|
||
|
"name" => esc_html__( "Enable Responsive Images", $themename ),
|
||
|
"id" => $shortname . "_enable_responsive_images",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "on",
|
||
|
"desc" => esc_html__( "Enable this option to get responsive images size generated when uploading images and adding srcset attribute for images element.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Custom CSS", $themename ),
|
||
|
"id" => $shortname . "_custom_css",
|
||
|
"type" => "textarea",
|
||
|
"std" => "",
|
||
|
"desc" => esc_html__( "Here you can add custom css to override or extend default styles.", $themename ),
|
||
|
"validation_type" => "nohtml"
|
||
|
),
|
||
|
|
||
|
array(
|
||
|
"name" => esc_html__( "Memory Limit Increase", $themename ),
|
||
|
"type" => "callback_function",
|
||
|
"desc" => esc_html__( 'Here you can disable automatic memory limit increase.', $themename ),
|
||
|
"function_name" => 'et_reset_memory_limit_increase_setting',
|
||
|
"depends_on" => 'et_should_memory_limit_increase',
|
||
|
),
|
||
|
array(
|
||
|
'name' => 'general-1',
|
||
|
'type' => 'subcontent-end',
|
||
|
),
|
||
|
array(
|
||
|
'name' => 'general-2',
|
||
|
'type' => 'subcontent-start',
|
||
|
),
|
||
|
array(
|
||
|
'name' => esc_html__( 'Dynamic Module Framework', 'Divi' ),
|
||
|
'id' => 'divi_dynamic_module_framework',
|
||
|
'type' => 'checkbox',
|
||
|
'std' => 'on',
|
||
|
'desc' => esc_html__( 'Enable this to allow the Divi Framework to only load the modules that are used on the page, and process the logic for the features in use.', 'Divi' ),
|
||
|
),
|
||
|
array(
|
||
|
'name' => esc_html__( 'Dynamic CSS', 'Divi' ),
|
||
|
'id' => 'divi_dynamic_css',
|
||
|
'type' => 'checkbox',
|
||
|
'std' => 'on',
|
||
|
'desc' => esc_html__( 'Dynamic CSS greatly reduces CSS file size by dynamically generating only the assets necessary for the features and modules you use. This eliminates all file bloat and greatly improves load times.', 'Divi' ),
|
||
|
),
|
||
|
array(
|
||
|
'name' => esc_html__( 'Dynamic Icons', 'Divi' ),
|
||
|
'id' => $child_theme_active ? 'divi_dynamic_icons_child_theme' : 'divi_dynamic_icons',
|
||
|
'type' => 'checkbox',
|
||
|
'std' => et_dynamic_icons_default_value(),
|
||
|
'desc' => esc_html__( 'The Divi icon font is broken up into various subsets. These subsets are loaded only when needed based on the modules and features used on each page. If you need access to the entire icon font on all pages (for example, if you are using our icon font in your child theme), then you can disable this option and load the entire icon font library on all pages.', 'Divi' ),
|
||
|
),
|
||
|
array(
|
||
|
'name' => esc_html__( 'Load Dynamic Stylesheet In-line', 'Divi' ),
|
||
|
'id' => 'divi_inline_stylesheet',
|
||
|
'type' => 'checkbox',
|
||
|
'std' => 'on',
|
||
|
'desc' => esc_html__( 'This option dequeues the Divi style.css file and prints the contents in-line. This removes a render blocking request and improves the PageSpeed scores of individual pages. However, it also prevents the style.css file from being cached. Since the stylesheet is small, it\'s recommended to keep this option enabled.', 'Divi' ),
|
||
|
),
|
||
|
array(
|
||
|
'name' => esc_html__( 'Critical CSS', 'Divi' ),
|
||
|
'id' => 'divi_critical_css',
|
||
|
'type' => 'checkbox',
|
||
|
'std' => 'on',
|
||
|
'desc' => esc_html__( 'Critical CSS greatly improves website load times and Google PageSpeed scores by deferring non-critical styles and eliminating render-blocking CSS requests.', 'Divi' ),
|
||
|
),
|
||
|
array(
|
||
|
'name' => esc_html__( 'Critical Threshold Height', 'Divi' ),
|
||
|
'id' => 'divi_critical_threshold_height',
|
||
|
'options' => array( esc_html__( 'Low', 'Divi' ), esc_html__( 'Medium', 'Divi' ), esc_html__( 'High', 'Divi' ) ),
|
||
|
'type' => 'select',
|
||
|
'std' => 'Medium',
|
||
|
'desc' => esc_html__( 'When Critical CSS is enabled, Divi determines an "above the fold threshold" and defers all styles for elements below the fold. However, this threshold is just a estimate and can vary on different devices. Increasing threshold height will deffer fewer styles, resulting in slightly slower load times but less of a chance for Cumulative Layout Shifts to occur. If you are experiencing CLS issues you can increase the threshold height.', 'Divi' ),
|
||
|
),
|
||
|
array(
|
||
|
'name' => esc_html__( 'Dynamic JavaScript Libraries', 'Divi' ),
|
||
|
'id' => 'divi_dynamic_js_libraries',
|
||
|
'type' => 'checkbox',
|
||
|
'std' => 'on',
|
||
|
'desc' => esc_html__( 'Only load external JavaScript libraries when they are needed by a specific Divi modules on the page. This removes unused JavaScript from the main scripts bundle and improves load times.', 'Divi' ),
|
||
|
),
|
||
|
array(
|
||
|
'name' => esc_html__( 'Disable WordPress Emojis', 'Divi' ),
|
||
|
'id' => 'divi_disable_emojis',
|
||
|
'type' => 'checkbox',
|
||
|
'std' => 'on',
|
||
|
'desc' => esc_html__( 'WordPress loads it\'s own WordPress emojis. Modern browsers support native emojis, making WordPress\'s emojis unnecessary in most cases. Removing WordPress emojis removes unneeded assets and improves performance.', 'Divi' ),
|
||
|
),
|
||
|
array(
|
||
|
'name' => esc_html__( 'Defer Gutenberg Block CSS', 'Divi' ),
|
||
|
'id' => 'divi_defer_block_css',
|
||
|
'type' => 'checkbox',
|
||
|
'std' => 'on',
|
||
|
'desc' => esc_html__( 'If a page is built with the Divi Builder, the Gutenberg block CSS file is moved from the header to the footer. Since the file is most likely not used, we can load it later. This removes a render blocking request and improving performance.', 'Divi' ),
|
||
|
),
|
||
|
array(
|
||
|
'name' => esc_html__( 'Improve Google Fonts Loading', 'Divi' ),
|
||
|
'id' => 'divi_google_fonts_inline',
|
||
|
'type' => 'checkbox',
|
||
|
'std' => 'off',
|
||
|
'desc' => esc_html__( 'Enable caching of Google Fonts and load them inline. This reduces render-blocking requests and improves page load times.', 'Divi' ),
|
||
|
),
|
||
|
array(
|
||
|
'name' => esc_html__( 'Limit Google Fonts Support For Legacy Browsers', 'Divi' ),
|
||
|
'id' => 'divi_limit_google_fonts_support_for_legacy_browsers',
|
||
|
'type' => 'checkbox',
|
||
|
'std' => 'on',
|
||
|
'desc' => esc_html__( 'Enabling this option will lower the size of Google Fonts and improve load times, however it will limit Google Fonts support in some very old browsers. You can turn this off to increase support for older browsers at a slight cost to performance.', 'Divi' ),
|
||
|
),
|
||
|
array(
|
||
|
'name' => esc_html__( 'Defer jQuery And jQuery Migrate', 'Divi' ),
|
||
|
'id' => 'divi_enable_jquery_body',
|
||
|
'type' => 'checkbox',
|
||
|
'std' => 'on',
|
||
|
'desc' => esc_html__( 'When possible, jQuery and jQuery Migrate will be moved to the body to speed up load times. If a third party plugin registers jQuery as a dependency, it will be moved back to the head.', 'Divi' ),
|
||
|
),
|
||
|
array(
|
||
|
'name' => esc_html__( 'Enqueue jQuery Compatibility Script', 'Divi' ),
|
||
|
'id' => 'divi_enable_jquery_compatibility',
|
||
|
'type' => 'checkbox',
|
||
|
'std' => 'on',
|
||
|
'desc' => esc_html__( 'Some third party scripts may be incorrectly enqueued without declaring jQuery as dependency. If jQuery is deferred, these scripts could break. If you are experiencing console errors after enabling the "Defer jQuery And jQuery Migrate" option, you can enable this option, which will load an additional compatibility script that will attempt to solve the issue. You can turn this feature off if everything is working fine without it.', 'Divi' ),
|
||
|
),
|
||
|
array(
|
||
|
'name' => esc_html__( 'Defer Additional Third Party Scripts', 'Divi' ),
|
||
|
'id' => 'divi_enable_jquery_body_super',
|
||
|
'type' => 'checkbox',
|
||
|
'std' => 'off',
|
||
|
'desc' => esc_html__( 'Warning: This can cause JavaScript errors in some cases and should be used with care. When enabled, scripts registered by plugins and themes will be deferred to improve performance and jQuery will always be loaded in the body.', 'Divi' ),
|
||
|
),
|
||
|
array(
|
||
|
'name' => 'general-2',
|
||
|
'type' => 'subcontent-end',
|
||
|
),
|
||
|
array(
|
||
|
'name' => 'wrap-general',
|
||
|
'type' => 'contenttab-wrapend',
|
||
|
),
|
||
|
|
||
|
//-------------------------------------------------------------------------------------//
|
||
|
|
||
|
array( "name" => "wrap-navigation",
|
||
|
"type" => "contenttab-wrapstart",),
|
||
|
|
||
|
array( "type" => "subnavtab-start",),
|
||
|
|
||
|
array( "name" => "navigation-1",
|
||
|
"type" => "subnav-tab",
|
||
|
"desc" => esc_html__( "Pages", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => "navigation-2",
|
||
|
"type" => "subnav-tab",
|
||
|
"desc" => esc_html__( "Categories", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => "navigation-3",
|
||
|
"type" => "subnav-tab",
|
||
|
"desc" => esc_html__( "General Settings", $themename )
|
||
|
),
|
||
|
|
||
|
array( "type" => "subnavtab-end",),
|
||
|
|
||
|
array( "name" => "navigation-1",
|
||
|
"type" => "subcontent-start",),
|
||
|
|
||
|
array( "name" => esc_html__( "Exclude pages from the navigation bar", $themename ),
|
||
|
"id" => $shortname . "_menupages",
|
||
|
"type" => "checkboxes",
|
||
|
"std" => "",
|
||
|
"desc" => esc_html__( "Here you can choose to remove certain pages from the navigation menu. All pages marked with an X will not appear in your navigation bar. ", $themename ),
|
||
|
"usefor" => "pages",
|
||
|
"options" => $pages_ids),
|
||
|
|
||
|
array( "name" => esc_html__( "Show dropdown menus", $themename ),
|
||
|
"id" => $shortname . "_enable_dropdowns",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "on",
|
||
|
"desc" => esc_html__( "If you would like to remove the dropdown menus from the pages navigation bar disable this feature.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Display Home link", $themename ),
|
||
|
"id" => $shortname . "_home_link",
|
||
|
"type" => "checkbox2",
|
||
|
"std" => "on",
|
||
|
"desc" => esc_html__("By default the theme creates a Home link that, when clicked, leads back to your blog's homepage. If, however, you are using a static homepage and have already created a page called Home to use, this will result in a duplicate link. In this case you should disable this feature to remove the link.",$themename)
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Sort Pages Links", $themename ),
|
||
|
"id" => $shortname . "_sort_pages",
|
||
|
"type" => "select",
|
||
|
"std" => "post_title",
|
||
|
"desc" => esc_html__( "Here you can choose to sort your pages links.", $themename ),
|
||
|
"options" => array("post_title", "menu_order","post_date","post_modified","ID","post_author","post_name")),
|
||
|
|
||
|
array( "name" => esc_html__( "Order Pages Links by Ascending/Descending", $themename ),
|
||
|
"id" => $shortname . "_order_page",
|
||
|
"type" => "select",
|
||
|
"std" => "asc",
|
||
|
"desc" => esc_html__( "Here you can choose to reverse the order that your pages links are displayed. You can choose between ascending and descending.", $themename ),
|
||
|
"options" => array("asc", "desc")),
|
||
|
|
||
|
array( "name" => esc_html__( "Number of dropdown tiers shown", $themename ),
|
||
|
"id" => $shortname . "_tiers_shown_pages",
|
||
|
"type" => "text",
|
||
|
"std" => "3",
|
||
|
"desc" => esc_html__( "This options allows you to control how many teirs your pages dropdown menu has. Increasing the number allows for additional menu items to be shown.", $themename ),
|
||
|
"validation_type" => "number"
|
||
|
),
|
||
|
|
||
|
array( "name" => "navigation-1",
|
||
|
"type" => "subcontent-end",),
|
||
|
|
||
|
array( "name" => "navigation-2",
|
||
|
"type" => "subcontent-start",),
|
||
|
|
||
|
array( "name" => esc_html__( "Exclude categories from the navigation bar", $themename ),
|
||
|
"id" => $shortname . "_menucats",
|
||
|
"type" => "checkboxes",
|
||
|
"std" => "",
|
||
|
"desc" => esc_html__( "Here you can choose to remove certain categories from the navigation menu. All categories marked with an X will not appear in your navigation bar. ", $themename ),
|
||
|
"usefor" => "categories",
|
||
|
"options" => $cats_ids),
|
||
|
|
||
|
array( "name" => esc_html__( "Show dropdown menus", $themename ),
|
||
|
"id" => $shortname . "_enable_dropdowns_categories",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "on",
|
||
|
"desc" => esc_html__( "If you would like to remove the dropdown menus from the categories navigation bar disable this feature.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Hide empty categories", $themename ),
|
||
|
"id" => $shortname . "_categories_empty",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "on",
|
||
|
"desc" => esc_html__("If you would like categories to be displayed in your navigationbar that don't have any posts in them then disable this option. By default empty categories are hidden",$themename)
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Number of dropdown tiers shown", $themename ),
|
||
|
"id" => $shortname . "_tiers_shown_categories",
|
||
|
"type" => "text",
|
||
|
"std" => "3",
|
||
|
"desc" => esc_html__( "This options allows you to control how many teirs your pages dropdown menu has. Increasing the number allows for additional menu items to be shown.", $themename ),
|
||
|
"validation_type" => "number"
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Sort Categories Links by Name/ID/Slug/Count/Term Group", $themename ),
|
||
|
"id" => $shortname . "_sort_cat",
|
||
|
"type" => "select",
|
||
|
"std" => "name",
|
||
|
"desc" => esc_html__( "By default pages are sorted by name. However if you would rather have them sorted by ID you can adjust this setting.", $themename ),
|
||
|
"options" => array("name", "ID", "slug", "count", "term_group")),
|
||
|
|
||
|
array( "name" => esc_html__( "Order Category Links by Ascending/Descending", $themename ),
|
||
|
"id" => $shortname . "_order_cat",
|
||
|
"type" => "select",
|
||
|
"std" => "asc",
|
||
|
"desc" => esc_html__( "Here you can choose to reverse the order that your categories links are displayed. You can choose between ascending and descending.", $themename ),
|
||
|
"options" => array("asc", "desc")),
|
||
|
|
||
|
array( "name" => "navigation-2",
|
||
|
"type" => "subcontent-end",),
|
||
|
|
||
|
array( "name" => "navigation-3",
|
||
|
"type" => "subcontent-start",),
|
||
|
|
||
|
array( "name" => esc_html__( "Disable top tier dropdown menu links", $themename ),
|
||
|
"id" => $shortname . "_disable_toptier",
|
||
|
"type" => "checkbox2",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__( "In some cases users will want to create parent categories or links as placeholders to hold a list of child links or categories. In this case it is not desirable to have the parent links lead anywhere, but instead merely serve an organizational function. Enabling this options will remove the links from all parent pages/categories so that they don't lead anywhere when clicked.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => "navigation-3",
|
||
|
"type" => "subcontent-end",),
|
||
|
|
||
|
array( "name" => "wrap-navigation",
|
||
|
"type" => "contenttab-wrapend",),
|
||
|
|
||
|
//-------------------------------------------------------------------------------------//
|
||
|
|
||
|
array( "name" => "wrap-layout",
|
||
|
"type" => "contenttab-wrapstart",),
|
||
|
|
||
|
array( "type" => "subnavtab-start",),
|
||
|
|
||
|
array( "name" => "layout-1",
|
||
|
"type" => "subnav-tab",
|
||
|
"desc" => esc_html__( "Single Post Layout", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => "layout-2",
|
||
|
"type" => "subnav-tab",
|
||
|
"desc" => esc_html__( "Single Page Layout", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => "layout-3",
|
||
|
"type" => "subnav-tab",
|
||
|
"desc" => esc_html__( "General Settings", $themename )
|
||
|
),
|
||
|
|
||
|
array( "type" => "subnavtab-end",),
|
||
|
|
||
|
array( "name" => "layout-1",
|
||
|
"type" => "subcontent-start",),
|
||
|
|
||
|
array( "name" => esc_html__( "Choose which items to display in the post info section", $themename ),
|
||
|
"id" => $shortname . "_postinfo2",
|
||
|
"type" => "different_checkboxes",
|
||
|
"std" => array("author","date","categories","comments"),
|
||
|
"desc" => esc_html__( "Here you can choose which items appear in the post info section on single post pages. This is the area, usually below the post title, which displays basic information about your post. The highlighted items shown below will appear. ", $themename ),
|
||
|
"options" => array("author","date","categories","comments")),
|
||
|
|
||
|
array(
|
||
|
"name" => esc_html__( "Show comments on posts", $themename ),
|
||
|
"id" => $shortname . "_show_postcomments",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "on",
|
||
|
"desc" => esc_html__( "You can disable this option if you want to remove the comments and comment form from single post pages. ", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Place Thumbs on Posts", $themename ),
|
||
|
"id" => $shortname . "_thumbnails",
|
||
|
"type" => "checkbox2",
|
||
|
"std" => "on",
|
||
|
"desc" => esc_html__( "By default thumbnails are placed at the beginning of your post on single post pages. If you would like to remove this initial thumbnail image to avoid repetition simply disable this option. ", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => "layout-1",
|
||
|
"type" => "subcontent-end",),
|
||
|
|
||
|
array( "name" => "layout-2",
|
||
|
"type" => "subcontent-start",),
|
||
|
|
||
|
array( "name" => esc_html__( "Place Thumbs on Pages", $themename ),
|
||
|
"id" => $shortname . "_page_thumbnails",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__("By default thumbnails are not placed on pages (they are only used on posts). However, if you want to use thumbnails on pages you can! Just enable this option. ",$themename)
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Show comments on pages", $themename ),
|
||
|
"id" => $shortname . "_show_pagescomments",
|
||
|
"type" => "checkbox2",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__( "By default comments are not placed on pages, however, if you would like to allow people to comment on your pages simply enable this option. ", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => "layout-2",
|
||
|
"type" => "subcontent-end",),
|
||
|
|
||
|
array( "name" => "layout-3",
|
||
|
"type" => "subcontent-start",),
|
||
|
|
||
|
array( "name" => esc_html__( "Post info section", $themename ),
|
||
|
"id" => $shortname . "_postinfo1",
|
||
|
"type" => "different_checkboxes",
|
||
|
"std" => array("author","date","categories"),
|
||
|
"desc" => esc_html__( "Here you can choose which items appear in the post info section on pages. This is the area, usually below the post title, which displays basic information about your post. The highlighted items shown below will appear. ", $themename ),
|
||
|
"options" => array("author","date","categories","comments")),
|
||
|
|
||
|
array( "name" => esc_html__( "Show Thumbs on Index pages", $themename ),
|
||
|
"id" => $shortname . "_thumbnails_index",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "on",
|
||
|
"desc" => esc_html__( "Enable this option to show thumbnails on Index Pages.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => "layout-3",
|
||
|
"type" => "subcontent-end",),
|
||
|
|
||
|
array( "name" => "wrap-layout",
|
||
|
"type" => "contenttab-wrapend",),
|
||
|
|
||
|
//-------------------------------------------------------------------------------------//
|
||
|
array( "name" => "wrap-seo",
|
||
|
"type" => "contenttab-wrapstart",),
|
||
|
|
||
|
array( "type" => "subnavtab-start",),
|
||
|
|
||
|
array( "name" => "seo-1",
|
||
|
"type" => "subnav-tab",
|
||
|
"desc" => esc_html__( "Homepage SEO", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => "seo-2",
|
||
|
"type" => "subnav-tab",
|
||
|
"desc" => esc_html__( "Single Post Page SEO", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => "seo-3",
|
||
|
"type" => "subnav-tab",
|
||
|
"desc" => esc_html__( "Index Page SEO", $themename )
|
||
|
),
|
||
|
|
||
|
array( "type" => "subnavtab-end",),
|
||
|
|
||
|
array( "name" => "seo-1",
|
||
|
"type" => "subcontent-start",),
|
||
|
|
||
|
array( "name" => esc_html__( " Enable custom title ", $themename ),
|
||
|
"id" => $shortname . "_seo_home_title",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__( "By default the theme uses a combination of your blog name and your blog description, as defined when you created your blog, to create your homepage titles. However if you want to create a custom title then simply enable this option and fill in the custom title field below. ", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( " Enable meta description", $themename ),
|
||
|
"id" => $shortname . "_seo_home_description",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__( "By default the theme uses your blog description, as defined when you created your blog, to fill in the meta description field. If you would like to use a different description then enable this option and fill in the custom description field below. ", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( " Enable meta keywords", $themename ),
|
||
|
"id" => $shortname . "_seo_home_keywords",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__("By default the theme does not add keywords to your header. Most search engines don't use keywords to rank your site anymore, but some people define them anyway just in case. If you want to add meta keywords to your header then enable this option and fill in the custom keywords field below. ",$themename)
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__(" Enable canonical URL's",$themename),
|
||
|
"id" => $shortname . "_seo_home_canonical",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__("Canonicalization helps to prevent the indexing of duplicate content by search engines, and as a result, may help avoid duplicate content penalties and pagerank degradation. Some pages may have different URLs all leading to the same place. For example domain.com, domain.com/index.html, and www.domain.com are all different URLs leading to your homepage. From a search engine's perspective these duplicate URLs, which also occur often due to custom permalinks, may be treated individually instead of as a single destination. Defining a canonical URL tells the search engine which URL you would like to use officially. The theme bases its canonical URLs off your permalinks and the domain name defined in the settings tab of wp-admin.",$themename)
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__("Homepage custom title (if enabled)",$themename),
|
||
|
"id" => $shortname . "_seo_home_titletext",
|
||
|
"type" => "text",
|
||
|
"std" => "",
|
||
|
"desc" => esc_html__( "If you have enabled custom titles you can add your custom title here. Whatever you type here will be placed between the < title >< /title > tags in header.php", $themename ),
|
||
|
"validation_type" => "nohtml"
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__("Homepage meta description (if enabled)",$themename),
|
||
|
"id" => $shortname . "_seo_home_descriptiontext",
|
||
|
"type" => "textarea",
|
||
|
"std" => "",
|
||
|
"desc" => esc_html__( "If you have enabled meta descriptions you can add your custom description here.", $themename ),
|
||
|
"validation_type" => "nohtml"
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__("Homepage meta keywords (if enabled)",$themename),
|
||
|
"id" => $shortname . "_seo_home_keywordstext",
|
||
|
"type" => "text",
|
||
|
"std" => "",
|
||
|
"desc" => esc_html__("If you have enabled meta keywords you can add your custom keywords here. Keywords should be separated by comas. For example: wordpress,themes,templates,elegant",$themename),
|
||
|
"validation_type" => "nohtml"
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "If custom titles are disabled, choose autogeneration method", $themename ),
|
||
|
"id" => $shortname . "_seo_home_type",
|
||
|
"type" => "select",
|
||
|
"std" => "BlogName | Blog description",
|
||
|
"options" => array("BlogName | Blog description", "Blog description | BlogName", "BlogName only"),
|
||
|
"desc" => esc_html__( "If you are not using cutsom post titles you can still have control over how your titles are generated. Here you can choose which order you would like your post title and blog name to be displayed, or you can remove the blog name from the title completely.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Define a character to separate BlogName and Post title", $themename ),
|
||
|
"id" => $shortname . "_seo_home_separate",
|
||
|
"type" => "text",
|
||
|
"std" => " | ",
|
||
|
"desc" => esc_html__( "Here you can change which character separates your blog title and post name when using autogenerated post titles. Common values are | or -", $themename ),
|
||
|
"validation_type" => "nohtml"
|
||
|
),
|
||
|
|
||
|
array( "name" => "seo-1",
|
||
|
"type" => "subcontent-end",),
|
||
|
|
||
|
array( "name" => "seo-2",
|
||
|
"type" => "subcontent-start",),
|
||
|
|
||
|
array( "name" => esc_html__( "Enable custom titles", $themename ),
|
||
|
"id" => $shortname . "_seo_single_title",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__( "By default the theme creates post titles based on the title of your post and your blog name. If you would like to make your meta title different than your actual post title you can define a custom title for each post using custom fields. This option must be enabled for custom titles to work, and you must choose a custom field name for your title below.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Enable custom description", $themename ),
|
||
|
"id" => $shortname . "_seo_single_description",
|
||
|
"type" => "checkbox2",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__( "If you would like to add a meta description to your post you can do so using custom fields. This option must be enabled for descriptions to be displayed on post pages. You can add your meta description using custom fields based off the custom field name you define below.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Enable custom keywords", $themename ),
|
||
|
"id" => $shortname . "_seo_single_keywords",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__( "If you would like to add meta keywords to your post you can do so using custom fields. This option must be enabled for keywords to be displayed on post pages. You can add your meta keywords using custom fields based off the custom field name you define below.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__("Enable canonical URL's",$themename),
|
||
|
"id" => $shortname . "_seo_single_canonical",
|
||
|
"type" => "checkbox2",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__("Canonicalization helps to prevent the indexing of duplicate content by search engines, and as a result, may help avoid duplicate content penalties and pagerank degradation. Some pages may have different URLs all leading to the same place. For example domain.com, domain.com/index.html, and www.domain.com are all different URLs leading to your homepage. From a search engine's perspective these duplicate URLs, which also occur often due to custom permalinks, may be treated individually instead of as a single destination. Defining a canonical URL tells the search engine which URL you would like to use officially. The theme bases its canonical URLs off your permalinks and the domain name defined in the settings tab of wp-admin.",$themename)
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Custom field Name to be used for title", $themename ),
|
||
|
"id" => $shortname . "_seo_single_field_title",
|
||
|
"type" => "text",
|
||
|
"std" => "seo_title",
|
||
|
"desc" => esc_html__( "When you define your title using custom fields you should use this value for the custom field Name. The Value of your custom field should be the custom title you would like to use.", $themename ),
|
||
|
"validation_type" => "nohtml"
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Custom field Name to be used for description", $themename ),
|
||
|
"id" => $shortname . "_seo_single_field_description",
|
||
|
"type" => "text",
|
||
|
"std" => "seo_description",
|
||
|
"desc" => esc_html__( "When you define your meta description using custom fields you should use this value for the custom field Name. The Value of your custom field should be the custom description you would like to use.", $themename ),
|
||
|
"validation_type" => "nohtml"
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Custom field Name to be used for keywords", $themename ),
|
||
|
"id" => $shortname . "_seo_single_field_keywords",
|
||
|
"type" => "text",
|
||
|
"std" => "seo_keywords",
|
||
|
"desc" => esc_html__( "When you define your keywords using custom fields you should use this value for the custom field Name. The Value of your custom field should be the meta keywords you would like to use, separated by comas.", $themename ),
|
||
|
"validation_type" => "nohtml"
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "If custom titles are disabled, choose autogeneration method", $themename ),
|
||
|
"id" => $shortname . "_seo_single_type",
|
||
|
"type" => "select",
|
||
|
"std" => "Post title | BlogName",
|
||
|
"options" => array("Post title | BlogName", "BlogName | Post title", "Post title only"),
|
||
|
"desc" => esc_html__( "If you are not using cutsom post titles you can still have control over hw your titles are generated. Here you can choose which order you would like your post title and blog name to be displayed, or you can remove the blog name from the title completely.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Define a character to separate BlogName and Post title", $themename ),
|
||
|
"id" => $shortname . "_seo_single_separate",
|
||
|
"type" => "text",
|
||
|
"std" => " | ",
|
||
|
"desc" => esc_html__( "Here you can change which character separates your blog title and post name when using autogenerated post titles. Common values are | or -", $themename ),
|
||
|
"validation_type" => "nohtml"
|
||
|
),
|
||
|
|
||
|
array( "name" => "seo-2",
|
||
|
"type" => "subcontent-end",),
|
||
|
|
||
|
array( "name" => "seo-3",
|
||
|
"type" => "subcontent-start",),
|
||
|
|
||
|
array( "name" => esc_html__(" Enable canonical URL's",$themename),
|
||
|
"id" => $shortname . "_seo_index_canonical",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__("Canonicalization helps to prevent the indexing of duplicate content by search engines, and as a result, may help avoid duplicate content penalties and pagerank degradation. Some pages may have different URLs all leading to the same place. For example domain.com, domain.com/index.html, and www.domain.com are all different URLs leading to your homepage. From a search engine's perspective these duplicate URLs, which also occur often due to custom permalinks, may be treated individually instead of as a single destination. Defining a canonical URL tells the search engine which URL you would like to use officially. The theme bases its canonical URLs off your permalinks and the domain name defined in the settings tab of wp-admin.",$themename)
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Enable meta descriptions", $themename ),
|
||
|
"id" => $shortname . "_seo_index_description",
|
||
|
"type" => "checkbox2",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__( "Check this box if you want to display meta descriptions on category/archive pages. The description is based off the category description you choose when creating/edit your category in wp-admin.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Choose title autogeneration method", $themename ),
|
||
|
"id" => $shortname . "_seo_index_type",
|
||
|
"type" => "select",
|
||
|
"std" => "Category name | BlogName",
|
||
|
"options" => array("Category name | BlogName", "BlogName | Category name", "Category name only"),
|
||
|
"desc" => esc_html__( "Here you can choose how your titles on index pages are generated. You can change which order your blog name and index title are displayed, or you can remove the blog name from the title completely.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Define a character to separate BlogName and Post title", $themename ),
|
||
|
"id" => $shortname . "_seo_index_separate",
|
||
|
"type" => "text",
|
||
|
"std" => " | ",
|
||
|
"desc" => esc_html__( "Here you can change which character separates your blog title and index page name when using autogenerated post titles. Common values are | or -", $themename ),
|
||
|
"validation_type" => "nohtml"
|
||
|
),
|
||
|
|
||
|
array( "name" => "seo-3",
|
||
|
"type" => "subcontent-end",),
|
||
|
|
||
|
array( "name" => "wrap-seo",
|
||
|
"type" => "contenttab-wrapend",),
|
||
|
|
||
|
//-------------------------------------------------------------------------------------//
|
||
|
|
||
|
array( "name" => "wrap-integration",
|
||
|
"type" => "contenttab-wrapstart",),
|
||
|
|
||
|
array( "type" => "subnavtab-start",),
|
||
|
|
||
|
array( "name" => "integration-1",
|
||
|
"type" => "subnav-tab",
|
||
|
"desc" => esc_html__( "Code Integration", $themename )
|
||
|
),
|
||
|
|
||
|
array( "type" => "subnavtab-end",),
|
||
|
|
||
|
array( "name" => "integration-1",
|
||
|
"type" => "subcontent-start",),
|
||
|
|
||
|
array( "name" => esc_html__( "Enable header code", $themename ),
|
||
|
"id" => $shortname . "_integrate_header_enable",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "on",
|
||
|
"desc" => esc_html__( "Disabling this option will remove the header code below from your blog. This allows you to remove the code while saving it for later use.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Enable body code", $themename ),
|
||
|
"id" => $shortname . "_integrate_body_enable",
|
||
|
"type" => "checkbox2",
|
||
|
"std" => "on",
|
||
|
"desc" => esc_html__( "Disabling this option will remove the body code below from your blog. This allows you to remove the code while saving it for later use.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Enable single top code", $themename ),
|
||
|
"id" => $shortname . "_integrate_singletop_enable",
|
||
|
"type" => "checkbox",
|
||
|
"std" => "on",
|
||
|
"desc" => esc_html__( "Disabling this option will remove the single top code below from your blog. This allows you to remove the code while saving it for later use.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Enable single bottom code", $themename ),
|
||
|
"id" => $shortname . "_integrate_singlebottom_enable",
|
||
|
"type" => "checkbox2",
|
||
|
"std" => "on",
|
||
|
"desc" => esc_html__( "Disabling this option will remove the single bottom code below from your blog. This allows you to remove the code while saving it for later use.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Add code to the < head > of your blog", $themename ),
|
||
|
"id" => $shortname . "_integration_head",
|
||
|
"type" => "textarea",
|
||
|
"std" => "",
|
||
|
"desc" => esc_html__( "Any code you place here will appear in the head section of every page of your blog. This is useful when you need to add javascript or css to all pages.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__("Add code to the < body > (good for tracking codes such as google analytics)",$themename),
|
||
|
"id" => $shortname . "_integration_body",
|
||
|
"type" => "textarea",
|
||
|
"std" => "",
|
||
|
"desc" => esc_html__( "Any code you place here will appear in body section of all pages of your blog. This is usefull if you need to input a tracking pixel for a state counter such as Google Analytics.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Add code to the top of your posts", $themename ),
|
||
|
"id" => $shortname . "_integration_single_top",
|
||
|
"type" => "textarea",
|
||
|
"std" => "",
|
||
|
"desc" => esc_html__( "Any code you place here will be placed at the top of all single posts. This is useful if you are looking to integrating things such as social bookmarking links.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Add code to the bottom of your posts, before the comments", $themename ),
|
||
|
"id" => $shortname . "_integration_single_bottom",
|
||
|
"type" => "textarea",
|
||
|
"std" => "",
|
||
|
"desc" => esc_html__( "Any code you place here will be placed at the bottom of all single posts. This is useful if you are looking to integrating things such as social bookmarking links.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => "integration-1",
|
||
|
"type" => "subcontent-end",),
|
||
|
|
||
|
array( "name" => "wrap-integration",
|
||
|
"type" => "contenttab-wrapend",),
|
||
|
|
||
|
//-------------------------------------------------------------------------------------//
|
||
|
|
||
|
array( "name" => "wrap-updates",
|
||
|
"type" => "contenttab-wrapstart",),
|
||
|
|
||
|
array( "type" => "subnavtab-start",),
|
||
|
|
||
|
array( "name" => "updates-1",
|
||
|
"type" => "subnav-tab",
|
||
|
"desc" => esc_html__( "General", $themename )
|
||
|
),
|
||
|
|
||
|
array( "type" => "subnavtab-end",),
|
||
|
|
||
|
array( "name" => "updates-1",
|
||
|
"type" => "subcontent-start",),
|
||
|
|
||
|
array(
|
||
|
'name' => esc_html__( 'Username', $themename ),
|
||
|
'id' => 'et_automatic_updates_options_username',
|
||
|
'std' => '',
|
||
|
'type' => 'password',
|
||
|
'validation_type' => 'nohtml',
|
||
|
'desc' => et_get_safe_localization( __( '<em>Before you can receive product updates, you must first authenticate your Elegant Themes subscription. To do this, you need to enter both your Elegant Themes Username and your Elegant Themes API Key into the Updates Tab in your theme and plugin settings. To locate your API Key, <a href="https://www.elegantthemes.com/members-area/api/" target="_blank">log in</a> to your Elegant Themes account and navigate to the <strong>Account > API Key</strong> page. <a href="https://www.elegantthemes.com/documentation/divi/update-divi/" target="_blank">Learn more here</a></em>. If you still get this message, please make sure that your Username and API Key have been entered correctly', $themename ) ),
|
||
|
'is_global' => true,
|
||
|
'main_setting_name' => 'et_automatic_updates_options',
|
||
|
'sub_setting_name' => 'username',
|
||
|
),
|
||
|
|
||
|
array(
|
||
|
'name' => esc_html__( 'API Key', $themename ),
|
||
|
'id' => 'et_automatic_updates_options_api_key',
|
||
|
'std' => '',
|
||
|
'type' => 'password',
|
||
|
'validation_type' => 'nohtml',
|
||
|
'desc' => et_get_safe_localization( __( '<em>Before you can receive product updates, you must first authenticate your Elegant Themes subscription. To do this, you need to enter both your Elegant Themes Username and your Elegant Themes API Key into the Updates Tab in your theme and plugin settings. To locate your API Key, <a href="https://www.elegantthemes.com/members-area/api/" target="_blank">log in</a> to your Elegant Themes account and navigate to the <strong>Account > API Key</strong> page. <a href="https://www.elegantthemes.com/documentation/divi/update-divi/" target="_blank">Learn more here</a></em>. If you still get this message, please make sure that your Username and API Key have been entered correctly', $themename ) ),
|
||
|
'is_global' => true,
|
||
|
'main_setting_name' => 'et_automatic_updates_options',
|
||
|
'sub_setting_name' => 'api_key',
|
||
|
),
|
||
|
|
||
|
et_divi_version_rollback()->get_epanel_option(),
|
||
|
|
||
|
array( "name" => "updates-1",
|
||
|
"type" => "subcontent-end",),
|
||
|
|
||
|
array( "name" => "wrap-updates",
|
||
|
"type" => "contenttab-wrapend",),
|
||
|
|
||
|
//-------------------------------------------------------------------------------------//
|
||
|
|
||
|
array( "name" => "wrap-advertisements",
|
||
|
"type" => "contenttab-wrapstart",),
|
||
|
|
||
|
array( "type" => "subnavtab-start",),
|
||
|
|
||
|
array( "name" => "advertisements-1",
|
||
|
"type" => "subnav-tab",
|
||
|
"desc" => esc_html__( "Manage Un-widgetized Advertisements", $themename )
|
||
|
),
|
||
|
|
||
|
array( "type" => "subnavtab-end",),
|
||
|
|
||
|
array( "name" => "advertisements-1",
|
||
|
"type" => "subcontent-start",),
|
||
|
|
||
|
array( "name" => esc_html__( "Enable Single Post 468x60 banner", $themename ),
|
||
|
"id" => $shortname . "_468_enable",
|
||
|
"type" => "checkbox2",
|
||
|
"std" => "false",
|
||
|
"desc" => esc_html__( "Enabling this option will display a 468x60 banner ad on the bottom of your post pages below the single post content. If enabled you must fill in the banner image and destination url below.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Input 468x60 advertisement banner image", $themename ),
|
||
|
"id" => $shortname . "_468_image",
|
||
|
"type" => "text",
|
||
|
"std" => "",
|
||
|
"desc" => esc_html__( "Here you can provide 468x60 banner image url", $themename ),
|
||
|
"validation_type" => "url"
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Input 468x60 advertisement destination url", $themename ),
|
||
|
"id" => $shortname . "_468_url",
|
||
|
"type" => "text",
|
||
|
"std" => "",
|
||
|
"desc" => esc_html__( "Here you can provide 468x60 banner destination url", $themename ),
|
||
|
"validation_type" => "url"
|
||
|
),
|
||
|
|
||
|
array( "name" => esc_html__( "Input 468x60 adsense code", $themename ),
|
||
|
"id" => $shortname . "_468_adsense",
|
||
|
"type" => "textarea",
|
||
|
"std" => "",
|
||
|
"desc" => esc_html__( "Place your adsense code here.", $themename )
|
||
|
),
|
||
|
|
||
|
array( "name" => "advertisements-1",
|
||
|
"type" => "subcontent-end",),
|
||
|
|
||
|
array( "name" => "wrap-advertisements",
|
||
|
"type" => "contenttab-wrapend",),
|
||
|
|
||
|
//-------------------------------------------------------------------------------------//
|
||
|
|
||
|
);
|