-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
510 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
collective.volto.stickyblocks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
16 changes: 16 additions & 0 deletions
16
src/collective/volto/stickyblocks/controlpanel/configure.zcml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
xmlns:browser="http://namespaces.zope.org/browser" | ||
xmlns:plone="http://namespaces.plone.org/plone" | ||
i18n_domain="collective.volto.stickyblocks" | ||
> | ||
|
||
<browser:page | ||
name="sticky-blocks-settings" | ||
for="Products.CMFPlone.interfaces.IPloneSiteRoot" | ||
class=".sticky_blocks.StickyBlocks" | ||
permission="cmf.ManagePortal" | ||
layer="collective.volto.stickyblocks.interfaces.ICollectiveVoltoStickyblocksLayer" | ||
/> | ||
|
||
</configure> |
14 changes: 14 additions & 0 deletions
14
src/collective/volto/stickyblocks/controlpanel/sticky_blocks.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from plone.app.registry.browser import controlpanel | ||
|
||
from collective.volto.stickyblocks import _ | ||
from collective.volto.stickyblocks.interfaces import IStickyBlocks | ||
|
||
|
||
class StickyBlocksForm(controlpanel.RegistryEditForm): | ||
schema = IStickyBlocks | ||
label = _("sticky_blocks_settings_label", default="Sticky Blocks Settings") | ||
description = "" | ||
|
||
|
||
class StickyBlocks(controlpanel.ControlPanelFormWrapper): | ||
form = StickyBlocksForm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,25 @@ | ||
# -*- coding: utf-8 -*- | ||
"""Module where all interfaces, events and exceptions live.""" | ||
import json | ||
|
||
from plone.restapi.controlpanels.interfaces import IControlpanel | ||
from zope.publisher.interfaces.browser import IDefaultBrowserLayer | ||
from zope.schema import SourceText | ||
|
||
from collective.volto.stickyblocks import _ | ||
|
||
|
||
class ICollectiveVoltoStickyblocksLayer(IDefaultBrowserLayer): | ||
"""Marker interface that defines a browser layer.""" | ||
|
||
|
||
class IStickyBlocks(IControlpanel): | ||
sticky_blocks_configuration = SourceText( | ||
title=_( | ||
"sticky_blocks_label", | ||
default="Sticky Blocks Configuration", | ||
), | ||
description="", | ||
required=True, | ||
default=json.dumps([{"rootPath": "/", "items": []}]), | ||
) |
45 changes: 45 additions & 0 deletions
45
...ctive/volto/stickyblocks/locales/__pycache__/LC_MESSAGES/collective.volto.stickyblocks.po
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"POT-Creation-Date: 2024-03-22 14:47+0000\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=1; plural=0\n" | ||
"Language-Code: en\n" | ||
"Language-Name: English\n" | ||
"Preferred-Encodings: utf-8 latin1\n" | ||
"Domain: DOMAIN\n" | ||
|
||
#: collective/volto/stickyblocks/configure.zcml:30 | ||
msgid "Installs the collective.volto.stickyblocks add-on." | ||
msgstr "" | ||
|
||
#: collective/volto/stickyblocks/profiles/default/controlpanel.xml | ||
msgid "Sticky Blocks Settings" | ||
msgstr "" | ||
|
||
#: collective/volto/stickyblocks/configure.zcml:39 | ||
msgid "Uninstalls the collective.volto.stickyblocks add-on." | ||
msgstr "" | ||
|
||
#: collective/volto/stickyblocks/configure.zcml:30 | ||
msgid "collective.volto.stickyblocks" | ||
msgstr "" | ||
|
||
#: collective/volto/stickyblocks/configure.zcml:39 | ||
msgid "collective.volto.stickyblocks (uninstall)" | ||
msgstr "" | ||
|
||
#. Default: "Sticky Blocks Configuration" | ||
#: collective/volto/stickyblocks/interfaces.py:18 | ||
msgid "sticky_blocks_label" | ||
msgstr "" | ||
|
||
#. Default: "Sticky Blocks Settings" | ||
#: collective/volto/stickyblocks/controlpanel/sticky_blocks.py:9 | ||
msgid "sticky_blocks_settings_label" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#--- PLEASE EDIT THE LINES BELOW CORRECTLY --- | ||
#SOME DESCRIPTIVE TITLE. | ||
#FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"POT-Creation-Date: 2024-03-22 14:47+0000\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=1; plural=0\n" | ||
"Language-Code: en\n" | ||
"Language-Name: English\n" | ||
"Preferred-Encodings: utf-8 latin1\n" | ||
"Domain: collective.volto.stickyblocks\n" | ||
|
||
#: collective/volto/stickyblocks/configure.zcml:30 | ||
msgid "Installs the collective.volto.stickyblocks add-on." | ||
msgstr "" | ||
|
||
#: collective/volto/stickyblocks/profiles/default/controlpanel.xml | ||
msgid "Sticky Blocks Settings" | ||
msgstr "" | ||
|
||
#: collective/volto/stickyblocks/configure.zcml:39 | ||
msgid "Uninstalls the collective.volto.stickyblocks add-on." | ||
msgstr "" | ||
|
||
#: collective/volto/stickyblocks/configure.zcml:30 | ||
msgid "collective.volto.stickyblocks" | ||
msgstr "" | ||
|
||
#: collective/volto/stickyblocks/configure.zcml:39 | ||
msgid "collective.volto.stickyblocks (uninstall)" | ||
msgstr "" | ||
|
||
#. Default: "Sticky Blocks Configuration" | ||
#: collective/volto/stickyblocks/interfaces.py:18 | ||
msgid "sticky_blocks_label" | ||
msgstr "" | ||
|
||
#. Default: "Sticky Blocks Settings" | ||
#: collective/volto/stickyblocks/controlpanel/sticky_blocks.py:9 | ||
msgid "sticky_blocks_settings_label" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"POT-Creation-Date: 2024-03-22 14:47+0000\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=1; plural=0\n" | ||
"Language-Code: en\n" | ||
"Language-Name: English\n" | ||
"Preferred-Encodings: utf-8 latin1\n" | ||
"Domain: DOMAIN\n" | ||
|
||
#: collective/volto/stickyblocks/configure.zcml:30 | ||
msgid "Installs the collective.volto.stickyblocks add-on." | ||
msgstr "" | ||
|
||
#: collective/volto/stickyblocks/profiles/default/controlpanel.xml | ||
msgid "Sticky Blocks Settings" | ||
msgstr "" | ||
|
||
#: collective/volto/stickyblocks/configure.zcml:39 | ||
msgid "Uninstalls the collective.volto.stickyblocks add-on." | ||
msgstr "" | ||
|
||
#: collective/volto/stickyblocks/configure.zcml:30 | ||
msgid "collective.volto.stickyblocks" | ||
msgstr "" | ||
|
||
#: collective/volto/stickyblocks/configure.zcml:39 | ||
msgid "collective.volto.stickyblocks (uninstall)" | ||
msgstr "" | ||
|
||
#. Default: "Sticky Blocks Configuration" | ||
#: collective/volto/stickyblocks/interfaces.py:18 | ||
msgid "sticky_blocks_label" | ||
msgstr "" | ||
|
||
#. Default: "Sticky Blocks Settings" | ||
#: collective/volto/stickyblocks/controlpanel/sticky_blocks.py:9 | ||
msgid "sticky_blocks_settings_label" | ||
msgstr "" |
45 changes: 45 additions & 0 deletions
45
src/collective/volto/stickyblocks/locales/it/LC_MESSAGES/collective.volto.stickyblocks.po
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"POT-Creation-Date: 2024-03-22 14:47+0000\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=1; plural=0\n" | ||
"Language-Code: en\n" | ||
"Language-Name: English\n" | ||
"Preferred-Encodings: utf-8 latin1\n" | ||
"Domain: DOMAIN\n" | ||
|
||
#: collective/volto/stickyblocks/configure.zcml:30 | ||
msgid "Installs the collective.volto.stickyblocks add-on." | ||
msgstr "" | ||
|
||
#: collective/volto/stickyblocks/profiles/default/controlpanel.xml | ||
msgid "Sticky Blocks Settings" | ||
msgstr "Blocchi Fissi" | ||
|
||
#: collective/volto/stickyblocks/configure.zcml:39 | ||
msgid "Uninstalls the collective.volto.stickyblocks add-on." | ||
msgstr "" | ||
|
||
#: collective/volto/stickyblocks/configure.zcml:30 | ||
msgid "collective.volto.stickyblocks" | ||
msgstr "" | ||
|
||
#: collective/volto/stickyblocks/configure.zcml:39 | ||
msgid "collective.volto.stickyblocks (uninstall)" | ||
msgstr "" | ||
|
||
#. Default: "Sticky Blocks Configuration" | ||
#: collective/volto/stickyblocks/interfaces.py:18 | ||
msgid "sticky_blocks_label" | ||
msgstr "Blocchi Fissi" | ||
|
||
#. Default: "Sticky Blocks Settings" | ||
#: collective/volto/stickyblocks/controlpanel/sticky_blocks.py:9 | ||
msgid "sticky_blocks_settings_label" | ||
msgstr "Blocchi Fissi Controlpanel" |
Oops, something went wrong.