Skip to content

Commit bd566dc

Browse files
Mobile sticky menu (#749)
Co-authored-by: Tishasoumya-02 <[email protected]>
1 parent 42ee60f commit bd566dc

File tree

22 files changed

+633
-818
lines changed

22 files changed

+633
-818
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add a boolean field to enable or disable the mobile sticky menu. @iFlameing

backend/src/kitconcept/voltolighttheme/behaviors/sticky_menu.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from kitconcept.voltolighttheme import _
22
from plone.autoform import directives
33
from plone.autoform.interfaces import IFormFieldProvider
4+
from plone.schema import Bool
45
from plone.schema import JSONField
56
from plone.schema import TextLine
67
from plone.supermodel import model
@@ -27,12 +28,26 @@ class IStickyMenuSettings(model.Schema):
2728
"sticky_menu",
2829
label=_("fieldset_sticky_menu", default="Sticky menu"),
2930
fields=[
31+
"enable_mobile_sticky_menu",
3032
"sticky_menu",
3133
"sticky_menu_color",
3234
"sticky_menu_foreground_color",
3335
],
3436
)
3537

38+
enable_mobile_sticky_menu = Bool(
39+
title=_(
40+
"label_mobile_sticky_menu_enabled",
41+
default="Enable Mobile sticky menu",
42+
),
43+
description=_(
44+
"help_mobile_sticky_menu_enabled",
45+
default="If enabled, a sticky menu will be shown at the bottom of the screen.",
46+
),
47+
required=False,
48+
default=False,
49+
)
50+
3651
directives.widget("sticky_menu_color", frontendOptions={"widget": "colorPicker"})
3752
sticky_menu_color = TextLine(
3853
title=_("label_sticky_menu_color", default="Sticky menu background color"),

backend/src/kitconcept/voltolighttheme/locales/de/LC_MESSAGES/kitconcept.voltolighttheme.po

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: PACKAGE VERSION\n"
4-
"POT-Creation-Date: 2025-09-12 20:20+0000\n"
4+
"POT-Creation-Date: 2025-12-22 10:37+0000\n"
55
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
66
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
77
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -128,7 +128,7 @@ msgid "Volto Light Theme: Uninstall"
128128
msgstr ""
129129

130130
#. Default: "Sticky menu"
131-
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:28
131+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:29
132132
msgid "fieldset_sticky_menu"
133133
msgstr "Sticky Menu (fixiertes Menu)"
134134

@@ -167,6 +167,11 @@ msgstr "Zeigt ein Menü in der oberen rechten Ecke mit wichtigen Aktionen wie Lo
167167
msgid "help_intranet_flag"
168168
msgstr "Zeigt einen Reiter am oberen Rand der Website an, um den Bereich zu kennzeichnen (z.B. 'Intranet', 'Staging')."
169169

170+
#. Default: "If enabled, a sticky menu will be shown at the bottom of the screen."
171+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:43
172+
msgid "help_mobile_sticky_menu_enabled"
173+
msgstr "Wenn diese Option aktiviert ist, wird am unteren Bildschirmrand ein Sticky-Menü angezeigt."
174+
170175
#. Default: "The post footer can have a prominent logo located in the lower right side. It is normally used for displaying the logo of the site sponsor."
171176
#: kitconcept/voltolighttheme/behaviors/footer.py:140
172177
msgid "help_post_footer_logo"
@@ -183,7 +188,7 @@ msgid "help_site_logo"
183188
msgstr "Laden Sie hier ihr eigenes Website Logo hoch. Das Logo wird dann links oben im Header erscheinen."
184189

185190
#. Default: "The sticky menu is composed by links with icons that show in a fixed position in the right side of the screen."
186-
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:63
191+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:78
187192
msgid "help_sticky_menu"
188193
msgstr "Aktiviert ein Menü, das beim Scrollen am rechten Bildschirmrand fixiert bleibt und dauerhaft zugänglich ist."
189194

@@ -222,6 +227,11 @@ msgstr "Intranet Header einschalten"
222227
msgid "label_intranet_flag"
223228
msgstr "Reiter"
224229

230+
#. Default: "Enable Mobile sticky menu"
231+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:39
232+
msgid "label_mobile_sticky_menu_enabled"
233+
msgstr "Mobiles Sticky-Menü aktivieren"
234+
225235
#. Default: "Post Footer Logo"
226236
#: kitconcept/voltolighttheme/behaviors/footer.py:139
227237
msgid "label_post_footer_logo"
@@ -253,16 +263,16 @@ msgid "label_site_logo"
253263
msgstr "Website Logo"
254264

255265
#. Default: "Sticky menu"
256-
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:62
266+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:77
257267
msgid "label_sticky_menu"
258268
msgstr "Sticky Menu"
259269

260270
#. Default: "Sticky menu background color"
261-
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:38
271+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:53
262272
msgid "label_sticky_menu_color"
263273
msgstr "Hintergrundfarbe Sticky Menu"
264274

265275
#. Default: "Sticky menu text color"
266-
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:47
276+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:62
267277
msgid "label_sticky_menu_foreground_color"
268278
msgstr "Textfarbe Sticky Menu"

backend/src/kitconcept/voltolighttheme/locales/en/LC_MESSAGES/kitconcept.voltolighttheme.po

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: PACKAGE VERSION\n"
4-
"POT-Creation-Date: 2025-09-12 20:20+0000\n"
4+
"POT-Creation-Date: 2025-12-22 10:37+0000\n"
55
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
66
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
77
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -128,7 +128,7 @@ msgid "Volto Light Theme: Uninstall"
128128
msgstr ""
129129

130130
#. Default: "Sticky menu"
131-
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:28
131+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:29
132132
msgid "fieldset_sticky_menu"
133133
msgstr ""
134134

@@ -167,6 +167,11 @@ msgstr ""
167167
msgid "help_intranet_flag"
168168
msgstr ""
169169

170+
#. Default: "If enabled, a sticky menu will be shown at the bottom of the screen."
171+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:43
172+
msgid "help_mobile_sticky_menu_enabled"
173+
msgstr ""
174+
170175
#. Default: "The post footer can have a prominent logo located in the lower right side. It is normally used for displaying the logo of the site sponsor."
171176
#: kitconcept/voltolighttheme/behaviors/footer.py:140
172177
msgid "help_post_footer_logo"
@@ -183,7 +188,7 @@ msgid "help_site_logo"
183188
msgstr ""
184189

185190
#. Default: "The sticky menu is composed by links with icons that show in a fixed position in the right side of the screen."
186-
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:63
191+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:78
187192
msgid "help_sticky_menu"
188193
msgstr ""
189194

@@ -222,6 +227,11 @@ msgstr ""
222227
msgid "label_intranet_flag"
223228
msgstr ""
224229

230+
#. Default: "Enable Mobile sticky menu"
231+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:39
232+
msgid "label_mobile_sticky_menu_enabled"
233+
msgstr ""
234+
225235
#. Default: "Post Footer Logo"
226236
#: kitconcept/voltolighttheme/behaviors/footer.py:139
227237
msgid "label_post_footer_logo"
@@ -253,16 +263,16 @@ msgid "label_site_logo"
253263
msgstr ""
254264

255265
#. Default: "Sticky menu"
256-
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:62
266+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:77
257267
msgid "label_sticky_menu"
258268
msgstr ""
259269

260270
#. Default: "Sticky menu background color"
261-
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:38
271+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:53
262272
msgid "label_sticky_menu_color"
263273
msgstr ""
264274

265275
#. Default: "Sticky menu text color"
266-
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:47
276+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:62
267277
msgid "label_sticky_menu_foreground_color"
268278
msgstr ""

backend/src/kitconcept/voltolighttheme/locales/es/LC_MESSAGES/kitconcept.voltolighttheme.po

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
msgid ""
44
msgstr ""
55
"Project-Id-Version: kitconcept.voltolighttheme\n"
6-
"POT-Creation-Date: 2025-09-12 20:20+0000\n"
6+
"POT-Creation-Date: 2025-12-22 10:37+0000\n"
77
"PO-Revision-Date: 2025-07-07 17:16+0200\n"
88
"Last-Translator: Leonardo J. Caballero G. <[email protected]>\n"
99
"Language-Team: Plone i18n <[email protected]>\n"
@@ -133,7 +133,7 @@ msgid "Volto Light Theme: Uninstall"
133133
msgstr "Volto Light Theme: Desinstalación"
134134

135135
#. Default: "Sticky menu"
136-
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:28
136+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:29
137137
msgid "fieldset_sticky_menu"
138138
msgstr ""
139139

@@ -172,6 +172,11 @@ msgstr "Las acciones del sitio son los enlaces que aparecen en la parte superior
172172
msgid "help_intranet_flag"
173173
msgstr "La pastilla de color en la parte superior izquierda del encabezado."
174174

175+
#. Default: "If enabled, a sticky menu will be shown at the bottom of the screen."
176+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:43
177+
msgid "help_mobile_sticky_menu_enabled"
178+
msgstr ""
179+
175180
#. Default: "The post footer can have a prominent logo located in the lower right side. It is normally used for displaying the logo of the site sponsor."
176181
#: kitconcept/voltolighttheme/behaviors/footer.py:140
177182
msgid "help_post_footer_logo"
@@ -188,7 +193,7 @@ msgid "help_site_logo"
188193
msgstr "Si el sitio o sub-sitio tiene un logotipo, cárguelo aquí."
189194

190195
#. Default: "The sticky menu is composed by links with icons that show in a fixed position in the right side of the screen."
191-
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:63
196+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:78
192197
msgid "help_sticky_menu"
193198
msgstr "El menú adhesivo está compuesto por enlaces con iconos que se muestran en una posición fija en la parte derecha de la pantalla."
194199

@@ -228,6 +233,11 @@ msgstr "Activar encabezado de Intranet"
228233
msgid "label_intranet_flag"
229234
msgstr "Bandera del sitio"
230235

236+
#. Default: "Enable Mobile sticky menu"
237+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:39
238+
msgid "label_mobile_sticky_menu_enabled"
239+
msgstr ""
240+
231241
#. Default: "Post Footer Logo"
232242
#: kitconcept/voltolighttheme/behaviors/footer.py:139
233243
msgid "label_post_footer_logo"
@@ -259,16 +269,16 @@ msgid "label_site_logo"
259269
msgstr "Logotipo del sitio"
260270

261271
#. Default: "Sticky menu"
262-
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:62
272+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:77
263273
msgid "label_sticky_menu"
264274
msgstr ""
265275

266276
#. Default: "Sticky menu background color"
267-
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:38
277+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:53
268278
msgid "label_sticky_menu_color"
269279
msgstr "Color de fondo del menú adhesivo"
270280

271281
#. Default: "Sticky menu text color"
272-
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:47
282+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:62
273283
msgid "label_sticky_menu_foreground_color"
274284
msgstr "Color de texto del menú adhesivo"

backend/src/kitconcept/voltolighttheme/locales/eu/LC_MESSAGES/kitconcept.voltolighttheme.po

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
msgid ""
55
msgstr ""
66
"Project-Id-Version: \n"
7-
"POT-Creation-Date: 2025-09-12 20:20+0000\n"
7+
"POT-Creation-Date: 2025-12-22 10:37+0000\n"
88
"PO-Revision-Date: 2025-09-27 22:53+0200\n"
99
"Last-Translator: \n"
1010
"Language-Team: \n"
11-
"Language: eu\n"
1211
"MIME-Version: 1.0\n"
1312
"Content-Type: text/plain; charset=utf-8\n"
1413
"Content-Transfer-Encoding: 8bit\n"
@@ -17,6 +16,7 @@ msgstr ""
1716
"Language-Name: English\n"
1817
"Preferred-Encodings: utf-8 latin1\n"
1918
"Domain: kitconcept.voltolighttheme\n"
19+
"Language: eu\n"
2020
"X-Generator: Poedit 3.4.2\n"
2121

2222
#: kitconcept/voltolighttheme/behaviors/footer.py:58
@@ -133,7 +133,7 @@ msgid "Volto Light Theme: Uninstall"
133133
msgstr "Volto Light Theme: desinstalatu"
134134

135135
#. Default: "Sticky menu"
136-
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:28
136+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:29
137137
msgid "fieldset_sticky_menu"
138138
msgstr "Menu itsaskorra"
139139

@@ -172,6 +172,11 @@ msgstr "Atariaren akzioak goiburukoaren gainean eskuman erakutsiko diren estekak
172172
msgid "help_intranet_flag"
173173
msgstr "Goiburukoaren ezkerraldean agertuko den koloreztatutako pilula."
174174

175+
#. Default: "If enabled, a sticky menu will be shown at the bottom of the screen."
176+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:43
177+
msgid "help_mobile_sticky_menu_enabled"
178+
msgstr ""
179+
175180
#. Default: "The post footer can have a prominent logo located in the lower right side. It is normally used for displaying the logo of the site sponsor."
176181
#: kitconcept/voltolighttheme/behaviors/footer.py:140
177182
msgid "help_post_footer_logo"
@@ -188,7 +193,7 @@ msgid "help_site_logo"
188193
msgstr "Atariak edo azpiatariak logoa badu, gehitu hemen."
189194

190195
#. Default: "The sticky menu is composed by links with icons that show in a fixed position in the right side of the screen."
191-
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:63
196+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:78
192197
msgid "help_sticky_menu"
193198
msgstr "Menu itsaskorrak ikonodun estekak ditu eta pantailaren eskuman toki finkoan erakusten da."
194199

@@ -227,6 +232,11 @@ msgstr "Aktibatu Intranetaren goiburukoa"
227232
msgid "label_intranet_flag"
228233
msgstr "Atariaren ikurra"
229234

235+
#. Default: "Enable Mobile sticky menu"
236+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:39
237+
msgid "label_mobile_sticky_menu_enabled"
238+
msgstr ""
239+
230240
#. Default: "Post Footer Logo"
231241
#: kitconcept/voltolighttheme/behaviors/footer.py:139
232242
msgid "label_post_footer_logo"
@@ -258,16 +268,16 @@ msgid "label_site_logo"
258268
msgstr "Atariaren logoa"
259269

260270
#. Default: "Sticky menu"
261-
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:62
271+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:77
262272
msgid "label_sticky_menu"
263273
msgstr "Menu itsaskorra"
264274

265275
#. Default: "Sticky menu background color"
266-
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:38
276+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:53
267277
msgid "label_sticky_menu_color"
268278
msgstr "Menu itsaskorraren hondoko kolorea"
269279

270280
#. Default: "Sticky menu text color"
271-
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:47
281+
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:62
272282
msgid "label_sticky_menu_foreground_color"
273283
msgstr "Menu itsaskorraren testuaren kolorea"

0 commit comments

Comments
 (0)