<?php
/**
 * Avalanche for Magento 1.8+
 * Designed by Fast Division (http://fastdivision.com)
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the EULA
 * that is bundled with this package in the file license.txt.
 * It is also available through the world-wide-web at this URL:
 * http://fastdivision.com/legal/license.txt
 *
 * @author     Fast Division
 * @version    1.5.0
 * @copyright  Copyright 2013 Fast Division
 * @license    http://fastdivision.com/legal/license.txt
 */
?>
<?php if($this->getResultCount()): ?>
<div class="page-messages">
	<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
</div>
<div class="page-title">
    <?php if ($this->helper('rss/catalog')->getTagFeedUrl()): ?>
        <a href="<?php echo $this->helper('rss/catalog')->getTagFeedUrl() ?>" class="nobr link-rss"><?php echo $this->__('Subscribe to Feed') ?></a>
    <?php endif; ?>
    <h1><?php echo ($this->getHeaderText() || $this->getHeaderText() === false) ? $this->getHeaderText() : $this->__("Search Results for %s", $this->helper('catalogsearch')->getEscapedQueryText()) ?></h1>
</div>
    <?php if ($messages = $this->getNoteMessages()):?>
    <p class="note-msg">
        <?php foreach ($messages as $message):?>
            <?php echo $message?><br />
        <?php endforeach;?>
    </p>
    <?php endif; ?>
    <?php echo $this->getProductListHtml() ?>
<?php else: ?>
<div class="grid_12 white-box" style="margin-top:0">
    <h1 style="margin-bottom: 20px"><?php echo ($this->getHeaderText() || $this->getHeaderText() === false) ? $this->getHeaderText() : $this->__("Search results for %s", $this->helper('catalogsearch')->getEscapedQueryText()) ?></h1>
	<div class="white-box-inner">
		<p>
			<?php echo ($this->getNoResultText()) ? $this->getNoResultText() : $this->__('Your search "' . $this->helper('catalogsearch')->getEscapedQueryText() . '" did not return any results. Sorry!') ?>
		</p>
		
	    <?php if ($messages = $this->getNoteMessages()):?>
		<p>
	        <?php foreach ($messages as $message):?>
	        <br /><?php echo $message?>
	        <?php endforeach;?>
		</p>
	    <?php endif; ?>
		
		<p style="padding-bottom:10px"><?php echo $this->__('Suggestions:'); ?></p>
		<ul>
			<li><?php echo $this->__('Make sure all words are spelled correctly.'); ?></li>
			<li><?php echo $this->__('Try different keywords.'); ?></li>
			<li><?php echo $this->__('Try more general keywords.'); ?></li>
		</ul>
	</div>
</div>
<?php endif; ?>