diff --git a/web/themes/custom/opdavies/templates/menu/menu-local-task.html.twig b/web/themes/custom/opdavies/templates/menu/menu-local-task.html.twig new file mode 100644 index 0000000..b6c3ca2 --- /dev/null +++ b/web/themes/custom/opdavies/templates/menu/menu-local-task.html.twig @@ -0,0 +1,17 @@ +{# +/** + * @file + * Theme override for a local task link. + * + * Available variables: + * - attributes: HTML attributes for the wrapper element. + * - is_active: Whether the task item is an active tab. + * - link: A rendered link element. + * + * Note: This template renders the content for each task item in + * menu-local-tasks.html.twig. + * + * @see template_preprocess_menu_local_task() + */ +#} +{{ link }} diff --git a/web/themes/custom/opdavies/templates/menu/menu-local-tasks.html.twig b/web/themes/custom/opdavies/templates/menu/menu-local-tasks.html.twig new file mode 100644 index 0000000..3874add --- /dev/null +++ b/web/themes/custom/opdavies/templates/menu/menu-local-tasks.html.twig @@ -0,0 +1,21 @@ +{# +/** + * @file + * Theme override to display primary and secondary local tasks. + * + * Available variables: + * - primary: HTML list items representing primary tasks. + * - secondary: HTML list items representing primary tasks. + * + * Each item in these variables (primary and secondary) can be individually + * themed in menu-local-task.html.twig. + */ +#} +{% if primary %} +

{{ 'Primary tabs'|t }}

+ +{% endif %} +{% if secondary %} +

{{ 'Secondary tabs'|t }}

+ +{% endif %}