-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.json
183 lines (183 loc) · 6.73 KB
/
plugin.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
{
"name": "Telegram Comments",
"description": "The Telegram plugin lets site owners easily add support to let Telegram users comment on the website.",
"license": "GPL-3.0",
"author": "patricktobias86",
"version": "1.0.1",
"scope": "site",
"minimumPubliiVersion": "0.39.0",
"usePluginSettingsView": false,
"messageInOptions": {
"type": "alert",
"text": "Comments are disabled by default. If you want to allow comments on your posts, make sure the 'Comments' option is enabled in the Post Options section of the Theme settings or, for individual posts, in edit mode via the 'Other Options' section."
},
"config": [
{
"name": "siteId",
"label": "Site ID",
"note": "The site ID is generated when you add your domain in the initial setup on <a href='https://comments.app' target='_blank' rel='nofollow noopener noreferrer'>comments.app</a>.",
"group": "Comments configuration",
"value": "",
"type": "text"
},
{
"name": "limit",
"label": "Comments per page",
"group": "Comments configuration",
"note": "How many comments to display per page.",
"value": "5",
"type": "number"
},
{
"name": "color",
"label": "Accent color",
"group": "Comments configuration",
"note": "Accent colors for links, name and icons",
"value": "#3FA3EC",
"type": "colorpicker",
"outputFormat": "HEX"
},
{
"name": "colorful",
"label": "Use different colors for names",
"group": "Comments configuration",
"note": "Slightly different colors for the users",
"value": false,
"type": "checkbox"
},
{
"name": "dark",
"label": "Dark theme",
"group": "Comments configuration",
"note": "",
"value": false,
"type": "checkbox"
},
{
"name": "dislikes",
"label": "Display dislikes",
"group": "Comments configuration",
"note": "All likes will be shown, this setting also show dislikes",
"value": false,
"type": "checkbox"
},
{
"name": "outlined",
"label": "Outlined icons",
"group": "Comments configuration",
"note": "Show icons as outlined instead of filled",
"value": false,
"type": "checkbox"
},
{
"name": "textHeader",
"label": "Header title",
"group": "Theme integration",
"note": "Customize the standard ‘Comments’ text displayed above the comment form",
"value": "Comments",
"type": "text"
},
{
"name": "headingLevel",
"label": "Heading level",
"group": "Theme integration",
"note": "Set the heading level for the Header title",
"type": "radio",
"value": "2",
"options": [
{
"label": "H2",
"value": "2"
},
{
"label": "H3",
"value": "3"
},
{
"label": "H4",
"value": "4"
},
{
"label": "H5",
"value": "5"
},
{
"label": "H6",
"value": "6"
}
]
},
{
"name": "textFallback",
"label": "Fallback message",
"group": "Theme integration",
"note": "Customize the fallback message to be displayed to users that have disabled scripts in their browser or have a browser that doesn't support scripts.",
"rows": 3,
"type": "textarea",
"value": "Please enable JS to use the comments form."
},
{
"name": "cssWrapperClass",
"label": "Comments wrapper",
"group": "Theme integration",
"note": "Customize a CSS class for the comments wrapper",
"value": "comments",
"type": "text"
},
{
"name": "cssInnerWrapperClass",
"label": "Comments inner wrapper",
"group": "Theme integration",
"note": "Customize a CSS class for the inner comments wrapper",
"value": "comments-wrapper",
"type": "text"
},
{
"name": "cssHeaderClass",
"label": "Comments heading",
"group": "Theme integration",
"note": "Add an additional CSS class for the heading element",
"placeholder": "small",
"value": "",
"type": "text"
},
{
"name": "cookieBannerIntegration",
"label": "",
"note": "Enabling this option will integrate this plugin with Publii's native Cookie Banner, allowing visitors to consent to cookies installed by Telegram. This option is recommended if you want to ensure compliance with privacy regulations.",
"group": "Cookie Banner integration",
"type": "checkbox",
"value": false
},
{
"name": "cookieBannerGroup",
"label": "Cookie Group ID",
"note": "Please specify which Cookie Group ID of the Cookie Banner you wish to associate with the Telegram script. If it does not exists, add a new Cookie Group Name with the Cookie Group ID specified above in the Privacy Settings section of the Site Settings. For more details please visit our <a href='https://getpublii.com/docs/gdpr-cookie-banner-configuration.html#cookie-groups' target='_blank' rel='nofollow noopener noreferrer'> documentation.</a>",
"group": "Cookie Banner integration",
"placeholder": "comments",
"type": "text",
"value": "",
"dependencies": [
{
"field": "cookieBannerIntegration",
"value": true
}
]
},
{
"name": "cookieBannerNoConsentText",
"label": "Fallback message",
"note": "Customize the message that appears when the user has not consented to use Telegram scripts.",
"group": "Cookie Banner integration",
"rows": 3,
"type": "textarea",
"value": "Comments are disabled because you have not consented to their use. You can change your cookie preferences through our 'cookie banner'.",
"dependencies": [
{
"field": "cookieBannerIntegration",
"value": true
}
]
}
]
}