<?php
/**
* @package   Warp Theme Framework
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
*/

// no direct access
defined('_JEXEC') or die('Restricted access'); ?>

<div class="items">

	<?php foreach ($this->results as $result) : ?>
	<div class="item">
		
		<?php if ( $result->href ) : ?>
		<h1 class="title"><a href="<?php echo JRoute::_($result->href); ?>" <?php if ($result->browsernav == 1 ) echo 'target="_blank"'; ?>><?php  echo $this->escape($result->title); ?></a></h1>
		<?php else: ?>
		<h1 class="title"><?php echo $this->escape($result->title); ?></h1>
		<?php endif; ?>

		<?php if ($result->section || $this->params->get('show_date')) : ?>
		<p class="meta">
			<?php if ($this->params->get('show_date')) echo JText::sprintf('JGLOBAL_CREATED_DATE_ON', $result->created).'. '; ?>
			<?php if ($result->section) echo JText::_('TPL_WARP_POSTED_IN').' '.$this->escape($result->section); ?>
		</p>
		<?php endif; ?>
		
		<div class="content"><?php echo $result->text; ?></div>

	</div>
	<?php endforeach; ?>

</div>

<?php echo $this->pagination->getPagesLinks(); ?>