Automatic installer.php lang files by installer_builder (20070726)
[moodle-linuxchix.git] / lib / custom_corners_lib.php
blob0ceb93e207960673c55cb8f4a99cbdd56fa7e665
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></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></div></div>'."\n";
42 $output .= '</div>';
44 if ($return) {
45 return $output;
46 } else {
47 echo $output;