当前位置: 首页>>代码示例>>PHP>>正文


PHP AdminController::initModal方法代码示例

本文整理汇总了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);
 }
开发者ID:M03G,项目名称:PrestaShop,代码行数:6,代码来源:AdminImportController.php

示例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);
 }
开发者ID:IngenioContenidoDigital,项目名称:americana,代码行数:11,代码来源:AdminModulesController.php

示例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);
 }
开发者ID:abdoumej,项目名称:libsamy,代码行数:11,代码来源:AdminModulesController.php


注:本文中的AdminController::initModal方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。