1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 21:21:54 +02:00

fixes #183, #185. Important change - $SC_STYLE (the replacement of v1

$sc_style) renamed to most propper $SC_WRAPPER. Testing still required.
This commit is contained in:
SecretR 2013-04-29 13:31:21 +03:00
parent f6703349a5
commit 6b820f4076
3 changed files with 8 additions and 8 deletions

View File

@ -41,12 +41,12 @@ $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 is renamed to sc_wrapper and 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'] = "<tr><td>{---}".LANCONTACT_07."</td></tr>";
// $SC_STYLE['CONTACT_PERSON'] = "<tr><td>".LANCONTACT_14."<br />{---}</td></tr>";
// $SC_STYLE['CONTACT_IMAGECODE'] = "<tr><td>".LANCONTACT_16."<br />{---}";
// $SC_STYLE['CONTACT_IMAGECODE_INPUT'] = "{---}</td></tr>";
// $SC_WRAPPER['CONTACT_EMAIL_COPY'] = "<tr><td>{---}".LANCONTACT_07."</td></tr>";
// $SC_WRAPPER['CONTACT_PERSON'] = "<tr><td>".LANCONTACT_14."<br />{---}</td></tr>";
// $SC_WRAPPER['CONTACT_IMAGECODE'] = "<tr><td>".LANCONTACT_16."<br />{---}";
// $SC_WRAPPER['CONTACT_IMAGECODE_INPUT'] = "{---}</td></tr>";
// Option II - Wrappers, used ONLY with batch objects, requires explicit wrapper registration

View File

@ -2187,9 +2187,9 @@ class e107
self::setRegistry($regPath, (isset($$var) ? $$var : array()));
// sc_style not a global anymore and uppercase
if(isset($SC_STYLE))
if(isset($SC_WRAPPER))
{
self::scStyle($SC_STYLE);
self::scStyle($SC_WRAPPER);
}
// ID_WRAPPER support

View File

@ -1017,7 +1017,7 @@ class e_parse_shortcode
}
if (isset($this->sc_style[$code]['post']))
{
$post = $ret.$this->sc_style[$code]['post'];
$post = $this->sc_style[$code]['post'];
}
}
// new way - same format as wrapper