PluginProbe
Easy Elements for Elementor – Addons & Website Templates / 1.0.7
Easy Elements for Elementor – Addons & Website Templates v1.0.7
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/pricing-table/pricing.php +11 -65 1.2.9 → 1.0.7 View file →
@@ -1,6 +1,5 @@
1 1 <?php
2 -namespace Easyel\EasyElements\Widgets;
3 2 use Elementor\Controls_Manager;
4 3 use Elementor\Widget_Base;
5 4 use Elementor\Icons_Manager;
6 5 use Elementor\Group_Control_Background;
@@ -10,8 +9,18 @@
10 9 }
11 10
12 11 class Easyel_Pricing_Table_Widget extends \Elementor\Widget_Base {
13 12
13 + public function get_style_depends() {
14 + $handle = 'eel-pricing-table-style';
15 + $css_path = plugin_dir_path( __FILE__ ) . 'css/pricing.css';
16 +
17 + if ( ! wp_style_is( $handle, 'registered' ) && file_exists( $css_path ) ) {
18 + wp_register_style( $handle, plugins_url( 'css/pricing.css', __FILE__ ), [], defined( 'WP_DEBUG' ) && WP_DEBUG ? filemtime( $css_path ) : '1.0.0' );
19 + }
20 + return [ $handle ];
21 + }
22 +
14 23 public function get_name() {
15 24 return 'eel-pricing';
16 25 }
17 26
@@ -29,15 +38,8 @@
29 38 public function get_keywords() {
30 39 return [ 'pricing', 'pricing-table', 'table', 'text' ];
31 40 }
32 41
33 - public function get_style_depends() {
34 - return [
35 - 'eel-pricing',
36 - ];
37 - }
38 -
39 -
40 42 protected function register_controls() {
41 43 $this->start_controls_section('section_settings', [
42 44 'label' => __('Pricing Settings', 'easy-elements'),
43 45 ]);
@@ -195,16 +197,8 @@
195 197 // Features
196 198 $this->start_controls_section('section_features', [
197 199 'label' => __('Features Settings', 'easy-elements'),
198 200 ]);
199 - $this->add_control(
200 - 'features_des',
201 - [
202 - 'label' => esc_html__( 'Features Description On Top', 'easy-elements' ),
203 - 'type' => \Elementor\Controls_Manager::TEXTAREA,
204 - 'placeholder' => esc_html__( 'Enter features description', 'easy-elements' ),
205 - ]
206 - );
207 201 $this->add_control('features_list', [
208 202 'label' => __('Features', 'easy-elements'),
209 203 'type' => Controls_Manager::REPEATER,
210 204 'fields' => [
@@ -849,53 +843,9 @@
849 843 );
850 844
851 845 $this->end_controls_section();
852 846
853 - $this->start_controls_section(
854 - 'section_features_descqription_style',
855 - [
856 - 'label' => __('Features Description', 'easy-elements'),
857 - 'tab' => \Elementor\Controls_Manager::TAB_STYLE,
858 - 'condition' => [
859 - 'features_des!' => '',
860 - ],
861 - ]
862 - );
863 847
864 - $this->add_control(
865 - 'features_des__text_color',
866 - [
867 - 'label' => __('Color', 'easy-elements'),
868 - 'type' => \Elementor\Controls_Manager::COLOR,
869 - 'selectors' => [
870 - '{{WRAPPER}} .eel-features-description' => 'color: {{VALUE}};',
871 - ],
872 - ]
873 - );
874 -
875 - // Text typography
876 - $this->add_group_control(
877 - \Elementor\Group_Control_Typography::get_type(),
878 - [
879 - 'name' => 'features_des__text__typography',
880 - 'selector' => '{{WRAPPER}} .eel-features-description',
881 - ]
882 - );
883 -
884 - $this->add_responsive_control(
885 - 'features_description_margin',
886 - [
887 - 'label' => __('Margin', 'easy-elements'),
888 - 'type' => \Elementor\Controls_Manager::DIMENSIONS,
889 - 'size_units' => ['px', 'em', '%'],
890 - 'selectors' => [
891 - '{{WRAPPER}} .eel-features-description' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
892 - ],
893 - ]
894 - );
895 -
896 - $this->end_controls_section();
897 -
898 848 $this->start_controls_section(
899 849 'section_features_style',
900 850 [
901 851 'label' => __('Features Style', 'easy-elements'),
@@ -1283,14 +1233,10 @@
1283 1233 if ( $settings['button_position'] === 'in_features' ) {
1284 1234 $render_button();
1285 1235 }
1286 1236 ?>
1237 +
1287 1238
1288 - <?php if ( !empty($settings['features_des']) ) : ?>
1289 - <div class="eel-features-description">
1290 - <?php echo wp_kses_post($settings['features_des']); ?>
1291 - </div>
1292 - <?php endif; ?>
1293 1239
1294 1240 <ul class="eel-features">
1295 1241 <?php foreach ( $settings['features_list'] as $feature ) : $icon_style_class = $settings['feature_icon_style']; ?>
1296 1242 <li class="<?php echo esc_attr( $icon_style_class ); ?>">