Sha256: 66d73eb5f80c0b34361e7742713b8f83776526b3647f3540e3c6b94bc93b97cb

Contents?: true

Size: 1.04 KB

Versions: 14

Compression:

Stored size: 1.04 KB

Contents

module RailsConnector

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

    # Renders all tags needed in the html head for the enabled features.
    # @api public
    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.
    # @api public
    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

14 entries across 14 versions & 1 rubygems

Version Path
infopark_rails_connector-6.8.1.26.236500544 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.1 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.539.93842523 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.529.114081979 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.518.30999728 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.515.34928522 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.498.46559598 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.480.261594408 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.444.171626367 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.406.131718077 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.356.19698103 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.348.160665197 app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.328.4a753fc app/helpers/rails_connector/layout_helper.rb
infopark_rails_connector-6.8.0.322.c003f11 app/helpers/rails_connector/layout_helper.rb