Fixed Enable and Disable, Sitemap and Terms of Use for header and footer
This commit is contained in:
parent
5fb3731430
commit
96c3be68f7
|
@ -16,7 +16,7 @@ class FrontController < ApplicationController
|
||||||
@name = @page.first.name
|
@name = @page.first.name
|
||||||
@url = "/#{@name}"
|
@url = "/#{@name}"
|
||||||
|
|
||||||
if @site.enable_terms_of_use
|
if !@site.enable_terms_of_use
|
||||||
render :text => (@site.footer + "<a href='#{@url}'>Terms of Use</a>")
|
render :text => (@site.footer + "<a href='#{@url}'>Terms of Use</a>")
|
||||||
else
|
else
|
||||||
render :text => @site.footer
|
render :text => @site.footer
|
||||||
|
@ -34,7 +34,7 @@ class FrontController < ApplicationController
|
||||||
@name = @page.first.name
|
@name = @page.first.name
|
||||||
@url = "/#{@name}"
|
@url = "/#{@name}"
|
||||||
|
|
||||||
if @site.sitemap_menu_in_header
|
if !@site.sitemap_menu_in_header
|
||||||
render :text => (@site.sub_menu + "<a href='#{@url}'>Sitemap</a>")
|
render :text => (@site.sub_menu + "<a href='#{@url}'>Sitemap</a>")
|
||||||
else
|
else
|
||||||
render :text => @site.sub_menu
|
render :text => @site.sub_menu
|
||||||
|
|
|
@ -16,7 +16,7 @@ class Site
|
||||||
field :backend_openness_on, :type => Boolean, :default => false
|
field :backend_openness_on, :type => Boolean, :default => false
|
||||||
field :desktop_closed, :type => Boolean, :default => false
|
field :desktop_closed, :type => Boolean, :default => false
|
||||||
field :sitemap_menu_in_header, :type => Boolean, :default => false
|
field :sitemap_menu_in_header, :type => Boolean, :default => false
|
||||||
field :enable_terms_of_use, :type => Boolean, :default => true
|
field :enable_terms_of_use, :type => Boolean, :default => false
|
||||||
|
|
||||||
field :title_always_on, :type => Boolean, :default => false
|
field :title_always_on, :type => Boolean, :default => false
|
||||||
field :dashbroad_allow_visitor, :type => Boolean, :default => false
|
field :dashbroad_allow_visitor, :type => Boolean, :default => false
|
||||||
|
|
Reference in New Issue