public function initModal()
 {
     parent::initModal();
     $modal_content = $this->context->smarty->fetch('controllers/import/modal_import_progress.tpl');
     $this->modals[] = array('modal_id' => 'importProgress', 'modal_class' => 'modal-md', 'modal_title' => $this->l('Importing...'), 'modal_content' => $modal_content);
 }
 public function initModal()
 {
     parent::initModal();
     $this->context->smarty->assign(array('trad_link' => 'index.php?tab=AdminTranslations&token=' . Tools::getAdminTokenLite('AdminTranslations') . '&type=modules&lang=', 'module_languages' => Language::getLanguages(false), 'module_name' => Tools::getValue('module_name')));
     $modal_content = $this->context->smarty->fetch('controllers/modules/modal_translation.tpl');
     $this->modals[] = array('modal_id' => "moduleTradLangSelect", 'modal_class' => "modal-sm", 'modal_title' => $this->l('Translate this module'), 'modal_content' => $modal_content);
     $modal_content = $this->context->smarty->fetch('controllers/modules/' . (defined('_PS_HOST_MODE_') && _PS_HOST_MODE_ ? 'modal_not_trusted_blocked.tpl' : 'modal_not_trusted.tpl'));
     $this->modals[] = array('modal_id' => "moduleNotTrusted", 'modal_class' => "modal-lg", 'modal_title' => $this->l('This module is Untrusted'), 'modal_content' => $modal_content);
     $modal_content = $this->context->smarty->fetch('controllers/modules/modal_not_trusted_country.tpl');
     $this->modals[] = array('modal_id' => "moduleNotTrustedCountry", 'modal_class' => "modal-lg", 'modal_title' => $this->l('This module is Untrusted for your country'), 'modal_content' => $modal_content);
 }
 public function initModal()
 {
     parent::initModal();
     $this->context->smarty->assign(array('trad_link' => 'index.php?tab=AdminTranslations&token=' . Tools::getAdminTokenLite('AdminTranslations') . '&type=modules&lang=', 'module_languages' => Language::getLanguages(false), 'module_name' => Tools::getValue('module_name')));
     $modal_content = $this->context->smarty->fetch('controllers/modules/modal_translation.tpl');
     $this->modals[] = array('modal_id' => 'moduleTradLangSelect', 'modal_class' => 'modal-sm', 'modal_title' => $this->l('Translate this module'), 'modal_content' => $modal_content);
     $modal_content = $this->context->smarty->fetch('controllers/modules/' . ($this->context->mode == Context::MODE_HOST ? 'modal_not_trusted_blocked.tpl' : 'modal_not_trusted.tpl'));
     $this->modals[] = array('modal_id' => 'moduleNotTrusted', 'modal_class' => 'modal-lg', 'modal_title' => $this->context->mode == Context::MODE_HOST ? $this->l('This module cannot be installed') : $this->l('Important Notice'), 'modal_content' => $modal_content);
     $modal_content = $this->context->smarty->fetch('controllers/modules/modal_not_trusted_country.tpl');
     $this->modals[] = array('modal_id' => 'moduleNotTrustedCountry', 'modal_class' => 'modal-lg', 'modal_title' => $this->l('This module is Untrusted for your country'), 'modal_content' => $modal_content);
 }