1
0
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:
Cameron 2021-02-18 15:44:58 -08:00
parent aacc54945f
commit 1fae6bf7cf

View File

@ -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'));
}
/**