Added the check, if all opend custom_corners are closed. This way it's possible to add the close call in the footer which closes eventually open ccs.

This commit is contained in:
urs_hunkler
2007-11-11 15:02:54 +00:00
parent 60a4797402
commit fb87e8ae3b
+6 -1
View File
@@ -61,6 +61,12 @@ function print_custom_corners_start($clearfix=false, $return=false, $idbase=null
function print_custom_corners_end($return=false, $idbase=null) {
global $THEME;
if ($THEME->customcornersopen <= 0) {
return '';
}
$THEME->customcornersopen -= ($THEME->customcornersopen > 0) ? 1 : 0;
/// Analise if we want ids for the custom corner elements
$idbb = '';
@@ -74,7 +80,6 @@ function print_custom_corners_end($return=false, $idbase=null) {
$output .= '<div '.$idbb.'class="bb"><div>&nbsp;</div></div>'."\n";
$output .= '</div>';
$THEME->customcornersopen -= ($THEME->customcornersopen > 0) ? 1 : 0;
if ($return) {
return $output;