85 lines
3.0 KiB
Smarty
Executable File
85 lines
3.0 KiB
Smarty
Executable File
{capture name=path}<a href="{$link->getPageLink('my-account.php', TRUE)}">{l s='My account' mod='invite'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Referral Program' mod='invite'}{/capture}
|
|
{include file="$tpl_dir./breadcrumb.tpl"}
|
|
|
|
<h1 class="title"><span>{l s='Referral program' mod='invite'}</span></h1>
|
|
|
|
{if $error}
|
|
<p class="error">
|
|
{if $error == 'conditions not valided'}
|
|
{l s='You need to agree to the conditions of the referral program!' mod='invite'}
|
|
{elseif $error == 'email invalid'}
|
|
{l s='At least one e-mail address is invalid!' mod='invite'}
|
|
{elseif $error == 'email exists'}
|
|
{l s='Someone with this e-mail address has already been sponsored!' mod='invite'}: {foreach from=$mails_exists item=mail}{$mail} {/foreach}
|
|
{elseif $error == 'no revive checked'}
|
|
{l s='Please mark at least one checkbox' mod='invite'}
|
|
{elseif $error == 'cannot add friends'}
|
|
{l s='Cannot add friends to database' mod='invite'}
|
|
{/if}
|
|
</p>
|
|
{/if}
|
|
|
|
{if $invitation_sent}
|
|
<p class="success">
|
|
{if $nbInvitation > 1}
|
|
{l s='E-mails have been sent to your friends!' mod='invite'}
|
|
{else}
|
|
{l s='An e-mail has been sent to your friend!' mod='invite'}
|
|
{/if}
|
|
</p>
|
|
{/if}
|
|
|
|
{if $revive_sent}
|
|
<p class="success">
|
|
{if $nbRevive > 1}
|
|
{l s='Reminder e-mails have been sent to your friends!' mod='invite'}
|
|
{else}
|
|
{l s='A reminder e-mail has been sent to your friend!' mod='invite'}
|
|
{/if}
|
|
</p>
|
|
{/if}
|
|
{if $canSendInvitations && $showInviteLink}
|
|
<div id="invite_link">
|
|
<p>
|
|
<label>{l s='Share your referral link with your friends:' mod='invite'}</label>
|
|
<input type="text" value="{$invitelink|escape:html:'UTF-8'}" onFocus="this.selectionStart=0; this.selectionEnd=this.value.length;" onTouchEnd="this.selectionStart=0; this.selectionEnd=this.value.length;" onMouseUp="return false;" />
|
|
</p>
|
|
</div>
|
|
{/if}
|
|
|
|
<div class="tab_wrap opened">
|
|
<h2 onclick="$(this).parent().toggleClass('opened');">
|
|
<span class="gradient"><a class="show_more">{l s='Sponsor my friends' mod='invite'}</a></span>
|
|
</h2>
|
|
<div id="idTab1" class="clearfix">
|
|
{assign var="tab1" value=$tpl_dir|cat:"modules/invite/tab1.tpl"}
|
|
{include file="$tab1"}
|
|
</div>
|
|
</div>
|
|
<div class="tab_wrap">
|
|
<h2 onclick="$(this).parent().toggleClass('opened');">
|
|
<span class="gradient"><a class="show_more">{l s='Pending friends' mod='invite'}</a></span>
|
|
</h2>
|
|
<div id="idTab2" class="clearfix">
|
|
{assign var="tab2" value=$tpl_dir|cat:"modules/invite/tab2.tpl"}
|
|
{include file="$tab2"}
|
|
</div>
|
|
</div>
|
|
<div class="tab_wrap">
|
|
<h2 onclick="$(this).parent().toggleClass('opened');">
|
|
<span class="gradient"><a class="show_more">{l s='Friends I sponsored' mod='invite'}</a></span>
|
|
</h2>
|
|
<div id="idTab3" class="clearfix">
|
|
{assign var="tab3" value=$tpl_dir|cat:"modules/invite/tab3.tpl"}
|
|
{include file="$tab3"}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<p class="footer_links">
|
|
<a class="back_account" href="{$link->getPageLink('my-account.php', true)}" class="button">
|
|
<i class="icon-user"></i><span>{l s='Back to my account' mod='invite'}</span>
|
|
</a>
|
|
</p>
|