-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathblueprints.yaml
More file actions
181 lines (163 loc) · 5.79 KB
/
Copy pathblueprints.yaml
File metadata and controls
181 lines (163 loc) · 5.79 KB
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
name: Shortcode Core
slug: shortcode-core
type: plugin
version: 6.2.6
description: "This plugin provides the core functionality for shortcode plugins"
icon: code
author:
name: Team Grav
email: devs@getgrav.org
url: http://getgrav.org
homepage: https://github.com/getgrav/grav-plugin-shortcode-core
demo: http://learn.getgrav.org
keywords: gui, plugin, tabs, twig
bugs: https://github.com/getgrav/grav-plugin-shortcode-core/issues
license: MIT
compatibility:
grav: ['1.7', '2.0']
dependencies:
- { name: grav, version: '>=1.7.32' }
form:
validation: strict
fields:
shortcode_tabs:
type: tabs
active: 1
fields:
options:
type: tab
title: Options
fields:
enabled:
type: toggle
label: Plugin Enabled
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
active:
type: toggle
label: Activated
help: Site-Wide activation
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
active_admin:
type: toggle
label: Activated in Admin
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
admin_pages_only:
type: toggle
label: Admin Real-Pages Only
help: When activate, only process real-pages
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
parser:
type: select
size: medium
classes: fancy
label: Processor
help: Which built-in processor to use. Hybrid (fast and robust), Regular (robust reference), Regex (fast), WordPress (limited)
options:
hybrid: HybridParser
regular: RegularParser
regex: RegexParser
wordpress: WordpressParser
custom_shortcodes:
type: text
label: Custom Shortcodes Path
help: The path to a location where you store custom shortcode PHP classes.
placeholder: '/user/custom/shortcodes'
size: large
exclude_default_shortcodes:
type: array
label: Excluded Default Shortcodes
help: 'Built-in tags to leave switched off, one per row, without brackets (for example `fa`). An excluded tag is no longer parsed, so it renders as literal text. Only applies while the default shortcodes are on.'
value_only: true
placeholder_value: 'fa'
css.notice_enabled:
type: toggle
label: Enable Notice Shortcode CSS
help: Enable the default notice CSS by default. Disable if you want to use your own custom CSS.
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
fontawesome.load:
type: toggle
label: Load Fontawesome Library
help: Used by the `safe-email` shortcode if your theme doesn't already load it
highlight: 1
default: 1
options:
1: Enabled
0: Disabled
validate:
type: bool
fontawesome.url:
type: text
label: Fontawesome URL
help: You can change the location of fontawesome by changing this URL
size: large
fontawesome.v5:
type: toggle
label: Use Fontawesome Version 5
help: Allows usage of the 'fab', 'fas' and other new font families of Fontawesome 5.
highlight: 0
default: 0
options:
1: Enabled
0: Disabled
validate:
type: bool
builder:
type: tab
title: Shortcode Builder
fields:
shortcodes_intro:
type: spacer
title: Build your own shortcodes
shortcodes:
type: list
label: Shortcodes
help: 'Define your own shortcodes here — no plugin or PHP needed. Each one is backed by a Twig template or an inline output snippet, and receives the shortcode''s params, content and the raw shortcode object. Author-supplied parameters and content are auto-escaped on output. The two examples below show both styles.'
style: vertical
collapsed: true
btnLabel: Add Shortcode
fields:
.name:
type: text
label: Tag
help: 'The shortcode name — "callout" makes [callout]…[/callout] available.'
placeholder: callout
.template:
type: text
label: Template
help: 'A Twig template path, e.g. shortcodes/callout.html.twig. Receives params, content and shortcode. Takes precedence over Output when both are set.'
placeholder: 'shortcodes/callout.html.twig'
.output:
type: textarea
label: Inline Output
help: 'Inline Twig, used when no Template is set, e.g. <span class="badge">{{ content }}</span>'
rows: 3