app/helpers/scoped_helper.rb



module ScopedHelper
  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
end