Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/Divi/includes/builder/module
File: Slider.php
<?php
[0] Fix | Delete
[1] Fix | Delete
require_once 'helpers/Slider.php';
[2] Fix | Delete
[3] Fix | Delete
class ET_Builder_Module_Slider extends ET_Builder_Module {
[4] Fix | Delete
function init() {
[5] Fix | Delete
$this->name = esc_html__( 'Slider', 'et_builder' );
[6] Fix | Delete
$this->plural = esc_html__( 'Sliders', 'et_builder' );
[7] Fix | Delete
$this->slug = 'et_pb_slider';
[8] Fix | Delete
$this->vb_support = 'on';
[9] Fix | Delete
$this->child_slug = 'et_pb_slide';
[10] Fix | Delete
$this->child_item_text = et_builder_i18n( 'Slide' );
[11] Fix | Delete
[12] Fix | Delete
$this->main_css_element = '%%order_class%%.et_pb_slider';
[13] Fix | Delete
[14] Fix | Delete
$this->settings_modal_toggles = array(
[15] Fix | Delete
'general' => array(
[16] Fix | Delete
'toggles' => array(
[17] Fix | Delete
'elements' => et_builder_i18n( 'Elements' ),
[18] Fix | Delete
),
[19] Fix | Delete
),
[20] Fix | Delete
'advanced' => array(
[21] Fix | Delete
'toggles' => array(
[22] Fix | Delete
'overlay' => et_builder_i18n( 'Overlay' ),
[23] Fix | Delete
'navigation' => esc_html__( 'Navigation', 'et_builder' ),
[24] Fix | Delete
'image' => et_builder_i18n( 'Image' ),
[25] Fix | Delete
'layout' => et_builder_i18n( 'Layout' ),
[26] Fix | Delete
),
[27] Fix | Delete
),
[28] Fix | Delete
'custom_css' => array(
[29] Fix | Delete
'toggles' => array(
[30] Fix | Delete
'animation' => array(
[31] Fix | Delete
'title' => esc_html__( 'Animation', 'et_builder' ),
[32] Fix | Delete
'priority' => 90,
[33] Fix | Delete
),
[34] Fix | Delete
),
[35] Fix | Delete
),
[36] Fix | Delete
);
[37] Fix | Delete
[38] Fix | Delete
$this->advanced_fields = array(
[39] Fix | Delete
'fonts' => array(
[40] Fix | Delete
'header' => array(
[41] Fix | Delete
'label' => et_builder_i18n( 'Title' ),
[42] Fix | Delete
'css' => array(
[43] Fix | Delete
'main' => "{$this->main_css_element} .et_pb_slide_description .et_pb_slide_title",
[44] 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",
[45] Fix | Delete
'font_size_tablet' => "{$this->main_css_element} .et_pb_slides .et_pb_slide_description .et_pb_slide_title",
[46] Fix | Delete
'font_size_phone' => "{$this->main_css_element} .et_pb_slides .et_pb_slide_description .et_pb_slide_title",
[47] Fix | Delete
'important' => array( 'size', 'font-size', 'plugin_all' ),
[48] Fix | Delete
),
[49] Fix | Delete
'header_level' => array(
[50] Fix | Delete
'default' => 'h2',
[51] Fix | Delete
),
[52] Fix | Delete
),
[53] Fix | Delete
'body' => array(
[54] Fix | Delete
'label' => et_builder_i18n( 'Body' ),
[55] Fix | Delete
'css' => array(
[56] Fix | Delete
'line_height' => "{$this->main_css_element}",
[57] Fix | Delete
'main' => "{$this->main_css_element} .et_pb_slide_content",
[58] Fix | Delete
'line_height_tablet' => "{$this->main_css_element} .et_pb_slides .et_pb_slide_content",
[59] Fix | Delete
'line_height_phone' => "{$this->main_css_element} .et_pb_slides .et_pb_slide_content",
[60] Fix | Delete
'font_size_tablet' => "{$this->main_css_element} .et_pb_slides .et_pb_slide_content",
[61] Fix | Delete
'font_size_phone' => "{$this->main_css_element} .et_pb_slides .et_pb_slide_content",
[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
'limited_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
)
[143] Fix | Delete
),
[144] Fix | Delete
'margin_padding' => array(
[145] Fix | Delete
'css' => array(
[146] Fix | Delete
'main' => '%%order_class%%',
[147] Fix | Delete
'padding' => '%%order_class%% .et_pb_slide_description, .et_pb_slider_fullwidth_off%%order_class%% .et_pb_slide_description',
[148] Fix | Delete
'important' => array( 'custom_margin' ), // needed to overwrite last module margin-bottom styling
[149] Fix | Delete
),
[150] Fix | Delete
),
[151] Fix | Delete
'text' => array(
[152] Fix | Delete
'css' => array(
[153] Fix | Delete
'text_orientation' => '%%order_class%% .et_pb_slide .et_pb_slide_description',
[154] Fix | Delete
'text_shadow' => '%%order_class%% .et_pb_slide .et_pb_slide_description',
[155] Fix | Delete
),
[156] Fix | Delete
'options' => array(
[157] Fix | Delete
'text_orientation' => array(
[158] Fix | Delete
'default' => 'center',
[159] Fix | Delete
),
[160] Fix | Delete
),
[161] Fix | Delete
),
[162] Fix | Delete
'height' => array(
[163] Fix | Delete
'css' => array(
[164] Fix | Delete
'main' => '%%order_class%%, %%order_class%% .et_pb_slide',
[165] Fix | Delete
)
[166] Fix | Delete
),
[167] Fix | Delete
'image' => array(
[168] Fix | Delete
'css' => array(
[169] Fix | Delete
'main' => array(
[170] Fix | Delete
'%%order_class%% .et_pb_slide_image',
[171] Fix | Delete
'%%order_class%% .et_pb_section_video_bg',
[172] Fix | Delete
),
[173] Fix | Delete
),
[174] Fix | Delete
),
[175] Fix | Delete
'max_width' => array(
[176] Fix | Delete
'extra' => array(
[177] Fix | Delete
'content' => array(
[178] Fix | Delete
'use_module_alignment' => false,
[179] Fix | Delete
'css' => array(
[180] Fix | Delete
'main' => '%%order_class%% .et_pb_slide > .et_pb_container',
[181] Fix | Delete
),
[182] Fix | Delete
'options' => array(
[183] Fix | Delete
'width' => array(
[184] Fix | Delete
'label' => esc_html__( 'Content Width', 'et_builder' ),
[185] Fix | Delete
'default' => '100%',
[186] Fix | Delete
),
[187] Fix | Delete
'max_width' => array(
[188] Fix | Delete
'label' => esc_html__( 'Content Max Width', 'et_builder' ),
[189] Fix | Delete
),
[190] Fix | Delete
)
[191] Fix | Delete
)
[192] Fix | Delete
)
[193] Fix | Delete
),
[194] Fix | Delete
'position_fields' => array(
[195] Fix | Delete
'default' => 'relative',
[196] Fix | Delete
),
[197] Fix | Delete
'overflow' => array(
[198] Fix | Delete
'default' => 'hidden',
[199] Fix | Delete
),
[200] Fix | Delete
);
[201] Fix | Delete
[202] Fix | Delete
$this->custom_css_fields = array(
[203] Fix | Delete
'slide_description' => array(
[204] Fix | Delete
'label' => esc_html__( 'Slide Description', 'et_builder' ),
[205] Fix | Delete
'selector' => '.et_pb_slide_description',
[206] Fix | Delete
),
[207] Fix | Delete
'slide_title' => array(
[208] Fix | Delete
'label' => esc_html__( 'Slide Title', 'et_builder' ),
[209] Fix | Delete
'selector' => '.et_pb_slide_description .et_pb_slide_title',
[210] Fix | Delete
),
[211] Fix | Delete
'slide_button' => array(
[212] Fix | Delete
'label' => esc_html__( 'Slide Button', 'et_builder' ),
[213] Fix | Delete
'selector' => '.et_pb_slider .et_pb_slide .et_pb_slide_description a.et_pb_more_button.et_pb_button',
[214] Fix | Delete
'no_space_before_selector' => true,
[215] Fix | Delete
),
[216] Fix | Delete
'slide_controllers' => array(
[217] Fix | Delete
'label' => esc_html__( 'Slide Controllers', 'et_builder' ),
[218] Fix | Delete
'selector' => '.et-pb-controllers',
[219] Fix | Delete
),
[220] Fix | Delete
'slide_active_controller' => array(
[221] Fix | Delete
'label' => esc_html__( 'Slide Active Controller', 'et_builder' ),
[222] Fix | Delete
'selector' => '.et-pb-controllers .et-pb-active-control',
[223] Fix | Delete
),
[224] Fix | Delete
'slide_image' => array(
[225] Fix | Delete
'label' => esc_html__( 'Slide Image', 'et_builder' ),
[226] Fix | Delete
'selector' => '.et_pb_slide_image',
[227] Fix | Delete
),
[228] Fix | Delete
'slide_arrows' => array(
[229] Fix | Delete
'label' => esc_html__( 'Slide Arrows', 'et_builder' ),
[230] Fix | Delete
'selector' => '.et-pb-slider-arrows a',
[231] Fix | Delete
),
[232] Fix | Delete
);
[233] Fix | Delete
[234] Fix | Delete
$this->help_videos = array(
[235] Fix | Delete
array(
[236] Fix | Delete
'id' => '-YeoR2xSLOY',
[237] Fix | Delete
'name' => esc_html__( 'An introduction to the Slider module', 'et_builder' ),
[238] Fix | Delete
),
[239] Fix | Delete
);
[240] Fix | Delete
}
[241] Fix | Delete
[242] Fix | Delete
function get_fields() {
[243] Fix | Delete
$fields = array(
[244] Fix | Delete
'show_arrows' => array(
[245] Fix | Delete
'label' => esc_html__( 'Show Arrows', 'et_builder' ),
[246] Fix | Delete
'type' => 'yes_no_button',
[247] Fix | Delete
'option_category' => 'configuration',
[248] Fix | Delete
'options' => array(
[249] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[250] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[251] Fix | Delete
),
[252] Fix | Delete
'default_on_front' => 'on',
[253] Fix | Delete
'toggle_slug' => 'elements',
[254] Fix | Delete
'description' => esc_html__( 'This setting will turn on and off the navigation arrows.', 'et_builder' ),
[255] Fix | Delete
'mobile_options' => true,
[256] Fix | Delete
'hover' => 'tabs',
[257] Fix | Delete
),
[258] Fix | Delete
'show_pagination' => array(
[259] Fix | Delete
'label' => esc_html__( 'Show Controls', 'et_builder' ),
[260] Fix | Delete
'type' => 'yes_no_button',
[261] Fix | Delete
'option_category' => 'configuration',
[262] Fix | Delete
'options' => array(
[263] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[264] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[265] Fix | Delete
),
[266] Fix | Delete
'default_on_front' => 'on',
[267] Fix | Delete
'toggle_slug' => 'elements',
[268] Fix | Delete
'description' => esc_html__( 'This setting will turn on and off the circle buttons at the bottom of the slider.', 'et_builder' ),
[269] Fix | Delete
'mobile_options' => true,
[270] Fix | Delete
'hover' => 'tabs',
[271] Fix | Delete
),
[272] Fix | Delete
'show_content_on_mobile' => array(
[273] Fix | Delete
'label' => esc_html__( 'Show Content On Mobile', 'et_builder' ),
[274] Fix | Delete
'type' => 'yes_no_button',
[275] Fix | Delete
'option_category' => 'layout',
[276] Fix | Delete
'options' => array(
[277] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[278] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[279] Fix | Delete
),
[280] Fix | Delete
'default_on_front' => 'on',
[281] Fix | Delete
'tab_slug' => 'custom_css',
[282] Fix | Delete
'toggle_slug' => 'visibility',
[283] Fix | Delete
),
[284] Fix | Delete
'show_cta_on_mobile' => array(
[285] Fix | Delete
'label' => esc_html__( 'Show CTA On Mobile', 'et_builder' ),
[286] Fix | Delete
'type' => 'yes_no_button',
[287] Fix | Delete
'option_category' => 'layout',
[288] Fix | Delete
'options' => array(
[289] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[290] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[291] Fix | Delete
),
[292] Fix | Delete
'default_on_front' => 'on',
[293] Fix | Delete
'tab_slug' => 'custom_css',
[294] Fix | Delete
'toggle_slug' => 'visibility',
[295] Fix | Delete
),
[296] Fix | Delete
'show_image_video_mobile' => array(
[297] Fix | Delete
'label' => esc_html__( 'Show Image / Video On Mobile', 'et_builder' ),
[298] Fix | Delete
'type' => 'yes_no_button',
[299] Fix | Delete
'option_category' => 'layout',
[300] Fix | Delete
'options' => array(
[301] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[302] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[303] Fix | Delete
),
[304] Fix | Delete
'default_on_front' => 'off',
[305] Fix | Delete
'tab_slug' => 'custom_css',
[306] Fix | Delete
'toggle_slug' => 'visibility',
[307] Fix | Delete
),
[308] Fix | Delete
'use_bg_overlay' => array(
[309] Fix | Delete
'label' => esc_html__( 'Use Background Overlay', 'et_builder' ),
[310] 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' ),
[311] Fix | Delete
'type' => 'yes_no_button',
[312] Fix | Delete
'options' => array(
[313] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[314] Fix | Delete
// Uses cached uppercase translation but keeps the lowercase not change definition content.
[315] Fix | Delete
'on' => strtolower( et_builder_i18n( 'Yes' ) ),
[316] Fix | Delete
),
[317] Fix | Delete
'default_on_front' => '',
[318] Fix | Delete
'affects' => array(
[319] Fix | Delete
'bg_overlay_color',
[320] Fix | Delete
),
[321] Fix | Delete
'tab_slug' => 'advanced',
[322] Fix | Delete
'toggle_slug' => 'overlay',
[323] Fix | Delete
'option_category' => 'configuration',
[324] Fix | Delete
),
[325] Fix | Delete
'bg_overlay_color' => array(
[326] Fix | Delete
'label' => esc_html__( 'Background Overlay Color', 'et_builder' ),
[327] Fix | Delete
'description' => esc_html__( 'Use the color picker to choose a color for the background overlay.', 'et_builder' ),
[328] Fix | Delete
'type' => 'color-alpha',
[329] Fix | Delete
'custom_color' => true,
[330] Fix | Delete
'depends_show_if' => 'on',
[331] Fix | Delete
'tab_slug' => 'advanced',
[332] Fix | Delete
'toggle_slug' => 'overlay',
[333] Fix | Delete
'option_category' => 'configuration',
[334] Fix | Delete
'mobile_options' => true,
[335] Fix | Delete
),
[336] Fix | Delete
'use_text_overlay' => array(
[337] Fix | Delete
'label' => esc_html__( 'Use Text Overlay', 'et_builder' ),
[338] 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' ),
[339] Fix | Delete
'type' => 'yes_no_button',
[340] Fix | Delete
'options' => array(
[341] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[342] Fix | Delete
// Uses cached uppercase translation but keeps the lowercase not change definition content.
[343] Fix | Delete
'on' => strtolower( et_builder_i18n( 'Yes' ) ),
[344] Fix | Delete
),
[345] Fix | Delete
'default_on_front' => '',
[346] Fix | Delete
'affects' => array(
[347] Fix | Delete
'text_overlay_color',
[348] Fix | Delete
'text_border_radius',
[349] Fix | Delete
),
[350] Fix | Delete
'tab_slug' => 'advanced',
[351] Fix | Delete
'toggle_slug' => 'overlay',
[352] Fix | Delete
'option_category' => 'configuration',
[353] Fix | Delete
),
[354] Fix | Delete
'text_overlay_color' => array(
[355] Fix | Delete
'label' => esc_html__( 'Text Overlay Color', 'et_builder' ),
[356] Fix | Delete
'description' => esc_html__( 'Use the color picker to choose a color for the text overlay.', 'et_builder' ),
[357] Fix | Delete
'type' => 'color-alpha',
[358] Fix | Delete
'custom_color' => true,
[359] Fix | Delete
'depends_show_if' => 'on',
[360] Fix | Delete
'tab_slug' => 'advanced',
[361] Fix | Delete
'toggle_slug' => 'overlay',
[362] Fix | Delete
'option_category' => 'configuration',
[363] Fix | Delete
'mobile_options' => true,
[364] Fix | Delete
),
[365] Fix | Delete
'text_border_radius' => array(
[366] Fix | Delete
'label' => esc_html__( 'Text Overlay Border Radius', 'et_builder' ),
[367] 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' ),
[368] Fix | Delete
'type' => 'range',
[369] Fix | Delete
'option_category' => 'layout',
[370] Fix | Delete
'allowed_units' => array( '%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw' ),
[371] Fix | Delete
'default' => '3',
[372] Fix | Delete
'default_unit' => 'px',
[373] Fix | Delete
'default_on_front' => '',
[374] Fix | Delete
'range_settings' => array(
[375] Fix | Delete
'min' => '0',
[376] Fix | Delete
'max' => '100',
[377] Fix | Delete
'step' => '1',
[378] Fix | Delete
),
[379] Fix | Delete
'depends_show_if' => 'on',
[380] Fix | Delete
'tab_slug' => 'advanced',
[381] Fix | Delete
'toggle_slug' => 'overlay',
[382] Fix | Delete
'mobile_options' => 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
'hover' => 'tabs',
[393] Fix | Delete
),
[394] Fix | Delete
'dot_nav_custom_color' => array(
[395] Fix | Delete
'label' => esc_html__( 'Dot Navigation Color', 'et_builder' ),
[396] 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' ),
[397] Fix | Delete
'type' => 'color-alpha',
[398] Fix | Delete
'custom_color' => true,
[399] Fix | Delete
'tab_slug' => 'advanced',
[400] Fix | Delete
'toggle_slug' => 'navigation',
[401] Fix | Delete
'mobile_options' => true,
[402] Fix | Delete
'hover' => 'tabs',
[403] Fix | Delete
),
[404] Fix | Delete
);
[405] Fix | Delete
[406] Fix | Delete
return $fields;
[407] Fix | Delete
}
[408] Fix | Delete
[409] Fix | Delete
public function get_transition_fields_css_props() {
[410] Fix | Delete
$fields = parent::get_transition_fields_css_props();
[411] Fix | Delete
[412] Fix | Delete
$fields['dot_nav_custom_color'] = array( 'background-color' => et_pb_slider_options()->get_dots_selector() );
[413] Fix | Delete
$fields['arrows_custom_color'] = array( 'all' => et_pb_slider_options()->get_arrows_selector() );
[414] Fix | Delete
[415] Fix | Delete
return $fields;
[416] Fix | Delete
}
[417] Fix | Delete
[418] Fix | Delete
function before_render() {
[419] 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;
[420] Fix | Delete
global $et_pb_slider_parent_type;
[421] Fix | Delete
[422] Fix | Delete
$et_pb_slider_parent_type = $this->slug;
[423] Fix | Delete
$et_pb_slider_item_num = 0;
[424] Fix | Delete
[425] Fix | Delete
$parallax = $this->props['parallax'];
[426] Fix | Delete
$parallax_method = $this->props['parallax_method'];
[427] Fix | Delete
$show_content_on_mobile = $this->props['show_content_on_mobile'];
[428] Fix | Delete
$show_cta_on_mobile = $this->props['show_cta_on_mobile'];
[429] Fix | Delete
$button_rel = $this->props['button_rel'];
[430] Fix | Delete
$button_custom = $this->props['custom_button'];
[431] Fix | Delete
[432] Fix | Delete
$custom_icon_values = et_pb_responsive_options()->get_property_values( $this->props, 'button_icon' );
[433] Fix | Delete
$custom_icon = isset( $custom_icon_values['desktop'] ) ? $custom_icon_values['desktop'] : '';
[434] Fix | Delete
$custom_icon_tablet = isset( $custom_icon_values['tablet'] ) ? $custom_icon_values['tablet'] : '';
[435] Fix | Delete
$custom_icon_phone = isset( $custom_icon_values['phone'] ) ? $custom_icon_values['phone'] : '';
[436] Fix | Delete
[437] Fix | Delete
$et_pb_slider_has_video = false;
[438] Fix | Delete
[439] Fix | Delete
$et_pb_slider_parallax = $parallax;
[440] Fix | Delete
[441] Fix | Delete
$et_pb_slider_parallax_method = $parallax_method;
[442] Fix | Delete
[443] Fix | Delete
$et_pb_slider_show_mobile = array(
[444] Fix | Delete
'show_content_on_mobile' => $show_content_on_mobile,
[445] Fix | Delete
'show_cta_on_mobile' => $show_cta_on_mobile,
[446] Fix | Delete
);
[447] Fix | Delete
[448] Fix | Delete
$et_pb_slider_custom_icon = 'on' === $button_custom ? $custom_icon : '';
[449] Fix | Delete
$et_pb_slider_custom_icon_tablet = 'on' === $button_custom ? $custom_icon_tablet : '';
[450] Fix | Delete
$et_pb_slider_custom_icon_phone = 'on' === $button_custom ? $custom_icon_phone : '';
[451] Fix | Delete
[452] Fix | Delete
$et_pb_slider_button_rel = $button_rel;
[453] Fix | Delete
[454] Fix | Delete
// BG Overlay Color.
[455] Fix | Delete
$bg_overlay_color = $this->props['bg_overlay_color'];
[456] Fix | Delete
$bg_overlay_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'bg_overlay_color' );
[457] Fix | Delete
$bg_overlay_color_tablet = isset( $bg_overlay_color_values['tablet'] ) ? $bg_overlay_color_values['tablet'] : '';
[458] Fix | Delete
$bg_overlay_color_phone = isset( $bg_overlay_color_values['phone'] ) ? $bg_overlay_color_values['phone'] : '';
[459] Fix | Delete
[460] Fix | Delete
// Text Overlay Color.
[461] Fix | Delete
$text_overlay_color = $this->props['text_overlay_color'];
[462] Fix | Delete
$text_overlay_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'text_overlay_color' );
[463] Fix | Delete
$text_overlay_color_tablet = isset( $text_overlay_color_values['tablet'] ) ? $text_overlay_color_values['tablet'] : '';
[464] Fix | Delete
$text_overlay_color_phone = isset( $text_overlay_color_values['phone'] ) ? $text_overlay_color_values['phone'] : '';
[465] Fix | Delete
[466] Fix | Delete
// Text Border Radius.
[467] Fix | Delete
$text_border_radius = $this->props['text_border_radius'];
[468] Fix | Delete
$text_border_radius_values = et_pb_responsive_options()->get_property_values( $this->props, 'text_border_radius' );
[469] Fix | Delete
$text_border_radius_tablet = isset( $text_border_radius_values['tablet'] ) ? $text_border_radius_values['tablet'] : '';
[470] Fix | Delete
$text_border_radius_phone = isset( $text_border_radius_values['phone'] ) ? $text_border_radius_values['phone'] : '';
[471] Fix | Delete
[472] Fix | Delete
// Arrows Color.
[473] Fix | Delete
$arrows_custom_color = $this->props['arrows_custom_color'];
[474] Fix | Delete
$arrows_custom_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'arrows_custom_color' );
[475] Fix | Delete
$arrows_custom_color_tablet = isset( $arrows_custom_color_values['tablet'] ) ? $arrows_custom_color_values['tablet'] : '';
[476] Fix | Delete
$arrows_custom_color_phone = isset( $arrows_custom_color_values['phone'] ) ? $arrows_custom_color_values['phone'] : '';
[477] Fix | Delete
[478] Fix | Delete
// Dot Nav Custom Color.
[479] Fix | Delete
$dot_nav_custom_color = $this->props['dot_nav_custom_color'];
[480] Fix | Delete
$dot_nav_custom_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'dot_nav_custom_color' );
[481] Fix | Delete
$dot_nav_custom_color_tablet = isset( $dot_nav_custom_color_values['tablet'] ) ? $dot_nav_custom_color_values['tablet'] : '';
[482] Fix | Delete
$dot_nav_custom_color_phone = isset( $dot_nav_custom_color_values['phone'] ) ? $dot_nav_custom_color_values['phone'] : '';
[483] Fix | Delete
[484] Fix | Delete
// Pass Slider Module setting to Slide Item
[485] Fix | Delete
global $et_pb_slider;
[486] Fix | Delete
[487] Fix | Delete
$et_pb_slider = array(
[488] Fix | Delete
'background_last_edited' => $this->props['background_last_edited'],
[489] Fix | Delete
'background__hover_enabled' => isset( $this->props['background__hover_enabled'] ) ? $this->props['background__hover_enabled'] : '',
[490] Fix | Delete
// Background Color.
[491] Fix | Delete
'background_enable_color' => $this->props['background_enable_color'],
[492] Fix | Delete
'background_enable_color_tablet' => $this->props['background_enable_color_tablet'],
[493] Fix | Delete
'background_enable_color_phone' => $this->props['background_enable_color_phone'],
[494] Fix | Delete
'background_enable_color__hover' => isset( $this->props['background_enable_color__hover'] ) ? $this->props['background_enable_color__hover'] : '',
[495] Fix | Delete
'background_color' => $this->props['background_color'],
[496] Fix | Delete
'background_color_tablet' => $this->props['background_color_tablet'],
[497] Fix | Delete
'background_color_phone' => $this->props['background_color_phone'],
[498] Fix | Delete
'background_color__hover' => isset( $this->props['background_color__hover'] ) ? $this->props['background_color__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