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


PHP AdminController::setMedia方法代码示例

本文整理汇总了PHP中AdminController::setMedia方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminController::setMedia方法的具体用法?PHP AdminController::setMedia怎么用?PHP AdminController::setMedia使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AdminController的用法示例。


在下文中一共展示了AdminController::setMedia方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setMedia

 /**
  * Set media files (CSS, javaScript)
  */
 public function setMedia()
 {
     $this->addJquery();
     $this->addJS($this->path . 'js/socialuserheader.js');
     $this->addCSS($this->path . 'css/socialuserheader.css');
     parent::setMedia();
 }
开发者ID:jpodracky,项目名称:dogs,代码行数:10,代码来源:AdminSocialUserHeaderController.php

示例2: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->addJqueryUI('ui.datepicker');
     $this->addJS(array(_PS_JS_DIR_ . 'vendor/d3.v3.min.js', __PS_BASE_URI__ . $this->admin_webpath . '/themes/' . $this->bo_theme . '/js/vendor/nv.d3.min.js', _PS_JS_DIR_ . '/admin/dashboard.js'));
     $this->addCSS(__PS_BASE_URI__ . $this->admin_webpath . '/themes/' . $this->bo_theme . '/css/vendor/nv.d3.css');
 }
开发者ID:jpodracky,项目名称:dogs,代码行数:7,代码来源:AdminDashboardController.php

示例3: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->addJqueryPlugin('smartWizard');
     $this->addJqueryPlugin('typewatch');
     $this->addJs(_PS_JS_DIR_ . 'admin/carrier_wizard.js');
 }
开发者ID:M03G,项目名称:PrestaShop,代码行数:7,代码来源:AdminCarrierWizardController.php

示例4: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->addJs(_PS_JS_DIR_ . '/admin/email.js');
     Media::addJsDefL('textMsg', $this->l('This is a test message. Your server is now configured to send email.', null, true, false));
     Media::addJsDefL('textSubject', $this->l('Test message -- Prestashop', null, true, false));
     Media::addJsDefL('textSendOk', $this->l('A test email has been sent to the email address you provided.', null, true, false));
     Media::addJsDefL('textSendError', $this->l('Error: Please check your configuration', null, true, false));
     Media::addJsDefL('token_mail', $this->token);
     Media::addJsDefL('errorMail', $this->l('This email address is not valid', null, true, false));
 }
开发者ID:prestanesia,项目名称:PrestaShop,代码行数:11,代码来源:AdminEmailsController.php

示例5: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->addJqueryPlugin(array('autocomplete', 'fancybox', 'tablefilter'));
 }
开发者ID:IngenioContenidoDigital,项目名称:americana,代码行数:5,代码来源:AdminModulesController.php

示例6: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->addJS(_PS_JS_DIR_ . 'admin/attributes.js');
 }
开发者ID:M03G,项目名称:PrestaShop,代码行数:5,代码来源:AdminAttributeGeneratorController.php

示例7: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->addJqueryUI('ui.datepicker');
     $this->addJS(_PS_JS_DIR_ . 'vendor/d3.v3.min.js');
     $this->addJS('https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false');
     if ($this->tabAccess['edit'] == 1 && $this->display == 'view') {
         $this->addJS(_PS_JS_DIR_ . 'admin_order.js');
         $this->addJS(_PS_JS_DIR_ . 'tools.js');
         $this->addJqueryPlugin('autocomplete');
     }
     $margin = Configuration::get('PROFIT_MARGIN');
     $price_type = Configuration::get('PRODUCT_DYNAMIC_PRICE');
     if (isset($margin) && $price_type == 1) {
         $margin = floatval($margin) / 100;
         $margin = 1 - $margin;
     } else {
         $margin = 1;
     }
     $this->context->smarty->assign('profit_margin', $margin);
 }
开发者ID:Eximagen,项目名称:3m,代码行数:21,代码来源:AdminOrdersController_04-06-2015.php

示例8: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->addJs(_PS_JS_DIR_ . '/admin/attachments.js');
     Media::addJsDefL('confirm_text', $this->l('This attachment is associated with the following products, do you really want to  delete it?', null, true, false));
 }
开发者ID:prestanesia,项目名称:PrestaShop,代码行数:6,代码来源:AdminAttachmentsController.php

示例9: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->addJS(__PS_BASE_URI__ . $this->admin_webpath . '/themes/' . $this->bo_theme . '/js/vendor/jquery-passy.js');
     $this->addjQueryPlugin('validate');
     $this->addJS(_PS_JS_DIR_ . 'jquery/plugins/validate/localization/messages_' . $this->context->language->iso_code . '.js');
 }
开发者ID:ortegon000,项目名称:tienda,代码行数:7,代码来源:AdminEmployeesController.php

示例10: setMedia

 /**
  * AdminController::setMedia() override
  * @see AdminController::setMedia()
  */
 public function setMedia()
 {
     parent::setMedia();
     $this->addJqueryPlugin('fieldselection');
 }
开发者ID:AmineBENCHEIKHBRAHIM,项目名称:LnsTech-Prestashop-WebSite,代码行数:9,代码来源:AdminCountriesController.php

示例11: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->addJqueryPlugin('highlight');
 }
开发者ID:ecssjapan,项目名称:guiding-you-afteropen,代码行数:5,代码来源:AdminSearchController.php

示例12: setMedia

 public function setMedia()
 {
     parent::setMedia(true);
 }
开发者ID:M03G,项目名称:PrestaShop,代码行数:4,代码来源:AdminLegacyLayoutController.php

示例13: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->context->controller->addJqueryUI('ui.datepicker');
 }
开发者ID:IngenioContenidoDigital,项目名称:americana,代码行数:5,代码来源:AdminReferrersController.php

示例14: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->addJqueryUI('ui.datepicker');
     if ($this->tabAccess['edit'] == 1 && $this->display == 'view') {
         $this->addJS(_PS_JS_DIR_ . 'admin_order.js');
         $this->addJS(_PS_JS_DIR_ . 'tools.js');
         $this->addJqueryPlugin('autocomplete');
     }
 }
开发者ID:jicheng17,项目名称:pengwine,代码行数:10,代码来源:AdminOrdersController.php

示例15: setMedia

 public function setMedia()
 {
     parent::setMedia();
     $this->addJS(_PS_JS_DIR_ . 'admin/themes.js');
     if ($this->context->mode == Context::MODE_HOST && Tools::getValue('action') == 'importtheme') {
         $this->addJS(_PS_JS_DIR_ . 'admin/addons.js');
     }
 }
开发者ID:NathanGiesbrecht,项目名称:PrestaShopAutomationFramework,代码行数:8,代码来源:AdminThemesController.php


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