forked from MHerbst/mherbst-insert-thumbs-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.json
130 lines (128 loc) · 5.09 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
{
"name": "Insert (floating) images",
"version": "0.96.1",
"description": "Insert (floating) images at any size into essays or pages.",
"author": {
"name": "Martin Herbst",
"link": "https://www.brisoft.de/en/insert-images-essays-posts/"
},
"shortcodes": {
"mherbst_thumbs": {
"icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAABGdBTUEAALGPC/xhBQAAAwBQTFRFAAAAAQEBCAgIDg4OHR0dPDw8QEBAX19fY2NjeHh4Wbn/29vb/f39////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANXaJJgAAAQB0Uk5T////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AFP3ByUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAAB+SURBVDhP1ZDRDoAgCEXJLIvy/z/XQJnDMlu9VOeBwe6ZmxfCBZ8UUEP3E8EzBnpoCiNAW1gGY5sCowVeZeAquRbimmb1BfkUURckjNQEiTLeQykcXgDoJsrnLCiDd0cdWeec7iGuaSJSnlBC0YPE51VL/KqgoPu+sOcHQggbIZqx4GDMtlIAAAAASUVORK5CYII=",
"media": "photo",
"supports_linking": true,
"title": "Insert (floating) image",
"description": "Select one item.",
"data": {
"caption": {
"label": "Image caption",
"type": "select",
"value": "c",
"options": [
{ "label": "Do not show", "value": "n" },
{ "label": "Show title only", "value": "t" },
{ "label": "Show caption only", "value": "c" },
{ "label": "Show title and caption", "value": "b" }
]
},
"floating" : {
"label": "Floating",
"type" : "select",
"value": "l",
"options": [
{ "label": "left", "value": "l" },
{ "label": "right", "value": "r"},
{ "label": "no", "value": "n"}
]
},
"preset" : {
"label": "Use preset size",
"type": "select",
"value": "n",
"options": [
{ "label": "No", "value": "n" },
{ "label": "Tiny (60px)", "value": "t" },
{ "label": "Small (100px)", "value": "s" },
{ "label": "Medium (480px)", "value": "m" },
{ "label": "Medium-Large (800px)", "value": "ml" }
]
},
"width" : {
"label": "Width in pixel",
"type": "string",
"validation": {
"type": "regex",
"rule": "^[0-9]*$",
"error_message": "Only Integers are allowed."
}
},
"height" : {
"label": "Height in pixel",
"type": "string",
"validation": {
"type": "regex",
"rule": "^[0-9]*$",
"error_message": "Only Integers are allowed."
}
},
"size" : {
"label": "Aspect ratio",
"type" : "string",
"validation": {
"type": "regex",
"rule": "^([1-9][0-9]*:[1-9][0-9]*)?$",
"error_message": "Enter two numeric values separated by colon, e.g. '3:2'"
}
},
"crop" : {
"label": "Crop",
"type" : "boolean",
"value": "false"
},
"margin" : {
"label": "Margin in pixels",
"type": "string",
"validation": {
"type": "regex",
"rule": "^[0-9]*$",
"error_message": "Only Integers are allowed."
}
},
"class" : {
"label": "Additional CSS class(es)",
"type" : "string"
},
"newwin" : {
"label": "Open link in new Window",
"type" : "boolean",
"value": "false"
}
}
}
},
"data" : {
"show_in_index": {
"label": "Show images in essay index",
"info" : "Choose whether images should be shown in the essay index or not",
"type" : "boolean",
"value": "true"
},
"lazy_load" : {
"label": "Use lazy loading of images",
"info" : "Enable this option to load images when they are scrolled into view. Do not enable this option an themes using Ajax like Madison 2",
"type" : "boolean",
"value": "false"
},
"add_link_to_caption" : {
"label": "Add link to caption",
"info" : "If checked all image captions will also link to the selected target",
"type" : "boolean",
"value": "false"
},
"default_css" : {
"label" : "Default CSS class",
"info" : "This CSS class will be applied to all images if not other class is specified",
"type" : "string"
}
}
}