@gov-cy/govcy-frontend-renderer 1.28.1 → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -81,62 +81,14 @@ const inputData =
81
81
  ],
82
82
  "footerIcons": [
83
83
  {
84
- "src": {
85
- "en": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg",
86
- "el": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg"
87
- },
88
- "alt": {
89
- "en": "Service Standard Verified seal",
90
- "el": "Σφραγίδα Πιστοποίησης Υπηρεσίας"
91
- },
92
- "href": {
93
- "en": "https://dsf.dmrid.gov.cy/2022/11/15/update-my-details/",
94
- "el": "https://dsf.dmrid.gov.cy/2022/11/15/update-my-details/"
95
- },
96
- "style": {
97
- "en": "content: url(https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg) !important;aspect-ratio: auto;height: 53px !important;",
98
- "el": "content: url(https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg) !important;aspect-ratio: auto;height: 53px !important;"
99
- },
100
- "target": "_blank",
101
- "classes": "govcy-mr-3"
84
+ "preset": "dsf-badge",
85
+ "badgeId": "DSF-water-aerators"
102
86
  },
103
87
  {
104
- "src": {
105
- "en": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/FundedbyEU_NextGeneration_H53-EN.png",
106
- "el": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/FundedbyEU_NextGeneration_H53-EL.png"
107
- },
108
- "alt": {
109
- "en": "Funded by the EU Next Generation EU",
110
- "el": "Χρηματοδοτείται από την ΕΕ Next Generation EU"
111
- },
112
- "href": {
113
- "en": "https://europa.eu/",
114
- "el": "https://europa.eu/"
115
- },
116
- "title": {
117
- "en": "Go to EU website",
118
- "el": "Μετάβαση στην ιστοσελίδα της ΕΕ"
119
- },
120
- "target": "_blank"
88
+ "preset": "eu-next-generation"
121
89
  },
122
90
  {
123
- "src": {
124
- "en": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/CYpros%20to%20aurio%20logo%20eng_H53_EN.png",
125
- "el": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/CYpros%20to%20aurio%20logo%20eng_H53_EL.png"
126
- },
127
- "alt": {
128
- "en": "Cyprus tomorrow, recovery and resilience plan",
129
- "el": "Κύπρος το Αύριο, σχέδιο ανάκαμψης και ανθεντικότητας"
130
- },
131
- "href": {
132
- "en": "http://www.cyprus-tomorrow.gov.cy/",
133
- "el": "http://www.cyprus-tomorrow.gov.cy/"
134
- },
135
- "title": {
136
- "en": "Go to Cyprus Tomorrow website",
137
- "el": "Μετάβαση στην ιστοσελίδα Κύπρος το Αύριο"
138
- },
139
- "target": "_blank"
91
+ "preset": "cyprus-tomorrow"
140
92
  }
141
93
  ],
142
94
  "copyrightText" : {"en":"Republic of Cyprus, 2025", "el":"Κυπριακή Δημοκρατία, 2025"},
@@ -259,62 +211,14 @@ const inputData =
259
211
  ],
260
212
  "footerIcons": [
261
213
  {
262
- "src": {
263
- "en": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg",
264
- "el": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg"
265
- },
266
- "alt": {
267
- "en": "Service Standard Verified seal",
268
- "el": "Σφραγίδα Πιστοποίησης Υπηρεσίας"
269
- },
270
- "href": {
271
- "en": "https://dsf.dmrid.gov.cy/2022/11/15/update-my-details/",
272
- "el": "https://dsf.dmrid.gov.cy/2022/11/15/update-my-details/"
273
- },
274
- "style": {
275
- "en": "content: url(https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg) !important;aspect-ratio: auto;height: 53px !important;",
276
- "el": "content: url(https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg) !important;aspect-ratio: auto;height: 53px !important;"
277
- },
278
- "target": "_blank",
279
- "classes": "govcy-mr-3"
214
+ "preset": "dsf-badge",
215
+ "badgeId": "DSF-water-aerators"
280
216
  },
281
217
  {
282
- "src": {
283
- "en": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/FundedbyEU_NextGeneration_H53-EN.png",
284
- "el": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/FundedbyEU_NextGeneration_H53-EL.png"
285
- },
286
- "alt": {
287
- "en": "Funded by the EU Next Generation EU",
288
- "el": "Χρηματοδοτείται από την ΕΕ Next Generation EU"
289
- },
290
- "href": {
291
- "en": "https://europa.eu/",
292
- "el": "https://europa.eu/"
293
- },
294
- "title": {
295
- "en": "Go to EU website",
296
- "el": "Μετάβαση στην ιστοσελίδα της ΕΕ"
297
- },
298
- "target": "_blank"
218
+ "preset": "eu-next-generation"
299
219
  },
300
220
  {
301
- "src": {
302
- "en": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/CYpros%20to%20aurio%20logo%20eng_H53_EN.png",
303
- "el": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/CYpros%20to%20aurio%20logo%20eng_H53_EL.png"
304
- },
305
- "alt": {
306
- "en": "Cyprus tomorrow, recovery and resilience plan",
307
- "el": "Κύπρος το Αύριο, σχέδιο ανάκαμψης και ανθεντικότητας"
308
- },
309
- "href": {
310
- "en": "http://www.cyprus-tomorrow.gov.cy/",
311
- "el": "http://www.cyprus-tomorrow.gov.cy/"
312
- },
313
- "title": {
314
- "en": "Go to Cyprus Tomorrow website",
315
- "el": "Μετάβαση στην ιστοσελίδα Κύπρος το Αύριο"
316
- },
317
- "target": "_blank"
221
+ "preset": "cyprus-tomorrow"
318
222
  }
319
223
  ],
320
224
  "copyrightText" : {"en":"Republic of Cyprus, 2025", "el":"Κυπριακή Δημοκρατία, 2025"},
@@ -483,7 +387,47 @@ The `inputData` object has the following structure:
483
387
  - **site.lang**: the language of the site. It is used both in the `<html lang` attribute and to define the default language to be used by the individual design elements defined in the template.
484
388
  - **site.languages**: the languages in the language menu.
485
389
  - **site.footerLinks**: the links of the footer.
486
- - **site.footerIcons**: the icons with links of the footer.
390
+ - **site.footerIcons**: the icons with links of the footer. It supports custom image link objects with `src`, `alt` and `href`, or predefined presets:
391
+
392
+ ```json
393
+ "footerIcons": [
394
+ {
395
+ "preset": "dsf-badge",
396
+ "badgeId": "DSF-water-aerators"
397
+ },
398
+ {
399
+ "preset": "eu-next-generation"
400
+ },
401
+ {
402
+ "preset": "cyprus-tomorrow"
403
+ },
404
+ {
405
+ "src": {
406
+ "en": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/dsf-components.png",
407
+ "el": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/dsf-components.png"
408
+ },
409
+ "alt": {
410
+ "en": "DSF components",
411
+ "el": "DSF components"
412
+ },
413
+ "href": {
414
+ "en": "https://gov-cy.github.io/govcy-design-system-docs/",
415
+ "el": "https://gov-cy.github.io/govcy-design-system-docs/"
416
+ },
417
+ "title": {
418
+ "en": "Go to the Unified Design System website",
419
+ "el": "Go to the Unified Design System website"
420
+ },
421
+ "style": {
422
+ "en": "content: url(https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/dsf-components.png) !important;aspect-ratio: auto;height: 53px !important;",
423
+ "el": "content: url(https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/dsf-components.png) !important;aspect-ratio: auto;height: 53px !important;"
424
+ },
425
+ "target": "_blank",
426
+ "classes": "govcy-mr-3"
427
+ }
428
+ ]
429
+ ```
430
+
487
431
  - **site.copyrightText**: the text of the copyright in the footer, including the year.
488
432
  - **site.menu**: the menu label (optional).
489
433
  - **site.navigation**: the header navigation structure (optional). See [Navigation explained](#navigation-explained).
@@ -769,4 +713,4 @@ The package is released under the [MIT License](https://opensource.org/licenses/
769
713
 
770
714
  ## Contact
771
715
 
772
- If you have any questions or feedback, please feel free to reach out to us at [dsf-admin@dits.dmrid.gov.cy](mailto:dsf-admin@dits.dmrid.gov.cy)
716
+ If you have any questions or feedback, please feel free to reach out to us at [dsf-admin@dits.dmrid.gov.cy](mailto:dsf-admin@dits.dmrid.gov.cy)
@@ -167,7 +167,7 @@ frame.set("key", l_key);
167
167
  frame.set("lang", l_lang);
168
168
  frame.set("isHTML", l_isHTML);
169
169
  var t_22 = "";var t_23;
170
- t_23 = {"empty_text": {"en": "","el": ""},"backLink_back": {"el": "Πίσω","en": "Back"},"common_or": {"el": "Ή","en": "Or"},"common_and": {"el": "Και","en": "And"},"common_entry": {"en": "Entry","el": "Καταχώρηση"},"common_entries": {"en": "Entries","el": "Καταχωρήσεις"},"dateInput_dayLabel": {"el": "Μέρα","en": "Day"},"dateInput_monthLabel": {"el": "Μήνας","en": "Month"},"dateInput_yearLabel": {"el": "Χρόνος","en": "Year"},"dateInput_monthValue1": {"en": "January","el": "Ιανουάριος"},"dateInput_monthValue2": {"en": "February","el": "Φεβρουάριος"},"dateInput_monthValue3": {"en": "March","el": "Μάρτιος"},"dateInput_monthValue4": {"en": "April","el": "Απρίλιος"},"dateInput_monthValue5": {"en": "May","el": "Μάϊος"},"dateInput_monthValue6": {"en": "June","el": "Ιούνιος"},"dateInput_monthValue7": {"en": "July","el": "Ιούλιος"},"dateInput_monthValue8": {"en": "August","el": "Αύγουστος"},"dateInput_monthValue9": {"en": "September","el": "Σεπτέμβριος"},"dateInput_monthValue10": {"en": "October","el": "Οκτώβριος"},"dateInput_monthValue11": {"en": "November","el": "Νοέμβριος"},"dateInput_monthValue12": {"en": "December","el": "Δεκέμβριος"},"errorMessage_hiddenError": {"en": "Error","el": "Σφάλμα"},"errorSummary_header": {"en": "There is a problem","el": "Υπάρχει πρόβλημα"},"header_menu": {"en": "Menu","el": "Μενού"},"header_mainMenuAria": {"en": "Main menu","el": "Κύριο μενού"},"fileView_view": {"en": "View","el": "Προβολή"},"fileView_delete": {"en": "Delete","el": "Διαγραφή"},"progressList_completedLabel": {"en": "Completed","el": "Ολοκληρώθηκε"},"progressList_notCompletedLabel": {"en": "Not completed","el": "Δεν ολοκληρώθηκε"},"progressList_stepLabel": {"en": "Step","el": "Βήμα"},"progressList_ofLabel": {"en": "of","el": "από"},"radios_conditionalLabel": {"en": "This option expands and has more questions,","el": "Αυτή η επιλογή επεκτείνεται και έχει περισσότερες ερωτήσεις,"},"stepByStepStatic_step": {"en": "Step","el": "Βήμα"},"share_share": {"en": "Share","el": "Share (κοινή χρήση)"},"share_sms": {"en": "SMS","el": "SMS"},"share_email": {"en": "Email","el": "Email"},"share_preview": {"en": "Notification content","el": "Περιεχόμενο ειδοποίησης"},"share_copy": {"en": "Copy","el": "Αντιγραφή"},"share_copySuccess": {"en": "Copied","el": "Αντιγράφηκε"},"taskList_withStatus": {"en": "with status ","el": "με κατάσταση "},"textArea_charRemaining": {"en": "You have <span></span> characters remaining","el": "Έχετε <span></span> χαρακτήρες που απομένουν"},"textArea_charExceeding": {"en": "You have entered <span></span> characters more","el": "Έχετε περάσει <span></span> χαρακτήρες περισσότερους"},"textArea_wordRemaining": {"en": "You have <span></span> words remaining","el": "Έχετε <span></span> λέξεις που απομένουν"},"textArea_wordsExceeding": {"en": "You have entered <span></span> words more","el": "Έχετε περάσει <span></span> λέξεις περισσότερες"},"userName_signOut": {"en": "Sign out","el": "Αποσύνδεση"},"userName_fromUser": {"en": "from user","el": "από το χρήστη"},"warning": {"en": "Warning","el": "Προσοχή"}};
170
+ t_23 = {"empty_text": {"en": "","el": ""},"backLink_back": {"el": "Πίσω","en": "Back"},"common_or": {"el": "Ή","en": "Or"},"common_and": {"el": "Και","en": "And"},"common_entry": {"en": "Entry","el": "Καταχώρηση"},"common_entries": {"en": "Entries","el": "Καταχωρήσεις"},"dateInput_dayLabel": {"el": "Μέρα","en": "Day"},"dateInput_monthLabel": {"el": "Μήνας","en": "Month"},"dateInput_yearLabel": {"el": "Χρόνος","en": "Year"},"dateInput_monthValue1": {"en": "January","el": "Ιανουάριος"},"dateInput_monthValue2": {"en": "February","el": "Φεβρουάριος"},"dateInput_monthValue3": {"en": "March","el": "Μάρτιος"},"dateInput_monthValue4": {"en": "April","el": "Απρίλιος"},"dateInput_monthValue5": {"en": "May","el": "Μάϊος"},"dateInput_monthValue6": {"en": "June","el": "Ιούνιος"},"dateInput_monthValue7": {"en": "July","el": "Ιούλιος"},"dateInput_monthValue8": {"en": "August","el": "Αύγουστος"},"dateInput_monthValue9": {"en": "September","el": "Σεπτέμβριος"},"dateInput_monthValue10": {"en": "October","el": "Οκτώβριος"},"dateInput_monthValue11": {"en": "November","el": "Νοέμβριος"},"dateInput_monthValue12": {"en": "December","el": "Δεκέμβριος"},"errorMessage_hiddenError": {"en": "Error","el": "Σφάλμα"},"errorSummary_header": {"en": "There is a problem","el": "Υπάρχει πρόβλημα"},"footerIcon_cyprusTomorrow_alt": {"en": "Cyprus tomorrow, recovery and resilience plan","el": "Κύπρος το Αύριο, σχέδιο ανάκαμψης και ανθεκτικότητας"},"footerIcon_cyprusTomorrow_title": {"en": "Go to Cyprus Tomorrow website","el": "Μετάβαση στην ιστοσελίδα Κύπρος το Αύριο"},"footerIcon_euNextGeneration_alt": {"en": "Funded by the EU Next Generation EU","el": "Χρηματοδοτείται από την ΕΕ Next Generation EU"},"footerIcon_euNextGeneration_title": {"en": "Go to EU website","el": "Μετάβαση στην ιστοσελίδα της ΕΕ"},"header_menu": {"en": "Menu","el": "Μενού"},"header_mainMenuAria": {"en": "Main menu","el": "Κύριο μενού"},"fileView_view": {"en": "View","el": "Προβολή"},"fileView_delete": {"en": "Delete","el": "Διαγραφή"},"progressList_completedLabel": {"en": "Completed","el": "Ολοκληρώθηκε"},"progressList_notCompletedLabel": {"en": "Not completed","el": "Δεν ολοκληρώθηκε"},"progressList_stepLabel": {"en": "Step","el": "Βήμα"},"progressList_ofLabel": {"en": "of","el": "από"},"radios_conditionalLabel": {"en": "This option expands and has more questions,","el": "Αυτή η επιλογή επεκτείνεται και έχει περισσότερες ερωτήσεις,"},"stepByStepStatic_step": {"en": "Step","el": "Βήμα"},"share_share": {"en": "Share","el": "Share (κοινή χρήση)"},"share_sms": {"en": "SMS","el": "SMS"},"share_email": {"en": "Email","el": "Email"},"share_preview": {"en": "Notification content","el": "Περιεχόμενο ειδοποίησης"},"share_copy": {"en": "Copy","el": "Αντιγραφή"},"share_copySuccess": {"en": "Copied","el": "Αντιγράφηκε"},"taskList_withStatus": {"en": "with status ","el": "με κατάσταση "},"textArea_charRemaining": {"en": "You have <span></span> characters remaining","el": "Έχετε <span></span> χαρακτήρες που απομένουν"},"textArea_charExceeding": {"en": "You have entered <span></span> characters more","el": "Έχετε περάσει <span></span> χαρακτήρες περισσότερους"},"textArea_wordRemaining": {"en": "You have <span></span> words remaining","el": "Έχετε <span></span> λέξεις που απομένουν"},"textArea_wordsExceeding": {"en": "You have entered <span></span> words more","el": "Έχετε περάσει <span></span> λέξεις περισσότερες"},"userName_signOut": {"en": "Sign out","el": "Αποσύνδεση"},"userName_fromUser": {"en": "from user","el": "από το χρήστη"},"warning": {"en": "Warning","el": "Προσοχή"}};
171
171
  frame.set("govcyContent", t_23, true);
172
172
  if(frame.topLevel) {
173
173
  context.setVariable("govcyContent", t_23);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gov-cy/govcy-frontend-renderer",
3
- "version": "1.28.1",
3
+ "version": "1.29.0",
4
4
  "description": "Render html for design elements of the Unified design system using njk or json template.",
5
5
  "author": "DMRID - DSF Team",
6
6
  "license": "MIT",
@@ -18,62 +18,38 @@ To use this template you need to pass the following data:
18
18
  ],
19
19
  "footerIcons": [
20
20
  {
21
- "src": {
22
- "en": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg",
23
- "el": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg"
24
- },
25
- "alt": {
26
- "en": "Service Standard Verified seal",
27
- "el": "Σφραγίδα Πιστοποίησης Υπηρεσίας"
28
- },
29
- "href": {
30
- "en": "https://dsf.dmrid.gov.cy/2022/11/15/update-my-details/",
31
- "el": "https://dsf.dmrid.gov.cy/2022/11/15/update-my-details/"
32
- },
33
- "style": {
34
- "en": "content: url(https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg) !important;aspect-ratio: auto;height: 53px !important;",
35
- "el": "content: url(https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/seals/ssv-certificate-verification-info.svg) !important;aspect-ratio: auto;height: 53px !important;"
36
- },
37
- "target": "_blank",
38
- "classes": "govcy-mr-3"
21
+ "preset": "dsf-badge",
22
+ "badgeId": "E-Serv-07-MC-2025_2"
39
23
  },
40
24
  {
41
- "src": {
42
- "en": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/FundedbyEU_NextGeneration_H53-EN.png",
43
- "el": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/FundedbyEU_NextGeneration_H53-EL.png"
44
- },
45
- "alt": {
46
- "en": "Funded by the EU Next Generation EU",
47
- "el": "Χρηματοδοτείται από την ΕΕ Next Generation EU"
48
- },
49
- "href": {
50
- "en": "https://europa.eu/",
51
- "el": "https://europa.eu/"
52
- },
53
- "title": {
54
- "en": "Go to EU website",
55
- "el": "Μετάβαση στην ιστοσελίδα της ΕΕ"
56
- },
57
- "target": "_blank"
25
+ "preset": "eu-next-generation"
26
+ },
27
+ {
28
+ "preset": "cyprus-tomorrow"
58
29
  },
59
30
  {
60
31
  "src": {
61
- "en": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/CYpros%20to%20aurio%20logo%20eng_H53_EN.png",
62
- "el": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/CYpros%20to%20aurio%20logo%20eng_H53_EL.png"
32
+ "en": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/dsf-components.png",
33
+ "el": "https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/dsf-components.png"
63
34
  },
64
35
  "alt": {
65
- "en": "Cyprus tomorrow, recovery and resilience plan",
66
- "el": "Κύπρος το Αύριο, σχέδιο ανάκαμψης και ανθεντικότητας"
36
+ "en": "DSF components",
37
+ "el": "DSF components"
67
38
  },
68
39
  "href": {
69
- "en": "http://www.cyprus-tomorrow.gov.cy/",
70
- "el": "http://www.cyprus-tomorrow.gov.cy/"
40
+ "en": "https://gov-cy.github.io/govcy-design-system-docs/",
41
+ "el": "https://gov-cy.github.io/govcy-design-system-docs/"
71
42
  },
72
43
  "title": {
73
- "en": "Go to Cyprus Tomorrow website",
74
- "el": "Μετάβαση στην ιστοσελίδα Κύπρος το Αύριο"
44
+ "en": "Go to the Unified Design System website",
45
+ "el": "Go to the Unified Design System website"
46
+ },
47
+ "style": {
48
+ "en": "content: url(https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/dsf-components.png) !important;aspect-ratio: auto;height: 53px !important;",
49
+ "el": "content: url(https://cdn.jsdelivr.net/gh/gov-cy/govdesign@main/dsf-components.png) !important;aspect-ratio: auto;height: 53px !important;"
75
50
  },
76
- "target": "_blank"
51
+ "target": "_blank",
52
+ "classes": "govcy-mr-3"
77
53
  }
78
54
  ],
79
55
  "copyrightText" : {"en":"Republic of Cyprus, 2025", "el":"Κυπριακή Δημοκρατία, 2025"},
@@ -436,14 +412,78 @@ To use this template you need to pass the following data:
436
412
  <div class="govcy-d-flex govcy-align-items-center govcy-flex-wrap">
437
413
  <span class="govcy-fs-2 govcy-fw-bold govcy-mr-6">gov.cy</span>
438
414
  <span class="govcy-mr-6 govcy-mt-2">&copy; {{ govcyLocalizeContent(site.copyrightText, site.lang) }}</span>
439
- {%- if site.footerIcons %}
440
- {% for footerIcon in site.footerIcons %}
441
- {#- src, alt and href are mandatory -#}
442
- {%- if footerIcon.src and footerIcon.alt and footerIcon.href -%}
443
- <a href="{{ govcyLocalizeContent(footerIcon.href, site.lang, true) }}"{% if footerIcon.target %} target="{{ footerIcon.target }}"{% endif %}{% if footerIcon.title %} title="{{ govcyLocalizeContent(footerIcon.title, site.lang) }}"{% endif %}>
444
- <img class="govcy-eu-logo govcy-mb-2{% if footerIcon.classes %} {{ footerIcon.classes }}{% endif %}" src="{{ govcyLocalizeContent(footerIcon.src, site.lang, true) }}" alt="{{ govcyLocalizeContent(footerIcon.alt, site.lang, true) }}"{% if footerIcon.style %} style="{{ govcyLocalizeContent(footerIcon.style, site.lang, true) }}"{% endif %}>
415
+ {% if site.footerIcons %}
416
+ {#- Set Icon presets #}
417
+ {%- set footerIconPresets = {
418
+ "eu-next-generation": {
419
+ type: "imageLink",
420
+ src: {
421
+ en: "https://cdn.jsdelivr.net/gh/gov-cy/govcy-design-system-docs@main/src/img/FundedbyEU_NextGeneration_H53-EN.png",
422
+ el: "https://cdn.jsdelivr.net/gh/gov-cy/govcy-design-system-docs@main/src/img/FundedbyEU_NextGeneration_H53-EL.png"
423
+ },
424
+ altKey: "footerIcon_euNextGeneration_alt",
425
+ href: {
426
+ en: "https://europa.eu/",
427
+ el: "https://europa.eu/"
428
+ },
429
+ titleKey: "footerIcon_euNextGeneration_title",
430
+ target: "_blank"
431
+ },
432
+ "cyprus-tomorrow": {
433
+ type: "imageLink",
434
+ src: {
435
+ en: "https://cdn.jsdelivr.net/gh/gov-cy/govcy-design-system-docs@main/src/img/CYpros%20to%20aurio%20logo%20eng_H53_EN.png",
436
+ el: "https://cdn.jsdelivr.net/gh/gov-cy/govcy-design-system-docs@main/src/img/CYpros%20to%20aurio%20logo%20eng_H53_EL.png"
437
+ },
438
+ altKey: "footerIcon_cyprusTomorrow_alt",
439
+ href: {
440
+ en: "http://www.cyprus-tomorrow.gov.cy/",
441
+ el: "http://www.cyprus-tomorrow.gov.cy/"
442
+ },
443
+ titleKey: "footerIcon_cyprusTomorrow_title",
444
+ target: "_blank"
445
+ },
446
+ "dsf-badge": {
447
+ type: "dsfBadge",
448
+ scriptSrc: {
449
+ en: "https://dsf-seals.staging.service.gov.cy/embed.js",
450
+ el: "https://dsf-seals.staging.service.gov.cy/embed.js"
451
+ }
452
+ }
453
+ } -%}
454
+ {% for footerIconItem in site.footerIcons %}
455
+ {%- set footerIcon = footerIconItem -%}
456
+ {#- Handle presets -#}
457
+ {%- if footerIconItem.preset and footerIconPresets[footerIconItem.preset] -%}
458
+ {%- set footerIcon = footerIconPresets[footerIconItem.preset] | merge(footerIconItem) -%}
459
+ {%- endif -%}
460
+ {#- Handle dsfBadge preset -#}
461
+ {%- if footerIcon.type == "dsfBadge" and footerIcon.badgeId -%}
462
+ <span data-dsf-badge="{{ footerIcon.badgeId }}"></span>
463
+ {%- if footerIcon.scriptSrc %}
464
+ <script async src="{{ govcyLocalizeContent(footerIcon.scriptSrc, site.lang, true) }}"></script>
465
+ {%- endif %}
466
+ {%- else -%}
467
+ {#- src, alt and href are mandatory for image links -#}
468
+ {%- set footerIconAlt = "" -%}
469
+ {%- if footerIcon.alt -%}
470
+ {%- set footerIconAlt = govcyLocalizeContent(footerIcon.alt, site.lang, true) -%}
471
+ {%- elseif footerIcon.altKey -%}
472
+ {%- set footerIconAlt = govcyGetContent(footerIcon.altKey, site.lang) -%}
473
+ {%- endif -%}
474
+ {%- set footerIconTitle = "" -%}
475
+ {%- if footerIcon.title -%}
476
+ {%- set footerIconTitle = govcyLocalizeContent(footerIcon.title, site.lang) -%}
477
+ {%- elseif footerIcon.titleKey -%}
478
+ {%- set footerIconTitle = govcyGetContent(footerIcon.titleKey, site.lang) -%}
479
+ {%- endif -%}
480
+ {#- Handle the reset of the footer icons -#}
481
+ {%- if footerIcon.src and footerIconAlt and footerIcon.href -%}
482
+ <a href="{{ govcyLocalizeContent(footerIcon.href, site.lang, true) }}"{% if footerIcon.target %} target="{{ footerIcon.target }}"{% endif %}{% if footerIconTitle %} title="{{ footerIconTitle }}"{% endif %}>
483
+ <img class="govcy-eu-logo govcy-mb-2{% if footerIcon.classes %} {{ footerIcon.classes }}{% endif %}" src="{{ govcyLocalizeContent(footerIcon.src, site.lang, true) }}" alt="{{ footerIconAlt }}"{% if footerIcon.style %} style="{{ govcyLocalizeContent(footerIcon.style, site.lang, true) }}"{% endif %}>
445
484
  </a>
446
485
  {%- endif %}
486
+ {%- endif %}
447
487
  {% endfor %}
448
488
  {%- endif %}
449
489
  </div>
@@ -62,6 +62,10 @@
62
62
  dateInput_monthValue12: {en:'December',el:'Δεκέμβριος'},
63
63
  errorMessage_hiddenError: {en:'Error',el:'Σφάλμα'},
64
64
  errorSummary_header: {en:"There is a problem",el:"Υπάρχει πρόβλημα"},
65
+ footerIcon_cyprusTomorrow_alt: {en:"Cyprus tomorrow, recovery and resilience plan",el:"Κύπρος το Αύριο, σχέδιο ανάκαμψης και ανθεκτικότητας"},
66
+ footerIcon_cyprusTomorrow_title: {en:"Go to Cyprus Tomorrow website",el:"Μετάβαση στην ιστοσελίδα Κύπρος το Αύριο"},
67
+ footerIcon_euNextGeneration_alt: {en:"Funded by the EU Next Generation EU",el:"Χρηματοδοτείται από την ΕΕ Next Generation EU"},
68
+ footerIcon_euNextGeneration_title: {en:"Go to EU website",el:"Μετάβαση στην ιστοσελίδα της ΕΕ"},
65
69
  header_menu: {en:"Menu",el:"Μενού"},
66
70
  header_mainMenuAria: {en:"Main menu",el:"Κύριο μενού"},
67
71
  fileView_view: {en:'View',el:'Προβολή'},