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:
parent
b066b233bf
commit
f9a7e0f2a6
@ -3,6 +3,11 @@
|
|||||||
Version 2.0.1 ()
|
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
|
* Issue 299: Do not display dashboard for users with no permission
|
||||||
to perform actions in the backend (frontend-users)
|
to perform actions in the backend (frontend-users)
|
||||||
|
|
||||||
|
@ -20,11 +20,13 @@ if (!isset($css_mode)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$usercss_file = 'style_user.css';
|
||||||
switch($css_mode) {
|
switch($css_mode) {
|
||||||
case 'serendipity.css':
|
case 'serendipity.css':
|
||||||
default:
|
default:
|
||||||
$css_hook = 'css';
|
$css_hook = 'css';
|
||||||
$css_file = 'style.css';
|
$css_file = 'style.css';
|
||||||
|
$css_userfile = 'style_user.css';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'serendipity_admin.css':
|
case 'serendipity_admin.css':
|
||||||
@ -32,6 +34,7 @@ switch($css_mode) {
|
|||||||
@define('IN_serendipity_admin', true);
|
@define('IN_serendipity_admin', true);
|
||||||
$css_hook = 'css_backend';
|
$css_hook = 'css_backend';
|
||||||
$css_file = 'admin/style.css';
|
$css_file = 'admin/style.css';
|
||||||
|
$css_userfile = 'admin/style_user.css';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,6 +86,11 @@ $out .= serendipity_printStylesheet(
|
|||||||
serendipity_getTemplateFile($css_file, '')
|
serendipity_getTemplateFile($css_file, '')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$out .= serendipity_printStylesheet(
|
||||||
|
serendipity_getTemplateFile($css_userfile, 'serendipityPath'),
|
||||||
|
serendipity_getTemplateFile($css_userfile, '')
|
||||||
|
);
|
||||||
|
|
||||||
serendipity_plugin_api::hook_event($css_hook, $out);
|
serendipity_plugin_api::hook_event($css_hook, $out);
|
||||||
|
|
||||||
echo $out;
|
echo $out;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user