Jump to content

HOOK_TOP in header.tpl


Recommended Posts

Hi everybody :mellow:

I would like to see the code of this HOOK_TOP in the <header> of header.tpl :

{if isset($HOOK_TOP)}{$HOOK_TOP}{/if}

1°) Where is this $HOOK_TOP variable is declared ?

2°) How does it work to change the content of a hook like this in Prestasop ?

 

Thank in advance :)

Link to comment
Share on other sites

The varible {$HOOK_TOP} in the tpl file include all the modules hooked in that hook "displayTop", you can see the modules listed in this hook at: Back Office > Modules > Positions

 

Here a screenshot to help...

 

Screen_Shot_2016_06_27_at_12_00_09_AM.pn

Link to comment
Share on other sites

 

1°) Where is this $HOOK_TOP variable is declared ?

 

it is defined in classes/controllers/FrontController.php

 

near line 580 you can find code:

                'HOOK_TOP'          => Hook::exec('displayTop'),

and variable contains code from modules as COTOKO said

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...