Moved CSS out to its own file for UserFlag

This commit is contained in:
Sarven Capadisli 2009-11-26 13:03:01 +00:00
parent b16cabc3bc
commit 385573f174
2 changed files with 6 additions and 6 deletions

View File

@ -138,12 +138,8 @@ class UserFlagPlugin extends Plugin
function onEndShowStatusNetStyles($action)
{
$action->elementStart('style', array('type' => 'text/css'));
$action->raw('.entity_flag input, .entity_flag p {'.
' background:url('.common_path('plugins/UserFlag/icon_flag.gif').') 5px 5px no-repeat;'.
' }');
$action->elementEnd('style');
$action->cssLink(common_path('plugins/UserFlag/userflag.css'),
null, 'screen, projection, tv');
return true;
}

View File

@ -0,0 +1,4 @@
.entity_flag input.submit,
.entity_flag p {
background:url(icon_flag.gif) 5px 5px no-repeat;
}