]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Moved CSS out to its own file for UserFlag
authorSarven Capadisli <csarven@status.net>
Thu, 26 Nov 2009 13:03:01 +0000 (13:03 +0000)
committerSarven Capadisli <csarven@status.net>
Thu, 26 Nov 2009 13:03:01 +0000 (13:03 +0000)
plugins/UserFlag/UserFlagPlugin.php
plugins/UserFlag/userflag.css [new file with mode: 0644]

index 1982028474ab01541d2d513460d4f18926d7cc0b..1c58a6916ea5dc3a8a86639c08021970428ffa5b 100644 (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;
     }
 
diff --git a/plugins/UserFlag/userflag.css b/plugins/UserFlag/userflag.css
new file mode 100644 (file)
index 0000000..98da24c
--- /dev/null
@@ -0,0 +1,4 @@
+.entity_flag input.submit,
+.entity_flag p {
+background:url(icon_flag.gif) 5px 5px no-repeat;
+}