NOX-ROOT-MARAZ Manager v2
PHP 8+ Secure
/
home
/
xiedrke
/
malino
/
wp-content
/
plugins
/
trendz-pro
/
modules
/
woocommerce
/
elementor
/
Name
Size
Perms
Actions
📄 index.php
2,798 B
0644
Edit
|
Chmod
|
Delete
Editing: index.php
<?php /** * WooCommerce - Elementor Core Class */ namespace TrendzElementor\widgets; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Trendz_Pro_Elementor { /** * A Reference to an instance of this class */ private static $_instance = null; const MINIMUM_ELEMENTOR_VERSION = '3.0.0'; const MINIMUM_PHP_VERSION = '7.2'; /** * Instance * * Ensures only one instance of the class is loaded or can be loaded. */ public static function instance() { if ( is_null( self::$_instance ) ) { self::$_instance = new self(); } return self::$_instance; } /** * Constructor */ public function __construct() { $this->load_modules(); } /** * Requirement Verification */ public function load_modules() { add_action( 'elementor/elements/categories_registered', array( $this, 'trendz_shop_register_category' ) ); add_action( 'elementor/widgets/register', array( $this, 'trendz_shop_register_widgets' ) ); add_action( 'elementor/frontend/after_register_styles', array( $this, 'trendz_shop_register_widget_styles' ) ); add_action( 'elementor/frontend/after_register_scripts', array( $this, 'trendz_shop_register_widget_scripts' ) ); add_action( 'elementor/preview/enqueue_styles', array( $this, 'trendz_shop_preview_styles') ); add_action( 'elementor/preview/enqueue_scripts', array( $this, 'trendz_shop_preview_scripts') ); } /** * Register category * Add plugin category in elementor */ public function trendz_shop_register_category( $elements_manager ) { $elements_manager->add_category( 'wdt-shop-widgets', array( 'title' => esc_html__( 'Trendz Shop', 'trendz-pro' ), 'icon' => 'font' ) ); } /** * Register Trendz widgets */ public function trendz_shop_register_widgets( $widgets_manager ) { do_action( 'trendz_shop_register_widgets', $widgets_manager ); } /** * Register Trendz widgets styles */ public function trendz_shop_register_widget_styles() { $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : ''; do_action( 'trendz_shop_register_widget_styles', $suffix ); } /** * Register Trendz widgets scripts */ public function trendz_shop_register_widget_scripts() { $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : ''; do_action( 'trendz_shop_register_widget_scripts', $suffix ); } /** * Editor Preview Style */ public function trendz_shop_preview_styles() { do_action( 'trendz_shop_preview_styles' ); } /** * Editor Preview Scripts */ public function trendz_shop_preview_scripts() { do_action( 'trendz_shop_preview_scripts' ); } } Trendz_Pro_Elementor::instance();
Cancel