📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 10:25:41
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
inc
/
admin
✏️
Editing: admin-page.php
<?php /** * The Berich_Admin_Page base class */ if( !defined( 'ABSPATH' ) ) exit; class Berich_Admin_Page extends Berich_Base { public $parent = null; public $capability = 'manage_options'; public $icon = 'dashicons-art'; public $position; public function __construct() { $priority = -1; if ( isset( $this->parent ) && $this->parent ) { $priority = intval( $this->position ); } $this->position = 2; $this->add_action( 'admin_menu', 'register_page', $priority ); if( !isset( $_GET['page'] ) || empty( $_GET['page'] ) || ! $this->id === sanitize_text_field($_GET['page']) ) { return; } } public function register_page() { if( ! $this->parent ) { add_menu_page( $this->page_title, $this->menu_title, $this->capability, $this->id, array( $this, 'display' ), get_template_directory_uri() . '/inc/admin/assets/img/icon.png', $this->position ); } else { add_submenu_page( $this->parent, $this->page_title, $this->menu_title, $this->capability, $this->id, array( $this, 'display' ) ); } } public function save() { } public function display() { echo ''; } }
💾 Save Changes
❌ Cancel