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
'default' => ET_Global_Settings::get_value( 'all_buttons_bg_color' ),
[5000] Fix | Delete
'default_on_front' => '',
[5001] Fix | Delete
'tab_slug' => $tab_slug,
[5002] Fix | Delete
'toggle_slug' => $toggle_slug,
[5003] Fix | Delete
'depends_show_if' => 'on',
[5004] Fix | Delete
'background_fields' => $this->generate_background_options( "{$option_name}_bg", 'button', $tab_slug, $toggle_slug, "{$option_name}_bg_color" ),
[5005] Fix | Delete
'hover' => 'tabs',
[5006] Fix | Delete
'mobile_options' => true,
[5007] Fix | Delete
);
[5008] Fix | Delete
[5009] Fix | Delete
$additional_options["{$option_name}_bg_color"]['background_fields']["{$option_name}_bg_color"]['default'] = ET_Global_Settings::get_value( 'all_buttons_bg_color' );
[5010] Fix | Delete
[5011] Fix | Delete
$additional_options = array_merge( $additional_options, $this->generate_background_options( "{$option_name}_bg", 'skip', $tab_slug, $toggle_slug, "{$option_name}_bg_color" ) );
[5012] Fix | Delete
[5013] Fix | Delete
$additional_options["{$option_name}_border_width"] = array(
[5014] Fix | Delete
'label' => sprintf( esc_html__( '%1$s Border Width', 'et_builder' ), $option_settings['label'] ),
[5015] Fix | Delete
'description' => esc_html__( 'Increase or decrease the thickness of the border around the button. Setting this value to 0 will remove the border entirely.', 'et_builder' ),
[5016] Fix | Delete
'type' => 'range',
[5017] Fix | Delete
'option_category' => 'button',
[5018] Fix | Delete
'default' => ! empty( $border_width_default ) ? $border_width_default : ET_Global_Settings::get_value( 'all_buttons_border_width' ),
[5019] Fix | Delete
'default_unit' => 'px',
[5020] Fix | Delete
'default_on_front' => '',
[5021] Fix | Delete
'allowed_units' => array( 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw' ),
[5022] Fix | Delete
'tab_slug' => $tab_slug,
[5023] Fix | Delete
'toggle_slug' => $toggle_slug,
[5024] Fix | Delete
'depends_show_if' => 'on',
[5025] Fix | Delete
'hover' => 'tabs',
[5026] Fix | Delete
'mobile_options' => true,
[5027] Fix | Delete
);
[5028] Fix | Delete
[5029] Fix | Delete
$additional_options["{$option_name}_border_color"] = array(
[5030] Fix | Delete
'label' => sprintf( esc_html__( '%1$s Border Color', 'et_builder' ), $option_settings['label'] ),
[5031] Fix | Delete
'description' => esc_html__( 'Pick a color to be used for the button border.', 'et_builder' ),
[5032] Fix | Delete
'type' => 'color-alpha',
[5033] Fix | Delete
'option_category' => 'button',
[5034] Fix | Delete
'custom_color' => true,
[5035] Fix | Delete
'default' => '',
[5036] Fix | Delete
'tab_slug' => $tab_slug,
[5037] Fix | Delete
'toggle_slug' => $toggle_slug,
[5038] Fix | Delete
'depends_show_if' => 'on',
[5039] Fix | Delete
'hover' => 'tabs',
[5040] Fix | Delete
'mobile_options' => true,
[5041] Fix | Delete
);
[5042] Fix | Delete
[5043] Fix | Delete
$additional_options["{$option_name}_border_radius"] = array(
[5044] Fix | Delete
'label' => sprintf( esc_html__( '%1$s Border Radius', 'et_builder' ), $option_settings['label'] ),
[5045] Fix | Delete
'description' => esc_html__( "Increasing the border radius will increase the roundness of the button's corners. Setting this value to 0 will result in squared corners.", 'et_builder' ),
[5046] Fix | Delete
'type' => 'range',
[5047] Fix | Delete
'option_category' => 'button',
[5048] Fix | Delete
'default' => ET_Global_Settings::get_value( 'all_buttons_border_radius' ),
[5049] Fix | Delete
'default_unit' => 'px',
[5050] Fix | Delete
'default_on_front' => '',
[5051] Fix | Delete
'allowed_units' => array( '%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw' ),
[5052] Fix | Delete
'tab_slug' => $tab_slug,
[5053] Fix | Delete
'toggle_slug' => $toggle_slug,
[5054] Fix | Delete
'depends_show_if' => 'on',
[5055] Fix | Delete
'hover' => 'tabs',
[5056] Fix | Delete
'mobile_options' => true,
[5057] Fix | Delete
);
[5058] Fix | Delete
[5059] Fix | Delete
$additional_options["{$option_name}_letter_spacing"] = array(
[5060] Fix | Delete
'label' => sprintf( $i18n['font']['letter_spacing']['label'], $option_settings['label'] ),
[5061] Fix | Delete
'description' => esc_html__( 'Letter spacing adjusts the distance between each letter in the button.', 'et_builder' ),
[5062] Fix | Delete
'type' => 'range',
[5063] Fix | Delete
'option_category' => 'button',
[5064] Fix | Delete
'default' => ET_Global_Settings::get_value( 'all_buttons_spacing' ),
[5065] Fix | Delete
'default_unit' => 'px',
[5066] Fix | Delete
'default_on_front' => '',
[5067] Fix | Delete
'tab_slug' => $tab_slug,
[5068] Fix | Delete
'toggle_slug' => $toggle_slug,
[5069] Fix | Delete
'mobile_options' => true,
[5070] Fix | Delete
'depends_show_if' => 'on',
[5071] Fix | Delete
'hover' => 'tabs',
[5072] Fix | Delete
);
[5073] Fix | Delete
[5074] Fix | Delete
$additional_options["{$option_name}_font"] = array(
[5075] Fix | Delete
'label' => sprintf( $i18n['font']['font']['label'], $option_settings['label'] ),
[5076] Fix | Delete
'description' => esc_html__( 'Choose a custom font to use for the button. All Google web fonts are available, or you can upload your own custom font files.', 'et_builder' ),
[5077] Fix | Delete
'group_label' => esc_html__( $option_settings['label'] ),
[5078] Fix | Delete
'type' => 'font',
[5079] Fix | Delete
'option_category' => 'button',
[5080] Fix | Delete
'tab_slug' => $tab_slug,
[5081] Fix | Delete
'toggle_slug' => $toggle_slug,
[5082] Fix | Delete
'depends_show_if' => 'on',
[5083] Fix | Delete
'mobile_options' => true,
[5084] Fix | Delete
);
[5085] Fix | Delete
[5086] Fix | Delete
// Hide show button icon.
[5087] Fix | Delete
$hide_icon = isset( $option_settings['hide_icon'] ) ? $option_settings['hide_icon'] : false;
[5088] Fix | Delete
if ( false === $hide_icon ) {
[5089] Fix | Delete
$additional_options["{$option_name}_use_icon"] = array(
[5090] Fix | Delete
'label' => sprintf( esc_html__( 'Show %1$s Icon', 'et_builder' ), $option_settings['label'] ),
[5091] Fix | Delete
'description' => esc_html__( 'When enabled, this will add a custom icon within the button.', 'et_builder' ),
[5092] Fix | Delete
'type' => 'yes_no_button',
[5093] Fix | Delete
'option_category' => 'button',
[5094] Fix | Delete
'default' => 'on',
[5095] Fix | Delete
'options' => array(
[5096] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[5097] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[5098] Fix | Delete
),
[5099] Fix | Delete
'affects' => array(
[5100] Fix | Delete
"{$option_name}_icon_color",
[5101] Fix | Delete
"{$option_name}_icon_placement",
[5102] Fix | Delete
"{$option_name}_on_hover",
[5103] Fix | Delete
"{$option_name}_icon",
[5104] Fix | Delete
),
[5105] Fix | Delete
'tab_slug' => $tab_slug,
[5106] Fix | Delete
'toggle_slug' => $toggle_slug,
[5107] Fix | Delete
'depends_show_if' => 'on',
[5108] Fix | Delete
);
[5109] Fix | Delete
[5110] Fix | Delete
$additional_options["{$option_name}_icon"] = array(
[5111] Fix | Delete
'label' => sprintf( esc_html__( '%1$s Icon', 'et_builder' ), $option_settings['label'] ),
[5112] Fix | Delete
'description' => esc_html__( 'Pick an icon to be used for the button.', 'et_builder' ),
[5113] Fix | Delete
'type' => 'select_icon',
[5114] Fix | Delete
'option_category' => 'button',
[5115] Fix | Delete
'class' => array( 'et-pb-font-icon' ),
[5116] Fix | Delete
'default' => '',
[5117] Fix | Delete
'tab_slug' => $tab_slug,
[5118] Fix | Delete
'toggle_slug' => $toggle_slug,
[5119] Fix | Delete
'depends_show_if_not' => 'off',
[5120] Fix | Delete
'mobile_options' => true,
[5121] Fix | Delete
);
[5122] Fix | Delete
[5123] Fix | Delete
$additional_options["{$option_name}_icon_color"] = array(
[5124] Fix | Delete
'label' => sprintf( esc_html__( '%1$s Icon Color', 'et_builder' ), $option_settings['label'] ),
[5125] Fix | Delete
'description' => esc_html__( 'Here you can define a custom color for the button icon.', 'et_builder' ),
[5126] Fix | Delete
'type' => 'color-alpha',
[5127] Fix | Delete
'option_category' => 'button',
[5128] Fix | Delete
'custom_color' => true,
[5129] Fix | Delete
'default' => '',
[5130] Fix | Delete
'hover' => 'tabs',
[5131] Fix | Delete
'tab_slug' => $tab_slug,
[5132] Fix | Delete
'toggle_slug' => $toggle_slug,
[5133] Fix | Delete
'depends_show_if_not' => 'off',
[5134] Fix | Delete
'mobile_options' => true,
[5135] Fix | Delete
);
[5136] Fix | Delete
[5137] Fix | Delete
$additional_options["{$option_name}_icon_placement"] = array(
[5138] Fix | Delete
'label' => sprintf( esc_html__( '%1$s Icon Placement', 'et_builder' ), $option_settings['label'] ),
[5139] Fix | Delete
'description' => esc_html__( 'Choose where the button icon should be displayed within the button.', 'et_builder' ),
[5140] Fix | Delete
'type' => 'select',
[5141] Fix | Delete
'option_category' => 'button',
[5142] Fix | Delete
'options' => array(
[5143] Fix | Delete
'right' => et_builder_i18n( 'Right' ),
[5144] Fix | Delete
'left' => et_builder_i18n( 'Left' ),
[5145] Fix | Delete
),
[5146] Fix | Delete
'default' => 'right',
[5147] Fix | Delete
'tab_slug' => $tab_slug,
[5148] Fix | Delete
'toggle_slug' => $toggle_slug,
[5149] Fix | Delete
'depends_show_if_not' => 'off',
[5150] Fix | Delete
'mobile_options' => true,
[5151] Fix | Delete
);
[5152] Fix | Delete
[5153] Fix | Delete
$additional_options["{$option_name}_on_hover"] = array(
[5154] Fix | Delete
'label' => sprintf( esc_html__( 'Only Show Icon On Hover for %1$s', 'et_builder' ), $option_settings['label'] ),
[5155] Fix | Delete
'description' => esc_html__( 'By default, button icons are displayed on hover. If you would like button icons to always be displayed, then you can enable this option.', 'et_builder' ),
[5156] Fix | Delete
'type' => 'yes_no_button',
[5157] Fix | Delete
'option_category' => 'button',
[5158] Fix | Delete
'default' => 'on',
[5159] Fix | Delete
'options' => array(
[5160] Fix | Delete
'on' => et_builder_i18n( 'Yes' ),
[5161] Fix | Delete
'off' => et_builder_i18n( 'No' ),
[5162] Fix | Delete
),
[5163] Fix | Delete
'tab_slug' => $tab_slug,
[5164] Fix | Delete
'toggle_slug' => $toggle_slug,
[5165] Fix | Delete
'depends_show_if_not' => 'off',
[5166] Fix | Delete
'mobile_options' => true,
[5167] Fix | Delete
);
[5168] Fix | Delete
}
[5169] Fix | Delete
[5170] Fix | Delete
if ( isset( $option_settings['use_alignment'] ) && $option_settings['use_alignment'] ) {
[5171] Fix | Delete
$additional_options["{$option_name}_alignment"] = array(
[5172] Fix | Delete
'label' => esc_html__( 'Button Alignment', 'et_builder' ),
[5173] Fix | Delete
'description' => esc_html__( 'Align your button to the left, right or center of the module.', 'et_builder' ),
[5174] Fix | Delete
'type' => 'text_align',
[5175] Fix | Delete
'option_category' => 'layout',
[5176] Fix | Delete
'options' => et_builder_get_text_orientation_options( array( 'justified' ) ),
[5177] Fix | Delete
'tab_slug' => $tab_slug,
[5178] Fix | Delete
'toggle_slug' => $toggle_slug,
[5179] Fix | Delete
'mobile_options' => true,
[5180] Fix | Delete
);
[5181] Fix | Delete
}
[5182] Fix | Delete
[5183] Fix | Delete
// The configurable rel attribute field is added by default
[5184] Fix | Delete
if ( ! isset( $option_settings['no_rel_attr'] ) ) {
[5185] Fix | Delete
$additional_options["{$option_name}_rel"] = array(
[5186] Fix | Delete
'label' => sprintf( esc_html__( '%1$s Relationship', 'et_builder' ), $option_settings['label'] ),
[5187] Fix | Delete
'type' => 'multiple_checkboxes',
[5188] Fix | Delete
'option_category' => 'configuration',
[5189] Fix | Delete
'options' => $this->get_rel_values(),
[5190] Fix | Delete
'description' => et_get_safe_localization( __( "Specify the value of your link's <em>rel</em> attribute. The <em>rel</em> attribute specifies the relationship between the current document and the linked document.<br><strong>Tip:</strong> Search engines can use this attribute to get more information about a link.", 'et_builder' ) ),
[5191] Fix | Delete
'tab_slug' => 'custom_css',
[5192] Fix | Delete
'toggle_slug' => 'attributes',
[5193] Fix | Delete
'shortcut_index' => $option_name,
[5194] Fix | Delete
);
[5195] Fix | Delete
}
[5196] Fix | Delete
[5197] Fix | Delete
// Add text-shadow to button options
[5198] Fix | Delete
$option = $this->text_shadow->get_fields(array(
[5199] Fix | Delete
'label' => $option_settings['label'],
[5200] Fix | Delete
'prefix' => $option_name,
[5201] Fix | Delete
'option_category' => 'font_option',
[5202] Fix | Delete
'tab_slug' => $tab_slug,
[5203] Fix | Delete
'toggle_slug' => $toggle_slug,
[5204] Fix | Delete
'depends_show_if' => 'on',
[5205] Fix | Delete
'show_if' => array(
[5206] Fix | Delete
"custom_{$option_name}" => 'on',
[5207] Fix | Delete
),
[5208] Fix | Delete
));
[5209] Fix | Delete
[5210] Fix | Delete
$additional_options = array_merge( $additional_options, $option );
[5211] Fix | Delete
[5212] Fix | Delete
// Conditionally add box-shadow options to button options. Get box shadow settings for advanced button fields.
[5213] Fix | Delete
$button_box_shadow_options = self::$_->array_get( $option_settings, 'box_shadow', array() );
[5214] Fix | Delete
[5215] Fix | Delete
// Enable module to remove box shadow from advanced button fields by declaring false value to box
[5216] Fix | Delete
// shadow attribute (i.e. button module)
[5217] Fix | Delete
if ( false !== $button_box_shadow_options ) {
[5218] Fix | Delete
$button_box_shadow_options = wp_parse_args( $button_box_shadow_options, array(
[5219] Fix | Delete
'label' => esc_html__( 'Button Box Shadow', 'et_builder' ),
[5220] Fix | Delete
'option_category' => 'layout',
[5221] Fix | Delete
'tab_slug' => $tab_slug,
[5222] Fix | Delete
'toggle_slug' => $toggle_slug,
[5223] Fix | Delete
'show_if' => array(
[5224] Fix | Delete
"custom_{$option_name}" => 'on',
[5225] Fix | Delete
),
[5226] Fix | Delete
) );
[5227] Fix | Delete
[5228] Fix | Delete
// Only print box shadow styling if custom_* attribute is equal to "on" by adding show_iff attribute
[5229] Fix | Delete
$button_visibility_condition = array( "custom_{$option_name}" => 'on' );
[5230] Fix | Delete
[5231] Fix | Delete
self::$_->array_set( $button_box_shadow_options, 'css.show_if', $button_visibility_condition );
[5232] Fix | Delete
[5233] Fix | Delete
// Automatically add default box shadow fields if box shadow attribute hasn't even defined yet.
[5234] Fix | Delete
// No attribute found is considered true for default thus if this about to add the first advanced
[5235] Fix | Delete
// box shadow, add the default first
[5236] Fix | Delete
if ( ! isset( $this->advanced_fields['box_shadow'] ) ) {
[5237] Fix | Delete
$button_box_shadow_options_default = array();
[5238] Fix | Delete
[5239] Fix | Delete
self::$_->array_set( $this->advanced_fields, "box_shadow.default", $button_box_shadow_options_default );
[5240] Fix | Delete
}
[5241] Fix | Delete
[5242] Fix | Delete
// Box shadow fields are generated after button fields being added. Thus, adding $this->advanced_fields
[5243] Fix | Delete
// is sufficient to insert the box shadow fields
[5244] Fix | Delete
self::$_->array_set( $this->advanced_fields, "box_shadow.{$option_name}", $button_box_shadow_options );
[5245] Fix | Delete
}
[5246] Fix | Delete
[5247] Fix | Delete
// Add custom margin-padding to form field options.
[5248] Fix | Delete
$margin_padding = self::$_->array_get( $option_settings, 'margin_padding', true );
[5249] Fix | Delete
if ( $margin_padding ) {
[5250] Fix | Delete
$margin_padding_module_args = is_array( $margin_padding ) ? $margin_padding : array();
[5251] Fix | Delete
$margin_padding_args = wp_parse_args( $margin_padding_module_args, array(
[5252] Fix | Delete
'label' => $option_settings['label'],
[5253] Fix | Delete
'prefix' => $option_name,
[5254] Fix | Delete
'tab_slug' => $tab_slug,
[5255] Fix | Delete
'toggle_slug' => $toggle_slug,
[5256] Fix | Delete
) );
[5257] Fix | Delete
$margin_padding_options = $this->margin_padding->get_fields( $margin_padding_args );
[5258] Fix | Delete
$additional_options = array_merge( $additional_options, $margin_padding_options );
[5259] Fix | Delete
}
[5260] Fix | Delete
}
[5261] Fix | Delete
[5262] Fix | Delete
$this->_additional_fields_options = array_merge( $this->_additional_fields_options, $additional_options );
[5263] Fix | Delete
}
[5264] Fix | Delete
[5265] Fix | Delete
/**
[5266] Fix | Delete
* Add animation option fields.
[5267] Fix | Delete
*
[5268] Fix | Delete
* @since 3.23 Introduce responsive settings on all animation options. Rename Animation label
[5269] Fix | Delete
* for et_pb_team_member module as Image Animation. Reorder animation repeat option
[5270] Fix | Delete
* to the bottom of animation settings.
[5271] Fix | Delete
*/
[5272] Fix | Delete
protected function _add_animation_fields() {
[5273] Fix | Delete
[5274] Fix | Delete
// Animation fields are added by default on all module
[5275] Fix | Delete
$this->advanced_fields['animation'] = self::$_->array_get( $this->advanced_fields, 'animation', array() );
[5276] Fix | Delete
[5277] Fix | Delete
// Animation Disabled
[5278] Fix | Delete
if ( false === $this->advanced_fields['animation'] ) {
[5279] Fix | Delete
return;
[5280] Fix | Delete
}
[5281] Fix | Delete
[5282] Fix | Delete
$classname = get_class( $this );
[5283] Fix | Delete
[5284] Fix | Delete
// Child modules do not support the Animation settings except for Columns.
[5285] Fix | Delete
if ( isset( $this->type ) && 'child' === $this->type && !in_array( $this->slug, array( 'et_pb_column', 'et_pb_column_inner' ) ) ) {
[5286] Fix | Delete
return;
[5287] Fix | Delete
}
[5288] Fix | Delete
[5289] Fix | Delete
// Cache results so that translation/escaping only happens once.
[5290] Fix | Delete
$i18n =& self::$i18n;
[5291] Fix | Delete
if ( ! isset( $i18n['animation'] ) ) {
[5292] Fix | Delete
// phpcs:disable WordPress.WP.I18n.MissingTranslatorsComment
[5293] Fix | Delete
$i18n['animation'] = array(
[5294] Fix | Delete
'toggle' => array(
[5295] Fix | Delete
'title' => esc_html__( 'Animation', 'et_builder' ),
[5296] Fix | Delete
),
[5297] Fix | Delete
'style' => array(
[5298] Fix | Delete
'label' => esc_html__( 'Animation Style', 'et_builder' ),
[5299] Fix | Delete
'description' => esc_html__( 'Pick an animation style to enable animations for this element. Once enabled, you will be able to customize your animation style further. To disable animations, choose the None option.', 'et_builder' ),
[5300] Fix | Delete
'options' => array(
[5301] Fix | Delete
'fade' => et_builder_i18n( 'Fade' ),
[5302] Fix | Delete
'slide' => et_builder_i18n( 'Slide' ),
[5303] Fix | Delete
'bounce' => esc_html__( 'Bounce', 'et_builder' ),
[5304] Fix | Delete
'zoom' => esc_html__( 'Zoom', 'et_builder' ),
[5305] Fix | Delete
'flip' => et_builder_i18n( 'Flip' ),
[5306] Fix | Delete
'fold' => esc_html__( 'Fold', 'et_builder' ),
[5307] Fix | Delete
'roll' => esc_html__( 'Roll', 'et_builder' ),
[5308] Fix | Delete
),
[5309] Fix | Delete
),
[5310] Fix | Delete
'direction' => array(
[5311] Fix | Delete
'label' => esc_html__( 'Animation Direction', 'et_builder' ),
[5312] Fix | Delete
'description' => esc_html__( 'Pick from up to five different animation directions, each of which will adjust the starting and ending position of your animated element.', 'et_builder' ),
[5313] Fix | Delete
),
[5314] Fix | Delete
'duration' => array(
[5315] Fix | Delete
'label' => esc_html__( 'Animation Duration', 'et_builder' ),
[5316] Fix | Delete
'description' => esc_html__( 'Speed up or slow down your animation by adjusting the animation duration. Units are in milliseconds and the default animation duration is one second.', 'et_builder' ),
[5317] Fix | Delete
),
[5318] Fix | Delete
'delay' => array(
[5319] Fix | Delete
'label' => esc_html__( 'Animation Delay', 'et_builder' ),
[5320] Fix | Delete
'description' => esc_html__( 'If you would like to add a delay before your animation runs you can designate that delay here in milliseconds. This can be useful when using multiple animated modules together.', 'et_builder' ),
[5321] Fix | Delete
),
[5322] Fix | Delete
'opacity' => array(
[5323] Fix | Delete
'label' => esc_html__( 'Animation Starting Opacity', 'et_builder' ),
[5324] Fix | Delete
'description' => esc_html__( 'By increasing the starting opacity, you can reduce or remove the fade effect that is applied to all animation styles.', 'et_builder' ),
[5325] Fix | Delete
),
[5326] Fix | Delete
'speed' => array(
[5327] Fix | Delete
'label' => esc_html__( 'Animation Speed Curve', 'et_builder' ),
[5328] Fix | Delete
'description' => esc_html__( 'Here you can adjust the easing method of your animation. Easing your animation in and out will create a smoother effect when compared to a linear speed curve.', 'et_builder' ),
[5329] Fix | Delete
),
[5330] Fix | Delete
'repeat' => array(
[5331] Fix | Delete
'label' => esc_html__( 'Animation Repeat', 'et_builder' ),
[5332] Fix | Delete
'description' => esc_html__( 'By default, animations will only play once. If you would like to loop your animation continuously you can choose the Loop option here.', 'et_builder' ),
[5333] Fix | Delete
'options' => array(
[5334] Fix | Delete
'once' => esc_html__( 'Once', 'et_builder' ),
[5335] Fix | Delete
'loop' => esc_html__( 'Loop', 'et_builder' ),
[5336] Fix | Delete
),
[5337] Fix | Delete
),
[5338] Fix | Delete
'menu' => array(
[5339] Fix | Delete
'label' => esc_html__( 'Dropdown Menu Animation', 'et_builder' ),
[5340] Fix | Delete
'description' => esc_html__( 'Select an animation to be used when dropdown menus appear. Dropdown menus appear when hovering over links with sub items.', 'et_builder' ),
[5341] Fix | Delete
),
[5342] Fix | Delete
'intensity' => array(
[5343] Fix | Delete
'label' => esc_html__( 'Animation Intensity', 'et_builder' ),
[5344] Fix | Delete
'description' => esc_html__( 'Intensity effects how subtle or aggressive your animation will be. Lowering the intensity will create a smoother and more subtle animation while increasing the intensity will create a snappier more aggressive animation.', 'et_builder' ),
[5345] Fix | Delete
),
[5346] Fix | Delete
);
[5347] Fix | Delete
// phpcs:enable
[5348] Fix | Delete
}
[5349] Fix | Delete
[5350] Fix | Delete
$this->settings_modal_toggles['advanced']['toggles']['animation'] = array(
[5351] Fix | Delete
'title' => $i18n['animation']['toggle']['title'],
[5352] Fix | Delete
'priority' => 110,
[5353] Fix | Delete
);
[5354] Fix | Delete
[5355] Fix | Delete
$additional_options = array();
[5356] Fix | Delete
$animations_intensity_fields = array(
[5357] Fix | Delete
'animation_intensity_slide',
[5358] Fix | Delete
'animation_intensity_zoom',
[5359] Fix | Delete
'animation_intensity_flip',
[5360] Fix | Delete
'animation_intensity_fold',
[5361] Fix | Delete
'animation_intensity_roll',
[5362] Fix | Delete
);
[5363] Fix | Delete
[5364] Fix | Delete
$additional_options['animation_style'] = array(
[5365] Fix | Delete
'label' => $i18n['animation']['style']['label'],
[5366] Fix | Delete
'description' => $i18n['animation']['style']['description'],
[5367] Fix | Delete
'type' => 'select_animation',
[5368] Fix | Delete
'option_category' => 'configuration',
[5369] Fix | Delete
'default' => 'none',
[5370] Fix | Delete
'options' => array(
[5371] Fix | Delete
'none' => et_builder_i18n( 'None' ),
[5372] Fix | Delete
'fade' => $i18n['animation']['style']['options']['fade'],
[5373] Fix | Delete
'slide' => $i18n['animation']['style']['options']['slide'],
[5374] Fix | Delete
'bounce' => $i18n['animation']['style']['options']['bounce'],
[5375] Fix | Delete
'zoom' => $i18n['animation']['style']['options']['zoom'],
[5376] Fix | Delete
'flip' => $i18n['animation']['style']['options']['flip'],
[5377] Fix | Delete
'fold' => $i18n['animation']['style']['options']['fold'],
[5378] Fix | Delete
'roll' => $i18n['animation']['style']['options']['roll'],
[5379] Fix | Delete
),
[5380] Fix | Delete
'tab_slug' => 'advanced',
[5381] Fix | Delete
'toggle_slug' => 'animation',
[5382] Fix | Delete
'affects' => array_merge( array(
[5383] Fix | Delete
'animation_repeat',
[5384] Fix | Delete
'animation_direction',
[5385] Fix | Delete
'animation_duration',
[5386] Fix | Delete
'animation_delay',
[5387] Fix | Delete
'animation_starting_opacity',
[5388] Fix | Delete
'animation_speed_curve',
[5389] Fix | Delete
), $animations_intensity_fields ),
[5390] Fix | Delete
);
[5391] Fix | Delete
[5392] Fix | Delete
$additional_options['animation_direction'] = array(
[5393] Fix | Delete
'label' => $i18n['animation']['direction']['label'],
[5394] Fix | Delete
'description' => $i18n['animation']['direction']['description'],
[5395] Fix | Delete
'type' => 'select',
[5396] Fix | Delete
'option_category' => 'configuration',
[5397] Fix | Delete
'default' => 'center',
[5398] Fix | Delete
'options' => array(
[5399] Fix | Delete
'center' => et_builder_i18n( 'Center' ),
[5400] Fix | Delete
'left' => et_builder_i18n( 'Right' ),
[5401] Fix | Delete
'right' => et_builder_i18n( 'Left' ),
[5402] Fix | Delete
'bottom' => et_builder_i18n( 'Up' ),
[5403] Fix | Delete
'top' => et_builder_i18n( 'Down' ),
[5404] Fix | Delete
),
[5405] Fix | Delete
'tab_slug' => 'advanced',
[5406] Fix | Delete
'toggle_slug' => 'animation',
[5407] Fix | Delete
'depends_show_if_not' => array( 'none', 'fade' ),
[5408] Fix | Delete
'mobile_options' => true,
[5409] Fix | Delete
);
[5410] Fix | Delete
[5411] Fix | Delete
$additional_options['animation_duration'] = array(
[5412] Fix | Delete
'label' => $i18n['animation']['duration']['label'],
[5413] Fix | Delete
'description' => $i18n['animation']['duration']['description'],
[5414] Fix | Delete
'type' => 'range',
[5415] Fix | Delete
'option_category' => 'configuration',
[5416] Fix | Delete
'range_settings' => array(
[5417] Fix | Delete
'min' => 0,
[5418] Fix | Delete
'max' => 2000,
[5419] Fix | Delete
'step' => 50,
[5420] Fix | Delete
),
[5421] Fix | Delete
'default' => '1000ms',
[5422] Fix | Delete
'validate_unit' => true,
[5423] Fix | Delete
'fixed_unit' => 'ms',
[5424] Fix | Delete
'fixed_range' => true,
[5425] Fix | Delete
'tab_slug' => 'advanced',
[5426] Fix | Delete
'toggle_slug' => 'animation',
[5427] Fix | Delete
'depends_show_if_not' => 'none',
[5428] Fix | Delete
'reset_animation' => true,
[5429] Fix | Delete
'mobile_options' => true,
[5430] Fix | Delete
);
[5431] Fix | Delete
[5432] Fix | Delete
$additional_options['animation_delay'] = array(
[5433] Fix | Delete
'label' => $i18n['animation']['delay']['label'],
[5434] Fix | Delete
'description' => $i18n['animation']['delay']['description'],
[5435] Fix | Delete
'type' => 'range',
[5436] Fix | Delete
'option_category' => 'configuration',
[5437] Fix | Delete
'range_settings' => array(
[5438] Fix | Delete
'min' => 0,
[5439] Fix | Delete
'max' => 3000,
[5440] Fix | Delete
'step' => 50,
[5441] Fix | Delete
),
[5442] Fix | Delete
'default' => '0ms',
[5443] Fix | Delete
'validate_unit' => true,
[5444] Fix | Delete
'fixed_unit' => 'ms',
[5445] Fix | Delete
'fixed_range' => true,
[5446] Fix | Delete
'tab_slug' => 'advanced',
[5447] Fix | Delete
'toggle_slug' => 'animation',
[5448] Fix | Delete
'depends_show_if_not' => 'none',
[5449] Fix | Delete
'reset_animation' => true,
[5450] Fix | Delete
'mobile_options' => true,
[5451] Fix | Delete
);
[5452] Fix | Delete
[5453] Fix | Delete
foreach ( $animations_intensity_fields as $animations_intensity_field ) {
[5454] Fix | Delete
$animation_style = str_replace( 'animation_intensity_', '', $animations_intensity_field );
[5455] Fix | Delete
[5456] Fix | Delete
$additional_options[ $animations_intensity_field ] = array(
[5457] Fix | Delete
'label' => $i18n['animation']['intensity']['label'],
[5458] Fix | Delete
'description' => $i18n['animation']['intensity']['description'],
[5459] Fix | Delete
'type' => 'range',
[5460] Fix | Delete
'option_category' => 'configuration',
[5461] Fix | Delete
'range_settings' => array(
[5462] Fix | Delete
'min' => 0,
[5463] Fix | Delete
'max' => 100,
[5464] Fix | Delete
'step' => 1,
[5465] Fix | Delete
),
[5466] Fix | Delete
'default' => '50%',
[5467] Fix | Delete
'validate_unit' => true,
[5468] Fix | Delete
'fixed_unit' => '%',
[5469] Fix | Delete
'fixed_range' => true,
[5470] Fix | Delete
'tab_slug' => 'advanced',
[5471] Fix | Delete
'toggle_slug' => 'animation',
[5472] Fix | Delete
'depends_show_if' => $animation_style,
[5473] Fix | Delete
'reset_animation' => true,
[5474] Fix | Delete
'mobile_options' => true,
[5475] Fix | Delete
);
[5476] Fix | Delete
}
[5477] Fix | Delete
[5478] Fix | Delete
$additional_options['animation_starting_opacity'] = array(
[5479] Fix | Delete
'label' => $i18n['animation']['opacity']['label'],
[5480] Fix | Delete
'description' => $i18n['animation']['opacity']['description'],
[5481] Fix | Delete
'type' => 'range',
[5482] Fix | Delete
'option_category' => 'configuration',
[5483] Fix | Delete
'range_settings' => array(
[5484] Fix | Delete
'min' => 0,
[5485] Fix | Delete
'max' => 100,
[5486] Fix | Delete
'step' => 1,
[5487] Fix | Delete
'min_limit' => 0,
[5488] Fix | Delete
'max_limit' => 100,
[5489] Fix | Delete
),
[5490] Fix | Delete
'default' => '0%',
[5491] Fix | Delete
'validate_unit' => true,
[5492] Fix | Delete
'fixed_unit' => '%',
[5493] Fix | Delete
'fixed_range' => true,
[5494] Fix | Delete
'tab_slug' => 'advanced',
[5495] Fix | Delete
'toggle_slug' => 'animation',
[5496] Fix | Delete
'depends_show_if_not' => 'none',
[5497] Fix | Delete
'reset_animation' => true,
[5498] Fix | Delete
'mobile_options' => true,
[5499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function