<link rel="stylesheet" type="text/css" href="<?php echo $main_url; ?>pages/application/template/modules/modules_css/polecane_style.css" />

<?php 
if($content && count($content) > 0) foreach($content as $polecane){
	$this->load->helper('text');
?>
	<div style="display: inline; float: left; margin: 16px; width: 297px;"> 
		<div id="n_title"><?=strip_tags(character_limiter($polecane['name'], 20))?></div>
		<p style="text-align:justify; margin-top:3px;">
		<?php if($polecane['photo'] != '') { ?>
			<img style="float:left; padding:3px; border:1px #CCC solid; margin:0 8px 0px 0;" src="<?=reduce_double_slashes(prep_url($adres).'/foto/nodes/thumb_'.$polecane['photo'])?>" />
		<?php } ?>
		<?=strip_tags(character_limiter($polecane['text'], 180))?></p>
		<p><a id="read_more_news" href="<?=$polecane['name_url']?>">Czytaj więcej...</a></p>
	
	</div>
	<?php } ?>
<div class="clear"></div>
<br/>
<br/>
<br/>
