Commit 25e3ce14fd9020d01898d5fcdcb81ad3bd1b9d86

Authored by Braulio Bhavamitra
1 parent 64d0ae28

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 84 theme_path + '/style.css'
85 85 end
86 86  
  87 + def layout_template
  88 + if profile then profile.layout_template else environment.layout_template end
  89 + end
  90 +
87 91 def addthis_javascript
88 92 if NOOSFERO_CONF['addthis_enabled']
89 93 '<script src="https://s7.addthis.com/js/152/addthis_widget.js"></script>'
... ...