<?php 
/**
 * Netgo_News extension
 * 
 * NOTICE OF LICENSE
 * 
 * This source file is subject to the MIT License
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/mit-license.php
 * 
 * @category       Netgo
 * @package        Netgo_News
 * @copyright      Copyright (c) 2015
 * @license        http://opensource.org/licenses/mit-license.php MIT License
 */
/**
 * News list template
 *
 * @category    Netgo
 * @package     Netgo_News
 * @author      Ultimate Module Creator
 */
?>
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
<?php $_newss = $this->getNewss(); ?>
<!--<div class="page-title news-title">
    <h1><?php echo Mage::helper('netgo_news')->__('News') ?></h1>
</div>-->
<?php if ($_newss->getSize() > 0) :?>
    <?php echo $this->getPagerHtml(); ?>
    <div class="news-list-container">
    <?php foreach ($_newss as $_news) : ?>
        <div class="news-list-item">
            <a href="<?php echo $_news->getNewsUrl()?>">
                <?php echo $_news->getTitle();?>
            </a><br />
        </div>
    <?php endforeach;?>
    </div>
    <?php echo $this->getPagerHtml(); ?>
<?php else : ?>
    <?php echo Mage::helper('netgo_news')->__('There are no news at this moment');?>
<?php endif;?>
