]> git.mxchange.org Git - friendica.git/commitdiff
nav: fix intro notification url, fix "See all notifications" url and make it translatable
authorFabio Comuni <fabrix.xm@gmail.com>
Sun, 22 Jan 2012 18:27:56 +0000 (19:27 +0100)
committerFabio Comuni <fabrix.xm@gmail.com>
Sun, 22 Jan 2012 18:27:56 +0000 (19:27 +0100)
include/nav.php
mod/ping.php
view/nav.tpl
view/theme/testbubble/nav.tpl

index 4c75a495b3925d1ee0fe0153e5e983535d93a675..36a3edd2a2ce1dd11be7cbeb89a683655288c5bb 100755 (executable)
@@ -116,6 +116,7 @@ function nav(&$a) {
                if($_SESSION['page_flags'] == PAGE_NORMAL) {
                        $nav['introductions'] = array('notifications/intros',   t('Introductions'), "", t('Friend Requests'));
                        $nav['notifications'] = array('notifications',  t('Notifications'), "", t('Notifications'));
+                       $nav['notifications_all']=array('notifications/network', t('See all notifications', "", ""));
 
                }
 
index 35f6c53aef532069d59f152bb8bc3dfc5ac95556..db68332bd049c7af941ae5c754ff999e3ffaed02 100755 (executable)
@@ -145,7 +145,7 @@ function ping_init(&$a) {
                echo '  <notif count="'.$tot.'">';
                if ($intro>0){
                        foreach ($intros as $i) { 
-                               echo xmlize( $a->get_baseurl().'/notifications/'.$i['id'], $i['name'], $i['url'], $i['photo'], relative_date($i['datetime']), t("{0} wants to be your friend") );
+                               echo xmlize( $a->get_baseurl().'/notifications/intros/'.$i['id'], $i['name'], $i['url'], $i['photo'], relative_date($i['datetime']), t("{0} wants to be your friend") );
                        };
                }
                if ($mail>0){
index d9255d86c70493de44739fe47c29fbddd3ae5577..9831260b308bbc2f844c61c9847e3847010e5343 100755 (executable)
@@ -43,7 +43,7 @@
                        <li  id="nav-notifications-linkmenu" class="nav-menu-icon"><a href="$nav.notifications.0" rel="#nav-notifications-menu" title="$nav.notifications.1"><span class="icon s22 notify">$nav.notifications.1</span></a>
                                <span id="notify-update" class="nav-notify"></span>
                                <ul id="nav-notifications-menu" class="menu-popup">
-                                       <li id="nav-notifications-see-all"><a href="/notifications/network">See all notifications</a></li>
+                                       <li id="nav-notifications-see-all"><a href="$nav.notifications_all.0">$nav.notifications_all.1</a></li>
                                        <li class="empty">$emptynotifications</li>
                                </ul>
                        </li>           
index c7d61682632807cbe51e2c61b6068eb25b262526..bb4da22cb3f3729b75f0099afe6ef423e55d432d 100755 (executable)
@@ -9,7 +9,7 @@
                {{ if $nav.notifications }}<a rel="#nav-notifications-menu" id="intro-update" class="nav-ajax-update" href="$nav.notifications.0" title="$nav.notifications.1"></a>{{ endif }}
                {{ if $nav.messages }}<a rel="#nav-notifications-menu" id="mail-update" class="nav-ajax-update" href="$nav.messages.0" title="$nav.messages.1"></a>{{ endif }}
                <ul id="nav-notifications-menu" class="menu-popup">
-                       <li id="nav-notifications-see-all"><a href="/notifications/network">See all notifications</a></li>
+                       <li id="nav-notifications-see-all"><a href="$nav.notifications_all.0">$nav.notifications_all.1</a></li>
                        <li class="empty">$emptynotifications</li>
                </ul>
        </div>