Moved CSS out to its own file for UserFlag
This commit is contained in:
parent
b16cabc3bc
commit
385573f174
@ -138,12 +138,8 @@ class UserFlagPlugin extends Plugin
|
|||||||
|
|
||||||
function onEndShowStatusNetStyles($action)
|
function onEndShowStatusNetStyles($action)
|
||||||
{
|
{
|
||||||
$action->elementStart('style', array('type' => 'text/css'));
|
$action->cssLink(common_path('plugins/UserFlag/userflag.css'),
|
||||||
$action->raw('.entity_flag input, .entity_flag p {'.
|
null, 'screen, projection, tv');
|
||||||
' background:url('.common_path('plugins/UserFlag/icon_flag.gif').') 5px 5px no-repeat;'.
|
|
||||||
' }');
|
|
||||||
$action->elementEnd('style');
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
plugins/UserFlag/userflag.css
Normal file
4
plugins/UserFlag/userflag.css
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
.entity_flag input.submit,
|
||||||
|
.entity_flag p {
|
||||||
|
background:url(icon_flag.gif) 5px 5px no-repeat;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user