Este es el archivo rss.php del componente marketplace:
Código:
<?php
/**
* rss.php
*
* included by all frontend files,
* gets version info from the database and displays it in the page-footer
*
*/
// all ads
if ( !class_exists( "JConfig")) { // Joomla 1.0.x
$linkRssPart = sefRelToAbs( "index2.php?option=com_marketplace&page=rss&Itemid=".$Itemid);
$linkTagRssAll = $linkRssPart;
}
else { // we are on 1.5.x
$linkRssPart = sefRelToAbs( "index.php?option=com_marketplace&page=rss&format=raw&Itemid=".$Itemid);
$linkTagRssAll = $linkRssPart;
}
$headerTagRssAll = "<link rel='alternate' type='application/rss+xml' title='Todos los Avisos de El Refugio de Animales' href='".$linkTagRssAll."' />";
$mainframe->addCustomHeadTag( $headerTagRssAll);
// category ads
if ( $catid > 0) { // no feed for my ads
if ( !class_exists( "JConfig")) { // Joomla 1.0.x
$linkRssPart = sefRelToAbs( "index2.php?option=com_marketplace&page=rss&catid=".$catid."&Itemid=".$Itemid);
$linkTagRssCat = $linkRssPart;
}
else { // we are on 1.5.x
$linkRssPart = sefRelToAbs( "index.php?option=com_marketplace&page=rss&catid=".$catid."&format=raw&Itemid=".$Itemid);
$linkTagRssCat = $linkRssPart;
}
$headerTagRssCat = "<link rel='alternate' type='application/rss+xml' title='Avisos de El Refugio de Animales - ".$cat_name."' href='".$linkTagRssCat."' />";
$mainframe->addCustomHeadTag( $headerTagRssCat);
}
?>