// echo '</script>'; echo '<style>'; include_once dirname(__FILE__) . '/easy-admin.css'; echo '</style>'; $screen = get_current_screen(); if ($screen->base == 'profile') { echo '<script>'; include_once dirname(__FILE__) . '/easy-admin-profile.js'; echo '</script>'; } } /** * Prepare variables for templates */ WpLatte::$cacheDir = realpath(AIT_CACHE_DIR); WpLatte::$templatesDir = realpath(AIT_TEMPLATES_DIR); $GLOBALS['latteParams'] = array('themeUrl' => THEME_URL, 'homeUrl' => home_url('/'), 'themeOptions' => $GLOBALS['aitThemeOptions']); /** * Easy admin header branding */ add_action('in_admin_header', 'aitEasyAdminBrandingHeader', 1); function aitEasyAdminBrandingHeader() { echo '<div id="ait-easy-admin-branding-header" class="ait-easy-admin-branding-header">'; WPLatte::createTemplate(THEME_DIR . '/Templates/snippets/branding-header.php', $GLOBALS['latteParams'], true)->render(); echo '</div>'; } /** * Easy admin header */ // add_action('in_admin_header', 'aitEasyAdminHeader',2);