| Server IP : 145.239.37.162 / Your IP : 216.73.217.146 Web Server : Apache System : Linux webm003.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaa ( 38250) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaa/www_old/wp-content/themes/betheme/functions/admin/ |
Upload File : |
<?php
if( ! defined( 'ABSPATH' ) ){
exit; // Exit if accessed directly
}
class Mfn_Support extends Mfn_API {
/**
* Mfn_Support 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' ), 15 );
}
/**
* Add admin page & enqueue styles
*/
public function init(){
$title = __( 'Manual & Support','mfn-opts' );
$this->page = add_submenu_page(
'betheme',
$title,
$title,
'edit_theme_options',
'be-support',
array( $this, 'template' )
);
// Fires when styles are printed for a specific admin page based on $hook_suffix.
add_action( 'admin_print_styles-'. $this->page, array( $this, 'enqueue' ) );
}
/**
* Status template
*/
public function template(){
if( WHITE_LABEL ){
include_once get_theme_file_path('/functions/admin/templates/parts/white-label.php');
} else {
include_once get_theme_file_path('/functions/admin/templates/support.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_style( 'mfn-magnific-popup', get_theme_file_uri('/functions/admin/assets/plugins/magnific-popup/magnific-popup.css'), array(), MFN_THEME_VERSION );
wp_enqueue_script( 'mfn-dashboard.js', get_theme_file_uri('/functions/admin/assets/dashboard.js'), false, MFN_THEME_VERSION, true );
wp_enqueue_script( 'mfn-magnific-popup', get_theme_file_uri('/functions/admin/assets/plugins/magnific-popup/magnific-popup.min.js'), false, MFN_THEME_VERSION, true );
}
}
$mfn_support = new Mfn_Support();