-
Notifications
You must be signed in to change notification settings - Fork 0
/
quick-form-shortcode.php
244 lines (146 loc) · 24.1 KB
/
quick-form-shortcode.php
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<?php
//I may not use this...
?>
<div id="" class="wordpressplagiarismtracking-quick-insert-widget">
<form method="post" action="" id="wordpressplagiarismtracking_quick_insert_form">
<div class="case-link piklist-theme-field-container">
<div class="piklist-theme-label">
<label for="_post[post_title]" class="piklist-field-part piklist-label piklist-label-position-before ">Link<span class="piklist-required">*</span>
</label>
</div>
<div class="piklist-theme-field">
<input type="text" id="_post_post_title_0" name="_post[post_title]" value="
" placeholder="Paste link here..." class="_post_post_title piklist-field-element">
</div>
</div>
<?php
$parents = get_terms(array(
'taxonomy' => 'case_category'
,'hide_empty' => false
,'parent' => 0
));
foreach ($parents as $parent => $value) {
?>
<div class=" piklist-theme-field-container">
<div class="piklist-theme-label">
<label for="_taxonomy[case_category][]" class="piklist-field-part piklist-label piklist-label-position-before "><?php echo $value->name ?><span class="piklist-required">*</span>
</label>
</div>
<div class="piklist-theme-field">
<ul class="piklist-field-list">
<?php
$children = get_terms('case_category', array(
'hide_empty' => false
,'child_of' =>$value->term_id
));
foreach($children as $child => $child_val){
?>
<li>
<label class="piklist-field-list-item">
<input type="checkbox" id="_taxonomy_case_category_0" name="_taxonomy[case_category][]" value="164" class="form-control _taxonomy_case_category piklist-field-element">
<input type="hidden" id="_taxonomy_case_category_0" name="_taxonomy[case_category][]" value="">
<span class="piklist-list-item-label">
Books that resemble MLP's works</span>
</label>
</li>
<?php
}
}
?>
<li>
<label class="piklist-field-list-item">
<input type="checkbox" id="_taxonomy_case_category_1" name="_taxonomy[case_category][]" value="165" class="form-control _taxonomy_case_category piklist-field-element">
<span class="piklist-list-item-label">
Courses that resemble Belsebuub's work </span>
</label>
</li>
<li>
<label class="piklist-field-list-item">
<input type="checkbox" id="_taxonomy_case_category_2" name="_taxonomy[case_category][]" value="166" class="form-control _taxonomy_case_category piklist-field-element">
<span class="piklist-list-item-label">
Other copying that resembles MLP's works </span>
</label>
</li>
</ul></div></div><div class=" piklist-theme-field-container"><div class="piklist-theme-label"><label for="_taxonomy[case_category][]" class="piklist-field-part piklist-label piklist-label-position-before ">Copied Articles and Parts of Books<span class="piklist-required">*</span></label></div><div class="piklist-theme-field"><ul class="piklist-field-list">
<li>
<label class="piklist-field-list-item">
<input type="checkbox" id="_taxonomy_case_category_0" name="_taxonomy[case_category][]" value="171" class="form-control _taxonomy_case_category piklist-field-element">
<input type="hidden" id="_taxonomy_case_category_0" name="_taxonomy[case_category][]" value="">
<span class="piklist-list-item-label">
1 to 3 Paragraphs copied </span>
</label>
</li>
<li>
<label class="piklist-field-list-item">
<input type="checkbox" id="_taxonomy_case_category_1" name="_taxonomy[case_category][]" value="173" class="form-control _taxonomy_case_category piklist-field-element">
<span class="piklist-list-item-label">
4 + Paragraphs copied </span>
</label>
</li>
<li>
<label class="piklist-field-list-item">
<input type="checkbox" id="_taxonomy_case_category_2" name="_taxonomy[case_category][]" value="178" class="form-control _taxonomy_case_category piklist-field-element">
<span class="piklist-list-item-label">
4+ Paragraphs copied </span>
</label>
</li>
<li>
<label class="piklist-field-list-item">
<input type="checkbox" id="_taxonomy_case_category_3" name="_taxonomy[case_category][]" value="176" class="form-control _taxonomy_case_category piklist-field-element">
<span class="piklist-list-item-label">
Articles on Waking Times reposted – attribution not ideal </span>
</label>
</li>
<li>
<label class="piklist-field-list-item">
<input type="checkbox" id="_taxonomy_case_category_4" name="_taxonomy[case_category][]" value="172" class="form-control _taxonomy_case_category piklist-field-element">
<span class="piklist-list-item-label">
Contacted Nothing Happened </span>
</label>
</li>
<li>
<label class="piklist-field-list-item">
<input type="checkbox" id="_taxonomy_case_category_5" name="_taxonomy[case_category][]" value="174" class="form-control _taxonomy_case_category piklist-field-element">
<span class="piklist-list-item-label">
Resolved – 1 to 3 Paragraphs </span>
</label>
</li>
<li>
<label class="piklist-field-list-item">
<input type="checkbox" id="_taxonomy_case_category_6" name="_taxonomy[case_category][]" value="175" class="form-control _taxonomy_case_category piklist-field-element">
<span class="piklist-list-item-label">
Resolved – 4 + paragraphs </span>
</label>
</li>
</ul></div></div><div class=" piklist-theme-field-container"><div class="piklist-theme-label"><label for="_taxonomy[case_category][]" class="piklist-field-part piklist-label piklist-label-position-before ">Posted MLP works<span class="piklist-required">*</span></label></div><div class="piklist-theme-field"><ul class="piklist-field-list">
<li>
<label class="piklist-field-list-item">
<input type="checkbox" id="_taxonomy_case_category_0" name="_taxonomy[case_category][]" value="170" class="form-control _taxonomy_case_category piklist-field-element">
<input type="hidden" id="_taxonomy_case_category_0" name="_taxonomy[case_category][]" value="">
<span class="piklist-list-item-label">
Audio and Video </span>
</label>
</li>
<li>
<label class="piklist-field-list-item">
<input type="checkbox" id="_taxonomy_case_category_1" name="_taxonomy[case_category][]" value="167" class="form-control _taxonomy_case_category piklist-field-element">
<span class="piklist-list-item-label">
eBook(s) posted </span>
</label>
</li>
<li>
<label class="piklist-field-list-item">
<input type="checkbox" id="_taxonomy_case_category_2" name="_taxonomy[case_category][]" value="168" class="form-control _taxonomy_case_category piklist-field-element">
<span class="piklist-list-item-label">
Not readily available eBook pdfs posted </span>
</label>
</li>
<li>
<label class="piklist-field-list-item">
<input type="checkbox" id="_taxonomy_case_category_3" name="_taxonomy[case_category][]" value="169" class="form-control _taxonomy_case_category piklist-field-element">
<span class="piklist-list-item-label">
Old Course PDFs posted </span>
</label>
</li>
</ul></div></div><div class="case-link piklist-theme-field-container"><div class="piklist-theme-label"><label for="_post[post_content]" class="piklist-field-part piklist-label piklist-label-position-before ">Notes</label></div><div class="piklist-theme-field"><textarea id="_post_post_content_0" name="_post[post_content]" placeholder="Write notes about the link here" class="_post_post_content piklist-field-element"></textarea></div></div><div class=" piklist-theme-field-container"><div class="piklist-theme-label"></div><div class="piklist-theme-field"><input type="submit" id="submit_0" name="submit" value="Submit" class="submit piklist-field-element"></div></div><input type="hidden" id="_form_id_0" name="_[form_id]" value="wordpressplagiarismtracking_quick_insert_form" class="_form_id piklist-field-element" data-piklist-field-addmore-clear="0"><input type="hidden" id="_nonce_0" name="_[nonce]" value="336e99d2f5" class="_nonce piklist-field-element" data-piklist-field-addmore-clear="0"><input type="hidden" id="_fields_0" name="_[fields]" value="1609e2d0b5dcab8fe07020627effd0e8" data-piklist-fields="{"post":{"post_type":{"add_more":false,"attributes":{"class":["_post_post_type","piklist-field-element"],"data-piklist-field-addmore-clear":false},"capability":null,"child_add_more":false,"child_field":false,"choices":null,"columns":null,"conditions":[],"description":null,"display":false,"embed":false,"errors":false,"field":"post_type","group_field":false,"help":null,"id":"_post_post_type_0","index":0,"index_force":false,"label":null,"label_position":"before","label_tag":true,"list":true,"list_item_type":null,"list_type":null,"logged_in":false,"meta_query":[],"multiple":false,"name":"_post[post_type]","object_id":null,"on_post_status":[],"options":[],"position":null,"prefix":true,"query":[],"redirect":null,"relate":false,"relate_to":null,"request_value":null,"required":false,"role":null,"sanitize":[],"save_as":null,"scope":"post","sortable":false,"tax_query":[],"template":"field","type":"hidden","valid":true,"validate":[],"value":"plagiarism_case","wrapper":"[field]"},"post_status":{"add_more":false,"attributes":{"class":["_post_post_status","piklist-field-element"]},"capability":null,"child_add_more":false,"child_field":false,"choices":{"open":"Open","draft":"Draft","in_progress":"In Progress","contacted":"Contacted nothing happened","resolved":"Resolved","resolved-comment":"Resolved - attributed via comment"},"columns":null,"conditions":[],"description":null,"display":false,"embed":false,"errors":false,"field":"post_status","group_field":false,"help":null,"id":"_post_post_status_0","index":0,"index_force":false,"label":"Status","label_position":"before","label_tag":true,"list":true,"list_item_type":null,"list_type":null,"logged_in":false,"meta_query":[],"multiple":false,"name":"_post[post_status]","object_id":null,"on_post_status":[],"options":[],"position":null,"prefix":true,"query":[],"redirect":null,"relate":false,"relate_to":null,"request_value":null,"required":false,"role":null,"sanitize":[],"save_as":null,"scope":"post","sortable":false,"tax_query":[],"template":"theme","type":"select","valid":true,"validate":[],"value":"open","wrapper":"[field_wrapper]\u003Cdiv class=\u0022 piklist-theme-field-container\u0022\u003E\u003Cdiv class=\u0022piklist-theme-label\u0022\u003E[field_label]\u003C\/div\u003E\u003Cdiv class=\u0022piklist-theme-field\u0022\u003E[field][field_description_wrapper]\u003Cp class=\u0022piklist-theme-field-description\u0022\u003E[field_description]\u003C\/p\u003E[\/field_description_wrapper]\u003C\/div\u003E\u003C\/div\u003E[\/field_wrapper]"},"post_title":{"add_more":false,"attributes":{"wrapper_class":"case-link","placeholder":"Paste link here...","class":["_post_post_title","piklist-field-element"]},"capability":null,"child_add_more":false,"child_field":false,"choices":null,"columns":null,"conditions":[],"description":null,"display":false,"embed":false,"errors":false,"field":"post_title","group_field":false,"help":null,"id":"_post_post_title_0","index":0,"index_force":false,"label":"Link","label_position":"before","label_tag":true,"list":true,"list_item_type":null,"list_type":null,"logged_in":false,"meta_query":[],"multiple":false,"name":"_post[post_title]","object_id":null,"on_post_status":[],"options":[],"position":null,"prefix":true,"query":[],"redirect":null,"relate":false,"relate_to":null,"request_value":null,"required":true,"role":null,"sanitize":[],"save_as":null,"scope":"post","sortable":false,"tax_query":[],"template":"theme","type":"text","valid":true,"validate":[],"value":null,"wrapper":"[field_wrapper]\u003Cdiv class=\u0022case-link piklist-theme-field-container\u0022\u003E\u003Cdiv class=\u0022piklist-theme-label\u0022\u003E[field_label]\u003C\/div\u003E\u003Cdiv class=\u0022piklist-theme-field\u0022\u003E[field][field_description_wrapper]\u003Cp class=\u0022piklist-theme-field-description\u0022\u003E[field_description]\u003C\/p\u003E[\/field_description_wrapper]\u003C\/div\u003E\u003C\/div\u003E[\/field_wrapper]"},"post_content":{"add_more":false,"attributes":{"wrapper_class":"case-link","placeholder":"Write notes about the link here","class":["_post_post_content","piklist-field-element"]},"capability":null,"child_add_more":false,"child_field":false,"choices":null,"columns":null,"conditions":[],"description":null,"display":false,"embed":false,"errors":false,"field":"post_content","group_field":false,"help":null,"id":"_post_post_content_0","index":0,"index_force":false,"label":"Notes","label_position":"before","label_tag":true,"list":true,"list_item_type":null,"list_type":null,"logged_in":false,"meta_query":[],"multiple":false,"name":"_post[post_content]","object_id":null,"on_post_status":[],"options":[],"position":null,"prefix":true,"query":[],"redirect":null,"relate":false,"relate_to":null,"request_value":null,"required":false,"role":null,"sanitize":[],"save_as":null,"scope":"post","sortable":false,"tax_query":[],"template":"theme","type":"textarea","valid":true,"validate":[],"value":null,"wrapper":"[field_wrapper]\u003Cdiv class=\u0022case-link piklist-theme-field-container\u0022\u003E\u003Cdiv class=\u0022piklist-theme-label\u0022\u003E[field_label]\u003C\/div\u003E\u003Cdiv class=\u0022piklist-theme-field\u0022\u003E[field][field_description_wrapper]\u003Cp class=\u0022piklist-theme-field-description\u0022\u003E[field_description]\u003C\/p\u003E[\/field_description_wrapper]\u003C\/div\u003E\u003C\/div\u003E[\/field_wrapper]"}},"taxonomy":{"case_category":{"add_more":false,"attributes":{"class":["form-control","_taxonomy_case_category","piklist-field-element"]},"capability":null,"child_add_more":false,"child_field":false,"choices":{"170":"Audio and Video","167":"eBook(s) posted","168":"Not readily available eBook pdfs posted","169":"Old Course PDFs posted"},"columns":null,"conditions":[],"description":null,"display":false,"embed":false,"errors":false,"field":"case_category","group_field":false,"help":null,"id":"_taxonomy_case_category_3","index":0,"index_force":false,"label":"Posted MLP works","label_position":"before","label_tag":true,"list":true,"list_item_type":null,"list_type":null,"logged_in":false,"meta_query":[],"multiple":true,"name":"_taxonomy[case_category][]","object_id":null,"on_post_status":[],"options":[],"position":null,"prefix":true,"query":[],"redirect":null,"relate":false,"relate_to":null,"request_value":null,"required":true,"role":null,"sanitize":[],"save_as":null,"scope":"taxonomy","sortable":false,"tax_query":[],"template":"theme","type":"checkbox","valid":true,"validate":[],"value":null,"wrapper":"[field_wrapper]\u003Cdiv class=\u0022 piklist-theme-field-container\u0022\u003E\u003Cdiv class=\u0022piklist-theme-label\u0022\u003E[field_label]\u003C\/div\u003E\u003Cdiv class=\u0022piklist-theme-field\u0022\u003E[field][field_description_wrapper]\u003Cp class=\u0022piklist-theme-field-description\u0022\u003E[field_description]\u003C\/p\u003E[\/field_description_wrapper]\u003C\/div\u003E\u003C\/div\u003E[\/field_wrapper]"}},"":{"submit":{"add_more":false,"attributes":{"class":["submit","piklist-field-element"]},"capability":null,"child_add_more":false,"child_field":false,"choices":null,"columns":null,"conditions":[],"description":null,"display":false,"embed":false,"errors":false,"field":"submit","group_field":false,"help":null,"id":"submit_0","index":0,"index_force":false,"label":null,"label_position":"before","label_tag":true,"list":true,"list_item_type":null,"list_type":null,"logged_in":false,"meta_query":[],"multiple":false,"name":"submit","object_id":null,"on_post_status":[],"options":[],"position":null,"prefix":true,"query":[],"redirect":null,"relate":false,"relate_to":null,"request_value":null,"required":false,"role":null,"sanitize":[],"save_as":null,"scope":null,"sortable":false,"tax_query":[],"template":"theme","type":"submit","valid":true,"validate":[],"value":"Submit","wrapper":"[field_wrapper]\u003Cdiv class=\u0022 piklist-theme-field-container\u0022\u003E\u003Cdiv class=\u0022piklist-theme-label\u0022\u003E[field_label]\u003C\/div\u003E\u003Cdiv class=\u0022piklist-theme-field\u0022\u003E[field][field_description_wrapper]\u003Cp class=\u0022piklist-theme-field-description\u0022\u003E[field_description]\u003C\/p\u003E[\/field_description_wrapper]\u003C\/div\u003E\u003C\/div\u003E[\/field_wrapper]"}},"_":{"form_id":{"add_more":false,"attributes":{"class":["_form_id","piklist-field-element"],"data-piklist-field-addmore-clear":false},"capability":null,"child_add_more":false,"child_field":false,"choices":null,"columns":null,"conditions":[],"description":null,"display":false,"embed":false,"errors":false,"field":"form_id","group_field":false,"help":null,"id":"_form_id_0","index":0,"index_force":false,"label":null,"label_position":"before","label_tag":true,"list":true,"list_item_type":null,"list_type":null,"logged_in":false,"meta_query":[],"multiple":false,"name":"_[form_id]","object_id":null,"on_post_status":[],"options":[],"position":null,"prefix":true,"query":[],"redirect":null,"relate":false,"relate_to":null,"request_value":null,"required":false,"role":null,"sanitize":[],"save_as":null,"scope":"_","sortable":false,"tax_query":[],"template":"field","type":"hidden","valid":true,"validate":[],"value":"wordpressplagiarismtracking_quick_insert_form","wrapper":"[field]"},"nonce":{"add_more":false,"attributes":{"class":["_nonce","piklist-field-element"],"data-piklist-field-addmore-clear":false},"capability":null,"child_add_more":false,"child_field":false,"choices":null,"columns":null,"conditions":[],"description":null,"display":false,"embed":false,"errors":false,"field":"nonce","group_field":false,"help":null,"id":"_nonce_0","index":0,"index_force":false,"label":null,"label_position":"before","label_tag":true,"list":true,"list_item_type":null,"list_type":null,"logged_in":false,"meta_query":[],"multiple":false,"name":"_[nonce]","object_id":null,"on_post_status":[],"options":[],"position":null,"prefix":true,"query":[],"redirect":null,"relate":false,"relate_to":null,"request_value":null,"required":false,"role":null,"sanitize":[],"save_as":null,"scope":"_","sortable":false,"tax_query":[],"template":"field","type":"hidden","valid":true,"validate":[],"value":"336e99d2f5","wrapper":"[field]"}}}" class="_fields piklist-field-element" data-piklist-field-addmore-clear="0">
</form></div>