MDL-9137 Fixing errors in the overview report
[moodle-pu.git] / lib / custom_corners_lib.php
blob5c88c12d1354f25a69d79e1979a60caa24041d34
1 <?php
2 /**
3 * @author Urs Hunkler
4 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
6 * Custom corners and borders
7 * Support library
9 * 2007-05-07 File created.
12 /**
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
18 function print_custom_corners_start($clearfix=false, $return=false) {
19 $output = '<div class="wrap">'."\n";
20 $output .= '<div class="bt"><div>&nbsp;</div></div>';
21 $output .= "\n";
22 $output .= '<div class="i1"><div class="i2">';
23 $output .= (!empty($clearfix)) ? '<div class="i3 clearfix">' : '<div class="i3">';
25 if ($return) {
26 return $output;
27 } else {
28 echo $output;
33 /**
34 * Ending part of the surrounding divs for custom corners
36 * @param boolean $return, return as string or just print it
38 function print_custom_corners_end($return=false) {
39 $output = '</div></div></div>';
40 $output .= "\n";
41 $output .= '<div class="bb"><div>&nbsp;</div></div>'."\n";
42 $output .= '</div>';
44 if ($return) {
45 return $output;
46 } else {
47 echo $output;