References Issue #280

* Issue 280: Allow every theme to utilize a "style_user.css" file
     that gets loaded on top of the frontend (or backend, if in admin/
     subdirectory) theme. This file can be used for customized CSS
     of a blog-admin which carries over to future Serendipity updates
This commit is contained in:
Garvin Hicking 2015-02-11 14:57:55 +01:00
parent b066b233bf
commit f9a7e0f2a6
2 changed files with 13 additions and 0 deletions

View File

@ -3,6 +3,11 @@
Version 2.0.1 ()
------------------------------------------------------------------------
* Issue 280: Allow every theme to utilize a "style_user.css" file
that gets loaded on top of the frontend (or backend, if in admin/
subdirectory) theme. This file can be used for customized CSS
of a blog-admin which carries over to future Serendipity updates
* Issue 299: Do not display dashboard for users with no permission
to perform actions in the backend (frontend-users)

View File

@ -20,11 +20,13 @@ if (!isset($css_mode)) {
}
}
$usercss_file = 'style_user.css';
switch($css_mode) {
case 'serendipity.css':
default:
$css_hook = 'css';
$css_file = 'style.css';
$css_userfile = 'style_user.css';
break;
case 'serendipity_admin.css':
@ -32,6 +34,7 @@ switch($css_mode) {
@define('IN_serendipity_admin', true);
$css_hook = 'css_backend';
$css_file = 'admin/style.css';
$css_userfile = 'admin/style_user.css';
break;
}
@ -83,6 +86,11 @@ $out .= serendipity_printStylesheet(
serendipity_getTemplateFile($css_file, '')
);
$out .= serendipity_printStylesheet(
serendipity_getTemplateFile($css_userfile, 'serendipityPath'),
serendipity_getTemplateFile($css_userfile, '')
);
serendipity_plugin_api::hook_event($css_hook, $out);
echo $out;