Module: CCS::FrontendHelpers::GovUKFrontend::Footer

Included in:
CCS::FrontendHelpers::GovUKFrontend
Defined in:
lib/ccs/frontend_helpers/govuk_frontend/footer.rb

Overview

GOV.UK Footer

This helper is used for generating the footer component from the GDS - Components - Footer

Instance Method Summary collapse

Instance Method Details

Generates the HTML for the GOV.UK Footer component

Parameters:

  • navigation (Array<Hash>)

    an array of sections for the footer navigation. See Navigation#initialize for details of the items in the array.

  • meta (Hash)

    ptions for the meta section of the footer. See Meta#initialize for details of the options.

  • options (Hash)

    options that will be used in customising the HTML

Options Hash (**options):

  • :classes (String)

    additional CSS classes for the footer HTML

  • :container_class (String)

    classes that can be added to the inner container

  • :content_licence (ActiveSupport::SafeBuffer, String)

    The content licence information, see footer_content_licence for default

  • :copyright (ActiveSupport::SafeBuffer, String)

    The copyright information, (default: ‘© Crown copyright’)

  • :attributes (Hash)

    additional attributes that will added as part of the HTML

Returns:

  • (ActiveSupport::SafeBuffer)


22
23
24
# File 'lib/ccs/frontend_helpers/govuk_frontend/footer.rb', line 22

def govuk_footer(**options)
  Components::GovUK::Footer.new(context: self, **options).render
end