-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.json
97 lines (97 loc) · 3.9 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
{
"name": "Content Warning",
"version": "1.0.1",
"description": "Inform your visitors that site contains mature content",
"demo": "http://kokensupport.com/demo/",
"author": {
"name": "Bjarne Varoystrand",
"link": "http://varoystrand.se/sidor/content-warning-for-koken/"
},
"data": {
"contentwarning_message": {
"label": "The message shown",
"info": "The message shown by the plugin.",
"type": "string",
"value": "You are about to enter a website that may contain content of an adult nature. These pages are designed for ADULTS only and may include pictures and materials that some viewers may find offensive.",
"validation": {
"type": "not_empty",
"error_message": "You need to provide a message to your visitors. I.e You are about to enter a website that may contain content of an adult nature. These pages are designed for ADULTS only and may include pictures and materials that some viewers may find offensive."
}
},
"contentwarning_dismiss": {
"label": "Dismiss button",
"info": "The text used on the dismiss button.",
"type": "string",
"value": "Got it",
"validation": {
"type": "not_empty",
"error_message": "You need to provide a button text. I.e Got it"
}
},
"contentwarning_learnmore": {
"label": "Learn more link",
"info": "The text shown on the link to the content warning.",
"type": "string",
"value": "More info",
"validation": {
"type": "not_empty",
"error_message": "You need to provide a text on the content warning link. I.e More info"
}
},
"contentwarning_link": {
"label": "Content policy link",
"info": "The url of your content warning page. If its empty, the link is hidden.",
"type": "string",
"placeholder": "/pages/mature-content/"
},
"contentwarning_theme": {
"label": "Theme",
"info": "The theme you wish to use.",
"type": "select",
"options": [
{ "value": "light-bottom", "label": "Light bottom" },
{ "value": "light-inline", "label": "Light inline" },
{ "value": "light-floating", "label": "Light floating" },
{ "value": "light-floating-tada", "label": "Light floating tada" },
{ "value": "light-top", "label": "Light top" },
{ "value": "dark-top", "label": "Dark top" },
{ "value": "dark-inline", "label": "Dark inline" },
{ "value": "dark-floating", "label": "Dark floating" },
{ "value": "dark-floating-tada", "label": "Dark floating tada" },
{ "value": "dark-bottom", "label": "Dark bottom" }
],
"defaults": "light-bottom"
},
"contentwarning_path": {
"label": "Cookie Path",
"info": "The path for the consent cookie that Content Warning uses, to remember that users have consented to view mature content. Use to limit consent to a specific path within your website.",
"type": "string",
"value": "/",
"validation": {
"type": "not_empty",
"error_message": "You need to set a valid path for the cookie."
}
},
"contentwarning_domain": {
"label": "Cookie Domain",
"info": "The domain for the Content Warning cookie that Content Warning uses, to remember that users have consented to view mature content. Useful if your website uses multiple subdomains, e.g. if your script is hosted at www.example.com you might override this to example.com, thereby allowing the same consent cookie to be read by subdomains like foo.example.com.",
"type": "string",
"placeholder": "example.com"
},
"contentwarning_expirydays": {
"label": "Expiry days",
"info": "The number of days the Content Warning cookie should store the users consent information for. Defaults to 365 days (1 year).",
"type": "number",
"value": "365"
},
"contentwarning_target": {
"label": "Target",
"info": "The target of the link to your Content Warning policy. Use to open a link in a new window.",
"type": "select",
"options": [
{ "value": "self", "label": "Same window" },
{ "value": "blank", "label": "Opens in new window" }
]
}
}
}