MDL-10234
[moodle-linuxchix.git] / lib / custom_corners_lib.php
blob382e096a2195c54f52cfbfe0d710610cda4e466a
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="bt"><div></div></div>';
20 $output .= "\n";
21 $output .= '<div class="i1"><div class="i2">';
22 $output .= (!empty($clearfix)) ? '<div class="i3 clearfix">' : '<div class="i3">';
24 if ($return) {
25 return $output;
26 } else {
27 echo $output;
32 /**
33 * Ending part of the surrounding divs for custom corners
35 * @param boolean $return, return as string or just print it
37 function print_custom_corners_end($return=false) {
38 $output = '</div></div></div>';
39 $output .= "\n";
40 $output .= '<div class="bb"><div></div></div>';
42 if ($return) {
43 return $output;
44 } else {
45 echo $output;