javascript");
include($CFG->themedir.'/custom_corners/js/js.php');
// check if page is opened within a popup window
if (function_exists('is_in_popup')) {
$inpopup = is_in_popup();
} else {
$inpopup = false;
}
// get class list
preg_match('/class="([^"]*)"/i', $bodytags, $classes);
$classlist = explode (' ', $classes[1]);
// add "inpopup" or "notinpopup" to class list
if ($inpopup) {
array_push($classlist, 'inpopup');
} else {
array_push($classlist, 'notinpopup');
}
//replace classlist with new one
$bodytags = str_replace($classes[0], 'class="'.implode(' ', $classlist).'"', $bodytags);
?>
>