<?php
/**
 * ------------------------------------------------------------------------
 * JA SideNews Module
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
// no direct access
defined('_JEXEC') or die('Restricted access');
?>
<div id="ja-sidenews-<?php echo $moduleID; ?>">
	<?php foreach( $list as $i => $item ) :
		$item->text = $item->introtext . $item->fulltext;
		$onclick = ' onclick="location.href=\''.$item->link.'\'"';
	?>
	<div class="ja-sidenews" <?php echo $onclick ;?> style="width:<?php echo $iwidth;?>px; height:<?php echo $height;?>px">

		<div  class="ja-slidenews-cover" >
			<?php echo $helper->renderImage ($item, $params, $descMaxChars, $iwidth, $iheight ); ?>
		</div>

		<div class="ja-opacity" style=" <?php echo $bgcolor;?>;height:<?php echo $height;?>px;"></div>
			<div class="ja-sidenews-display">
				<div class="ja-sidenews-desc" style="<?php echo $color; ?>;">
					<h3 style="<?php echo $color; ?>;"><?php echo  $helper->trimString( $item->title, $titleMaxChars );?></h3>
					<?php echo $helper->trimString( strip_tags($item->introtext), $descMaxChars); ?>
				</div>
			</div>
	</div>
	<?php endforeach; ?>

</div>