Sindbad~EG File Manager

Current Path : /home/x/i/e/xiedrke/malino/wp-content/plugins/trendz-plus/modules/hooks/customizer/
Upload File :
Current File : /home/x/i/e/xiedrke/malino/wp-content/plugins/trendz-plus/modules/hooks/customizer/index.php

<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

if( !class_exists( 'TrendzPlusCustomizerSiteHooks' ) ) {
    class TrendzPlusCustomizerSiteHooks {

        private static $_instance = null;

        public static function instance() {
            if ( is_null( self::$_instance ) ) {
                self::$_instance = new self();
            }

            return self::$_instance;
        }

        function __construct() {

            add_action( 'customize_register', array( $this, 'register' ), 15);
            $this->load_modules();
        }

        function register( $wp_customize ) {

            /**
             * Panel
             */
            $wp_customize->add_panel(
                new Trendz_Customize_Panel(
                    $wp_customize,
                    'site-hook-main-panel',
                    array(
                        'title'    => esc_html__('Site Hooks', 'trendz-plus'),
                        'priority' => trendz_customizer_panel_priority( 'hooks' )
                    )
                )
            );
        }

        function load_modules() {
            foreach( glob( TRENDZ_PLUS_DIR_PATH. 'modules/hooks/customizer/settings/*.php'  ) as $module ) {
                include_once $module;
            }
        }

    }
}

TrendzPlusCustomizerSiteHooks::instance();

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists