Skip to content

Commit

Permalink
Merge pull request PrestaShop#19455 from cdcvince/develop
Browse files Browse the repository at this point in the history
Add hook displayAfterTitleTag
  • Loading branch information
Progi1984 authored Jul 10, 2020
2 parents 1cb24d0 + 264a0e0 commit 8cdb002
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions install-dev/data/xml/hook.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@
<title>Product update</title>
<description>This hook is displayed after a product has been updated</description>
</hook>
<hook id="displayAfterTitleTag">
<name>displayAfterTitleTag</name>
<title>After title tag</title>
<description>Use this hook to add content after title tag</description>
</hook>
<hook id="displayAfterBodyOpeningTag">
<name>displayAfterBodyOpeningTag</name>
<title>Very top of pages</title>
Expand Down
3 changes: 2 additions & 1 deletion install-dev/upgrade/sql/1.7.7.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -844,5 +844,6 @@ VALUES (NULL, 'actionOrderMessageFormBuilderModifier', 'Modify order message ide
(NULL, 'actionAddressGridPresenterModifier', 'Modify address grid template data',
'This hook allows to modify data which is about to be used in template for address grid', '1'),
(NULL, 'actionCreditSlipGridPresenterModifier', 'Modify credit slip grid template data',
'This hook allows to modify data which is about to be used in template for credit slip grid', '1')
'This hook allows to modify data which is about to be used in template for credit slip grid', '1'),
(NULL, 'displayAfterTitleTag', 'After title tag', 'Use this hook to add content after title tag', '1')
;
3 changes: 3 additions & 0 deletions themes/classic/templates/_partials/head.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@

{block name='head_seo'}
<title>{block name='head_seo_title'}{$page.meta.title}{/block}</title>
{block name='hook_after_title_tag'}
{hook h='displayAfterTitleTag'}
{/block}
<meta name="description" content="{block name='head_seo_description'}{$page.meta.description}{/block}">
<meta name="keywords" content="{block name='head_seo_keywords'}{$page.meta.keywords}{/block}">
{if $page.meta.robots !== 'index'}
Expand Down

0 comments on commit 8cdb002

Please sign in to comment.