Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi/includes/builder/module
File: FullwidthMenu.php
<?php
[0] Fix | Delete
[1] Fix | Delete
class ET_Builder_Module_Fullwidth_Menu extends ET_Builder_Module {
[2] Fix | Delete
/**
[3] Fix | Delete
* Menu module slug.
[4] Fix | Delete
*
[5] Fix | Delete
* @var string
[6] Fix | Delete
*/
[7] Fix | Delete
protected static $menu_slug = 'et_pb_fullwidth_menu';
[8] Fix | Delete
[9] Fix | Delete
function init() {
[10] Fix | Delete
$this->name = esc_html__( 'Fullwidth Menu', 'et_builder' );
[11] Fix | Delete
$this->plural = esc_html__( 'Fullwidth Menus', 'et_builder' );
[12] Fix | Delete
$this->slug = self::$menu_slug;
[13] Fix | Delete
$this->vb_support = 'on';
[14] Fix | Delete
$this->fullwidth = true;
[15] Fix | Delete
[16] Fix | Delete
$this->main_css_element = '%%order_class%%.' . self::$menu_slug;
[17] Fix | Delete
[18] Fix | Delete
$this->settings_modal_toggles = array(
[19] Fix | Delete
'general' => array(
[20] Fix | Delete
'toggles' => array(
[21] Fix | Delete
'main_content' => et_builder_i18n( 'Content' ),
[22] Fix | Delete
'image' => esc_html__( 'Logo', 'et_builder' ),
[23] Fix | Delete
'elements' => et_builder_i18n( 'Elements' ),
[24] Fix | Delete
),
[25] Fix | Delete
),
[26] Fix | Delete
'advanced' => array(
[27] Fix | Delete
'toggles' => array(
[28] Fix | Delete
'layout' => array(
[29] Fix | Delete
'title' => et_builder_i18n( 'Layout' ),
[30] Fix | Delete
'priority' => 19,
[31] Fix | Delete
),
[32] Fix | Delete
'menu' => array(
[33] Fix | Delete
'title' => esc_html__( 'Menu Text', 'et_builder' ),
[34] Fix | Delete
'priority' => 29,
[35] Fix | Delete
),
[36] Fix | Delete
'dropdown' => array(
[37] Fix | Delete
'title' => esc_html__( 'Dropdown Menu', 'et_builder' ),
[38] Fix | Delete
'priority' => 39,
[39] Fix | Delete
),
[40] Fix | Delete
'icon_settings' => array(
[41] Fix | Delete
'title' => esc_html__( 'Icons', 'et_builder' ),
[42] Fix | Delete
'priority' => 49,
[43] Fix | Delete
),
[44] Fix | Delete
'image_settings' => array(
[45] Fix | Delete
'title' => esc_html__( 'Logo', 'et_builder' ),
[46] Fix | Delete
'priority' => 59,
[47] Fix | Delete
),
[48] Fix | Delete
),
[49] Fix | Delete
),
[50] Fix | Delete
'custom_css' => array(
[51] Fix | Delete
'toggles' => array(
[52] Fix | Delete
'animation' => array(
[53] Fix | Delete
'title' => esc_html__( 'Animation', 'et_builder' ),
[54] Fix | Delete
'priority' => 90,
[55] Fix | Delete
),
[56] Fix | Delete
'attributes' => array(
[57] Fix | Delete
'title' => esc_html__( 'Attributes', 'et_builder' ),
[58] Fix | Delete
'priority' => 95,
[59] Fix | Delete
),
[60] Fix | Delete
),
[61] Fix | Delete
),
[62] Fix | Delete
);
[63] Fix | Delete
[64] Fix | Delete
$this->advanced_fields = array(
[65] Fix | Delete
'fonts' => array(
[66] Fix | Delete
'menu' => array(
[67] Fix | Delete
'label' => esc_html__( 'Menu', 'et_builder' ),
[68] Fix | Delete
'css' => array(
[69] Fix | Delete
'main' => "{$this->main_css_element} ul li a",
[70] Fix | Delete
'limited_main' => "{$this->main_css_element} ul li a, {$this->main_css_element} ul li",
[71] Fix | Delete
'hover' => "{$this->main_css_element} ul li:hover > a",
[72] Fix | Delete
),
[73] Fix | Delete
'line_height' => array(
[74] Fix | Delete
'default' => '1em',
[75] Fix | Delete
),
[76] Fix | Delete
'font_size' => array(
[77] Fix | Delete
'default' => '14px',
[78] Fix | Delete
'range_settings' => array(
[79] Fix | Delete
'min' => '12',
[80] Fix | Delete
'max' => '24',
[81] Fix | Delete
'step' => '1',
[82] Fix | Delete
),
[83] Fix | Delete
),
[84] Fix | Delete
'letter_spacing' => array(
[85] Fix | Delete
'default' => '0px',
[86] Fix | Delete
'range_settings' => array(
[87] Fix | Delete
'min' => '0',
[88] Fix | Delete
'max' => '8',
[89] Fix | Delete
'step' => '1',
[90] Fix | Delete
),
[91] Fix | Delete
),
[92] Fix | Delete
'hide_text_align' => true,
[93] Fix | Delete
),
[94] Fix | Delete
),
[95] Fix | Delete
'background' => array(
[96] Fix | Delete
'options' => array(
[97] Fix | Delete
'background_color' => array(
[98] Fix | Delete
'default' => '#ffffff',
[99] Fix | Delete
),
[100] Fix | Delete
),
[101] Fix | Delete
),
[102] Fix | Delete
'borders' => array(
[103] Fix | Delete
'default' => array(),
[104] Fix | Delete
'image' => array(
[105] Fix | Delete
'css' => array(
[106] Fix | Delete
'main' => array(
[107] Fix | Delete
'border_radii' => '%%order_class%% .et_pb_menu__logo-wrap .et_pb_menu__logo img',
[108] Fix | Delete
'border_styles' => '%%order_class%% .et_pb_menu__logo-wrap .et_pb_menu__logo img',
[109] Fix | Delete
),
[110] Fix | Delete
),
[111] Fix | Delete
'label_prefix' => esc_html__( 'Logo', 'et_builder' ),
[112] Fix | Delete
'tab_slug' => 'advanced',
[113] Fix | Delete
'toggle_slug' => 'image_settings',
[114] Fix | Delete
),
[115] Fix | Delete
),
[116] Fix | Delete
'box_shadow' => array(
[117] Fix | Delete
'default' => array(
[118] Fix | Delete
'css' => array(
[119] Fix | Delete
'main' => '%%order_class%%, %%order_class%% .sub-menu',
[120] Fix | Delete
'overlay' => 'inset',
[121] Fix | Delete
),
[122] Fix | Delete
),
[123] Fix | Delete
'image' => array(
[124] Fix | Delete
'label' => esc_html__( 'Logo Box Shadow', 'et_builder' ),
[125] Fix | Delete
'option_category' => 'layout',
[126] Fix | Delete
'tab_slug' => 'advanced',
[127] Fix | Delete
'toggle_slug' => 'image_settings',
[128] Fix | Delete
'css' => array(
[129] Fix | Delete
'main' => '%%order_class%% .et_pb_menu__logo-wrap .et_pb_menu__logo',
[130] Fix | Delete
'overlay' => 'inset',
[131] Fix | Delete
),
[132] Fix | Delete
),
[133] Fix | Delete
),
[134] Fix | Delete
'text' => array(
[135] Fix | Delete
'use_background_layout' => true,
[136] Fix | Delete
'toggle_slug' => 'menu',
[137] Fix | Delete
'options' => array(
[138] Fix | Delete
'text_orientation' => array(
[139] Fix | Delete
'default_on_front' => 'left',
[140] Fix | Delete
'depends_show_if' => 'left_aligned',
[141] Fix | Delete
'depends_on' => array(
[142] Fix | Delete
'menu_style',
[143] Fix | Delete
),
[144] Fix | Delete
),
[145] Fix | Delete
'background_layout' => array(
[146] Fix | Delete
'default_on_front' => 'light',
[147] Fix | Delete
'hover' => 'tabs',
[148] Fix | Delete
),
[149] Fix | Delete
),
[150] Fix | Delete
),
[151] Fix | Delete
'filters' => array(
[152] Fix | Delete
'child_filters_target' => array(
[153] Fix | Delete
'tab_slug' => 'advanced',
[154] Fix | Delete
'toggle_slug' => 'image_settings',
[155] Fix | Delete
'css' => array(
[156] Fix | Delete
'main' => '%%order_class%% .et_pb_menu__logo-wrap img',
[157] Fix | Delete
),
[158] Fix | Delete
),
[159] Fix | Delete
),
[160] Fix | Delete
'image' => array(
[161] Fix | Delete
'css' => array(
[162] Fix | Delete
'main' => '%%order_class%% .et_pb_menu__logo-wrap img',
[163] Fix | Delete
),
[164] Fix | Delete
),
[165] Fix | Delete
'button' => false,
[166] Fix | Delete
);
[167] Fix | Delete
[168] Fix | Delete
$this->custom_css_fields = array(
[169] Fix | Delete
'menu_link' => array(
[170] Fix | Delete
'label' => esc_html__( 'Menu Link', 'et_builder' ),
[171] Fix | Delete
'selector' => '.et-menu-nav li a',
[172] Fix | Delete
),
[173] Fix | Delete
'active_menu_link' => array(
[174] Fix | Delete
'label' => esc_html__( 'Active Menu Link', 'et_builder' ),
[175] Fix | Delete
'selector' => '.et-menu-nav li.current-menu-item a',
[176] Fix | Delete
),
[177] Fix | Delete
'dropdown_container' => array(
[178] Fix | Delete
'label' => esc_html__( 'Dropdown Menu Container', 'et_builder' ),
[179] Fix | Delete
'selector' => '.et-menu-nav li ul.sub-menu',
[180] Fix | Delete
),
[181] Fix | Delete
'dropdown_links' => array(
[182] Fix | Delete
'label' => esc_html__( 'Dropdown Menu Links', 'et_builder' ),
[183] Fix | Delete
'selector' => '.et-menu-nav li ul.sub-menu a',
[184] Fix | Delete
),
[185] Fix | Delete
'menu_logo' => array(
[186] Fix | Delete
'label' => esc_html__( 'Menu Logo', 'et_builder' ),
[187] Fix | Delete
'selector' => '.et_pb_menu__logo',
[188] Fix | Delete
),
[189] Fix | Delete
);
[190] Fix | Delete
[191] Fix | Delete
$this->help_videos = array(
[192] Fix | Delete
array(
[193] Fix | Delete
'id' => 'Q2heZC2GbNg',
[194] Fix | Delete
'name' => esc_html__( 'An introduction to the Fullwidth Menu module', 'et_builder' ),
[195] Fix | Delete
),
[196] Fix | Delete
);
[197] Fix | Delete
}
[198] Fix | Delete
[199] Fix | Delete
[200] Fix | Delete
function get_fields() {
[201] Fix | Delete
$et_accent_color = et_builder_accent_color();
[202] Fix | Delete
[203] Fix | Delete
$fields = array(
[204] Fix | Delete
'menu_id' => array(
[205] Fix | Delete
'label' => esc_html__( 'Menu', 'et_builder' ),
[206] Fix | Delete
'type' => 'select',
[207] Fix | Delete
'option_category' => 'basic_option',
[208] Fix | Delete
'options' => et_builder_get_nav_menus_options(),
[209] Fix | Delete
'description' => sprintf(
[210] Fix | Delete
'<p class="description">%2$s. <a href="%1$s" target="_blank">%3$s</a>.</p>',
[211] Fix | Delete
esc_url( admin_url( 'nav-menus.php' ) ),
[212] Fix | Delete
esc_html__( 'Select a menu that should be used in the module', 'et_builder' ),
[213] Fix | Delete
esc_html__( 'Click here to create new menu', 'et_builder' )
[214] Fix | Delete
),
[215] Fix | Delete
'toggle_slug' => 'main_content',
[216] Fix | Delete
'computed_affects' => array(
[217] Fix | Delete
'__menu',
[218] Fix | Delete
),
[219] Fix | Delete
),
[220] Fix | Delete
'menu_style' => array(
[221] Fix | Delete
'label' => esc_html__( 'Style', 'et_builder' ),
[222] Fix | Delete
'type' => 'select',
[223] Fix | Delete
'option_category' => 'layout',
[224] Fix | Delete
'options' => array(
[225] Fix | Delete
'left_aligned' => esc_html__( 'Left Aligned', 'et_builder' ),
[226] Fix | Delete
'centered' => esc_html__( 'Centered', 'et_builder' ),
[227] Fix | Delete
'inline_centered_logo' => esc_html__( 'Inline Centered Logo', 'et_builder' ),
[228] Fix | Delete
),
[229] Fix | Delete
'default' => 'left_aligned',
[230] Fix | Delete
'tab_slug' => 'advanced',
[231] Fix | Delete
'toggle_slug' => 'layout',
[232] Fix | Delete
),
[233] Fix | Delete
'submenu_direction' => array(
[234] Fix | Delete
'label' => esc_html__( 'Dropdown Menu Direction', 'et_builder' ),
[235] Fix | Delete
'type' => 'select',
[236] Fix | Delete
'option_category' => 'configuration',
[237] Fix | Delete
'options' => array(
[238] Fix | Delete
'downwards' => esc_html__( 'Downwards', 'et_builder' ),
[239] Fix | Delete
'upwards' => esc_html__( 'Upwards', 'et_builder' ),
[240] Fix | Delete
),
[241] Fix | Delete
'tab_slug' => 'advanced',
[242] Fix | Delete
'toggle_slug' => 'layout',
[243] Fix | Delete
'description' => esc_html__( 'Here you can choose the direction that your sub-menus will open. You can choose to have them open downwards or upwards.', 'et_builder' ),
[244] Fix | Delete
'computed_affects' => array(
[245] Fix | Delete
'__menu',
[246] Fix | Delete
),
[247] Fix | Delete
),
[248] Fix | Delete
'fullwidth_menu' => array(
[249] Fix | Delete
'label' => esc_html__( 'Make Menu Links Fullwidth', 'et_builder' ),
[250] Fix | Delete
'description' => esc_html__( 'Menu width is limited by your website content width. Enabling this option will extend the menu the full width of the browser window.', 'et_builder' ),
[251] Fix | Delete
'type' => 'yes_no_button',
[252] Fix | Delete
'option_category' => 'layout',
[253] Fix | Delete
'options' => array(
[254] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[255] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[256] Fix | Delete
),
[257] Fix | Delete
'tab_slug' => 'advanced',
[258] Fix | Delete
'toggle_slug' => 'layout',
[259] Fix | Delete
),
[260] Fix | Delete
'active_link_color' => array(
[261] Fix | Delete
'label' => esc_html__( 'Active Link Color', 'et_builder' ),
[262] Fix | Delete
'description' => esc_html__( 'An active link is the page currently being visited. You can pick a color to be applied to active links to differentiate them from other links.', 'et_builder' ),
[263] Fix | Delete
'type' => 'color-alpha',
[264] Fix | Delete
'custom_color' => true,
[265] Fix | Delete
'tab_slug' => 'advanced',
[266] Fix | Delete
'toggle_slug' => 'menu',
[267] Fix | Delete
'hover' => 'tabs',
[268] Fix | Delete
'mobile_options' => true,
[269] Fix | Delete
'sticky' => true,
[270] Fix | Delete
),
[271] Fix | Delete
'dropdown_menu_bg_color' => array(
[272] Fix | Delete
'label' => esc_html__( 'Dropdown Menu Background Color', 'et_builder' ),
[273] Fix | Delete
'description' => esc_html__( 'Pick a color to be applied to the background of dropdown menus. Dropdown menus appear when hovering over links with sub items.', 'et_builder' ),
[274] Fix | Delete
'type' => 'color-alpha',
[275] Fix | Delete
'custom_color' => true,
[276] Fix | Delete
'tab_slug' => 'advanced',
[277] Fix | Delete
'toggle_slug' => 'dropdown',
[278] Fix | Delete
'hover' => 'tabs',
[279] Fix | Delete
'sticky' => true,
[280] Fix | Delete
),
[281] Fix | Delete
'dropdown_menu_line_color' => array(
[282] Fix | Delete
'label' => esc_html__( 'Dropdown Menu Line Color', 'et_builder' ),
[283] Fix | Delete
'description' => esc_html__( 'Pick a color to be used for the dividing line between links in dropdown menus. Dropdown menus appear when hovering over links with sub items.', 'et_builder' ),
[284] Fix | Delete
'type' => 'color-alpha',
[285] Fix | Delete
'custom_color' => true,
[286] Fix | Delete
'tab_slug' => 'advanced',
[287] Fix | Delete
'toggle_slug' => 'dropdown',
[288] Fix | Delete
'hover' => 'tabs',
[289] Fix | Delete
'mobile_options' => true,
[290] Fix | Delete
'sticky' => true,
[291] Fix | Delete
),
[292] Fix | Delete
'dropdown_menu_text_color' => array(
[293] Fix | Delete
'label' => esc_html__( 'Dropdown Menu Text Color', 'et_builder' ),
[294] Fix | Delete
'description' => esc_html__( 'Pick a color to be used for links in dropdown menus. Dropdown menus appear when hovering over links with sub items.', 'et_builder' ),
[295] Fix | Delete
'type' => 'color-alpha',
[296] Fix | Delete
'custom_color' => true,
[297] Fix | Delete
'tab_slug' => 'advanced',
[298] Fix | Delete
'toggle_slug' => 'dropdown',
[299] Fix | Delete
'hover' => 'tabs',
[300] Fix | Delete
'sticky' => true,
[301] Fix | Delete
),
[302] Fix | Delete
'dropdown_menu_active_link_color' => array(
[303] Fix | Delete
'label' => esc_html__( 'Dropdown Menu Active Link Color', 'et_builder' ),
[304] Fix | Delete
'description' => esc_html__( 'Pick a color to be used for active links in dropdown menus. Dropdown menus appear when hovering over links with sub items.', 'et_builder' ),
[305] Fix | Delete
'type' => 'color-alpha',
[306] Fix | Delete
'custom_color' => true,
[307] Fix | Delete
'tab_slug' => 'advanced',
[308] Fix | Delete
'toggle_slug' => 'dropdown',
[309] Fix | Delete
'hover' => 'tabs',
[310] Fix | Delete
'sticky' => true,
[311] Fix | Delete
),
[312] Fix | Delete
'mobile_menu_bg_color' => array(
[313] Fix | Delete
'label' => esc_html__( 'Mobile Menu Background Color', 'et_builder' ),
[314] Fix | Delete
'description' => esc_html__( 'Pick a unique color to be used for the menu background color when viewed on a mobile device.', 'et_builder' ),
[315] Fix | Delete
'type' => 'color-alpha',
[316] Fix | Delete
'custom_color' => true,
[317] Fix | Delete
'tab_slug' => 'advanced',
[318] Fix | Delete
'toggle_slug' => 'dropdown',
[319] Fix | Delete
'hover' => 'tabs',
[320] Fix | Delete
'mobile_options' => true,
[321] Fix | Delete
'sticky' => true,
[322] Fix | Delete
),
[323] Fix | Delete
'mobile_menu_text_color' => array(
[324] Fix | Delete
'label' => esc_html__( 'Mobile Menu Text Color', 'et_builder' ),
[325] Fix | Delete
'description' => esc_html__( 'Pick a color to be used for links in mobile menus.', 'et_builder' ),
[326] Fix | Delete
'type' => 'color-alpha',
[327] Fix | Delete
'custom_color' => true,
[328] Fix | Delete
'tab_slug' => 'advanced',
[329] Fix | Delete
'toggle_slug' => 'dropdown',
[330] Fix | Delete
'hover' => 'tabs',
[331] Fix | Delete
'mobile_options' => true,
[332] Fix | Delete
'sticky' => true,
[333] Fix | Delete
),
[334] Fix | Delete
'__menu' => array(
[335] Fix | Delete
'type' => 'computed',
[336] Fix | Delete
'computed_callback' => array( 'ET_Builder_Module_Fullwidth_Menu', 'get_fullwidth_menu' ),
[337] Fix | Delete
'computed_depends_on' => array(
[338] Fix | Delete
'menu_id',
[339] Fix | Delete
'submenu_direction',
[340] Fix | Delete
),
[341] Fix | Delete
),
[342] Fix | Delete
'logo' => array(
[343] Fix | Delete
'label' => esc_html__( 'Logo', 'et_builder' ),
[344] Fix | Delete
'type' => 'upload',
[345] Fix | Delete
'option_category' => 'basic_option',
[346] Fix | Delete
'upload_button_text' => et_builder_i18n( 'Upload an image' ),
[347] Fix | Delete
'choose_text' => esc_attr__( 'Choose an Image', 'et_builder' ),
[348] Fix | Delete
'update_text' => esc_attr__( 'Set As Logo', 'et_builder' ),
[349] Fix | Delete
'description' => esc_html__( 'Upload an image to display beside your menu.', 'et_builder' ),
[350] Fix | Delete
'toggle_slug' => 'image',
[351] Fix | Delete
'dynamic_content' => 'image',
[352] Fix | Delete
'mobile_options' => true,
[353] Fix | Delete
'hover' => 'tabs',
[354] Fix | Delete
),
[355] Fix | Delete
'logo_url' => array(
[356] Fix | Delete
'label' => esc_html__( 'Logo Link URL', 'et_builder' ),
[357] Fix | Delete
'type' => 'text',
[358] Fix | Delete
'option_category' => 'basic_option',
[359] Fix | Delete
'description' => esc_html__( 'If you would like to make your logo a link, input your destination URL here.', 'et_builder' ),
[360] Fix | Delete
'toggle_slug' => 'link_options',
[361] Fix | Delete
'dynamic_content' => 'url',
[362] Fix | Delete
),
[363] Fix | Delete
'logo_url_new_window' => array(
[364] Fix | Delete
'label' => esc_html__( 'Logo Link Target', 'et_builder' ),
[365] Fix | Delete
'type' => 'select',
[366] Fix | Delete
'option_category' => 'configuration',
[367] Fix | Delete
'options' => array(
[368] Fix | Delete
'off' => esc_html__( 'In The Same Window', 'et_builder' ),
[369] Fix | Delete
'on' => esc_html__( 'In The New Tab', 'et_builder' ),
[370] Fix | Delete
),
[371] Fix | Delete
'toggle_slug' => 'link_options',
[372] Fix | Delete
'description' => esc_html__( 'Here you can choose whether or not your link opens in a new window', 'et_builder' ),
[373] Fix | Delete
'default_on_front' => 'off',
[374] Fix | Delete
),
[375] Fix | Delete
'logo_alt' => array(
[376] Fix | Delete
'label' => esc_html__( 'Logo Alt Text', 'et_builder' ),
[377] Fix | Delete
'type' => 'text',
[378] Fix | Delete
'option_category' => 'basic_option',
[379] Fix | Delete
'description' => esc_html__( 'Define the HTML ALT text for your logo here.', 'et_builder' ),
[380] Fix | Delete
'tab_slug' => 'custom_css',
[381] Fix | Delete
'toggle_slug' => 'attributes',
[382] Fix | Delete
'dynamic_content' => 'text',
[383] Fix | Delete
),
[384] Fix | Delete
'logo_max_width' => array(
[385] Fix | Delete
'label' => esc_html__( 'Logo Max Width', 'et_builder' ),
[386] Fix | Delete
'description' => esc_html__( 'Adjust the maximum width of the logo.', 'et_builder' ),
[387] Fix | Delete
'type' => 'range',
[388] Fix | Delete
'option_category' => 'layout',
[389] Fix | Delete
'tab_slug' => 'advanced',
[390] Fix | Delete
'toggle_slug' => 'width',
[391] Fix | Delete
'mobile_options' => true,
[392] Fix | Delete
'sticky' => true,
[393] Fix | Delete
'validate_unit' => true,
[394] Fix | Delete
'allowed_values' => et_builder_get_acceptable_css_string_values( 'max-width' ),
[395] Fix | Delete
'default' => '100%',
[396] Fix | Delete
'default_unit' => '%',
[397] Fix | Delete
'range_settings' => array(
[398] Fix | Delete
'min' => '0',
[399] Fix | Delete
'max' => '100',
[400] Fix | Delete
'step' => '1',
[401] Fix | Delete
),
[402] Fix | Delete
'responsive' => true,
[403] Fix | Delete
'hover' => 'tabs',
[404] Fix | Delete
),
[405] Fix | Delete
'logo_max_height' => array(
[406] Fix | Delete
'label' => esc_html__( 'Logo Max Height', 'et_builder' ),
[407] Fix | Delete
'description' => esc_html__( 'Adjust the maximum height of the logo.', 'et_builder' ),
[408] Fix | Delete
'type' => 'range',
[409] Fix | Delete
'option_category' => 'layout',
[410] Fix | Delete
'tab_slug' => 'advanced',
[411] Fix | Delete
'toggle_slug' => 'width',
[412] Fix | Delete
'mobile_options' => true,
[413] Fix | Delete
'sticky' => true,
[414] Fix | Delete
'validate_unit' => true,
[415] Fix | Delete
'allowed_values' => et_builder_get_acceptable_css_string_values( 'max-height' ),
[416] Fix | Delete
'default' => 'none',
[417] Fix | Delete
'default_unit' => 'px',
[418] Fix | Delete
'range_settings' => array(
[419] Fix | Delete
'min' => '0',
[420] Fix | Delete
'max' => '200',
[421] Fix | Delete
'step' => '1',
[422] Fix | Delete
),
[423] Fix | Delete
'responsive' => true,
[424] Fix | Delete
'hover' => 'tabs',
[425] Fix | Delete
),
[426] Fix | Delete
'show_cart_icon' => array(
[427] Fix | Delete
'label' => esc_html__( 'Show Shopping Cart Icon', 'et_builder' ),
[428] Fix | Delete
'type' => 'yes_no_button',
[429] Fix | Delete
'option_category' => 'layout',
[430] Fix | Delete
'options' => array(
[431] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[432] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[433] Fix | Delete
),
[434] Fix | Delete
'default' => 'off',
[435] Fix | Delete
'toggle_slug' => 'elements',
[436] Fix | Delete
'mobile_options' => true,
[437] Fix | Delete
'sticky' => true,
[438] Fix | Delete
'responsive' => true,
[439] Fix | Delete
'hover' => 'tabs',
[440] Fix | Delete
),
[441] Fix | Delete
'show_search_icon' => array(
[442] Fix | Delete
'label' => esc_html__( 'Show Search Icon', 'et_builder' ),
[443] Fix | Delete
'type' => 'yes_no_button',
[444] Fix | Delete
'option_category' => 'layout',
[445] Fix | Delete
'options' => array(
[446] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[447] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[448] Fix | Delete
),
[449] Fix | Delete
'default' => 'off',
[450] Fix | Delete
'toggle_slug' => 'elements',
[451] Fix | Delete
'mobile_options' => true,
[452] Fix | Delete
'sticky' => true,
[453] Fix | Delete
'responsive' => true,
[454] Fix | Delete
'hover' => 'tabs',
[455] Fix | Delete
),
[456] Fix | Delete
'cart_icon_color' => array(
[457] Fix | Delete
'default' => $et_accent_color,
[458] Fix | Delete
'label' => esc_html__( 'Shopping Cart Icon Color', 'et_builder' ),
[459] Fix | Delete
'type' => 'color-alpha',
[460] Fix | Delete
'description' => esc_html__( 'Here you can define a custom color for your shopping cart icon.', 'et_builder' ),
[461] Fix | Delete
'tab_slug' => 'advanced',
[462] Fix | Delete
'toggle_slug' => 'icon_settings',
[463] Fix | Delete
'hover' => 'tabs',
[464] Fix | Delete
'mobile_options' => true,
[465] Fix | Delete
'sticky' => true,
[466] Fix | Delete
),
[467] Fix | Delete
'search_icon_color' => array(
[468] Fix | Delete
'default' => $et_accent_color,
[469] Fix | Delete
'label' => esc_html__( 'Search Icon Color', 'et_builder' ),
[470] Fix | Delete
'type' => 'color-alpha',
[471] Fix | Delete
'description' => esc_html__( 'Here you can define a custom color for your search icon.', 'et_builder' ),
[472] Fix | Delete
'tab_slug' => 'advanced',
[473] Fix | Delete
'toggle_slug' => 'icon_settings',
[474] Fix | Delete
'hover' => 'tabs',
[475] Fix | Delete
'mobile_options' => true,
[476] Fix | Delete
'sticky' => true,
[477] Fix | Delete
),
[478] Fix | Delete
'menu_icon_color' => array(
[479] Fix | Delete
'default' => $et_accent_color,
[480] Fix | Delete
'label' => esc_html__( 'Hamburger Menu Icon Color', 'et_builder' ),
[481] Fix | Delete
'type' => 'color-alpha',
[482] Fix | Delete
'description' => esc_html__( 'Here you can define a custom color for your hamburger menu icon.', 'et_builder' ),
[483] Fix | Delete
'tab_slug' => 'advanced',
[484] Fix | Delete
'toggle_slug' => 'icon_settings',
[485] Fix | Delete
'hover' => 'tabs',
[486] Fix | Delete
'mobile_options' => true,
[487] Fix | Delete
'sticky' => true,
[488] Fix | Delete
),
[489] Fix | Delete
'cart_icon_font_size' => array(
[490] Fix | Delete
'label' => esc_html__( 'Shopping Cart Icon Font Size', 'et_builder' ),
[491] Fix | Delete
'description' => esc_html__( 'Control the size of the icon by increasing or decreasing the font size.', 'et_builder' ),
[492] Fix | Delete
'type' => 'range',
[493] Fix | Delete
'option_category' => 'font_option',
[494] Fix | Delete
'tab_slug' => 'advanced',
[495] Fix | Delete
'toggle_slug' => 'icon_settings',
[496] Fix | Delete
'default' => '17px',
[497] Fix | Delete
'default_unit' => 'px',
[498] Fix | Delete
'default_on_front' => '',
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function