Navigation Menu

Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Commit

Permalink
[-] FO : Fix JS and CSS file includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gytis Škėma committed Jan 8, 2015
1 parent 9394d9c commit eb13227
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions blocksearch.php
Expand Up @@ -69,11 +69,15 @@ public function hookDisplayMobileHeader($params)

public function hookHeader($params)
{
if (Configuration::get('PS_SEARCH_AJAX'))
$this->context->controller->addJqueryPlugin('autocomplete');
$this->context->controller->addCSS(_THEME_CSS_DIR_.'product_list.css');
$this->context->controller->addCSS(($this->_path).'blocksearch.css', 'all');

if (Configuration::get('PS_SEARCH_AJAX'))
$this->context->controller->addJqueryPlugin('autocomplete');

if (Configuration::get('PS_INSTANT_SEARCH'))
$this->context->controller->addCSS(_THEME_CSS_DIR_.'product_list.css');

if (Configuration::get('PS_SEARCH_AJAX') || Configuration::get('PS_INSTANT_SEARCH'))
{
Media::addJsDef(array('search_url' => $this->context->link->getPageLink('search', Tools::usingSecureMode())));
$this->context->controller->addJS(($this->_path).'blocksearch.js');
Expand Down

0 comments on commit eb13227

Please sign in to comment.