summaryrefslogtreecommitdiff
path: root/smartyplugins/block.form.php
diff options
context:
space:
mode:
authorChristian Fowler <cfowler2@wcpss.net>2013-04-25 11:52:52 -0400
committerChristian Fowler <cfowler2@wcpss.net>2013-04-25 11:52:52 -0400
commitcf28dc6c6385271119f0b8f3ffe1f416a6184b08 (patch)
tree7a0d28929d89481cd127ec53dfcce76fc1128e56 /smartyplugins/block.form.php
parent101cc936352a5242dc1f6c12767134797d4a0186 (diff)
downloadthemes-cf28dc6c6385271119f0b8f3ffe1f416a6184b08.tar.gz
themes-cf28dc6c6385271119f0b8f3ffe1f416a6184b08.tar.bz2
themes-cf28dc6c6385271119f0b8f3ffe1f416a6184b08.zip
remove divs from form blocks
Diffstat (limited to 'smartyplugins/block.form.php')
-rw-r--r--smartyplugins/block.form.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/smartyplugins/block.form.php b/smartyplugins/block.form.php
index 9c517ec..94cef96 100644
--- a/smartyplugins/block.form.php
+++ b/smartyplugins/block.form.php
@@ -96,10 +96,9 @@ function smarty_block_form( $pParams, $pContent, &$gBitSmarty) {
$onsub = ( !empty( $onsubmit ) ? ' onsubmit="'.$onsubmit.'"' : '' );
$ret = '<form action="'.$url.( !empty( $pParams['ianchor'] ) ? '#'.$pParams['ianchor'] : '' ).'" '.$atts.$onsub.'>';
- $ret .= isset( $legend ) ? '<fieldset>'.$legend : '<div>'; // adding the div makes it easier to be xhtml compliant
+ $ret .= isset( $legend ) ? '<fieldset>'.$legend : ''; // adding the div makes it easier to be xhtml compliant
$ret .= $pContent;
-// $ret .= '<div class="clear"></div>'; // needed to avoid rendering issues
- $ret .= isset( $legend ) ? '</fieldset>' : '</div>'; // close the open tags
+ $ret .= isset( $legend ) ? '</fieldset>' : ''; // close the open tags
$ret .= '</form>';
return $ret;
}