本文整理汇总了PHP中ModuleAdminController::setMedia方法的典型用法代码示例。如果您正苦于以下问题:PHP ModuleAdminController::setMedia方法的具体用法?PHP ModuleAdminController::setMedia怎么用?PHP ModuleAdminController::setMedia使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ModuleAdminController
的用法示例。
在下文中一共展示了ModuleAdminController::setMedia方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setMedia
public function setMedia()
{
parent::setMedia();
$this->addjQueryPlugin(array('autocomplete', 'tablednd', 'date', 'tagify', 'validate', 'fancybox'));
$this->addJS(array(_PS_JS_DIR_ . 'admin-dnd.js', _PS_JS_DIR_ . 'jquery/ui/jquery.ui.progressbar.min.js', _PS_JS_DIR_ . 'vendor/spin.js', _PS_JS_DIR_ . 'vendor/ladda.js', _MODULE_DIR_ . 'ph_simpleblog/js/admin.js', _MODULE_DIR_ . 'ph_simpleblog/views/js/select2/select2.full.min.js'));
$this->addCSS(array(_MODULE_DIR_ . 'ph_simpleblog/views/css/select2/select2.min.css'));
}
示例2: setMedia
public function setMedia()
{
parent::setMedia();
$this->addJqueryPlugin('fancybox');
$this->addJqueryUi('ui.sortable');
$this->addJS(_PS_MODULE_DIR_ . $this->module->name . '/js/layoutbuilder.js');
}
示例3: setMedia
public function setMedia()
{
parent::setMedia();
$this->addJS(_PS_MODULE_DIR_ . 'expressmailing/views/js/emcharts_f_stats.js', 'all');
$this->addCSS(_PS_MODULE_DIR_ . 'expressmailing/views/css/expressmailing.css');
$this->addJqueryUI('ui.dialog');
}
示例4: setMedia
public function setMedia()
{
$this->addJqueryUI('ui.progressbar');
$this->addJS(array('/modules/gamification/views/js/bubble-popup.js', '/modules/gamification/views/js/gamification.js', '/modules/gamification/views/js/jquery.isotope.js'));
$this->addCSS(array('/modules/gamification/views/css/bubble-popup.css', '/modules/gamification/views/css/isotope.css'));
return parent::setMedia();
}
示例5: setMedia
public function setMedia()
{
parent::setMedia();
Media::addJsDef(array('admin_fronteditor_ajax_url' => $this->context->link->getAdminLink('IqitFronteditor')));
$this->addCSS(array(_MODULE_DIR_ . 'iqitcontentcreator/css/bfronteditor.css'));
$this->addJS(array(_MODULE_DIR_ . 'iqitcontentcreator/js/bfronteditor.js'));
}
示例6: setMedia
public function setMedia()
{
parent::setMedia();
$this->addCSS(_PS_MODULE_DIR_ . 'expressmailing/views/css/expressmailing.css');
$this->addJS(_PS_JS_DIR_ . 'tiny_mce/tiny_mce.js');
$this->addJqueryUI('ui.tabs');
// Try to use employee language for Tiny Editor
// --------------------------------------------
$language = new Language($this->context->employee->id_lang);
$tiny_file = _PS_MODULE_DIR_ . 'expressmailing/views/js/tinymce_' . $language->iso_code . '.js';
if (Tools::file_exists_cache($tiny_file)) {
$this->addJS($tiny_file);
} else {
$language = new Language(Configuration::get('PS_LANG_DEFAULT'));
$tiny_file = _PS_MODULE_DIR_ . 'expressmailing/views/js/tinymce_' . Configuration::get('PS_LANG_DEFAULT') . '.js';
if (Tools::file_exists_cache($tiny_file)) {
$this->addJS($tiny_file);
} else {
$this->addJS(_PS_MODULE_DIR_ . 'expressmailing/views/js/tinymce_en.js');
}
}
// And add our Tiny config
// -----------------------
$this->addJS(_PS_MODULE_DIR_ . 'expressmailing/views/js/tinymce.js');
}
示例7: setMedia
public function setMedia()
{
$path = new Sampledatainstall();
$this->addJquery();
$this->addJS($path->sendPath() . 'views/js/import.js');
$this->addCss($path->sendPath() . 'views/css/sampledatainstall.css');
parent::setMedia();
}
示例8: setMedia
public function setMedia()
{
parent::setMedia();
$this->addCSS(_PS_MODULE_DIR_ . 'expressmailing/views/css/expressmailing.css');
$this->addJS(_PS_MODULE_DIR_ . 'expressmailing/views/js/marketings_step1.js');
$this->addJqueryUI('ui.slider');
$this->addJqueryUI('ui.spinner');
}
示例9: setMedia
public function setMedia()
{
parent::setMedia();
$this->addCSS(_PS_MODULE_DIR_ . 'expressmailing/views/css/icon-marketing.css');
$this->addCSS(_PS_MODULE_DIR_ . 'expressmailing/views/css/expressmailing.css');
$this->addJqueryUI('ui.dialog');
$this->addJqueryUI('ui.draggable');
$this->addJqueryUI('ui.resizable');
}
示例10: setMedia
public function setMedia()
{
if (method_exists($this->context->controller, 'addJquery')) {
$this->context->controller->addJquery();
}
$this->context->controller->addCSS(_MODULE_DIR_ . $this->module->name . '/css/psmgen.css');
$this->context->controller->addJS(_MODULE_DIR_ . $this->module->name . '/js/psmgen.js');
return parent::setMedia();
}
示例11: setMedia
public function setMedia()
{
parent::setMedia();
$this->addJqueryUI('ui.datepicker');
$this->addJS($this->module->getPathUri() . 'views/js/claim-view.js');
if (_PS_VERSION_ < '1.6.0.0') {
$this->addCSS($this->module->getPathUri() . 'views/css/admin_15.css');
}
}
示例12: setMedia
public function setMedia()
{
parent::setMedia();
$this->addCSS(_PS_MODULE_DIR_ . 'expressmailing/views/css/expressmailing.css', 'all');
$this->addJqueryUI('ui.slider');
$this->addJqueryUI('ui.dialog');
$this->addJqueryUI('ui.draggable');
$this->addJqueryUI('ui.resizable');
$this->addJqueryUI('ui.autocomplete');
}
示例13: setMedia
public function setMedia()
{
$this->addJqueryUI('ui.progressbar');
$this->addJS(_MODULE_DIR_ . $this->module->name . '/views/js/bubble-popup.js');
if (version_compare(_PS_VERSION_, '1.6.0', '>=') === true) {
$this->addJs(_MODULE_DIR_ . $this->module->name . '/views/js/gamification_bt.js');
} else {
$this->addJs(_MODULE_DIR_ . $this->module->name . '/views/js/gamification.js');
}
$this->addJs(_MODULE_DIR_ . $this->module->name . '/views/js/jquery.isotope.js');
$this->addCSS(array(_MODULE_DIR_ . $this->module->name . '/views/css/bubble-popup.css', _MODULE_DIR_ . $this->module->name . '/views/css/isotope.css'));
return parent::setMedia();
}
示例14: setMedia
/**
* Set Css & js
* @return mixed
*/
public function setMedia()
{
$this->context->controller->addJquery();
$this->addCSS(array(_MODULE_DIR_ . $this->module->name . '/views/css/normalize.css'));
$this->addCSS(array(_MODULE_DIR_ . $this->module->name . '/views/css/grid.css'));
$this->addCSS(array(_MODULE_DIR_ . $this->module->name . '/views/css/form.css'));
$this->addCSS(array(_MODULE_DIR_ . $this->module->name . '/views/css/style.css'));
$this->addJs(_MODULE_DIR_ . $this->module->name . '/views/js/app.src-verified.js');
$this->addJs(_MODULE_DIR_ . $this->module->name . '/views/js/fullSelect.src-verified.async.js');
$this->addJs(_MODULE_DIR_ . $this->module->name . '/views/js/lightbox.src-verified.async.js');
$this->addJs(_MODULE_DIR_ . $this->module->name . '/views/js/growler.src-verified.async.js');
$this->addJs(_MODULE_DIR_ . $this->module->name . '/views/js/getresponse-custom-field.src-verified.js');
$this->addJs(_MODULE_DIR_ . $this->module->name . '/views/js/gr_main.js');
return parent::setMedia();
}
开发者ID:GetResponse,项目名称:GetResponse-PrestaShop-Integration,代码行数:19,代码来源:AdminGetresponseController.php
示例15: setMedia
/**
* Définition des médias du controller
*/
public function setMedia()
{
parent::setMedia();
$this->addJS(_MODULE_DIR_ . 'customerautogroups/views/admin/js/customerautogroups.js');
}