garancia/themes/default/header.tpl

373 lines
14 KiB
Smarty
Raw Permalink Normal View History

2016-10-10 15:24:25 +02:00
{*
* 2007-2013 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 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/afl-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-2013 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 " lang="{$lang_iso}"> <![endif]-->
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8 ie7" lang="{$lang_iso}"> <![endif]-->
<!--[if IE 8]><html class="no-js lt-ie9 ie8" lang="{$lang_iso}"> <![endif]-->
<!--[if gt IE 8]> <html class="no-js ie9" lang="{$lang_iso}"> <![endif]-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_iso}">
<head>
<title>{$meta_title|escape:'htmlall':'UTF-8'}</title>
{if isset($meta_description) AND $meta_description}
<meta name="description" content="{$meta_description|escape:html:'UTF-8'}" />
{/if}
{if isset($meta_keywords) AND $meta_keywords}
<meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" />
{/if}
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<meta http-equiv="content-language" content="{$meta_language}" />
<meta name="generator" content="PrestaShop" />
<meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" />
<meta name="viewport" id="viewport" content="width=1280" >
<link href="https://fonts.googleapis.com/css?family=La+Belle+Aurore" rel="stylesheet">
2016-10-10 15:24:25 +02:00
<link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url}?{$img_update_time}" />
<link rel="shortcut icon" type="image/x-icon" href="{$favicon_url}?{$img_update_time}" />
<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};
</script>
{if isset($css_files)}
{foreach from=$css_files key=css_uri item=media}
<link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" />
{/foreach}
{/if}
{if isset($js_files)}
{foreach from=$js_files item=js_uri}
<script type="text/javascript" src="{$js_uri}"></script>
{/foreach}
{/if}
{if $page_name == 'product'}
<link href="{$css_dir}plugins.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{$js_dir}tools/flexslider.js" ></script>
{/if}
<script type="text/javascript" src="{$js_dir}fastclick.js"></script>
{$HOOK_HEADER}
<script type="text/javascript">{literal}
function openH3(){
}
function replacerTexte(){
// $("body *").replaceText( '®', '<sup class="r">®</sup>' );
// $('body').replace('®','<sup class="r">®</sup>');
}
function checkform(formID){
var error=0;
$('#'+formID+' label sup').each(function(){
if($(this).parent().find('span.erreur').length==0)
$('.champObligatoire span').clone().insertAfter($(this));
var id=$(this).parent().next().attr('id');
if($('#'+id).val() > 0 && id=="id_contact"){
$(this).parent().find('span.erreur').addClass('hidden');
}else if($('#'+id).val()!="" && $('#'+id).val()!=0){
$(this).parent().find('span.erreur').addClass('hidden');
}else{
$(this).parent().find('span.erreur').removeClass('hidden');
error=1;
}
});
if(error==0)
return true;
return false;
}
$(document).ready(function() {
$('iframe').each(function(){
$(this).attr('allowtransparency','1');
var newSrc=$(this).attr('src');
});
$('.subtitle,li a,h1,h2,h1 a,h3 a,h4 a,breadcrumb,strong,.title_block').each(function(){
var thisHtml=$(this).html();
var newHtml=thisHtml.replace('[','<span class="g">[</span>');
newHtml=newHtml.replace(']','<span class="g">]</span>');
newHtml=newHtml.replace('®','<sup class="r">®</sup>');
if(thisHtml!=newHtml){
if($(this).find('.r').length==0 && $(this).find('.g').length==0)
$(this).html(newHtml);
}
});
// replacerTexte();
$('.thickbox').fancybox({
'hideOnOverlayClick': true,
'hideOnContentClick': true,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic'
});
$('.thickbox2').fancybox({
'hideOnOverlayClick': true,
'hideOnContentClick': false,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic'
});
if($('#page .tiroir').length>0){
var i=0;
$('.tiroir h3').each(function(i){
if(!$(this).attr('id'))
$(this).attr('id',"tiroir_num_"+i);
});
$('#page .tiroir:first-child').addClass('open');
$('#page .tiroir:first-child div.texte').show();
$('.tiroir h3').click(function(){
// var newId=$(this).parent().attr('id');
var idClick=$(this).attr('id');
if($('.tiroir.open').length>0){
if($('.tiroir.open .texte').slideUp('fast',function(){
document.location.href="#"+idClick;
// document.location.href="#"+$('.tiroir.open h3').attr('id');
$('.tiroir.open').removeClass('open');
})){
if($(this).parent().hasClass('open')){
//fermeture
$(this).parent().find('.texte').slideUp('fast',function(){
document.location.href="#"+idClick;
$(this).parent().removeClass('open');
});
}else{
//ouverture
$(this).parent().find('.texte').slideDown('fast',function(){
$(this).parent().addClass('open');
// document.location.href="#"+newId;
});
}
}
}else{
if($(this).parent().hasClass('open')){
//fermeture
$(this).parent().find('.texte').slideUp('fast',function(){
document.location.href="#"+idClick;
$(this).parent().removeClass('open');
});
}else{
//ouverture
$(this).parent().find('.texte').slideDown('fast',function(){
$(this).parent().addClass('open');
// document.location.href="#"+newId;
});
}
}
});
}
if($('#page .tiroir2').length>0){
// $('#page .tiroir:first-child').addClass('open');
// $('#page .tiroir:first-child div.texte').show();
$('.tiroir h4').click(function(){
// var newId=$(this).parent().attr('id');
if($('.tiroir2.open').length>0){
if($('.tiroir2.open .texte').slideUp('fast',function(){
$('.tiroir2.open').removeClass('open');
})){
if($(this).parent().hasClass('open')){
//fermeture
$(this).parent().find('.texte2').slideUp('fast',function(){
$(this).parent().removeClass('open');
});
}else{
//ouverture
$(this).parent().find('.texte2').slideDown('fast',function(){
$(this).parent().addClass('open');
// document.location.href="#"+newId;
});
}
}
}else{
if($(this).parent().hasClass('open')){
//fermeture
$(this).parent().find('.texte2').slideUp('fast',function(){
$(this).parent().removeClass('open');
});
}else{
//ouverture
$(this).parent().find('.texte2').slideDown('fast',function(){
$(this).parent().addClass('open');
// document.location.href="#"+newId;
});
}
}
});
}
});
{/literal}
</script>
<script>
{literal}
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1703551986588226');
fbq('track', "PageView");
{/literal}
</script>
<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=1703551986588226&ev=PageView&noscript=1"/></noscript>
<!-- End Facebook Pixel Code -->
</head>
<body {if isset($page_name)}id="{$page_name|escape:'htmlall':'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{/if} {if $hide_right_column}hide-right-column{/if} {if $content_only} content_only {/if}">
{if !$content_only}
{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>
</div>
{/if}
<div id="page" class="clearfix">
<!-- Header -->
<div class="header_wrapper">
<div class="container_9 clearfix">
<div id="header" class="grid_9 alpha omega">
<a id="header_logo" href="{$base_dir}{$lang_iso}/" title="{$shop_name|escape:'htmlall':'UTF-8'}">
<img class="logo" src="{if $lang_iso=='fr'}{$logo_url}{else}{$logo_url|replace:'logo':'logo-en'}{/if}" 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} />
</a>
<div id="header_right" class="grid_9 omega">
{$HOOK_TOP}
</div>
<div class="menu">
<div class="ctn">
{hook h=displayMenu}
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
{if isset($items_menu)}
<div class="hidden">
<ul class="menu_produits">
{foreach from=$items_menu item=item_menu}
{if $item_menu.colonne==1}
{if $item_menu.type=="fiche_produit"}
{assign var=lien value=$link->getProductLink($item_menu.id_selected)}
{else}
{assign var=lien value=$link->getCategoryLink($item_menu.id_selected)}
{/if}
<li><a href="{$lien}">{$item_menu.titre}</a></li>
{/if}
{/foreach}
</ul>
<ul class="menu_besoins">
{foreach from=$items_menu item=item_menu}
{if $item_menu.colonne==2}
{if $item_menu.type=="fiche_produit"}
{assign var=lien value=$link->getProductLink($item_menu.id_selected)}
{else}
{assign var=lien value=$link->getCategoryLink($item_menu.id_selected)}
{/if}
<li><a href="{$lien}">{$item_menu.titre}</a></li>
{/if}
{/foreach}
</ul>
{foreach from=$items_menu_image item=item_menu_image}
<a class="items_menu_image" style="float:right;" href="{$item_menu_image.url}" title="{$item_menu_image.titre}"><img src="{$base_dir}modules/boixmenugaranciaimage/images/small_{$item_menu_image.image}" alt="{$item_menu_image.legend}" /></a>
{/foreach}
<div class="clear item_clear"></div>
{foreach from=$items_menu item=item_menu}
{if $item_menu.colonne==2}
{if $item_menu.type=="fiche_produit"}
{assign var=lien value=$link->getProductLink($item_menu.id_selected)}
{else}
{assign var=lien value=$link->getCategoryLink($item_menu.id_selected)}
{/if}
<li><a href="{$lien}">{$item_menu.titre}</a></li>
{/if}
{/foreach}
</ul>
</div>
<script type="text/javascript">
$('.bg_categories_block .produits ul').remove();
$('.menu_produits').clone().appendTo(".bg_categories_block .produits div");
$('.bg_categories_block .produits').css('width',"255px");
$('.bg_categories_block .produits ul').css('width',"auto").css('padding',"0!important");
$('.bg_categories_block .produits ul a').css('width',"auto");
$('.bg_categories_block .besoins ul').remove();
$('.menu_besoins').clone().appendTo(".bg_categories_block .besoins");
$('.bg_categories_block .besoins').css('width',"255px");
$('.bg_categories_block .besoins ul').css('width',"auto").css('padding',"0!important");
$('.bg_categories_block .besoins ul a').css('width',"auto");
$('.bg_categories_block .produits').css('border-right','1px solid #E4E4E4');
$('.bg_categories_block .besoins').css('border-left','0');
$('.bg_categories_block .besoins').next().remove();
$('.items_menu_image').clone().appendTo(".bg_categories_block");
$('.item_clear').clone().appendTo(".bg_categories_block");
// $('.bg_categories_block .produits ul').css('display','block');
// $('.bg_categories_block .besoins ul').css('display','block');
// var ul1=
// alert($('.bg_categories_block .produits ul').height());
// alert($('.bg_categories_block .besoins ul').height());
// if($('.bg_categories_block .produits ul').height() > $('.bg_categories_block .besoins ul').height()){
// $('.bg_categories_block .produits ul').css('height',$('.bg_categories_block .besoins ul').height()+"px");
// }else{
// $('.bg_categories_block .besoins ul').css('height',$('.bg_categories_block .produits ul').height()+"px");
// }
</script>
{/if}
<div class="column_wrapper">
<div class="container_9 clearfix">
<div id="columns" class=" grid_9 alpha omega clearfix">
<!-- Left -->
<div id="left_column" class="column grid_2 alpha">
</div>
<!-- Center -->
<div id="center_column" class=" grid_5">
<div class="champObligatoire hidden">
<span class="erreur hidden">{l s='Champ obligatoire'}</span>
</div>
{/if}