mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Allow for shortcode usage in the contact 'layout' template.
This commit is contained in:
@@ -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'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user