<?php
/**
* @version $Id: mod_rssfeed.php 587 2005-10-23 15:18:58Z stingrey $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );

global $mosConfig_live_site, $mosConfig_absolute_path, $cur_template;

$text 				= $params->get( 'text' );
$moduleclass_sfx 	= $params->get( 'moduleclass_sfx', '' );
$rss091  			= $params->get( 'rss091', 1 );
$rss10  			= $params->get( 'rss10', 1 );
$rss20  			= $params->get( 'rss20', 1 );
$atom  				= $params->get( 'atom', 1 );
$opml  				= $params->get( 'opml', 1 );
$rss091_image		= $params->get( 'rss091_image', '' );
$rss10_image		= $params->get( 'rss10_image', '' );
$rss20_image		= $params->get( 'rss20_image', '' );
$atom_image			= $params->get( 'atom_image', '' );
$opml_image			= $params->get( 'opml_image', '' );
$t_path 			= $mosConfig_live_site .'/templates/'. $cur_template .'/images/';
$d_path				= $mosConfig_live_site .'/images/M_images/';
?>

<div class="syndicate<?php echo $moduleclass_sfx;?>">
	<?php
	// rss091 link
	if ( $text ) {
		?>
		<div align="center" class="syndicate_text<?php echo $moduleclass_sfx;?>">
			<?php echo $text;?>
		</div>
		<?php
	}
	?>

	<?php
	// rss091 link
	if ( $rss091 ) {
		$img = mosAdminMenus::ImageCheck( 'rss091.gif', '/images/M_images/', $rss091_image, '/images/M_images/', 'RSS 0.91', 'RSS_091' );
		?>
		<div align="center">
			<a href="index2.php?option=com_rss&amp;feed=RSS0.91&amp;no_html=1">
				<?php echo $img ?></a>
		</div>
		<?php
	}
	?>

	<?php
	// rss10 link
	if ( $rss10 ) {
		$img = mosAdminMenus::ImageCheck( 'rss10.gif', '/images/M_images/', $rss10_image, '/images/M_images/', 'RSS 1.0', 'RSS_10' );
		?>
		<div align="center">
			<a href="index2.php?option=com_rss&amp;feed=RSS1.0&amp;no_html=1">
				<?php echo $img ?></a>
		</div>
		<?php
	}
	?>

	<?php
	// rss20 link
	if ( $rss20 ) {
		$img = mosAdminMenus::ImageCheck( 'rss20.gif', '/images/M_images/', $rss20_image, '/images/M_images/', 'RSS 2.0', 'RSS_20' );
		?>
		<div align="center">
		<a href="index2.php?option=com_rss&amp;feed=RSS2.0&amp;no_html=1">
			<?php echo $img ?></a>
		</div>
		<?php
	}
	?>

	<?php
	// atom link
	if ( $atom ) {
		$img = mosAdminMenus::ImageCheck( 'atom03.gif', '/images/M_images/', $atom_image, '/images/M_images/', 'ATOM 0.3', 'ATOM_03' );
		?>
		<div align="center">
		<a href="index2.php?option=com_rss&amp;feed=ATOM0.3&amp;no_html=1">
			<?php echo $img ?></a>
		</div>
		<?php
	}
	?>

	<?php
	// opml link
	if ( $opml ) {
		$img = mosAdminMenus::ImageCheck( 'opml.png', '/images/M_images/', $opml_image, '/images/M_images/', 'OPML', 'OPML' );
		?>
		<div align="center">
		<a href="index2.php?option=com_rss&amp;feed=OPML&amp;no_html=1">
			<?php echo $img ?></a>
		</div>
		<?php
	}
	?>
</div>