本文整理汇总了PHP中AdminController::initModal方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminController::initModal方法的具体用法?PHP AdminController::initModal怎么用?PHP AdminController::initModal使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AdminController
的用法示例。
在下文中一共展示了AdminController::initModal方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initModal
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);
}
示例2: initModal
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);
}
示例3: initModal
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);
}