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
);
[5500] Fix | Delete
[5501] Fix | Delete
$additional_options['animation_speed_curve'] = array(
[5502] Fix | Delete
'label' => $i18n['animation']['speed']['label'],
[5503] Fix | Delete
'description' => $i18n['animation']['speed']['description'],
[5504] Fix | Delete
'type' => 'select',
[5505] Fix | Delete
'option_category' => 'configuration',
[5506] Fix | Delete
'default' => 'ease-in-out',
[5507] Fix | Delete
'options' => array(
[5508] Fix | Delete
'ease-in-out' => et_builder_i18n( 'Ease-In-Out' ),
[5509] Fix | Delete
'ease' => et_builder_i18n( 'Ease' ),
[5510] Fix | Delete
'ease-in' => et_builder_i18n( 'Ease-In' ),
[5511] Fix | Delete
'ease-out' => et_builder_i18n( 'Ease-Out' ),
[5512] Fix | Delete
'linear' => et_builder_i18n( 'Linear' ),
[5513] Fix | Delete
),
[5514] Fix | Delete
'tab_slug' => 'advanced',
[5515] Fix | Delete
'toggle_slug' => 'animation',
[5516] Fix | Delete
'depends_show_if_not' => 'none',
[5517] Fix | Delete
'mobile_options' => true,
[5518] Fix | Delete
);
[5519] Fix | Delete
[5520] Fix | Delete
$additional_options['animation_repeat'] = array(
[5521] Fix | Delete
'label' => $i18n['animation']['repeat']['label'],
[5522] Fix | Delete
'description' => $i18n['animation']['repeat']['description'],
[5523] Fix | Delete
'type' => 'select',
[5524] Fix | Delete
'option_category' => 'configuration',
[5525] Fix | Delete
'default' => 'once',
[5526] Fix | Delete
'options' => array(
[5527] Fix | Delete
'once' => $i18n['animation']['repeat']['options']['once'],
[5528] Fix | Delete
'loop' => $i18n['animation']['repeat']['options']['loop'],
[5529] Fix | Delete
),
[5530] Fix | Delete
'tab_slug' => 'advanced',
[5531] Fix | Delete
'toggle_slug' => 'animation',
[5532] Fix | Delete
'depends_show_if_not' => 'none',
[5533] Fix | Delete
'mobile_options' => true,
[5534] Fix | Delete
);
[5535] Fix | Delete
[5536] Fix | Delete
if ( isset( $this->slug ) && in_array( $this->slug, array( 'et_pb_menu', 'et_pb_fullwidth_menu' ), true ) ) {
[5537] Fix | Delete
$additional_options['dropdown_menu_animation'] = array(
[5538] Fix | Delete
'label' => $i18n['animation']['menu']['label'],
[5539] Fix | Delete
'description' => $i18n['animation']['menu']['description'],
[5540] Fix | Delete
'type' => 'select',
[5541] Fix | Delete
'option_category' => 'configuration',
[5542] Fix | Delete
'options' => array(
[5543] Fix | Delete
'fade' => et_builder_i18n( 'Fade' ),
[5544] Fix | Delete
'expand' => et_builder_i18n( 'Expand' ),
[5545] Fix | Delete
'slide' => et_builder_i18n( 'Slide' ),
[5546] Fix | Delete
'flip' => et_builder_i18n( 'Flip' ),
[5547] Fix | Delete
),
[5548] Fix | Delete
'tab_slug' => 'advanced',
[5549] Fix | Delete
'toggle_slug' => 'animation',
[5550] Fix | Delete
'default' => 'fade',
[5551] Fix | Delete
);
[5552] Fix | Delete
}
[5553] Fix | Delete
[5554] Fix | Delete
// Move existing "Animation" section fields under the new animations UI
[5555] Fix | Delete
if ( isset( $this->slug ) && 'et_pb_fullwidth_portfolio' === $this->slug ) {
[5556] Fix | Delete
$additional_options['auto'] = array(
[5557] Fix | Delete
'label' => esc_html__( 'Automatic Carousel Rotation', 'et_builder' ),
[5558] Fix | Delete
'description' => esc_html__( 'If you the carousel layout option is chosen and you would like the carousel to slide automatically, without the visitor having to click the next button, enable this option and then adjust the rotation speed below if desired.', 'et_builder' ),
[5559] Fix | Delete
'type' => 'yes_no_button',
[5560] Fix | Delete
'option_category' => 'configuration',
[5561] Fix | Delete
'options' => array(
[5562] Fix | Delete
'off' => et_builder_i18n( 'Off' ),
[5563] Fix | Delete
'on' => et_builder_i18n( 'On' ),
[5564] Fix | Delete
),
[5565] Fix | Delete
'affects' => array(
[5566] Fix | Delete
'auto_speed',
[5567] Fix | Delete
),
[5568] Fix | Delete
'depends_show_if' => 'on',
[5569] Fix | Delete
'tab_slug' => 'advanced',
[5570] Fix | Delete
'toggle_slug' => 'animation',
[5571] Fix | Delete
'default' => 'off',
[5572] Fix | Delete
);
[5573] Fix | Delete
[5574] Fix | Delete
$additional_options['auto_speed'] = array(
[5575] Fix | Delete
'label' => esc_html__( 'Automatic Carousel Rotation Speed (in ms)', 'et_builder' ),
[5576] Fix | Delete
'type' => 'text',
[5577] Fix | Delete
'option_category' => 'configuration',
[5578] Fix | Delete
'depends_show_if' => 'on',
[5579] Fix | Delete
'tab_slug' => 'advanced',
[5580] Fix | Delete
'toggle_slug' => 'animation',
[5581] Fix | Delete
'description' => esc_html__( "Here you can designate how fast the carousel rotates, if 'Automatic Carousel Rotation' option is enabled above. The higher the number the longer the pause between each rotation. (Ex. 1000 = 1 sec)", 'et_builder' ),
[5582] Fix | Delete
'default' => '7000',
[5583] Fix | Delete
);
[5584] Fix | Delete
}
[5585] Fix | Delete
[5586] Fix | Delete
if ( isset( $this->slug ) && 'et_pb_fullwidth_slider' === $this->slug ) {
[5587] Fix | Delete
$additional_options['auto'] = array(
[5588] Fix | Delete
'label' => esc_html__( 'Automatic Animation', 'et_builder' ),
[5589] Fix | Delete
'type' => 'yes_no_button',
[5590] Fix | Delete
'option_category' => 'configuration',
[5591] Fix | Delete
'options' => array(
[5592] Fix | Delete
'off' => et_builder_i18n( 'Off' ),
[5593] Fix | Delete
'on' => et_builder_i18n( 'On' ),
[5594] Fix | Delete
),
[5595] Fix | Delete
'affects' => array(
[5596] Fix | Delete
'auto_speed',
[5597] Fix | Delete
'auto_ignore_hover',
[5598] Fix | Delete
),
[5599] Fix | Delete
'tab_slug' => 'advanced',
[5600] Fix | Delete
'toggle_slug' => 'animation',
[5601] Fix | Delete
'description' => esc_html__( 'If you would like the slider to slide automatically, without the visitor having to click the next button, enable this option and then adjust the rotation speed below if desired.', 'et_builder' ),
[5602] Fix | Delete
'default' => 'off',
[5603] Fix | Delete
);
[5604] Fix | Delete
[5605] Fix | Delete
$additional_options['auto_speed'] = array(
[5606] Fix | Delete
'label' => esc_html__( 'Automatic Animation Speed (in ms)', 'et_builder' ),
[5607] Fix | Delete
'type' => 'text',
[5608] Fix | Delete
'option_category' => 'configuration',
[5609] Fix | Delete
'depends_show_if' => 'on',
[5610] Fix | Delete
'tab_slug' => 'advanced',
[5611] Fix | Delete
'toggle_slug' => 'animation',
[5612] Fix | Delete
'description' => esc_html__( "Here you can designate how fast the slider fades between each slide, if 'Automatic Animation' option is enabled above. The higher the number the longer the pause between each rotation.", 'et_builder' ),
[5613] Fix | Delete
'default' => '7000',
[5614] Fix | Delete
);
[5615] Fix | Delete
[5616] Fix | Delete
$additional_options['auto_ignore_hover'] = array(
[5617] Fix | Delete
'label' => esc_html__( 'Continue Automatic Slide on Hover', 'et_builder' ),
[5618] Fix | Delete
'type' => 'yes_no_button',
[5619] Fix | Delete
'option_category' => 'configuration',
[5620] Fix | Delete
'depends_show_if' => 'on',
[5621] Fix | Delete
'options' => array(
[5622] Fix | Delete
'off' => et_builder_i18n( 'Off' ),
[5623] Fix | Delete
'on' => et_builder_i18n( 'On' ),
[5624] Fix | Delete
),
[5625] Fix | Delete
'tab_slug' => 'advanced',
[5626] Fix | Delete
'toggle_slug' => 'animation',
[5627] Fix | Delete
'description' => esc_html__( 'Turning this on will allow automatic sliding to continue on mouse hover.', 'et_builder' ),
[5628] Fix | Delete
'default' => 'off',
[5629] Fix | Delete
);
[5630] Fix | Delete
}
[5631] Fix | Delete
[5632] Fix | Delete
if ( isset( $this->slug ) && 'et_pb_fullwidth_post_slider' === $this->slug ) {
[5633] Fix | Delete
$additional_options['auto'] = array(
[5634] Fix | Delete
'label' => esc_html__( 'Automatic Animation', 'et_builder' ),
[5635] Fix | Delete
'type' => 'yes_no_button',
[5636] Fix | Delete
'option_category' => 'configuration',
[5637] Fix | Delete
'options' => array(
[5638] Fix | Delete
'off' => et_builder_i18n( 'Off' ),
[5639] Fix | Delete
'on' => et_builder_i18n( 'On' ),
[5640] Fix | Delete
),
[5641] Fix | Delete
'affects' => array(
[5642] Fix | Delete
'auto_speed',
[5643] Fix | Delete
'auto_ignore_hover',
[5644] Fix | Delete
),
[5645] Fix | Delete
'tab_slug' => 'advanced',
[5646] Fix | Delete
'toggle_slug' => 'animation',
[5647] Fix | Delete
'description' => esc_html__( 'If you would like the slider to slide automatically, without the visitor having to click the next button, enable this option and then adjust the rotation speed below if desired.', 'et_builder' ),
[5648] Fix | Delete
'default' => 'off',
[5649] Fix | Delete
);
[5650] Fix | Delete
[5651] Fix | Delete
$additional_options['auto_speed'] = array(
[5652] Fix | Delete
'label' => esc_html__( 'Automatic Animation Speed (in ms)', 'et_builder' ),
[5653] Fix | Delete
'type' => 'text',
[5654] Fix | Delete
'option_category' => 'configuration',
[5655] Fix | Delete
'depends_show_if' => 'on',
[5656] Fix | Delete
'tab_slug' => 'advanced',
[5657] Fix | Delete
'toggle_slug' => 'animation',
[5658] Fix | Delete
'description' => esc_html__( "Here you can designate how fast the slider fades between each slide, if 'Automatic Animation' option is enabled above. The higher the number the longer the pause between each rotation.", 'et_builder' ),
[5659] Fix | Delete
'default' => '7000',
[5660] Fix | Delete
);
[5661] Fix | Delete
[5662] Fix | Delete
$additional_options['auto_ignore_hover'] = array(
[5663] Fix | Delete
'label' => esc_html__( 'Continue Automatic Slide on Hover', 'et_builder' ),
[5664] Fix | Delete
'type' => 'yes_no_button',
[5665] Fix | Delete
'option_category' => 'configuration',
[5666] Fix | Delete
'depends_show_if' => 'on',
[5667] Fix | Delete
'options' => array(
[5668] Fix | Delete
'off' => et_builder_i18n( 'Off' ),
[5669] Fix | Delete
'on' => et_builder_i18n( 'On' ),
[5670] Fix | Delete
),
[5671] Fix | Delete
'tab_slug' => 'advanced',
[5672] Fix | Delete
'toggle_slug' => 'animation',
[5673] Fix | Delete
'description' => esc_html__( 'Turning this on will allow automatic sliding to continue on mouse hover.', 'et_builder' ),
[5674] Fix | Delete
'default' => 'off',
[5675] Fix | Delete
);
[5676] Fix | Delete
}
[5677] Fix | Delete
[5678] Fix | Delete
if ( isset( $this->slug ) && in_array( $this->slug, array( 'et_pb_gallery', 'et_pb_wc_images', 'et_pb_wc_gallery' ), true ) ) {
[5679] Fix | Delete
$additional_options['auto'] = array(
[5680] Fix | Delete
'label' => esc_html__( 'Automatic Animation', 'et_builder' ),
[5681] Fix | Delete
'type' => 'yes_no_button',
[5682] Fix | Delete
'option_category' => 'configuration',
[5683] Fix | Delete
'options' => array(
[5684] Fix | Delete
'off' => et_builder_i18n( 'Off' ),
[5685] Fix | Delete
'on' => et_builder_i18n( 'On' ),
[5686] Fix | Delete
),
[5687] Fix | Delete
'affects' => array(
[5688] Fix | Delete
'auto_speed',
[5689] Fix | Delete
),
[5690] Fix | Delete
'depends_show_if' => 'on',
[5691] Fix | Delete
'depends_on' => array(
[5692] Fix | Delete
'fullwidth',
[5693] Fix | Delete
),
[5694] Fix | Delete
'tab_slug' => 'advanced',
[5695] Fix | Delete
'toggle_slug' => 'animation',
[5696] Fix | Delete
'description' => esc_html__( 'If you would like the slider to slide automatically, without the visitor having to click the next button, enable this option and then adjust the rotation speed below if desired.', 'et_builder' ),
[5697] Fix | Delete
'default' => 'off',
[5698] Fix | Delete
);
[5699] Fix | Delete
[5700] Fix | Delete
$additional_options['auto_speed'] = array(
[5701] Fix | Delete
'label' => esc_html__( 'Automatic Animation Speed (in ms)', 'et_builder' ),
[5702] Fix | Delete
'type' => 'text',
[5703] Fix | Delete
'option_category' => 'configuration',
[5704] Fix | Delete
'depends_show_if' => 'on',
[5705] Fix | Delete
'tab_slug' => 'advanced',
[5706] Fix | Delete
'toggle_slug' => 'animation',
[5707] Fix | Delete
'description' => esc_html__( "Here you can designate how fast the slider fades between each slide, if 'Automatic Animation' option is enabled above. The higher the number the longer the pause between each rotation.", 'et_builder' ),
[5708] Fix | Delete
'default' => '7000',
[5709] Fix | Delete
);
[5710] Fix | Delete
}
[5711] Fix | Delete
[5712] Fix | Delete
if ( isset( $this->slug ) && 'et_pb_blurb' === $this->slug ) {
[5713] Fix | Delete
$additional_options['animation'] = array(
[5714] Fix | Delete
'label' => esc_html__( 'Image/Icon Animation', 'et_builder' ),
[5715] Fix | Delete
'type' => 'select',
[5716] Fix | Delete
'option_category' => 'configuration',
[5717] Fix | Delete
'options' => array(
[5718] Fix | Delete
'top' => esc_html__( 'Top To Bottom', 'et_builder' ),
[5719] Fix | Delete
'left' => esc_html__( 'Left To Right', 'et_builder' ),
[5720] Fix | Delete
'right' => esc_html__( 'Right To Left', 'et_builder' ),
[5721] Fix | Delete
'bottom' => esc_html__( 'Bottom To Top', 'et_builder' ),
[5722] Fix | Delete
'off' => esc_html__( 'No Animation', 'et_builder' ),
[5723] Fix | Delete
),
[5724] Fix | Delete
'tab_slug' => 'advanced',
[5725] Fix | Delete
'toggle_slug' => 'animation',
[5726] Fix | Delete
'description' => esc_html__( 'This controls the direction of the lazy-loading animation.', 'et_builder' ),
[5727] Fix | Delete
'default' => 'top',
[5728] Fix | Delete
'mobile_options' => true,
[5729] Fix | Delete
);
[5730] Fix | Delete
}
[5731] Fix | Delete
[5732] Fix | Delete
if ( isset( $this->slug ) && 'et_pb_slider' === $this->slug ) {
[5733] Fix | Delete
$additional_options['auto'] = array(
[5734] Fix | Delete
'label' => esc_html__( 'Automatic Animation', 'et_builder' ),
[5735] Fix | Delete
'type' => 'yes_no_button',
[5736] Fix | Delete
'option_category' => 'configuration',
[5737] Fix | Delete
'options' => array(
[5738] Fix | Delete
'off' => et_builder_i18n( 'Off' ),
[5739] Fix | Delete
'on' => et_builder_i18n( 'On' ),
[5740] Fix | Delete
),
[5741] Fix | Delete
'affects' => array(
[5742] Fix | Delete
'auto_speed',
[5743] Fix | Delete
'auto_ignore_hover',
[5744] Fix | Delete
),
[5745] Fix | Delete
'tab_slug' => 'advanced',
[5746] Fix | Delete
'toggle_slug' => 'animation',
[5747] Fix | Delete
'description' => esc_html__( 'If you would like the slider to slide automatically, without the visitor having to click the next button, enable this option and then adjust the rotation speed below if desired.', 'et_builder' ),
[5748] Fix | Delete
'default' => 'off',
[5749] Fix | Delete
);
[5750] Fix | Delete
[5751] Fix | Delete
$additional_options['auto_speed'] = array(
[5752] Fix | Delete
'label' => esc_html__( 'Automatic Animation Speed (in ms)', 'et_builder' ),
[5753] Fix | Delete
'type' => 'text',
[5754] Fix | Delete
'option_category' => 'configuration',
[5755] Fix | Delete
'depends_show_if' => 'on',
[5756] Fix | Delete
'tab_slug' => 'advanced',
[5757] Fix | Delete
'toggle_slug' => 'animation',
[5758] Fix | Delete
'description' => esc_html__( "Here you can designate how fast the slider fades between each slide, if 'Automatic Animation' option is enabled above. The higher the number the longer the pause between each rotation.", 'et_builder' ),
[5759] Fix | Delete
'default' => '7000',
[5760] Fix | Delete
);
[5761] Fix | Delete
[5762] Fix | Delete
$additional_options['auto_ignore_hover'] = array(
[5763] Fix | Delete
'label' => esc_html__( 'Continue Automatic Slide on Hover', 'et_builder' ),
[5764] Fix | Delete
'type' => 'yes_no_button',
[5765] Fix | Delete
'option_category' => 'configuration',
[5766] Fix | Delete
'depends_show_if' => 'on',
[5767] Fix | Delete
'options' => array(
[5768] Fix | Delete
'off' => et_builder_i18n( 'Off' ),
[5769] Fix | Delete
'on' => et_builder_i18n( 'On' ),
[5770] Fix | Delete
),
[5771] Fix | Delete
'tab_slug' => 'advanced',
[5772] Fix | Delete
'toggle_slug' => 'animation',
[5773] Fix | Delete
'description' => esc_html__( 'Turning this on will allow automatic sliding to continue on mouse hover.', 'et_builder' ),
[5774] Fix | Delete
'default' => 'off',
[5775] Fix | Delete
);
[5776] Fix | Delete
}
[5777] Fix | Delete
[5778] Fix | Delete
if ( isset( $this->slug ) && 'et_pb_post_slider' === $this->slug ) {
[5779] Fix | Delete
$additional_options['auto'] = array(
[5780] Fix | Delete
'label' => esc_html__( 'Automatic Animation', 'et_builder' ),
[5781] Fix | Delete
'type' => 'yes_no_button',
[5782] Fix | Delete
'option_category' => 'configuration',
[5783] Fix | Delete
'options' => array(
[5784] Fix | Delete
'off' => et_builder_i18n( 'Off' ),
[5785] Fix | Delete
'on' => et_builder_i18n( 'On' ),
[5786] Fix | Delete
),
[5787] Fix | Delete
'affects' => array(
[5788] Fix | Delete
'auto_speed',
[5789] Fix | Delete
'auto_ignore_hover',
[5790] Fix | Delete
),
[5791] Fix | Delete
'tab_slug' => 'advanced',
[5792] Fix | Delete
'toggle_slug' => 'animation',
[5793] Fix | Delete
'description' => esc_html__( 'If you would like the slider to slide automatically, without the visitor having to click the next button, enable this option and then adjust the rotation speed below if desired.', 'et_builder' ),
[5794] Fix | Delete
'default' => 'off',
[5795] Fix | Delete
);
[5796] Fix | Delete
[5797] Fix | Delete
$additional_options['auto_speed'] = array(
[5798] Fix | Delete
'label' => esc_html__( 'Automatic Animation Speed (in ms)', 'et_builder' ),
[5799] Fix | Delete
'type' => 'text',
[5800] Fix | Delete
'option_category' => 'configuration',
[5801] Fix | Delete
'depends_show_if' => 'on',
[5802] Fix | Delete
'tab_slug' => 'advanced',
[5803] Fix | Delete
'toggle_slug' => 'animation',
[5804] Fix | Delete
'description' => esc_html__( "Here you can designate how fast the slider fades between each slide, if 'Automatic Animation' option is enabled above. The higher the number the longer the pause between each rotation.", 'et_builder' ),
[5805] Fix | Delete
'default' => '7000',
[5806] Fix | Delete
);
[5807] Fix | Delete
[5808] Fix | Delete
$additional_options['auto_ignore_hover'] = array(
[5809] Fix | Delete
'label' => esc_html__( 'Continue Automatic Slide on Hover', 'et_builder' ),
[5810] Fix | Delete
'type' => 'yes_no_button',
[5811] Fix | Delete
'option_category' => 'configuration',
[5812] Fix | Delete
'depends_show_if' => 'on',
[5813] Fix | Delete
'options' => array(
[5814] Fix | Delete
'off' => et_builder_i18n( 'Off' ),
[5815] Fix | Delete
'on' => et_builder_i18n( 'On' ),
[5816] Fix | Delete
),
[5817] Fix | Delete
'tab_slug' => 'advanced',
[5818] Fix | Delete
'toggle_slug' => 'animation',
[5819] Fix | Delete
'description' => esc_html__( 'Turning this on will allow automatic sliding to continue on mouse hover.', 'et_builder' ),
[5820] Fix | Delete
'default' => 'off',
[5821] Fix | Delete
);
[5822] Fix | Delete
}
[5823] Fix | Delete
[5824] Fix | Delete
if ( isset( $this->slug ) && 'et_pb_team_member' === $this->slug ) {
[5825] Fix | Delete
$additional_options['animation'] = array(
[5826] Fix | Delete
'label' => esc_html__( 'Image Animation', 'et_builder' ),
[5827] Fix | Delete
'type' => 'select',
[5828] Fix | Delete
'option_category' => 'configuration',
[5829] Fix | Delete
'options' => array(
[5830] Fix | Delete
'off' => esc_html__( 'No Animation', 'et_builder' ),
[5831] Fix | Delete
'fade_in' => esc_html__( 'Fade In', 'et_builder' ),
[5832] Fix | Delete
'left' => esc_html__( 'Left To Right', 'et_builder' ),
[5833] Fix | Delete
'right' => esc_html__( 'Right To Left', 'et_builder' ),
[5834] Fix | Delete
'top' => esc_html__( 'Top To Bottom', 'et_builder' ),
[5835] Fix | Delete
'bottom' => esc_html__( 'Bottom To Top', 'et_builder' ),
[5836] Fix | Delete
),
[5837] Fix | Delete
'tab_slug' => 'advanced',
[5838] Fix | Delete
'toggle_slug' => 'animation',
[5839] Fix | Delete
'description' => esc_html__( 'This controls the direction of the lazy-loading animation.', 'et_builder' ),
[5840] Fix | Delete
'default' => 'off',
[5841] Fix | Delete
);
[5842] Fix | Delete
}
[5843] Fix | Delete
[5844] Fix | Delete
$this->_additional_fields_options = array_merge( $this->_additional_fields_options, $additional_options );
[5845] Fix | Delete
}
[5846] Fix | Delete
[5847] Fix | Delete
private function _add_additional_transition_fields() {
[5848] Fix | Delete
[5849] Fix | Delete
$i18n =& self::$i18n;
[5850] Fix | Delete
[5851] Fix | Delete
if ( ! isset( $i18n['transition'] ) ) {
[5852] Fix | Delete
// phpcs:disable WordPress.WP.I18n.MissingTranslatorsComment
[5853] Fix | Delete
$i18n['transition'] = array(
[5854] Fix | Delete
'toggle' => array(
[5855] Fix | Delete
'title' => esc_html__( 'Transitions', 'et_builder' ),
[5856] Fix | Delete
),
[5857] Fix | Delete
'duration' => array(
[5858] Fix | Delete
'label' => esc_html__( 'Transition Duration', 'et_builder' ),
[5859] Fix | Delete
'description' => esc_html__( 'This controls the transition duration of the hover animation.', 'et_builder' ),
[5860] Fix | Delete
),
[5861] Fix | Delete
'delay' => array(
[5862] Fix | Delete
'label' => esc_html__( 'Transition Delay', 'et_builder' ),
[5863] Fix | Delete
'description' => esc_html__( 'This controls the transition delay of the hover animation.', 'et_builder' ),
[5864] Fix | Delete
),
[5865] Fix | Delete
'curve' => array(
[5866] Fix | Delete
'label' => esc_html__( 'Transition Speed Curve', 'et_builder' ),
[5867] Fix | Delete
'description' => esc_html__( 'This controls the transition speed curve of the hover animation.', 'et_builder' ),
[5868] Fix | Delete
),
[5869] Fix | Delete
);
[5870] Fix | Delete
// phpcs:enable
[5871] Fix | Delete
}
[5872] Fix | Delete
[5873] Fix | Delete
$this->settings_modal_toggles['custom_css']['toggles']['hover_transitions'] = array(
[5874] Fix | Delete
'title' => $i18n['transition']['toggle']['title'],
[5875] Fix | Delete
'priority' => 120,
[5876] Fix | Delete
);
[5877] Fix | Delete
[5878] Fix | Delete
$additional_options = array();
[5879] Fix | Delete
[5880] Fix | Delete
$additional_options['hover_transition_duration'] = array(
[5881] Fix | Delete
'label' => $i18n['transition']['duration']['label'],
[5882] Fix | Delete
'description' => $i18n['transition']['duration']['description'],
[5883] Fix | Delete
'type' => 'range',
[5884] Fix | Delete
'option_category' => 'layout',
[5885] Fix | Delete
'range_settings' => array(
[5886] Fix | Delete
'min' => 0,
[5887] Fix | Delete
'max' => 2000,
[5888] Fix | Delete
'step' => 50,
[5889] Fix | Delete
),
[5890] Fix | Delete
'default' => '300ms',
[5891] Fix | Delete
'default_on_child' => true,
[5892] Fix | Delete
'validate_unit' => true,
[5893] Fix | Delete
'fixed_unit' => 'ms',
[5894] Fix | Delete
'fixed_range' => true,
[5895] Fix | Delete
'tab_slug' => 'custom_css',
[5896] Fix | Delete
'toggle_slug' => 'hover_transitions',
[5897] Fix | Delete
'depends_default' => null,
[5898] Fix | Delete
'mobile_options' => true,
[5899] Fix | Delete
);
[5900] Fix | Delete
[5901] Fix | Delete
$additional_options['hover_transition_delay'] = array(
[5902] Fix | Delete
'label' => $i18n['transition']['delay']['label'],
[5903] Fix | Delete
'description' => $i18n['transition']['delay']['description'],
[5904] Fix | Delete
'type' => 'range',
[5905] Fix | Delete
'option_category' => 'layout',
[5906] Fix | Delete
'range_settings' => array(
[5907] Fix | Delete
'min' => 0,
[5908] Fix | Delete
'max' => 300,
[5909] Fix | Delete
'step' => 50,
[5910] Fix | Delete
),
[5911] Fix | Delete
'default' => '0ms',
[5912] Fix | Delete
'default_on_child' => true,
[5913] Fix | Delete
'validate_unit' => true,
[5914] Fix | Delete
'fixed_unit' => 'ms',
[5915] Fix | Delete
'fixed_range' => true,
[5916] Fix | Delete
'tab_slug' => 'custom_css',
[5917] Fix | Delete
'toggle_slug' => 'hover_transitions',
[5918] Fix | Delete
'depends_default' => null,
[5919] Fix | Delete
'mobile_options' => true,
[5920] Fix | Delete
);
[5921] Fix | Delete
[5922] Fix | Delete
$additional_options['hover_transition_speed_curve'] = array(
[5923] Fix | Delete
'label' => $i18n['transition']['curve']['label'],
[5924] Fix | Delete
'description' => $i18n['transition']['curve']['description'],
[5925] Fix | Delete
'type' => 'select',
[5926] Fix | Delete
'option_category' => 'layout',
[5927] Fix | Delete
'default' => 'ease',
[5928] Fix | Delete
'default_on_child' => true,
[5929] Fix | Delete
'options' => array(
[5930] Fix | Delete
'ease-in-out' => et_builder_i18n( 'Ease-In-Out' ),
[5931] Fix | Delete
'ease' => et_builder_i18n( 'Ease' ),
[5932] Fix | Delete
'ease-in' => et_builder_i18n( 'Ease-In' ),
[5933] Fix | Delete
'ease-out' => et_builder_i18n( 'Ease-Out' ),
[5934] Fix | Delete
'linear' => et_builder_i18n( 'Linear' ),
[5935] Fix | Delete
),
[5936] Fix | Delete
'tab_slug' => 'custom_css',
[5937] Fix | Delete
'toggle_slug' => 'hover_transitions',
[5938] Fix | Delete
'depends_default' => null,
[5939] Fix | Delete
'mobile_options' => true,
[5940] Fix | Delete
);
[5941] Fix | Delete
[5942] Fix | Delete
$this->_additional_fields_options = array_merge( $this->_additional_fields_options, $additional_options );
[5943] Fix | Delete
}
[5944] Fix | Delete
[5945] Fix | Delete
/**
[5946] Fix | Delete
* Add CSS position controls affects top,right,bottom,left,position and transform translate CSS properties.
[5947] Fix | Delete
*
[5948] Fix | Delete
* @return void
[5949] Fix | Delete
* @since 4.2
[5950] Fix | Delete
*
[5951] Fix | Delete
*/
[5952] Fix | Delete
private function _add_position_fields() {
[5953] Fix | Delete
/** @var $class ET_Builder_Module_Field_Position */
[5954] Fix | Delete
$class = ET_Builder_Module_Fields_Factory::get( 'Position' );
[5955] Fix | Delete
[5956] Fix | Delete
$this->advanced_fields[ $class::TOGGLE_SLUG ] = self::$_->array_get( $this->advanced_fields, $class::TOGGLE_SLUG, array() );
[5957] Fix | Delete
$this->advanced_fields['z_index'] = self::$_->array_get( $this->advanced_fields, 'z_index', array() );
[5958] Fix | Delete
[5959] Fix | Delete
// Position and Z Index Disabled
[5960] Fix | Delete
if ( ! is_array( $this->advanced_fields[ $class::TOGGLE_SLUG ] ) && ! is_array( $this->advanced_fields['z_index'] ) ) {
[5961] Fix | Delete
return;
[5962] Fix | Delete
}
[5963] Fix | Delete
[5964] Fix | Delete
$this->settings_modal_toggles[ $class::TAB_SLUG ]['toggles'][ $class::TOGGLE_SLUG ] = array(
[5965] Fix | Delete
'title' => et_builder_i18n( 'Position' ),
[5966] Fix | Delete
'priority' => 190,
[5967] Fix | Delete
);
[5968] Fix | Delete
[5969] Fix | Delete
$default_position = self::$_->array_get( $this->advanced_fields[ $class::TOGGLE_SLUG ], 'default', 'none' );
[5970] Fix | Delete
$default_z_index = self::$_->array_get( $this->advanced_fields['z_index'], 'default', '' );
[5971] Fix | Delete
[5972] Fix | Delete
$args = array(
[5973] Fix | Delete
'defaults' => array(
[5974] Fix | Delete
'positioning' => $default_position, // none | relative | absolute | fixed
[5975] Fix | Delete
'position_origin' => 'top_left',
[5976] Fix | Delete
'vertical_offset' => '',
[5977] Fix | Delete
'horizontal_offset' => '',
[5978] Fix | Delete
'z_index' => $default_z_index,
[5979] Fix | Delete
),
[5980] Fix | Delete
'hide_position_fields' => false === $this->advanced_fields[ $class::TOGGLE_SLUG ],
[5981] Fix | Delete
'hide_z_index_fields' => false === $this->advanced_fields['z_index'],
[5982] Fix | Delete
);
[5983] Fix | Delete
[5984] Fix | Delete
$this->_additional_fields_options = array_merge( $this->_additional_fields_options, $class->get_fields( $args ) );
[5985] Fix | Delete
}
[5986] Fix | Delete
[5987] Fix | Delete
/**
[5988] Fix | Delete
* Add CSS filter controls (i.e. saturation, brightness, opacity) to the `_additional_fields_options` array.
[5989] Fix | Delete
*
[5990] Fix | Delete
* @since 3.23 Introduce responsive settings on all animation options. Add allowed CSS unit for
[5991] Fix | Delete
* Blur option.
[5992] Fix | Delete
*
[5993] Fix | Delete
* @return void
[5994] Fix | Delete
*/
[5995] Fix | Delete
protected function _add_filter_fields() {
[5996] Fix | Delete
// Filter fields are added by default if module has partial or full VB support
[5997] Fix | Delete
if ( $this->has_vb_support() ) {
[5998] Fix | Delete
$this->advanced_fields['filters'] = self::$_->array_get( $this->advanced_fields, 'filters', array() );
[5999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function