Premium Addons for Elementor - Version 2.2.6

Version Description

  • Tweak: Changed all existing page link option to SELECT2 to get/search in all posts.
  • Tweak: Added grid option to Premium Grid widget.
  • Fix: Premium Person cropped image issue.
  • Fix: Premium Blog cropped image issue.
Download this release

Release Info

Developer leap13
Plugin Icon 128x128 Premium Addons for Elementor
Version 2.2.6
Comparing to
See all releases

Code changes from version 2.2.5 to 2.2.6

admin/settings-page.php CHANGED
@@ -373,7 +373,7 @@ class PA_admin_settings {
373
 
374
  <tr class="pa-roll-row">
375
  <th>Rollback Version</th>
376
- <td><div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.2.4</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div><p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p></td>
377
  </tr>
378
  <tr>
379
  <th><h4 class="pa-beta-test">Become a Beta Tester</h4><span class="pa-beta-test-span">Turn-on Beta Tester, to get notified when a new beta version of Premium Addons for Elementor. The Beta version will not install automatically. You always have the option to ignore it.</span></th>
373
 
374
  <tr class="pa-roll-row">
375
  <th>Rollback Version</th>
376
+ <td><div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.2.5</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div><p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p></td>
377
  </tr>
378
  <tr>
379
  <th><h4 class="pa-beta-test">Become a Beta Tester</h4><span class="pa-beta-test-span">Turn-on Beta Tester, to get notified when a new beta version of Premium Addons for Elementor. The Beta version will not install automatically. You always have the option to ignore it.</span></th>
assets/css/premium-addons.css CHANGED
@@ -616,7 +616,6 @@
616
  /************************************
617
  * Digit and unit side by side
618
  *************************************/
619
-
620
  .side .pre_countdown-section .pre_countdown-amount,
621
  .side .pre_countdown-section .pre_countdown-period {
622
  display: inline-block;
@@ -1391,16 +1390,19 @@ button.premium-modal-box-modal-close {
1391
  width: 100%;
1392
  height: 100%;
1393
  margin: 0 !important;
1394
- transform: scale(1.2);
1395
  -webkit-transition: all 0.4s ease-in-out;
1396
  -moz-transition: all 0.4s ease-in-out;
1397
  -ms-transition: all 0.4s ease-in-out;
1398
  -o-transition: all 0.4s ease-in-out;
1399
  transition: all 0.4s ease-in-out;
1400
  }
 
 
 
 
1401
  /*Thumbnail Container Hover*/
1402
  .premium-blog-thumb-effect-wrapper:hover .premium-blog-zoomin-effect img {
1403
- transform: scale(1.3);
1404
  }
1405
  .premium-blog-thumb-effect-wrapper:hover .premium-blog-zoomout-effect img {
1406
  transform: scale(1.1);
@@ -1599,6 +1601,9 @@ button.premium-modal-box-modal-close {
1599
  padding: 30px;
1600
  background: #ddd;
1601
  }
 
 
 
1602
  /*Post Format Container*/
1603
  .premium-blog-format-container {
1604
  display: flex;
@@ -1739,12 +1744,20 @@ button.premium-modal-box-modal-close {
1739
  .premium-person-image-container {
1740
  text-align: center;
1741
  }
 
 
 
 
 
 
 
 
1742
  .premium-person-zoomin-effect:hover .premium-person-image-container img{
1743
- -webkit-transform: scale(1.3);
1744
- -moz-transform: scale(1.3);
1745
- -ms-transform: scale(1.3);
1746
- -o-transform: scale(1.3);
1747
- transform: scale(1.3);
1748
  }
1749
  .premium-person-zoomout-effect:hover .premium-person-image-container img{
1750
  -webkit-transform: scale(1.1);
@@ -1759,7 +1772,6 @@ button.premium-modal-box-modal-close {
1759
  -ms-transform: scale(1.3) rotate(5deg);
1760
  -o-transform: scale(1.3) rotate(5deg);
1761
  transform: scale(1.3) rotate(5deg);
1762
-
1763
  }
1764
  .premium-person-grayscale-effect:hover .premium-person-image-container img {
1765
  -webkit-filter: grayscale(100%);
@@ -1783,7 +1795,6 @@ button.premium-modal-box-modal-close {
1783
  -ms-transition: all 0.5s ease-in-out;
1784
  -o-transition: all 0.5s ease-in-out;
1785
  transition: all 0.5s ease-in-out;
1786
- transform: scale(1.2);
1787
  }
1788
  .premium-person-info {
1789
  position: absolute;
@@ -2731,12 +2742,15 @@ button.premium-modal-box-modal-close {
2731
  -moz-transform: translate3d(0, 0, 0);
2732
  }
2733
  .pa-gallery-img-container img {
2734
- transform: scale(1.2);
2735
  -webkit-transition: all 0.3s ease-in-out;
2736
  -moz-transition: all 0.3s ease-in-out;
2737
  -ms-transition: all 0.3s ease-in-out;
2738
  -o-transition: all 0.3s ease-in-out;
2739
  }
 
 
 
 
2740
  .pa-gallery-img .pa-gallery-magnific-image span,
2741
  .pa-gallery-img .pa-gallery-img-link span {
2742
  line-height: 1;
@@ -2775,10 +2789,10 @@ button.premium-modal-box-modal-close {
2775
  display: inline-flex;
2776
  }
2777
  .pa-gallery-img:hover .pa-gallery-img-container.zoomin img {
2778
- transform: scale(1.3);
2779
  }
2780
  .pa-gallery-img:hover .pa-gallery-img-container.zoomout img {
2781
- transform: scale(1.1);
2782
  }
2783
  .pa-gallery-img:hover .pa-gallery-img-container.scale img {
2784
  transform: scale(1.3) rotate(5deg);
616
  /************************************
617
  * Digit and unit side by side
618
  *************************************/
 
619
  .side .pre_countdown-section .pre_countdown-amount,
620
  .side .pre_countdown-section .pre_countdown-period {
621
  display: inline-block;
1390
  width: 100%;
1391
  height: 100%;
1392
  margin: 0 !important;
 
1393
  -webkit-transition: all 0.4s ease-in-out;
1394
  -moz-transition: all 0.4s ease-in-out;
1395
  -ms-transition: all 0.4s ease-in-out;
1396
  -o-transition: all 0.4s ease-in-out;
1397
  transition: all 0.4s ease-in-out;
1398
  }
1399
+ .premium-blog-thumb-effect-wrapper .premium-blog-zoomout-effect img,
1400
+ .premium-blog-thumb-effect-wrapper .premium-blog-scale-effect img {
1401
+ transform: scale(1.2);
1402
+ }
1403
  /*Thumbnail Container Hover*/
1404
  .premium-blog-thumb-effect-wrapper:hover .premium-blog-zoomin-effect img {
1405
+ transform: scale(1.2);
1406
  }
1407
  .premium-blog-thumb-effect-wrapper:hover .premium-blog-zoomout-effect img {
1408
  transform: scale(1.1);
1601
  padding: 30px;
1602
  background: #ddd;
1603
  }
1604
+ .premium-blog-clear-fix {
1605
+ clear: both;
1606
+ }
1607
  /*Post Format Container*/
1608
  .premium-blog-format-container {
1609
  display: flex;
1744
  .premium-person-image-container {
1745
  text-align: center;
1746
  }
1747
+ .premium-person-zoomout-effect .premium-person-image-container img,
1748
+ .premium-person-scale-effect .premium-person-image-container img {
1749
+ -webkit-transform: scale(1.2);
1750
+ -moz-transform: scale(1.2);
1751
+ -ms-transform: scale(1.2);
1752
+ -o-transform: scale(1.2);
1753
+ transform: scale(1.2);
1754
+ }
1755
  .premium-person-zoomin-effect:hover .premium-person-image-container img{
1756
+ -webkit-transform: scale(1.2);
1757
+ -moz-transform: scale(1.2);
1758
+ -ms-transform: scale(1.2);
1759
+ -o-transform: scale(1.2);
1760
+ transform: scale(1.2);
1761
  }
1762
  .premium-person-zoomout-effect:hover .premium-person-image-container img{
1763
  -webkit-transform: scale(1.1);
1772
  -ms-transform: scale(1.3) rotate(5deg);
1773
  -o-transform: scale(1.3) rotate(5deg);
1774
  transform: scale(1.3) rotate(5deg);
 
1775
  }
1776
  .premium-person-grayscale-effect:hover .premium-person-image-container img {
1777
  -webkit-filter: grayscale(100%);
1795
  -ms-transition: all 0.5s ease-in-out;
1796
  -o-transition: all 0.5s ease-in-out;
1797
  transition: all 0.5s ease-in-out;
 
1798
  }
1799
  .premium-person-info {
1800
  position: absolute;
2742
  -moz-transform: translate3d(0, 0, 0);
2743
  }
2744
  .pa-gallery-img-container img {
 
2745
  -webkit-transition: all 0.3s ease-in-out;
2746
  -moz-transition: all 0.3s ease-in-out;
2747
  -ms-transition: all 0.3s ease-in-out;
2748
  -o-transition: all 0.3s ease-in-out;
2749
  }
2750
+ .pa-gallery-img-container.zoomout img,
2751
+ .pa-gallery-img-container.scale img{
2752
+ transform: scale(1.2);
2753
+ }
2754
  .pa-gallery-img .pa-gallery-magnific-image span,
2755
  .pa-gallery-img .pa-gallery-img-link span {
2756
  line-height: 1;
2789
  display: inline-flex;
2790
  }
2791
  .pa-gallery-img:hover .pa-gallery-img-container.zoomin img {
2792
+ transform: scale(1.1);
2793
  }
2794
  .pa-gallery-img:hover .pa-gallery-img-container.zoomout img {
2795
+ transform: scale(1);
2796
  }
2797
  .pa-gallery-img:hover .pa-gallery-img-container.scale img {
2798
  transform: scale(1.3) rotate(5deg);
elementor-helper.php CHANGED
@@ -55,6 +55,7 @@ class premium_Template_Tags {
55
  $post_type = array_values( $post_types );
56
 
57
  $all_posts = get_posts( array(
 
58
  'post_type' => $post_type
59
  )
60
  );
55
  $post_type = array_values( $post_types );
56
 
57
  $all_posts = get_posts( array(
58
+ 'posts_per_page' => -1,
59
  'post_type' => $post_type
60
  )
61
  );
premium-addons-for-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 20 premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
- Version: 2.2.5
7
  Author: Leap13
8
  Author URI: http://leap13.com/
9
  Text Domain: premium-addons-for-elementor
@@ -22,12 +22,12 @@ if( !function_exists('add_action') ) {
22
 
23
  if( !defined( 'ABSPATH' ) ) exit; // No access of directly access
24
 
25
- define( 'PREMIUM_ADDONS_VERSION', '2.2.5' );
26
  define( 'PREMIUM_ADDONS_URL', plugins_url('/', __FILE__ ) );
27
  define( 'PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
28
  define( 'PREMIUM_ADDONS_FILE', __FILE__ );
29
  define( 'PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
30
- define( 'PREMIUM_ADDONS_STABLE_VERSION', '2.2.4');
31
 
32
 
33
  /**
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 20 premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
+ Version: 2.2.6
7
  Author: Leap13
8
  Author URI: http://leap13.com/
9
  Text Domain: premium-addons-for-elementor
22
 
23
  if( !defined( 'ABSPATH' ) ) exit; // No access of directly access
24
 
25
+ define( 'PREMIUM_ADDONS_VERSION', '2.2.6' );
26
  define( 'PREMIUM_ADDONS_URL', plugins_url('/', __FILE__ ) );
27
  define( 'PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
28
  define( 'PREMIUM_ADDONS_FILE', __FILE__ );
29
  define( 'PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
30
+ define( 'PREMIUM_ADDONS_STABLE_VERSION', '2.2.5');
31
 
32
 
33
  /**
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: leap13
3
  Tags: Elementor, Elementor Page Builder, Elements, Elementor Addons, Add-ons, page builder
4
  Donate link: http://premiumaddons.com
5
  Requires at least: 4.5
6
- Tested up to: 4.9.5
7
  Requires PHP: 5.4
8
- Stable tag: 2.2.5
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -99,6 +99,13 @@ Premium Addons for Elementor is light weight and we also gave you the control to
99
 
100
  == Changelog ==
101
 
 
 
 
 
 
 
 
102
  = 2.2.5 =
103
 
104
  - Fix: Premium Carousel slides on Tabs/Mobiles options bug.
3
  Tags: Elementor, Elementor Page Builder, Elements, Elementor Addons, Add-ons, page builder
4
  Donate link: http://premiumaddons.com
5
  Requires at least: 4.5
6
+ Tested up to: 4.9.6
7
  Requires PHP: 5.4
8
+ Stable tag: 2.2.6
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
99
 
100
  == Changelog ==
101
 
102
+ = 2.2.6 =
103
+
104
+ - Tweak: Changed all existing page link option to SELECT2 to get/search in all posts.
105
+ - Tweak: Added grid option to Premium Grid widget.
106
+ - Fix: Premium Person cropped image issue.
107
+ - Fix: Premium Blog cropped image issue.
108
+
109
  = 2.2.5 =
110
 
111
  - Fix: Premium Carousel slides on Tabs/Mobiles options bug.
widgets/premium-banner.php CHANGED
@@ -1,6 +1,7 @@
1
  <?php
2
  namespace Elementor;
3
 
 
4
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
5
 
6
  class Premium_Banner_Widget extends Widget_Base {
@@ -15,10 +16,6 @@ class Premium_Banner_Widget extends Widget_Base {
15
  return 'premium-addon-banner';
16
  }
17
 
18
- public function get_title() {
19
- return esc_html__( 'Premium Banner', 'premium-addons-for-elementor' );
20
- }
21
-
22
  public function get_icon() {
23
  return 'pa-banner';
24
  }
@@ -94,12 +91,13 @@ class Premium_Banner_Widget extends Widget_Base {
94
  'premium_banner_image_existing_page_link',
95
  [
96
  'label' => esc_html__( 'Existing Page', 'premium-addons-for-elementor' ),
97
- 'type' => Controls_Manager::SELECT,
98
  'description' => esc_html__( 'Link the banner with an existing page', 'premium-addons-for-elementor' ),
99
  'condition' => [
100
  'premium_banner_image_link_switcher!' => 'yes',
101
  'premium_banner_link_url_switch' => 'yes',
102
  ],
 
103
  'options' => $this->getTemplateInstance()->get_all_post()
104
  ]
105
  );
@@ -530,4 +528,4 @@ class Premium_Banner_Widget extends Widget_Base {
530
  }
531
  }
532
 
533
- Plugin::instance()->widgets_manager->register_widget_type( new Premium_Banner_Widget() );
1
  <?php
2
  namespace Elementor;
3
 
4
+
5
  if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
6
 
7
  class Premium_Banner_Widget extends Widget_Base {
16
  return 'premium-addon-banner';
17
  }
18
 
 
 
 
 
19
  public function get_icon() {
20
  return 'pa-banner';
21
  }
91
  'premium_banner_image_existing_page_link',
92
  [
93
  'label' => esc_html__( 'Existing Page', 'premium-addons-for-elementor' ),
94
+ 'type' => Controls_Manager::SELECT2,
95
  'description' => esc_html__( 'Link the banner with an existing page', 'premium-addons-for-elementor' ),
96
  'condition' => [
97
  'premium_banner_image_link_switcher!' => 'yes',
98
  'premium_banner_link_url_switch' => 'yes',
99
  ],
100
+ 'multiple' => false,
101
  'options' => $this->getTemplateInstance()->get_all_post()
102
  ]
103
  );
528
  }
529
  }
530
 
531
+ Plugin::instance()->widgets_manager->register_widget_type( new Premium_Banner_Widget() );
widgets/premium-blog.php CHANGED
@@ -9,10 +9,6 @@ class Premium_Blog_Widget extends Widget_Base
9
  return 'premium-addon-blog';
10
  }
11
 
12
- public function get_title() {
13
- return esc_html__('Premium Blog', 'premium-addons-for-elementor');
14
- }
15
-
16
  public function is_reload_preview_required(){
17
  return true;
18
  }
@@ -94,6 +90,34 @@ class Premium_Blog_Widget extends Widget_Base
94
  ]
95
  );
96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  /*Excerpt*/
98
  $this->add_control('premium_blog_excerpt',
99
  [
@@ -223,7 +247,7 @@ class Premium_Blog_Widget extends Widget_Base
223
  'min' => '0',
224
  ]
225
  );
226
-
227
  /*Front Text Align*/
228
  $this->add_responsive_control('premium_flip_text_align',
229
  [
@@ -783,9 +807,8 @@ if(count($posts)){
783
  </div>
784
  </div>
785
  </div>
786
- <?php
787
- }
788
- ?>
789
  <?php if ( $settings['premium_blog_paging'] === 'yes' ) : ?>
790
  <div class="premium-blog-pagination-container">
791
  <?php
9
  return 'premium-addon-blog';
10
  }
11
 
 
 
 
 
12
  public function is_reload_preview_required(){
13
  return true;
14
  }
90
  ]
91
  );
92
 
93
+ /*Grid*/
94
+ $this->add_control('premium_blog_grid',
95
+ [
96
+ 'label' => esc_html__('Grid', 'premium-addons-for-elementor'),
97
+ 'type' => Controls_Manager::SWITCHER,
98
+ ]
99
+ );
100
+
101
+ /*Masonry Number of Columns*/
102
+ $this->add_control('premium_blog_columns_number',
103
+ [
104
+ 'label' => esc_html__('Number of Columns', 'premium-addons-for-elementor'),
105
+ 'type' => Controls_Manager::SELECT,
106
+ 'options' => [
107
+ '50%' => esc_html__('2 Columns', 'premium-addons-for-elementor'),
108
+ '33.33%'=> esc_html__('3 Columns', 'premium-addons-for-elementor'),
109
+ '25%' => esc_html__('4 Columns', 'premium-addons-for-elementor'),
110
+ ],
111
+ 'default' => '50%',
112
+ 'selectors' => [
113
+ '{{WRAPPER}} .premium-blog-post-container' => 'width: {{VALUE}}; float:left;'
114
+ ],
115
+ 'condition' => [
116
+ 'premium_blog_grid' => 'yes',
117
+ ]
118
+ ]
119
+ );
120
+
121
  /*Excerpt*/
122
  $this->add_control('premium_blog_excerpt',
123
  [
247
  'min' => '0',
248
  ]
249
  );
250
+
251
  /*Front Text Align*/
252
  $this->add_responsive_control('premium_flip_text_align',
253
  [
807
  </div>
808
  </div>
809
  </div>
810
+ <?php }?>
811
+ <div class="premium-blog-clear-fix"></div>
 
812
  <?php if ( $settings['premium_blog_paging'] === 'yes' ) : ?>
813
  <div class="premium-blog-pagination-container">
814
  <?php
widgets/premium-button.php CHANGED
@@ -17,10 +17,6 @@ class Premium_Button_Widget extends Widget_Base
17
  return $this->templateInstance = premium_Template_Tags::getInstance();
18
  }
19
 
20
- public function get_title() {
21
- return esc_html__('Premium Button', 'premium-addons-for-elementor');
22
- }
23
-
24
  public function get_icon() {
25
  return 'pa-button';
26
  }
@@ -82,11 +78,12 @@ class Premium_Button_Widget extends Widget_Base
82
  $this->add_control('premium_button_existing_link',
83
  [
84
  'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
85
- 'type' => Controls_Manager::SELECT,
86
  'options' => $this->getTemplateInstance()->get_all_post(),
87
  'condition' => [
88
  'premium_button_link_selection' => 'link',
89
  ],
 
90
  'separator' => 'after',
91
  'label_block' => true,
92
  ]
17
  return $this->templateInstance = premium_Template_Tags::getInstance();
18
  }
19
 
 
 
 
 
20
  public function get_icon() {
21
  return 'pa-button';
22
  }
78
  $this->add_control('premium_button_existing_link',
79
  [
80
  'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
81
+ 'type' => Controls_Manager::SELECT2,
82
  'options' => $this->getTemplateInstance()->get_all_post(),
83
  'condition' => [
84
  'premium_button_link_selection' => 'link',
85
  ],
86
+ 'multiple' => false,
87
  'separator' => 'after',
88
  'label_block' => true,
89
  ]
widgets/premium-dual-header.php CHANGED
@@ -14,11 +14,6 @@ class Premium_Dual_Header_Widget extends Widget_Base
14
  public function get_name() {
15
  return 'premium-addon-dual-header';
16
  }
17
-
18
- public function get_title() {
19
- return esc_html__('Premium Dual Heading', 'premium-addons-for-elementor');
20
- }
21
-
22
 
23
  public function get_icon() {
24
  return 'pa-dual-header';
@@ -156,12 +151,13 @@ class Premium_Dual_Header_Widget extends Widget_Base
156
  $this->add_control('premium_dual_heading_existing_link',
157
  [
158
  'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
159
- 'type' => Controls_Manager::SELECT,
160
  'options' => $this->getTemplateInstance()->get_all_post(),
161
  'condition' => [
162
  'premium_dual_header_link_switcher' => 'yes',
163
  'premium_dual_heading_link_selection' => 'link',
164
  ],
 
165
  'separator' => 'after',
166
  'label_block' => true,
167
  ]
14
  public function get_name() {
15
  return 'premium-addon-dual-header';
16
  }
 
 
 
 
 
17
 
18
  public function get_icon() {
19
  return 'pa-dual-header';
151
  $this->add_control('premium_dual_heading_existing_link',
152
  [
153
  'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
154
+ 'type' => Controls_Manager::SELECT2,
155
  'options' => $this->getTemplateInstance()->get_all_post(),
156
  'condition' => [
157
  'premium_dual_header_link_switcher' => 'yes',
158
  'premium_dual_heading_link_selection' => 'link',
159
  ],
160
+ 'multiple' => false,
161
  'separator' => 'after',
162
  'label_block' => true,
163
  ]
widgets/premium-grid.php CHANGED
@@ -14,10 +14,6 @@ class Premium_Image_Gallery_Widget extends Widget_Base {
14
  return $this->templateInstance = premium_Template_Tags::getInstance();
15
  }
16
 
17
- public function get_title(){
18
- return esc_html__('Premium Grid','premium-addons-for-elementor');
19
- }
20
-
21
  public function get_icon(){
22
  return 'pa-grid-icon';
23
  }
@@ -143,11 +139,12 @@ class Premium_Image_Gallery_Widget extends Widget_Base {
143
  [
144
  'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
145
  'name' => 'premium_gallery_img_existing',
146
- 'type' => Controls_Manager::SELECT,
147
  'options' => $this->getTemplateInstance()->get_all_post(),
148
  'condition' => [
149
  'premium_gallery_img_link_type'=> 'link',
150
  ],
 
151
  'separator' => 'after',
152
  'label_block' => true,
153
  ]
14
  return $this->templateInstance = premium_Template_Tags::getInstance();
15
  }
16
 
 
 
 
 
17
  public function get_icon(){
18
  return 'pa-grid-icon';
19
  }
139
  [
140
  'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
141
  'name' => 'premium_gallery_img_existing',
142
+ 'type' => Controls_Manager::SELECT2,
143
  'options' => $this->getTemplateInstance()->get_all_post(),
144
  'condition' => [
145
  'premium_gallery_img_link_type'=> 'link',
146
  ],
147
+ 'multiple' => false,
148
  'separator' => 'after',
149
  'label_block' => true,
150
  ]
widgets/premium-image-button.php CHANGED
@@ -8,10 +8,6 @@ class Premium_Image_Button_Widget extends Widget_Base
8
  public function get_name() {
9
  return 'premium-addon-image-button';
10
  }
11
-
12
- public function get_title() {
13
- return esc_html__('Premium Image Button', 'premium-addons-for-elementor');
14
- }
15
 
16
  public function getTemplateInstance() {
17
  return $this->templateInstance = premium_Template_Tags::getInstance();
@@ -78,11 +74,12 @@ class Premium_Image_Button_Widget extends Widget_Base
78
  $this->add_control('premium_image_button_existing_link',
79
  [
80
  'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
81
- 'type' => Controls_Manager::SELECT,
82
  'options' => $this->getTemplateInstance()->get_all_post(),
83
  'condition' => [
84
  'premium_image_button_link_selection' => 'link',
85
  ],
 
86
  'separator' => 'after',
87
  'label_block' => true,
88
  ]
8
  public function get_name() {
9
  return 'premium-addon-image-button';
10
  }
 
 
 
 
11
 
12
  public function getTemplateInstance() {
13
  return $this->templateInstance = premium_Template_Tags::getInstance();
74
  $this->add_control('premium_image_button_existing_link',
75
  [
76
  'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
77
+ 'type' => Controls_Manager::SELECT2,
78
  'options' => $this->getTemplateInstance()->get_all_post(),
79
  'condition' => [
80
  'premium_image_button_link_selection' => 'link',
81
  ],
82
+ 'multiple' => false,
83
  'separator' => 'after',
84
  'label_block' => true,
85
  ]
widgets/premium-image-separator.php CHANGED
@@ -15,10 +15,6 @@ class Premium_Image_Separator_Widget extends Widget_Base
15
  return 'premium-addon-image-separator';
16
  }
17
 
18
- public function get_title() {
19
- return esc_html__('Premium Image Separator', 'premium-addons-for-elementor');
20
- }
21
-
22
  public function get_icon() {
23
  return 'pa-image-separator';
24
  }
@@ -142,12 +138,13 @@ class Premium_Image_Separator_Widget extends Widget_Base
142
  $this->add_control('premium_image_separator_existing_page',
143
  [
144
  'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
145
- 'type' => Controls_Manager::SELECT,
146
  'options' => $this->getTemplateInstance()->get_all_post(),
147
  'condition' => [
148
  'premium_image_separator_link_switcher' => 'yes',
149
  'premium_image_separator_link_type' => 'link',
150
  ],
 
151
  'label_block' => true,
152
  ]
153
  );
@@ -228,4 +225,4 @@ class Premium_Image_Separator_Widget extends Widget_Base
228
  <?php
229
  }
230
  }
231
- Plugin::instance()->widgets_manager->register_widget_type(new Premium_Image_Separator_Widget());
15
  return 'premium-addon-image-separator';
16
  }
17
 
 
 
 
 
18
  public function get_icon() {
19
  return 'pa-image-separator';
20
  }
138
  $this->add_control('premium_image_separator_existing_page',
139
  [
140
  'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
141
+ 'type' => Controls_Manager::SELECT2,
142
  'options' => $this->getTemplateInstance()->get_all_post(),
143
  'condition' => [
144
  'premium_image_separator_link_switcher' => 'yes',
145
  'premium_image_separator_link_type' => 'link',
146
  ],
147
+ 'multiple' => false,
148
  'label_block' => true,
149
  ]
150
  );
225
  <?php
226
  }
227
  }
228
+ Plugin::instance()->widgets_manager->register_widget_type(new Premium_Image_Separator_Widget());
widgets/premium-pricing-table.php CHANGED
@@ -15,10 +15,6 @@ class Premium_Pricing_Table_Widget extends Widget_Base
15
  return 'premium-addon-pricing-table';
16
  }
17
 
18
- public function get_title() {
19
- return esc_html__('Premium Pricing Table', 'premium-addons-for-elementor');
20
- }
21
-
22
  public function get_icon() {
23
  return 'pa-pricing-table';
24
  }
@@ -290,11 +286,12 @@ class Premium_Pricing_Table_Widget extends Widget_Base
290
  $this->add_control('premium_pricing_table_button_link_existing_content',
291
  [
292
  'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
293
- 'type' => Controls_Manager::SELECT,
294
  'options' => $this->getTemplateInstance()->get_all_post(),
295
  'condition' => [
296
  'premium_pricing_table_button_url_type' => 'link',
297
  ],
 
298
  'label_block' => true,
299
  ]
300
  );
15
  return 'premium-addon-pricing-table';
16
  }
17
 
 
 
 
 
18
  public function get_icon() {
19
  return 'pa-pricing-table';
20
  }
286
  $this->add_control('premium_pricing_table_button_link_existing_content',
287
  [
288
  'label' => esc_html__('Existing Page', 'premium-addons-for-elementor'),
289
+ 'type' => Controls_Manager::SELECT2,
290
  'options' => $this->getTemplateInstance()->get_all_post(),
291
  'condition' => [
292
  'premium_pricing_table_button_url_type' => 'link',
293
  ],
294
+ 'multiple' => false,
295
  'label_block' => true,
296
  ]
297
  );