| Server IP : 31.214.179.3 / Your IP : 216.73.217.99 Web Server : Apache System : Linux hostingsrv125.dondominio.com 6.12.96+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.96-1 (2026-07-20) x86_64 User : ( 1156851) PHP Version : 8.5.8 Disable Function : system,passthru,popen,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,exec,ini_alter,show_source,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,mail,eval MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /hosting/www/thermatron.es/public/wp-content/themes/betheme/functions/admin/ |
Upload File : |
<?php
if( ! defined( 'ABSPATH' ) ){
exit; // Exit if accessed directly
}
class Mfn_Tools extends Mfn_API {
/**
* Mfn_Tools constructor
*/
public function __construct(){
parent::__construct();
// It runs after the basic admin panel menu structure is in place.
add_action( 'admin_menu', array( $this, 'init' ), 8 );
}
/**
* Add admin page & enqueue styles
*/
public function init(){
if( WHITE_LABEL ){
return;
}
$title = __( 'Tools','mfn-opts' );
$page = add_submenu_page(
apply_filters('betheme_dynamic_slug', 'betheme'),
$title,
$title,
'edit_theme_options',
apply_filters('betheme_slug', 'be').'-tools',
array( $this, 'template' )
);
// Fires when styles are printed for a specific admin page based on $hook_suffix.
add_action( 'admin_print_styles-'. $page, array( $this, 'enqueue' ) );
}
/**
* Status template
*/
public function template(){
include_once get_theme_file_path('/functions/admin/templates/tools.php');
}
/**
* Enqueue styles and scripts
*/
public function enqueue(){
wp_enqueue_style( 'mfn-dashboard', get_theme_file_uri('/functions/admin/assets/dashboard.css'), array(), MFN_THEME_VERSION );
wp_enqueue_script('mfn-dashboard', get_theme_file_uri('/functions/admin/assets/dashboard.js'), false, MFN_THEME_VERSION, true);
}
}
$mfn_tools = new Mfn_Tools();