Srv Bebeboutik bcdb91f1e3 prepare ssl
2016-03-31 12:06:08 +02:00

346 lines
18 KiB
Smarty
Executable File

{*if $cookie->isLogged() OR $showtoguests*}
<!-- Add fancybox -->
<script src="{$base_dir}js/jquery/jquery.fancybox-1.3.4.js" type="text/javascript"></script>
<script type="text/javascript">
{if !$cookie->isLogged() AND !$showtoguests}
{literal}
$('document').ready(function(){
$('.flash_sale a.button').unbind('click').removeAttr('href').click(function(){
$('.modalbox_shadow').fadeIn(100);
$('.modalbox_login').fadeIn(250);
});
$('li.modalbox').unbind('click').click(function(){
$('.modalbox_shadow').fadeIn(100);
$('.modalbox_login').fadeIn(250);
});
$('.modalbox_shadow').click(function(){
$(this).fadeOut(100);
$('.modalbox_login').fadeOut(100);
$('.modalbox_subscribe').fadeOut(100);
});
$('.modalbox_login .close_button').click(function(){
$('.modalbox_shadow').fadeOut(100);
$('.modalbox_login').fadeOut(100);
});
$('.slider_sales .link a').unbind('click').removeAttr('href').click(function(){
$('.modalbox_shadow').fadeIn(100);
$('.modalbox_login').fadeIn(250);
});
$('#skin-left').unbind('click').removeAttr('href').click(function(){
$('.modalbox_shadow').fadeIn(100);
$('.modalbox_login').fadeIn(250);
});
$('#skin-right').unbind('click').removeAttr('href').click(function(){
$('.modalbox_shadow').fadeIn(100);
$('.modalbox_login').fadeIn(250);
});
$('.slider_sales .info_sellers a.product_link_sellers').unbind('click').removeAttr('href').click(function(){
$('.modalbox_shadow').fadeIn(100);
$('.modalbox_login').fadeIn(250);
});
$('#create-account_form').submit(function(e){
e.preventDefault();
$('.modalbox_login').hide();
$('.modalbox_subscribe').show(250);
});
});
{/literal}
{/if}
</script>
<div id="privatesales_block">
{* Log in pop up *}
{if !$cookie->isLogged() AND !$showtoguests}
<div class="modalbox_shadow" style="display: none;"></div>
<div class="modalbox_login" style="display: none;">
<a class="close_button" title="{l s='fermer' mod='privatesales'}"></a>
<form action="{$link->getPageLink('authentication.php', true)}" method="post" id="create-account_form" class="std">
<fieldset>
<h3>{l s='Join' mod='privatesales'}</h3>
<span class="ribbon"></span>
<p class="text">
{l s='Not yet a member? Sign in!' mod='privatesales'}
</p>
<ul>
<li><span>{l s='Offer 1' mod='privatesales'}</span></li>
<li><span>{l s='Offer 2' mod='privatesales'}</span></li>
<li><span>{l s='Offer 3' mod='privatesales'}</span></li>
<li><span>{l s='Offer 4' mod='privatesales'}</span></li>
</ul>
<p class="submit">
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'htmlall':'UTF-8'}" />
{else}<input type="hidden" class="hidden" name="back" value="{$smarty.const.__PS_BASE_URI__}" />{/if}
<input type="submit" id="SubmitCreate" name="SubmitCreate" class="button_large" value="{l s='Subscribe' mod='privatesales'}" />
<input type="hidden" class="hidden" name="email_create" value="1" />
<input type="hidden" class="hidden" name="SubmitCreate" value="{l s='Create your account' mod='privatesales'}" />
</p>
</fieldset>
</form>
<form action="{$link->getPageLink('authentication.php', true)}" method="post" id="login_form" class="std">
<fieldset>
<h3>{l s='Already registered ?' mod='privatesales'}</h3>
<p class="text">
<label for="email">{l s='E-mail address' mod='privatesales'}</label>
<span><input type="text" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|escape:'htmlall':'UTF-8'|stripslashes}{/if}" class="account_input" /></span>
</p>
<p class="text">
<label for="passwd">{l s='Password' mod='privatesales'}</label>
<span><input type="password" id="passwd" name="passwd" value="{if isset($smarty.post.passwd)}{$smarty.post.passwd|escape:'htmlall':'UTF-8'|stripslashes}{/if}" class="account_input" /></span>
</p>
<p class="submit">
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'htmlall':'UTF-8'}" />
{else}<input type="hidden" class="hidden" name="back" value="{$smarty.const.__PS_BASE_URI__}" />{/if}
<input type="submit" id="SubmitLogin" name="SubmitLogin" class="button" value="{l s='Log in' mod='privatesales'}" />
<a href="{$link->getPageLink('password.php')}">{l s='Forgot your password?' mod='privatesales'}</a>
</p>
</fieldset>
{*<p class="bold">
{$shop_name} {$smarty.now|date_format:"%Y"} - {l s='All rights reserved' mod='privatesales'}
</p>
<p>{l s='First notice line' mod='privatesales'}</p>
<p>{l s='Second notice line' mod='privatesales'}</p>*}
</form>
</div>
<div class="modalbox_subscribe">
<a class="close_button" title="{l s='fermer' mod='privatesales'}"></a>
<form action="{$link->getPageLink('authentication.php', true)}" method="post" id="account-creation_form" class="std">
<fieldset>
<h3>{l s='Registered' mod='privatesales'}</h3>
<p class="required text">
<label for="customer_firstname">{l s='First name' mod='privatesales'}</label>
<input onkeyup="$('#firstname').val(this.value);" type="text" class="text" id="customer_firstname" name="customer_firstname" value="{if isset($smarty.request.customer_firstname)}{$smarty.request.customer_firstname}{/if}" />
<sup>*</sup>
</p>
<p class="required text">
<label for="customer_lastname">{l s='Last name' mod='privatesales'}</label>
<input onkeyup="$('#lastname').val(this.value);" type="text" class="text" id="customer_lastname" name="customer_lastname" value="{if isset($smarty.request.customer_lastname)}{$smarty.request.customer_lastname}{/if}" />
<sup>*</sup>
</p>
<p class="required text">
<label for="email">{l s='E-mail' mod='privatesales'}</label>
<input type="text" class="text" id="email" name="email" value="{if isset($smarty.request.email)}{$smarty.request.email}{/if}" />
<sup>*</sup>
</p>
<p class="required password">
<label for="passwd">{l s='Password' mod='privatesales'}</label>
<input type="password" class="text" name="passwd" id="passwd" />
<sup>*</sup>
{*<span class="form_info">{l s='(5 characters min.)'}</span>*}
</p>
{$HOOK_CREATE_ACCOUNT_FORM}
<script type="text/javascript">
$(function() {
var mail = $("#referralprogram").val();
var data = mail.split('@');
if(data[1] == 'bebeboutik.com'){
$("#referralprogram").parent().hide();
}
});
</script>
<fieldset>
{if isset($newsletter) && $newsletter}
<p class="checkbox" >
<input type="checkbox" name="newsletter" id="newsletter" value="1" {if isset($smarty.post.newsletter) AND $smarty.post.newsletter == 1} checked="checked"{/if} />
<label for="newsletter">{l s='Sign up for our newsletter' mod='privatesales'}</label>
</p>
{*<p class="checkbox" >
<input type="checkbox"name="optin" id="optin" value="1" {if isset($smarty.post.optin) AND $smarty.post.optin == 1} checked="checked"{/if} />
<label for="optin">{l s='Receive special offers from our partners'}</label>
</p>*}
{/if}
</fieldset>
<p class="cart_navigation required submit">
<input type="hidden" name="email_create" value="1" />
<input type="hidden" name="is_new_customer" value="1" />
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'htmlall':'UTF-8'}" />
{else}<input type="hidden" class="hidden" name="back" value="{$smarty.const.__PS_BASE_URI__}" />{/if}
<input type="submit" name="submitAccount" id="submitAccount" value="{l s='Register' mod='privatesales'}" class="exclusive" onclick="if($('#newsletter:checked').length == 0) { alert('{l s='Please accept our terms of use to continue' js=1}'); return false; }" />
<span><sup>*</sup>{l s='Required field' mod='privatesales'}</span>
</p>
</fieldset>
</form>
</div>
{/if}
</div>
<div id="privatesales_block">
<div id="block_sales_home">
{*<h2><span>{l s='Current sales' mod='privatesales'}</span></h2>*}
<div class="content">
{if count($sales) > 0}
{assign var=extrafields value=$HOOK_PRIVATESALES_LISTING|unserialize}
<ul>{strip}{assign var=sales_index value=0}
{foreach $sales as $sale name=sales}
{if count(array_intersect($customer_groups, $sale->groups))>0}
<li style="background:url('https://static.bebeboutik.com{$path}img/{$sale->id}/liston_{$cookie->id_lang}.jpg') no-repeat;"
class="modalbox {if $sales_index > 4}{if ($sales_index + 2) % 3 == 0}first{/if}{else}{if ($sales_index) % 2 == 0}first{/if}{/if}"
{if $cookie->isLogged() OR $showtoguests}
onclick="window.location.href='{$link->getCategoryLink($sale->id_category, $sale->alias[$cookie->id_lang])|escape:'htmlall':'UTF-8'}';"
{/if}>
{*<a href="{$link->getCategoryLink($sale->id_category, $sale->alias[$cookie->id_lang])|escape:'htmlall':'UTF-8'}"><img class="background" alt="{$sale->title[$cookie->id_lang]}" src="{$path}img/{$sale->id}/liston_{$cookie->id_lang}.jpg" /></a>*}
{include file="./themes/site/delay.tpl" delivery_delay=$sale->delivery_delay}
<div class="short_desc">
<h3>{$sale->title[$cookie->id_lang]}</h3>
{if isset($extrafields[$sale->id])}
{$extrafields[$sale->id]}
{/if}
<div style="clear:both;"></div>
<div class="border-bottom"></div>
<div class="show_desc">{$sale->description[$cookie->id_lang]|truncate:165:'...'|escape:'htmlall':'UTF-8'}</div>
</div>
<div class="actions">
<div class="date">
{if $smarty.now|date_format == $sale->date_start|date_format}
{l s='From now !' mod='privatesales'}
{else}
{l s='To' mod='privatesales'} {$sale->date_end|date_format:'%d/%m'} {l s='at' mod='privatesales'} {$sale->date_end|date_format:'%H:%M'}
{/if}
</div>
<div class="date2">
{l s='To' mod='privatesales'} {$sale->date_end|date_format:'%d/%m'}
</div>
{*<a class="button_small" href="{$base_dir_ssl}{if $rewriting}{$base_url}/{$sale->id}-{$sale->title[$lang]|str2url}{else}modules/privatesales/trailer.php?id_sale={$sale->id}{/if}">{l s='Trailer' mod='privatesales'}</a>*}
<a href="https://www.facebook.com/sharer.php?u={$base_dir_ssl}{if $rewriting}{$base_url}/{$sale->id}-{$sale->title[$cookie->id_lang]|str2url}{else}modules/privatesales/trailer.php%3Fid_sale={$sale->id}{/if}&t={$sale->title[$cookie->id_lang]|rawurlencode}%20{l s='on' mod='privatesales'}%20{$shop_name|rawurlencode}" class="pop fbshare">{l s='Share on Facebook' mod='privatesales'}</a>
<a href="https://twitter.com/share?url={$base_dir_ssl}{if $rewriting}{$base_url}/{$sale->id}-{$sale->title[$cookie->id_lang]|str2url}{else}modules/privatesales/trailer.php%3Fid_sale={$sale->id}{/if}" class="pop twshare">{l s='Tweet this page' mod='privatesales'}</a>
<a href="{$base_dir_ssl}modules/advsendtoafriend/sendtoafriend-form.php?id_sale={$sale->id}" class="pop mailshare">{l s='Send to a friend' mod='privatesales'}</a>
<a class="enter" href="{$link->getCategoryLink($sale->id_category, $sale->alias[$cookie->id_lang])|escape:'htmlall':'UTF-8'}">{l s='View the sale' mod='privatesales'}</a>
</div>
</li>
{if $sales_index == 1}
<li id="list_invite">
<form class="form_invite_home" action="/modules/invite/invite-program.php" method="POST">
<div class="int">
<h3>{l s='Sponsor and win 10€' mod='privatesales'}</h3>
<input type="text" name="friendsEmail[]" placeholder="{l s='Your friend\'s email' mod='privatesales'}" >
<input type="submit" value="ok">
<p><a href="/modules/invite/invite-program.php">{l s='Sponsor more friends' mod='privatesales'}</a></p>
</div>
</form>
</li>
{elseif $sales_index == 3}
<li id="list_gc">
<div class="best_sales">
{* HOOK bestSaleHome *}
{$bestSaleHome}
</div>
<div class="fb_block">
{if $cookie->id_lang == 2}
<iframe src="https://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fbebeboutik&amp;width=271&amp;height=62&amp;colorscheme=light&amp;show_faces=false&amp;border_color&amp;stream=false&amp;header=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:271px; height:62px;" allowTransparency="true"></iframe>
{elseif $cookie->id_lang == 3}
<iframe src="https://www.facebook.com/plugins/likebox.php?href=https://www.facebook.com/Beb%C3%A9-Boutik-ES-703873103075174/&amp;width=271&amp;height=62&amp;colorscheme=light&amp;show_faces=false&amp;border_color&amp;stream=false&amp;header=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:271px; height:62px;" allowTransparency="true"></iframe>
{/if}
</div>
</li>
{/if}
{assign var=sales_index value=$sales_index+1}
{/if}
{/foreach}
{/strip}</ul>
{else}
<div class="nosale">
{l s='No active sale at the moment' mod='privatesales'}
</div>
{/if}
</div>
</div>
<div id="block_sales_home_future">
<h2><span>{l s='Future sales' mod='privatesales'}</span></h2>
<div class="content">
{if count($futuresales) > 0}
<ul>{strip}
{foreach $futuresales as $sale name=futuresales}
{if count(array_intersect($customer_groups, $sale->groups))>0}
<li{if $smarty.foreach.futuresales.index % 3 == 0} class="first"{/if} style="background:url('https://static.bebeboutik.com{$path}img/{$sale->id}/listoff_{$cookie->id_lang}.jpg') no-repeat;"
{if $cookie->isLogged() && in_array('2', $customer_groups)}
onclick="window.location.href='{$link->getCategoryLink($sale->id_category, $sale->alias[$cookie->id_lang])|escape:'htmlall':'UTF-8'}';"
{/if}>
{*<img class="background" alt="{$sale->title[$cookie->id_lang]}" src="{$path}img/{$sale->id}/listoff_{$cookie->id_lang}.jpg" />*}
{*<div class="short_desc">
<h3>{$sale->title[$cookie->id_lang]}</h3>
{$sale->description[$cookie->id_lang]|escape:'htmlall':'UTF-8'}
<div class="date">{l s='From' mod='privatesales'} {$sale->date_start|date_format:'%A %e %b %H:%M'} {l s='To' mod='privatesales'} {$sale->date_end|date_format:'%A %e %b %H:%M'}</div>
</div>*}
{include file="./themes/site/delay.tpl" delivery_delay=$sale->delivery_delay}
<div class="short_desc">
<h3>{$sale->title[$cookie->id_lang]}</h3>
{if isset($extrafields[$sale->id])}
{$extrafields[$sale->id]}
{/if}
<div style="clear:both;"></div>
<div class="border-bottom"></div>
<div class="show_desc">{$sale->description[$cookie->id_lang]|truncate:165:'...'|escape:'htmlall':'UTF-8'}</div>
</div>
{* <div class="actions">
<a href="https://www.facebook.com/sharer.php?u={$base_dir_ssl}{if $rewriting}{$base_url}/{$sale->id}-{$sale->title[$cookie->id_lang]|str2url}{else}modules/privatesales/trailer.php%3Fid_sale={$sale->id}{/if}&t={$sale->title[$cookie->id_lang]|rawurlencode}%20{l s='on' mod='privatesales'}%20{$shop_name|rawurlencode}" class="pop fbshare">{l s='Share on Facebook' mod='privatesales'}</a>
<a href="https://twitter.com/share?url={$base_dir_ssl}{if $rewriting}{$base_url}/{$sale->id}-{$sale->title[$cookie->id_lang]|str2url}{else}modules/privatesales/trailer.php%3Fid_sale={$sale->id}{/if}" class="pop twshare">{l s='Tweet this page' mod='privatesales'}</a>
<a href="{$base_dir_ssl}modules/advsendtoafriend/sendtoafriend-form.php?id_sale={$sale->id}" class="pop mailshare">{l s='Send to a friend' mod='privatesales'}</a>
<a class="button_small" href="{$base_dir_ssl}{if $rewriting}{$base_url}/{$sale->id}-{$sale->title[$cookie->id_lang]|str2url}{else}modules/privatesales/trailer.php?id_sale={$sale->id}{/if}">{l s='Trailer' mod='privatesales'}</a>
<a class="disabled">{l s='Available soon' mod='privatesales'}</a>
</div>*}
<div class="actions">
<div class="date">
{l s='From 1' mod='privatesales'} {$sale->date_start|date_format:'%e/%m'} {l s='on 1' mod='privatesales'} {$sale->date_start|date_format:'%H:%M'}
</div>
<a href="https://www.facebook.com/sharer.php?u={$base_dir_ssl}{if $rewriting}{$base_url}/{$sale->id}-{$sale->title[$cookie->id_lang]|str2url}{else}modules/privatesales/trailer.php%3Fid_sale={$sale->id}{/if}&t={$sale->title[$cookie->id_lang]|rawurlencode}%20{l s='on' mod='privatesales'}%20{$shop_name|rawurlencode}" class="pop fbshare">{l s='Share on Facebook' mod='privatesales'}</a>
<a href="https://twitter.com/share?url={$base_dir_ssl}{if $rewriting}{$base_url}/{$sale->id}-{$sale->title[$cookie->id_lang]|str2url}{else}modules/privatesales/trailer.php%3Fid_sale={$sale->id}{/if}" class="pop twshare">{l s='Tweet this page' mod='privatesales'}</a>
<a href="{$base_dir_ssl}modules/advsendtoafriend/sendtoafriend-form.php?id_sale={$sale->id}" class="pop mailshare">{l s='Send to a friend' mod='privatesales'}</a>
{* <a class="enter" href="{$link->getCategoryLink($sale->id_category, $sale->alias[$cookie->id_lang])|escape:'htmlall':'UTF-8'}">{l s='View the sale' mod='privatesales'}</a>*}
</div>
</li>
{/if}
{/foreach}
{/strip}</ul>
{else}
<div class="nosale">
{l s='No future sale at the moment' mod='privatesales'}
</div>
{/if}
</div>
</div>
<script type="text/javascript">{literal}
<!--
$(document).ready(function() {
$("#privatesales_block .actions a.pop").click(function(e) {
e.stopPropagation();
window.open(e.target.href);
return false;
});
$('a.enter').click(function(e){
e.stopPropagation();
e.preventDefault();
$(this).parent().parent().trigger('click');
})
});
-->
{/literal}</script>
{if !$cookie->isLogged()}
<script type="text/javascript">{literal}
{/literal}</script>
{/if}
</div>
{*/if*}