Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
home
/
getwphos
/
www
/
alliedchimneyny
/
wp-content
/
themes
/
buildgo
/
inc
/
admin
/
File Content:
theme-page.php
<?php if (!defined('ABSPATH')) { die; } // Cannot access directly. /** * Theme Admin Pages */ if (!class_exists('BuildGo_Admin')) { class BuildGo_Admin { private static $instance = null; public static function init() { if (is_null(self::$instance)) { self::$instance = new self(); } return self::$instance; } public function __construct() { add_action('admin_menu', array($this, 'buildgo_admin_page'), 1); add_action('admin_enqueue_scripts', array($this, 'buildgo_theme_page_assets')); } public function buildgo_admin_page() { add_menu_page( esc_html__('BuildGo', 'buildgo'), esc_html__('BuildGo', 'buildgo'), 'manage_options', 'buildgo', array( $this, 'buildgo_theme_welcome' ), get_theme_file_uri('inc/admin/assets/img/icon.svg'), 2 ); add_submenu_page( 'buildgo', esc_html__('Welcome', 'buildgo'), esc_html__('Welcome', 'buildgo'), 'manage_options', 'buildgo', array($this, 'buildgo_theme_welcome'), ); } public function buildgo_theme_welcome() { get_template_part('inc/admin/' . 'welcome'); } public function buildgo_theme_page_assets() { wp_enqueue_style('buildgo-admin', get_theme_file_uri('inc/admin/assets/css/admin.css'), array(), BUILDGO_VERSION, 'all'); } } BuildGo_Admin::init(); }
Submit
FILE
FOLDER
Name
Size
Permission
Action
assets
---
0755
theme-page.php
1554 bytes
0644
welcome.php
1985 bytes
0644
N4ST4R_ID | Naxtarrr