CS
This commit is contained in:
parent
3ad6f43fbf
commit
21a337c8f0
@ -8,10 +8,13 @@ class AdminPrivateSalesSales extends AdminTab {
|
||||
|
||||
private $imagelist;
|
||||
|
||||
public function __construct() {
|
||||
$this->lang = TRUE;
|
||||
public function __construct()
|
||||
{
|
||||
$this->lang = true;
|
||||
|
||||
parent::__construct();
|
||||
$this->imagelist = array(
|
||||
|
||||
$this->imagelist = array(
|
||||
'liston' => array($this->l('Listing image (on)'), '380x178'),
|
||||
'listoff' => array($this->l('Listing image (off)'), '380x178'),
|
||||
'salebg' => array($this->l('Sale background'), '*x*'),
|
||||
@ -24,7 +27,8 @@ class AdminPrivateSalesSales extends AdminTab {
|
||||
);
|
||||
}
|
||||
|
||||
public function displayForm($isMainTab=TRUE) {
|
||||
public function displayForm($isMainTab = true)
|
||||
{
|
||||
global $currentIndex, $cookie;
|
||||
parent::displayForm();
|
||||
|
||||
@ -810,25 +814,25 @@ class AdminPrivateSalesSales extends AdminTab {
|
||||
echo '<div class="clearfix"></div>';
|
||||
}
|
||||
|
||||
$input = array(
|
||||
'type' => 'uploadImage',
|
||||
'lang' => true,
|
||||
'label' => 'Bannière Promo (Mobile)',
|
||||
'name' => 'img_banner_mobile',
|
||||
'name_img' => 'banner_mobile',
|
||||
'id' => 'banner_mobile',
|
||||
'help' => $this->l('Size:').' 500*178',
|
||||
'languages' => $this->_languages,
|
||||
'default_language' => 2,
|
||||
'input-class' => '',
|
||||
'id_langs' => $divLangImgName,
|
||||
'link_flag_img' => '../img/l/',
|
||||
'img_delete' => ($this->cursale !== NULL?$currentIndex.'&token='.Tools::getAdminTokenLite('AdminPrivateSalesSales').'&delete_img=banner_mobile&id='.$this->cursale->id:''),
|
||||
'url_imgs' => ($this->cursale !== NULL?__PS_BASE_URI__.'modules/privatesales/img/'.$this->cursale->id.'/':''),
|
||||
'url_to_check' => ($this->cursale !== NULL?_PS_ROOT_DIR_.'/modules/privatesales/img/'.$this->cursale->id.'/':''),
|
||||
);
|
||||
echo $helperForm->generateInput($input);
|
||||
echo '<div class="clearfix"></div>';
|
||||
$input = array(
|
||||
'type' => 'uploadImage',
|
||||
'lang' => true,
|
||||
'label' => 'Bannière Promo (Mobile)',
|
||||
'name' => 'img_banner_mobile',
|
||||
'name_img' => 'banner_mobile',
|
||||
'id' => 'banner_mobile',
|
||||
'help' => $this->l('Size:').' 500*178',
|
||||
'languages' => $this->_languages,
|
||||
'default_language' => 2,
|
||||
'input-class' => '',
|
||||
'id_langs' => $divLangImgName,
|
||||
'link_flag_img' => '../img/l/',
|
||||
'img_delete' => ($this->cursale !== NULL?$currentIndex.'&token='.Tools::getAdminTokenLite('AdminPrivateSalesSales').'&delete_img=banner_mobile&id='.$this->cursale->id:''),
|
||||
'url_imgs' => ($this->cursale !== NULL?__PS_BASE_URI__.'modules/privatesales/img/'.$this->cursale->id.'/':''),
|
||||
'url_to_check' => ($this->cursale !== NULL?_PS_ROOT_DIR_.'/modules/privatesales/img/'.$this->cursale->id.'/':''),
|
||||
);
|
||||
echo $helperForm->generateInput($input);
|
||||
echo '<div class="clearfix"></div>';
|
||||
echo '</div>
|
||||
<div class="clear"></div>
|
||||
<div class="ln_solid-small"></div>
|
||||
|
Loading…
Reference in New Issue
Block a user