From: Sarven Capadisli Date: Wed, 1 Apr 2009 01:03:00 +0000 (+0000) Subject: Selector to allow styles when a user is logged in. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=783d292739886811ab41215c614940d24214358f;p=quix0rs-gnu-social.git Selector to allow styles when a user is logged in. --- diff --git a/lib/action.php b/lib/action.php index 975c2bfcb8..f9f3c35d97 100644 --- a/lib/action.php +++ b/lib/action.php @@ -299,7 +299,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();