Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi
File: options_divi.php
<?php
[0] Fix | Delete
global $epanelMainTabs, $themename, $shortname, $options;
[1] Fix | Delete
[2] Fix | Delete
$epanelMainTabs = array('general','navigation','layout','ad','seo','integration','updates');
[3] Fix | Delete
[4] Fix | Delete
$cats_array = get_categories('hide_empty=0');
[5] Fix | Delete
$pages_array = get_pages('hide_empty=0');
[6] Fix | Delete
$pages_number = count($pages_array);
[7] Fix | Delete
[8] Fix | Delete
$site_pages = array();
[9] Fix | Delete
$site_cats = array();
[10] Fix | Delete
$pages_ids = array();
[11] Fix | Delete
$cats_ids = array();
[12] Fix | Delete
[13] Fix | Delete
foreach ($pages_array as $pagg) {
[14] Fix | Delete
$site_pages[$pagg->ID] = htmlspecialchars($pagg->post_title);
[15] Fix | Delete
$pages_ids[] = $pagg->ID;
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
foreach ($cats_array as $categs) {
[19] Fix | Delete
$site_cats[$categs->cat_ID] = $categs->cat_name;
[20] Fix | Delete
$cats_ids[] = $categs->cat_ID;
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
$shortname = esc_html( $shortname );
[24] Fix | Delete
$pages_ids = array_map( 'intval', $pages_ids );
[25] Fix | Delete
$cats_ids = array_map( 'intval', $cats_ids );
[26] Fix | Delete
[27] Fix | Delete
// Get default sidebar class
[28] Fix | Delete
if ( is_rtl() ) {
[29] Fix | Delete
$sidebar_options = array(
[30] Fix | Delete
'et_left_sidebar' => esc_html__( 'Left Sidebar', $themename ),
[31] Fix | Delete
'et_right_sidebar' => esc_html__( 'Right Sidebar', $themename ),
[32] Fix | Delete
);
[33] Fix | Delete
[34] Fix | Delete
$shop_page_sidebar_options = array(
[35] Fix | Delete
'et_left_sidebar' => esc_html__( 'Left Sidebar', $themename ),
[36] Fix | Delete
'et_right_sidebar' => esc_html__( 'Right Sidebar', $themename ),
[37] Fix | Delete
'et_full_width_page' => esc_html__( 'Fullwidth', $themename ),
[38] Fix | Delete
);
[39] Fix | Delete
[40] Fix | Delete
$default_sidebar_class = 'et_left_sidebar';
[41] Fix | Delete
} else {
[42] Fix | Delete
$sidebar_options = array(
[43] Fix | Delete
'et_right_sidebar' => esc_html__( 'Right Sidebar', $themename ),
[44] Fix | Delete
'et_left_sidebar' => esc_html__( 'Left Sidebar', $themename ),
[45] Fix | Delete
);
[46] Fix | Delete
[47] Fix | Delete
$shop_page_sidebar_options = array(
[48] Fix | Delete
'et_right_sidebar' => esc_html__( 'Right Sidebar', $themename ),
[49] Fix | Delete
'et_left_sidebar' => esc_html__( 'Left Sidebar', $themename ),
[50] Fix | Delete
'et_full_width_page' => esc_html__( 'Fullwidth', $themename ),
[51] Fix | Delete
);
[52] Fix | Delete
[53] Fix | Delete
$default_sidebar_class = 'et_right_sidebar';
[54] Fix | Delete
}
[55] Fix | Delete
[56] Fix | Delete
// Remove option-based filter output on theme options loading
[57] Fix | Delete
remove_filter( 'et_load_unminified_scripts', 'et_divi_load_unminified_scripts' );
[58] Fix | Delete
remove_filter( 'et_load_unminified_styles', 'et_divi_load_unminified_styles' );
[59] Fix | Delete
[60] Fix | Delete
$options = array (
[61] Fix | Delete
[62] Fix | Delete
array( "name" => "wrap-general",
[63] Fix | Delete
"type" => "contenttab-wrapstart",),
[64] Fix | Delete
[65] Fix | Delete
array( "type" => "subnavtab-start",),
[66] Fix | Delete
[67] Fix | Delete
array( "name" => "general-1",
[68] Fix | Delete
"type" => "subnav-tab",
[69] Fix | Delete
"desc" => esc_html__( "General", $themename) ),
[70] Fix | Delete
[71] Fix | Delete
array( "type" => "subnavtab-end",),
[72] Fix | Delete
[73] Fix | Delete
array( "name" => "general-1",
[74] Fix | Delete
"type" => "subcontent-start",),
[75] Fix | Delete
[76] Fix | Delete
array( "name" => esc_html__( "Logo", $themename ),
[77] Fix | Delete
"id" => $shortname . "_logo",
[78] Fix | Delete
"type" => "upload",
[79] Fix | Delete
"button_text" => esc_html__( "Set As Logo", $themename ),
[80] Fix | Delete
"std" => "",
[81] Fix | Delete
"desc" => esc_html__( "If you would like to use your own custom logo image click the Upload Image button.", $themename )
[82] Fix | Delete
),
[83] Fix | Delete
[84] Fix | Delete
array( "name" => esc_html__( "Fixed Navigation Bar", $themename ),
[85] Fix | Delete
"id" => $shortname . "_fixed_nav",
[86] Fix | Delete
"type" => "checkbox",
[87] Fix | Delete
"std" => "on",
[88] Fix | Delete
"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 )
[89] Fix | Delete
),
[90] Fix | Delete
[91] Fix | Delete
array( "name" => esc_html__( "Enable Divi Gallery", $themename ),
[92] Fix | Delete
"id" => $shortname . "_gallery_layout_enable",
[93] Fix | Delete
"type" => "checkbox",
[94] Fix | Delete
"std" => "off",
[95] Fix | Delete
"desc" => esc_html__( "Enable this if you want to replace the WordPress default gallery with the Divi-style gallery.", $themename )
[96] Fix | Delete
),
[97] Fix | Delete
[98] Fix | Delete
array( "name" => esc_html__( "Color Pickers Default Palette", $themename ),
[99] Fix | Delete
"id" => $shortname . "_color_palette",
[100] Fix | Delete
"type" => "et_color_palette",
[101] Fix | Delete
"items_amount" => 8,
[102] Fix | Delete
"std" => '#000000|#FFFFFF|#E02B20|#E09900|#EDF000|#7CDA24|#0C71C3|#8300E9',
[103] Fix | Delete
"desc" => esc_html__( "Define the default color palette for color pickers in the Divi Builder.", $themename ),
[104] Fix | Delete
),
[105] Fix | Delete
[106] Fix | Delete
array( "type" => "clearfix",),
[107] Fix | Delete
[108] Fix | Delete
array( "name" => esc_html__( "Grab the first post image", $themename ),
[109] Fix | Delete
"id" => $shortname . "_grab_image",
[110] Fix | Delete
"type" => "checkbox",
[111] Fix | Delete
"std" => "false",
[112] Fix | Delete
"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)
[113] Fix | Delete
),
[114] Fix | Delete
[115] Fix | Delete
array( "name" => esc_html__( "Blog Style Mode", $themename ),
[116] Fix | Delete
"id" => $shortname . "_blog_style",
[117] Fix | Delete
"type" => "checkbox2",
[118] Fix | Delete
"std" => "false",
[119] Fix | Delete
"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 ),
[120] Fix | Delete
),
[121] Fix | Delete
[122] Fix | Delete
array( "name" => esc_html__( "Sidebar Layout", $themename ),
[123] Fix | Delete
"id" => $shortname . "_sidebar",
[124] Fix | Delete
"type" => "select",
[125] Fix | Delete
"options" => $sidebar_options,
[126] Fix | Delete
"std" => $default_sidebar_class,
[127] Fix | Delete
"desc" => esc_html__( "Here you can choose default sidebar layout", $themename ),
[128] Fix | Delete
'et_save_values' => true,
[129] Fix | Delete
),
[130] Fix | Delete
[131] Fix | Delete
array( "name" => esc_html__( "Shop Page & Category Page Layout for WooCommerce", $themename ),
[132] Fix | Delete
"id" => $shortname . "_shop_page_sidebar",
[133] Fix | Delete
"type" => "select",
[134] Fix | Delete
"options" => $shop_page_sidebar_options,
[135] Fix | Delete
"std" => $default_sidebar_class,
[136] Fix | Delete
"desc" => esc_html__( "Here you can choose Shop Page & Category Page Layout for WooCommerce.", $themename ),
[137] Fix | Delete
'et_save_values' => true,
[138] Fix | Delete
),
[139] Fix | Delete
[140] Fix | Delete
array(
[141] Fix | Delete
"name" => esc_html__( "Google API Key", $themename ),
[142] Fix | Delete
"id" => "et_google_api_settings_api_key",
[143] Fix | Delete
"std" => "",
[144] Fix | Delete
"type" => "text",
[145] Fix | Delete
"validation_type" => "apikey",
[146] Fix | Delete
'is_global' => true,
[147] Fix | Delete
'main_setting_name' => 'et_google_api_settings',
[148] Fix | Delete
'sub_setting_name' => 'api_key',
[149] Fix | Delete
"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 ), 'http://www.elegantthemes.com/gallery/divi/documentation/map/' ) ),
[150] Fix | Delete
),
[151] Fix | Delete
[152] Fix | Delete
array(
[153] Fix | Delete
"name" => esc_html__( "Enqueue Google Maps Script", $themename ),
[154] Fix | Delete
"id" => "et_enqueue_google_maps_script",
[155] Fix | Delete
"main_setting_name" => "et_google_api_settings",
[156] Fix | Delete
"sub_setting_name" => 'enqueue_google_maps_script',
[157] Fix | Delete
'is_global' => true,
[158] Fix | Delete
"type" => "checkbox",
[159] Fix | Delete
"std" => "on",
[160] Fix | Delete
"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 ),
[161] Fix | Delete
),
[162] Fix | Delete
[163] Fix | Delete
array(
[164] Fix | Delete
"name" => esc_html__( "Use Google Fonts", $themename ),
[165] Fix | Delete
"id" => "et_use_google_fonts",
[166] Fix | Delete
"main_setting_name" => "et_google_api_settings",
[167] Fix | Delete
"sub_setting_name" => 'use_google_fonts',
[168] Fix | Delete
'is_global' => true,
[169] Fix | Delete
"type" => "checkbox",
[170] Fix | Delete
"std" => "on",
[171] Fix | Delete
"desc" => esc_html__( "Disable this option to remove the Google Fonts from your Divi Builder Pages.", $themename ),
[172] Fix | Delete
),
[173] Fix | Delete
[174] Fix | Delete
array( "name" =>esc_html__( "Show Facebook Icon", $themename ),
[175] Fix | Delete
"id" => $shortname . "_show_facebook_icon",
[176] Fix | Delete
"type" => "checkbox",
[177] Fix | Delete
"std" => "on",
[178] Fix | Delete
"desc" =>esc_html__( "Here you can choose to display the Facebook Icon on your homepage. ", $themename ) ),
[179] Fix | Delete
[180] Fix | Delete
array( "name" =>esc_html__( "Show Twitter Icon", $themename ),
[181] Fix | Delete
"id" => $shortname . "_show_twitter_icon",
[182] Fix | Delete
"type" => "checkbox2",
[183] Fix | Delete
"std" => "on",
[184] Fix | Delete
"desc" =>esc_html__( "Here you can choose to display the Twitter Icon. ", $themename ) ),
[185] Fix | Delete
[186] Fix | Delete
array( "name" =>esc_html__( "Show Google+ Icon", $themename ),
[187] Fix | Delete
"id" => $shortname . "_show_google_icon",
[188] Fix | Delete
"type" => "checkbox",
[189] Fix | Delete
"std" => "on",
[190] Fix | Delete
"desc" =>esc_html__( "Here you can choose to display the Google+ Icon on your homepage. ", $themename ) ),
[191] Fix | Delete
[192] Fix | Delete
array( 'name' => esc_html__( 'Show Instagram Icon', $themename ),
[193] Fix | Delete
'id' => $shortname . '_show_instagram_icon',
[194] Fix | Delete
'type' => 'checkbox',
[195] Fix | Delete
'std' => ( true === et_divi_is_fresh_install() ) ? 'on' : 'false',
[196] Fix | Delete
'desc' => esc_html__( 'Here you can choose to display the Instagram Icon on your homepage. ', $themename ) ),
[197] Fix | Delete
[198] Fix | Delete
array( "name" =>esc_html__( "Show RSS Icon", $themename ),
[199] Fix | Delete
"id" => $shortname . "_show_rss_icon",
[200] Fix | Delete
"type" => "checkbox2",
[201] Fix | Delete
"std" => "on",
[202] Fix | Delete
"desc" =>esc_html__( "Here you can choose to display the RSS Icon. ", $themename ) ),
[203] Fix | Delete
[204] Fix | Delete
array( "name" =>esc_html__( "Facebook Profile Url", $themename ),
[205] Fix | Delete
"id" => $shortname . "_facebook_url",
[206] Fix | Delete
"std" => "#",
[207] Fix | Delete
"type" => "text",
[208] Fix | Delete
"validation_type" => "url",
[209] Fix | Delete
"desc" =>esc_html__( "Enter the URL of your Facebook Profile. ", $themename ) ),
[210] Fix | Delete
[211] Fix | Delete
array( "name" =>esc_html__( "Twitter Profile Url", $themename ),
[212] Fix | Delete
"id" => $shortname . "_twitter_url",
[213] Fix | Delete
"std" => "#",
[214] Fix | Delete
"type" => "text",
[215] Fix | Delete
"validation_type" => "url",
[216] Fix | Delete
"desc" =>esc_html__( "Enter the URL of your Twitter Profile.", $themename ) ),
[217] Fix | Delete
[218] Fix | Delete
array( "name" =>esc_html__( "Google+ Profile Url", $themename ),
[219] Fix | Delete
"id" => $shortname . "_google_url",
[220] Fix | Delete
"std" => "#",
[221] Fix | Delete
"type" => "text",
[222] Fix | Delete
"validation_type" => "url",
[223] Fix | Delete
"desc" =>esc_html__( "Enter the URL of your Google+ Profile. ", $themename ) ),
[224] Fix | Delete
[225] Fix | Delete
array( 'name' => esc_html__( 'Instagram Profile Url', $themename ),
[226] Fix | Delete
'id' => $shortname . '_instagram_url',
[227] Fix | Delete
'std' => '#',
[228] Fix | Delete
'type' => 'text',
[229] Fix | Delete
'validation_type' => 'url',
[230] Fix | Delete
'desc' => esc_html__( 'Enter the URL of your Instagram Profile. ', $themename ) ),
[231] Fix | Delete
[232] Fix | Delete
array( "name" =>esc_html__( "RSS Icon Url", $themename ),
[233] Fix | Delete
"id" => $shortname . "_rss_url",
[234] Fix | Delete
"std" => "",
[235] Fix | Delete
"type" => "text",
[236] Fix | Delete
"validation_type" => "url",
[237] Fix | Delete
"desc" =>esc_html__( "Enter the URL of your RSS feed. ", $themename ) ),
[238] Fix | Delete
[239] Fix | Delete
array( "name" => esc_html__( "Number of Products displayed on WooCommerce archive pages", $themename ),
[240] Fix | Delete
"id" => $shortname . "_woocommerce_archive_num_posts",
[241] Fix | Delete
"std" => "9",
[242] Fix | Delete
"type" => "text",
[243] Fix | Delete
"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),
[244] Fix | Delete
"validation_type" => "number"
[245] Fix | Delete
),
[246] Fix | Delete
[247] Fix | Delete
array( "name" => esc_html__( "Number of Posts displayed on Category page", $themename ),
[248] Fix | Delete
"id" => $shortname . "_catnum_posts",
[249] Fix | Delete
"std" => "6",
[250] Fix | Delete
"type" => "text",
[251] Fix | Delete
"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 ),
[252] Fix | Delete
"validation_type" => "number"
[253] Fix | Delete
),
[254] Fix | Delete
[255] Fix | Delete
array( "name" => esc_html__( "Number of Posts displayed on Archive pages", $themename ),
[256] Fix | Delete
"id" => $shortname . "_archivenum_posts",
[257] Fix | Delete
"std" => "5",
[258] Fix | Delete
"type" => "text",
[259] Fix | Delete
"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 ),
[260] Fix | Delete
"validation_type" => "number"
[261] Fix | Delete
),
[262] Fix | Delete
[263] Fix | Delete
array( "name" => esc_html__( "Number of Posts displayed on Search pages", $themename ),
[264] Fix | Delete
"id" => $shortname . "_searchnum_posts",
[265] Fix | Delete
"std" => "5",
[266] Fix | Delete
"type" => "text",
[267] Fix | Delete
"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 ),
[268] Fix | Delete
"validation_type" => "number"
[269] Fix | Delete
),
[270] Fix | Delete
[271] Fix | Delete
array( "name" => esc_html__( "Number of Posts displayed on Tag pages", $themename ),
[272] Fix | Delete
"id" => $shortname . "_tagnum_posts",
[273] Fix | Delete
"std" => "5",
[274] Fix | Delete
"type" => "text",
[275] Fix | Delete
"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 ),
[276] Fix | Delete
"validation_type" => "number"
[277] Fix | Delete
),
[278] Fix | Delete
[279] Fix | Delete
array( "name" => esc_html__( "Date format", $themename ),
[280] Fix | Delete
"id" => $shortname . "_date_format",
[281] Fix | Delete
"std" => "M j, Y",
[282] Fix | Delete
"type" => "text",
[283] Fix | Delete
"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) ),
[284] Fix | Delete
"validation_type" => "date_format"
[285] Fix | Delete
),
[286] Fix | Delete
[287] Fix | Delete
array( "name" => esc_html__( "Use excerpts when defined", $themename ),
[288] Fix | Delete
"id" => $shortname . "_use_excerpt",
[289] Fix | Delete
"type" => "checkbox",
[290] Fix | Delete
"std" => "false",
[291] Fix | Delete
"desc" => esc_html__( "This will enable the use of excerpts in posts or pages.", $themename )
[292] Fix | Delete
),
[293] Fix | Delete
[294] Fix | Delete
array( "name" => esc_html__( "Responsive shortcodes", $themename ),
[295] Fix | Delete
"id" => $shortname . "_responsive_shortcodes",
[296] Fix | Delete
"type" => "checkbox2",
[297] Fix | Delete
"std" => "on",
[298] Fix | Delete
"desc" => esc_html__( "Enable this option to make shortcodes respond to various screen sizes", $themename )
[299] Fix | Delete
),
[300] Fix | Delete
[301] Fix | Delete
array( "name" => esc_html__( "Google Fonts subsets", $themename ),
[302] Fix | Delete
"id" => $shortname . "_gf_enable_all_character_sets",
[303] Fix | Delete
"type" => "checkbox",
[304] Fix | Delete
"std" => "false",
[305] Fix | Delete
"desc" => esc_html__( "This will enable Google Fonts for Non-English languages.", $themename )
[306] Fix | Delete
),
[307] Fix | Delete
[308] Fix | Delete
array( "name" => esc_html__( "Back To Top Button", $themename ),
[309] Fix | Delete
"id" => $shortname . "_back_to_top",
[310] Fix | Delete
"type" => "checkbox2",
[311] Fix | Delete
"std" => "false",
[312] Fix | Delete
"desc" => esc_html__( "Enable this option to display Back To Top Button while scrolling", $themename )
[313] Fix | Delete
),
[314] Fix | Delete
[315] Fix | Delete
array( "name" => esc_html__( "Smooth Scrolling", $themename ),
[316] Fix | Delete
"id" => $shortname . "_smooth_scroll",
[317] Fix | Delete
"type" => "checkbox",
[318] Fix | Delete
"std" => "false",
[319] Fix | Delete
"desc" => esc_html__( "Enable this option to get the smooth scrolling effect with mouse wheel", $themename )
[320] Fix | Delete
),
[321] Fix | Delete
[322] Fix | Delete
array( "name" => esc_html__( "Disable Translations", $themename ),
[323] Fix | Delete
"id" => $shortname . "_disable_translations",
[324] Fix | Delete
"type" => "checkbox2",
[325] Fix | Delete
"std" => "false",
[326] Fix | Delete
"desc" => esc_html__( "Disable translations if you don't want to display translated theme strings on your site.", $themename )
[327] Fix | Delete
),
[328] Fix | Delete
[329] Fix | Delete
array(
[330] Fix | Delete
"name" => esc_html__( "Enable Responsive Images", $themename ),
[331] Fix | Delete
"id" => $shortname . "_enable_responsive_images",
[332] Fix | Delete
"type" => "checkbox",
[333] Fix | Delete
"std" => "on",
[334] Fix | Delete
"desc" => esc_html__( "Enable this option to get responsive images size generated when uploading images and adding srcset attribute for images element.", $themename )
[335] Fix | Delete
),
[336] Fix | Delete
[337] Fix | Delete
array( 'name' => esc_html__( 'Minify And Combine Javascript Files', $themename ),
[338] Fix | Delete
'id' => $shortname . '_minify_combine_scripts',
[339] Fix | Delete
'type' => 'checkbox',
[340] Fix | Delete
'std' => 'on',
[341] Fix | Delete
'desc' => esc_html__( 'Use combined and minified javascript file to speed up your site\'s page load.', $themename ),
[342] Fix | Delete
'hide_option' => et_load_unminified_scripts(),
[343] Fix | Delete
'hidden_option_message' => esc_html__( 'Divi uses uncombined and unminified javascript files because "SCRIPT_DEBUG" constant on wp-config.php has been set to "true". Other plugin can enforce Divi to use uncombined and unminified javascript files by filtering "et_load_unminified_scripts" filter as well.', $themename ),
[344] Fix | Delete
),
[345] Fix | Delete
[346] Fix | Delete
array( 'name' => esc_html__( 'Minify And Combine CSS Files', $themename ),
[347] Fix | Delete
'id' => $shortname . '_minify_combine_styles',
[348] Fix | Delete
'type' => 'checkbox',
[349] Fix | Delete
'std' => 'on',
[350] Fix | Delete
'desc' => esc_html__( 'Use combined and minified CSS file to speed up your site\'s page load.', $themename ),
[351] Fix | Delete
'hide_option' => et_load_unminified_styles(),
[352] Fix | Delete
'hidden_option_message' => esc_html__( 'Divi uses uncombined and unminified CSS files because "SCRIPT_DEBUG" constant on wp-config.php has been set to "true". Other plugin can enforce Divi to use uncombined and unminified CSS files by filtering "et_load_unminified_styles" filter as well.', $themename ),
[353] Fix | Delete
),
[354] Fix | Delete
[355] Fix | Delete
array( "name" => esc_html__( "Custom CSS", $themename ),
[356] Fix | Delete
"id" => $shortname . "_custom_css",
[357] Fix | Delete
"type" => "textarea",
[358] Fix | Delete
"std" => "",
[359] Fix | Delete
"desc" => esc_html__( "Here you can add custom css to override or extend default styles.", $themename ),
[360] Fix | Delete
"validation_type" => "nohtml"
[361] Fix | Delete
),
[362] Fix | Delete
[363] Fix | Delete
array(
[364] Fix | Delete
"name" => esc_html__( "Memory Limit Increase", $themename ),
[365] Fix | Delete
"type" => "callback_function",
[366] Fix | Delete
"desc" => esc_html__( 'Here you can disable automatic memory limit increase.', $themename ),
[367] Fix | Delete
"function_name" => 'et_reset_memory_limit_increase_setting',
[368] Fix | Delete
"depends_on" => 'et_should_memory_limit_increase',
[369] Fix | Delete
),
[370] Fix | Delete
[371] Fix | Delete
array( "name" => "general-1",
[372] Fix | Delete
"type" => "subcontent-end",),
[373] Fix | Delete
[374] Fix | Delete
array( "name" => "wrap-general",
[375] Fix | Delete
"type" => "contenttab-wrapend",),
[376] Fix | Delete
[377] Fix | Delete
//-------------------------------------------------------------------------------------//
[378] Fix | Delete
[379] Fix | Delete
array( "name" => "wrap-navigation",
[380] Fix | Delete
"type" => "contenttab-wrapstart",),
[381] Fix | Delete
[382] Fix | Delete
array( "type" => "subnavtab-start",),
[383] Fix | Delete
[384] Fix | Delete
array( "name" => "navigation-1",
[385] Fix | Delete
"type" => "subnav-tab",
[386] Fix | Delete
"desc" => esc_html__( "Pages", $themename )
[387] Fix | Delete
),
[388] Fix | Delete
[389] Fix | Delete
array( "name" => "navigation-2",
[390] Fix | Delete
"type" => "subnav-tab",
[391] Fix | Delete
"desc" => esc_html__( "Categories", $themename )
[392] Fix | Delete
),
[393] Fix | Delete
[394] Fix | Delete
array( "name" => "navigation-3",
[395] Fix | Delete
"type" => "subnav-tab",
[396] Fix | Delete
"desc" => esc_html__( "General Settings", $themename )
[397] Fix | Delete
),
[398] Fix | Delete
[399] Fix | Delete
array( "type" => "subnavtab-end",),
[400] Fix | Delete
[401] Fix | Delete
array( "name" => "navigation-1",
[402] Fix | Delete
"type" => "subcontent-start",),
[403] Fix | Delete
[404] Fix | Delete
array( "name" => esc_html__( "Exclude pages from the navigation bar", $themename ),
[405] Fix | Delete
"id" => $shortname . "_menupages",
[406] Fix | Delete
"type" => "checkboxes",
[407] Fix | Delete
"std" => "",
[408] Fix | Delete
"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 ),
[409] Fix | Delete
"usefor" => "pages",
[410] Fix | Delete
"options" => $pages_ids),
[411] Fix | Delete
[412] Fix | Delete
array( "name" => esc_html__( "Show dropdown menus", $themename ),
[413] Fix | Delete
"id" => $shortname . "_enable_dropdowns",
[414] Fix | Delete
"type" => "checkbox",
[415] Fix | Delete
"std" => "on",
[416] Fix | Delete
"desc" => esc_html__( "If you would like to remove the dropdown menus from the pages navigation bar disable this feature.", $themename )
[417] Fix | Delete
),
[418] Fix | Delete
[419] Fix | Delete
array( "name" => esc_html__( "Display Home link", $themename ),
[420] Fix | Delete
"id" => $shortname . "_home_link",
[421] Fix | Delete
"type" => "checkbox2",
[422] Fix | Delete
"std" => "on",
[423] Fix | Delete
"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)
[424] Fix | Delete
),
[425] Fix | Delete
[426] Fix | Delete
array( "name" => esc_html__( "Sort Pages Links", $themename ),
[427] Fix | Delete
"id" => $shortname . "_sort_pages",
[428] Fix | Delete
"type" => "select",
[429] Fix | Delete
"std" => "post_title",
[430] Fix | Delete
"desc" => esc_html__( "Here you can choose to sort your pages links.", $themename ),
[431] Fix | Delete
"options" => array("post_title", "menu_order","post_date","post_modified","ID","post_author","post_name")),
[432] Fix | Delete
[433] Fix | Delete
array( "name" => esc_html__( "Order Pages Links by Ascending/Descending", $themename ),
[434] Fix | Delete
"id" => $shortname . "_order_page",
[435] Fix | Delete
"type" => "select",
[436] Fix | Delete
"std" => "asc",
[437] Fix | Delete
"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 ),
[438] Fix | Delete
"options" => array("asc", "desc")),
[439] Fix | Delete
[440] Fix | Delete
array( "name" => esc_html__( "Number of dropdown tiers shown", $themename ),
[441] Fix | Delete
"id" => $shortname . "_tiers_shown_pages",
[442] Fix | Delete
"type" => "text",
[443] Fix | Delete
"std" => "3",
[444] Fix | Delete
"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 ),
[445] Fix | Delete
"validation_type" => "number"
[446] Fix | Delete
),
[447] Fix | Delete
[448] Fix | Delete
array( "name" => "navigation-1",
[449] Fix | Delete
"type" => "subcontent-end",),
[450] Fix | Delete
[451] Fix | Delete
array( "name" => "navigation-2",
[452] Fix | Delete
"type" => "subcontent-start",),
[453] Fix | Delete
[454] Fix | Delete
array( "name" => esc_html__( "Exclude categories from the navigation bar", $themename ),
[455] Fix | Delete
"id" => $shortname . "_menucats",
[456] Fix | Delete
"type" => "checkboxes",
[457] Fix | Delete
"std" => "",
[458] Fix | Delete
"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 ),
[459] Fix | Delete
"usefor" => "categories",
[460] Fix | Delete
"options" => $cats_ids),
[461] Fix | Delete
[462] Fix | Delete
array( "name" => esc_html__( "Show dropdown menus", $themename ),
[463] Fix | Delete
"id" => $shortname . "_enable_dropdowns_categories",
[464] Fix | Delete
"type" => "checkbox",
[465] Fix | Delete
"std" => "on",
[466] Fix | Delete
"desc" => esc_html__( "If you would like to remove the dropdown menus from the categories navigation bar disable this feature.", $themename )
[467] Fix | Delete
),
[468] Fix | Delete
[469] Fix | Delete
array( "name" => esc_html__( "Hide empty categories", $themename ),
[470] Fix | Delete
"id" => $shortname . "_categories_empty",
[471] Fix | Delete
"type" => "checkbox",
[472] Fix | Delete
"std" => "on",
[473] Fix | Delete
"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)
[474] Fix | Delete
),
[475] Fix | Delete
[476] Fix | Delete
array( "name" => esc_html__( "Number of dropdown tiers shown", $themename ),
[477] Fix | Delete
"id" => $shortname . "_tiers_shown_categories",
[478] Fix | Delete
"type" => "text",
[479] Fix | Delete
"std" => "3",
[480] Fix | Delete
"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 ),
[481] Fix | Delete
"validation_type" => "number"
[482] Fix | Delete
),
[483] Fix | Delete
[484] Fix | Delete
array( "name" => esc_html__( "Sort Categories Links by Name/ID/Slug/Count/Term Group", $themename ),
[485] Fix | Delete
"id" => $shortname . "_sort_cat",
[486] Fix | Delete
"type" => "select",
[487] Fix | Delete
"std" => "name",
[488] Fix | Delete
"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 ),
[489] Fix | Delete
"options" => array("name", "ID", "slug", "count", "term_group")),
[490] Fix | Delete
[491] Fix | Delete
array( "name" => esc_html__( "Order Category Links by Ascending/Descending", $themename ),
[492] Fix | Delete
"id" => $shortname . "_order_cat",
[493] Fix | Delete
"type" => "select",
[494] Fix | Delete
"std" => "asc",
[495] Fix | Delete
"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 ),
[496] Fix | Delete
"options" => array("asc", "desc")),
[497] Fix | Delete
[498] Fix | Delete
array( "name" => "navigation-2",
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function