mirror of
https://github.com/moodle/moodle.git
synced 2025-02-22 19:06:51 +01:00
* 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)
20 lines
698 B
PHP
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)
|
|
);
|
|
} |