/** * Add one or several JS files for front, checking if js files are overridden in theme/js/modules/ directory * @see Controller::addJS() * * @param array|string $js_uri Path to file, or an array of paths * @param bool $check_path If true, checks if files exists * @return true|void */ public function addJS($js_uri, $check_path = true) { return Frontcontroller::addMedia($js_uri, null, null, false, $check_path); }
/** * Add one or several JS files for front, checking if js files are overriden in theme/js/modules/ directory * * @see Controller::addJS() */ public function addJS($js_uri) { return Frontcontroller::addMedia($js_uri); }
/** * Add one or several JS files for front, checking if js files are overridden in theme/js/modules/ directory. * * @see Controller::addJS() * * @param array|string $js_uri Path to file, or an array of paths * @param bool $check_path If true, checks if files exists * * @return true|void */ public function addJS($js_uri, $check_path = true) { if (_PS_MODE_DEV_ && Tools::getValue('debug-disable-javascript')) { return; } return Frontcontroller::addMedia($js_uri, null, null, false, $check_path); }