MDL-39871 themes: can now specify regions to swap when using rtl langs

Conflicts:
	lib/pagelib.php
This commit is contained in:
Sam Hemelryk
2013-06-10 09:31:05 +12:00
parent ddf1b0741d
commit d89fbe0285
3 changed files with 40 additions and 1 deletions
+9 -1
View File
@@ -325,6 +325,14 @@ class theme_config {
*/
public $yuicssmodules = array('cssreset', 'cssfonts', 'cssgrids', 'cssbase');
/**
* An associative array of block manipulations that should be made if the user is using an rtl language.
* The key is the original block region, and the value is the block region to change to.
* This is used when displaying blocks for regions only.
* @var array
*/
public $blockrtlmanipulations = array();
/**
* @var renderer_factory Instance of the renderer_factory implementation
* we are using. Implementation detail.
@@ -418,7 +426,7 @@ class theme_config {
$configurable = array('parents', 'sheets', 'parents_exclude_sheets', 'plugins_exclude_sheets', 'javascripts', 'javascripts_footer',
'parents_exclude_javascripts', 'layouts', 'enable_dock', 'enablecourseajax', 'supportscssoptimisation',
'rendererfactory', 'csspostprocess', 'editor_sheets', 'rarrow', 'larrow', 'hidefromselector', 'doctype',
'yuicssmodules');
'yuicssmodules', 'blockrtlmanipulations');
foreach ($config as $key=>$value) {
if (in_array($key, $configurable)) {