Commit 25e3ce14fd9020d01898d5fcdcb81ad3bd1b9d86
1 parent
64d0ae28
Exists in
master
and in
29 other branches
Add getter for current layout template
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
app/helpers/layout_helper.rb
@@ -84,6 +84,10 @@ module LayoutHelper | @@ -84,6 +84,10 @@ module LayoutHelper | ||
84 | theme_path + '/style.css' | 84 | theme_path + '/style.css' |
85 | end | 85 | end |
86 | 86 | ||
87 | + def layout_template | ||
88 | + if profile then profile.layout_template else environment.layout_template end | ||
89 | + end | ||
90 | + | ||
87 | def addthis_javascript | 91 | def addthis_javascript |
88 | if NOOSFERO_CONF['addthis_enabled'] | 92 | if NOOSFERO_CONF['addthis_enabled'] |
89 | '<script src="https://s7.addthis.com/js/152/addthis_widget.js"></script>' | 93 | '<script src="https://s7.addthis.com/js/152/addthis_widget.js"></script>' |