Added file field in admin form
Finished page integration
This commit is contained in:
parent
f73be8dba4
commit
674d095cf0
@ -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>';
|
||||
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'].'.png" 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,
|
||||
|
@ -460,11 +460,12 @@ $(document).ready(function() {
|
||||
</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; }" />*}
|
||||
<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'}<span class="icon-suivant"></span></button>
|
||||
<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}
|
||||
|
@ -5404,9 +5404,26 @@ body#order-detail table#order-product tbody tr.item tr.title span.quantity{
|
||||
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;
|
||||
}
|
||||
|
@ -99,6 +99,7 @@ $_LANG['authentication_1e884e3078d9978e216a027ecd57fb34'] = 'E-mail';
|
||||
$_LANG['authentication_bf2957630c4209f61a388a08c2154915'] = '(5 caractères min.)';
|
||||
$_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 :';
|
||||
|
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