Sid Gifari File Manager
🏠 Root
/
home2
/
meumer25
/
www
/
wp-content
/
plugins
/
exclusive-addons-elementor-pro
/
elements
/
animated-shape
/
Editing: animated-shape.php
<?php namespace ExclusiveAddons\Elements; if ( ! defined( 'ABSPATH' ) ) exit; use \Elementor\Controls_Manager; use \Elementor\Widget_Base; use \Elementor\Utils; class Animated_Shape extends Widget_Base { public function get_name() { return 'exad-animated-shape'; } public function get_title() { return esc_html__( 'Animated Shape', 'exclusive-addons-elementor' ); } public function get_icon() { return 'exad exad-logo exad-animated-shape'; } public function get_categories() { return [ 'exclusive-addons-elementor' ]; } public function get_keywords() { return [ 'animated shape', 'shape', 'animated' ]; } public function get_script_depends() { return [ 'exad-scroll-script', 'exad-animation-script', 'exad-tweenmax-script', 'exad-indicator-script' ]; } protected function _register_controls() { /** * animated shape Content Section */ $this->start_controls_section( 'exad_animated_shape_content', [ 'label' => esc_html__( 'Content', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_animated_shape_image', [ 'label' => esc_html__( 'Image', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src() ], ] ); $this->end_controls_section(); /** * animated shape style section */ $this->start_controls_section( 'exad_animated_shape_style', [ 'label' => esc_html__( 'Style', 'exclusive-addons-elementor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_control( 'exad_animation_style', [ 'label' => __( 'Animation Style', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SELECT, 'default' => 'style_1', 'options' => [ 'style_1' => __( 'Style 1', 'exclusive-addons-elementor' ), 'style_2' => __( 'Style 2', 'exclusive-addons-elementor' ), 'style_3' => __( 'Style 3', 'exclusive-addons-elementor' ), 'style_4' => __( 'Style 4', 'exclusive-addons-elementor' ), 'style_5' => __( 'Style 5', 'exclusive-addons-elementor' ), 'style_6' => __( 'Style 6', 'exclusive-addons-elementor' ), 'style_7' => __( 'Style 7', 'exclusive-addons-elementor' ), 'style_8' => __( 'Style 8', 'exclusive-addons-elementor' ), ], ] ); $this->end_controls_section(); } protected function render() { $settings = $this->get_settings_for_display(); ?> <div class="exad-animated-shape"> <div class="exad-animated-shape-image <?php echo $settings['exad_animation_style']; ?>"> <img src="<?php echo $settings['exad_animated_shape_image']['url'] ?>" alt=""> </div> </div> <?php } }
Save
Cancel