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

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/Divi/includes/builder
File: class-et-builder-element.php
"{$base_name}_color_gradient_start",
[8500] Fix | Delete
"{$base_name}_color_gradient_end",
[8501] Fix | Delete
"{$base_name}_color_gradient_start_position",
[8502] Fix | Delete
"{$base_name}_color_gradient_end_position",
[8503] Fix | Delete
"{$base_name}_color_gradient_type",
[8504] Fix | Delete
"{$base_name}_color_gradient_overlays_image",
[8505] Fix | Delete
),
[8506] Fix | Delete
'tab_slug' => $tab_slug,
[8507] Fix | Delete
'toggle_slug' => $toggle_slug,
[8508] Fix | Delete
'field_template' => 'use_color_gradient',
[8509] Fix | Delete
'mobile_options' => true,
[8510] Fix | Delete
'hover' => 'tabs',
[8511] Fix | Delete
);
[8512] Fix | Delete
[8513] Fix | Delete
$options["{$base_name}_color_gradient_start"] = array(
[8514] Fix | Delete
'label' => $i18n['background']['gradient_start']['label'],
[8515] Fix | Delete
'description' => '',
[8516] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'color-alpha',
[8517] Fix | Delete
'option_category' => 'configuration',
[8518] Fix | Delete
'depends_show_if' => 'on',
[8519] Fix | Delete
'default' => ET_Global_Settings::get_value( 'all_background_gradient_start' ),
[8520] Fix | Delete
'default_on_child' => true,
[8521] Fix | Delete
'tab_slug' => $tab_slug,
[8522] Fix | Delete
'toggle_slug' => $toggle_slug,
[8523] Fix | Delete
'field_template' => 'color_gradient_start',
[8524] Fix | Delete
'mobile_options' => true,
[8525] Fix | Delete
'hover' => 'tabs',
[8526] Fix | Delete
);
[8527] Fix | Delete
[8528] Fix | Delete
$options["{$base_name}_color_gradient_end"] = array(
[8529] Fix | Delete
'label' => $i18n['background']['gradient_end']['label'],
[8530] Fix | Delete
'description' => '',
[8531] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'color-alpha',
[8532] Fix | Delete
'option_category' => 'configuration',
[8533] Fix | Delete
'depends_show_if' => 'on',
[8534] Fix | Delete
'default' => ET_Global_Settings::get_value( 'all_background_gradient_end' ),
[8535] Fix | Delete
'default_on_child' => true,
[8536] Fix | Delete
'tab_slug' => $tab_slug,
[8537] Fix | Delete
'toggle_slug' => $toggle_slug,
[8538] Fix | Delete
'field_template' => 'color_gradient_end',
[8539] Fix | Delete
'mobile_options' => true,
[8540] Fix | Delete
'hover' => 'tabs',
[8541] Fix | Delete
);
[8542] Fix | Delete
[8543] Fix | Delete
$options["{$base_name}_color_gradient_type"] = array(
[8544] Fix | Delete
'label' => $i18n['background']['gradient_type']['label'],
[8545] Fix | Delete
'description' => $i18n['background']['gradient_type']['description'],
[8546] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'select',
[8547] Fix | Delete
'option_category' => 'configuration',
[8548] Fix | Delete
'options' => array(
[8549] Fix | Delete
'linear' => et_builder_i18n( 'Linear' ),
[8550] Fix | Delete
'radial' => et_builder_i18n( 'Radial' ),
[8551] Fix | Delete
),
[8552] Fix | Delete
'affects' => array(
[8553] Fix | Delete
"{$base_name}_color_gradient_direction",
[8554] Fix | Delete
"{$base_name}_color_gradient_direction_radial"
[8555] Fix | Delete
),
[8556] Fix | Delete
'default' => ET_Global_Settings::get_value( 'all_background_gradient_type' ),
[8557] Fix | Delete
'default_on_child' => true,
[8558] Fix | Delete
'description' => '',
[8559] Fix | Delete
'depends_show_if' => 'on',
[8560] Fix | Delete
'tab_slug' => $tab_slug,
[8561] Fix | Delete
'toggle_slug' => $toggle_slug,
[8562] Fix | Delete
'field_template' => 'color_gradient_type',
[8563] Fix | Delete
'mobile_options' => true,
[8564] Fix | Delete
'hover' => 'tabs',
[8565] Fix | Delete
);
[8566] Fix | Delete
[8567] Fix | Delete
$options["{$base_name}_color_gradient_direction"] = array(
[8568] Fix | Delete
'label' => $i18n['background']['gradient_direction']['label'],
[8569] Fix | Delete
'description' => $i18n['background']['gradient_direction']['description'],
[8570] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'range',
[8571] Fix | Delete
'option_category' => 'configuration',
[8572] Fix | Delete
'range_settings' => array(
[8573] Fix | Delete
'min' => 1,
[8574] Fix | Delete
'max' => 360,
[8575] Fix | Delete
'step' => 1,
[8576] Fix | Delete
),
[8577] Fix | Delete
'default' => ET_Global_Settings::get_value( 'all_background_gradient_direction' ),
[8578] Fix | Delete
'default_on_child' => true,
[8579] Fix | Delete
'validate_unit' => true,
[8580] Fix | Delete
'fixed_unit' => 'deg',
[8581] Fix | Delete
'fixed_range' => true,
[8582] Fix | Delete
'depends_show_if' => 'linear',
[8583] Fix | Delete
'tab_slug' => $tab_slug,
[8584] Fix | Delete
'toggle_slug' => $toggle_slug,
[8585] Fix | Delete
'field_template' => 'color_gradient_direction',
[8586] Fix | Delete
'mobile_options' => true,
[8587] Fix | Delete
'hover' => 'tabs',
[8588] Fix | Delete
);
[8589] Fix | Delete
[8590] Fix | Delete
$options["{$base_name}_color_gradient_direction_radial"] = array(
[8591] Fix | Delete
'label' => $i18n['background']['gradient_direction_radial']['label'],
[8592] Fix | Delete
'description' => $i18n['background']['gradient_direction_radial']['description'],
[8593] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'select',
[8594] Fix | Delete
'option_category' => 'configuration',
[8595] Fix | Delete
'options' => array(
[8596] Fix | Delete
'center' => et_builder_i18n( 'Center' ),
[8597] Fix | Delete
'top left' => et_builder_i18n( 'Top Left' ),
[8598] Fix | Delete
'top' => et_builder_i18n( 'Top' ),
[8599] Fix | Delete
'top right' => et_builder_i18n( 'Top Right' ),
[8600] Fix | Delete
'right' => et_builder_i18n( 'Right' ),
[8601] Fix | Delete
'bottom right' => et_builder_i18n( 'Bottom Right' ),
[8602] Fix | Delete
'bottom' => et_builder_i18n( 'Bottom' ),
[8603] Fix | Delete
'bottom left' => et_builder_i18n( 'Bottom Left' ),
[8604] Fix | Delete
'left' => et_builder_i18n( 'Left' ),
[8605] Fix | Delete
),
[8606] Fix | Delete
'default' => ET_Global_Settings::get_value( 'all_background_gradient_direction_radial' ),
[8607] Fix | Delete
'default_on_child' => true,
[8608] Fix | Delete
'description' => '',
[8609] Fix | Delete
'depends_show_if' => 'radial',
[8610] Fix | Delete
'tab_slug' => $tab_slug,
[8611] Fix | Delete
'toggle_slug' => $toggle_slug,
[8612] Fix | Delete
'field_template' => 'color_gradient_direction_radial',
[8613] Fix | Delete
'mobile_options' => true,
[8614] Fix | Delete
'hover' => 'tabs',
[8615] Fix | Delete
);
[8616] Fix | Delete
[8617] Fix | Delete
$options["{$base_name}_color_gradient_start_position"] = array(
[8618] Fix | Delete
'label' => $i18n['background']['gradient_start_position']['label'],
[8619] Fix | Delete
'description' => $i18n['background']['gradient_start_position']['description'],
[8620] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'range',
[8621] Fix | Delete
'option_category' => 'configuration',
[8622] Fix | Delete
'range_settings' => array(
[8623] Fix | Delete
'min' => 0,
[8624] Fix | Delete
'max' => 100,
[8625] Fix | Delete
'step' => 1,
[8626] Fix | Delete
),
[8627] Fix | Delete
'default' => ET_Global_Settings::get_value( 'all_background_gradient_start_position' ),
[8628] Fix | Delete
'default_on_child' => true,
[8629] Fix | Delete
'validate_unit' => true,
[8630] Fix | Delete
'allowed_units' => array( '%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pc', 'ex', 'vh', 'vw' ),
[8631] Fix | Delete
'default_unit' => '%',
[8632] Fix | Delete
'fixed_range' => true,
[8633] Fix | Delete
'depends_show_if' => 'on',
[8634] Fix | Delete
'tab_slug' => $tab_slug,
[8635] Fix | Delete
'toggle_slug' => $toggle_slug,
[8636] Fix | Delete
'field_template' => 'color_gradient_start_position',
[8637] Fix | Delete
'mobile_options' => true,
[8638] Fix | Delete
'hover' => 'tabs',
[8639] Fix | Delete
);
[8640] Fix | Delete
[8641] Fix | Delete
$options["{$base_name}_color_gradient_end_position"] = array(
[8642] Fix | Delete
'label' => $i18n['background']['gradient_end_position']['label'],
[8643] Fix | Delete
'description' => $i18n['background']['gradient_end_position']['description'],
[8644] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'range',
[8645] Fix | Delete
'option_category' => 'configuration',
[8646] Fix | Delete
'range_settings' => array(
[8647] Fix | Delete
'min' => 0,
[8648] Fix | Delete
'max' => 100,
[8649] Fix | Delete
'step' => 1,
[8650] Fix | Delete
),
[8651] Fix | Delete
'default' => ET_Global_Settings::get_value( 'all_background_gradient_end_position' ),
[8652] Fix | Delete
'default_on_child' => true,
[8653] Fix | Delete
'validate_unit' => true,
[8654] Fix | Delete
'allowed_units' => array( '%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pc', 'ex', 'vh', 'vw' ),
[8655] Fix | Delete
'default_unit' => '%',
[8656] Fix | Delete
'fixed_range' => true,
[8657] Fix | Delete
'depends_show_if' => 'on',
[8658] Fix | Delete
'tab_slug' => $tab_slug,
[8659] Fix | Delete
'toggle_slug' => $toggle_slug,
[8660] Fix | Delete
'field_template' => 'color_gradient_end_position',
[8661] Fix | Delete
'mobile_options' => true,
[8662] Fix | Delete
'hover' => 'tabs',
[8663] Fix | Delete
);
[8664] Fix | Delete
[8665] Fix | Delete
$options["${base_name}_color_gradient_overlays_image"] = array(
[8666] Fix | Delete
'label' => $i18n['background']['gradient_overlay']['label'],
[8667] Fix | Delete
'description' => $i18n['background']['gradient_overlay']['description'],
[8668] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'yes_no_button',
[8669] Fix | Delete
'option_category' => 'configuration',
[8670] Fix | Delete
'options' => array(
[8671] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[8672] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[8673] Fix | Delete
),
[8674] Fix | Delete
'default' => ET_Global_Settings::get_value( 'all_background_gradient_overlays_image' ),
[8675] Fix | Delete
'default_on_child' => true,
[8676] Fix | Delete
'depends_show_if' => 'on',
[8677] Fix | Delete
'tab_slug' => $tab_slug,
[8678] Fix | Delete
'toggle_slug' => $toggle_slug,
[8679] Fix | Delete
'field_template' => 'color_gradient_overlays_image',
[8680] Fix | Delete
'mobile_options' => true,
[8681] Fix | Delete
'hover' => 'tabs',
[8682] Fix | Delete
);
[8683] Fix | Delete
}
[8684] Fix | Delete
[8685] Fix | Delete
if ( in_array( $background_tab, array( 'all', 'button', 'skip', 'image' ) ) ) {
[8686] Fix | Delete
$options["{$base_name}_image"] = array(
[8687] Fix | Delete
'label' => $i18n['background']['image']['label'],
[8688] Fix | Delete
'choose_text' => $i18n['background']['image']['choose_text'],
[8689] Fix | Delete
'update_text' => $i18n['background']['image']['update_text'],
[8690] Fix | Delete
'upload_button_text' => et_builder_i18n( 'Upload an image' ),
[8691] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'upload',
[8692] Fix | Delete
'option_category' => 'configuration',
[8693] Fix | Delete
'tab_slug' => $tab_slug,
[8694] Fix | Delete
'toggle_slug' => $toggle_slug,
[8695] Fix | Delete
'field_template' => 'image',
[8696] Fix | Delete
'mobile_options' => true,
[8697] Fix | Delete
'hover' => 'tabs',
[8698] Fix | Delete
);
[8699] Fix | Delete
[8700] Fix | Delete
// This option is used to enable or disable background image on VB or FE. It's used to
[8701] Fix | Delete
// ensure if current background should be rendered or not by inheriting or applying
[8702] Fix | Delete
// custom image.
[8703] Fix | Delete
$options["{$base_name}_enable_image"] = array(
[8704] Fix | Delete
'type' => 'skip',
[8705] Fix | Delete
'tab_slug' => $tab_slug,
[8706] Fix | Delete
'toggle_slug' => $toggle_slug,
[8707] Fix | Delete
'default' => 'on',
[8708] Fix | Delete
'mobile_options' => true,
[8709] Fix | Delete
'hover' => 'tabs',
[8710] Fix | Delete
);
[8711] Fix | Delete
[8712] Fix | Delete
if ( 'button' !== $background_tab ) {
[8713] Fix | Delete
$options["${baseless_prefix}parallax"] = array(
[8714] Fix | Delete
'label' => $i18n['background']['parallax']['label'],
[8715] Fix | Delete
'description' => $i18n['background']['parallax']['description'],
[8716] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'yes_no_button',
[8717] Fix | Delete
'option_category' => 'configuration',
[8718] Fix | Delete
'options' => array(
[8719] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[8720] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[8721] Fix | Delete
),
[8722] Fix | Delete
'default' => 'off',
[8723] Fix | Delete
'default_on_child' => true,
[8724] Fix | Delete
'affects' => array(
[8725] Fix | Delete
"${baseless_prefix}parallax_method",
[8726] Fix | Delete
"{$base_name}_size",
[8727] Fix | Delete
"{$base_name}_position",
[8728] Fix | Delete
"{$base_name}_repeat",
[8729] Fix | Delete
"{$base_name}_blend",
[8730] Fix | Delete
),
[8731] Fix | Delete
'tab_slug' => $tab_slug,
[8732] Fix | Delete
'toggle_slug' => $toggle_slug,
[8733] Fix | Delete
'field_template' => 'parallax',
[8734] Fix | Delete
'mobile_options' => true,
[8735] Fix | Delete
'hover' => 'tabs',
[8736] Fix | Delete
);
[8737] Fix | Delete
[8738] Fix | Delete
$options["${baseless_prefix}parallax_method"] = array(
[8739] Fix | Delete
'label' => $i18n['background']['parallax_method']['label'],
[8740] Fix | Delete
'description' => $i18n['background']['parallax_method']['description'],
[8741] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'select',
[8742] Fix | Delete
'option_category' => 'configuration',
[8743] Fix | Delete
'options' => array(
[8744] Fix | Delete
'on' => $i18n['background']['parallax_method']['options']['on'],
[8745] Fix | Delete
'off' => $i18n['background']['parallax_method']['options']['off'],
[8746] Fix | Delete
),
[8747] Fix | Delete
'default' => self::$_->array_get( $this->advanced_fields, "background.options.{$baseless_prefix}parallax_method.default", 'on' ),
[8748] Fix | Delete
'default_on_child' => true,
[8749] Fix | Delete
'depends_show_if' => 'on',
[8750] Fix | Delete
'tab_slug' => $tab_slug,
[8751] Fix | Delete
'toggle_slug' => $toggle_slug,
[8752] Fix | Delete
'field_template' => 'parallax_method',
[8753] Fix | Delete
'mobile_options' => true,
[8754] Fix | Delete
'hover' => 'tabs',
[8755] Fix | Delete
);
[8756] Fix | Delete
}
[8757] Fix | Delete
[8758] Fix | Delete
$options["{$base_name}_size"] = array(
[8759] Fix | Delete
'label' => $i18n['background']['size']['label'],
[8760] Fix | Delete
'description' => $i18n['background']['size']['description'],
[8761] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'select',
[8762] Fix | Delete
'option_category' => 'layout',
[8763] Fix | Delete
'options' => array(
[8764] Fix | Delete
'cover' => $i18n['background']['size']['options']['cover'],
[8765] Fix | Delete
'contain' => $i18n['background']['size']['options']['contain'],
[8766] Fix | Delete
'initial' => $i18n['background']['size']['options']['initial'],
[8767] Fix | Delete
),
[8768] Fix | Delete
'default' => 'cover',
[8769] Fix | Delete
'default_on_child'=> true,
[8770] Fix | Delete
'depends_show_if' => 'off',
[8771] Fix | Delete
'tab_slug' => $tab_slug,
[8772] Fix | Delete
'toggle_slug' => $toggle_slug,
[8773] Fix | Delete
'field_template' => 'size',
[8774] Fix | Delete
'mobile_options' => true,
[8775] Fix | Delete
'hover' => 'tabs',
[8776] Fix | Delete
);
[8777] Fix | Delete
[8778] Fix | Delete
$options["{$base_name}_position"] = array(
[8779] Fix | Delete
'label' => $i18n['background']['position']['label'],
[8780] Fix | Delete
'description' => $i18n['background']['position']['description'],
[8781] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'select',
[8782] Fix | Delete
'option_category' => 'layout',
[8783] Fix | Delete
'options' => array(
[8784] Fix | Delete
'top_left' => et_builder_i18n( 'Top Left' ),
[8785] Fix | Delete
'top_center' => et_builder_i18n( 'Top Center' ),
[8786] Fix | Delete
'top_right' => et_builder_i18n( 'Top Right' ),
[8787] Fix | Delete
'center_left' => et_builder_i18n( 'Center Left' ),
[8788] Fix | Delete
'center' => et_builder_i18n( 'Center' ),
[8789] Fix | Delete
'center_right' => et_builder_i18n( 'Center Right' ),
[8790] Fix | Delete
'bottom_left' => et_builder_i18n( 'Bottom Left' ),
[8791] Fix | Delete
'bottom_center' => et_builder_i18n( 'Bottom Center' ),
[8792] Fix | Delete
'bottom_right' => et_builder_i18n( 'Bottom Right' ),
[8793] Fix | Delete
),
[8794] Fix | Delete
'default' => 'center',
[8795] Fix | Delete
'default_on_child' => true,
[8796] Fix | Delete
'depends_show_if' => 'off',
[8797] Fix | Delete
'tab_slug' => $tab_slug,
[8798] Fix | Delete
'toggle_slug' => $toggle_slug,
[8799] Fix | Delete
'field_template' => 'position',
[8800] Fix | Delete
'mobile_options' => true,
[8801] Fix | Delete
'hover' => 'tabs',
[8802] Fix | Delete
);
[8803] Fix | Delete
[8804] Fix | Delete
$options["{$base_name}_repeat"] = array(
[8805] Fix | Delete
'label' => $i18n['background']['repeat']['label'],
[8806] Fix | Delete
'description' => $i18n['background']['repeat']['description'],
[8807] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'select',
[8808] Fix | Delete
'option_category' => 'layout',
[8809] Fix | Delete
'options' => array(
[8810] Fix | Delete
'no-repeat' => $i18n['background']['repeat']['options']['no-repeat'],
[8811] Fix | Delete
'repeat' => $i18n['background']['repeat']['options']['repeat'],
[8812] Fix | Delete
'repeat-x' => $i18n['background']['repeat']['options']['repeat-x'],
[8813] Fix | Delete
'repeat-y' => $i18n['background']['repeat']['options']['repeat-y'],
[8814] Fix | Delete
'space' => et_builder_i18n( 'Space' ),
[8815] Fix | Delete
'round' => $i18n['background']['repeat']['options']['round'],
[8816] Fix | Delete
),
[8817] Fix | Delete
'default' => 'no-repeat',
[8818] Fix | Delete
'default_on_child' => true,
[8819] Fix | Delete
'depends_show_if' => 'off',
[8820] Fix | Delete
'tab_slug' => $tab_slug,
[8821] Fix | Delete
'toggle_slug' => $toggle_slug,
[8822] Fix | Delete
'field_template' => 'repeat',
[8823] Fix | Delete
'mobile_options' => true,
[8824] Fix | Delete
'hover' => 'tabs',
[8825] Fix | Delete
);
[8826] Fix | Delete
[8827] Fix | Delete
$options["{$base_name}_blend"] = array(
[8828] Fix | Delete
'label' => $i18n['background']['blend']['label'],
[8829] Fix | Delete
'description' => $i18n['background']['blend']['description'],
[8830] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'select',
[8831] Fix | Delete
'option_category' => 'layout',
[8832] Fix | Delete
'options' => array(
[8833] Fix | Delete
'normal' => et_builder_i18n( 'Normal' ),
[8834] Fix | Delete
'multiply' => et_builder_i18n( 'Multiply' ),
[8835] Fix | Delete
'screen' => et_builder_i18n( 'Screen' ),
[8836] Fix | Delete
'overlay' => et_builder_i18n( 'Overlay' ),
[8837] Fix | Delete
'darken' => et_builder_i18n( 'Darken' ),
[8838] Fix | Delete
'lighten' => et_builder_i18n( 'Lighten' ),
[8839] Fix | Delete
'color-dodge' => et_builder_i18n( 'Color Dodge' ),
[8840] Fix | Delete
'color-burn' => et_builder_i18n( 'Color Burn' ),
[8841] Fix | Delete
'hard-light' => et_builder_i18n( 'Hard Light' ),
[8842] Fix | Delete
'soft-light' => et_builder_i18n( 'Soft Light' ),
[8843] Fix | Delete
'difference' => et_builder_i18n( 'Difference' ),
[8844] Fix | Delete
'exclusion' => et_builder_i18n( 'Exclusion' ),
[8845] Fix | Delete
'hue' => et_builder_i18n( 'Hue' ),
[8846] Fix | Delete
'saturation' => et_builder_i18n( 'Saturation' ),
[8847] Fix | Delete
'color' => et_builder_i18n( 'Color' ),
[8848] Fix | Delete
'luminosity' => et_builder_i18n( 'Luminosity' ),
[8849] Fix | Delete
),
[8850] Fix | Delete
'default' => 'normal',
[8851] Fix | Delete
'default_on_child' => true,
[8852] Fix | Delete
'depends_show_if' => 'off',
[8853] Fix | Delete
'tab_slug' => $tab_slug,
[8854] Fix | Delete
'toggle_slug' => $toggle_slug,
[8855] Fix | Delete
'field_template' => 'blend',
[8856] Fix | Delete
'mobile_options' => true,
[8857] Fix | Delete
'hover' => 'tabs',
[8858] Fix | Delete
);
[8859] Fix | Delete
}
[8860] Fix | Delete
[8861] Fix | Delete
if ( in_array( $background_tab, array( 'all', 'skip', 'video' ) ) ) {
[8862] Fix | Delete
$options["{$base_name}_video_mp4"] = array(
[8863] Fix | Delete
'label' => $i18n['background']['mp4']['label'],
[8864] Fix | Delete
'description' => $i18n['background']['mp4']['description'],
[8865] Fix | Delete
'upload_button_text' => $i18n['background']['mp4']['upload_button_text'],
[8866] Fix | Delete
'choose_text' => $i18n['background']['mp4']['choose_text'],
[8867] Fix | Delete
'update_text' => $i18n['background']['mp4']['update_text'],
[8868] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'upload',
[8869] Fix | Delete
'option_category' => 'configuration',
[8870] Fix | Delete
'data_type' => 'video',
[8871] Fix | Delete
'tab_slug' => $tab_slug,
[8872] Fix | Delete
'toggle_slug' => $toggle_slug,
[8873] Fix | Delete
'computed_affects' => array(
[8874] Fix | Delete
"__video_{$base_name}",
[8875] Fix | Delete
),
[8876] Fix | Delete
'field_template' => 'video_mp4',
[8877] Fix | Delete
'mobile_options' => true,
[8878] Fix | Delete
'hover' => 'tabs',
[8879] Fix | Delete
'affects_mobile' => true,
[8880] Fix | Delete
);
[8881] Fix | Delete
[8882] Fix | Delete
// This option is used to enable or disable background MP4 video on VB or FE. It's used
[8883] Fix | Delete
// to ensure if current background should be rendered or not by inheriting or applying
[8884] Fix | Delete
// custom MP4 video.
[8885] Fix | Delete
$options["{$base_name}_enable_video_mp4"] = array(
[8886] Fix | Delete
'type' => 'skip',
[8887] Fix | Delete
'tab_slug' => $tab_slug,
[8888] Fix | Delete
'toggle_slug' => $toggle_slug,
[8889] Fix | Delete
'default' => 'on',
[8890] Fix | Delete
'mobile_options' => true,
[8891] Fix | Delete
'hover' => 'tabs',
[8892] Fix | Delete
);
[8893] Fix | Delete
[8894] Fix | Delete
$options["{$base_name}_video_webm"] = array(
[8895] Fix | Delete
'label' => $i18n['background']['webm']['label'],
[8896] Fix | Delete
'description' => $i18n['background']['webm']['description'],
[8897] Fix | Delete
'upload_button_text' => $i18n['background']['webm']['upload_button_text'],
[8898] Fix | Delete
'choose_text' => $i18n['background']['webm']['choose_text'],
[8899] Fix | Delete
'update_text' => $i18n['background']['webm']['update_text'],
[8900] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'upload',
[8901] Fix | Delete
'option_category' => 'configuration',
[8902] Fix | Delete
'data_type' => 'video',
[8903] Fix | Delete
'tab_slug' => $tab_slug,
[8904] Fix | Delete
'toggle_slug' => $toggle_slug,
[8905] Fix | Delete
'computed_affects' => array(
[8906] Fix | Delete
"__video_{$base_name}",
[8907] Fix | Delete
),
[8908] Fix | Delete
'field_template' => 'video_webm',
[8909] Fix | Delete
'mobile_options' => true,
[8910] Fix | Delete
'hover' => 'tabs',
[8911] Fix | Delete
'affects_mobile' => true,
[8912] Fix | Delete
);
[8913] Fix | Delete
[8914] Fix | Delete
// This option is used to enable or disable background Webm video on VB or FE. It's used
[8915] Fix | Delete
// to ensure if current background should be rendered or not by inheriting or applying
[8916] Fix | Delete
// custom Webm video.
[8917] Fix | Delete
$options["{$base_name}_enable_video_webm"] = array(
[8918] Fix | Delete
'type' => 'skip',
[8919] Fix | Delete
'tab_slug' => $tab_slug,
[8920] Fix | Delete
'toggle_slug' => $toggle_slug,
[8921] Fix | Delete
'default' => 'on',
[8922] Fix | Delete
'mobile_options' => true,
[8923] Fix | Delete
'hover' => 'tabs',
[8924] Fix | Delete
);
[8925] Fix | Delete
[8926] Fix | Delete
$options["{$base_name}_video_width"] = array(
[8927] Fix | Delete
'label' => $i18n['background']['video_width']['label'],
[8928] Fix | Delete
'description' => $i18n['background']['video_width']['description'],
[8929] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'text',
[8930] Fix | Delete
'option_category' => 'configuration',
[8931] Fix | Delete
'tab_slug' => $tab_slug,
[8932] Fix | Delete
'toggle_slug' => $toggle_slug,
[8933] Fix | Delete
'computed_affects' => array(
[8934] Fix | Delete
"__video_{$base_name}",
[8935] Fix | Delete
),
[8936] Fix | Delete
'field_template' => 'video_width',
[8937] Fix | Delete
'mobile_options' => true,
[8938] Fix | Delete
'hover' => 'tabs',
[8939] Fix | Delete
'affects_mobile' => true,
[8940] Fix | Delete
);
[8941] Fix | Delete
[8942] Fix | Delete
$options["{$base_name}_video_height"] = array(
[8943] Fix | Delete
'label' => $i18n['background']['video_height']['label'],
[8944] Fix | Delete
'description' => $i18n['background']['video_height']['description'],
[8945] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'text',
[8946] Fix | Delete
'option_category' => 'configuration',
[8947] Fix | Delete
'tab_slug' => $tab_slug,
[8948] Fix | Delete
'toggle_slug' => $toggle_slug,
[8949] Fix | Delete
'computed_affects' => array(
[8950] Fix | Delete
"__video_{$base_name}",
[8951] Fix | Delete
),
[8952] Fix | Delete
'field_template' => 'video_height',
[8953] Fix | Delete
'mobile_options' => true,
[8954] Fix | Delete
'hover' => 'tabs',
[8955] Fix | Delete
'affects_mobile' => true,
[8956] Fix | Delete
);
[8957] Fix | Delete
[8958] Fix | Delete
$options["${baseless_prefix}allow_player_pause"] = array(
[8959] Fix | Delete
'label' => $i18n['background']['pause']['label'],
[8960] Fix | Delete
'description' => $i18n['background']['pause']['description'],
[8961] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'yes_no_button',
[8962] Fix | Delete
'option_category' => 'configuration',
[8963] Fix | Delete
'options' => array(
[8964] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[8965] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[8966] Fix | Delete
),
[8967] Fix | Delete
'default' => 'off',
[8968] Fix | Delete
'default_on_child' => true,
[8969] Fix | Delete
'tab_slug' => $tab_slug,
[8970] Fix | Delete
'toggle_slug' => $toggle_slug,
[8971] Fix | Delete
'field_template' => 'allow_player_pause',
[8972] Fix | Delete
'mobile_options' => true,
[8973] Fix | Delete
'hover' => 'tabs',
[8974] Fix | Delete
);
[8975] Fix | Delete
[8976] Fix | Delete
$options["${base_name}_video_pause_outside_viewport"] = array(
[8977] Fix | Delete
'label' => $i18n['background']['viewport']['label'],
[8978] Fix | Delete
'description' => $i18n['background']['viewport']['description'],
[8979] Fix | Delete
'type' => 'skip' === $background_tab ? 'skip' : 'yes_no_button',
[8980] Fix | Delete
'option_category' => 'configuration',
[8981] Fix | Delete
'options' => array(
[8982] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[8983] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[8984] Fix | Delete
),
[8985] Fix | Delete
'default' => 'on',
[8986] Fix | Delete
'default_on_child' => true,
[8987] Fix | Delete
'tab_slug' => $tab_slug,
[8988] Fix | Delete
'toggle_slug' => $toggle_slug,
[8989] Fix | Delete
'field_template' => 'video_pause_outside_viewport',
[8990] Fix | Delete
'mobile_options' => true,
[8991] Fix | Delete
'hover' => 'tabs',
[8992] Fix | Delete
);
[8993] Fix | Delete
[8994] Fix | Delete
$options["__video_{$base_name}"] = array(
[8995] Fix | Delete
'type' => 'computed',
[8996] Fix | Delete
'computed_callback' => array( 'ET_Builder_Module_Helper_ResponsiveOptions', 'get_video_background' ),
[8997] Fix | Delete
'computed_depends_on' => array(
[8998] Fix | Delete
"{$base_name}_video_mp4",
[8999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function