我刚刚发现了新版本的 presashop (1.7.0)。
我想使用另一种 javascript,而不是 homeslider 模块默认提出的那个。
class Ps_ImageSlider extends Module implements WidgetInterface
{
public function hookdisplayHeader($params)
{
$this->context->controller->registerStylesheet('modules-homeslider', 'modules/'.$this->name.'/css/homeslider.css', ['media' => 'all', 'priority' => 150]);
$this->context->controller->registerJavascript('modules-responsiveslides', 'modules/'.$this->name.'/js/responsiveslides.min.js', ['position' => 'bottom', 'priority' => 150]);
$this->context->controller->registerJavascript('modules-homeslider', 'modules/'.$this->name.'/js/homeslider.js', ['position' => 'bottom', 'priority' => 150]);
}
}
但是,我不能在我的主题中超载它!
你有什么程序可以推荐给我吗?
谢谢。