bebeboutik/modules/privatesales/trailer.tpl

115 lines
4.3 KiB
Smarty
Raw Permalink Normal View History

2016-01-04 12:49:26 +01:00
{capture name=path}
{l s='Trailer of' mod='privatesales'} {$sale->title[$cookie->id_lang]}
{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}
<h1>{$sale->title[$cookie->id_lang]}</h1>
<style type="text/css">
{if $bgColumns}{literal}
#columns {
background-image: {/literal}url("{$path}trailercol_{$cookie->id_lang}.png");{literal}
}
{/literal}{/if}
</style>
{if $sale->video[$cookie->id_lang] != ''}
<script type="text/javascript" src="{$base_dir_ssl}modules/privatesales/jQuery.tubeplayer.min.js"></script>
{/if}
{if $show_notification}
<script type="text/javascript">{literal}
function showForm() {
$(".actions #subscribed").fadeOut(function() {
$(".actions form").fadeIn();
});
}
{/literal}</script>
{/if}
{if $notify}
{if $notify == 1}
<p class="success">
{l s='Your subscription is complete, you will be notified before the sale starts' mod='privatesales'}
</p>
{elseif $notify == 2}
<p class="warning">
{l s='You already subscribed to this sale' mod='privatesales'}
</p>
{elseif $notify == 3}
<p class="success">
{l s='Your subscription to this sale has been deleted' mod='privatesales'}
</p>
{/if}
</p>
{/if}
<div class="content">
<div class="left">
<div class="description">
{$sale->description[$cookie->id_lang]}
</div>
<div class="actions{if $sale->isStarted()} salestarted{/if}">
{if $sale->isStarted()}
<a class="button" href="{$link->getCategoryLink($sale->id_category, $sale->alias[$cookie->id_lang])|escape:'htmlall':'UTF-8'}">{l s='Enter the sale' mod='privatesales'}</a>
{else}
{if $show_signin}
<div class="clearfix">
<p>{l s='This sale is not started yet.' mod='privatesales'}</p>
<a class="button" href="{$base_dir_ssl}">{if $cookie->isLogged()}{l s='Click here to see other sales' mod='privatesales'}{else}{l s='Sign on or register to see other sales' mod='privatesales'}{/if}</a>
</div>
{/if}
{if $show_notification}
{if $subscribed}
<div id="subscribed">
<p class="good">{l s='You already subscribed to this sale.' mod='privatesales'}</p>
<a onclick="showForm(); return false;" class="small_button">{l s='Unsubscribe' mod='privatesales'}</a>
</div>
<form method="post" action="" class="hidden">
<div>
<label for="notify_email">{l s='You can unsubscribe by submitting the form below:' mod='privatesales'}</label>
<input type="text"{if $cookie->isLogged()} value="{$cookie->email|escape:'htmlall':'UTF-8'}"{/if} placeholder="{l s='Your email address' mod='privatesales'}" id="notify_email" name="notify_email" />
<input name="notify_del" type="submit" class="button" value="{l s='Unsubscribe' mod='privatesales'}" />
</div>
</form>
{else}
<form method="post" action="">
<div>
<label for="notify_email">{l s='Notify me of this sale' mod='privatesales' mod='privatesales'}</label>
<input type="text"{if $cookie->isLogged()} value="{$cookie->email|escape:'htmlall':'UTF-8'}"{/if} placeholder="{l s='Your email address' mod='privatesales'}" id="notify_email" name="notify_email" />
<input name="notify_add" type="submit" class="button" value="{l s='Submit' mod='privatesales'}" />
</div>
</form>
{/if}
{/if}
{/if}
</div>
<div class="share">
<p class="facebook"><a onclick="window.open(this.href); return false;" href="http://www.facebook.com/sharer.php?u={$page_url|rawurlencode}&t={$sale->title[$cookie->id_lang]|rawurlencode}%20{l s='on' mod='privatesales'}%20{$shop_name|rawurlencode}">{l s='Share on Facebook' mod='privatesales'}</a></p>
<p class="twitter"><a onclick="window.open(this.href); return false;" href="https://twitter.com/share?url={$page_url|rawurlencode}">{l s='Tweet this page' mod='privatesales'}</a></p>
</div>
</div>
<div class="right">
{if $sale->video[$cookie->id_lang] != ''}
<div id="videoplayer"></div>
<script type="text/javascript">
{assign var=videocode value='?v='|explode:$sale->video[$cookie->id_lang]}
{assign var=videocode value='&'|explode:$videocode[1]}
{literal}
$(document).ready(function() {
jQuery("#videoplayer").tubeplayer({
width: 640,
height: 360,
allowFullScreen: "true",
initialVideo: "{/literal}{$videocode[0]}{literal}",
preferredQuality: "large",
});
});
{/literal}</script>
{/if}
{if $bgCenter}
<img src="{$path}trailercenter_{$cookie->id_lang}.png" alt="" />
{/if}
</div>
</div>