Skip to content

Commit

Permalink
Merge pull request #49 from NeOMakinG/issue29198
Browse files Browse the repository at this point in the history
Add new hooks for the contact page
  • Loading branch information
matks committed Nov 10, 2022
2 parents ac01df3 + 5325a4b commit 15cf2a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ps_contactinfo.php
Expand Up @@ -59,6 +59,9 @@ public function install()
'displayNav', // Standard hook
'displayNav1', // For Classic-inspired themes
'displayFooter',
'displayContactRightColumn',
'displayContactLeftColumn',
'displayContactContent',
'actionAdminStoresControllerUpdate_optionsAfter',
]);
}
Expand All @@ -71,7 +74,7 @@ public function renderWidget($hookName = null, array $configuration = [])

if (preg_match('/^displayNav\d*$/', $hookName)) {
$template_file = $this->templates['light'];
} elseif ($hookName == 'displayLeftColumn' || $hookName == 'displayRightColumn') {
} elseif (in_array($hookName, ['displayContactLeftColumn', 'displayContactRightColumn', 'displayLeftColumn', 'displayRightColumn'])) {
$template_file = $this->templates['rich'];
} else {
$template_file = $this->templates['default'];
Expand Down

0 comments on commit 15cf2a6

Please sign in to comment.