version; $ext = $config->debug ? "js" : "min.js"; // Search form $searchForm = $user->hasPermission('page-edit') ? $modules->get('ProcessPageSearch')->renderSearchForm() : ''; // Admin Theme colors $adminTheme->colors = $adminTheme->colors ? $adminTheme->colors : "main"; $defaultColors = "styles/" . $adminTheme->colors . ".css"; $customColors = "AdminTheme/$adminTheme/styles/" . $adminTheme->colors . ".css"; $colorFile = file_exists($config->paths->adminTemplates . $defaultColors) ? $config->urls->adminTemplates . $defaultColors : $config->urls->siteModules . $customColors; // Styles $config->styles->prepend($colorFile . "?v=" . $version); $config->styles->prepend($config->urls->root . "wire/templates-admin/styles/AdminTheme.css?v=$version"); $config->styles->append($config->urls->root . "wire/templates-admin/styles/font-awesome/css/font-awesome.min.css?v=$version"); // Scripts $config->scripts->append($config->urls->root . "wire/templates-admin/scripts/inputfields.$ext?v=$version"); $config->scripts->append($config->urls->root . "wire/templates-admin/scripts/main.$ext?v=$version"); $config->scripts->append($config->urls->adminTemplates . "scripts/main.$ext?v=$version"); require_once(dirname(__FILE__) . "/AdminThemeRenoHelpers.php"); $helpers = $this->wire(new AdminThemeRenoHelpers()); $extras = $adminTheme->getExtraMarkup(); ?>