From a8f927f2813fc5eecd8e29ac7a5c6164dc98c4e5 Mon Sep 17 00:00:00 2001 From: SecretR Date: Sun, 28 Apr 2013 19:28:53 +0300 Subject: [PATCH] Issue #183 - contact template now uses wrappers --- e107_core/templates/contact_template.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/e107_core/templates/contact_template.php b/e107_core/templates/contact_template.php index b326f2823..8e0ad85ef 100644 --- a/e107_core/templates/contact_template.php +++ b/e107_core/templates/contact_template.php @@ -43,21 +43,20 @@ $CONTACT_TEMPLATE['menu'] = ' // Option I - new sc style variable and format, global available per shortcode (mode also applied) // sc_style is uppercased now - distinguished from the legacy $sc_style variable and compatible with the new template standards, we deprecate $sc_style soon - $SC_STYLE['CONTACT_EMAIL_COPY'] = "{---}".LANCONTACT_07.""; - $SC_STYLE['CONTACT_PERSON'] = "".LANCONTACT_14."
{---}"; - $SC_STYLE['CONTACT_IMAGECODE'] = "".LANCONTACT_16."
{---}"; - $SC_STYLE['CONTACT_IMAGECODE_INPUT'] = "{---}"; + // $SC_STYLE['CONTACT_EMAIL_COPY'] = "{---}".LANCONTACT_07.""; + // $SC_STYLE['CONTACT_PERSON'] = "".LANCONTACT_14."
{---}"; + // $SC_STYLE['CONTACT_IMAGECODE'] = "".LANCONTACT_16."
{---}"; + // $SC_STYLE['CONTACT_IMAGECODE_INPUT'] = "{---}"; // Option II - Wrappers, used ONLY with batch objects, requires explicit wrapper registration // In this case (see contact.php) e107::getScBatch('contact')->wrapper('contact/form') // Only one Option is used - WRAPPER > SC_STYLE - // $CONTACT_WRAPPER['form']['CONTACT_IMAGECODE'] = "".LANCONTACT_16."
{---}"; - // $CONTACT_WRAPPER['form']['CONTACT_IMAGECODE_INPUT'] = "{---}"; -// - // $CONTACT_WRAPPER['form']['CONTACT_EMAIL_COPY'] = "{---}".LANCONTACT_07.""; - // $CONTACT_WRAPPER['form']['CONTACT_PERSON'] = "".LANCONTACT_14."
{---}"; + $CONTACT_WRAPPER['form']['CONTACT_IMAGECODE'] = "".LANCONTACT_16."
{---}"; + $CONTACT_WRAPPER['form']['CONTACT_IMAGECODE_INPUT'] = "{---}"; + $CONTACT_WRAPPER['form']['CONTACT_EMAIL_COPY'] = "{---}".LANCONTACT_07.""; + $CONTACT_WRAPPER['form']['CONTACT_PERSON'] = "".LANCONTACT_14."
{---}"; $CONTACT_TEMPLATE['form'] = "