Permalink
Browse files

MDL-40204 theme_bootstrapbase & theme_clean: Fix RTL 3 column lyt wit…

…h 1 blk.
  • Loading branch information...
gjb2048 authored and Sam Hemelryk committed Jun 16, 2013
1 parent 6e07abb commit 2ab1b3de30e77736d4d5b725dc5bcbdf3406e6e3
@@ -14,6 +14,12 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
+if (right_to_left()) {
+ $regionbsid = 'region-bs-main-and-post';
+} else {
+ $regionbsid = 'region-bs-main-and-pre';
+}
+
echo $OUTPUT->doctype() ?>
<html <?php echo $OUTPUT->htmlattributes(); ?>>
<head>
@@ -61,7 +67,7 @@
</header>
<div id="page-content" class="row-fluid">
- <div id="region-bs-main-and-pre" class="span9">
+ <div id="<?php echo $regionbsid ?>" class="span9">
<div class="row-fluid">
<section id="region-main" class="span8 pull-right">
<?php
@@ -36,6 +36,12 @@
/** decrease the span size by 1 **/
.fluid-span(3);
}
+
+.empty-region-side-post #region-bs-main-and-post.span9 #region-main.span8 {
+ /** RTL with no post area. **/
+ width:100%;
+}
+
/** Page layout CSS ends **/
.dir-ltr,

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -31,6 +31,12 @@
// Get the HTML for the settings bits.
$html = theme_clean_get_html_for_settings($OUTPUT, $PAGE);
+if (right_to_left()) {
+ $regionbsid = 'region-bs-main-and-post';
+} else {
+ $regionbsid = 'region-bs-main-and-pre';
+}
+
echo $OUTPUT->doctype() ?>
<html <?php echo $OUTPUT->htmlattributes(); ?>>
<head>
@@ -78,7 +84,7 @@
</header>
<div id="page-content" class="row-fluid">
- <div id="region-bs-main-and-pre" class="span9">
+ <div id="<?php echo $regionbsid ?>" class="span9">
<div class="row-fluid">
<section id="region-main" class="span8 pull-right">
<?php

0 comments on commit 2ab1b3d

Please sign in to comment.