Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@
%}
{% block component_content %}

{% set after_planner_id = media_id ~ random() ~ '-after'|clean_id %}
{% set before_planner_id = media_id ~ random() ~ '-before'|clean_id %}
{% set skip_link_after = media_id ~ random() ~ '-after'|clean_id %}
{% set skip_link_before = media_id ~ random() ~ '-before'|clean_id %}
{% set cookie_consent_groups = ['preferences', 'statistics'] %}

{% include '@hdbt/misc/embedded-content-cookie-compliance.twig' with {
media_url: media_url,
media_id: media_id,
media_service_url: media_service_url,
privacy_policy_url: privacy_policy_url,
cookie_consent_groups: cookie_consent_groups,
} %}

{% set drupal_settings = {
Expand All @@ -27,8 +29,9 @@
'src': media_url,
'title': 'Digitransit UI embedded search'|t({}, {'context': 'Journey planner'}),
'type': 'journey_planner',
'skipLinkAfterId' : after_planner_id,
'skipLinkBeforeId' : before_planner_id,
'skipLinkAfterId' : skip_link_after,
'skipLinkBeforeId' : skip_link_before,
'cookieConsentGroups' : cookie_consent_groups,
}
}
}
Expand All @@ -39,4 +42,4 @@

{% endblock component_content %}
{% endembed %}
{% endblock paragraph %}
{% endblock paragraph %}
8 changes: 0 additions & 8 deletions public/themes/custom/hdbt_subtheme/translations/fi.po
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@ msgctxt "Journey planner"
msgid "Digitransit UI embedded search"
msgstr "Digitransit UI upotettu haku"

msgctxt "Skip link after the journey planner for the journey planner paragraph"
msgid "Continue above the journey planner"
msgstr "Siirry reittioppaan yläpuolelle"

msgctxt "Skip link before the journey planner for the journey planner paragraph"
msgid "Continue below the journey planner"
msgstr "Siirry reittioppaan alapuolelle"

msgctxt "District and project search fallback"
msgid "search result"
msgid_plural "search results"
Expand Down
8 changes: 0 additions & 8 deletions public/themes/custom/hdbt_subtheme/translations/sv.po
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@ msgctxt "Journey planner"
msgid "Digitransit UI embedded search"
msgstr "Digitransit UI inbäddad sökning"

msgctxt "Skip link after the journey planner for the journey planner paragraph"
msgid "Continue above the journey planner"
msgstr "Gå förbi reseplaneraren uppåt"

msgctxt "Skip link before the journey planner for the journey planner paragraph"
msgid "Continue below the journey planner"
msgstr "Gå förbi reseplaneraren nedåt"

msgctxt "District and project search fallback"
msgid "search result"
msgid_plural "search results"
Expand Down