Plugin Directory

Changeset 2715548


Ignore:
Timestamp:
04/27/2022 04:37:50 PM (4 years ago)
Author:
piotnetdotcom
Message:

Update v2.4.14

Location:
piotnet-addons-for-elementor
Files:
160 added
5 edited

Legend:

Unmodified
Added
Removed
  • piotnet-addons-for-elementor/trunk/controls/pafe-particles.php

    r2527727 r2715548  
    264264        protected function init_control() {
    265265            add_action( 'elementor/element/section/section_advanced/after_section_end', [ $this, 'pafe_register_controls' ], 10, 2 );
     266            add_action( 'elementor/element/container/section_layout/after_section_end', [ $this, 'pafe_register_controls' ], 10, 2 );
    266267            add_action( 'elementor/frontend/section/before_render', [ $this, 'after_render_element'], 10, 1 );
     268            add_action( 'elementor/frontend/container/before_render', [ $this, 'after_render_element'], 10, 1 );
    267269        }
    268270
  • piotnet-addons-for-elementor/trunk/controls/pafe-tooltip.php

    r2527727 r2715548  
    283283        protected function init_control() {
    284284            add_action( 'elementor/element/section/section_advanced/after_section_end', [ $this, 'pafe_register_controls' ], 10, 2 );
     285            add_action( 'elementor/element/container/section_layout/after_section_end', [ $this, 'pafe_register_controls' ], 10, 2 );
    285286            add_action( 'elementor/element/column/section_advanced/after_section_end', [ $this, 'pafe_register_controls' ], 10, 2 );
    286287            add_action( 'elementor/element/common/_section_background/after_section_end', [ $this, 'pafe_register_controls' ], 10, 2 );
    287288            add_action( 'elementor/frontend/section/before_render', [ $this, 'after_render_element'], 10, 1 );
    288289            add_action( 'elementor/frontend/column/before_render', [ $this, 'after_render_element'], 10, 1 );
     290            add_action( 'elementor/frontend/container/before_render', [ $this, 'after_render_element'], 10, 1 );
    289291            add_action( 'elementor/frontend/widget/before_render', [ $this, 'after_render_element'], 10, 1 );
    290292        }
  • piotnet-addons-for-elementor/trunk/piotnet-addons-for-elementor.php

    r2604694 r2715548  
    44 * Description: Piotnet Addons For Elementor (PAFE) adds many new features for Elementor
    55 * Plugin URI:  https://pafe.piotnet.com/
    6  * Version:     2.4.13
     6 * Version:     2.4.14
    77 * Author:      Piotnet
    88 * Author URI:  https://piotnet.com/
    99 * Text Domain: pafe
    10  * Elementor tested up to: 3.4.4
    11  * Elementor Pro tested up to: 3.4.1
     10 * Elementor tested up to: 3.6.5
     11 * Elementor Pro tested up to: 3.6.5
    1212 */
    1313
    1414if ( ! defined( 'ABSPATH' ) ) { exit; }
    1515
    16 define( 'PAFE_VERSION', '2.4.13' );
    17 define( 'PAFE_PREVIOUS_STABLE_VERSION', '2.4.12' );
     16define( 'PAFE_VERSION', '2.4.14' );
     17define( 'PAFE_PREVIOUS_STABLE_VERSION', '2.4.13' );
    1818
    1919define( 'PAFE_DIR', plugin_dir_path(__FILE__));
     
    2222final class Piotnet_Addons_For_Elementor {
    2323
    24     const VERSION = '2.4.13';
     24    const VERSION = '2.4.14';
    2525    const MINIMUM_ELEMENTOR_VERSION = '2.8.0';
    2626    const MINIMUM_PHP_VERSION = '5.4';
  • piotnet-addons-for-elementor/trunk/readme.txt

    r2604694 r2715548  
    55Tested up to: 5.8
    66Requires PHP: 5.4
    7 Stable tag: 2.4.13
     7Stable tag: 2.4.14
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    120120
    121121== Changelog ==
     122= 2.4.14 =
     123* Update Elementor tested up to: 3.6.5
     124* Elementor Pro tested up to: 3.6.5
     125* Fix bug the Countdown Cart widget doesn't work when use without single product page.
     126* Fix PAFE particles doesn't work on flexbox container.
     127* Fix PAFE Tooltip doesn't work on the Flexbox Container.
    122128= 2.4.13 =
    123129* Change Alignment icons to compatible with Elementor v3.4.4.
  • piotnet-addons-for-elementor/trunk/widgets/pafe-countdown-cart.php

    r2595417 r2715548  
    395395        }   
    396396        protected function render() {
    397             global $product;
    398            
    399             if ( empty( $product ) ) {
    400                 return;
    401             }
    402 
    403             $settings = $this->get_settings_for_display();   
    404 
     397
     398            $settings = $this->get_settings_for_display();
     399global $product;
    405400            if (!empty($settings['pafe_countdown_cart_id'])) {
    406401                $product_id = $settings['pafe_countdown_cart_id'];
     
    411406            }
    412407
    413             $units_sold = $product->get_total_sales();
    414             $units_quantity = $product->get_stock_quantity();
     408            if (!empty($product)) {
     409                $units_sold = $product->get_total_sales();
     410                $units_quantity = $product->get_stock_quantity();
     411            }
    415412            $stock_percent = $units_quantity/($units_sold+$units_quantity)*100;
    416413
     
    420417                        <?php if (!empty($settings['pafe_countdown_cart_label_before']) ) : ?>
    421418                            <span class="pafe-countdown-stock__label-before"> <?php echo $settings['pafe_countdown_cart_label_before']; ?>  </span>
    422                         <?php endif; ?>
    423                         <span class="pafe-countdown-stock__number"><?php echo $product->get_stock_quantity(); ?></span>
     419                        <?php endif; ?>
     420
     421                        <span class="pafe-countdown-stock__number"><?php if (!empty($product)){ echo $product->get_stock_quantity(); }?></span>
    424422                        <?php if (!empty($settings['pafe_countdown_cart_label_after']) ) : ?>
    425423                            <span class="pafe-countdown-stock__label-after"> <?php echo $settings['pafe_countdown_cart_label_after']; ?></span>
Note: See TracChangeset for help on using the changeset viewer.