]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Selector to allow styles when a user is logged in.
authorSarven Capadisli <csarven@controlyourself.ca>
Wed, 1 Apr 2009 01:03:00 +0000 (01:03 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Wed, 1 Apr 2009 01:03:00 +0000 (01:03 +0000)
lib/action.php

index f0baa062c2c0c7290cb987d28886b35fa4f64260..5d0d5b7584cdcdbb1f01b931e5dc0984953ba4d5 100644 (file)
@@ -326,7 +326,9 @@ class Action extends HTMLOutputter // lawsuit
      */
     function showBody()
     {
-        $this->elementStart('body', array('id' => $this->trimmed('action')));
+        $this->elementStart('body', (common_current_user()) ? array('id' => $this->trimmed('action'),
+                                                                    'class' => 'user_in')
+                                                            : array('id' => $this->trimmed('action')));
         $this->elementStart('div', array('id' => 'wrap'));
         if (Event::handle('StartShowHeader', array($this))) {
             $this->showHeader();