本文整理汇总了PHP中ModuleFrontController::setMedia方法的典型用法代码示例。如果您正苦于以下问题:PHP ModuleFrontController::setMedia方法的具体用法?PHP ModuleFrontController::setMedia怎么用?PHP ModuleFrontController::setMedia使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ModuleFrontController
的用法示例。
在下文中一共展示了ModuleFrontController::setMedia方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setMedia
/**
* Add CSS and JS files here
*/
public function setMedia()
{
parent::setMedia();
// @TODO Queue .js scripts and .css files here
// $this->context->controller->addJS($this->module->getLocalPath().'views/js/fo.js');
// $this->context->controller->addCSS($this->module->getLocalPath().'views/css/fo.css');
}
示例2: setMedia
public function setMedia()
{
if (Tools::getValue("ajax") != "true") {
parent::setMedia();
}
$this->addJqueryPlugin(array("idTabs"));
}
示例3: setMedia
public function setMedia()
{
parent::setMedia();
$this->addCSS($this->module->getPathUri() . 'myvideo.css');
$this->addCSS($this->module->getPathUri() . 'jquery/jRating.jquery.css');
$this->addJs($this->module->getPathUri() . 'jquery/jRating.jquery.min.js');
}
示例4: setMedia
/**
* Set the Media (CSS / JS) of the page
*/
public function setMedia()
{
parent::setMedia();
$this->addCSS(array(_THEME_CSS_DIR_ . 'product_list.css' => 'all'));
if (Configuration::get('PS_COMPARATOR_MAX_ITEM') > 0) {
$this->addJS(_THEME_JS_DIR_ . 'products-comparison.js');
}
}
示例5: setMedia
public function setMedia()
{
if (method_exists($this->context->controller, 'addJquery')) {
$this->context->controller->addJquery();
// $this->context->controller->addJqueryPlugin('fancybox');
// $this->context->controller->addJqueryUI('ui.sortable');
}
$this->context->controller->addCSS(_MODULE_DIR_ . $this->module->name . '/css/moduleclassname.css');
$this->context->controller->addJS(_MODULE_DIR_ . $this->module->name . '/js/moduleclassname.js');
return parent::setMedia();
}
示例6: setMedia
public function setMedia()
{
// We call the parent method
parent::setMedia();
// Save the module path in a variable
$this->path = __PS_BASE_URI__ . 'modules/mymodcomments/';
// Include the module CSS and JS files needed
$this->context->controller->addCSS($this->path . 'views/css/star-rating.css', 'all');
$this->context->controller->addJS($this->path . 'views/js/star-rating.js');
$this->context->controller->addCSS($this->path . 'views/css/mymodcomments.css', 'all');
$this->context->controller->addJS($this->path . 'views/js/mymodcomments.js');
}
示例7: setMedia
public function setMedia()
{
parent::setMedia();
$this->context->controller->addJS($this->module->getLocalPath() . 'js/back.js');
$this->context->controller->addCSS($this->module->getLocalPath() . 'css/back.css');
$this->context->controller->addJS($this->module->getLocalPath() . 'js/fontawesome-iconpicker.min.js');
$this->context->controller->addCSS($this->module->getLocalPath() . 'css/fontawesome-iconpicker.min.css');
$this->context->controller->addJS($this->module->getLocalPath() . 'js/spectrum.js');
$this->context->controller->addCSS($this->module->getLocalPath() . 'css/spectrum.css');
$this->context->controller->addCSS($this->module->getLocalPath() . 'css/fronteditor.css');
$this->context->controller->addJS($this->module->getLocalPath() . 'js/fronteditor.js');
Media::addJsDef(array('iqit_frontcreator' => true));
$this->context->controller->addJqueryUI('ui.sortable');
$this->context->controller->addJqueryPlugin('autocomplete');
}
示例8: setMedia
public function setMedia()
{
parent::setMedia();
if (version_compare(_PS_VERSION_, '1.5.0.0', '>=') && (method_exists($this->context, 'getMobileDevice') && $this->context->getMobileDevice() == false || !method_exists($this->context, 'getMobileDevice'))) {
$this->addCSS(array(_THEME_CSS_DIR_ . 'scenes.css' => 'all', _THEME_CSS_DIR_ . 'category.css' => 'all', _THEME_CSS_DIR_ . 'product_list.css' => 'all'));
if (Configuration::get('PS_COMPARATOR_MAX_ITEM') > 0) {
$this->addJS(_THEME_JS_DIR_ . 'products-comparison.js');
}
} else {
if (version_compare(_PS_VERSION_, '1.4.0.0', '>=')) {
Tools::addCSS(array(_PS_CSS_DIR_ . 'jquery.cluetip.css' => 'all', _THEME_CSS_DIR_ . 'scenes.css' => 'all', _THEME_CSS_DIR_ . 'category.css' => 'all', _THEME_CSS_DIR_ . 'product_list.css' => 'all'));
if (Configuration::get('PS_COMPARATOR_MAX_ITEM') > 0) {
Tools::addJS(_THEME_JS_DIR_ . 'products-comparison.js');
}
}
}
}
示例9: setMedia
public function setMedia()
{
parent::setMedia();
// Add CSS files //
$this->addCSS(_THEME_CSS_DIR_ . 'addresses.css');
if (class_exists('Tools') && method_exists('Tools', 'version_compare') && Tools::version_compare(_PS_VERSION_, '1.6', '>=') === true) {
$this->addCSS(__PS_BASE_URI__ . 'modules/' . $this->module->name . '/views/css/shiptomyid-16.css', 'all');
} else {
$this->addCSS(__PS_BASE_URI__ . 'modules/' . $this->module->name . '/views/css/shiptomyid.css', 'all');
}
// Add JS files //
$this->addJS(_THEME_JS_DIR_ . 'tools.js');
if (class_exists('Tools') && method_exists('Tools', 'version_compare') && Tools::version_compare(_PS_VERSION_, '1.6', '>=') === true) {
$this->addJS(__PS_BASE_URI__ . 'modules/' . $this->module->name . '/views/js/shipto-address-16.js');
} else {
$this->addJS(__PS_BASE_URI__ . 'modules/' . $this->module->name . '/views/js/shipto-address.js');
}
}
示例10: setMedia
public function setMedia()
{
parent::setMedia();
$this->context->controller->addJS(_MODULE_DIR_ . $this->module->name . '/js/' . $this->module->name . '.js');
$this->addJqueryPlugin(array('thickbox', 'idTabs'));
}
示例11: setMedia
public function setMedia()
{
parent::setMedia();
}
示例12: setMedia
public function setMedia()
{
parent::setMedia();
$this->addJqueryPlugin(array('thickbox', 'idTabs'));
}
示例13: setMedia
public function setMedia()
{
parent::setMedia();
if (!$this->instant_search && !$this->ajax_search) {
$this->addCSS(_THEME_CSS_DIR_ . 'product_list.css');
}
}
示例14: setMedia
public function setMedia()
{
parent::setMedia();
$this->addCSS(__PS_BASE_URI__ . MP_DIR . 'views/css/gateway.css');
}
示例15: setMedia
public function setMedia()
{
parent::setMedia();
$this->addCSS($this->module->getPathUri() . 'myvideo.css');
}