mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 20:51:53 +02:00
Allow for shortcode usage in the contact 'layout' template.
This commit is contained in:
parent
aacc54945f
commit
1fae6bf7cf
@ -58,11 +58,14 @@ class contact_front
|
||||
$LAYOUT = '{---CONTACT-INFO---} {---CONTACT-FORM---} ';
|
||||
}
|
||||
|
||||
echo str_replace(
|
||||
|
||||
$LAYOUT = str_replace(
|
||||
['{---CONTACT-FORM---}', '{---CONTACT-INFO---}'],
|
||||
[$form, $info],
|
||||
$LAYOUT
|
||||
);
|
||||
|
||||
echo e107::getParser()->parseTemplate($LAYOUT, true, e107::getScBatch('contact'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user