Compare commits

...

8 Commits

Author SHA1 Message Date
David
89f3aff521 image cache invalidation
breadcrumb visible on error
2018-02-23 18:46:48 +01:00
David
d89616320f Removed useless link 2018-02-20 11:09:45 +01:00
David
9e706f18d4 Image integration 2018-02-20 10:42:38 +01:00
David
33753fc289 Allow now the combo between invite / sponsor email in landingpage module
Fix on desktop
2018-02-19 20:02:23 +01:00
David
2df6c80619 Removed dead code 2018-02-19 11:54:31 +01:00
David
b4894392cd Remaining png extensions in the code have been removed 2018-02-19 10:57:58 +01:00
David
674d095cf0 Added file field in admin form
Finished page integration
2018-02-16 15:52:35 +01:00
David
f73be8dba4 New landing
XSS vulnerabilities fix
2018-02-02 10:52:55 +01:00
11 changed files with 212 additions and 104 deletions

View File

@ -1212,8 +1212,10 @@ RewriteRule ^invite/(.*)$ '.__PS_BASE_URI__.'modules/invite/sponsor.php?sponsor=
unset($_COOKIE[$cName]);
}
setcookie($cName, base64_encode($referal_email), time() + 3600 * 24, '/', 'bebeboutik.com');
$smarty->assign('sponsor_email', $referal_email);
$smarty_value = $smarty->get_template_vars('sponsor_email');
if($smarty_value === null && $referal_email !== '') { //we prevent overwrite
$smarty->assign('sponsor_email', $referal_email);
}
return $this->display(__FILE__, 'authentication.tpl');
}
@ -1234,6 +1236,9 @@ RewriteRule ^invite/(.*)$ '.__PS_BASE_URI__.'modules/invite/sponsor.php?sponsor=
}
}
}
}
public function get_credit_value($id_customer=0) {

View File

@ -27,7 +27,8 @@ class AdminLandingPages extends AdminTab {
"'.pSQL(Tools::str2url($name)).'",
"'.pSQL(Tools::getValue('text1')).'",
"'.pSQL(Tools::getValue('text2')).'",
"'.pSQL(Tools::getValue('tag')).'"
"'.pSQL(Tools::getValue('tag')).'",
"'.pSQL(Tools::getValue('parrain_email')).'"
)
');
@ -41,7 +42,7 @@ class AdminLandingPages extends AdminTab {
}
if(isset($_FILES['img2_'.$language['id_lang']]) && $_FILES['img2_'.$language['id_lang']]['name'] != '') {
if(!copy($_FILES['img2_'.$language['id_lang']]['tmp_name'], _PS_ROOT_DIR_.'/modules/landingpages/img/'.$id_landing_page.'_2_'.$language['id_lang'].'.png')) {
if(!copy($_FILES['img2_'.$language['id_lang']]['tmp_name'], _PS_ROOT_DIR_.'/modules/landingpages/img/'.$id_landing_page.'_2_'.$language['id_lang'].'.jpg')) {
$this->_errors[] = $this->l('An error occured during the image upload.');
}
}
@ -81,7 +82,8 @@ class AdminLandingPages extends AdminTab {
`name` = "'.pSQL(Tools::str2url($name)).'",
`text1` = "'.pSQL(Tools::getValue('text1')).'",
`text2` = "'.pSQL(Tools::getValue('text2')).'",
`tag` = "'.pSQL(Tools::getValue('tag'), true).'"
`tag` = "'.pSQL(Tools::getValue('tag'), true).'",
`parrain` = "'.pSQL(Tools::getValue('parrain_email'), true).'"
WHERE `id_landing_page` = '.$id_landing_page.'
');
@ -93,7 +95,7 @@ class AdminLandingPages extends AdminTab {
}
if(isset($_FILES['img2_'.$language['id_lang']]) && $_FILES['img2_'.$language['id_lang']]['name'] != '') {
if(!copy($_FILES['img2_'.$language['id_lang']]['tmp_name'], _PS_ROOT_DIR_.'/modules/landingpages/img/'.$id_landing_page.'_2_'.$language['id_lang'].'.png')) {
if(!copy($_FILES['img2_'.$language['id_lang']]['tmp_name'], _PS_ROOT_DIR_.'/modules/landingpages/img/'.$id_landing_page.'_2_'.$language['id_lang'].'.jpg')) {
$this->_errors[] = $this->l('An error occured during the image upload.');
}
}
@ -327,6 +329,13 @@ class AdminLandingPages extends AdminTab {
</div>
<div class="clear"></div>
</div>';
echo '<label>'.$this->l('Email Parrain :').'</label>
<div class="margin-form">
<div id="enabled" style="float: left;">
<input name="parrain_email" type="text" value="'.($this->curlp? $this->curlp['parrain']: '').'" />
</div>
<div class="clear"></div>
</div>';
echo '<label>'.$this->l('Tag :').'</label>
<div class="margin-form">
@ -343,7 +352,8 @@ class AdminLandingPages extends AdminTab {
<input type="file" name="img1_'.$language['id_lang'].'" />
<p>'.$this->l('Size:').' '.$this->l('img1 size').'</p>';
if($this->curlp && file_exists(_PS_ROOT_DIR_.'/modules/landingpages/img/'.$this->curlp['id_landing_page'].'_1_'.$language['id_lang'].'.jpg')) {
echo '<p><a href="'.__PS_BASE_URI__.'modules/landingpages/img/'.$this->curlp['id_landing_page'].'_1_'.$language['id_lang'].'.jpg" onclick="window.open(this.href); return false;"> '.$this->l('Preview').'</a></p>';
echo '<img src="'.__PS_BASE_URI__.'modules/landingpages/img/'.$this->curlp['id_landing_page'].'_1_'.$language['id_lang'].'.jpg?v='.time().'" width="350" /><br>
<p><a href="'.__PS_BASE_URI__.'modules/landingpages/img/'.$this->curlp['id_landing_page'].'_1_'.$language['id_lang'].'.jpg?v='.time().'" onclick="window.open(this.href); return false;"> '.$this->l('Preview').'</a></p>';
}
echo '
</div>';
@ -352,14 +362,15 @@ class AdminLandingPages extends AdminTab {
echo '<div class="clear"></div>
</div>';
echo '<label style="display: none;">'.$this->l('Brands image:').'</label>
<div class="margin-form" style="display: none;">';
echo '<label>'.$this->l('Header Mobile:').'</label>
<div class="margin-form">';
foreach($this->_languages as $language) {
echo '<div id="img2_'.$language['id_lang'].'" style="display: '.($language['id_lang'] == $this->_defaultFormLanguage ? 'block' : 'none').'; float: left;">
<input type="file" name="img2_'.$language['id_lang'].'" />
<p>'.$this->l('Size:').' '.$this->l('img2 size').'</p>';
if($this->curlp && file_exists(_PS_ROOT_DIR_.'/modules/landingpages/img/'.$this->curlp['id_landing_page'].'_2_'.$language['id_lang'].'.png')) {
echo '<p><a href="'.__PS_BASE_URI__.'modules/landingpages/img/'.$this->curlp['id_landing_page'].'_2_'.$language['id_lang'].'.png" onclick="window.open(this.href); return false;"> '.$this->l('Preview').'</a></p>';
if($this->curlp && file_exists(_PS_ROOT_DIR_.'/modules/landingpages/img/'.$this->curlp['id_landing_page'].'_2_'.$language['id_lang'].'.jpg')) {
echo '<img src="'.__PS_BASE_URI__.'modules/landingpages/img/'.$this->curlp['id_landing_page'].'_2_'.$language['id_lang'].'.jpg?v='.time().'" width="350" /><br>
<p><a href="'.__PS_BASE_URI__.'modules/landingpages/img/'.$this->curlp['id_landing_page'].'_2_'.$language['id_lang'].'.jpg?v='.time().'" onclick="window.open(this.href); return false;"> '.$this->l('Preview').'</a></p>';
}
echo '
</div>';

View File

@ -72,9 +72,11 @@ class LandingPages extends Module {
`name` VARCHAR(255) NOT NULL,
`text1` VARCHAR(255) NOT NULL,
`text2` VARCHAR(255) NOT NULL,
`parrain` VARCHAR(255) NULL,
PRIMARY KEY(`id_landing_page`)
) ENGINE=MyIsam DEFAULT CHARSET=utf8
';
//ALTER TABLE ps_landing_page ADD parrain VARCHAR(255) NULL;
if(!Db::getInstance()->Execute($query)) {
return FALSE;
}
@ -191,6 +193,7 @@ class LandingPages extends Module {
$id_landing_page = 0;
$lp_text1 = '';
$lp_text2 = '';
$email_parrain = '';
if($name = Tools::getValue('lp')) {
if($landing = Db::getInstance()->getRow('
@ -203,19 +206,39 @@ class LandingPages extends Module {
$lp_text1 = $landing['text1'];
$lp_text2 = $landing['text2'];
$tag = $landing['tag'];
$email_parrain = $landing['parrain'];
}
}
if($id_landing_page > 0) {
if (file_exists(_PS_ROOT_DIR_.'/modules/landingpages/img/'.$id_landing_page.'_1_'.$cookie->id_lang.'.jpg')) {
$smarty->assign(array(
'landing' => 1,
));
} else {
$smarty->assign(array(
'landing' => 0,
));
}
if ($id_landing_page > 0) {
if ($email_parrain !== '') {
if($smarty->get_template_vars('sponsor_email') === null){ //we prevent overwrite
$smarty->assign(array(
'sponsor_email' => $email_parrain
));
}
}
if (_PS_MOBILE_) {
if (file_exists(_PS_ROOT_DIR_ . '/modules/landingpages/img/' . $id_landing_page . '_2_' . $cookie->id_lang . '.jpg')) {
$smarty->assign(array(
'landing' => 1,
));
} else {
$smarty->assign(array(
'landing' => 0,
));
}
} else {
if (file_exists(_PS_ROOT_DIR_ . '/modules/landingpages/img/' . $id_landing_page . '_1_' . $cookie->id_lang . '.jpg')) {
$smarty->assign(array(
'landing' => 1,
));
} else {
$smarty->assign(array(
'landing' => 0,
));
}
}
$smarty->assign(array(
'id_lp' => $id_landing_page,

View File

@ -332,17 +332,17 @@ $(function(){ldelim}
</p>*}
<p class="required text">
<label for="customer_firstname">{l s='First name'}</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}" />
<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|escape:'htmlall':'UTF-8'|stripslashes}{/if}" />
<sup>*</sup>
</p>
<p class="required text">
<label for="customer_lastname">{l s='Last name'}</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}" />
<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|escape:'htmlall':'UTF-8'|stripslashes}{/if}" />
<sup>*</sup>
</p>
<p class="required text">
<label for="email">{l s='E-mail'}</label>
<input type="text" class="text" id="email" name="email" value="{if isset($smarty.request.email)}{$smarty.request.email}{/if}" />
<input type="text" class="text" id="email" name="email" value="{if isset($smarty.request.email)}{$smarty.request.email|escape:'htmlall':'UTF-8'|stripslashes}{/if}" />
<sup>*</sup>
</p>
<p class="required password">
@ -393,13 +393,20 @@ $(function(){ldelim}
<p class="required text">
<label for="dni">{l s='Identification number'}</label>
<input type="text" class="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{/if}" />
<input type="text" class="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni|escape:'htmlall':'UTF-8'|stripslashes}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
<sup>*</sup>
</p>
</fieldset>
{$HOOK_CREATE_ACCOUNT_FORM}
{*MODULE invite / landingpage / referalprogram *}
<fieldset class="account_creation" {if isset($sponsor_email)} style="display:none;" {/if}>
<p>
<label for="referralprogram">{l s='E-mail address of your sponsor' mod='invite'}</label>
<input type="text" size="52" maxlength="128" class="text" id="referralprogram" name="invite" value="{if isset($sponsor_email)}{$sponsor_email|escape:'htmlall':'UTF-8'}{elseif isset($smarty.post.invite)}{$smarty.post.invite|escape:'htmlall':'UTF-8'}{elseif isset($referralprogram)}{$referralprogram|escape:'htmlall':'UTF-8'}{/if}" />
</p>
</fieldset>
{*END MODULE invite / landingpage / referalprogram *}
<script type="text/javascript">
/* ANTADIS */
var input = document.getElementById("referralprogram");

View File

@ -1,7 +1 @@
<fieldset class="account_creation" {if isset($sponsor_email)} style="display:none;" {/if}>
<p>
<label for="referralprogram">{l s='E-mail address of your sponsor' mod='invite'}</label>
<input type="text" size="52" maxlength="128" class="text" id="referralprogram" name="invite" value="{if isset($sponsor_email)}{$sponsor_email|escape:'htmlall':'UTF-8'}{elseif isset($smarty.post.invite)}{$smarty.post.invite|escape:'htmlall':'UTF-8'}{elseif isset($referralprogram)}{$referralprogram|escape:'htmlall':'UTF-8'}{/if}" />
</p>
</fieldset>
{if isset($tag_auth)}{$tag_auth}{/if}

View File

@ -93,44 +93,6 @@ $(function(){ldelim}
{/if}
</script>
{if $id_lp == NULL}
<script type="text/javascript" src="{$js_dir}jquery-ui.min.js"></script>
<script type="text/javascript">{literal}
<!--
$(document).ready(function() {
var img_list = [{/literal}"{$img_dir}auth.jpg", "{$img_dir}auth2.jpg", "{$img_dir}auth3.jpg"{literal}];
var preload = new Array();
for(var i=0; i<img_list.length; i++) {
preload[i] = new Image();
preload[i].src = img_list[i];
}
$("#columns").css("background", "none");
for(var i=0; i<img_list.length; i++) {
$("<div id=\"bg_" + i + "\" class=\"background\" style=\"background : #333333 url('"+ img_list[i] +"') no-repeat left top; z-index: " + (-1 - i) + "; display: none;\" />").appendTo($("#columns"));
}
var current_bg = 0;
$("#columns > #bg_0").show();
function rotateBackground(index) {
if(index && index > img_list.length) {
index = false;
}
$("#columns > #bg_" + current_bg).fadeOut(600);
$("#columns > #bg_" + (index? index - 1: (current_bg == img_list.length - 1? 0: current_bg + 1))).fadeIn(600);
index? current_bg = (index - 1 < 0? img_list.length - 1: index - 1): (current_bg == img_list.length - 1? current_bg = 0: current_bg++);
}
var timer = setInterval(function() { rotateBackground(); }, 10000);
});
-->
{/literal}</script>
{/if}
{*<h1>{if !isset($email_create)}{l s='Log in'}{else}{l s='Create your account'}{/if}</h1>
{assign var='current_step' value='login'}
@ -371,20 +333,20 @@ $(document).ready(function() {
<label for="id_gender2" class="top">{l s='Ms.'}</label>
</p>*}
<p class="required text">
<label for="customer_firstname">{l s='First name'} <sup>*</sup></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}" />
{*<label for="customer_firstname">{l s='First name'} <sup>*</sup></label>*}
<input placeholder="{l s='First name'}" 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|escape:'htmlall':'UTF-8'|stripslashes}{/if}" />
</p>
<p class="required text">
<label for="customer_lastname">{l s='Last name'} <sup>*</sup></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}" />
{*<label for="customer_lastname">{l s='Last name'} <sup>*</sup></label>*}
<input placeholder="{l s='Last name'}" 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|escape:'htmlall':'UTF-8'|stripslashes}{/if}" />
</p>
<p class="required text">
<label for="email">{l s='E-mail'} <sup>*</sup></label>
<input type="text" class="text" id="email" name="email" value="{if isset($smarty.request.email)}{$smarty.request.email}{/if}" />
{*<label for="email">{l s='E-mail'} <sup>*</sup></label>*}
<input placeholder="{l s='E-mail'}" type="text" class="text" id="email" name="email" value="{if isset($smarty.request.email)}{$smarty.request.email|escape:'htmlall':'UTF-8'|stripslashes}{/if}" />
</p>
<p class="required password">
<label for="passwd">{l s='Password'} <sup>*</sup></label>
<input type="password" class="text" name="passwd" id="passwd" />
{*<label for="passwd">{l s='Password'} <sup>*</sup></label>*}
<input placeholder="{l s='Password'}" type="password" class="text" name="passwd" id="passwd" />
{*<span class="form_info">{l s='(5 characters min.)'}</span>*}
</p>
{*<p class="select">
@ -429,13 +391,20 @@ $(document).ready(function() {
<p class="required text">
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{/if}" />
<input type="text" class="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni|escape:'htmlall':'UTF-8'|stripslashes}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
<sup>*</sup>
</p>
</fieldset>
{$HOOK_CREATE_ACCOUNT_FORM}
<fieldset>
{*MODULE invite / landingpage / referalprogram *}
<fieldset class="account_creation" {if isset($sponsor_email)} style="display:none;" {/if}>
<p class="text">
<input placeholder="{l s='E-mail address of your sponsor' mod='invite'}" type="text" size="52" maxlength="128" class="text" id="referralprogram" name="invite" value="{if isset($sponsor_email)}{$sponsor_email|escape:'htmlall':'UTF-8'}{elseif isset($smarty.post.invite)}{$smarty.post.invite|escape:'htmlall':'UTF-8'}{elseif isset($referralprogram)}{$referralprogram|escape:'htmlall':'UTF-8'}{/if}" />
</p>
</fieldset>
{*END MODULE invite / landingpage / referalprogram *}
<fieldset>
{if isset($newsletter) && $newsletter}
<p class="checkbox" >
<span class="input">
@ -451,7 +420,7 @@ $(document).ready(function() {
</p>*}
{/if}
</fieldset>
<div class="cart_navigation required submit clearfix">
<div class="required submit clearfix">
<input type="hidden" name="email_create" value="1" />
<input type="hidden" name="is_new_customer" value="1" />
<input type="hidden" class="hidden" name="back" value="{$smarty.const.__PS_BASE_URI__}validation.php" />
@ -459,11 +428,13 @@ $(document).ready(function() {
<sup>*</sup>{l s='Required field'}
</span>
<div class="gradient">
<input type="submit" name="submitAccount" id="submitAccount" value="{l s='Register'}" class="exclusive" onclick="if($('#newsletter:checked').length == 0) { alert('{l s='Please accept our terms of use to continue' js=1}'); return false; }" />
{*<input type="submit" name="submitAccount" id="submitAccount" value="{l s='Register'}" class="exclusive" onclick="if($('#newsletter:checked').length == 0) { alert('{l s='Please accept our terms of use to continue' js=1}'); return false; }" />*}
<button type="submit" name="submitAccount" id="submitAccount" class="exclusive" onclick="if($('#newsletter:checked').length == 0) { alert('{l s='Please accept our terms of use to continue' js=1}'); return false; }">{l s='Register'}<strong>&nbsp;&gt;</strong></button>
</div>
</div>
{$HOOK_CREATE_ACCOUNT_FORM_BOTTOM}
</form>
<div class="already_member"><a href="{$link->getPageLink('authentication.php', true)}" title="{l s='Already member'}">{l s='Already member'}</a></div>
</div>
{/if}

View File

@ -1120,6 +1120,9 @@ div#page #header .content .top #header_user ul li {
float:left;
padding: 3px 10px;
}
#authentication div#page #header .content .top #header_user ul li {
display: none;
}
div#page #header .content .top #header_user ul li a {
line-height: auto;
height: auto;
@ -2176,7 +2179,6 @@ body#product #primary_block #more_info_block {
padding:0px 0px 20px 0px;
font-size:12px;
}
body#authentication #columns .content #center_column #account-creation_form h3,
body#password #columns .content #center_column h3,
body#order-follow #columns .content #center_column h1,
body#module-advsendtoafriend-sendtoafriend-form #columns .content #center_column h1{
@ -2184,13 +2186,12 @@ body#module-advsendtoafriend-sendtoafriend-form #columns .content #center_column
text-align:right;
padding-right:7px;
}
body#authentication #columns .content #center_column #account-creation_form h3 span,
body#password #columns .content #center_column h3 span,
body#order-follow #columns .content #center_column h1 span,
body#module-advsendtoafriend-sendtoafriend-form #columns .content #center_column h1 span{
float:left;
}
body#order-follow #columns .content #center_column > p/*,
/*body#history #columns .content #center_column > p*/{
display:none;
@ -2252,7 +2253,7 @@ body#module-advsendtoafriend-sendtoafriend-form p.submit{
overflow: auto;
}
body#module-advsendtoafriend-sendtoafriend-form input#submitAddtoafriend,
body#authentication input#submitAccount,
body#authentication button#submitAccount,
body#identity .submit input[type=submit],
body#module-invite-invite-program input#revive,
body#module-invite-invite-program input[type=submit],
@ -2265,7 +2266,7 @@ body#module-invite-invite-program input[type=submit],
border:0px none;
position:relative;
right:0px;
border-radius:0px !important;
border-radius:0px;
background: #565485
}
body#addresses .footer_links a{
@ -3226,13 +3227,16 @@ body#module-invite-invite-program #idTab1 p.bold.message{
border-bottom:2px solid #e36ea2;
padding:10px;
}
body#authentication #columns .content #center_column #account-creation_form p.checkbox,
body#password p.checkbox,
body#identity p.checkbox,
body#order p.checkbox,
body#module-invite-invite-program #idTab1 p.checkbox{
display: table-row;
}
body#authentication #columns .content #center_column #account-creation_form p.checkbox{
display: block;
margin: 17px 0;
}
body#authentication #columns .content #center_column #account-creation_form p.checkbox span,
body#password p.checkbox span,
body#identity p.checkbox span,
@ -3386,17 +3390,19 @@ body#authentication #columns .content #center_column #account-creation_form .acc
body#authentication #columns .content #center_column #account-creation_form{
font-size:14px;
}
body#authentication #columns .content #center_column #account-creation_form p.checkbox .input,
body#authentication #columns .content #center_column #account-creation_form p.checkbox .condition{
body#authentication #columns .content #center_column #account-creation_form p.checkbox .input{
padding-top:10px;
}
body#authentication #columns .content #center_column #account-creation_form p.checkbox .condition{
}
body#authentication span.required_info{
display: block;
color:#e36ea2;
padding-bottom:20px;
display: none;
}
body#authentication form#account-creation_form .cart_navigation div.gradient{
float:right;
text-align: center;
width: 60%;
}
body#discount table.discount tr{
@ -5366,3 +5372,59 @@ body#order-detail table#order-product tbody tr.item tr.title span.quantity{
right: 0;
z-index: 8;
}
#authentication #account-creation_container{
width: 80%;
margin: 0 auto;
}
#authentication #account-creation_container input[type=email],
#authentication #account-creation_container input[type=text],
#authentication #account-creation_container input[type=password]{
background: #f0f0f0;
border: none;
font-family: Century Gothic,CenturyGothic,AppleGothic,sans-serif;
}
#authentication #account-creation_container input::placeholder
{
color: #a6a6a6;
}
#authentication #account-creation_container p.text,
#authentication #account-creation_container p.password{
border-bottom: 1px solid #565385;
margin-bottom: 12px;
padding-bottom: 1px;
}
#authentication #account-creation_container p.checkbox .condition label{
color: #565385;
font-family: Century Gothic,CenturyGothic,AppleGothic,sans-serif;
text-align: justify;
text-justify: inter-word;
font-size: smaller;
}
#authentication #account-creation_container div.already_member {
text-align: center;
}
#authentication #account-creation_container div.already_member a,
#authentication #account-creation_container div.already_member a:hover{
color: #565385;
font-family: Century Gothic,CenturyGothic,AppleGothic,sans-serif;
margin: 20px 0;
display: block;
text-decoration: underline;
font-size: 15px;
}
body#authentication .gradient button#submitAccount{
background:#e36ea2;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
text-transform: uppercase;
font-weight: bold;
}

View File

@ -97,8 +97,9 @@ $_LANG['authentication_a0bfb8e59e6c13fc8d990781f77694fe'] = 'Continuer';
$_LANG['authentication_6335a00a08fde0fbb8f6d6630cdadd92'] = 'Inscrivez-vous, c\'est gratuit !';
$_LANG['authentication_1e884e3078d9978e216a027ecd57fb34'] = 'E-mail';
$_LANG['authentication_bf2957630c4209f61a388a08c2154915'] = '(5 caractères min.)';
$_LANG['authentication_0ba7583639a274c434bbe6ef797115a4'] = 'S\'inscrire';
$_LANG['authentication_0ba7583639a274c434bbe6ef797115a4'] = 'Je crée mon compte';
$_LANG['authentication_59e7ac55563a4f1fff63c9179e6c8937'] = 'Veuillez accepter nos conditions d\'utilisation pour continuer';
$_LANG['authentication_925cc1fa40ed38377bcb2b77b5315d9c'] = 'Je suis déjà membre';
$_LANG['best-sales_3cb29f0ccc5fd220a97df89dafe46290'] = 'Meilleures ventes';
$_LANG['best-sales_32af07c9205de16855c50c3d20a51698'] = 'Pas de meilleure vente pour le moment.';
$_LANG['breadcrumb_c75dacb862a2bb03903ade08898c9146'] = 'Vous êtes ici :';

View File

@ -1,6 +1,6 @@
<!-- MODULE Block logo -->
<div class="logo_block">
{if isset($smarty.get.sponsor) && isset($smarty.get.create_account)}
{if isset($smarty.get.sponsor) || isset($smarty.get.create_account)}
<a title="{l s='Return to the homepage' mod='blocklogo'}"><img src="{$img_dir}logo_mobile_{$cookie->id_lang}.png" alt="" /></a>
{else}
<a href="{$base_dir_ssl}" title="{l s='Return to the homepage' mod='blocklogo'}"><img src="{$img_dir}logo_mobile_{$cookie->id_lang}.png" alt="" /></a>

View File

@ -1,7 +1 @@
<fieldset class="account_creation" {if isset($sponsor_email)} style="display:none;" {/if}>
<p>
<label for="referralprogram">{l s='E-mail address of your sponsor' mod='invite'}</label>
<input type="text" size="52" maxlength="128" class="text" id="referralprogram" name="invite" value="{if isset($sponsor_email)}{$sponsor_email|escape:'htmlall':'UTF-8'}{elseif isset($smarty.post.invite)}{$smarty.post.invite|escape:'htmlall':'UTF-8'}{elseif isset($referralprogram)}{$referralprogram|escape:'htmlall':'UTF-8'}{/if}" />
</p>
</fieldset>
{if isset($tag_auth)}{$tag_auth}{/if}

View File

@ -0,0 +1,40 @@
{if $landing}
<style type="text/css">
body#authentication .insert_top_account_creation {
width: 100%;
}
body#authentication .insert_top_account_creation img {
width: 100%;
height: auto;
}
body#authentication span.subtitle_create_account {
display: none;
}
body#authentication #columns .content #center_column #account-creation_form h3{
display: none;
}
body#authentication div.paiement_logo_block a.payment{
display: none;
}
</style>
<script type="text/javascript">
{literal}
$(document).ready(function () {
$('#columns').before('<div class="insert_top_account_creation">' +
'<img src="{/literal}{$base_dir_ssl}modules/landingpages/img/{$id_lp}_2_{$cookie->id_lang}.jpg{literal}">' +
'</div>');
});
{/literal}
</script>
{/if}
<div class="hidden" style="display: none !important;">
<input type="hidden" name="lp" value="{$smarty.request.lp|escape:'htmlall':'UTF-8'}"/>
{if isset($tag)}
{$tag}
{/if}
</div>