PluginProbe
Easy Elements for Elementor – Addons & Website Templates / 1.2.1
Easy Elements for Elementor – Addons & Website Templates v1.2.1
1.5.3 1.5.2 1.5.1 1.5.0 1.4.9 1.4.6 1.4.7 1.4.8 1.4.5 1.4.4 1.4.3 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 All 47 releases
← All changes | widgets/progress/progress.php +11 -11 1.3.01.2.1 View file →
@@ -1,6 +1,5 @@
1 1 <?php
2 -namespace Easyel\EasyElements\Widgets;
3 2 use Elementor\Controls_Manager;
4 3 use Elementor\Group_Control_Typography;
5 4 use Elementor\Group_Control_Background;
6 5
@@ -6,8 +5,17 @@
6 5
7 6 defined( 'ABSPATH' ) || die();
8 7
9 8 class Easyel_Progress_Widget extends \Elementor\Widget_Base {
9 + public function get_style_depends() {
10 + $handle = 'eel-progress-style';
11 + $css_path = plugin_dir_path( __FILE__ ) . 'css/progress.min.css';
12 +
13 + if ( ! wp_style_is( $handle, 'registered' ) && file_exists( $css_path ) ) {
14 + wp_register_style( $handle, plugins_url( 'css/progress.min.css', __FILE__ ), [], defined( 'WP_DEBUG' ) && WP_DEBUG ? filemtime( $css_path ) : EASYELEMENTS_VER );
15 + }
16 + return [ $handle ];
17 + }
10 18
11 19 public function get_name() {
12 20 return 'easyel-progress-bar';
13 21 }
@@ -26,16 +34,8 @@
26 34
27 35 public function get_keywords() {
28 36 return [ 'progress', 'text', 'link', 'circle', 'text' ];
29 37 }
30 -
31 - public function get_style_depends() {
32 - return [
33 - 'easyel-progress-bar',
34 - ];
35 - }
36 -
37 -
38 38 protected function register_controls() {
39 39 $this->start_controls_section(
40 40 'section_progress',
41 41 [
@@ -72,9 +72,9 @@
72 72
73 73 $this->add_control(
74 74 'easy_percent',
75 75 [
76 - 'label' => __( 'Percent', 'easy-elements' ),
76 + 'label' => __( 'easy_Percent', 'easy-elements' ),
77 77 'type' => \Elementor\Controls_Manager::NUMBER,
78 78 'min' => 0,
79 79 'max' => 100,
80 80 'default' => 50,
@@ -185,9 +185,9 @@
185 185
186 186 $this->start_controls_section(
187 187 'easy_percent_styles',
188 188 [
189 - 'label' => esc_html__( 'Percent', 'easy-elements' ),
189 + 'label' => esc_html__( 'easy_Percent', 'easy-elements' ),
190 190 'tab' => Controls_Manager::TAB_STYLE,
191 191 ]
192 192 );
193 193 $this->add_control(