Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.80.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : dustrial-framework.php
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
/**
 *
 * ------------------------------------------------------------------------------------------------
 *
 * Codestar Framework
 * A Lightweight and easy-to-use WordPress Options Framework
 *
 * Plugin Name: Codestar Framework
 * Plugin URI: http://codestarframework.com/
 * Author: Codestar
 * Author URI: http://codestarlive.com/
 * Version: 1.0.2
 * Description: A Lightweight and easy-to-use WordPress Options Framework
 * License: GPLv2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
 * Text Domain: dustrial-framework
 *
 * ------------------------------------------------------------------------------------------------
 *
 * Copyright 2015 Codestar <[email protected]>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * ------------------------------------------------------------------------------------------------
 *
 */

// ------------------------------------------------------------------------------------------------
require_once plugin_dir_path( __FILE__ ) .'/dustrial-framework-path.php';
// ------------------------------------------------------------------------------------------------

if( ! function_exists( 'dustrial_framework_init' ) && ! class_exists( 'DUSTRIALFramework' ) ) {
  function dustrial_framework_init() {

    // active modules
    defined( 'DUSTRIAL_ACTIVE_FRAMEWORK' )   or  define( 'DUSTRIAL_ACTIVE_FRAMEWORK',   true  );
    defined( 'DUSTRIAL_ACTIVE_METABOX'   )   or  define( 'DUSTRIAL_ACTIVE_METABOX',     true  );
    defined( 'DUSTRIAL_ACTIVE_TAXONOMY'   )  or  define( 'DUSTRIAL_ACTIVE_TAXONOMY',    true  );
    defined( 'DUSTRIAL_ACTIVE_SHORTCODE' )   or  define( 'DUSTRIAL_ACTIVE_SHORTCODE',   true  );
    defined( 'DUSTRIAL_ACTIVE_CUSTOMIZE' )   or  define( 'DUSTRIAL_ACTIVE_CUSTOMIZE',   true  );
    defined( 'DUSTRIAL_ACTIVE_LIGHT_THEME' ) or  define( 'DUSTRIAL_ACTIVE_LIGHT_THEME', false );

    // helpers
    dustrial_locate_template( 'functions/deprecated.php'     );
    dustrial_locate_template( 'functions/fallback.php'       );
    dustrial_locate_template( 'functions/helpers.php'        );
    dustrial_locate_template( 'functions/actions.php'        );
    dustrial_locate_template( 'functions/enqueue.php'        );
    dustrial_locate_template( 'functions/sanitize.php'       );
    dustrial_locate_template( 'functions/validate.php'       );

    // classes
    dustrial_locate_template( 'classes/abstract.class.php'   );
    dustrial_locate_template( 'classes/options.class.php'    );
    dustrial_locate_template( 'classes/framework.class.php'  );
    dustrial_locate_template( 'classes/metabox.class.php'    );
    dustrial_locate_template( 'classes/taxonomy.class.php'   );
    dustrial_locate_template( 'classes/shortcode.class.php'  );
    dustrial_locate_template( 'classes/customize.class.php'  );

    // configs
    dustrial_locate_template( 'config/framework.config.php'  );
    dustrial_locate_template( 'config/metabox.config.php'    );
    dustrial_locate_template( 'config/taxonomy.config.php'   );
    dustrial_locate_template( 'config/shortcode.config.php'  );
    dustrial_locate_template( 'config/customize.config.php'  );

  }
  add_action( 'init', 'dustrial_framework_init', 10 );
}
© 2025 XylotrechusZ