summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_theme.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-07-29 17:25:53 -0700
committerBharat Mediratta <bharat@menalto.com>2009-07-29 17:25:53 -0700
commit15f148349e8dd9145d33fbdbc85142b9a864b6ed (patch)
tree011d3b65c4734fdcf586f3670756508506c78561 /modules/gallery/helpers/gallery_theme.php
parentca96d4719608d4a8a62457ecf3e54ac8ca29629a (diff)
Make body_attributes() a theme callback instead of a method on the
View. This allows modules to piggyback on it.
Diffstat (limited to 'modules/gallery/helpers/gallery_theme.php')
-rw-r--r--modules/gallery/helpers/gallery_theme.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_theme.php b/modules/gallery/helpers/gallery_theme.php
index 998eb289..81b22b74 100644
--- a/modules/gallery/helpers/gallery_theme.php
+++ b/modules/gallery/helpers/gallery_theme.php
@@ -127,4 +127,10 @@ class gallery_theme_Core {
static function admin_credits() {
return gallery_theme::credits();
}
+
+ public function body_attributes() {
+ if (locales::is_rtl()) {
+ return 'class="rtl"';
+ }
+ }
} \ No newline at end of file