|
|
@@ -3,7 +3,7 @@ require 'calefaction/version' |
|
|
|
module ApplicationHelper |
|
|
|
|
|
|
|
def get_title(title = '') |
|
|
|
base = '[Site Name]' |
|
|
|
base = AdminSetting.get('site_name') |
|
|
|
title.empty? ? base : "#{title} : #{base}" |
|
|
|
end |
|
|
|
|
|
|
@@ -12,4 +12,8 @@ module ApplicationHelper |
|
|
|
year = Time.now.year |
|
|
|
year > start ? "#{start}–#{year}" : start |
|
|
|
end |
|
|
|
|
|
|
|
def get_copyright_holders |
|
|
|
AdminSetting.get('copyright') |
|
|
|
end |
|
|
|
end |