mirror of
https://github.com/e107inc/e107.git
synced 2025-08-28 08:39:57 +02:00
Issue #183: $sc_style not working with new SC batch methods:
- Wrapper support added (shortcode batches only, needs explicit wrapper registration) - new $SC_STYLE - not global, same format as the new wrapper - $sc_style is deprecated now - more detailed info in GitHub comments of the issue
This commit is contained in:
@@ -164,8 +164,10 @@ if(SITECONTACTINFO && $CONTACT_INFO)
|
||||
|
||||
if(isset($pref['sitecontacts']) && $pref['sitecontacts'] != 255)
|
||||
{
|
||||
// require_once(e_CORE."shortcodes/batch/contact_shortcodes.php");
|
||||
$contact_shortcodes = e107::getScBatch('contact');
|
||||
// Wrapper support
|
||||
$contact_shortcodes->wrapper('contact/form');
|
||||
|
||||
$text = $tp->parseTemplate($CONTACT_FORM, TRUE, $contact_shortcodes);
|
||||
|
||||
if(trim($text) != "")
|
||||
|
Reference in New Issue
Block a user