Advertisement
saikisensei

header.tpl

Nov 16th, 2017
1,570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Smarty 7.03 KB | None | 0 0
  1. {*
  2. * 2007-2016 PrestaShop
  3. *
  4. * NOTICE OF LICENSE
  5. *
  6. * This source file is subject to the Academic Free License (AFL 3.0)
  7. * that is bundled with this package in the file LICENSE.txt.
  8. * It is also available through the world-wide-web at this URL:
  9. * http://opensource.org/licenses/afl-3.0.php
  10. * If you did not receive a copy of the license and are unable to
  11. * obtain it through the world-wide-web, please send an email
  12. * to license@prestashop.com so we can send you a copy immediately.
  13. *
  14. * DISCLAIMER
  15. *
  16. * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
  17. * versions in the future. If you wish to customize PrestaShop for your
  18. * needs please refer to http://www.prestashop.com for more information.
  19. *
  20. *  @author PrestaShop SA <contact@prestashop.com>
  21. *  @copyright  2007-2016 PrestaShop SA
  22. *  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
  23. *  International Registered Trademark & Property of PrestaShop SA
  24. *}
  25. <!DOCTYPE HTML>
  26. <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"{if isset($language_code) && $language_code} lang="{$language_code|escape:'html':'UTF-8'}"{/if}><![endif]-->
  27. <!--[if IE 7]><html class="no-js lt-ie9 lt-ie8 ie7"{if isset($language_code) && $language_code} lang="{$language_code|escape:'html':'UTF-8'}"{/if}><![endif]-->
  28. <!--[if IE 8]><html class="no-js lt-ie9 ie8"{if isset($language_code) && $language_code} lang="{$language_code|escape:'html':'UTF-8'}"{/if}><![endif]-->
  29. <!--[if gt IE 8]> <html class="no-js ie9"{if isset($language_code) && $language_code} lang="{$language_code|escape:'html':'UTF-8'}"{/if}><![endif]-->
  30. <html{if isset($language_code) && $language_code} lang="{$language_code|escape:'html':'UTF-8'}"{/if}>
  31.     <head>
  32.         <meta charset="utf-8" />
  33.         <title>{$meta_title|escape:'html':'UTF-8'}</title>
  34.         {if isset($meta_description) AND $meta_description}
  35.             <meta name="description" content="{$meta_description|escape:'html':'UTF-8'}" />
  36.         {/if}
  37.         {if isset($meta_keywords) AND $meta_keywords}
  38.             <meta name="keywords" content="{$meta_keywords|escape:'html':'UTF-8'}" />
  39.         {/if}
  40.         <meta name="generator" content="PrestaShop" />
  41.         <meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" />
  42.         <meta name="viewport" content="width=device-width, minimum-scale=0.25, maximum-scale=1.6, initial-scale=1.0" />
  43.         <meta name="apple-mobile-web-app-capable" content="yes" />
  44.         <link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url}?{$img_update_time}" />
  45.         <link rel="shortcut icon" type="image/x-icon" href="{$favicon_url}?{$img_update_time}" />
  46.         {if isset($css_files)}
  47.             {foreach from=$css_files key=css_uri item=media}
  48.                 {if $css_uri == 'lteIE9'}
  49.                     <!--[if lte IE 9]>
  50.                     {foreach from=$css_files[$css_uri] key=css_uriie9 item=mediaie9}
  51.                     <link rel="stylesheet" href="{$css_uriie9|escape:'html':'UTF-8'}" type="text/css" media="{$mediaie9|escape:'html':'UTF-8'}" />
  52.                     {/foreach}
  53.                     <![endif]-->
  54.                 {else}
  55.                     <link rel="stylesheet" href="{$css_uri|escape:'html':'UTF-8'}" type="text/css" media="{$media|escape:'html':'UTF-8'}" />
  56.                 {/if}
  57.             {/foreach}
  58.         {/if}
  59.         {if isset($js_defer) && !$js_defer && isset($js_files) && isset($js_def)}
  60.             {$js_def}
  61.             {foreach from=$js_files item=js_uri}
  62.             <script type="text/javascript" src="{$js_uri|escape:'html':'UTF-8'}"></script>
  63.             {/foreach}
  64.         {/if}
  65.         {$HOOK_HEADER}
  66.         <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300,600&amp;subset=latin,latin-ext" type="text/css" media="all" />
  67.         <!--[if IE 8]>
  68.         <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  69.         <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
  70.         <![endif]-->
  71.     </head>
  72.     <body{if isset($page_name)} id="{$page_name|escape:'html':'UTF-8'}"{/if} class="{if isset($page_name)}{$page_name|escape:'html':'UTF-8'}{/if}{if isset($body_classes) && $body_classes|@count} {implode value=$body_classes separator=' '}{/if}{if $hide_left_column} hide-left-column{else} show-left-column{/if}{if $hide_right_column} hide-right-column{else} show-right-column{/if}{if isset($content_only) && $content_only} content_only{/if} lang_{$lang_iso}">
  73.     {if !isset($content_only) || !$content_only}
  74.         {if isset($restricted_country_mode) && $restricted_country_mode}
  75.             <div id="restricted-country">
  76.                 <p>{l s='You cannot place a new order from your country.'}{if isset($geolocation_country) && $geolocation_country} <span class="bold">{$geolocation_country|escape:'html':'UTF-8'}</span>{/if}</p>
  77.             </div>
  78.         {/if}
  79.         <div id="page">
  80.             <!-- Hook Superior Aqui -->
  81.             {hook h='displayBannerPro' banner='top'}
  82.             <!-- Hook Superior Aqui //-->
  83.             <div class="header-container">
  84.                 <header id="header">
  85.                     {capture name='displayBanner'}{hook h='displayBanner'}{/capture}
  86.                     {if $smarty.capture.displayBanner}
  87.                         <div class="banner">
  88.                             <div class="container">
  89.                                 <div class="row">
  90.                                     {$smarty.capture.displayBanner}
  91.                                 </div>
  92.                             </div>
  93.                         </div>
  94.                     {/if}
  95.                     {capture name='displayNav'}{hook h='displayNav'}{/capture}
  96.                     {if $smarty.capture.displayNav}
  97.                         <div class="nav">
  98.                             <div class="container">
  99.                                 <div class="row">
  100.                                     <nav>{$smarty.capture.displayNav}</nav>
  101.                                 </div>
  102.                             </div>
  103.                         </div>
  104.                     {/if}
  105.                     <!-- Hook Inferior Aqui -->
  106.                     {hook h='displayBannerPro' banner='down'}
  107.                     <!-- Hook Inferior Aqui //-->
  108.                     <div>
  109.                         <div class="container">
  110.                             <div class="row">
  111.                                 <div id="header_logo">
  112.                                     <a href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}" title="{$shop_name|escape:'html':'UTF-8'}">
  113.                                         <img class="logo img-responsive" src="{$logo_url}" alt="{$shop_name|escape:'html':'UTF-8'}"{if isset($logo_image_width) && $logo_image_width} width="{$logo_image_width}"{/if}{if isset($logo_image_height) && $logo_image_height} height="{$logo_image_height}"{/if}/>
  114.                                     </a>
  115.                                 </div>
  116.                                 {if isset($HOOK_TOP)}{$HOOK_TOP}{/if}
  117.                             </div>
  118.                         </div>
  119.                     </div>
  120.                 </header>
  121.             </div>
  122.             <div class="columns-container">
  123.                 <div id="columns" class="container">
  124.                     {if $page_name !='index' && $page_name !='pagenotfound'}
  125.                         {include file="$tpl_dir./breadcrumb.tpl"}
  126.                     {/if}
  127.                     <div id="slider_row" class="row">
  128.                         {capture name='displayTopColumn'}{hook h='displayTopColumn'}{/capture}
  129.                         {if $smarty.capture.displayTopColumn}
  130.                             <div id="top_column" class="center_column col-xs-12 col-sm-12">{$smarty.capture.displayTopColumn}</div>
  131.                         {/if}
  132.                     </div>
  133.                     <div class="row">
  134.                         {if isset($left_column_size) && !empty($left_column_size)}
  135.                         <div id="left_column" class="column col-xs-12 col-sm-{$left_column_size|intval}">{$HOOK_LEFT_COLUMN}</div>
  136.                         {/if}
  137.                         {if isset($left_column_size) && isset($right_column_size)}{assign var='cols' value=(12 - $left_column_size - $right_column_size)}{else}{assign var='cols' value=12}{/if}
  138.                         <div id="center_column" class="center_column col-xs-12 col-sm-{$cols|intval}">
  139.     {/if}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement