NOX-ROOT-MARAZ Manager v2
PHP 8+ Secure
/
home
/
xiedrke
/
malino
/
wp-content
/
plugins
/
trendz-pro
/
modules
/
woocommerce
/
listings
/
Name
Size
Perms
Actions
📁 elementor
-
0755
Chmod
|
Delete
📁 sidebar
-
0755
Chmod
|
Delete
📁 types
-
0755
Chmod
|
Delete
📄 index.php
2,025 B
0644
Edit
|
Chmod
|
Delete
Editing: index.php
<?php /** * Listing */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if( !class_exists( 'Trendz_Pro_Listing' ) ) { class Trendz_Pro_Listing { private static $_instance = null; public static function instance() { if ( is_null( self::$_instance ) ) { self::$_instance = new self(); } return self::$_instance; } function __construct() { /* Update Options Location Path Array */ add_filter( 'trendz_woo_option_locations', array( $this, 'option_locations_update'), 10, 1 ); /* Update Types Location Path Array */ add_filter( 'trendz_woo_type_locations', array( $this, 'type_locations_update'), 10, 1 ); /* Load Modules */ $this->load_modules(); } /* Options Location Path Update */ function option_locations_update( $paths ) { array_push( $paths, TRENDZ_PRO_DIR_PATH . 'modules/woocommerce/listings/options/*/index.php' ); return $paths; } /* Types Location Path Update */ function type_locations_update( $paths ) { array_push( $paths, TRENDZ_PRO_DIR_PATH . 'modules/woocommerce/listings/types/*/index.php' ); return $paths; } /* Load Modules */ function load_modules() { // Elementor Widgets include_once TRENDZ_PRO_DIR_PATH . 'modules/woocommerce/listings/elementor/index.php'; // Sidebar include_once TRENDZ_PRO_DIR_PATH . 'modules/woocommerce/listings/sidebar/index.php'; } } } if( !function_exists('trendz_listing') ) { function trendz_listing() { return Trendz_Pro_Listing::instance(); } } trendz_listing();
Cancel