[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Librefm-commits] [1115] Provide better rel=meta link for /user/$usernam
From: |
Toby Inkster |
Subject: |
[Librefm-commits] [1115] Provide better rel=meta link for /user/$username/groups page. |
Date: |
Sat, 02 May 2009 09:29:33 +0000 |
Revision: 1115
http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1115
Author: tobyink
Date: 2009-05-02 09:29:33 +0000 (Sat, 02 May 2009)
Log Message:
-----------
Provide better rel=meta link for /user/$username/groups page.
Provide a rel=meta link for /user/$username/stats page.
Modified Paths:
--------------
trunk/nixtape/user-groups.php
trunk/nixtape/user-stats.php
Modified: trunk/nixtape/user-groups.php
===================================================================
--- trunk/nixtape/user-groups.php 2009-05-02 04:35:53 UTC (rev 1114)
+++ trunk/nixtape/user-groups.php 2009-05-02 09:29:33 UTC (rev 1115)
@@ -54,7 +54,7 @@
'rel' => 'meta',
'type' => 'application/rdf+xml' ,
'title' => 'FOAF',
- 'href' =>
$base_url.'/rdf.php?fmt=xml&page='.htmlentities(str_replace($base_url, '',
$user->getURL()))
+ 'href' =>
$base_url.'/rdf.php?fmt=xml&page='.htmlentities(str_replace($base_url, '',
$user->getURL('groups')))
)
));
Modified: trunk/nixtape/user-stats.php
===================================================================
--- trunk/nixtape/user-stats.php 2009-05-02 04:35:53 UTC (rev 1114)
+++ trunk/nixtape/user-stats.php 2009-05-02 09:29:33 UTC (rev 1115)
@@ -57,6 +57,15 @@
$smarty->assign('me', $user);
$smarty->assign('geo', Server::getLocationDetails($user->location_uri));
$smarty->assign('isme', ($this_user->name == $user->name));
+
+ $smarty->assign('extra_head_links', array(
+ array(
+ 'rel' => 'meta',
+ 'type' => 'application/rdf+xml' ,
+ 'title' => 'FOAF',
+ 'href' =>
$base_url.'/rdf.php?fmt=xml&page='.htmlentities(str_replace($base_url, '',
$user->getURL()))
+ )
+ ));
$smarty->assign('stats', true);
$smarty->display('user-stats.tpl');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Librefm-commits] [1115] Provide better rel=meta link for /user/$username/groups page.,
Toby Inkster <=