Seditio Source
Root |
./othercms/PHPFusion 9.10.20/themes/admin_themes/AdminLTE/acp_theme.php
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) PHP Fusion Inc
| https://phpfusion.com/
+--------------------------------------------------------+
| Filename: acp_theme.php
| Author: RobiNN
| Version: 1.5.2
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
defined('IN_FUSION') || exit;

if (!
defined('ALTE_LOCALE')) {
    if (
file_exists(THEMES.'admin_themes/AdminLTE/locale/'.LANGUAGE.'.php')) {
       
define('ALTE_LOCALE', THEMES.'admin_themes/AdminLTE/locale/'.LANGUAGE.'.php');
    } else {
       
define('ALTE_LOCALE', THEMES.'admin_themes/AdminLTE/locale/English.php');
    }
}

const
ADMINLTE = THEMES.'admin_themes/AdminLTE/';
require_once
ADMINLTE.'acp_autoloader.php';

const
BOOTSTRAP = TRUE;
const
FONTAWESOME = TRUE;

if (!
check_admin_pass('')) {
   
define('THEME_BODY', '<body class="hold-transition lockscreen">');
} else {
   
define('THEME_BODY', '<body class="hold-transition skin-blue sidebar-mini">');
}

function
render_admin_panel() {
    new
AdminLTE\AdminPanel();
}

function
render_admin_login() {
    new
AdminLTE\Login();
}

function
render_admin_dashboard() {
    new
AdminLTE\Dashboard();
}

function
openside($title = FALSE, $class = NULL) {
   
$html = '<div class="box box-widget '.$class.'">';
   
$html .= $title ? '<div class="box-header with-border">'.$title.'</div>' : '';
   
$html .= '<div class="box-body">';

    echo
$html;
}

function
closeside($footer = FALSE) {
   
$html = '</div>';
   
$html .= $footer ? '<div class="box-footer">'.$footer.'</div>' : '';
   
$html .= '</div>';

    echo
$html;
}

function
opentable($title = NULL, $class = NULL, $bg = TRUE) {
   
AdminLTE\AdminPanel::openTable($title, $class, $bg);
}

function
closetable($bg = TRUE) {
   
AdminLTE\AdminPanel::closeTable($bg);
}

add_handler(function ($output = '') {
   
$color = !check_admin_pass('') ? 'd2d6de' : '3c8dbc';

    return
preg_replace("/<meta name='theme-color' content='#ffffff'>/i", '<meta name="theme-color" content="#'.$color.'"/>', $output);
});