PowerPack Addons for Elementor (Instagram Feed, Pricing Table, Forms Stylers, Display Conditions, Free Elementor Widgets and Elementor Templates) - Version 2.5.2

Version Description

  • July 22, 2021 =
  • Fixed: Price Menu - PHP error
Download this release

Release Info

Developer ideaboxcreations
Plugin Icon 128x128 PowerPack Addons for Elementor (Instagram Feed, Pricing Table, Forms Stylers, Display Conditions, Free Elementor Widgets and Elementor Templates)
Version 2.5.2
Comparing to
See all releases

Code changes from version 2.5.1 to 2.5.2

changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  == 2.5.1 ==
2
  Release date: July 21, 2021
3
  * Fixed: PHP error in Buttons widget
1
+ == 2.5.2 ==
2
+ Release date: July 22, 2021
3
+ * Fixed: Price Menu - PHP error
4
+
5
  == 2.5.1 ==
6
  Release date: July 21, 2021
7
  * Fixed: PHP error in Buttons widget
modules/pricing/widgets/price-menu.php CHANGED
@@ -3,6 +3,7 @@ namespace PowerpackElementsLite\Modules\Pricing\Widgets;
3
 
4
  use PowerpackElementsLite\Base\Powerpack_Widget;
5
  use PowerpackElementsLite\Classes\PP_Config;
 
6
 
7
  // Elementor Classes
8
  use Elementor\Controls_Manager;
@@ -1282,42 +1283,41 @@ class Price_Menu extends Powerpack_Widget {
1282
  <?php
1283
  }
1284
 
1285
- protected function price_template() {
1286
  ?>
1287
- <# if ( item.menu_price != '' ) { #>
1288
- <span class="pp-restaurant-menu-price">
1289
- <#
1290
- if ( item.discount == 'yes' ) {
1291
- var original_price = item.original_price;
1292
 
1293
- view.addRenderAttribute( 'menu_items.' + ($i - 1) + '.original_price', 'class', 'pp-restaurant-menu-price-original' );
 
 
 
 
 
1294
 
1295
- view.addInlineEditingAttributes( 'menu_items.' + ($i - 1) + '.original_price' );
1296
 
1297
- var original_price_html = '<span' + ' ' + view.getRenderAttributeString( 'menu_items.' + ($i - 1) + '.original_price' ) + '>' + original_price + '</span>';
1298
 
1299
- print( original_price_html );
1300
- }
1301
 
1302
- var menu_price = item.menu_price;
 
1303
 
1304
- view.addRenderAttribute( 'menu_items.' + ($i - 1) + '.menu_price', 'class', 'pp-restaurant-menu-price-discount' );
1305
 
1306
- view.addInlineEditingAttributes( 'menu_items.' + ($i - 1) + '.menu_price' );
1307
 
1308
- var menu_price_html = '<span' + ' ' + view.getRenderAttributeString( 'menu_items.' + ($i - 1) + '.menu_price' ) + '>' + menu_price + '</span>';
1309
 
1310
- print( menu_price_html );
1311
- #>
1312
- </span>
1313
- <# } #>
1314
- <?php
1315
- }
1316
 
1317
- protected function content_template() {
1318
- ?>
1319
- <#
1320
- var $i = 1;
 
 
1321
 
1322
  function title_template( item ) {
1323
  var title = item.menu_title;
@@ -1373,7 +1373,7 @@ class Price_Menu extends Powerpack_Widget {
1373
  <# } #>
1374
 
1375
  <# if ( settings.menu_style == 'style-1' ) { #>
1376
- <?php $this->price_template(); ?>
1377
  <# } #>
1378
  </div>
1379
 
@@ -1381,9 +1381,8 @@ class Price_Menu extends Powerpack_Widget {
1381
  <div class="pp-price-menu-divider-wrap">
1382
  <div class="pp-price-menu-divider"></div>
1383
  </div>
1384
- <# } #>
1385
 
1386
- <#
1387
  if ( item.menu_description != '' ) {
1388
  var description = item.menu_description;
1389
 
@@ -1395,11 +1394,10 @@ class Price_Menu extends Powerpack_Widget {
1395
 
1396
  print( description_html );
1397
  }
1398
- #>
1399
 
1400
- <# if ( settings.menu_style != 'style-1' ) { #>
1401
- <?php $this->price_template(); ?>
1402
- <# } #>
1403
  </div>
1404
  </div>
1405
  </div>
3
 
4
  use PowerpackElementsLite\Base\Powerpack_Widget;
5
  use PowerpackElementsLite\Classes\PP_Config;
6
+ use PowerpackElementsLite\Classes\PP_Helper;
7
 
8
  // Elementor Classes
9
  use Elementor\Controls_Manager;
1283
  <?php
1284
  }
1285
 
1286
+ protected function content_template() {
1287
  ?>
1288
+ <#
1289
+ var $i = 1;
 
 
 
1290
 
1291
+ function price_template( item ) {
1292
+ if ( item.menu_price != '' ) { #>
1293
+ <span class="pp-restaurant-menu-price">
1294
+ <#
1295
+ if ( item.discount == 'yes' ) {
1296
+ var original_price = item.original_price;
1297
 
1298
+ view.addRenderAttribute( 'menu_items.' + ($i - 1) + '.original_price', 'class', 'pp-restaurant-menu-price-original' );
1299
 
1300
+ view.addInlineEditingAttributes( 'menu_items.' + ($i - 1) + '.original_price' );
1301
 
1302
+ var original_price_html = '<span' + ' ' + view.getRenderAttributeString( 'menu_items.' + ($i - 1) + '.original_price' ) + '>' + original_price + '</span>';
 
1303
 
1304
+ print( original_price_html );
1305
+ }
1306
 
1307
+ var menu_price = item.menu_price;
1308
 
1309
+ view.addRenderAttribute( 'menu_items.' + ($i - 1) + '.menu_price', 'class', 'pp-restaurant-menu-price-discount' );
1310
 
1311
+ view.addInlineEditingAttributes( 'menu_items.' + ($i - 1) + '.menu_price' );
1312
 
1313
+ var menu_price_html = '<span' + ' ' + view.getRenderAttributeString( 'menu_items.' + ($i - 1) + '.menu_price' ) + '>' + menu_price + '</span>';
 
 
 
 
 
1314
 
1315
+ print( menu_price_html );
1316
+ #>
1317
+ </span>
1318
+ <#
1319
+ }
1320
+ }
1321
 
1322
  function title_template( item ) {
1323
  var title = item.menu_title;
1373
  <# } #>
1374
 
1375
  <# if ( settings.menu_style == 'style-1' ) { #>
1376
+ <# price_template( item ) #>
1377
  <# } #>
1378
  </div>
1379
 
1381
  <div class="pp-price-menu-divider-wrap">
1382
  <div class="pp-price-menu-divider"></div>
1383
  </div>
1384
+ <# }
1385
 
 
1386
  if ( item.menu_description != '' ) {
1387
  var description = item.menu_description;
1388
 
1394
 
1395
  print( description_html );
1396
  }
 
1397
 
1398
+ if ( settings.menu_style != 'style-1' ) {
1399
+ price_template( item )
1400
+ } #>
1401
  </div>
1402
  </div>
1403
  </div>
package.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "powerpack-lite-for-elementor",
3
- "version": "2.5.1",
4
  "description": "Extend Elementor Page Builder with 50+ Creative Widgets.",
5
  "keywords": [],
6
  "author": "IdeaBox Creations",
1
  {
2
  "name": "powerpack-lite-for-elementor",
3
+ "version": "2.5.2",
4
  "description": "Extend Elementor Page Builder with 50+ Creative Widgets.",
5
  "keywords": [],
6
  "author": "IdeaBox Creations",
powerpack-lite-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: PowerPack Lite for Elementor
4
  * Plugin URI: https://powerpackelements.com
5
  * Description: Extend Elementor Page Builder with 30+ Creative Widgets and exciting extensions.
6
- * Version: 2.5.1
7
  * Author: IdeaBox Creations
8
  * Author URI: http://ideabox.io/
9
  * License: GNU General Public License v2.0
@@ -11,7 +11,7 @@
11
  * Text Domain: powerpack
12
  * Domain Path: /languages
13
  * Elementor tested up to: 3.3.1
14
- * Elementor Pro tested up to: 3.3.3
15
  */
16
 
17
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -20,7 +20,7 @@ if ( defined( 'POWERPACK_ELEMENTS_VER' ) ) {
20
  return;
21
  }
22
 
23
- define( 'POWERPACK_ELEMENTS_LITE_VER', '2.5.1' );
24
  define( 'POWERPACK_ELEMENTS_LITE_PATH', plugin_dir_path( __FILE__ ) );
25
  define( 'POWERPACK_ELEMENTS_LITE_BASE', plugin_basename( __FILE__ ) );
26
  define( 'POWERPACK_ELEMENTS_LITE_URL', plugins_url( '/', __FILE__ ) );
3
  * Plugin Name: PowerPack Lite for Elementor
4
  * Plugin URI: https://powerpackelements.com
5
  * Description: Extend Elementor Page Builder with 30+ Creative Widgets and exciting extensions.
6
+ * Version: 2.5.2
7
  * Author: IdeaBox Creations
8
  * Author URI: http://ideabox.io/
9
  * License: GNU General Public License v2.0
11
  * Text Domain: powerpack
12
  * Domain Path: /languages
13
  * Elementor tested up to: 3.3.1
14
+ * Elementor Pro tested up to: 3.3.4
15
  */
16
 
17
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
20
  return;
21
  }
22
 
23
+ define( 'POWERPACK_ELEMENTS_LITE_VER', '2.5.2' );
24
  define( 'POWERPACK_ELEMENTS_LITE_PATH', plugin_dir_path( __FILE__ ) );
25
  define( 'POWERPACK_ELEMENTS_LITE_BASE', plugin_basename( __FILE__ ) );
26
  define( 'POWERPACK_ELEMENTS_LITE_URL', plugins_url( '/', __FILE__ ) );
readme.txt CHANGED
@@ -218,6 +218,9 @@ Not at all! All the widgets and settings are easy to use with drag & drop interf
218
 
219
  == Changelog ==
220
 
 
 
 
221
  = 2.5.1 - July 21, 2021 =
222
  * Fixed: PHP error in Buttons widget
223
 
218
 
219
  == Changelog ==
220
 
221
+ = 2.5.2 - July 22, 2021 =
222
+ * Fixed: Price Menu - PHP error
223
+
224
  = 2.5.1 - July 21, 2021 =
225
  * Fixed: PHP error in Buttons widget
226