-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblueprints.yaml
128 lines (118 loc) · 3.32 KB
/
blueprints.yaml
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
name: Polls
slug: polls
type: plugin
version: 0.1.0
premium: true
description: Simple polls for Grav CMS
icon: check-square
author:
name: Trilby Media
email: [email protected]
homepage: https://github.com/trilbymedia/grav-plugin-polls
demo: http://demo.yoursite.com
keywords: grav, plugin, polls, premium
bugs: https://github.com/trilbymedia/grav-plugin-polls/issues
docs: https://github.com/trilbymedia/grav-plugin-polls/blob/develop/README.md
license: MIT
dependencies:
- { name: grav, version: '>=1.7.0' }
- { name: database, version: '>=01.0.0' }
- { name: shortcode-core, version: '>=5.0.0' }
form:
validation: loose
fields:
_basic_section:
type: section
title: PLUGIN_POLLS.BASIC_CONFIGURATION
underline: true
fields:
enabled:
type: toggle
label: PLUGIN_ADMIN.PLUGIN_STATUS
highlight: 1
default: 0
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
built_in_css:
type: toggle
label: PLUGIN_POLLS.BUILT_IN_CSS
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
theme:
type: select
label: PLUGIN_POLLS.THEME
default: default
help: PLUGIN_POLLS.THEME_HELP
size: medium
options:
default: PLUGIN_POLLS.DEFAULT
modern: PLUGIN_POLLS.MODERN
unique_ip_check:
type: toggle
label: PLUGIN_POLLS.UNIQUE_IP_CHECK
help: PLUGIN_POLLS.UNIQUE_IP_CHECK_HELP
highlight: 0
default: 1
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool
session_vote_check:
type: toggle
label: PLUGIN_POLLS.SESSION_VOTE_CHECK
help: PLUGIN_POLLS.SESSION_VOTE_CHECK_HELP
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool
readonly:
type: toggle
label: PLUGIN_POLLS.READ_ONLY
help: PLUGIN_POLLS.READ_ONLY_HELP
highlight: 0
default: 0
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool
_advanced_section:
type: section
title: PLUGIN_POLLS.ADVANCED_CONFIGURATION
underline: true
fields:
colors:
type: textarea
label: PLUGIN_POLLS.COLORS
help: PLUGIN_POLLS.COLORS_HELP
rows: 7
callback:
type: text
size: medium
label: PLUGIN_POLLS.CALLBACK
help: PLUGIN_POLLS.CALLBACK_HELP
default: /polls
poll_template:
type: text
size: medium
label: PLUGIN_POLLS.TEMPLATE
help: PLUGIN_POLLS.TEMPLATE_HELP
default: partials/poll.html.twig
results_template:
type: text
size: medium
label: PLUGIN_POLLS.TEMPLATE_RESULTS
help: PLUGIN_POLLS.TEMPLATE_RESULTS_HELP
default: partials/results.html.twig