
<?php
/**
 * Template for Mage_Page_Block_Html
 */
?>
<!DOCTYPE html>
<html lang="<?php echo $this->getLang() ?>">
<head>
<?php echo $this->getChildHtml('head') ?>
</head>

<body class="<?php echo $this->getBodyClass()?' '.$this->getBodyClass().'':'' ?>">
    <?php echo $this->getChildHtml('after_body_start') ?>
    <?php echo $this->getChildHtml('global_notices') ?>      
       <?php echo $this->getChildHtml('header') ?> 
           <!-- Home Slider Block --> 
      <?php if(Mage::app()->getStore()->getConfig('amazesettings/amazesettings_slider/home_slider')=='type1') { ?>
        <div class="slider-section">
           <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('amaze_lhs_banner_block')->toHtml() ?>           
           <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('amaze_home_slider_banner_block')->toHtml() ?>
        </div> <!--slider-section-->
      <?php } else { ?>
        <div class="slider-section">
           <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('amaze_home_slider_banner_block_type2')->toHtml() ?>
           <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('amaze_lhs_banner_block_type2')->toHtml() ?>           
        </div> <!--slider-section-->
      <?php } ?>
<!-- Header block call -->
    <div class="offer-banner">
      <div class="offer-banner-section">    
        <?php echo $this->getLayout()->createBlock('newsletter/subscribe')->setTemplate('newsletter/subscribe_home.phtml')->toHtml() ; ?>
        <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('amaze_home_offer_banner_block')->toHtml() ?>
      </div> <!--offer-banner-section-->
    </div> <!--offer-banner-->
       <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('amaze_header_block')->toHtml() ?>
       <section class="main-col">  
          <article>             
              <?php echo $this->getChildHtml('breadcrumbs') ?>               
              <?php echo $this->getChildHtml('global_messages') ?>
              <?php echo $this->getChildHtml('content') ?>
          </article>
      </section> <!--main-col-->
<!-- Home Lastest Blog Block -->
      <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('amaze_home_latest_blog_block')->toHtml() ?>
      <?php echo $this->getChildHtml('footer') ?>
      <?php echo $this->getChildHtml('before_body_end') ?>
      <?php echo $this->getAbsoluteFooter() ?> 

      <?php if(Mage::app()->getStore()->getConfig('amazesettings/amazesettings_newsletterpopup/newsletterpopup_enable')==1){?>
          <?php echo $this->getLayout()->createBlock('newsletter/subscribe')->setTemplate('newsletter/subscribe_home_popup.phtml')->toHtml() ; ?>
      <?php } ?>

</body>
</html>