NOX-ROOT-MARAZ Manager v2
PHP 8+ Secure
/
home
/
xiedrke
/
malino
/
wp-content
/
plugins
/
trendz-plus
/
modules
/
header
/
Name
Size
Perms
Actions
📁 assets
-
0755
Chmod
|
Delete
📁 customizer
-
0755
Chmod
|
Delete
📁 elementor
-
0755
Chmod
|
Delete
📁 layouts
-
0755
Chmod
|
Delete
📄 index.php
1,359 B
0644
Edit
|
Chmod
|
Delete
Editing: index.php
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if( !class_exists( 'TrendzPlusHeader' ) ) { class TrendzPlusHeader { private static $_instance = null; public static function instance() { if ( is_null( self::$_instance ) ) { self::$_instance = new self(); } return self::$_instance; } function __construct() { $this->load_header_layouts(); $this->load_modules(); $this->frontend(); } function load_header_layouts() { foreach( glob( TRENDZ_PLUS_DIR_PATH. 'modules/header/layouts/*/index.php' ) as $module ) { include_once $module; } } function load_modules() { include_once TRENDZ_PLUS_DIR_PATH.'modules/header/customizer/index.php'; include_once TRENDZ_PLUS_DIR_PATH.'modules/header/elementor/index.php'; } function frontend() { add_action( 'trendz_after_main_css', array( $this, 'enqueue_assets' ) ); } function enqueue_assets() { wp_enqueue_style( 'site-header', TRENDZ_PLUS_DIR_URL . 'modules/header/assets/css/header.css', TRENDZ_PLUS_VERSION ); } } } TrendzPlusHeader::instance();
Cancel