We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit f4a54c6c authored by tobyink's avatar tobyink

Rationalise feeds.

parent dab925ca
...@@ -76,12 +76,18 @@ $smarty->assign('geo', Server::getLocationDetails($user->location_uri)); ...@@ -76,12 +76,18 @@ $smarty->assign('geo', Server::getLocationDetails($user->location_uri));
$smarty->assign('profile', true); $smarty->assign('profile', true);
$smarty->assign('items', $items); $smarty->assign('items', $items);
$smarty->assign('extra_head_links', array( $smarty->assign('extra_head_links', array(
array( array(
'rel'=>'alternate', 'rel'=>'alternate',
'type' => 'application/rss+xml' , 'type' => 'application/rss+xml' ,
'title' => 'RSS 1.0 Feed (Journal)', 'title' => 'RSS 1.0 Feed (Journal)',
'href' => $user->journal_rss 'href' => $user->journal_rss
) ),
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->display('user-journal.tpl'); $smarty->display('user-journal.tpl');
...@@ -60,13 +60,19 @@ if(isset($user->name)) { ...@@ -60,13 +60,19 @@ if(isset($user->name)) {
'rel'=>'alternate', 'rel'=>'alternate',
'type' => 'application/rss+xml' , 'type' => 'application/rss+xml' ,
'title' => 'RSS 1.0 Feed (Recent plays)', 'title' => 'RSS 1.0 Feed (Recent plays)',
'href' => $base_url.'/rdf.php?fmt=rss&page='.htmlentities($_SERVER['REQUEST_URI']) 'href' => $base_url.'/rdf.php?fmt=rss&page='.htmlentities(str_replace($base_url, '', $user->getURL('recent-tracks')))
),
array(
'rel'=>'alternate',
'type' => 'application/rss+xml' ,
'title' => 'RSS 1.0 Feed (Journal)',
'href' => $user->journal_rss
), ),
array( array(
'rel' => 'meta', 'rel' => 'meta',
'type' => 'application/rdf+xml' , 'type' => 'application/rdf+xml' ,
'title' => 'FOAF', 'title' => 'FOAF',
'href' => $base_url.'/rdf.php?fmt=xml&page='.htmlentities($_SERVER['REQUEST_URI']) 'href' => $base_url.'/rdf.php?fmt=xml&page='.htmlentities(str_replace($base_url, '', $user->getURL()))
) )
)); ));
......
...@@ -56,13 +56,13 @@ if(isset($user->name)) { ...@@ -56,13 +56,13 @@ if(isset($user->name)) {
'rel'=>'alternate', 'rel'=>'alternate',
'type' => 'application/rss+xml' , 'type' => 'application/rss+xml' ,
'title' => 'RSS 1.0 Feed (Recent plays)', 'title' => 'RSS 1.0 Feed (Recent plays)',
'href' => $base_url.'/rdf.php?fmt=rss&page='.htmlentities($_SERVER['REQUEST_URI']) 'href' => $base_url.'/rdf.php?fmt=rss&page='.htmlentities(str_replace($base_url, '', $user->getURL('recent-tracks')))
), ),
array( array(
'rel' => 'meta', 'rel' => 'meta',
'type' => 'application/rdf+xml' , 'type' => 'application/rdf+xml' ,
'title' => 'FOAF', 'title' => 'FOAF',
'href' => $base_url.'/rdf.php?fmt=xml&page='.htmlentities($_SERVER['REQUEST_URI']) 'href' => $base_url.'/rdf.php?fmt=xml&page='.htmlentities(str_replace($base_url, '', $user->getURL()))
) )
)); ));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment