<% add_gem_component_stylesheet("subscription-links") brand ||= false brand_helper = GovukPublishingComponents::AppHelpers::BrandHelper.new(brand) sl_helper = GovukPublishingComponents::Presenters::SubscriptionLinksHelper.new(local_assigns) component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns) component_helper.add_class("gem-c-subscription-links govuk-!-display-none-print #{brand_helper.brand_class}") component_helper.add_class("gem-c-subscription-links--with-feed-box") if sl_helper.feed_link_box_value component_helper.add_data_attribute({ module: "gem-toggle" }) if sl_helper.feed_link_box_value hide_heading ||= false email_signup_link_text_locale = local_assigns[:email_signup_link_text_locale].presence feed_link_text_locale = local_assigns[:feed_link_text_locale].presence %> <% if sl_helper.component_data_is_valid? %> <%= tag.section(**component_helper.all_attributes) do %> <% unless hide_heading %> <% end %> <% if sl_helper.feed_link_box_value %> <% end %> <% end %> <% end %>