module ScopedHelper
def self.included(base)
def self.included(base) base.module_eval do def title t = current_site.name t = TrustyCms::Config['admin.title'] || 'TrustyCMS' if t.blank? t end def subtitle st = current_site.subtitle st = TrustyCms::Config['admin.subtitle'] || 'publishing for small teams' if st.blank? st end end end
def subtitle
def subtitle st = current_site.subtitle st = TrustyCms::Config['admin.subtitle'] || 'publishing for small teams' if st.blank? st end
def title
def title t = current_site.name t = TrustyCms::Config['admin.title'] || 'TrustyCMS' if t.blank? t end