Changeset 3137039
- Timestamp:
- 08/17/2024 01:39:12 PM (20 months ago)
- Location:
- wpshare247-elementor-addons/trunk
- Files:
-
- 5 edited
-
inc/helper.php (modified) (1 diff)
-
inc/woocommerce.php (modified) (1 diff)
-
includes/plugin.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
wpshare247-elementor-addon.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpshare247-elementor-addons/trunk/inc/helper.php
r2851642 r3137039 7 7 8 8 public function __construct() { 9 9 10 } 10 11 -
wpshare247-elementor-addons/trunk/inc/woocommerce.php
r2851642 r3137039 11 11 12 12 public function init(){ 13 add_action('init', array($this, 'register_ea_session')); 14 add_action( 'wp_footer', array($this, 'product_session'), 99999); 15 13 16 add_action( 'woocommerce_before_shop_loop_item_title', [$this, 'woocommerce_img_wrapper_begin'], 9 ); 14 17 add_action( 'woocommerce_shop_loop_item_title', [$this, 'woocommerce_img_wrapper_end'], 9 ); 15 18 add_action( 'woocommerce_after_shop_loop_item', [$this, 'loop_add_to_cart_wrapper_begin'], 9 ); 16 19 add_action( 'woocommerce_after_shop_loop_item', [$this, 'loop_add_to_cart_wrapper_end'], 11 ); 20 } 21 22 static function register_ea_session(){ 23 if( !session_id() ){ 24 session_start(); 25 } 26 } 27 28 static function product_session(){ 29 global $product; 30 if( is_object($product) && is_product()){ 31 $pid = $product->get_id(); 32 $_SESSION['ea_product_id'] = $pid; 33 } 34 } 35 36 static function get_product(){ 37 $ea_product_id = $_SESSION['ea_product_id']; 38 $product = wc_get_product( $ea_product_id ); 39 return $product; 17 40 } 18 41 -
wpshare247-elementor-addons/trunk/includes/plugin.php
r2856412 r3137039 235 235 'wpshare247_product_categories_widget', 236 236 'wpshare247_contact_form7', 237 'wpshare247_countdown' 237 'wpshare247_countdown', 238 'wpshare247_product_single_price_widget' 238 239 //'wpshare247_new_widget' 239 240 ); -
wpshare247-elementor-addons/trunk/readme.txt
r2856412 r3137039 4 4 Tags: elementor, carousel, slider, blog, post, page, post type, product, category, list, addon, widget, contact form 7, countdown 5 5 Requires at least: 4.9 6 Tested up to: 6. 1.16 Tested up to: 6.6.1 7 7 Requires PHP: 7.0 8 Stable tag: 1.0.08 Stable tag: 2.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 12 12 Widgets (Wpshare247 Addons) for Elementor. Wpshare247 Addons for Elementor plugin includes widgets and addons like Blog Post, Products, Post, Page and Custom Post Type Grid or Carousel, Countdown, Contact Form 7. 13 13 14 Cung cấp các Widget, Addon hỗ trợ Elementor. Có các dạng danh sách như List, Carousel, Slider, Countdown, Contact Form 7 .. được phát triển bởi WPSHARE247.COM14 Cung cấp các Widget, Addon hỗ trợ Elementor. Có các dạng danh sách như List, Carousel, Slider, Countdown, Contact Form 7, WooCommerce.. được phát triển bởi WPSHARE247.COM 15 15 16 16 == Description == … … 50 50 * Add new widget: Countdown 51 51 52 = 2.1 = 53 54 * Add new widget: Product price 55 56 52 57 == Upgrade Notice == 53 58 -
wpshare247-elementor-addons/trunk/wpshare247-elementor-addon.php
r2856412 r3137039 3 3 * Plugin Name: WPSHARE247 Elementor Addons 4 4 * Plugin URI: https://wpshare247.com/ 5 * Description: Widgets (Wpshare247 Addons) for Elementor. Wpshare247 Addons for Elementor plugin includes widgets and addons like Blog Post, Products, Post, Page and Custom Post Type Grid or Carousel, Countdown, Contact Form 7 .6 * Version: 1.0.15 * Description: Widgets (Wpshare247 Addons) for Elementor. Wpshare247 Addons for Elementor plugin includes widgets and addons like Blog Post, Products, Post, Page and Custom Post Type Grid or Carousel, Countdown, Contact Form 7, WooCommerce Product Price. 6 * Version: 2.1 7 7 * Author: Wpshare247.com 8 8 * Author URI: https://wpshare247.com/chuyen-muc/elementor … … 22 22 23 23 require_once( __DIR__ . '/inc/helper.php' ); 24 require_once( __DIR__ . '/inc/woocommerce.php' ); 24 25 include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); 26 if ( is_plugin_active( 'woocommerce/woocommerce.php' ) ) { 27 require_once( __DIR__ . '/inc/woocommerce.php' ); 28 } 25 29 26 30 // Load plugin file
Note: See TracChangeset
for help on using the changeset viewer.