From 385573f174a66c18c6879ee9228241b842416f0d Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Thu, 26 Nov 2009 13:03:01 +0000 Subject: [PATCH] Moved CSS out to its own file for UserFlag --- plugins/UserFlag/UserFlagPlugin.php | 8 ++------ plugins/UserFlag/userflag.css | 4 ++++ 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 plugins/UserFlag/userflag.css diff --git a/plugins/UserFlag/UserFlagPlugin.php b/plugins/UserFlag/UserFlagPlugin.php index 1982028474..1c58a6916e 100644 --- a/plugins/UserFlag/UserFlagPlugin.php +++ b/plugins/UserFlag/UserFlagPlugin.php @@ -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; } diff --git a/plugins/UserFlag/userflag.css b/plugins/UserFlag/userflag.css new file mode 100644 index 0000000000..98da24cc94 --- /dev/null +++ b/plugins/UserFlag/userflag.css @@ -0,0 +1,4 @@ +.entity_flag input.submit, +.entity_flag p { +background:url(icon_flag.gif) 5px 5px no-repeat; +} -- 2.39.5