Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi/includes/builder/module
File: SliderItem.php
<?php
[0] Fix | Delete
[1] Fix | Delete
require_once 'helpers/Slider.php';
[2] Fix | Delete
[3] Fix | Delete
class ET_Builder_Module_Slider_Item extends ET_Builder_Module {
[4] Fix | Delete
function init() {
[5] Fix | Delete
$this->name = et_builder_i18n( 'Slide' );
[6] Fix | Delete
$this->plural = esc_html__( 'Slides', 'et_builder' );
[7] Fix | Delete
$this->slug = 'et_pb_slide';
[8] Fix | Delete
$this->vb_support = 'on';
[9] Fix | Delete
$this->type = 'child';
[10] Fix | Delete
$this->child_title_var = 'admin_title';
[11] Fix | Delete
$this->child_title_fallback_var = 'heading';
[12] Fix | Delete
$this->advanced_setting_title_text = esc_html__( 'New Slide', 'et_builder' );
[13] Fix | Delete
$this->settings_text = esc_html__( 'Slide Settings', 'et_builder' );
[14] Fix | Delete
$this->main_css_element = '%%order_class%%';
[15] Fix | Delete
[16] Fix | Delete
$this->settings_modal_toggles = array(
[17] Fix | Delete
'general' => array(
[18] Fix | Delete
'toggles' => array(
[19] Fix | Delete
'main_content' => et_builder_i18n( 'Text' ),
[20] Fix | Delete
'image_video' => esc_html__( 'Image & Video', 'et_builder' ),
[21] Fix | Delete
'player_pause' => esc_html__( 'Player Pause', 'et_builder' ),
[22] Fix | Delete
'admin_label' => array(
[23] Fix | Delete
'title' => et_builder_i18n( 'Admin Label' ),
[24] Fix | Delete
'priority' => 99,
[25] Fix | Delete
),
[26] Fix | Delete
),
[27] Fix | Delete
),
[28] Fix | Delete
'advanced' => array(
[29] Fix | Delete
'toggles' => array(
[30] Fix | Delete
'overlay' => et_builder_i18n( 'Overlay' ),
[31] Fix | Delete
'navigation' => esc_html__( 'Navigation', 'et_builder' ),
[32] Fix | Delete
'image' => array(
[33] Fix | Delete
'title' => et_builder_i18n( 'Image' ),
[34] Fix | Delete
),
[35] Fix | Delete
'text' => array(
[36] Fix | Delete
'title' => et_builder_i18n( 'Text' ),
[37] Fix | Delete
'priority' => 49,
[38] Fix | Delete
),
[39] Fix | Delete
),
[40] Fix | Delete
),
[41] Fix | Delete
'custom_css' => array(
[42] Fix | Delete
'toggles' => array(
[43] Fix | Delete
'attributes' => array(
[44] Fix | Delete
'title' => esc_html__( 'Attributes', 'et_builder' ),
[45] Fix | Delete
'priority' => 95,
[46] Fix | Delete
),
[47] Fix | Delete
),
[48] Fix | Delete
),
[49] Fix | Delete
);
[50] Fix | Delete
[51] Fix | Delete
$this->advanced_fields = array(
[52] Fix | Delete
'fonts' => array(
[53] Fix | Delete
'header' => array(
[54] Fix | Delete
'label' => et_builder_i18n( 'Title' ),
[55] Fix | Delete
'css' => array(
[56] Fix | Delete
'main' => ".et_pb_slider {$this->main_css_element}.et_pb_slide .et_pb_slide_description .et_pb_slide_title",
[57] Fix | Delete
'limited_main' => ".et_pb_slider {$this->main_css_element}.et_pb_slide .et_pb_slide_description .et_pb_slide_title, .et_pb_slider {$this->main_css_element}.et_pb_slide .et_pb_slide_description .et_pb_slide_title a",
[58] Fix | Delete
'important' => 'all',
[59] Fix | Delete
),
[60] Fix | Delete
'line_height' => array(
[61] Fix | Delete
'range_settings' => array(
[62] Fix | Delete
'min' => '1',
[63] Fix | Delete
'max' => '100',
[64] Fix | Delete
'step' => '0.1',
[65] Fix | Delete
),
[66] Fix | Delete
),
[67] Fix | Delete
'header_level' => array(
[68] Fix | Delete
'default' => 'h2',
[69] Fix | Delete
),
[70] Fix | Delete
),
[71] Fix | Delete
'body' => array(
[72] Fix | Delete
'label' => et_builder_i18n( 'Body' ),
[73] Fix | Delete
'css' => array(
[74] Fix | Delete
'main' => ".et_pb_slider.et_pb_module {$this->main_css_element}.et_pb_slide .et_pb_slide_description .et_pb_slide_content",
[75] Fix | Delete
'line_height' => "{$this->main_css_element} p",
[76] Fix | Delete
'important' => 'all',
[77] Fix | Delete
),
[78] Fix | Delete
'line_height' => array(
[79] Fix | Delete
'range_settings' => array(
[80] Fix | Delete
'min' => '1',
[81] Fix | Delete
'max' => '100',
[82] Fix | Delete
'step' => '0.1',
[83] Fix | Delete
),
[84] Fix | Delete
),
[85] Fix | Delete
'block_elements' => array(
[86] Fix | Delete
'tabbed_subtoggles' => true,
[87] Fix | Delete
'bb_icons_support' => true,
[88] Fix | Delete
),
[89] Fix | Delete
),
[90] Fix | Delete
),
[91] Fix | Delete
'button' => array(
[92] Fix | Delete
'button' => array(
[93] Fix | Delete
'label' => et_builder_i18n( 'Button' ),
[94] Fix | Delete
'css' => array(
[95] Fix | Delete
'main' => ".et_pb_slider {$this->main_css_element}.et_pb_slide .et_pb_more_button.et_pb_button",
[96] Fix | Delete
'limited_main' => ".et_pb_slider {$this->main_css_element}.et_pb_slide .et_pb_more_button.et_pb_button",
[97] Fix | Delete
'alignment' => ".et_pb_slider {$this->main_css_element} .et_pb_slide_description .et_pb_button_wrapper",
[98] Fix | Delete
),
[99] Fix | Delete
'use_alignment' => true,
[100] Fix | Delete
'box_shadow' => array(
[101] Fix | Delete
'css' => array(
[102] Fix | Delete
'main' => '%%order_class%% .et_pb_button',
[103] Fix | Delete
'important' => true,
[104] Fix | Delete
),
[105] Fix | Delete
),
[106] Fix | Delete
'margin_padding' => array(
[107] Fix | Delete
'css' => array(
[108] Fix | Delete
'important' => 'all',
[109] Fix | Delete
),
[110] Fix | Delete
),
[111] Fix | Delete
),
[112] Fix | Delete
),
[113] Fix | Delete
'background' => array(
[114] Fix | Delete
'css' => array(
[115] Fix | Delete
'main' => '.et_pb_slider %%order_class%%',
[116] Fix | Delete
),
[117] Fix | Delete
'options' => array(
[118] Fix | Delete
'background_color' => array(
[119] Fix | Delete
'default' => et_builder_accent_color(),
[120] Fix | Delete
'default_on_child' => true,
[121] Fix | Delete
),
[122] Fix | Delete
),
[123] Fix | Delete
),
[124] Fix | Delete
'borders' => array(
[125] Fix | Delete
'default' => false,
[126] Fix | Delete
'image' => array(
[127] Fix | Delete
'css' => array(
[128] Fix | Delete
'main' => array(
[129] Fix | Delete
'border_radii' => '%%order_class%%.et_pb_slide .et_pb_slide_image img',
[130] Fix | Delete
'border_styles' => '%%order_class%%.et_pb_slide .et_pb_slide_image img',
[131] Fix | Delete
),
[132] Fix | Delete
),
[133] Fix | Delete
'label_prefix' => et_builder_i18n( 'Image' ),
[134] Fix | Delete
'tab_slug' => 'advanced',
[135] Fix | Delete
'toggle_slug' => 'image',
[136] Fix | Delete
'depends_show_if' => 'off',
[137] Fix | Delete
'defaults' => array(
[138] Fix | Delete
'border_radii' => 'on||||',
[139] Fix | Delete
'border_styles' => array(
[140] Fix | Delete
'width' => '0px',
[141] Fix | Delete
'color' => '#333333',
[142] Fix | Delete
'style' => 'solid',
[143] Fix | Delete
),
[144] Fix | Delete
),
[145] Fix | Delete
),
[146] Fix | Delete
),
[147] Fix | Delete
'margin_padding' => array(
[148] Fix | Delete
'use_margin' => false,
[149] Fix | Delete
'css' => array(
[150] Fix | Delete
'padding' => '.et_pb_slider %%order_class%% .et_pb_slide_description, .et_pb_slider_fullwidth_off %%order_class%% .et_pb_slide_description',
[151] Fix | Delete
'important' => array( 'custom_padding' ), // Important is needed to overwrite parent and column-specific padding specificity
[152] Fix | Delete
),
[153] Fix | Delete
),
[154] Fix | Delete
'text' => array(
[155] Fix | Delete
'use_background_layout' => true,
[156] Fix | Delete
'css' => array(
[157] Fix | Delete
'main' => implode(
[158] Fix | Delete
', ',
[159] Fix | Delete
array(
[160] Fix | Delete
'%%order_class%% .et_pb_slide_description .et_pb_slide_title',
[161] Fix | Delete
'%%order_class%% .et_pb_slide_description .et_pb_slide_title a',
[162] Fix | Delete
'%%order_class%% .et_pb_slide_description .et_pb_slide_content',
[163] Fix | Delete
'%%order_class%% .et_pb_slide_description .et_pb_slide_content .post-meta',
[164] Fix | Delete
'%%order_class%% .et_pb_slide_description .et_pb_slide_content .post-meta a',
[165] Fix | Delete
'%%order_class%% .et_pb_slide_description .et_pb_slide_content .et_pb_button',
[166] Fix | Delete
)
[167] Fix | Delete
),
[168] Fix | Delete
'text_orientation' => '.et_pb_slides %%order_class%%.et_pb_slide .et_pb_slide_description',
[169] Fix | Delete
'text_shadow' => '.et_pb_slides %%order_class%%.et_pb_slide .et_pb_slide_description',
[170] Fix | Delete
),
[171] Fix | Delete
'options' => array(
[172] Fix | Delete
'background_layout' => array(
[173] Fix | Delete
'default' => 'dark',
[174] Fix | Delete
'default_on_child' => true,
[175] Fix | Delete
'hover' => 'tabs',
[176] Fix | Delete
),
[177] Fix | Delete
),
[178] Fix | Delete
),
[179] Fix | Delete
'box_shadow' => array(
[180] Fix | Delete
'default' => false,
[181] Fix | Delete
'image' => array(
[182] Fix | Delete
'label' => esc_html__( 'Image Box Shadow', 'et_builder' ),
[183] Fix | Delete
'option_category' => 'layout',
[184] Fix | Delete
'tab_slug' => 'advanced',
[185] Fix | Delete
'toggle_slug' => 'image',
[186] Fix | Delete
'css' => array(
[187] Fix | Delete
'main' => '%%order_class%%.et_pb_slide .et_pb_slide_image img',
[188] Fix | Delete
),
[189] Fix | Delete
'default_on_fronts' => array(
[190] Fix | Delete
'color' => '',
[191] Fix | Delete
'position' => '',
[192] Fix | Delete
),
[193] Fix | Delete
),
[194] Fix | Delete
),
[195] Fix | Delete
'filters' => array(
[196] Fix | Delete
'child_filters_target' => array(
[197] Fix | Delete
'tab_slug' => 'advanced',
[198] Fix | Delete
'toggle_slug' => 'image',
[199] Fix | Delete
),
[200] Fix | Delete
),
[201] Fix | Delete
'image' => array(
[202] Fix | Delete
'css' => array(
[203] Fix | Delete
'main' => array(
[204] Fix | Delete
'%%order_class%% .et_pb_slide_image',
[205] Fix | Delete
'%%order_class%% .et_pb_section_video_bg',
[206] Fix | Delete
),
[207] Fix | Delete
),
[208] Fix | Delete
),
[209] Fix | Delete
'max_width' => array(
[210] Fix | Delete
'use_module_alignment' => false,
[211] Fix | Delete
'css' => array(
[212] Fix | Delete
'main' => '.et_pb_slider %%order_class%%.et_pb_slide > .et_pb_container',
[213] Fix | Delete
),
[214] Fix | Delete
'options' => array(
[215] Fix | Delete
'width' => array(
[216] Fix | Delete
'label' => esc_html__( 'Content Width', 'et_builder' ),
[217] Fix | Delete
),
[218] Fix | Delete
'max_width' => array(
[219] Fix | Delete
'label' => esc_html__( 'Content Max Width', 'et_builder' ),
[220] Fix | Delete
),
[221] Fix | Delete
),
[222] Fix | Delete
),
[223] Fix | Delete
'height' => false,
[224] Fix | Delete
'scroll_effects' => false,
[225] Fix | Delete
'position_fields' => false,
[226] Fix | Delete
'sticky' => false,
[227] Fix | Delete
);
[228] Fix | Delete
[229] Fix | Delete
$this->custom_css_fields = array(
[230] Fix | Delete
'slide_title' => array(
[231] Fix | Delete
'label' => esc_html__( 'Slide Title', 'et_builder' ),
[232] Fix | Delete
'selector' => '.et_pb_slide_description .et_pb_slide_title',
[233] Fix | Delete
),
[234] Fix | Delete
'slide_container' => array(
[235] Fix | Delete
'label' => esc_html__( 'Slide Description Container', 'et_builder' ),
[236] Fix | Delete
'selector' => '.et_pb_container',
[237] Fix | Delete
),
[238] Fix | Delete
'slide_description' => array(
[239] Fix | Delete
'label' => esc_html__( 'Slide Description', 'et_builder' ),
[240] Fix | Delete
'selector' => '.et_pb_slide_description',
[241] Fix | Delete
),
[242] Fix | Delete
'slide_button' => array(
[243] Fix | Delete
'label' => esc_html__( 'Slide Button', 'et_builder' ),
[244] Fix | Delete
'selector' => '.et_pb_slide .et_pb_container a.et_pb_more_button.et_pb_button',
[245] Fix | Delete
'no_space_before_selector' => true,
[246] Fix | Delete
),
[247] Fix | Delete
'slide_image' => array(
[248] Fix | Delete
'label' => esc_html__( 'Slide Image', 'et_builder' ),
[249] Fix | Delete
'selector' => '.et_pb_slide_image',
[250] Fix | Delete
),
[251] Fix | Delete
);
[252] Fix | Delete
[253] Fix | Delete
$this->help_videos = array(
[254] Fix | Delete
array(
[255] Fix | Delete
'id' => '-YeoR2xSLOY',
[256] Fix | Delete
'name' => esc_html__( 'An introduction to the Slider module', 'et_builder' ),
[257] Fix | Delete
),
[258] Fix | Delete
);
[259] Fix | Delete
}
[260] Fix | Delete
[261] Fix | Delete
function get_fields() {
[262] Fix | Delete
$fields = array(
[263] Fix | Delete
'heading' => array(
[264] Fix | Delete
'label' => et_builder_i18n( 'Title' ),
[265] Fix | Delete
'type' => 'text',
[266] Fix | Delete
'option_category' => 'basic_option',
[267] Fix | Delete
'description' => esc_html__( 'Define the title text for your slide.', 'et_builder' ),
[268] Fix | Delete
'toggle_slug' => 'main_content',
[269] Fix | Delete
'dynamic_content' => 'text',
[270] Fix | Delete
'mobile_options' => true,
[271] Fix | Delete
'hover' => 'tabs',
[272] Fix | Delete
),
[273] Fix | Delete
'button_text' => array(
[274] Fix | Delete
'label' => et_builder_i18n( 'Button' ),
[275] Fix | Delete
'type' => 'text',
[276] Fix | Delete
'option_category' => 'basic_option',
[277] Fix | Delete
'description' => esc_html__( 'Define the text for the slide button', 'et_builder' ),
[278] Fix | Delete
'toggle_slug' => 'main_content',
[279] Fix | Delete
'dynamic_content' => 'text',
[280] Fix | Delete
'mobile_options' => true,
[281] Fix | Delete
'hover' => 'tabs',
[282] Fix | Delete
),
[283] Fix | Delete
'button_link' => array(
[284] Fix | Delete
'label' => esc_html__( 'Button Link URL', 'et_builder' ),
[285] Fix | Delete
'type' => 'text',
[286] Fix | Delete
'option_category' => 'basic_option',
[287] Fix | Delete
'description' => esc_html__( 'Input a destination URL for the slide button.', 'et_builder' ),
[288] Fix | Delete
'toggle_slug' => 'link_options',
[289] Fix | Delete
'default_on_front' => '#',
[290] Fix | Delete
'dynamic_content' => 'url',
[291] Fix | Delete
),
[292] Fix | Delete
'url_new_window' => array(
[293] Fix | Delete
'label' => esc_html__( 'Button Link Target', 'et_builder' ),
[294] Fix | Delete
'type' => 'select',
[295] Fix | Delete
'option_category' => 'configuration',
[296] Fix | Delete
'options' => array(
[297] Fix | Delete
'off' => esc_html__( 'In The Same Window', 'et_builder' ),
[298] Fix | Delete
'on' => esc_html__( 'In The New Tab', 'et_builder' ),
[299] Fix | Delete
),
[300] Fix | Delete
'toggle_slug' => 'link_options',
[301] Fix | Delete
'description' => esc_html__( 'Here you can choose whether or not your link opens in a new window', 'et_builder' ),
[302] Fix | Delete
'default_on_front' => 'off',
[303] Fix | Delete
),
[304] Fix | Delete
'image' => array(
[305] Fix | Delete
'label' => et_builder_i18n( 'Image' ),
[306] Fix | Delete
'type' => 'upload',
[307] Fix | Delete
'option_category' => 'configuration',
[308] Fix | Delete
'upload_button_text' => et_builder_i18n( 'Upload an image' ),
[309] Fix | Delete
'choose_text' => esc_attr__( 'Choose a Slide Image', 'et_builder' ),
[310] Fix | Delete
'update_text' => esc_attr__( 'Set As Slide Image', 'et_builder' ),
[311] Fix | Delete
'affects' => array(
[312] Fix | Delete
'image_alt',
[313] Fix | Delete
),
[314] Fix | Delete
'description' => esc_html__( 'If defined, this slide image will appear to the left of your slide text. Upload an image, or leave blank for a text-only slide.', 'et_builder' ),
[315] Fix | Delete
'toggle_slug' => 'image_video',
[316] Fix | Delete
'dynamic_content' => 'image',
[317] Fix | Delete
'mobile_options' => true,
[318] Fix | Delete
'hover' => 'tabs',
[319] Fix | Delete
),
[320] Fix | Delete
'use_bg_overlay' => array(
[321] Fix | Delete
'label' => esc_html__( 'Use Background Overlay', 'et_builder' ),
[322] Fix | Delete
'type' => 'yes_no_button',
[323] Fix | Delete
'option_category' => 'configuration',
[324] Fix | Delete
'options' => array(
[325] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[326] Fix | Delete
// Uses cached uppercase translation but keeps the lowercase not change definition content.
[327] Fix | Delete
'on' => strtolower( et_builder_i18n( 'Yes' ) ),
[328] Fix | Delete
),
[329] Fix | Delete
'affects' => array(
[330] Fix | Delete
'bg_overlay_color',
[331] Fix | Delete
),
[332] Fix | Delete
'default_on_front' => '',
[333] Fix | Delete
'tab_slug' => 'advanced',
[334] Fix | Delete
'toggle_slug' => 'overlay',
[335] Fix | Delete
'description' => esc_html__( 'When enabled, a custom overlay color will be added above your background image and behind your slider content.', 'et_builder' ),
[336] Fix | Delete
),
[337] Fix | Delete
'bg_overlay_color' => array(
[338] Fix | Delete
'label' => esc_html__( 'Background Overlay Color', 'et_builder' ),
[339] Fix | Delete
'type' => 'color-alpha',
[340] Fix | Delete
'custom_color' => true,
[341] Fix | Delete
'depends_show_if' => 'on',
[342] Fix | Delete
'description' => esc_html__( 'Use the color picker to choose a color for the background overlay.', 'et_builder' ),
[343] Fix | Delete
'tab_slug' => 'advanced',
[344] Fix | Delete
'toggle_slug' => 'overlay',
[345] Fix | Delete
'mobile_options' => true,
[346] Fix | Delete
'sticky' => true,
[347] Fix | Delete
),
[348] Fix | Delete
'use_text_overlay' => array(
[349] Fix | Delete
'label' => esc_html__( 'Use Text Overlay', 'et_builder' ),
[350] Fix | Delete
'type' => 'yes_no_button',
[351] Fix | Delete
'option_category' => 'configuration',
[352] Fix | Delete
'options' => array(
[353] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[354] Fix | Delete
// Uses cached uppercase translation but keeps the lowercase not change definition content.
[355] Fix | Delete
'on' => strtolower( et_builder_i18n( 'Yes' ) ),
[356] Fix | Delete
),
[357] Fix | Delete
'default_on_front' => '',
[358] Fix | Delete
'affects' => array(
[359] Fix | Delete
'text_overlay_color',
[360] Fix | Delete
'text_border_radius',
[361] Fix | Delete
),
[362] Fix | Delete
'tab_slug' => 'advanced',
[363] Fix | Delete
'toggle_slug' => 'overlay',
[364] Fix | Delete
'description' => esc_html__( 'When enabled, a background color is added behind the slider text to make it more readable atop background images.', 'et_builder' ),
[365] Fix | Delete
),
[366] Fix | Delete
'text_overlay_color' => array(
[367] Fix | Delete
'label' => esc_html__( 'Text Overlay Color', 'et_builder' ),
[368] Fix | Delete
'type' => 'color-alpha',
[369] Fix | Delete
'custom_color' => true,
[370] Fix | Delete
'depends_show_if' => 'on',
[371] Fix | Delete
'tab_slug' => 'advanced',
[372] Fix | Delete
'toggle_slug' => 'overlay',
[373] Fix | Delete
'description' => esc_html__( 'Use the color picker to choose a color for the text overlay.', 'et_builder' ),
[374] Fix | Delete
'mobile_options' => true,
[375] Fix | Delete
'sticky' => true,
[376] Fix | Delete
),
[377] Fix | Delete
'alignment' => array(
[378] Fix | Delete
'label' => esc_html__( 'Image Alignment', 'et_builder' ),
[379] Fix | Delete
'type' => 'select',
[380] Fix | Delete
'option_category' => 'layout',
[381] Fix | Delete
'options' => array(
[382] Fix | Delete
'center' => et_builder_i18n( 'Center' ),
[383] Fix | Delete
'bottom' => et_builder_i18n( 'Bottom' ),
[384] Fix | Delete
),
[385] Fix | Delete
'default_on_front' => 'center',
[386] Fix | Delete
'tab_slug' => 'advanced',
[387] Fix | Delete
'toggle_slug' => 'image',
[388] Fix | Delete
'description' => esc_html__( 'This setting determines the vertical alignment of your slide image. Your image can either be vertically centered, or aligned to the bottom of your slide.', 'et_builder' ),
[389] Fix | Delete
),
[390] Fix | Delete
'video_url' => array(
[391] Fix | Delete
'label' => esc_html__( 'Video', 'et_builder' ),
[392] Fix | Delete
'type' => 'upload',
[393] Fix | Delete
'data_type' => 'video',
[394] Fix | Delete
'upload_button_text' => esc_attr__( 'Upload a video', 'et_builder' ),
[395] Fix | Delete
'choose_text' => esc_attr__( 'Choose a Video WEBM File', 'et_builder' ),
[396] Fix | Delete
'update_text' => esc_attr__( 'Set As Video', 'et_builder' ),
[397] Fix | Delete
'option_category' => 'basic_option',
[398] Fix | Delete
'description' => esc_html__( 'If defined, this video will appear to the left of your slide text. Enter youtube or vimeo page url, or leave blank for a text-only slide.', 'et_builder' ),
[399] Fix | Delete
'toggle_slug' => 'image_video',
[400] Fix | Delete
'computed_affects' => array(
[401] Fix | Delete
'__video_embed',
[402] Fix | Delete
),
[403] Fix | Delete
'mobile_options' => true,
[404] Fix | Delete
'hover' => 'tabs',
[405] Fix | Delete
),
[406] Fix | Delete
'image_alt' => array(
[407] Fix | Delete
'label' => esc_html__( 'Image Alternative Text', 'et_builder' ),
[408] Fix | Delete
'type' => 'text',
[409] Fix | Delete
'option_category' => 'basic_option',
[410] Fix | Delete
'depends_show_if' => 'on',
[411] Fix | Delete
'depends_on' => array(
[412] Fix | Delete
'image',
[413] Fix | Delete
),
[414] Fix | Delete
'description' => esc_html__( 'If you have a slide image defined, input your HTML ALT text for the image here.', 'et_builder' ),
[415] Fix | Delete
'tab_slug' => 'custom_css',
[416] Fix | Delete
'toggle_slug' => 'attributes',
[417] Fix | Delete
'dynamic_content' => 'text',
[418] Fix | Delete
),
[419] Fix | Delete
'allow_player_pause' => array(
[420] Fix | Delete
'label' => esc_html__( 'Pause Video When Another Video Plays', 'et_builder' ),
[421] Fix | Delete
'type' => 'yes_no_button',
[422] Fix | Delete
'option_category' => 'configuration',
[423] Fix | Delete
'options' => array(
[424] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[425] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[426] Fix | Delete
),
[427] Fix | Delete
'default_on_front' => '',
[428] Fix | Delete
'toggle_slug' => 'player_pause',
[429] Fix | Delete
'description' => esc_html__( 'Allow video to be paused by other players when they begin playing', 'et_builder' ),
[430] Fix | Delete
),
[431] Fix | Delete
'content' => array(
[432] Fix | Delete
'label' => et_builder_i18n( 'Body' ),
[433] Fix | Delete
'type' => 'tiny_mce',
[434] Fix | Delete
'option_category' => 'basic_option',
[435] Fix | Delete
'description' => esc_html__( 'Input your main slide text content here.', 'et_builder' ),
[436] Fix | Delete
'toggle_slug' => 'main_content',
[437] Fix | Delete
'dynamic_content' => 'text',
[438] Fix | Delete
'mobile_options' => true,
[439] Fix | Delete
'hover' => 'tabs',
[440] Fix | Delete
),
[441] Fix | Delete
'arrows_custom_color' => array(
[442] Fix | Delete
'label' => esc_html__( 'Arrow Color', 'et_builder' ),
[443] Fix | Delete
'description' => esc_html__( 'Pick a color to use for the slider arrows that are used to navigate through each slide.', 'et_builder' ),
[444] Fix | Delete
'type' => 'color-alpha',
[445] Fix | Delete
'custom_color' => true,
[446] Fix | Delete
'tab_slug' => 'advanced',
[447] Fix | Delete
'toggle_slug' => 'navigation',
[448] Fix | Delete
'mobile_options' => true,
[449] Fix | Delete
'sticky' => true,
[450] Fix | Delete
'hover' => 'tabs',
[451] Fix | Delete
),
[452] Fix | Delete
'dot_nav_custom_color' => array(
[453] Fix | Delete
'label' => esc_html__( 'Dot Navigation Color', 'et_builder' ),
[454] Fix | Delete
'description' => esc_html__( 'Pick a color to use for the dot navigation that appears at the bottom of the slider to designate which slide is active.', 'et_builder' ),
[455] Fix | Delete
'type' => 'color-alpha',
[456] Fix | Delete
'custom_color' => true,
[457] Fix | Delete
'tab_slug' => 'advanced',
[458] Fix | Delete
'toggle_slug' => 'navigation',
[459] Fix | Delete
'mobile_options' => true,
[460] Fix | Delete
'sticky' => true,
[461] Fix | Delete
'hover' => 'tabs',
[462] Fix | Delete
),
[463] Fix | Delete
'admin_title' => array(
[464] Fix | Delete
'label' => et_builder_i18n( 'Admin Label' ),
[465] Fix | Delete
'type' => 'text',
[466] Fix | Delete
'description' => esc_html__( 'This will change the label of the slide in the builder for easy identification.', 'et_builder' ),
[467] Fix | Delete
'toggle_slug' => 'admin_label',
[468] Fix | Delete
),
[469] Fix | Delete
'text_border_radius' => array(
[470] Fix | Delete
'label' => esc_html__( 'Text Overlay Border Radius', 'et_builder' ),
[471] Fix | Delete
'description' => esc_html__( 'Increasing the border radius will increase the roundness of the overlay corners. Setting this value to 0 will result in squared corners.', 'et_builder' ),
[472] Fix | Delete
'type' => 'range',
[473] Fix | Delete
'option_category' => 'layout',
[474] Fix | Delete
'allowed_units' => array( '%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw' ),
[475] Fix | Delete
'default' => '3',
[476] Fix | Delete
'default_unit' => 'px',
[477] Fix | Delete
'default_on_front' => '',
[478] Fix | Delete
'range_settings' => array(
[479] Fix | Delete
'min' => '0',
[480] Fix | Delete
'max' => '100',
[481] Fix | Delete
'step' => '1',
[482] Fix | Delete
),
[483] Fix | Delete
'depends_show_if' => 'on',
[484] Fix | Delete
'tab_slug' => 'advanced',
[485] Fix | Delete
'toggle_slug' => 'overlay',
[486] Fix | Delete
'mobile_options' => true,
[487] Fix | Delete
'sticky' => true,
[488] Fix | Delete
),
[489] Fix | Delete
'__video_embed' => array(
[490] Fix | Delete
'type' => 'computed',
[491] Fix | Delete
'computed_callback' => array( 'ET_Builder_Module_Slider_Item', 'get_video_embed' ),
[492] Fix | Delete
'computed_depends_on' => array(
[493] Fix | Delete
'video_url',
[494] Fix | Delete
),
[495] Fix | Delete
'computed_minimum' => array(
[496] Fix | Delete
'video_url',
[497] Fix | Delete
),
[498] Fix | Delete
),
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function