summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/MY_View.php
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-06-06 15:24:14 -0700
committerAndy Staudacher <andy.st@gmail.com>2009-06-06 15:24:14 -0700
commit0e415dae9b29d792f631d3b94349086b8094c920 (patch)
treeedc30275caff571f2d447dd517f42d94fb3e38d7 /modules/gallery/libraries/MY_View.php
parent329bd8caa126040ba7abaf28e8f76e0b6739ceff (diff)
Preliminary BiDi support (needs *a lot* of tweaking)
Diffstat (limited to 'modules/gallery/libraries/MY_View.php')
-rw-r--r--modules/gallery/libraries/MY_View.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/gallery/libraries/MY_View.php b/modules/gallery/libraries/MY_View.php
index 836d1087..bd2794a0 100644
--- a/modules/gallery/libraries/MY_View.php
+++ b/modules/gallery/libraries/MY_View.php
@@ -43,4 +43,11 @@ class View extends View_Core {
return "";
}
}
+
+ public function main_element_attributes() {
+ if (locale::is_rtl()) {
+ return 'class="rtl"';
+ }
+ return '';
+ }
}