1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 04:10:38 +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---} '; $LAYOUT = '{---CONTACT-INFO---} {---CONTACT-FORM---} ';
} }
echo str_replace(
$LAYOUT = str_replace(
['{---CONTACT-FORM---}', '{---CONTACT-INFO---}'], ['{---CONTACT-FORM---}', '{---CONTACT-INFO---}'],
[$form, $info], [$form, $info],
$LAYOUT $LAYOUT
); );
echo e107::getParser()->parseTemplate($LAYOUT, true, e107::getScBatch('contact'));
} }
/** /**