X7ROOT File Manager
Current Path:
/home/hamdjcne/public_html/wp-content/themes/hub/liquid/admin
home
/
hamdjcne
/
public_html
/
wp-content
/
themes
/
hub
/
liquid
/
admin
/
ðŸ“
..
📄
index.php
(26 B)
📄
liquid-admin-about.php
(1.02 KB)
📄
liquid-admin-changelog.php
(887 B)
📄
liquid-admin-customizer.php
(878 B)
📄
liquid-admin-dashboard.php
(903 B)
📄
liquid-admin-elementor.php
(1.71 KB)
📄
liquid-admin-init.php
(16.95 KB)
📄
liquid-admin-page.php
(1.96 KB)
📄
liquid-admin-performance.php
(1017 B)
📄
liquid-admin-plugins.php
(903 B)
📄
liquid-admin-reset.php
(4.43 KB)
ðŸ“
updater
ðŸ“
views
Editing: liquid-admin-page.php
<?php /** * Liquid Themes Theme Framework * The Liquid_Admin_Page base class */ if( !defined( 'ABSPATH' ) ) exit; // Exit if accessed directly class Liquid_Admin_Page extends Liquid_Base { /** * The slug name for the parent menu. * @var string */ public $parent = null; /** * The capability required for this menu to be displayed to the user. * @var string */ public $capability = 'manage_options'; /** * The icon for this menu. * * @var string */ public $icon = 'dashicons-art'; /** * The position in the menu order this menu should appear. * * @var string */ public $position; /** * [__construct description] * @method __construct */ 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 === $_GET['page'] ) { return; } if( method_exists( $this, 'save' ) ) { $this->add_action( 'admin_init', 'save' ); } } /** * [register_page description] * @method register_page * @return [type] [description] */ 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() . '/liquid/assets/img/liquid-menu-logo.png', $this->position ); } else { add_submenu_page( $this->parent, $this->page_title, $this->menu_title, $this->capability, $this->id, array( $this, 'display' ) ); } } /** * [display description] * @method display * @return [type] [description] */ public function display() { echo 'default'; } }
Upload File
Create Folder