本文整理汇总了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();
}
示例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');
}
示例3: setMedia
public function setMedia()
{
parent::setMedia();
$this->addJqueryPlugin('smartWizard');
$this->addJqueryPlugin('typewatch');
$this->addJs(_PS_JS_DIR_ . 'admin/carrier_wizard.js');
}
示例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));
}
示例5: setMedia
public function setMedia()
{
parent::setMedia();
$this->addJqueryPlugin(array('autocomplete', 'fancybox', 'tablefilter'));
}
示例6: setMedia
public function setMedia()
{
parent::setMedia();
$this->addJS(_PS_JS_DIR_ . 'admin/attributes.js');
}
示例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);
}
示例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));
}
示例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');
}
示例10: setMedia
/**
* AdminController::setMedia() override
* @see AdminController::setMedia()
*/
public function setMedia()
{
parent::setMedia();
$this->addJqueryPlugin('fieldselection');
}
示例11: setMedia
public function setMedia()
{
parent::setMedia();
$this->addJqueryPlugin('highlight');
}
示例12: setMedia
public function setMedia()
{
parent::setMedia(true);
}
示例13: setMedia
public function setMedia()
{
parent::setMedia();
$this->context->controller->addJqueryUI('ui.datepicker');
}
示例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');
}
}
示例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');
}
}