diff --git a/drupal/modules/avoindata-explore/avoindata_explore.module b/drupal/modules/avoindata-explore/avoindata_explore.module index 9966f1771c..153152c6a7 100644 --- a/drupal/modules/avoindata-explore/avoindata_explore.module +++ b/drupal/modules/avoindata-explore/avoindata_explore.module @@ -33,6 +33,10 @@ function avoindata_explore_theme($existing, $type, $theme, $path) { 'variables' => ['language' => NULL,], 'template' => 'avoindata_support_block', ], + 'avoindata_external' => [ + 'variables' => ['language' => NULL,], + 'template' => 'avoindata_external_block' + ] ]; } diff --git a/drupal/modules/avoindata-explore/src/Plugin/Block/ExternalBlock.php b/drupal/modules/avoindata-explore/src/Plugin/Block/ExternalBlock.php new file mode 100644 index 0000000000..8e917412a6 --- /dev/null +++ b/drupal/modules/avoindata-explore/src/Plugin/Block/ExternalBlock.php @@ -0,0 +1,28 @@ + \Drupal::languageManager()->getCurrentLanguage()->getId(), + '#theme' => 'avoindata_external', + ]; + } + +} diff --git a/drupal/modules/avoindata-explore/templates/avoindata_external_block.html.twig b/drupal/modules/avoindata-explore/templates/avoindata_external_block.html.twig new file mode 100644 index 0000000000..2ab1ee5ca2 --- /dev/null +++ b/drupal/modules/avoindata-explore/templates/avoindata_external_block.html.twig @@ -0,0 +1,51 @@ +{# +/** + * @file + * Avoindata External Block + * + * @ingroup themeable + */ +#} + +
+
+
+

+ {% trans %} + All finnish restricted data from one place + {% endtrans %} +

+
+ +
+ +
+
+ +
+ +
+
+

+ {% trans %} + Suomi.fi-suojattudata + {% endtrans %} +

+
+ + +
+ +
+ +
+ +
+
diff --git a/drupal/modules/avoindata-header/templates/avoindata_header.html.twig b/drupal/modules/avoindata-header/templates/avoindata_header.html.twig index c00d2ad1e6..d6e471e58a 100644 --- a/drupal/modules/avoindata-header/templates/avoindata_header.html.twig +++ b/drupal/modules/avoindata-header/templates/avoindata_header.html.twig @@ -27,6 +27,12 @@ {{ drupal_region('navigation') }} + + + Suomi.fi-suojattudata + + + {# Navigation (collapsible) #}