Find file
Fetching contributors…
Cannot retrieve contributors at this time
117 lines (98 sloc) 4.53 KB
* =|= Layout ===================================================
* Master layout and structure of theme.
* Includes theme's <head> and <body>, sidebars and footer.
* ==============================================================
<!DOCTYPE html>
{* Stop conditional comments blocking downloads. ( *}
<!--[if IE]><![endif]-->
<html lang="{$meta_language}">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
{* Title set in Back Office > Preferences > SEO & URLs. *}
{* Meta description for SERPs. *}
{if isset($meta_description) AND $meta_description}
<meta name="description" content="{$meta_description|escape:html:'UTF-8'}" />
{* Prestashop supports meta keywords, so little harm in including them here. ( *}
{if isset($meta_keywords) AND $meta_keywords}
<meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" />
{* Robots settings set in Back office. Don't forget to generate a robots.txt too. *}
<meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" />
{* Favicon displayed in address bar, tabs and bookmarks. ( *}
<link rel="icon" href="{$favicon_url}?{$img_update_time}">
{* Include all CSS files from page controller's SetMedia() *}
{if isset($css_files)}
{foreach from=$css_files key=css_uri item=media}
<link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" />
{* Required Prestashop JavaScript configuration. *}
<script type="text/javascript">
var baseDir = '{$content_dir}';
var baseUri = '{$base_uri}';
var static_token = '{$static_token}';
var token = '{$token}';
var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals};
var priceDisplayMethod = {$priceDisplay};
var roundMode = {$roundMode};
{* Include all JavaScript files from page controller's SetMedia(). *}
{if isset($js_files)}
{foreach from=$js_files item=js_uri}
<script type="text/javascript" src="{$js_uri}"></script>
{* HTML5Shiv enables HTML5 elements in older versions of Internet Explorer. ( *}
<!--[if lt IE 9]><script src="//"></script><![endif]-->
{* Header modules hook *}
<body {if isset($page_name)}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if} class="{if $hide_left_column}hide-left-column{/if} {if $hide_right_column}hide-right-column{/if}">
{* Message shown if country is restricted from viewing the store. *}
{if isset($restricted_country_mode) && $restricted_country_mode}
<div id="restricted-country">
<p>{l s='You cannot place a new order from your country.'} <span class="bold">{$geolocation_country}</span></p>
{* Header *}
<a id="logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}">
<img class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} />
<div class="modules">
{* Left sidebar *}
<aside id="left_column" class="sidebar">
{* Center content - Uses other template files. *}
<div id="center_column">
{if !empty($template)}
{* Right sidebar *}
<aside id="right_column" class="sidebar">
{* Footer *}
<div class="modules">
{* Includes overlay features when using Live Edit from the Back Office *}
{if !empty($live_edit)}