diff --git a/e107_core/templates/contact_template.php b/e107_core/templates/contact_template.php index 95fa13dcc..52a20bfdc 100644 --- a/e107_core/templates/contact_template.php +++ b/e107_core/templates/contact_template.php @@ -17,17 +17,6 @@ if(!isset($CONTACT_INFO)) "; } -$sc_style['CONTACT_EMAIL_COPY']['pre'] = ""; -$sc_style['CONTACT_EMAIL_COPY']['post'] = LANCONTACT_07.""; - -$sc_style['CONTACT_PERSON']['pre'] = "".LANCONTACT_14."
"; -$sc_style['CONTACT_PERSON']['post'] = ""; - -$sc_style['CONTACT_IMAGECODE']['pre'] = "".LANCONTACT_16."
"; -$sc_style['CONTACT_IMAGECODE']['post'] = ""; - -$sc_style['CONTACT_IMAGECODE_INPUT']['pre'] = ""; -$sc_style['CONTACT_IMAGECODE_INPUT']['post'] = ""; @@ -50,11 +39,34 @@ $CONTACT_TEMPLATE['menu'] = ' '; + + ///XXX This..... + + $sc_style['CONTACT_EMAIL_COPY']['pre'] = ""; + $sc_style['CONTACT_EMAIL_COPY']['post'] = LANCONTACT_07.""; + + $sc_style['CONTACT_PERSON']['pre'] = "".LANCONTACT_14."
"; + $sc_style['CONTACT_PERSON']['post'] = ""; + + $sc_style['CONTACT_IMAGECODE']['pre'] = "".LANCONTACT_16."
"; + $sc_style['CONTACT_IMAGECODE']['post'] = ""; + + $sc_style['CONTACT_IMAGECODE_INPUT']['pre'] = ""; + $sc_style['CONTACT_IMAGECODE_INPUT']['post'] = ""; + + +//XXX Becomes This..... ( New Format for v2 - losing the pre/post and using a shortcode 'wildcard' that can be split later) + + $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'] = " + $CONTACT_TEMPLATE['form'] = "
- +
{CONTACT_PERSON}
".LANCONTACT_03."
{CONTACT_NAME} @@ -83,4 +95,4 @@ $CONTACT_TEMPLATE['menu'] = ' -?> +?> \ No newline at end of file diff --git a/e107_handlers/shortcode_handler.php b/e107_handlers/shortcode_handler.php index 7714361ee..9ee67f0bd 100644 --- a/e107_handlers/shortcode_handler.php +++ b/e107_handlers/shortcode_handler.php @@ -1106,6 +1106,8 @@ class e_shortcode protected $mode = 'view'; // or edit. Used within shortcodes for form elements vs values only. + protected $wrapper = array(); // hold values of pre/post styling for each shortcode - see contact_template.php for an example. + /** * Storage for shortcode values * @var e_vars