Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi/includes/builder/module
File: FullwidthSlider.php
<?php
[0] Fix | Delete
[1] Fix | Delete
require_once 'helpers/Slider.php';
[2] Fix | Delete
[3] Fix | Delete
class ET_Builder_Module_Fullwidth_Slider extends ET_Builder_Module {
[4] Fix | Delete
function init() {
[5] Fix | Delete
$this->name = esc_html__( 'Fullwidth Slider', 'et_builder' );
[6] Fix | Delete
$this->plural = esc_html__( 'Fullwidth Sliders', 'et_builder' );
[7] Fix | Delete
$this->slug = 'et_pb_fullwidth_slider';
[8] Fix | Delete
$this->vb_support = 'on';
[9] Fix | Delete
$this->fullwidth = true;
[10] Fix | Delete
$this->child_slug = 'et_pb_slide';
[11] Fix | Delete
$this->child_item_text = et_builder_i18n( 'Slide' );
[12] Fix | Delete
[13] Fix | Delete
$this->main_css_element = '%%order_class%%.et_pb_slider';
[14] Fix | Delete
[15] Fix | Delete
$this->settings_modal_toggles = array(
[16] Fix | Delete
'general' => array(
[17] Fix | Delete
'toggles' => array(
[18] Fix | Delete
'elements' => et_builder_i18n( 'Elements' ),
[19] Fix | Delete
),
[20] Fix | Delete
),
[21] Fix | Delete
'advanced' => array(
[22] Fix | Delete
'toggles' => array(
[23] Fix | Delete
'overlay' => et_builder_i18n( 'Overlay' ),
[24] Fix | Delete
'navigation' => esc_html__( 'Navigation', 'et_builder' ),
[25] Fix | Delete
'image' => et_builder_i18n( 'Image' ),
[26] Fix | Delete
'layout' => et_builder_i18n( 'Layout' ),
[27] Fix | Delete
),
[28] Fix | Delete
),
[29] Fix | Delete
'custom_css' => array(
[30] Fix | Delete
'toggles' => array(
[31] Fix | Delete
'animation' => array(
[32] Fix | Delete
'title' => esc_html__( 'Animation', 'et_builder' ),
[33] Fix | Delete
'priority' => 90,
[34] Fix | Delete
),
[35] Fix | Delete
),
[36] Fix | Delete
),
[37] Fix | Delete
);
[38] Fix | Delete
[39] Fix | Delete
$this->advanced_fields = array(
[40] Fix | Delete
'fonts' => array(
[41] Fix | Delete
'header' => array(
[42] Fix | Delete
'label' => et_builder_i18n( 'Title' ),
[43] Fix | Delete
'css' => array(
[44] Fix | Delete
'main' => "{$this->main_css_element} .et_pb_slide_description .et_pb_slide_title",
[45] Fix | Delete
'limited_main' => "{$this->main_css_element} .et_pb_slide_description .et_pb_slide_title, {$this->main_css_element} .et_pb_slide_description .et_pb_slide_title a",
[46] Fix | Delete
'important' => array(
[47] Fix | Delete
'color',
[48] Fix | Delete
'size',
[49] Fix | Delete
'font-size',
[50] Fix | Delete
'plugin_all',
[51] Fix | Delete
),
[52] Fix | Delete
),
[53] Fix | Delete
'header_level' => array(
[54] Fix | Delete
'default' => 'h2',
[55] Fix | Delete
),
[56] Fix | Delete
),
[57] Fix | Delete
'body' => array(
[58] Fix | Delete
'label' => et_builder_i18n( 'Body' ),
[59] Fix | Delete
'css' => array(
[60] Fix | Delete
'main' => "{$this->main_css_element}.et_pb_module .et_pb_slides .et_pb_slide_content",
[61] Fix | Delete
'line_height' => "{$this->main_css_element} p",
[62] Fix | Delete
'important' => array( 'size', 'font-size' ),
[63] Fix | Delete
),
[64] Fix | Delete
'block_elements' => array(
[65] Fix | Delete
'tabbed_subtoggles' => true,
[66] Fix | Delete
'bb_icons_support' => true,
[67] Fix | Delete
),
[68] Fix | Delete
),
[69] Fix | Delete
),
[70] Fix | Delete
'borders' => array(
[71] Fix | Delete
'default' => array(),
[72] Fix | Delete
'image' => array(
[73] Fix | Delete
'css' => array(
[74] Fix | Delete
'main' => array(
[75] Fix | Delete
'border_radii' => '%%order_class%% .et_pb_slide_image img',
[76] Fix | Delete
'border_styles' => '%%order_class%% .et_pb_slide_image img',
[77] Fix | Delete
),
[78] Fix | Delete
),
[79] Fix | Delete
'label_prefix' => et_builder_i18n( 'Image' ),
[80] Fix | Delete
'tab_slug' => 'advanced',
[81] Fix | Delete
'toggle_slug' => 'image',
[82] Fix | Delete
'depends_show_if' => 'off',
[83] Fix | Delete
'defaults' => array(
[84] Fix | Delete
'border_radii' => 'on||||',
[85] Fix | Delete
'border_styles' => array(
[86] Fix | Delete
'width' => '0px',
[87] Fix | Delete
'color' => '#333333',
[88] Fix | Delete
'style' => 'solid',
[89] Fix | Delete
),
[90] Fix | Delete
),
[91] Fix | Delete
),
[92] Fix | Delete
),
[93] Fix | Delete
'box_shadow' => array(
[94] Fix | Delete
'default' => array(
[95] Fix | Delete
'css' => array(
[96] Fix | Delete
'overlay' => 'inset',
[97] Fix | Delete
),
[98] Fix | Delete
),
[99] Fix | Delete
'image' => array(
[100] Fix | Delete
'label' => esc_html__( 'Image Box Shadow', 'et_builder' ),
[101] Fix | Delete
'option_category' => 'layout',
[102] Fix | Delete
'tab_slug' => 'advanced',
[103] Fix | Delete
'toggle_slug' => 'image',
[104] Fix | Delete
'css' => array(
[105] Fix | Delete
'main' => '%%order_class%% .et_pb_slide_image img',
[106] Fix | Delete
),
[107] Fix | Delete
'default_on_fronts' => array(
[108] Fix | Delete
'color' => '',
[109] Fix | Delete
'position' => '',
[110] Fix | Delete
),
[111] Fix | Delete
),
[112] Fix | Delete
),
[113] Fix | Delete
'button' => array(
[114] Fix | Delete
'button' => array(
[115] Fix | Delete
'label' => et_builder_i18n( 'Button' ),
[116] Fix | Delete
'css' => array(
[117] Fix | Delete
'main' => "{$this->main_css_element} .et_pb_more_button.et_pb_button",
[118] Fix | Delete
'linited_main' => "{$this->main_css_element} .et_pb_more_button.et_pb_button",
[119] Fix | Delete
'alignment' => "{$this->main_css_element} .et_pb_button_wrapper",
[120] Fix | Delete
),
[121] Fix | Delete
'use_alignment' => true,
[122] Fix | Delete
'box_shadow' => array(
[123] Fix | Delete
'css' => array(
[124] Fix | Delete
'main' => '%%order_class%% .et_pb_button',
[125] Fix | Delete
),
[126] Fix | Delete
),
[127] Fix | Delete
'margin_padding' => array(
[128] Fix | Delete
'css' => array(
[129] Fix | Delete
'important' => 'all',
[130] Fix | Delete
),
[131] Fix | Delete
),
[132] Fix | Delete
),
[133] Fix | Delete
),
[134] Fix | Delete
'background' => array(
[135] Fix | Delete
'use_background_color' => 'fields_only',
[136] Fix | Delete
'use_background_color_gradient' => 'fields_only',
[137] Fix | Delete
'use_background_image' => 'fields_only',
[138] Fix | Delete
'options' => array(
[139] Fix | Delete
'parallax_method' => array(
[140] Fix | Delete
'default' => 'off',
[141] Fix | Delete
),
[142] Fix | Delete
'background_position' => array(),
[143] Fix | Delete
'background_size' => array(),
[144] Fix | Delete
),
[145] Fix | Delete
),
[146] Fix | Delete
'margin_padding' => array(
[147] Fix | Delete
'css' => array(
[148] Fix | Delete
'main' => '%%order_class%%',
[149] Fix | Delete
'padding' => '%%order_class%% .et_pb_slide_description, .et_pb_slider_fullwidth_off%%order_class%% .et_pb_slide_description',
[150] Fix | Delete
'important' => array( 'custom_margin' ), // needed to overwrite last module margin-bottom styling
[151] Fix | Delete
),
[152] Fix | Delete
),
[153] Fix | Delete
'text' => array(
[154] Fix | Delete
'css' => array(
[155] Fix | Delete
'text_orientation' => '%%order_class%% .et_pb_slide .et_pb_slide_description',
[156] Fix | Delete
'text_shadow' => '%%order_class%% .et_pb_slide .et_pb_slide_description',
[157] Fix | Delete
),
[158] Fix | Delete
'options' => array(
[159] Fix | Delete
'text_orientation' => array(
[160] Fix | Delete
'default' => 'center',
[161] Fix | Delete
),
[162] Fix | Delete
),
[163] Fix | Delete
),
[164] Fix | Delete
'height' => array(
[165] Fix | Delete
'css' => array(
[166] Fix | Delete
'main' => '%%order_class%%, %%order_class%% .et_pb_slide',
[167] Fix | Delete
),
[168] Fix | Delete
),
[169] Fix | Delete
'image' => array(
[170] Fix | Delete
'css' => array(
[171] Fix | Delete
'main' => array(
[172] Fix | Delete
'%%order_class%% .et_pb_slide_image',
[173] Fix | Delete
'%%order_class%% .et_pb_section_video_bg',
[174] Fix | Delete
),
[175] Fix | Delete
),
[176] Fix | Delete
),
[177] Fix | Delete
'max_width' => array(
[178] Fix | Delete
'extra' => array(
[179] Fix | Delete
'content' => array(
[180] Fix | Delete
'use_module_alignment' => false,
[181] Fix | Delete
'css' => array(
[182] Fix | Delete
'main' => '%%order_class%% .et_pb_slide > .et_pb_container',
[183] Fix | Delete
),
[184] Fix | Delete
'options' => array(
[185] Fix | Delete
'width' => array(
[186] Fix | Delete
'label' => esc_html__( 'Content Width', 'et_builder' ),
[187] Fix | Delete
'default' => '80%',
[188] Fix | Delete
),
[189] Fix | Delete
'max_width' => array(
[190] Fix | Delete
'label' => esc_html__( 'Content Max Width', 'et_builder' ),
[191] Fix | Delete
'default' => '1080px',
[192] Fix | Delete
),
[193] Fix | Delete
),
[194] Fix | Delete
),
[195] Fix | Delete
),
[196] Fix | Delete
),
[197] Fix | Delete
);
[198] Fix | Delete
[199] Fix | Delete
$this->custom_css_fields = array(
[200] Fix | Delete
'slide_description' => array(
[201] Fix | Delete
'label' => esc_html__( 'Slide Description', 'et_builder' ),
[202] Fix | Delete
'selector' => '.et_pb_slide_description',
[203] Fix | Delete
),
[204] Fix | Delete
'slide_title' => array(
[205] Fix | Delete
'label' => esc_html__( 'Slide Title', 'et_builder' ),
[206] Fix | Delete
'selector' => '.et_pb_slide_description .et_pb_slide_title',
[207] Fix | Delete
),
[208] Fix | Delete
'slide_button' => array(
[209] Fix | Delete
'label' => esc_html__( 'Slide Button', 'et_builder' ),
[210] Fix | Delete
'selector' => '.et_pb_slider .et_pb_slide .et_pb_slide_description a.et_pb_more_button.et_pb_button',
[211] Fix | Delete
'no_space_before_selector' => true,
[212] Fix | Delete
),
[213] Fix | Delete
'slide_controllers' => array(
[214] Fix | Delete
'label' => esc_html__( 'Slide Controllers', 'et_builder' ),
[215] Fix | Delete
'selector' => '.et-pb-controllers',
[216] Fix | Delete
),
[217] Fix | Delete
'slide_active_controller' => array(
[218] Fix | Delete
'label' => esc_html__( 'Slide Active Controller', 'et_builder' ),
[219] Fix | Delete
'selector' => '.et-pb-controllers .et-pb-active-control',
[220] Fix | Delete
),
[221] Fix | Delete
'slide_image' => array(
[222] Fix | Delete
'label' => esc_html__( 'Slide Image', 'et_builder' ),
[223] Fix | Delete
'selector' => '.et_pb_slide_image',
[224] Fix | Delete
),
[225] Fix | Delete
'slide_arrows' => array(
[226] Fix | Delete
'label' => esc_html__( 'Slide Arrows', 'et_builder' ),
[227] Fix | Delete
'selector' => '.et-pb-slider-arrows a',
[228] Fix | Delete
),
[229] Fix | Delete
);
[230] Fix | Delete
[231] Fix | Delete
$this->help_videos = array(
[232] Fix | Delete
array(
[233] Fix | Delete
'id' => 'zfMBE_zX744',
[234] Fix | Delete
'name' => esc_html__( 'An introduction to the Fullwidth Slider module', 'et_builder' ),
[235] Fix | Delete
),
[236] Fix | Delete
);
[237] Fix | Delete
}
[238] Fix | Delete
[239] Fix | Delete
function get_fields() {
[240] Fix | Delete
$fields = array(
[241] Fix | Delete
'show_arrows' => array(
[242] Fix | Delete
'label' => esc_html__( 'Show Arrows', 'et_builder' ),
[243] Fix | Delete
'type' => 'yes_no_button',
[244] Fix | Delete
'option_category' => 'configuration',
[245] Fix | Delete
'options' => array(
[246] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[247] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[248] Fix | Delete
),
[249] Fix | Delete
'default_on_front' => 'on',
[250] Fix | Delete
'toggle_slug' => 'elements',
[251] Fix | Delete
'description' => esc_html__( 'This setting allows you to turn the navigation arrows on or off.', 'et_builder' ),
[252] Fix | Delete
'mobile_options' => true,
[253] Fix | Delete
'hover' => 'tabs',
[254] Fix | Delete
),
[255] Fix | Delete
'show_pagination' => array(
[256] Fix | Delete
'label' => esc_html__( 'Show Controls', 'et_builder' ),
[257] Fix | Delete
'type' => 'yes_no_button',
[258] Fix | Delete
'option_category' => 'configuration',
[259] Fix | Delete
'options' => array(
[260] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[261] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[262] Fix | Delete
),
[263] Fix | Delete
'default_on_front' => 'on',
[264] Fix | Delete
'toggle_slug' => 'elements',
[265] Fix | Delete
'description' => esc_html__( 'Disabling this option will remove the circle button at the bottom of the slider.', 'et_builder' ),
[266] Fix | Delete
'mobile_options' => true,
[267] Fix | Delete
'hover' => 'tabs',
[268] Fix | Delete
),
[269] Fix | Delete
'show_content_on_mobile' => array(
[270] Fix | Delete
'label' => esc_html__( 'Show Content On Mobile', 'et_builder' ),
[271] Fix | Delete
'type' => 'yes_no_button',
[272] Fix | Delete
'option_category' => 'layout',
[273] Fix | Delete
'options' => array(
[274] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[275] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[276] Fix | Delete
),
[277] Fix | Delete
'default_on_front' => 'on',
[278] Fix | Delete
'tab_slug' => 'custom_css',
[279] Fix | Delete
'toggle_slug' => 'visibility',
[280] Fix | Delete
),
[281] Fix | Delete
'show_cta_on_mobile' => array(
[282] Fix | Delete
'label' => esc_html__( 'Show CTA On Mobile', 'et_builder' ),
[283] Fix | Delete
'type' => 'yes_no_button',
[284] Fix | Delete
'option_category' => 'layout',
[285] Fix | Delete
'options' => array(
[286] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[287] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[288] Fix | Delete
),
[289] Fix | Delete
'default_on_front' => 'on',
[290] Fix | Delete
'tab_slug' => 'custom_css',
[291] Fix | Delete
'toggle_slug' => 'visibility',
[292] Fix | Delete
),
[293] Fix | Delete
'show_image_video_mobile' => array(
[294] Fix | Delete
'label' => esc_html__( 'Show Image / Video On Mobile', 'et_builder' ),
[295] Fix | Delete
'type' => 'yes_no_button',
[296] Fix | Delete
'option_category' => 'layout',
[297] Fix | Delete
'options' => array(
[298] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[299] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[300] Fix | Delete
),
[301] Fix | Delete
'default_on_front' => 'off',
[302] Fix | Delete
'tab_slug' => 'custom_css',
[303] Fix | Delete
'toggle_slug' => 'visibility',
[304] Fix | Delete
),
[305] Fix | Delete
'use_bg_overlay' => array(
[306] Fix | Delete
'label' => esc_html__( 'Use Background Overlay', 'et_builder' ),
[307] 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' ),
[308] Fix | Delete
'type' => 'yes_no_button',
[309] Fix | Delete
'options' => array(
[310] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[311] Fix | Delete
// Uses cached uppercase translation but keeps the lowercase not change definition content.
[312] Fix | Delete
'on' => strtolower( et_builder_i18n( 'Yes' ) ),
[313] Fix | Delete
),
[314] Fix | Delete
'default_on_front' => '',
[315] Fix | Delete
'affects' => array(
[316] Fix | Delete
'bg_overlay_color',
[317] Fix | Delete
),
[318] Fix | Delete
'tab_slug' => 'advanced',
[319] Fix | Delete
'toggle_slug' => 'overlay',
[320] Fix | Delete
'option_category' => 'configuration',
[321] Fix | Delete
),
[322] Fix | Delete
'bg_overlay_color' => array(
[323] Fix | Delete
'label' => esc_html__( 'Background Overlay Color', 'et_builder' ),
[324] Fix | Delete
'description' => esc_html__( 'Use the color picker to choose a color for the background overlay.', 'et_builder' ),
[325] Fix | Delete
'type' => 'color-alpha',
[326] Fix | Delete
'custom_color' => true,
[327] Fix | Delete
'depends_show_if' => 'on',
[328] Fix | Delete
'tab_slug' => 'advanced',
[329] Fix | Delete
'toggle_slug' => 'overlay',
[330] Fix | Delete
'option_category' => 'configuration',
[331] Fix | Delete
'mobile_options' => true,
[332] Fix | Delete
'sticky' => true,
[333] Fix | Delete
),
[334] Fix | Delete
'use_text_overlay' => array(
[335] Fix | Delete
'label' => esc_html__( 'Use Text Overlay', 'et_builder' ),
[336] 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' ),
[337] Fix | Delete
'type' => 'yes_no_button',
[338] Fix | Delete
'options' => array(
[339] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[340] Fix | Delete
// Uses cached uppercase translation but keeps the lowercase not change definition content.
[341] Fix | Delete
'on' => strtolower( et_builder_i18n( 'Yes' ) ),
[342] Fix | Delete
),
[343] Fix | Delete
'default_on_front' => '',
[344] Fix | Delete
'affects' => array(
[345] Fix | Delete
'text_overlay_color',
[346] Fix | Delete
'text_border_radius',
[347] Fix | Delete
),
[348] Fix | Delete
'tab_slug' => 'advanced',
[349] Fix | Delete
'toggle_slug' => 'overlay',
[350] Fix | Delete
'option_category' => 'configuration',
[351] Fix | Delete
),
[352] Fix | Delete
'text_overlay_color' => array(
[353] Fix | Delete
'label' => esc_html__( 'Text Overlay Color', 'et_builder' ),
[354] Fix | Delete
'description' => esc_html__( 'Use the color picker to choose a color for the text overlay.', 'et_builder' ),
[355] Fix | Delete
'type' => 'color-alpha',
[356] Fix | Delete
'custom_color' => true,
[357] Fix | Delete
'depends_show_if' => 'on',
[358] Fix | Delete
'tab_slug' => 'advanced',
[359] Fix | Delete
'toggle_slug' => 'overlay',
[360] Fix | Delete
'option_category' => 'configuration',
[361] Fix | Delete
'mobile_options' => true,
[362] Fix | Delete
'sticky' => true,
[363] Fix | Delete
),
[364] Fix | Delete
'text_border_radius' => array(
[365] Fix | Delete
'label' => esc_html__( 'Text Overlay Border Radius', 'et_builder' ),
[366] 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' ),
[367] Fix | Delete
'type' => 'range',
[368] Fix | Delete
'option_category' => 'layout',
[369] Fix | Delete
'default' => '3',
[370] Fix | Delete
'default_unit' => 'px',
[371] Fix | Delete
'default_on_front' => '',
[372] Fix | Delete
'allowed_units' => array( '%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw' ),
[373] Fix | Delete
'range_settings' => array(
[374] Fix | Delete
'min' => '0',
[375] Fix | Delete
'max' => '100',
[376] Fix | Delete
'step' => '1',
[377] Fix | Delete
),
[378] Fix | Delete
'depends_show_if' => 'on',
[379] Fix | Delete
'tab_slug' => 'advanced',
[380] Fix | Delete
'toggle_slug' => 'overlay',
[381] Fix | Delete
'mobile_options' => true,
[382] Fix | Delete
'sticky' => true,
[383] Fix | Delete
),
[384] Fix | Delete
'arrows_custom_color' => array(
[385] Fix | Delete
'label' => esc_html__( 'Arrow Color', 'et_builder' ),
[386] Fix | Delete
'description' => esc_html__( 'Pick a color to use for the slider arrows that are used to navigate through each slide.', 'et_builder' ),
[387] Fix | Delete
'type' => 'color-alpha',
[388] Fix | Delete
'custom_color' => true,
[389] Fix | Delete
'tab_slug' => 'advanced',
[390] Fix | Delete
'toggle_slug' => 'navigation',
[391] Fix | Delete
'mobile_options' => true,
[392] Fix | Delete
'sticky' => true,
[393] Fix | Delete
'hover' => 'tabs',
[394] Fix | Delete
),
[395] Fix | Delete
'dot_nav_custom_color' => array(
[396] Fix | Delete
'label' => esc_html__( 'Dot Navigation Color', 'et_builder' ),
[397] 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' ),
[398] Fix | Delete
'type' => 'color-alpha',
[399] Fix | Delete
'custom_color' => true,
[400] Fix | Delete
'tab_slug' => 'advanced',
[401] Fix | Delete
'toggle_slug' => 'navigation',
[402] Fix | Delete
'mobile_options' => true,
[403] Fix | Delete
'sticky' => true,
[404] Fix | Delete
'hover' => 'tabs',
[405] Fix | Delete
),
[406] Fix | Delete
);
[407] Fix | Delete
[408] Fix | Delete
return $fields;
[409] Fix | Delete
}
[410] Fix | Delete
[411] Fix | Delete
function before_render() {
[412] Fix | Delete
global $et_pb_slider_has_video, $et_pb_slider_parallax, $et_pb_slider_parallax_method, $et_pb_slider_show_mobile, $et_pb_slider_custom_icon, $et_pb_slider_custom_icon_tablet, $et_pb_slider_custom_icon_phone, $et_pb_slider_item_num, $et_pb_slider_button_rel;
[413] Fix | Delete
global $et_pb_slider_parent_type;
[414] Fix | Delete
[415] Fix | Delete
$et_pb_slider_parent_type = $this->slug;
[416] Fix | Delete
$et_pb_slider_item_num = 0;
[417] Fix | Delete
[418] Fix | Delete
$sticky = et_pb_sticky_options();
[419] Fix | Delete
[420] Fix | Delete
$parallax = $this->props['parallax'];
[421] Fix | Delete
$parallax_method = $this->props['parallax_method'];
[422] Fix | Delete
$show_content_on_mobile = $this->props['show_content_on_mobile'];
[423] Fix | Delete
$show_cta_on_mobile = $this->props['show_cta_on_mobile'];
[424] Fix | Delete
$button_rel = $this->props['button_rel'];
[425] Fix | Delete
$button_custom = $this->props['custom_button'];
[426] Fix | Delete
[427] Fix | Delete
$custom_icon_values = et_pb_responsive_options()->get_property_values( $this->props, 'button_icon' );
[428] Fix | Delete
$custom_icon = isset( $custom_icon_values['desktop'] ) ? $custom_icon_values['desktop'] : '';
[429] Fix | Delete
$custom_icon_tablet = isset( $custom_icon_values['tablet'] ) ? $custom_icon_values['tablet'] : '';
[430] Fix | Delete
$custom_icon_phone = isset( $custom_icon_values['phone'] ) ? $custom_icon_values['phone'] : '';
[431] Fix | Delete
[432] Fix | Delete
$et_pb_slider_has_video = false;
[433] Fix | Delete
[434] Fix | Delete
$et_pb_slider_parallax = $parallax;
[435] Fix | Delete
[436] Fix | Delete
$et_pb_slider_parallax_method = $parallax_method;
[437] Fix | Delete
[438] Fix | Delete
$et_pb_slider_show_mobile = array(
[439] Fix | Delete
'show_content_on_mobile' => $show_content_on_mobile,
[440] Fix | Delete
'show_cta_on_mobile' => $show_cta_on_mobile,
[441] Fix | Delete
);
[442] Fix | Delete
[443] Fix | Delete
$et_pb_slider_custom_icon = 'on' === $button_custom ? $custom_icon : '';
[444] Fix | Delete
$et_pb_slider_custom_icon_tablet = 'on' === $button_custom ? $custom_icon_tablet : '';
[445] Fix | Delete
$et_pb_slider_custom_icon_phone = 'on' === $button_custom ? $custom_icon_phone : '';
[446] Fix | Delete
[447] Fix | Delete
$et_pb_slider_button_rel = $button_rel;
[448] Fix | Delete
[449] Fix | Delete
// BG Overlay Color.
[450] Fix | Delete
$bg_overlay_color = $this->props['bg_overlay_color'];
[451] Fix | Delete
$bg_overlay_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'bg_overlay_color' );
[452] Fix | Delete
$bg_overlay_color_tablet = isset( $bg_overlay_color_values['tablet'] ) ? $bg_overlay_color_values['tablet'] : '';
[453] Fix | Delete
$bg_overlay_color_phone = isset( $bg_overlay_color_values['phone'] ) ? $bg_overlay_color_values['phone'] : '';
[454] Fix | Delete
[455] Fix | Delete
// Text Overlay Color.
[456] Fix | Delete
$text_overlay_color = $this->props['text_overlay_color'];
[457] Fix | Delete
$text_overlay_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'text_overlay_color' );
[458] Fix | Delete
$text_overlay_color_tablet = isset( $text_overlay_color_values['tablet'] ) ? $text_overlay_color_values['tablet'] : '';
[459] Fix | Delete
$text_overlay_color_phone = isset( $text_overlay_color_values['phone'] ) ? $text_overlay_color_values['phone'] : '';
[460] Fix | Delete
[461] Fix | Delete
// Text Border Radius.
[462] Fix | Delete
$text_border_radius = $this->props['text_border_radius'];
[463] Fix | Delete
$text_border_radius_values = et_pb_responsive_options()->get_property_values( $this->props, 'text_border_radius' );
[464] Fix | Delete
$text_border_radius_tablet = isset( $text_border_radius_values['tablet'] ) ? $text_border_radius_values['tablet'] : '';
[465] Fix | Delete
$text_border_radius_phone = isset( $text_border_radius_values['phone'] ) ? $text_border_radius_values['phone'] : '';
[466] Fix | Delete
[467] Fix | Delete
// Arrows Color.
[468] Fix | Delete
$arrows_custom_color = $this->props['arrows_custom_color'];
[469] Fix | Delete
$arrows_custom_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'arrows_custom_color' );
[470] Fix | Delete
$arrows_custom_color_tablet = isset( $arrows_custom_color_values['tablet'] ) ? $arrows_custom_color_values['tablet'] : '';
[471] Fix | Delete
$arrows_custom_color_phone = isset( $arrows_custom_color_values['phone'] ) ? $arrows_custom_color_values['phone'] : '';
[472] Fix | Delete
[473] Fix | Delete
// Dot Nav Custom Color.
[474] Fix | Delete
$dot_nav_custom_color = $this->props['dot_nav_custom_color'];
[475] Fix | Delete
$dot_nav_custom_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'dot_nav_custom_color' );
[476] Fix | Delete
$dot_nav_custom_color_tablet = isset( $dot_nav_custom_color_values['tablet'] ) ? $dot_nav_custom_color_values['tablet'] : '';
[477] Fix | Delete
$dot_nav_custom_color_phone = isset( $dot_nav_custom_color_values['phone'] ) ? $dot_nav_custom_color_values['phone'] : '';
[478] Fix | Delete
[479] Fix | Delete
// Pass Fullwidth Slider Module settings to Slide Item
[480] Fix | Delete
global $et_pb_slider;
[481] Fix | Delete
[482] Fix | Delete
$et_pb_slider = array(
[483] Fix | Delete
'background_last_edited' => $this->props['background_last_edited'],
[484] Fix | Delete
'background__hover_enabled' => isset( $this->props['background__hover_enabled'] ) ? $this->props['background__hover_enabled'] : '',
[485] Fix | Delete
// Background Color.
[486] Fix | Delete
'background_enable_color' => $this->props['background_enable_color'],
[487] Fix | Delete
'background_enable_color_tablet' => $this->props['background_enable_color_tablet'],
[488] Fix | Delete
'background_enable_color_phone' => $this->props['background_enable_color_phone'],
[489] Fix | Delete
'background_enable_color__hover' => isset( $this->props['background_enable_color__hover'] ) ? $this->props['background_enable_color__hover'] : '',
[490] Fix | Delete
'background_color' => $this->props['background_color'],
[491] Fix | Delete
'background_color_tablet' => $this->props['background_color_tablet'],
[492] Fix | Delete
'background_color_phone' => $this->props['background_color_phone'],
[493] Fix | Delete
'background_color__hover' => isset( $this->props['background_color__hover'] ) ? $this->props['background_color__hover'] : '',
[494] Fix | Delete
// Background Gradient.
[495] Fix | Delete
'use_background_color_gradient' => $this->props['use_background_color_gradient'],
[496] Fix | Delete
'use_background_color_gradient_tablet' => $this->props['use_background_color_gradient_tablet'],
[497] Fix | Delete
'use_background_color_gradient_phone' => $this->props['use_background_color_gradient_phone'],
[498] Fix | Delete
'use_background_color_gradient__hover' => isset( $this->props['use_background_color_gradient__hover'] ) ? $this->props['use_background_color_gradient__hover'] : '',
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function