privilegedemarque/themes/site/footer.tpl
2017-02-24 12:25:33 +01:00

667 lines
27 KiB
Smarty
Executable File

{*
* 2007-2014 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-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if !isset($content_only) || !$content_only}
</div><!-- #center_column -->
{if isset($right_column_size) && !empty($right_column_size)}
<div id="right_column" class="col-xs-12 col-sm-{if $page_name == 'module-psblog-posts'}4{else}{$right_column_size|intval}{/if} column">{$HOOK_RIGHT_COLUMN}</div>
{/if}
</div><!-- .row -->
</div><!-- #columns -->
{if $page_name == "authentication"}
<div class="bandeau_transporteur-container snotmobile">
<div id="bandeau_transporteur" class="container">
<div class="row">
<div id="bandeau_transporteur_column" class="col-xs-12">
<img class="bandeau_transporteur" src="{$img_dir}bandeau_transporteur.png" />
</div>
</div>
</div>
</div>
<div class="manufacturer-container">
<div id="manufacturer" class="container">
<div class="row">
<div id="manufacturer_column" class="col-xs-12">
<div class="flexslider carousel">
<h2><span>{l s='Les marques qui nous font confiance'}</span></h2>
<ul class="slides row">
{foreach Manufacturer::getManufacturers(false,$cookie->id_lang,true,0,6) as $manufacturer}
{if $manufacturer.showcar}
<li class="col-xs-2">
<div class="container-img">
<img src="{$img_manu_dir}{$manufacturer.id_manufacturer}.jpg" alt="" />
</div>
</li>
{/if}
{/foreach}
</ul>
</div>
</div>
</div>
</div>
</div>
{/if}
</div><!-- .columns-container -->
{if isset($HOOK_FOOTER)}
<!-- Footer -->
<div class="footer-container">
<footer id="footer" class="container">
<div class="row">{$HOOK_FOOTER}</div>
</footer>
</div><!-- #footer -->
{/if}
{if $launch_popup}
<div class="popup_change" style="display: none;">
<div class="change_account">
<span class="cross" title="Close window"></span>
<form action="" method="post" id="change-account_form" class="box">
<h3 class="page-subheading">
{l s='Bienvenue sur Privilège de Marque'}
</h3>
<div class="form_content clearfix">
<p>
{l s='Merci de bien vouloir renseigner vos informations personnelles pour continuer à naviwwwguer sur le site'}<br/><br/>
</p>
{if $error_popup}
<div class="alert alert-danger" id="create_account_error">
{l s='Erreur lors du changement d\'information'}
</div>
{/if}
<div class="form-group">
<label for="lastname">{l s='Nom'}</label>
<input type="text" class="is_required account_input form-control" id="lastname" name="lastname" value="{if isset($smarty.post.lastname)}{$smarty.post.lastname|stripslashes}{/if}" />
</div>
<div class="form-group">
<label for="firstname">{l s='Prénom'}</label>
<input type="text" class="is_required account_input form-control" id="firstname" name="firstname" value="{if isset($smarty.post.firstname)}{$smarty.post.firstname|stripslashes}{/if}" />
</div>
<div class="submit">
<input type="hidden" class="hidden" name="back" value="{$link->getModuleLink('privatesales', 'home')|escape:'html':'UTF-8'}" />
<button class="button-grey" type="submit" id="SubmitChangeName" name="SubmitChangeName">
<span>
{l s='Envoyer'}
</span>
</button>
</div>
</div>
</form>
</div>
</div>
<script type="text/javascript">
{if $error_popup}
var time = 0;
{else}
var time = 1000;
{/if}
</script>
{literal}
<script type="text/javascript">
var timer = setInterval( showDiv, time);
var open = false;
function showDiv(){
if(!open){
$('#layer_cart .layer_cart_product').html($('.change_account').html());
$('#layer_cart .layer_cart_cart').html(" ");
$('.layer_cart_overlay').fadeIn(100);
$('#layer_cart').attr('style','width:50%;margin-left:25%;margin-right:25%;top:50px').fadeIn(250);
open = true;
}
}
$('li.modalbox').unbind('click').click(function(e){
e.stopPropagation();
$('.layer_cart_overlay').fadeIn(100);
$('#layer_cart').attr('style','width:50%;margin-left:25%;margin-right:25%;top:50px').fadeIn(250);
});
$('.layer_cart_overlay').click(function(e){
e.stopPropagation();
$('.layer_cart_overlay').fadeIn(100);
$('#layer_cart').attr('style','width:50%;margin-left:25%;margin-right:25%;top:50px').fadeIn(250);
});
$('.cross').click(function(e){
e.stopPropagation();
$('.layer_cart_overlay').fadeIn(100);
$('#layer_cart').attr('style','width:50%;margin-left:25%;margin-right:25%;top:50px').fadeIn(250);
});
</script>
{/literal}
{/if}
</div><!-- #page -->
{/if}
{include file="$tpl_dir./global.tpl"}
{hook h="displayPopupY"}
{if isset($account_created) }
{literal}
<!-- Google Code for Inscription Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 960846985;
var google_conversion_language = "fr";
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "EhVzCKSZ5VYQibmVygM";
var google_remarketing_only = false;
/* ]]> */
</script>
{/literal}
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"></script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/960846985/?label=EhVzCKSZ5VYQibmVygM&guid=ON&script=0"/>
</div>
</noscript>
{/if}
{if !isset($content_only) || !$content_only}
{if $popup_connection && !$cookie->logged}
<div class="privatesales_popup_connection container" style="display: none;">
<div class="container-logo col-xs-12">
<img src="{$img_dir}pspopup/popuplogo.jpg" />
</div>
<div class="box-auth login_form col-xs-12 pull-left">
<div class="container-box-white col-xs-6">
<h2 class="title">{l s='Devenez membre gratuitement'}</h2>
<ul>
<li>
{l s='Profitez de la qualité des marques professionnelles'}
</li>
<li>
{l s='Ventes privées jusqu\'à -70%'}
</li>
<li>
{l s='Livraison gratuite sur votre 1ère commande'}
</li>
<li>
{l s='Satisfait ou remboursé.'}
</li>
</ul>
<p class="submit text-center">
<button type="button" class="button-grey to_step_create">
<span>{l s='Nous rejoindre'}</span>
</button>
</p>
</div>
<div class="container-box-white col-xs-6">
<h2 class="title">{l s='Déjà membre ?'}</h2>
<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="login_form" class="box-auth">
<div class="form_content clearfix">
<div class="form-group" >
<label for="email">{l s='Email'}</label>
<input class="is_required validate account_input form-control" data-validate="isEmail" type="text" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|stripslashes}{/if}{if isset($smarty.get.email)}{$smarty.get.email|stripslashes}{/if}" />
</div>
<div class="form-group">
<label for="passwd">{l s='Mot de passe'}</label>
<span><input class="is_required validate account_input form-control" type="password" data-validate="isPasswd" id="passwd" name="passwd" value="{if isset($smarty.post.passwd)}{$smarty.post.passwd|stripslashes}{/if}{if isset($smarty.get.passwd)}{$smarty.get.passwd|stripslashes}{/if}" /></span>
</div>
<p class="lost_password form-group text-center"><a href="{$link->getPageLink('password')|escape:'html':'UTF-8'}" title="{l s='Recover your forgotten password'}" rel="nofollow">{l s='Mot de passe oublié ?'}</a></p>
<p class="submit text-center">
<input type="hidden" class="hidden" name="back" value="{$link->getPageLink('index', true)}" />
<button type="submit" id="SubmitLogin" name="SubmitLogin" class="button-grey ">
<span>
{l s='Me connecter'}
</span>
</button>
</p>
</div>
</form>
</div>
</div>
<div class="create_form create_account" style="display: none;">
<div class="container-box-white col-xs-12">
<h2 class="title">{l s='Ventes privées cuisine, arts de la table et équipements'}</h2>
<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="account-creation_form" class="box-auth">
<div class="col-xs-6">
<div class="alert alert-danger" style="display:none"></div>
<div class="row required form-group">
<label for="customer_firstname">{l s='Prénom'} <sup>*</sup></label>
<input onkeyup="$('#firstname').val(this.value);" type="text" class="is_required validate form-control" data-validate="isName" id="customer_firstname" name="customer_firstname" value="{if isset($smarty.post.customer_firstname)}{$smarty.post.customer_firstname|escape:'html':'UTF-8'}{/if}{if isset($smarty.get.customer_firstname)}{$smarty.get.customer_firstname|escape:'html':'UTF-8'}{/if}" />
<p class="error firstname"></p>
</div>
<div class="row required form-group">
<label for="customer_lastname">{l s='Nom'} <sup>*</sup></label>
<input onkeyup="$('#lastname').val(this.value);" type="text" class="is_required validate form-control" data-validate="isName" id="customer_lastname" name="customer_lastname" value="{if isset($smarty.post.customer_lastname)}{$smarty.post.customer_lastname|escape:'html':'UTF-8'}{/if}{if isset($smarty.get.customer_lastname)}{$smarty.get.customer_lastname|escape:'html':'UTF-8'}{/if}" />
<p class="error lastname"></p>
</div>
<div class="row required form-group">
<label for="email">{l s='Email'} <sup>*</sup></label>
<input type="text" class="is_required validate form-control" data-validate="isEmail" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|escape:'html':'UTF-8'}{/if}{if isset($smarty.get.email)}{$smarty.get.email|escape:'html':'UTF-8'}{/if}" />
<p class="error email"></p>
</div>
<div class="row required password form-group">
<label for="passwd">{l s='Mot de passe'} <sup>*</sup></label>
<input type="password" class="is_required validate form-control" data-validate="isPasswd" name="passwd" id="passwd" />
<p class="error password"></p>
</div>
<p class="row submit_link">
<a href="#" class="to_step_login">{l s='Déjà membre Privilège de Marque ?'}</a>
</p>
</div>
<div class="col-xs-6">
<div class="clearfix">
<div class="box-b2b">
<div class="group-radio">
<input name="check_b2b" id="b2b_off" type="radio" value="0" {*if !isset($is_pro) || !$is_pro}checked="checked"{/if*}/>
<label for="b2b_off">{l s='Je suis un'} <b>{l s='particulier'}</b> {l s=', à la recherche de matériel de marques professionnelles'}</label>
</div>
<div class="group-radio">
<input name="check_b2b" id="b2b_on" type="radio" value="1" {if isset($is_pro) && $is_pro}checked="checked"{/if} />
<label for="b2b_on">{l s='Je suis un'} <b>{l s='professionnel'}</b> {l s='de l\'hôtellerie restauration ou des métiers de bouche'}</label>
</div>
</div>
</div>
<div class="checkbox">
<label class="newsletter_label" for="newsletter"> {l s='et j\'accepte'} <a href="{$link_conditions|escape:'html':'UTF-8'}" id="link_conditions" class="iframe" rel="nofollow" target="_blank">{l s='les conditions générales de vente'}</a></label>
<input name='newsletter' type='hidden' value="1" />
</div>
<div class="clearfix"> </div>
<p class="submit clearfix text-center">
<button type="submit" name="submitAccount" id="submitAccount" class="button-grey right">
<span class="btn-small">{l s='Valider'}</span>
</button>
</p>
</div>
<input type="hidden" size="52" maxlength="128" id="referralprogram" name="referralprogram" value="">
<input type="hidden" name="email_create" value="1" />
<input type="hidden" name="is_new_customer" value="1" />
<input type="hidden" name="back" value="{$link->getModuleLink('privatesales', 'home')|escape:'html':'UTF-8'}" />
</form>
</div>
</div>
</div>
<div class="popup_welcome" style="display:none;">
<a href="{$base_dir}ventes-privees?create_account=1" class="button-grey button-white right"><span>Nous rejoindre</span></a>
<a href="#" class="close_popup">Fermer</a>
</div>
<div class="popup_overlay" style="display: none;"></div>
<script type="text/javascript">
var nom = "{l s='Votre nom est manquant'}";
var prenom = "{l s='Votre prénom est manquant'}";
var mdp = "{l s='Votre mot de passe est manquant'}";
var mdp2 = "{l s='Votre mot de passe est trop court'}";
var mail = "{l s='Votre adresse email est manquante'}";
var newsletter = "{l s='Acceptez les conditions générales d\'utilisations'}";
</script>
<script type="text/javascript">
{if !isset($cookie->isAccountExists) || $cookie->isAccountExists == "0"}
//var timer = setTimeout( showPopupWelcome, 1000);
{/if}
{literal}
var open = false;
function showPopupWelcome(){
if(!open){
$('.popup_overlay').fadeIn(100);
$('.popup_welcome').fadeIn(250);
open = true;
}
}
$(document).ready(function() {
if(mobilecheck()==false){
$(function(){
$('a.loggin_button').on('touchstart', function(e){
e.stopPropagation();
e.preventDefault();
alert("Clicked");
});
});
$("div.product-container").attr('onclick', '');
$("div.sale_desc").attr('onclick', '');
$("div.sale_container").attr('onclick', '');
$(".sale, .sale a.button-grey, div.product-container, div.product-container a, div.product-container a.button-grey, .breadcrumb a, a.back_, a.back_sale,#category #header_logo a,#category #block_top_menu ul li:first-child,#product #header_logo a,#product #block_top_menu ul li:first-child, a.loggin_button, .slide-home a").on('click touchstart', function(e) {
e.stopPropagation();
var href = '/';
if(typeof $(this).attr('href') != 'undefined') {
href = $(this).attr('href');
}
else {
if($(this).find('a.button-grey').size() > 0) {
href = $(this).find('a.button-grey').attr('href');
}
}
$('.privatesales_popup_connection').find('input[name=back]').val(href);
$('.popup_overlay').fadeIn(100);
$('.privatesales_popup_connection').fadeIn(250);
return false;
});
/*$('li.modalbox').unbind('click').click(function(){
$('.popup_overlay').fadeIn(100);
$('.privatesales_popup_connection').fadeIn(250);
});*/
{/literal}{if !isset($smarty.get.popup) && !isset($smarty.get.source)}{literal}
$('.popup_overlay').on('click touchstart', function(){
$(this).fadeOut(100);
$('.privatesales_popup_connection').fadeOut(100);
$('.popup_welcome').fadeOut(100);
open = false;
});
$('.close_popup').click(function(){
$('.popup_overlay').fadeOut(100);
$('.popup_welcome').fadeOut(100);
open = false;
return false;
});
{/literal}{/if}{literal}
{/literal}{if isset($smarty.get.popup)}{literal}
$(".loggin_button").trigger("click");
$(".to_step_create").trigger("click");
{/literal}{if $smarty.get.source}{literal}
$("#referralprogram").val("{/literal}{$smarty.get.source|replace:' ':'+'}{literal}");
var href_link_conditions = $("#link_conditions").attr('href');
$("#link_conditions").attr('href', href_link_conditions + '?content_only=1');
{/literal}{/if}{literal}
{/literal}{/if}{literal}
}
else {
$(".sale a.button-grey, div.product-container a, div.product-container a.button-grey, .breadcrumb a, a.back_, a.back_sale,#category #header_logo a,#category #block_top_menu ul li:first-child,#product #header_logo a,#product #block_top_menu ul li:first-child, a.loggin_button, .slide-home a").on('click touchstart', function(e) {
e.stopPropagation();
var href = '/';
if(typeof $(this).attr('href') != 'undefined') {
href = $(this).attr('href');
}
else {
if($(this).find('a.button-grey').size() > 0) {
href = $(this).find('a.button-grey').attr('href');
}
}
$(location).attr('href',"{/literal}{$base_dir}ventes-privees{literal}");
return false;
});
}
});
$(".nextStep").bind( "click", function() {
var error = false;
if(!$('#customer_firstname').val()){
$('.error.firstname').html(prenom);
$('.error.firstname').show();
error = true;
}
if(!$('#customer_lastname').val()){
$('.error.lastname').html(nom);
$('.error.lastname').show();
error = true;
}
if(!$('#email').val()){
$('.error.email').html(mail);
$('.error.email').show();
error = true;
}
if(!$('#passwd').val()){
$('.error.password').html(mdp);
$('.error.password').show();
error = true;
}else{
var pass = $('#passwd').val();
if(pass.length < 6){
$('.error.password').html(mdp2);
$('.error.password').show();
error = true;
}
}
if(!error){
$('.create_account .error').hide();
$(".step_1").hide();
$(".step_login").hide();
$(".step_2").show();
}
});
$("#submitAccount2").bind( "click", function() {
var error = false;
if(!$('#newsletter').is(':checked')){
$('.error.newsletter').html(newsletter);
$('.error.newsletter').show();
error = true;
}
if(!error){
$("#submitAccount").trigger("click");
}
});
$(".to_step_login").bind( "click", function(e) {
e.preventDefault();
$(".login_form").show();
$(".create_form").hide();
});
$(".to_step_create").bind( "click", function(e) {
e.preventDefault();
$(".login_form").hide();
$(".create_form").show();
});
{/literal}
</script>
{/if}
{if (isset($popup_free_shipping) && $popup_free_shipping === true)}
<style type='text/css'>
#popup-free-shipping {
max-width:475px;
height: 400px;
background-color:#a9a1d4;
color:#FFFFFF;
padding: 30px 10px 10px;
}
#popup-free-shipping .title {
border-bottom:1px solid #c0badf;
font-size:25px;
text-align: center;
margin-bottom: 20px;
}
#popup-free-shipping .title span {
display:inline-block;
padding:5px 0;
}
#popup-free-shipping .free-shipping {
text-align: left;
margin-bottom: 3px;
margin-top: 20px;
color: #434242;
float: left;
font-size: 60px;
line-height: 60px;
font-family: "CaviarDreams";
font-weight: bold;
}
#popup-free-shipping .free-shipping-img {
border-bottom:2px solid #797590;
text-align: right;
}
#popup-free-shipping .free-shipping-img img {
width: 70px;
position: absolute;
top: -41px;
right: -52px;
}
#popup-free-shipping .free-shipping-conditions {
padding: 8px;
text-align: center;
font-size: 30px;
line-height: 32px;
margin-top: 25px;
font-family: "BrandonGrotesque";
}
#popup-free-shipping .free-shipping-conditions sup {
font-size: 12px;
}
#popup-free-shipping .free-shipping-code {
display:inline-block;
background-color:#434242;
padding:5px 9px;
font-size: 21px;
margin-top: 10px;
font-family: "BrandonGrotesque";
}
#popup-free-shipping .subscribe {
margin-top:40px;
}
#popup-free-shipping .subscribe .button-grey span {
font-size: 26px;
}
.fancybox-freeshipping .fancybox-close {
width: 43px;
height: 50px;
font-size: 28px;
line-height: 28px;
color: #333;
text-align: center;
background: url("/themes/site/img/close-popup.png?aa") no-repeat scroll 0% 0% transparent;
margin-right: 20px;
margin-top: 23px;
border-radius: 0;
-webkit-border-radius:0;
-moz-border-radius:0;
}
.fancybox-freeshipping .fancybox-close:after {
content:""
}
/*
@media (max-width: 990px) {
#popup-free-shipping .free-shipping-img img{ display: none; }
#popup-free-shipping .free-shipping-img{ margin: 137px 0 0; }
#popup-free-shipping .free-shipping{ width: 100%; text-align: center; font-size: 45px; line-height: 45px; }
#popup-free-shipping{ padding: 40px 30px; }
}
@media (max-width: 767px) {
#popup-free-shipping .free-shipping-img{ margin: 110px 0 0; }
#popup-free-shipping .free-shipping{ font-size: 30px; line-height: 35px; }
}
*/
@media (max-width: 500px) {
#popup-free-shipping .free-shipping{
font-size: 40px;
line-height: 40px; }
#popup-free-shipping .free-shipping-img img { }
}
@media (max-width: 440px) {
#popup-free-shipping .free-shipping{
font-size: 36px;
line-height: 36px; }
#popup-free-shipping .free-shipping-img img {
width: 55px;
position: absolute;
top: -32px;
right: -40px;
}
}
@media (max-width: 330px) {
#popup-free-shipping .free-shipping{
font-size: 32px;
line-height: 32px;
}
#popup-free-shipping .free-shipping-img img { display:none; }
}
</style>
<div id="content-popup-free-shipping" style="display:none;">
<div id="popup-free-shipping">
<div class="row">
<div class="col-md-offset-2 col-sm-offset-2 col-md-8 col-xs-offset-2 free-shipping"><span>{l s='LIVRAISON GRATUITE'}</span></div>
<div class="col-md-offset-2 col-sm-offset-2 col-xs-offset-2 col-md-8 col-sm-8 col-xs-8 free-shipping-img"><img src="{$img_dir}pdm-shipping.png" class="img-responsive" ></div>
</div>
<div class="row">
<div class="free-shipping-conditions col-md-12">
dès 79€<sup>TTC</sup> d'achat <br /> avec le code
<br />
<span class="free-shipping-code">{l s='LIVRAISON'}</span>
</div>
</div>
{*<div class="row">
<div class="subscribe col-md-12 text-center">
<a href="{$link->getPageLink('my-account')}" class="button-grey button-white"><span>{l s='Je m\'inscris'}</span></a>
</div>
</div>*}
</div>
</div>
{literal}
<script type="text/javascript">
$.fancybox( {content: $('#content-popup-free-shipping').html(), padding: 0, wrapCSS: 'fancybox-freeshipping'} );
</script>
{/literal}
{/if}
{/if}
{*I ADVIZE*}
{literal}
<script type="text/javascript">
window.mobilecheck = function() { var check = false; (function(a,b){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))check = true})(navigator.userAgent||navigator.vendor||window.opera); return check; }
if(mobilecheck()==false){
console.log("mobile");
(function() {
var idz = document.createElement('script'); idz.type = 'text/javascript'; idz.async = true;
idz.src = document.location.protocol + "//livechat.iadvize.com/iadvize.js?sid=14713";
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(idz, s);
})();
}
</script>
{/literal}
</body>
</html>
{if (isset($smarty.post.referralprogram) && $smarty.post.referralprogram)}
<script language='javascript'>
$(document).ready(function() {
$('#lofadva-pos-1').hide();
$('#lofadva-pos-2').hide();
$('#lofadva-pos-3').css('margin-top', '40px');
$('#lofadva-pos-3').find('a').each(function() {
var href_link = $(this).attr('href');
$(this).attr('href', href_link + '?content_only=1');
$(this).attr('target', '_blank');
});
});
</script>
{/if}