4 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
6 * Custom corners and borders
9 * 2007-05-07 File created.
13 * Starting part of the surrounding divs for custom corners
15 * @param boolean $clearfix, add CLASS "clearfix" to the inner div against collapsing
16 * @param boolean $return, return as string or just print it
17 * @param mixed $idbase, optionally, define one idbase to be added to all the elements in the corners
19 function print_custom_corners_start($clearfix=false, $return=false, $idbase=null) {
22 /// Analise if we want ids for the custom corner elements
29 $idbt = 'id="' . $idbase . '-bt" ';
30 $idi1 = 'id="' . $idbase . '-i1" ';
31 $idi2 = 'id="' . $idbase . '-i2" ';
32 $idi3 = 'id="' . $idbase . '-i3" ';
36 $output = '<div class="wrap">'."\n";
37 $output .= '<div '.$idbt.'class="bt"><div> </div></div>';
39 $output .= '<div '.$idi1.'class="i1"><div '.$idi2.'class="i2">';
40 $output .= (!empty($clearfix)) ?
'<div '.$idi3.'class="i3 clearfix">' : '<div '.$idi3.'class="i3">';
42 $THEME->customcornersopen +
= 1;
53 * Ending part of the surrounding divs for custom corners
55 * @param boolean $return, return as string or just print it
56 * @param mixed $idbase, optionally, define one idbase to be added to all the elements in the corners
58 function print_custom_corners_end($return=false, $idbase=null) {
61 /// Analise if we want ids for the custom corner elements
65 $idbb = 'id="' . $idbase . '-bb" ';
69 $output = '</div></div></div>';
71 $output .= '<div '.$idbb.'class="bb"><div> </div></div>'."\n";
74 $THEME->customcornersopen
-= ($THEME->customcornersopen
> 0) ?
1 : 0;