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-master.php
<?php 
/*
Plugin Name: Dustrial Master
Plugin URI: https://pluginspoint.com/dustrialwp/
Author: Johanspond
Description: After installing the Dustrial Theme, you need to install the "Dustrial Master" plugin first to get all features.
Author URI: https://pluginspoint.com/
Version: 4.0.7
Text Domain: dustrial-master
Domain Path: /languages
*/

if ( ! defined( 'ABSPATH' ) ) exit;

/*------------------------------------------------------------------------------------------------------------------*/
/*  Plugin define.
/*------------------------------------------------------------------------------------------------------------------*/
define( 'DUSTRIAL_PLG_URL', plugin_dir_url( __FILE__ ) );
define( 'DUSTRIAL_PLG_DIR', dirname( __FILE__ ) );
define( 'DUSTRIAL_PLG_DEMO_PATH', dirname( __FILE__ ) . '/demo-importer/' );
define( 'DUSTRIAL_PLG_DEMO_URL', plugin_dir_url( __FILE__ ) . 'demo-importer/' );

# load plugin textdomain
function dustrial_master_load_textdomain(){
  load_plugin_textdomain('dustrial-master', false, dirname(plugin_basename( __FILE__ )) . '/languages/');
}
add_action('plugins_loaded', 'dustrial_master_load_textdomain');

/*------------------------------------------------------------------------------------------------------------------*/
/*  Plugin action and filter hook.
/*------------------------------------------------------------------------------------------------------------------*/
add_action( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'dustrial_plugin_action_links' );
add_filter( 'plugin_row_meta', 'custom_plugin_row_meta', 10, 2 );

/*------------------------------------------------------------------------------------------------------------------*/
/*  Plugin include files.
/*------------------------------------------------------------------------------------------------------------------*/
require_once DUSTRIAL_PLG_DIR . '/inc/dm-admin.php';
require_once DUSTRIAL_PLG_DIR . '/inc/custom-style.php';
require_once DUSTRIAL_PLG_DIR . '/inc/custom-widgets.php';
require_once DUSTRIAL_PLG_DIR . '/inc/custom-posttype.php';
require_once DUSTRIAL_PLG_DIR . '/inc/helper.php';

/*------------------------------------------------------------------------------------------------------------------*/
/*  Theme option framework.
/*------------------------------------------------------------------------------------------------------------------*/
require_once DUSTRIAL_PLG_DIR . '/framework/dustrial-framework.php';

/* Visual composer addons style
=====================================================*/
add_action( 'wp_enqueue_scripts', 'dustrial_extra_master_scripts' );
function dustrial_extra_master_scripts() {
  // Css
  wp_enqueue_style('dustrial-visual-composer-css', DUSTRIAL_PLG_URL . 'assets/admin/visual-composer.css' , array(), '' );
  wp_enqueue_style('smoothbox', DUSTRIAL_PLG_URL . 'assets/css/smoothbox-min.css' , array(), '' );
  wp_enqueue_style('viewer', DUSTRIAL_PLG_URL . 'assets/css/viewer.css' , array(), '' );
  wp_enqueue_style('dustrial-master-css', DUSTRIAL_PLG_URL . 'assets/css/dustrial-master.css' , array(), '' );

  // Js
  wp_enqueue_script('imagesloaded');
  wp_enqueue_script('smoothbox', DUSTRIAL_PLG_URL . 'assets/js/smoothbox-min.js', array('jquery'), '1.0.0', true);
  wp_enqueue_script('viewer', DUSTRIAL_PLG_URL . 'assets/js/viewer.js', array('jquery'), '1.0.0', true);
  wp_enqueue_script('isotope', DUSTRIAL_PLG_URL . 'assets/js/isotope.pkgd.min.js', array('jquery'), '1.0.0', true);
  wp_enqueue_script('dustrial-master', DUSTRIAL_PLG_URL . 'assets/js/dustrial-master.js', array('jquery'), '1.0.0', true);
}

/* Visual composer addons style
=====================================================*/
add_action( 'admin_enqueue_scripts', 'dustrial_master_scripts' );
function dustrial_master_scripts() {
  wp_enqueue_style('dustrial-visual-composer', DUSTRIAL_PLG_URL . 'assets/admin/visual-composer.css' , array(), '' );
  wp_enqueue_style('dustrial-admin-style', DUSTRIAL_PLG_URL . 'assets/admin/dustrial-admin-style.css' , array(), '' );
  wp_enqueue_style('dustrial-flaticon', DUSTRIAL_PLG_URL . '/assets/css/flaticon.css');
}

/**  shortcode.
--------------------------------------------------------------------------------------------------- */
require_once DUSTRIAL_PLG_DIR . '/shortcodes/xtl-shortcode-action.php';

/*------------------------------------------------------------------------------------------------------------------*/
/* Dustrial Demo Import
/*------------------------------------------------------------------------------------------------------------------*/ 

require_once DUSTRIAL_PLG_DIR . '/demo-importer/demo-import.php';
© 2025 XylotrechusZ