NOX-ROOT-MARAZ Manager v2
PHP 8+ Secure
/
home
/
xiedrke
/
malino
/
wp-content
/
plugins
/
trendz-plus
/
modules
/
site-loader
/
layouts
/
loader-1
/
Name
Size
Perms
Actions
📁 assets
-
0755
Chmod
|
Delete
📄 index.php
1,775 B
0644
Edit
|
Chmod
|
Delete
Editing: index.php
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if( !class_exists( 'TrendzPlusSiteLoaderOne' ) ) { class TrendzPlusSiteLoaderOne { private static $_instance = null; public static function instance() { if ( is_null( self::$_instance ) ) { self::$_instance = new self(); } return self::$_instance; } function __construct() { add_filter( 'trendz_loader_layouts', array( $this, 'add_option' ) ); $site_loader = trendz_customizer_settings( 'site_loader' ); if( $site_loader == 'loader-1' ) { add_action( 'trendz_after_main_css', array( $this, 'enqueue_assets' ) ); /** * filter: trendz_primary_color_style - to use primary color * filter: trendz_secondary_color_style - to use secondary color * filter: trendz_tertiary_color_style - to use tertiary color */ add_filter( 'trendz_tertiary_color_style', array( $this, 'tertiary_color_style' ) ); } } function add_option( $options ) { $options['loader-1'] = esc_html__('Loader 1', 'trendz-plus'); return $options; } function enqueue_assets() { wp_enqueue_style( 'site-loader', TRENDZ_PLUS_DIR_URL . 'modules/site-loader/layouts/loader-1/assets/css/loader-1.css', false, TRENDZ_PLUS_VERSION, 'all' ); } function tertiary_color_style( $style ) { $style .= ".loader1 { background-color:var( --wdtBodyBGColor );}"; return $style; } } } TrendzPlusSiteLoaderOne::instance();
Cancel