' : '
';
if (!isset($THEME->customcornersopen)) {
$THEME->customcornersopen = 0;
}
$THEME->customcornersopen += 1;
if ($return) {
return $output;
} else {
echo $output;
}
}
/**
* Ending part of the surrounding divs for custom corners
*
* @param boolean $return, return as string or just print it
* @param mixed $idbase, optionally, define one idbase to be added to all the elements in the corners
*/
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 = '';
if ($idbase) {
$idbb = 'id="' . $idbase . '-bb" ';
}
/// Output begins
$output = '