Initial commit: is_searchbar out of the box. v3.0.1
This commit is contained in:
32
is_searchbar/config/common.yml
Normal file
32
is_searchbar/config/common.yml
Normal file
@ -0,0 +1,32 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: true
|
||||
|
||||
oksydan.is_searchbar.module:
|
||||
class: Is_searchbar
|
||||
factory: [ 'Module', 'getInstanceByName' ]
|
||||
public: false
|
||||
arguments:
|
||||
- 'is_searchbar'
|
||||
|
||||
oksydan.is_searchbar.hook.abstract_hook:
|
||||
class: Oksydan\IsSearchbar\Hook\AbstractHook
|
||||
public: true
|
||||
arguments:
|
||||
- '@oksydan.is_searchbar.module'
|
||||
- "@=service('prestashop.adapter.legacy.context').getContext()"
|
||||
|
||||
oksydan.is_searchbar.hook.abstract_display_hook:
|
||||
class: Oksydan\IsSearchbar\Hook\AbstractDisplayHook
|
||||
parent: 'oksydan.is_searchbar.hook.abstract_hook'
|
||||
public: true
|
||||
|
||||
oksydan.is_searchbar.hook.display_top:
|
||||
class: Oksydan\IsSearchbar\Hook\DisplayTop
|
||||
parent: 'oksydan.is_searchbar.hook.abstract_display_hook'
|
||||
public: true
|
||||
|
||||
oksydan.is_searchbar.hook.display_search:
|
||||
class: Oksydan\IsSearchbar\Hook\DisplaySearch
|
||||
parent: 'oksydan.is_searchbar.hook.abstract_display_hook'
|
||||
public: true
|
||||
11
is_searchbar/config/front/index.php
Normal file
11
is_searchbar/config/front/index.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
2
is_searchbar/config/front/services.yml
Normal file
2
is_searchbar/config/front/services.yml
Normal file
@ -0,0 +1,2 @@
|
||||
imports:
|
||||
- { resource: ../common.yml }
|
||||
11
is_searchbar/config/index.php
Normal file
11
is_searchbar/config/index.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
Reference in New Issue
Block a user