forked from cpannwitz/grav-plugin-fetchwp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blueprints.yaml
115 lines (104 loc) · 2.7 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
name: FetchWP
version: 0.6.0
description: "This plugin fetches and displays posts from the Wordpress REST Api."
icon: wordpress
author:
name: Christian Pannwitz
email: [email protected]
url: https://github.com/cpannwitz
keywords: plugin, grav, wordpress
homepage: https://github.com/cpannwitz/grav-plugin-fetchwp
bugs: https://github.com/cpannwitz/grav-plugin-fetchwp/issues
license: MIT
form:
validation: loose
fields:
Basics:
type: section
title: 'Status'
enabled:
type: toggle
label: Plugin status
highlight: 1
default: 0
options:
1: Enabled
0: Disabled
validate:
type: bool
postSettings:
type: section
title: PLUGIN_FETCHWP.SETTINGS_TITLE
underline: true
disclaimer:
type: display
size: large
label: PLUGIN_FETCHWP.INSTRUCTIONS_P
content: PLUGIN_FETCHWP.INSTRUCTIONS
wordpress_fetch_settings.blogurl:
type: text
size: large
label: Blog-URL
placeholder: 'https//subdomain.blog.com'
validate:
type: slug
wordpress_fetch_settings.count:
type: text
size: small
label: PLUGIN_FETCHWP.SHOW_POSTS_COUNT
placeholder: '3'
default: 3
validate:
type: number
wordpress_fetch_settings.enableTranslation:
type: toggle
label: PLUGIN_FETCHWP.ENABLE_TRANSLATION_P
highlight: 1
default: 0
options:
1: Enabled
0: Disabled
validate:
type: bool
wordpress_fetch_settings.enableFMedia:
type: toggle
label: PLUGIN_FETCHWP.ENABLE_FMEDIA_P
highlight: 1
default: 0
options:
1: Enabled
0: Disabled
validate:
type: bool
ifFMediaEnabled:
type: conditional
condition: config.plugins.fetchwp.wordpress_fetch_settings.enableFMedia
fields:
wordpress_fetch_settings.qualityFMedia:
type: select
label: PLUGIN_FETCHWP.QUALFMEDIA_P
options:
full: Fullsize
thumbnail: Thumbnail
medium: Medium
medium-large: Medium-Large
post: Post
post-thumbnail: Post-Thumbnail
wordpress_fetch_settings.altImage:
label: PLUGIN_FETCHWP.ALT_IMAGE_P
type: file
random_name: true
avoid_overwriting: true
multiple: false
destination: 'user/plugins/fetchwp/assets'
filesize: 5
accept:
- image/*
wordpress_fetch_settings.sectiontitle:
type: text
size: large
label: PLUGIN_FETCHWP.SECTION_TITLE_P
placeholder: PLUGIN_FETCHWP.SECTION_TITLE
default: PLUGIN_FETCHWP.SECTION_TITLE
validate:
type: slug