PATH:
home
/
letacommog
/
gdiags.fr
/
wp-content
/
plugins
/
essential-addons-for-elementor-lite
/
includes
/
Elements
<?php namespace Essential_Addons_Elementor\Elements; use Elementor\Controls_Manager; use Elementor\Widget_Base; use Essential_Addons_Elementor\Traits\Woo_Product_Comparable; if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly /** * Class Woo_Product_Compare * @package namespace Essential_Addons_Elementor\Pro\Elements; */ class Woo_Product_Compare extends Widget_Base { use Woo_Product_Comparable; protected $products_list = []; protected $remove_action = 'eael-wcpc-remove-product'; /** * @inheritDoc */ public function get_name() { return 'eael-woo-product-compare'; } /** * @inheritDoc */ public function get_title() { return esc_html__( 'Woo Product Compare', 'essential-addons-for-elementor-lite' ); } /** * @inheritDoc */ public function get_icon() { return 'eaicon-product-compare'; } /** * @inheritDoc */ public function get_keywords() { return [ 'woocommerce product compare', 'woocommerce product comparison', 'product compare', 'product comparison', 'products compare', 'products comparison', 'wc', 'woocommerce', 'products', 'compare', 'comparison', 'ea', 'essential addons', ]; } public function get_custom_help_url() { return 'https://essential-addons.com/elementor/docs/woo-product-compare/'; } /** * @inheritDoc */ public function get_categories() { return [ 'essential-addons-for-elementor-lite' ]; } /** * @inheritDoc */ protected function _register_controls() { $this->init_content_wc_notice_controls(); if ( ! function_exists( 'WC' ) ) { return; } /*----Content Tab----*/ do_action( 'eael/wcpc/before-content-controls', $this ); $this->init_content_product_compare_controls(); $this->init_content_table_settings_controls(); do_action( 'eael/wcpc/after-content-controls', $this ); /*----Style Tab----*/ do_action( 'eael/wcpc/before-style-controls', $this ); $this->init_style_content_controls(); $this->init_style_table_controls(); do_action( 'eael/wcpc/after-style-controls', $this ); } protected function render() { if ( ! function_exists( 'WC' ) ) { return; } $ds = $this->get_settings_for_display(); $product_ids = $this->get_settings_for_display( 'product_ids' ); $products = $this->get_products_list( $product_ids ); $fields = $this->fields(); $this->render_compare_table( compact( 'products', 'fields', 'ds' ) ); } }
[+]
..
[-] Crowdfundly_Organization.php
[edit]
[-] Crowdfundly_Single_Campaign.php
[edit]
[-] Cta_Box.php
[edit]
[-] EmbedPress.php
[edit]
[-] Tooltip.php
[edit]
[-] Event_Calendar.php
[edit]
[-] Adv_Tabs.php
[edit]
[-] WeForms.php
[edit]
[-] Betterdocs_Search_Form.php
[edit]
[-] Facebook_Feed.php
[edit]
[-] Advanced_Data_Table.php
[edit]
[-] Career_Page.php
[edit]
[-] Adv_Accordion.php
[edit]
[-] Caldera_Forms.php
[edit]
[-] NinjaForms.php
[edit]
[-] Login_Register.php
[edit]
[-] Data_Table.php
[edit]
[-] Team_Member.php
[edit]
[-] Betterdocs_Category_Box.php
[edit]
[-] GravityForms.php
[edit]
[-] Creative_Button.php
[edit]
[-] Countdown.php
[edit]
[-] Betterdocs_Category_Grid.php
[edit]
[-] Contact_Form_7.php
[edit]
[-] Image_Accordion.php
[edit]
[-] Formstack.php
[edit]
[-] Fancy_Text.php
[edit]
[-] Product_Grid.php
[edit]
[-] Feature_List.php
[edit]
[-] Woo_Checkout.php
[edit]
[-] Sticky_Video.php
[edit]
[-] Progress_Bar.php
[edit]
[-] Filterable_Gallery.php
[edit]
[-] FluentForm.php
[edit]
[-] Woocommerce_Review.php
[edit]
[-] Content_Ticker.php
[edit]
[-] Dual_Color_Header.php
[edit]
[-] Post_Timeline.php
[edit]
[-] Info_Box.php
[edit]
[-] Woo_Product_Compare.php
[edit]
[-] Post_Grid.php
[edit]
[-] Twitter_Feed.php
[edit]
[-] TypeForm.php
[edit]
[-] Crowdfundly_All_Campaign.php
[edit]
[-] Pricing_Table.php
[edit]
[-] WpForms.php
[edit]
[-] Testimonial.php
[edit]
[-] Woo_Product_Carousel.php
[edit]
[-] Flip_Box.php
[edit]