MDL-39871 themes: can now specify regions to swap when using rtl langs
Conflicts: lib/pagelib.php
This commit is contained in:
+9
-1
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user