librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1056] Profile navigation link fixes


From: Toby Inkster
Subject: [Librefm-commits] [1056] Profile navigation link fixes
Date: Thu, 30 Apr 2009 11:50:44 +0000

Revision: 1056
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1056
Author:   tobyink
Date:     2009-04-30 11:50:44 +0000 (Thu, 30 Apr 2009)
Log Message:
-----------
Profile navigation link fixes

Modified Paths:
--------------
    trunk/nixtape/templating.php
    trunk/nixtape/themes/librefm/templates/maxiprofile.tpl

Modified: trunk/nixtape/templating.php
===================================================================
--- trunk/nixtape/templating.php        2009-04-30 11:40:41 UTC (rev 1055)
+++ trunk/nixtape/templating.php        2009-04-30 11:50:44 UTC (rev 1056)
@@ -30,6 +30,11 @@
 
 $smarty->assign('base_url', $base_url);
 $smarty->assign('this_page', $_SERVER['REQUEST_URI']);
+$smarty->assign('this_page_absolute',
+        (empty($_SERVER['HTTPS']) ? 'http://' : 'http://') 
+       .(empty($_SERVER['HOST']) ? $_SERVER['SERVER_NAME'] : $_SERVER['HOST'])
+       .(($_SERVER['SERVER_PORT']==80) ? '' : (':'.$_SERVER['SERVER_PORT']))
+       . $_SERVER['REQUEST_URI']);
 
 if(isset($logged_in)) {
        $smarty->assign('logged_in', true);

Modified: trunk/nixtape/themes/librefm/templates/maxiprofile.tpl
===================================================================
--- trunk/nixtape/themes/librefm/templates/maxiprofile.tpl      2009-04-30 
11:40:41 UTC (rev 1055)
+++ trunk/nixtape/themes/librefm/templates/maxiprofile.tpl      2009-04-30 
11:50:44 UTC (rev 1056)
@@ -53,9 +53,8 @@
        </dl>
 
        <div style="text-align:right;clear:right;font-size:80%">
-               <!-- These shouldn't be hard-coded. Will fix soon. -->
-               <a rel="rdfs:seeAlso" 
href="{$base_url}/user/{$user}">profile</a>
-               {if $me->journal_rss} &middot; <a rel="rdfs:seeAlso" 
href="{$me->getURL('journal')|escape:'html':'UTF-8'}">journal</a>{/if}
+               <a{if $this_page_absolute != $me->getURL()}rel="rdfs:seeAlso" 
href="{$me->getURL()|escape:'html':'UTF-8'}"{/if}>profile</a>
+               {if $me->journal_rss} &middot; <a{if $this_page_absolute != 
$me->getURL('journal')} rel="rdfs:seeAlso" 
href="{$me->getURL('journal')|escape:'html':'UTF-8'}"{/if}>journal</a>{/if}
        </div>
        <hr style="border: 1px solid transparent; clear: both;" rel="foaf:page" 
rev="foaf:primaryTopic" resource="" />
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]