2016-01-04 12:48:08 +01:00
{ capture name = path }
{ l s = 'Trailer of' mod = 'privatesales' } { $sale - > title [ $cookie - > id_lang ] }
{ /capture }
{ include file = "$tpl_dir./breadcrumb.tpl" }
<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 }
<h2 class="title sale_title"><span> { $sale - > title [ $cookie - > id_lang ] } </span></h2>
<div class="content">
<div class="sale_links">
<a class="img_link" { if $sale - > isStarted ( ) } href=" { $link - > getCategoryLink ( $sale - > id_category , $sale - > alias [ $cookie - > id_lang ] ) | escape : 'htmlall' : 'UTF-8' } " { else } href=" { $base_dir_ssl } " { /if } ><img class="background" alt=" { $sale - > title [ $cookie - > id_lang ] } " src=" { $base_dir } { $path_uri } liston_ { $cookie - > id_lang } .jpg"></a>
<div class="links">
<div class="short_desc">
<!--h3> { $sale - > title [ $cookie - > id_lang ] } </h3-->
<span class="extra_info">
<span class="small_title">
{ if $sale - > isStarted ( ) }
{ if strpos ( $sale - > description [ $cookie - > id_lang ] , 'Ã' ) ! = = false }
{ $sale - > description [ $cookie - > id_lang ] | utf8_decode }
{ else }
{ $sale - > description [ $cookie - > id_lang ] }
{ /if }
{ 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 }
</span>
</span>
</div>
<div class="actions">
<a class="enter" { if $sale - > isStarted ( ) } href=" { $link - > getCategoryLink ( $sale - > id_category , $sale - > alias [ $cookie - > id_lang ] ) | escape : 'htmlall' : 'UTF-8' } " { else } href=" { $base_dir_ssl } " { /if } ></a>
</div>
</div>
</div>
<div class="left">
<div class="actions { if $sale - > isStarted ( ) } salestarted { /if } ">
{ if $sale - > isStarted ( ) }
{ else }
{ 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>
2017-04-27 14:24:48 +02:00
{ *
2016-01-04 12:48:08 +01:00
<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>
2017-04-27 14:24:48 +02:00
</div>*}
2016-01-04 12:48:08 +01:00
</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>