]> git.mxchange.org Git - friendica.git/commitdiff
Improve naming, make widget collapsable
authorMichael <heluecht@pirati.ca>
Sat, 26 Sep 2020 14:13:14 +0000 (14:13 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 26 Sep 2020 14:13:14 +0000 (14:13 +0000)
src/Module/Conversation/Community.php
view/templates/widget/community_accounts.tpl

index 9a8869e4a113c52c0ec5074b38f6397c71854946..e46091bc3501075f786b524ba7bc4b7087163597 100644 (file)
@@ -117,11 +117,11 @@ class Community extends BaseModule
                        '$title'        => DI::l10n()->t('Accounts'),
                        '$content'      => self::$content,
                        '$accounttype'  => $parameters['accounttype'],
-                       '$all'          => DI::l10n()->t('All Accounts'),
-                       '$person'       => DI::l10n()->t('Personal Accounts'),
-                       '$organisation' => DI::l10n()->t('Organisation Accounts'),
-                       '$news'         => DI::l10n()->t('News Accounts'),
-                       '$community'    => DI::l10n()->t('Communities'),
+                       '$all'          => DI::l10n()->t('All'),
+                       '$person'       => DI::l10n()->t('Persons'),
+                       '$organisation' => DI::l10n()->t('Organisations'),
+                       '$news'         => DI::l10n()->t('News'),
+                       '$community'    => DI::l10n()->t('Forums'),
                ]);
 
                if (Feature::isEnabled(local_user(), 'trending_tags')) {
index 7044937657c08a765484970a2c77840ce95fd227..7af3c88a3ba694bbbaae8489ac4043b721749847 100644 (file)
@@ -1,6 +1,10 @@
-<div id="sidebar-community-accounts" class="widget">
+<span id="sidebar-community-accounts-inflated" class="widget fakelink" onclick="openCloseWidget('sidebar-community-accounts', 'sidebar-community-accounts-inflated');">
        <h3>{{$title}}</h3>
-
+</span>
+<div id="sidebar-community-accounts" class="widget">
+       <span class="fakelink" onclick="openCloseWidget('sidebar-community-accounts', 'sidebar-community-accounts-inflated');">
+               <h3>{{$title}}</h3>
+       </span>
        <ul class="sidebar-community-accounts-ul">
                <li role="menuitem" class="sidebar-community-accounts-li{{if !$accounttype}} selected{{/if}}"><a href="community/{{$content}}">{{$all}}</a></li>
                <li role="menuitem" class="sidebar-community-accounts-li{{if $accounttype == 'person'}} selected{{/if}}"><a href="community/{{$content}}/person">{{$person}}</a></li>
@@ -9,3 +13,6 @@
                <li role="menuitem" class="sidebar-community-accounts-li{{if $accounttype == 'community'}} selected{{/if}}"><a href="community/{{$content}}/community">{{$community}}</a></li>
        </ul>
 </div>
+<script>
+initWidget('sidebar-community-accounts', 'sidebar-community-accounts-inflated');
+</script>