Hackfut Security File Manager
Current Path:
/home/haielekt/pasangac.com/wp-content/plugins/Ghylrock
home
/
haielekt
/
pasangac.com
/
wp-content
/
plugins
/
Ghylrock
/
📁
..
📄
.ftpquota
(13 B)
📁
.vscode
📁
admin
📁
includes
📁
languages
📁
public
📁
script-editor
📄
script-editor.php
(2.49 KB)
📁
scripts
📁
styles
📄
supreme-modules-pro-for-divi.php
(5.6 KB)
📄
uninstall.php
(1.46 KB)
📄
update.php
(281 B)
📄
wpml-config.xml
(17.91 KB)
Editing: supreme-modules-pro-for-divi.php
<?php /** * Plugin Name: Ghylrock Divi Pro * Plugin URI: https://ghylrock.com * Description: Here is where the Magic happens! * Version: 1.0 * Author: Ghylrock * Author URI: https://ghylrock.com * License: GPL2 * License URI: https://www.gnu.org/licenses/gpl-2.0.html * Text Domain: dsm-supreme-modules-pro-for-divi * Domain Path: /languages */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if ( ! defined( 'DSM_PRO_VERSION' ) ) { define( 'DSM_PRO_VERSION', '4.7.35' ); } /** * The code that runs during plugin activation. * This action is documented in includes/class-dsm-supreme-modules-pro-for-divi-activator.php */ function activate_dsm_supreme_modules_pro_for_divi() { require_once plugin_dir_path( __FILE__ ) . 'includes/class-dsm-supreme-modules-pro-for-divi-activator.php'; Dsm_Supreme_Modules_Pro_For_Divi_Activator::activate(); } /** * The code that runs during plugin deactivation. * This action is documented in includes/class-dsm-supreme-modules-pro-for-divi-deactivator.php */ function deactivate_dsm_supreme_modules_pro_for_divi() { require_once plugin_dir_path( __FILE__ ) . 'includes/class-dsm-supreme-modules-pro-for-divi-deactivator.php'; Dsm_Supreme_Modules_Pro_For_Divi_Deactivator::deactivate(); } register_activation_hook( __FILE__, 'activate_dsm_supreme_modules_pro_for_divi' ); register_deactivation_hook( __FILE__, 'deactivate_dsm_supreme_modules_pro_for_divi' ); /** * The core plugin class that is used to define internationalization, * admin-specific hooks, and public-facing site hooks. */ require plugin_dir_path( __FILE__ ) . 'includes/class-dsm-supreme-modules-pro-for-divi.php'; /** * Begins execution of the plugin. * * Since everything within the plugin is registered via hooks, * then kicking off the plugin from this point in the file does * not affect the page life cycle. * * @since 1.0.0 */ function run_dsm_supreme_modules_pro_for_divi() { $plugin = new Dsm_Supreme_Modules_Pro_For_Divi(); $plugin->run(); //Ghylrock Script function jav(){ wp_enqueue_script( 'custom-ghyl', plugin_dir_url( __FILE__ ) . 'public/js/javascript.js' , array('jquery'), DSM_PRO_VERSION, 'all' ); } add_action( 'wp_footer', 'jav' ); //Ghylrock CSS wp_enqueue_style( 'ghylrock', plugin_dir_url( __FILE__ ) . 'public/css/ghylrock.css', array(), DSM_PRO_VERSION, 'all' ); // function editor(){ // wp_enqueue_script( 'loader', plugin_dir_url( __FILE__ ) . 'script-editor/min/vs/loader.js' , array('jquery'), DSM_PRO_VERSION, 'all' ); // wp_enqueue_script( 'editor-main-nls', plugin_dir_url( __FILE__ ) . 'script-editor/min/vs/editor/editor.main.nls.js' , array('jquery'), DSM_PRO_VERSION, 'all' ); // wp_enqueue_script( 'editor-main', plugin_dir_url( __FILE__ ) . 'script-editor/min/vs/editor/editor.main.js' , array('jquery'), DSM_PRO_VERSION, 'all' ); // } // add_action( 'wp_body', 'editor' ); } if ( version_compare( PHP_VERSION, '5.6', '<' ) ) { /** * Display PHP version error * * @since 1.0.0 */ function dsm_admin_notice__php_version_error() { echo sprintf( '<div class="notice notice-error"><p>Goodness! Either you do not have Divi installed or your PHP version is either too old or not recommended to use Divi Supreme! We are not going to load anything on your WordPress unless you update your PHP. Do you know by using Divi Supreme, you can create even more stunning and amazing site with it? Learn more about the WordPress requirements <a href="%1$s" target="_blank">here</a>. Current PHP version is: %2$s Recommended PHP version: 7 and above.</p></div>', esc_url( 'https://wordpress.org/about/requirements/' ), PHP_VERSION ); } add_action( 'admin_notices', 'dsm_admin_notice__php_version_error' ); return; } else { define( 'DSM_PRO_APP_API_URL', 'https://ghylrock.com' ); define( 'DSM_PRODUCT_ID', 'DSM-PRO' ); define( 'DSM_PRO_INSTANCE', str_replace( array( 'https://', 'http://' ), '', trim( network_site_url(), '/' ) ) ); add_action('wp_head','css_mod'); function css_mod(){ include plugin_dir_path( __FILE__ ) . 'public/style.php'; } run_dsm_supreme_modules_pro_for_divi(); function remove_footer_admin () { echo '<span id="footer-thankyou">Developed and Improved by <a href="https://ghylrock.com" target="_blank">Ghylrock Website Development</a></span>'; } add_filter('admin_footer_text', 'remove_footer_admin'); function my_footer_shh() { remove_filter( 'update_footer', 'core_update_footer' ); } add_action( 'admin_menu', 'my_footer_shh' ); if ( ! function_exists( 'et_get_footer_credits' ) ) : function et_get_footer_credits() { $original_footer_credits = et_get_original_footer_credits(); $disable_custom_credits = et_get_option( 'disable_custom_footer_credits', false ); if ( $disable_custom_credits ) { return ''; } $credits_format = '<%2$s id="footer-info">%1$s</%2$s>'; $credits_format2 = '<%2$s id="footer-info">%1$s<div class="ghyl">Developed by <a href="https://ghylrock.com" title="Professional Web Developer" class="ghyl-link">Ghylrock</a></div></%2$s>'; $footer_credits = et_get_option( 'custom_footer_credits', '' ); if ( '' === trim( $footer_credits ) ) { return et_get_safe_localization( sprintf( $credits_format, $original_footer_credits, 'div' ) ); } return et_get_safe_localization( sprintf( $credits_format2, $footer_credits, 'div' ) ); } endif; if ( ! function_exists( 'et_get_original_footer_credits' ) ) : function et_get_original_footer_credits() { return sprintf( __( 'Developed by %1$s', 'Divi' ), '<a href="https://ghylrock.com" title="Professional Web Developer">Ghylrock</a>' ); } endif; }
Upload File
Create Folder