Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 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
1 change: 1 addition & 0 deletions backend/news/+mobilestickymenu.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add a boolean field to enable or disable the mobile sticky menu. @iFlameing
15 changes: 15 additions & 0 deletions backend/src/kitconcept/voltolighttheme/behaviors/sticky_menu.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from kitconcept.voltolighttheme import _
from plone.autoform import directives
from plone.autoform.interfaces import IFormFieldProvider
from plone.schema import Bool
from plone.schema import JSONField
from plone.schema import TextLine
from plone.supermodel import model
Expand All @@ -27,12 +28,26 @@ class IStickyMenuSettings(model.Schema):
"sticky_menu",
label=_("fieldset_sticky_menu", default="Sticky menu"),
fields=[
"enable_mobile_sticky_menu",
"sticky_menu",
"sticky_menu_color",
"sticky_menu_foreground_color",
],
)

enable_mobile_sticky_menu = Bool(
title=_(
"label_mobile_sticky_menu_enabled",
default="Enable Mobile sticky menu",
),
description=_(
"help_mobile_sticky_menu_enabled",
default="If enabled, a sticky menu will be shown at the bottom of the screen.",
),
required=False,
default=False,
)

directives.widget("sticky_menu_color", frontendOptions={"widget": "colorPicker"})
sticky_menu_color = TextLine(
title=_("label_sticky_menu_color", default="Sticky menu background color"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2025-09-12 20:20+0000\n"
"POT-Creation-Date: 2025-12-22 10:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -128,7 +128,7 @@ msgid "Volto Light Theme: Uninstall"
msgstr ""

#. Default: "Sticky menu"
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:28
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:29
msgid "fieldset_sticky_menu"
msgstr "Sticky Menu (fixiertes Menu)"

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

#. Default: "If enabled, a sticky menu will be shown at the bottom of the screen."
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:43
msgid "help_mobile_sticky_menu_enabled"
msgstr "Wenn diese Option aktiviert ist, wird am unteren Bildschirmrand ein Sticky-Menü angezeigt."

#. 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."
#: kitconcept/voltolighttheme/behaviors/footer.py:140
msgid "help_post_footer_logo"
Expand All @@ -183,7 +188,7 @@ msgid "help_site_logo"
msgstr "Laden Sie hier ihr eigenes Website Logo hoch. Das Logo wird dann links oben im Header erscheinen."

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

Expand Down Expand Up @@ -222,6 +227,11 @@ msgstr "Intranet Header einschalten"
msgid "label_intranet_flag"
msgstr "Reiter"

#. Default: "Enable Mobile sticky menu"
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:39
msgid "label_mobile_sticky_menu_enabled"
msgstr "Mobiles Sticky-Menü aktivieren"

#. Default: "Post Footer Logo"
#: kitconcept/voltolighttheme/behaviors/footer.py:139
msgid "label_post_footer_logo"
Expand Down Expand Up @@ -253,16 +263,16 @@ msgid "label_site_logo"
msgstr "Website Logo"

#. Default: "Sticky menu"
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:62
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:77
msgid "label_sticky_menu"
msgstr "Sticky Menu"

#. Default: "Sticky menu background color"
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:38
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:53
msgid "label_sticky_menu_color"
msgstr "Hintergrundfarbe Sticky Menu"

#. Default: "Sticky menu text color"
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:47
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:62
msgid "label_sticky_menu_foreground_color"
msgstr "Textfarbe Sticky Menu"
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2025-09-12 20:20+0000\n"
"POT-Creation-Date: 2025-12-22 10:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -128,7 +128,7 @@ msgid "Volto Light Theme: Uninstall"
msgstr ""

#. Default: "Sticky menu"
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:28
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:29
msgid "fieldset_sticky_menu"
msgstr ""

Expand Down Expand Up @@ -167,6 +167,11 @@ msgstr ""
msgid "help_intranet_flag"
msgstr ""

#. Default: "If enabled, a sticky menu will be shown at the bottom of the screen."
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:43
msgid "help_mobile_sticky_menu_enabled"
msgstr ""

#. 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."
#: kitconcept/voltolighttheme/behaviors/footer.py:140
msgid "help_post_footer_logo"
Expand All @@ -183,7 +188,7 @@ msgid "help_site_logo"
msgstr ""

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

Expand Down Expand Up @@ -222,6 +227,11 @@ msgstr ""
msgid "label_intranet_flag"
msgstr ""

#. Default: "Enable Mobile sticky menu"
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:39
msgid "label_mobile_sticky_menu_enabled"
msgstr ""

#. Default: "Post Footer Logo"
#: kitconcept/voltolighttheme/behaviors/footer.py:139
msgid "label_post_footer_logo"
Expand Down Expand Up @@ -253,16 +263,16 @@ msgid "label_site_logo"
msgstr ""

#. Default: "Sticky menu"
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:62
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:77
msgid "label_sticky_menu"
msgstr ""

#. Default: "Sticky menu background color"
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:38
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:53
msgid "label_sticky_menu_color"
msgstr ""

#. Default: "Sticky menu text color"
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:47
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:62
msgid "label_sticky_menu_foreground_color"
msgstr ""
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
msgid ""
msgstr ""
"Project-Id-Version: kitconcept.voltolighttheme\n"
"POT-Creation-Date: 2025-09-12 20:20+0000\n"
"POT-Creation-Date: 2025-12-22 10:37+0000\n"
"PO-Revision-Date: 2025-07-07 17:16+0200\n"
"Last-Translator: Leonardo J. Caballero G. <[email protected]>\n"
"Language-Team: Plone i18n <[email protected]>\n"
Expand Down Expand Up @@ -133,7 +133,7 @@ msgid "Volto Light Theme: Uninstall"
msgstr "Volto Light Theme: Desinstalación"

#. Default: "Sticky menu"
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:28
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:29
msgid "fieldset_sticky_menu"
msgstr ""

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

#. Default: "If enabled, a sticky menu will be shown at the bottom of the screen."
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:43
msgid "help_mobile_sticky_menu_enabled"
msgstr ""

#. 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."
#: kitconcept/voltolighttheme/behaviors/footer.py:140
msgid "help_post_footer_logo"
Expand All @@ -188,7 +193,7 @@ msgid "help_site_logo"
msgstr "Si el sitio o sub-sitio tiene un logotipo, cárguelo aquí."

#. Default: "The sticky menu is composed by links with icons that show in a fixed position in the right side of the screen."
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:63
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:78
msgid "help_sticky_menu"
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."

Expand Down Expand Up @@ -228,6 +233,11 @@ msgstr "Activar encabezado de Intranet"
msgid "label_intranet_flag"
msgstr "Bandera del sitio"

#. Default: "Enable Mobile sticky menu"
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:39
msgid "label_mobile_sticky_menu_enabled"
msgstr ""

#. Default: "Post Footer Logo"
#: kitconcept/voltolighttheme/behaviors/footer.py:139
msgid "label_post_footer_logo"
Expand Down Expand Up @@ -259,16 +269,16 @@ msgid "label_site_logo"
msgstr "Logotipo del sitio"

#. Default: "Sticky menu"
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:62
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:77
msgid "label_sticky_menu"
msgstr ""

#. Default: "Sticky menu background color"
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:38
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:53
msgid "label_sticky_menu_color"
msgstr "Color de fondo del menú adhesivo"

#. Default: "Sticky menu text color"
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:47
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:62
msgid "label_sticky_menu_foreground_color"
msgstr "Color de texto del menú adhesivo"
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2025-09-12 20:20+0000\n"
"POT-Creation-Date: 2025-12-22 10:37+0000\n"
"PO-Revision-Date: 2025-09-27 22:53+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: eu\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand All @@ -17,6 +16,7 @@ msgstr ""
"Language-Name: English\n"
"Preferred-Encodings: utf-8 latin1\n"
"Domain: kitconcept.voltolighttheme\n"
"Language: eu\n"
"X-Generator: Poedit 3.4.2\n"

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

#. Default: "Sticky menu"
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:28
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:29
msgid "fieldset_sticky_menu"
msgstr "Menu itsaskorra"

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

#. Default: "If enabled, a sticky menu will be shown at the bottom of the screen."
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:43
msgid "help_mobile_sticky_menu_enabled"
msgstr ""

#. 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."
#: kitconcept/voltolighttheme/behaviors/footer.py:140
msgid "help_post_footer_logo"
Expand All @@ -188,7 +193,7 @@ msgid "help_site_logo"
msgstr "Atariak edo azpiatariak logoa badu, gehitu hemen."

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

Expand Down Expand Up @@ -227,6 +232,11 @@ msgstr "Aktibatu Intranetaren goiburukoa"
msgid "label_intranet_flag"
msgstr "Atariaren ikurra"

#. Default: "Enable Mobile sticky menu"
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:39
msgid "label_mobile_sticky_menu_enabled"
msgstr ""

#. Default: "Post Footer Logo"
#: kitconcept/voltolighttheme/behaviors/footer.py:139
msgid "label_post_footer_logo"
Expand Down Expand Up @@ -258,16 +268,16 @@ msgid "label_site_logo"
msgstr "Atariaren logoa"

#. Default: "Sticky menu"
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:62
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:77
msgid "label_sticky_menu"
msgstr "Menu itsaskorra"

#. Default: "Sticky menu background color"
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:38
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:53
msgid "label_sticky_menu_color"
msgstr "Menu itsaskorraren hondoko kolorea"

#. Default: "Sticky menu text color"
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:47
#: kitconcept/voltolighttheme/behaviors/sticky_menu.py:62
msgid "label_sticky_menu_foreground_color"
msgstr "Menu itsaskorraren testuaren kolorea"
Loading