本文整理汇总了PHP中FrontController::setMedia方法的典型用法代码示例。如果您正苦于以下问题:PHP FrontController::setMedia方法的具体用法?PHP FrontController::setMedia怎么用?PHP FrontController::setMedia使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FrontController
的用法示例。
在下文中一共展示了FrontController::setMedia方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setMedia
public function setMedia()
{
parent::setMedia();
Tools::addCSS(_THEME_CSS_DIR_ . 'history.css');
Tools::addCSS(_THEME_CSS_DIR_ . 'addresses.css');
Tools::addJS(array(_PS_JS_DIR_ . 'jquery/jquery.scrollTo-1.4.2-min.js', _THEME_JS_DIR_ . 'history.js'));
}
示例2: setMedia
public function setMedia()
{
parent::setMedia();
$this->addCSS(_THEME_CSS_DIR_ . 'product_list.css');
$this->addJS(_THEME_JS_DIR_ . 'header.js');
$this->addJS(_THEME_JS_DIR_ . 'product_list.js');
}
示例3: setMedia
/**
* Set default medias for this controller
*/
public function setMedia()
{
parent::setMedia();
$this->addJS(_PS_JS_DIR_ . 'validate.js');
$this->addJS(_THEME_JS_DIR_ . 'tools/statesManagement.js');
$this->addJS(_THEME_JS_DIR_ . 'validate_fields.js');
}
示例4: setMedia
/**
* Set default medias for this controller
*/
public function setMedia()
{
parent::setMedia();
$this->addCSS(_THEME_CSS_DIR_ . 'addresses.css');
$this->addJS(_THEME_JS_DIR_ . 'tools.js');
// retro compat themes 1.5
}
示例5: setMedia
public function setMedia()
{
parent::setMedia();
$this->addCSS(array(_THEME_CSS_DIR_ . 'history.css', _THEME_CSS_DIR_ . 'addresses.css'));
$this->addJqueryPlugin('scrollTo');
$this->addJS(array(_THEME_JS_DIR_ . 'history.js', _THEME_JS_DIR_ . 'tools.js'));
}
示例6: setMedia
public function setMedia()
{
parent::setMedia();
//if ($this->assignCase == 1)
//Tools::addJS(_THEME_JS_DIR_.'cms.js');
//Tools::addCSS(_THEME_CSS_DIR_.'cms.css');
}
示例7: setMedia
/**
* Set default medias for this controller
* @see FrontController::setMedia()
*/
public function setMedia()
{
parent::setMedia();
$this->addCSS(_THEME_CSS_DIR_ . 'authentication.css');
$this->addJqueryPlugin('typewatch');
$this->addJS(_THEME_JS_DIR_ . 'tools/statesManagement.js');
}
示例8: setMedia
public function setMedia()
{
parent::setMedia();
Tools::addJS(_THEME_JS_DIR_ . 'slider.js');
Tools::addJS(_THEME_JS_DIR_ . 'slides.min.jquery.js');
Tools::addJS(_THEME_JS_DIR_ . 'jquery.slide.js');
Tools::addJS(_THEME_JS_DIR_ . 'jquery.form.js');
}
示例9: setMedia
public function setMedia()
{
parent::setMedia();
Context::getContext()->controller->addCSS(array(_PS_CSS_DIR_ . 'jquery.cluetip.css' => 'all', _MODULE_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');
}
}
示例10: setMedia
public function setMedia()
{
parent::setMedia();
$this->addCSS(_THEME_CSS_DIR_ . '/comparator.css');
if (Configuration::get('PS_COMPARATOR_MAX_ITEM') > 0) {
$this->addJS(_THEME_JS_DIR_ . 'products-comparison.js');
}
}
示例11: setMedia
public function setMedia()
{
parent::setMedia();
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');
}
}
示例12: setMedia
/**
* Set default medias for this controller
*/
public function setMedia()
{
parent::setMedia();
//TODO : check why cluetip css is include without js file
$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');
}
}
示例13: setMedia
/**
* Set default medias for this controller
* @see FrontController::setMedia()
*/
public function setMedia()
{
parent::setMedia();
if (Context::getContext()->getMobileDevice() === false) {
$this->addCSS(_THEME_CSS_DIR_ . 'authentication.css');
}
$this->addJqueryPlugin('typewatch');
$this->addJS(_THEME_JS_DIR_ . 'tools/statesManagement.js');
}
示例14: setMedia
/**
* Set default medias for this controller
* @see FrontController::setMedia()
*/
public function setMedia()
{
parent::setMedia();
if (!$this->useMobileTheme()) {
$this->addCSS(_THEME_CSS_DIR_ . 'authentication.css');
}
$this->addJqueryPlugin('typewatch');
$this->addJS(array(_THEME_JS_DIR_ . 'tools/vatManagement.js', _THEME_JS_DIR_ . 'tools/statesManagement.js', _THEME_JS_DIR_ . 'authentication.js', _PS_JS_DIR_ . 'validate.js'));
}
示例15: setMedia
/**
* Set default medias for this controller
*/
public function setMedia()
{
parent::setMedia();
if ($this->context->getMobileDevice() == false) {
//TODO : check why cluetip css is include without js file
$this->addCSS(array(_THEME_CSS_DIR_ . 'scenes.css' => 'all', _THEME_CSS_DIR_ . 'category.css' => 'all', _THEME_CSS_DIR_ . 'product_list.css' => 'all'));
}
$this->addJS(_THEME_JS_DIR_ . 'category.js');
}