Module: Spud::ApplicationHelper
- Included in:
- ApplicationController
- Defined in:
- app/helpers/spud/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#current_site_id ⇒ Object
22 23 24 25 |
# File 'app/helpers/spud/application_helper.rb', line 22 def current_site_id config = Spud::Core.site_config_for_host(request.host_with_port) return config[:site_id] unless config.blank? end |
#current_site_name ⇒ Object
14 15 16 17 18 19 20 |
# File 'app/helpers/spud/application_helper.rb', line 14 def current_site_name return Spud::Core.site_name if !Spud::Core.multisite_mode_enabled config = Spud::Core.site_config_for_host(request.host_with_port) return Spud::Core.site_name if config.blank? return config[:site_name] end |
#tb_page_title ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'app/helpers/spud/application_helper.rb', line 3 def tb_page_title if content_for?(:title) title = content_for(:title) + ' : ' + Spud::Core.site_name elsif @page_title title = @page_title + ' : ' + Spud::Core.site_name else title = Spud::Core.site_name end return content_tag :title, title end |