Commit 1f82edf8 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add spans and classes to pieform element pre- and post-html



Change-Id: Idf805a5ca7334306ee89f306337d9e884ee722e8
Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 4497a47c
......@@ -48,14 +48,14 @@ function pieform_renderer_div(Pieform $form, $element) {/*{{{*/
}
if (isset($element['prehtml'])) {
$result .= $element['prehtml'];
$result .= '<span class="prehtml">' . $element['prehtml'] . '</span>';
}
//$result .= $builtelement;
$result .= $element['html'];
if (isset($element['posthtml'])) {
$result .= $element['posthtml'];
$result .= '<span class="posthtml">' . $element['posthtml'] . '</span>';
}
if (isset($element['helphtml'])) {
......
......@@ -56,13 +56,13 @@ function pieform_renderer_oneline(Pieform $form, $element) {/*{{{*/
}
if (isset($element['prehtml'])) {
$result .= $element['prehtml'];
$result .= '<span class="prehtml">' . $element['prehtml'] . '</span>';
}
$result .= $element['html'];
if (isset($element['posthtml'])) {
$result .= $element['posthtml'];
$result .= '<span class="posthtml">' . $element['posthtml'] . '</span>';
}
$result .= "</span>";
......
......@@ -75,12 +75,12 @@ function pieform_renderer_table(Pieform $form, $element) {/*{{{*/
}
$result .= "</th>\n\t\t<td>";
if (isset($element['prehtml'])) {
$result .= $element['prehtml'];
$result .= '<span class="prehtml">' . $element['prehtml'] . '</span>';
}
$result .= $element['html'];
if (isset($element['posthtml'])) {
$result .= $element['posthtml'];
$result .= '<span class="posthtml">' . $element['posthtml'] . '</span>';
}
if (isset($element['helphtml'])) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment