{**
 * 2007-2017 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * 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/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2017 PrestaShop SA
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 *}
<!doctype html>
<html lang="{$language.iso_code}">

  <head>
    {block name='head'}
      {include file='_partials/head.tpl'}
    {/block}
  </head>
  {if isset($smarty.get.detail_col) && $smarty.get.detail_col != ''}
    {assign var="dorDetailCols" value="proDetailCol{$smarty.get.detail_col}"}
  {/if}
  {if isset($smarty.get.cate_type) && $smarty.get.cate_type != ''}
    {assign var="dorCategoryCols" value="proCateCol{$smarty.get.cate_type}"}
  {/if}
  {if isset($smarty.get.cate_type) && $smarty.get.cate_type != '' && $smarty.get.cate_type == 1}
    {assign var="proCateRowNumber" value="4"}
    {if isset($smarty.get.cate_row) && $smarty.get.cate_row != ''}
      {assign var="proCateRowNumber" value="{$smarty.get.cate_row}"}
    {/if}
    {if isset($smarty.get.cate_row) && $smarty.get.cate_row != '' && $smarty.get.cate_row gt 6}
      {assign var="proCateRowNumber" value="4"}
    {/if}
  {/if}

  {if isset($smarty.get.topbar) && $smarty.get.topbar != ''}
    {assign var="dorTopbarSkin" value="topbar{$smarty.get.topbar}"}
  {/if}
  {if isset($smarty.get.header) && $smarty.get.header != ''}
    {assign var="dorHeaderSkin" value="header{$smarty.get.header}"}
  {/if}

  {if isset($dorMiniCartStyle) && $dorMiniCartStyle == 2}
    {assign var="dorMiniCartStyle" value="miniCartv{$dorMiniCartStyle}"}
  {else}
    {assign var="dorMiniCartStyle" value="miniCartv1"}
  {/if}
  {if isset($smarty.get.cart_style) && $smarty.get.cart_style != ''}
    {assign var="dorMiniCartStyle" value="miniCartv{$smarty.get.cart_style}"}
  {/if}
  <body id="{$page.page_name}" class="{if isset($dorthemebg) && $dorthemebg != ''}{$dorthemebg} {/if}{$page.body_classes|classnames}{if isset($dorCategoryCols) && $dorCategoryCols} {$dorCategoryCols}{/if}{if isset($dorDetailCols) && $dorDetailCols} {$dorDetailCols}{/if}{if isset($dorthemebg) && $dorthemebg} {$dorthemebg}{/if} {if $page.page_name == 'category' && isset($proCateRowNumber) && $proCateRowNumber != '' }proCateRowNumber{$proCateRowNumber}{/if} {if $page.page_name == 'category' && isset($proCateTypePage) && $proCateTypePage == 2 }showLoadmore{/if}{if isset($dorCategoryEffect) && $dorCategoryEffect != ''} dorHoverProduct{$dorCategoryEffect}{/if}">
    {block name='hook_after_body_opening_tag'}
      {hook h='displayAfterBodyOpeningTag'}
    {/block}
    <main{if isset($dorlayoutmode) && $dorlayoutmode != ""} class="{$dorlayoutmode}"{/if}>
      {block name='product_activation'}
        {include file='catalog/_partials/product-activation.tpl'}
      {/block}
      {if isset($dorTopbarSkin) && $dorTopbarSkin != "" && $page.page_name != 'pagenotfound'}
      <section id="topbar" class="dor-topbar-wrapper">
        {assign var='urlTopbar' value="_partials/dorado/topbar/"|cat:$dorTopbarSkin|cat:".tpl"} 
        {include file=$urlTopbar}
      </section>
      {/if}
      <header id="header" class="header-absolute {$dorMiniCartStyle}">
          {include file='_partials/header.tpl'}
      </header>
      {block name='notifications'}
        {include file='_partials/notifications.tpl'}
      {/block}
      {if $page.page_name == 'index'}
      <section id="dor-homeslider">
            {capture name='dorHomeSlider'}{hook h='dorHomeSlider'}{/capture}
            {if $smarty.capture.dorHomeSlider}
            {$smarty.capture.dorHomeSlider nofilter}
            {/if}
      </section>
      
      <!-- Block Banner Show -->
      {capture name='blockDorado1'}{hook h='blockDorado1'}{/capture}
      {if $smarty.capture.blockDorado1}
        <div class="blockDorado1 blockPosition dor-bg-white">
          <div class="container">
            <div class="row">
            {$smarty.capture.blockDorado1 nofilter}
            </div>
          </div>
        </div>
      {/if}

      {capture name='dorListCategory'}{hook h='dorListCategory'}{/capture}
      {if $smarty.capture.dorListCategory}
        <div class="dorListCategory blockPosition dor-bg-white">
          <div class="container">
            <div class="row">
            {$smarty.capture.dorListCategory nofilter}
            </div>
          </div>
        </div>
      {/if}


      <!-- End Block Banner Show -->
      <div class="blockDorGroups clearfix">
        <div class="container">
          <div class="row">
            {hook h="DorTabProductCate01"}
          </div>
        </div>
      </div>
      {hook h="DorTabPro"}
      {hook h="blockDorado2"}
      {hook h="DorSuggestions"}
      {hook h='DorTestimonial'}
      {/if}
      {if $page.page_name != 'index'}
      {block name='breadcrumb'}
        {include file='_partials/breadcrumb.tpl'}
      {/block}
      {/if}
      <section id="wrapper">
        <div class="container">
          <div class="row">
          {block name="left_column"}
            <div id="left-column" class="col-xs-12 col-sm-4 col-md-3">
              {if $page.page_name == 'product'}
                {hook h='displayLeftColumnProduct'}
              {else}
                {hook h="displayLeftColumn"}
              {/if}
            </div>
          {/block}

          {block name="content_wrapper"}
            <div id="content-wrapper" class="left-column right-column col-sm-4 col-md-6">
              {block name="content"}
                <p>Hello world! This is HTML5 Boilerplate.</p>
              {/block}
            </div>
          {/block}

          {block name="right_column"}
            <div id="right-column" class="col-xs-12 col-sm-4 col-md-3">
              {if $page.page_name == 'product'}
                {hook h='displayRightColumnProduct'}
              {else}
                {hook h="displayRightColumn"}
              {/if}
            </div>
          {/block}
          </div>
        </div>
      </section>
      {if $page.page_name == 'index'}
      {hook h="dorInstagram"}
      {/if}
      {if $page.page_name != 'product'}
        {capture name='dorHomepageBar'}{hook h='dorHomepageBar'}{/capture}
        {if $smarty.capture.dorHomepageBar}
          <div class="dorHomepageBar blockPosition dor-bg-white">
            <div class="container">
              <div class="row">
              {$smarty.capture.dorHomepageBar nofilter}
              </div>
            </div>
          </div>
        {/if}
      {/if}
      <footer id="footer">
        {include file="_partials/footer.tpl"}
      </footer>

    </main>
    {if isset($dorOptReload) && $dorOptReload == 1}
      <div class="dor-page-loading">
          <div id="loader"></div>
          <div class="loader-section section-left"></div>
          <div class="loader-section section-right"></div>
      </div>
    {/if}
    {block name='javascript_bottom'}
      {include file="_partials/javascript.tpl" javascript=$javascript.bottom}
    {/block}

    {block name='hook_before_body_closing_tag'}
      {hook h='displayBeforeBodyClosingTag'}
    {/block}
    {if isset($dorSubscribe) && $dorSubscribe == 1}
      {include file="_partials/dor-subscribe-popup.tpl"}
    {/if}
    <div id="to-top" class="to-top"> <i class="fa fa-angle-up"></i> </div>
    {hook h='dorthemeoptions'}
    {if $page.page_name|escape:'html':'UTF-8' == 'contact'}
    <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDMH_Sh8EdCWkG1OFhAih3FFhbkRYuo-0U"></script>
    <script src="{$urls.theme_assets}dorado/js/jquery.googlemap.js"></script>
    <script type="text/javascript">
      $(document).ready(function(){
        $("#mapContact").googleMap();
        $("#mapContact").addMarker({
            coords: [{if isset($DorLatitude)}{$DorLatitude}{/if}, {if isset($DorLongitude)}{$DorLongitude}{/if}],
            icon: prestashop.urls.base_url+'img/cms/dorado/icon/market-map.png',
            url: '{if isset($DorMapUrl)}{$DorMapUrl}{/if}'
          });
      });
    </script>
    {/if}
    {if $page.page_name == "product" || $page.page_name == 'module-dorgallery-gallery' || $page.page_name == 'module-dorgallery-gallery2'}
    <script src="{$urls.theme_assets}dorado/libs/photoswipe.js?v=4.1.1-1.0.4"></script>
    <script src="{$urls.theme_assets}dorado/libs/photoswipe-ui-default.min.js?v=4.1.1-1.0.4"></script>
    {/if}
  </body>

</html>