Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new hooks for the contact page #49

Merged
merged 3 commits into from Nov 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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