Sha256: 2be19864dcfb2193a2d4dd1f98829a9ba712b32e92c103e3029ad371331f4e7f

Contents?: true

Size: 534 Bytes

Versions: 11

Compression:

Stored size: 534 Bytes

Contents

module Cms
  module MobileHelper

    def full_site_url
      main_app.url_for(:host => Rails.configuration.cms.site_domain, :prefer_full_site => true)
    end

    def mobile_site_url
      main_app.url_for(:host => Rails.configuration.cms.site_domain, :prefer_mobile_site => true)
    end

    # Determines if the mobile template exists for a given page.
    # Used by view to show/hide the mobile toggle.
    def mobile_template_exists?(page)
      controller.template_exists?(page.layout_name, "layouts/mobile")
    end
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
browsercms-3.5.7 app/helpers/cms/mobile_helper.rb
browsercms-3.5.6 app/helpers/cms/mobile_helper.rb
browsercms-3.5.5 app/helpers/cms/mobile_helper.rb
browsercms-3.5.4 app/helpers/cms/mobile_helper.rb
browsercms-3.5.3 app/helpers/cms/mobile_helper.rb
browsercms-3.5.2 app/helpers/cms/mobile_helper.rb
browsercms-3.5.1 app/helpers/cms/mobile_helper.rb
browsercms-3.5.0 app/helpers/cms/mobile_helper.rb
browsercms-3.5.0.rc3 app/helpers/cms/mobile_helper.rb
browsercms-3.5.0.rc2 app/helpers/cms/mobile_helper.rb
browsercms-3.5.0.rc1 app/helpers/cms/mobile_helper.rb