moodle/theme/anomaly/lib.php
Sam Hemelryk 60e1930096 theme-anomaly MDL-20175 Mega theme changes for anomaly
* Changed layout from tables to the 3 divs (2,1,3)
* Cleaned up the all of the images, remade where required with optimised palettes
* Rewrote CSS, this is ongoing process with changes required in both base and anomaly
* Customised the dock to fit with the theme
* Implemented a custom renderer to achieve rounded corners in IE + Opera (CSS otherwise)
2010-02-05 08:38:02 +00:00

20 lines
698 B
PHP

<?php
/**
* This is a slight variatoin on the standard_renderer_factory that uses
* custom_corners_core_renderer instead of core_renderer.
*
* This generates the slightly different HTML that the custom_corners theme expects.
*
* @copyright 2009 Sam Hemelryk
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
function theme_enable_block_region($region) {
global $PAGE, $OUTPUT;
return (
empty($PAGE->layout_options['noblocks']) &&
array_key_exists($PAGE->pagelayout, $PAGE->theme->layouts) &&
in_array($region, $PAGE->theme->layouts[$PAGE->pagelayout]['regions']) &&
$PAGE->blocks->region_has_content($region, $OUTPUT)
);
}