Sha256: 93df0dddf7675e6413da6f86252f42d7499dcf072cd6724b435a033b4d55bc5e

Contents?: true

Size: 1012 Bytes

Versions: 21

Compression:

Stored size: 1012 Bytes

Contents

module RailsConnector

  # This module contains helpers that render tags for the html head
  # and the end of the html body.
  module LayoutHelper
    include TrackingHelper

    # Renders all tags needed in the html head for the enabled features.
    def rails_connector_header_tags
      html = "".html_safe
      html += tag('meta', :name => 'generator',
          :content => "Rails Connector for Infopark CMS Fiona by Infopark AG (www.infopark.de); "\
          "Version #{Gem.loaded_specs['infopark_rails_connector'].version}")
      if Configuration.enabled?(:rss)
        html += auto_discovery_link_tag(:rss, rss_url, :title => 'RSS Feed')
      end
      html += include_edit_marker_support
      html
    end

    # Renders all tags needed at the end of the body tag for the enabled features.
    def rails_connector_after_content_tags
      html = "".html_safe
      html += render_marker_code
      html += google_analytics if Configuration.enabled?(:google_analytics)
      html
    end
  end

end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
infopark_rails_connector-6.8.0.210.ed204b0 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.110.6570b45 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.72.d18d096 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.23.da7f96b app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.16.def5e85 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.15.a24f5ff app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.beta.200.891.647580e app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.beta.200.889.d503e42 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.beta.200.883.f5f063b app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.beta.200.884.4bd86e6 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.beta.200.869.9609b39 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.beta.200.856.8c0fec5 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.beta.200.809.bdfa8c3 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.beta.200.785.05d4af9 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.beta.200.744.99f67fc app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.beta.200.720.44fbabd app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.beta.200.713.e5c3150 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.beta.200.681.7c84f4a app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.beta.200.663.ceecdee app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.beta.200.650.7c93155 app/helpers/rails_connector/layout_helper.rb