PluginProbe
UiCore Elements – Free widgets and templates for Elementor / 1.0.9
UiCore Elements – Free widgets and templates for Elementor v1.0.9
1.3.17 1.3.16 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 All 41 releases
uicore-elements / includes / class-animate.php

class-animate.php in UiCore Elements – Free widgets and templates for Elementor 1.0.9, at includes/class-animate.php

43 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace UiCoreElements;
3
4 use Elementor\Controls_Stack;
5 use Elementor\Controls_Manager;
6
7 defined('ABSPATH') || exit();
8
9 /**
10 * Replace UiCore Animate Plugin
11 */
12 class Animate
13 {
14
15 private static $badge = '<span title="Powerd by UiCore Animate" style="font-size: 11px; text-transform: uppercase; background: #5dbad8; color: black; padding: 2px 5px; border-radius: 3px; margin-right: 7px;">Animate</span>';
16
17 public function __construct() {
18 add_action( 'elementor/element/heading/section_title_style/after_section_end', [$this, 'split_animation'],55);
19 add_action( 'elementor/element/highlighted-text/section_title_style/after_section_end', [$this, 'split_animation'],55);
20 add_action( 'elementor/element/text-editor/section_drop_cap/after_section_end', [$this, 'split_animation'],55);
21 }
22
23 static function split_animation(Controls_Stack $widget)
24 {
25 $widget->start_controls_section(
26 'section_ui_split_animation',
27 [
28 'label' => self::$badge . esc_html__( 'Split Text Animation', 'uicore-elements' ),
29 'tab' => Controls_Manager::TAB_STYLE,
30 ]
31 );
32 $widget->add_control(
33 'important_note',
34 [
35 'label' => esc_html__( 'UiCore Animate required', 'uicore-elements' ),
36 'type' => \Elementor\Controls_Manager::RAW_HTML,
37 'raw' => __( '<p style="line-height:1.3;margin-top:1em;">Download and instal <a href="https://wordpress.org/plugins/uicore-animate/advanced/" target="_blank">UiCore Animate</a> for more advanced animations control</p>', 'uicore-elements' ),
38 ]
39 );
40 $widget->end_controls_section();
41 }
42 }
43 new Animate();