]> git.mxchange.org Git - friendica.git/commitdiff
[Suggestion] Move New User Tip Link (#5342)
authorAndreas Neustifter <andreas.neustifter@gmail.com>
Mon, 9 Jul 2018 22:20:57 +0000 (00:20 +0200)
committerHypolite Petovan <mrpetovan@eml.cc>
Mon, 9 Jul 2018 22:20:57 +0000 (18:20 -0400)
* Move new member tips to navigation bar.

The link looks so forlorn when its just somewhere in there. Put it in the nav bar.

* Style new member hints link propery.

* Make changes requested by @MrPetovan.

mod/profile.php
src/Model/Profile.php
view/global.css
view/theme/frio/css/style.css
view/theme/vier/style.css

index 8d156cbd64f9681b1b5b7d36d1339edcaa38aac8..93172397b276cd1a2165c30a2b85c8ae8dfaaa60 100644 (file)
@@ -191,10 +191,6 @@ function profile_content(App $a, $update = 0)
 
                $o .= Widget::commonFriendsVisitor($a->profile['profile_uid']);
 
-               if (x($_SESSION, 'new_member') && $is_owner) {
-                       $o .= '<div id="newmember-tips"><a href="newmember"><b>' . L10n::t('Tips for New Members') . '</b></a></div>';
-               }
-
                $commpage = $a->profile['page-flags'] == PAGE_COMMUNITY;
                $commvisitor = $commpage && $remote_contact;
 
index 94d8de572c388c4e19ba2d1ba9c4702bb4a387db..c006f184001e803c921a3a44108183e5acb78a68 100644 (file)
@@ -947,6 +947,16 @@ class Profile
                        ];
                }
 
+               if (!empty($_SESSION['new_member']) && $is_owner) {
+                       $tabs[] = [
+                               'label' => L10n::t('Tips for New Members'),
+                               'url'   => System::baseUrl() . '/newmember',
+                               'sel'   => false,
+                               'title' => L10n::t('Tips for New Members'),
+                               'id'    => 'newmember-tab',
+                       ];
+               }
+
                if (!$is_owner && empty($a->profile['hide-friends'])) {
                        $tabs[] = [
                                'label' => L10n::t('Contacts'),
index 0e6a36e2c61ad0a9e49eb65fc4a482f40b9a29d5..4a4a169aa744e0aa93752d9ba1d6b5511f90364e 100644 (file)
@@ -207,10 +207,8 @@ blockquote.shared_content {
 }
 
 #newmember-tips {
+  margin-top: -3px;
   font-size: 1.2em;
-  float: right;
-  margin-top: -32px;
-  padding-right: 10px;
 }
 
 /* headers */
index ed64ba638cc7108525a836a2e53a23bc40d7a1d2..9f5fe717660c0f23f954d78a9c78d3d18012b7ff 100644 (file)
@@ -972,6 +972,10 @@ nav.navbar a, nav.navbar .btn-link {
     padding: 2px 10px;
 }
 
+#newmember-tab > a {
+  font-size: 1.2em;
+  font-weight: 800;
+}
 
 /*
  * Aside
index 475fda035e805f07d45452c6931719bde46f6f1d..c70af646c7ad0fc51d8aae286b8e8224e2ba9d5c 100644 (file)
@@ -2340,6 +2340,11 @@ ul.tabs li .active, span.pager_current a {
   text-decoration: none;
 }
 
+#newmember-tab > a {
+  font-size: 1.2em;
+  font-weight: 800;
+}
+
 /**
  * Form fields
  */