Submit
Path:
~
/
home
/
getwphos
/
public_html
/
almajd
/
wp-content
/
themes
/
modarch
/
framework
/
classes
/
File Content:
admin.php
<?php // Do not allow directly accessing this file. if ( ! defined( 'ABSPATH' ) ) { exit( 'Direct script access denied.' ); } class Modarch_Admin { public function __construct(){ $this->load_config(); add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts') ); add_action( 'customize_controls_enqueue_scripts', array( $this, 'customize_scripts') ); } private function load_config(){ require_once get_theme_file_path('/framework/configs/options.php'); require_once get_theme_file_path('/framework/configs/metaboxes.php'); } public function admin_scripts( ){ $ext = defined('WP_DEBUG') && WP_DEBUG ? '' : '.min'; $theme_version = defined('WP_DEBUG') && WP_DEBUG ? time() : MODARCH_THEME_VERSION; wp_enqueue_style('modarch-admin-css', get_theme_file_uri( '/assets/css/admin'.$ext.'.css' ), null, $theme_version ); $body_font_family = modarch_get_theme_mod('body_font_family'); if(!empty($body_font_family)){ wp_add_inline_style('modarch-admin-css', '.block-editor .editor-styles-wrapper .editor-block-list__block{ font-family: '.$body_font_family.' }'); } } public function customize_scripts(){ $ext = defined('WP_DEBUG') && WP_DEBUG ? '' : '.min'; $theme_version = defined('WP_DEBUG') && WP_DEBUG ? time() : MODARCH_THEME_VERSION; $dependency = array( 'jquery', 'customize-base', 'customize-controls', ); wp_enqueue_script( 'modarch-customize-admin', get_theme_file_uri('/assets/js/customizer'.$ext.'.js'), $dependency, $theme_version, true ); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
admin.php
1668 bytes
0644
ajax-manager.php
9909 bytes
0644
breadcrumbs.php
53955 bytes
0644
N4ST4R_ID | Naxtarrr