diff options
author | friendica <info@friendica.com> | 2014-02-08 00:48:19 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-02-08 00:48:19 -0800 |
commit | 97739920ebfa0d7b0db95c61187d5820c0939f14 (patch) | |
tree | 465e28dd9b4825d3de4e0802b4770fefcb2761ca /include | |
parent | ecac985e338b8b79e3768d3f1cf42e80f2ce8f90 (diff) | |
download | volse-hubzilla-97739920ebfa0d7b0db95c61187d5820c0939f14.tar.gz volse-hubzilla-97739920ebfa0d7b0db95c61187d5820c0939f14.tar.bz2 volse-hubzilla-97739920ebfa0d7b0db95c61187d5820c0939f14.zip |
create a new "subdued" CSS class for things that shouldn't be in your face unless you want them and intentionally hover over them. Typically this would be accomplished via an opacity or colour change, but themes are free to use other methods. Also changed the channel_tabs "chatroom" link to use the subdued class if no rooms have been created rather than a count of chatrooms. Themse should probably create a .subdued and .subdued:hover definition because we'll probably take most of the stuff which is now hardwired to use opacity by id and change it to use the class definition instead.
Diffstat (limited to 'include')
-rw-r--r-- | include/conversation.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/conversation.php b/include/conversation.php index 77c7bac70..16ac4e909 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1491,11 +1491,11 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){ require_once('include/chat.php'); $chats = chatroom_list($a->profile['profile_uid']); - + $subdued = ((count($chats)) ? '' : ' subdued'); $tabs[] = array( - 'label' => t('Chatrooms') . '(' . count($chats) . ')', + 'label' => t('Chatrooms'), 'url' => $a->get_baseurl() . '/chat/' . $nickname, - 'sel' => ((argv(0) == 'chat') ? 'active' : ''), + 'sel' => ((argv(0) == 'chat') ? 'active' . $subdued : '' . $subdued), 'title' => t('Chatrooms'), 'id' => 'chat-tab', ); |