Merge branch 'develop' of git@gitlab.antadis.net:dev-antadis/bebeboutik.git into develop
This commit is contained in:
commit
8ba1eee6bb
@ -41,7 +41,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.');
|
||||
}
|
||||
}
|
||||
@ -93,7 +93,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.');
|
||||
}
|
||||
}
|
||||
@ -343,7 +343,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" width="350" /><br>
|
||||
<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 '
|
||||
</div>';
|
||||
@ -352,14 +353,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" width="350" /><br>
|
||||
<p><a href="'.__PS_BASE_URI__.'modules/landingpages/img/'.$this->curlp['id_landing_page'].'_2_'.$language['id_lang'].'.jpg" onclick="window.open(this.href); return false;"> '.$this->l('Preview').'</a></p>';
|
||||
}
|
||||
echo '
|
||||
</div>';
|
||||
|
@ -206,16 +206,28 @@ class LandingPages extends Module {
|
||||
}
|
||||
}
|
||||
|
||||
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 (_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,
|
||||
|
@ -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,7 +393,7 @@ $(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>
|
||||
|
@ -371,20 +371,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,7 +429,7 @@ $(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>
|
||||
@ -451,7 +451,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 +459,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> ></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}
|
||||
|
@ -2252,7 +2252,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 +2265,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 +3226,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 +3389,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{
|
||||
@ -5364,3 +5369,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;
|
||||
}
|
||||
|
@ -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 :';
|
||||
|
@ -1,7 +1,7 @@
|
||||
<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 class="text">
|
||||
{*<label for="referralprogram">{l s='E-mail address of your sponsor' mod='invite'}</label>*}
|
||||
<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>
|
||||
{if isset($tag_auth)}{$tag_auth}{/if}
|
22
themes/site_mobile/modules/landingpages/authentication.tpl
Normal file
22
themes/site_mobile/modules/landingpages/authentication.tpl
Normal file
@ -0,0 +1,22 @@
|
||||
<style type="text/css">
|
||||
{if $landing}
|
||||
body#authentication {
|
||||
background-image: url("{$base_dir_ssl}modules/landingpages/img/{$id_lp}_1_{$cookie->id_lang}.jpg") !important;
|
||||
background-position: center 99px;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
@media screen and (max-width:767px){
|
||||
body#authentication {
|
||||
background-image: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
{*TODO*}
|
||||
{/if}
|
||||
</style>
|
||||
<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>
|
Loading…
Reference in New Issue
Block a user