Version Description
- Revert 0.9.0 release until unfound bugs are fixed.
Download this release
Release Info
Developer | tw2113 |
Plugin | Custom Post Type UI |
Version | 0.9.5 |
Comparing to | |
See all releases |
Code changes from version 0.9.0 to 0.9.5
- classes/class.cptui_admin_ui.php +0 -386
- css/cptui.css +0 -81
- custom-post-type-ui.php +1623 -551
- images/professional-wordpress-secondedition.jpg +0 -0
- images/professional-wordpress-thirdedition.jpg +0 -0
- images/professional-wordpress.jpg +0 -0
- inc/import_export.php +0 -327
- inc/post-types.php +0 -1082
- inc/support.php +0 -167
- inc/taxonomies.php +0 -692
- js/cptui.js +0 -32
- languages/cpt-plugin-de_DE.mo +0 -0
- languages/cpt-plugin-de_DE.po +0 -1028
- languages/cpt-plugin-tr_TR.mo +0 -0
- languages/cpt-plugin-tr_TR.po +0 -1065
- languages/custom-post-type-ui.mo +0 -0
- languages/custom-post-type-ui.pot +449 -761
- readme.txt +34 -50
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
- screenshot-5.png +0 -0
- screenshot-6.png +0 -0
- screenshot-7.png +0 -0
- screenshot-8.png +0 -0
- screenshot-9.png +0 -0
classes/class.cptui_admin_ui.php
DELETED
@@ -1,386 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Ideas: $this->get_td( $content ). Returns content wrapped in <td>. Similar with $this->get_tr(), $this->th()
|
4 |
-
*/
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Custom Post Type UI Admin UI
|
8 |
-
*/
|
9 |
-
class cptui_admin_ui {
|
10 |
-
|
11 |
-
/**
|
12 |
-
* Return an opening <tr> tag.
|
13 |
-
*
|
14 |
-
* @since 1.0
|
15 |
-
*
|
16 |
-
* @return string $value Opening <tr> tag with attributes.
|
17 |
-
*/
|
18 |
-
public function get_tr_start() {
|
19 |
-
return '<tr valign="top">';
|
20 |
-
}
|
21 |
-
|
22 |
-
/**
|
23 |
-
* Return a closing </tr> tag.
|
24 |
-
*
|
25 |
-
* @since 1.0
|
26 |
-
*
|
27 |
-
* @return string $value Closing </tr> tag.
|
28 |
-
*/
|
29 |
-
public function get_tr_end() {
|
30 |
-
return '</tr>';
|
31 |
-
}
|
32 |
-
|
33 |
-
/**
|
34 |
-
* Return an opening <th> tag.
|
35 |
-
*
|
36 |
-
* @since 1.0
|
37 |
-
*
|
38 |
-
* @return string $value Opening <th> tag with attributes.
|
39 |
-
*/
|
40 |
-
public function get_th_start() {
|
41 |
-
return '<th scope="row">';
|
42 |
-
}
|
43 |
-
|
44 |
-
/**
|
45 |
-
* Return a closing </th> tag.
|
46 |
-
*
|
47 |
-
* @since 1.0
|
48 |
-
*
|
49 |
-
* @return string $value Closing </th> tag.
|
50 |
-
*/
|
51 |
-
public function get_th_end() {
|
52 |
-
return '</th>';
|
53 |
-
}
|
54 |
-
|
55 |
-
/**
|
56 |
-
* Return an opening <td> tag.
|
57 |
-
*
|
58 |
-
* @since 1.0
|
59 |
-
*
|
60 |
-
* @return string $value Opening <td> tag.
|
61 |
-
*/
|
62 |
-
public function get_td_start() {
|
63 |
-
return '<td>';
|
64 |
-
}
|
65 |
-
|
66 |
-
/**
|
67 |
-
* Return a closing </td> tag.
|
68 |
-
*
|
69 |
-
* @since 1.0
|
70 |
-
*
|
71 |
-
* @return string $value Closing </td> tag.
|
72 |
-
*/
|
73 |
-
public function get_td_end() {
|
74 |
-
return '</td>';
|
75 |
-
}
|
76 |
-
|
77 |
-
/**
|
78 |
-
* Return string wrapped in a <p> tag.
|
79 |
-
*
|
80 |
-
* @since 1.0
|
81 |
-
*
|
82 |
-
* @param string $text Content to wrap in a <p> tag.
|
83 |
-
*
|
84 |
-
* @return string $value Content wrapped in a <p> tag.
|
85 |
-
*/
|
86 |
-
public function get_p( $text = '' ) {
|
87 |
-
return '<p>' . strip_tags( $text ) . '</p>';
|
88 |
-
}
|
89 |
-
|
90 |
-
/**
|
91 |
-
* Return a form <label> with for attribute.
|
92 |
-
*
|
93 |
-
* @since 1.0
|
94 |
-
*
|
95 |
-
* @param string $label_for Form input to associate <label> with.
|
96 |
-
* @param string $label_text Text to display in the <label> tag.
|
97 |
-
*
|
98 |
-
* @return string $value <label> tag with filled out parts.
|
99 |
-
*/
|
100 |
-
public function get_label( $label_for = '', $label_text = '' ) {
|
101 |
-
return '<label for="' . esc_attr( $label_for ) . '">' . strip_tags( $label_text ) . '</label>';
|
102 |
-
}
|
103 |
-
|
104 |
-
/**
|
105 |
-
* Return a <span> to indicate required status, with class attribute.
|
106 |
-
*
|
107 |
-
* @since 1.0
|
108 |
-
*
|
109 |
-
* @return string span tag.
|
110 |
-
*/
|
111 |
-
public function get_required() {
|
112 |
-
return '<span class="required">*</span>';
|
113 |
-
}
|
114 |
-
|
115 |
-
/**
|
116 |
-
* Return an <a> tag with title attribute holding help text.
|
117 |
-
*
|
118 |
-
* @since 1.0
|
119 |
-
*
|
120 |
-
* @param string $help_text Text to use in the title attribute.
|
121 |
-
*
|
122 |
-
* @return string <a> tag with filled out parts.
|
123 |
-
*/
|
124 |
-
public function get_help( $help_text = '' ) {
|
125 |
-
return '<a href="#" title="' . esc_attr( $help_text ) . '" class="help wp-ui-highlight">?</a>';
|
126 |
-
}
|
127 |
-
|
128 |
-
/**
|
129 |
-
* Return a maxlength HTML attribute with a specified length.
|
130 |
-
*
|
131 |
-
* @param string $length How many characters the max length should be set to.
|
132 |
-
*
|
133 |
-
* @return string $value Maxlength HTML attribute.
|
134 |
-
*/
|
135 |
-
public function get_maxlength( $length = '' ) {
|
136 |
-
return 'maxlength="' . esc_attr( $length ) . '"';
|
137 |
-
}
|
138 |
-
|
139 |
-
/**
|
140 |
-
* Return a onblur HTML attribute for a specified value.
|
141 |
-
*
|
142 |
-
* @param string $text Text to place in the onblur attribute.
|
143 |
-
*
|
144 |
-
* @return string $value Onblur HTML attribute.
|
145 |
-
*/
|
146 |
-
public function get_onblur( $text = '' ) {
|
147 |
-
return 'onblur="' . esc_attr( $text ) . '"';
|
148 |
-
}
|
149 |
-
|
150 |
-
/**
|
151 |
-
* Return a populated <select> input.
|
152 |
-
*
|
153 |
-
* @since 1.0
|
154 |
-
*
|
155 |
-
* @param array $args Arguments to use with the <select> input.
|
156 |
-
*
|
157 |
-
* @return string $value Complete <select> input with options and selected attribute.
|
158 |
-
*/
|
159 |
-
public function get_select_input( $args = array() ) {
|
160 |
-
$defaults = $this->get_default_input_parameters(
|
161 |
-
array( 'selections' => array() )
|
162 |
-
);
|
163 |
-
|
164 |
-
$args = wp_parse_args( $args, $defaults );
|
165 |
-
|
166 |
-
$value = '';
|
167 |
-
if ( $args['wrap'] ) {
|
168 |
-
$value = $this->get_tr_start();
|
169 |
-
$value .= $this->get_th_start();
|
170 |
-
$value .= $this->get_label( $args['name'], $args['labeltext'] );
|
171 |
-
if ( $args['required'] ) { $value .= $this->get_required(); }
|
172 |
-
if ( !empty( $args['helptext'] ) ) { $value .= $this->get_help( $args['helptext'] ); }
|
173 |
-
$value .= $this->get_th_end();
|
174 |
-
$value .= $this->get_td_start();
|
175 |
-
}
|
176 |
-
|
177 |
-
$value .= '<select id="' . $args['name'] . '" name="' . $args['namearray'] . '[' . $args['name'] . ']">';
|
178 |
-
if ( !empty( $args['selections']['options'] ) && is_array( $args['selections']['options'] ) ) {
|
179 |
-
foreach( $args['selections']['options'] as $val ) {
|
180 |
-
$result = '';
|
181 |
-
$bool = disp_boolean( $val['attr'] );
|
182 |
-
|
183 |
-
if ( is_numeric( $args['selections']['selected'] ) ) {
|
184 |
-
$selected = disp_boolean( $args['selections']['selected'] );
|
185 |
-
} elseif ( in_array( $args['selections']['selected'], array( 'true', 'false' ) ) ) {
|
186 |
-
$selected = $args['selections']['selected'];
|
187 |
-
}
|
188 |
-
|
189 |
-
if ( ( !empty( $selected ) ) && $selected === $bool ) {
|
190 |
-
$result = ' selected="selected"';
|
191 |
-
} else {
|
192 |
-
if ( array_key_exists( 'default', $val ) && !empty( $val['default'] ) ) {
|
193 |
-
if ( empty( $selected ) ) {
|
194 |
-
$result = ' selected="selected"';
|
195 |
-
}
|
196 |
-
}
|
197 |
-
}
|
198 |
-
|
199 |
-
if ( !is_numeric( $args['selections']['selected'] ) && ( !empty( $args['selections']['selected'] ) && $args['selections']['selected'] == $val['attr'] ) ) {
|
200 |
-
$result = ' selected="selected"';
|
201 |
-
}
|
202 |
-
|
203 |
-
$value .= '<option value="' . $val['attr'] . '"' . $result . '>' . $val['text'] . '</option>';
|
204 |
-
}
|
205 |
-
}
|
206 |
-
$value .= '</select>';
|
207 |
-
|
208 |
-
if ( !empty( $args['aftertext'] ) )
|
209 |
-
$value .= $args['aftertext'];
|
210 |
-
|
211 |
-
if ( $args['wrap'] ) {
|
212 |
-
$value .= $this->get_td_end();
|
213 |
-
$value .= $this->get_tr_end();
|
214 |
-
}
|
215 |
-
|
216 |
-
return $value;
|
217 |
-
}
|
218 |
-
|
219 |
-
/**
|
220 |
-
* Return a text input.
|
221 |
-
*
|
222 |
-
* @since 1.0
|
223 |
-
*
|
224 |
-
* @param array $args Arguments to use with the text input.
|
225 |
-
*
|
226 |
-
* @return string Complete text <input> with proper attributes.
|
227 |
-
*/
|
228 |
-
public function get_text_input( $args = array() ) {
|
229 |
-
$defaults = $this->get_default_input_parameters(
|
230 |
-
array(
|
231 |
-
'maxlength' => '',
|
232 |
-
'onblur' => '',
|
233 |
-
)
|
234 |
-
);
|
235 |
-
$args = wp_parse_args( $args, $defaults );
|
236 |
-
|
237 |
-
$value = '';
|
238 |
-
if ( $args['wrap'] ) {
|
239 |
-
$value .= $this->get_tr_start();
|
240 |
-
$value .= $this->get_th_start();
|
241 |
-
$value .= $this->get_label( $args['name'], $args['labeltext'] );
|
242 |
-
if ( $args['required'] ) { $value .= $this->get_required(); }
|
243 |
-
$value .= $this->get_help( $args['helptext'] );
|
244 |
-
$value .= $this->get_th_end();
|
245 |
-
$value .= $this->get_td_start();
|
246 |
-
}
|
247 |
-
|
248 |
-
$value .= '<input type="text" id="' . $args['name'] . '" name="' . $args['namearray'] . '[' . $args['name'] . ']" value="' . $args['textvalue'] . '"';
|
249 |
-
|
250 |
-
if ( $args['maxlength'] ) {
|
251 |
-
$value .= ' ' . $this->get_maxlength( $args['maxlength'] );
|
252 |
-
}
|
253 |
-
|
254 |
-
if ( $args['onblur'] ) {
|
255 |
-
$value .= ' ' . $this->get_onblur( $args['onblur'] );
|
256 |
-
}
|
257 |
-
|
258 |
-
$value .= ' /><br/>';
|
259 |
-
|
260 |
-
if ( !empty( $args['aftertext'] ) )
|
261 |
-
$value .= $args['aftertext'];
|
262 |
-
|
263 |
-
if ( $args['wrap'] ) {
|
264 |
-
$value .= $this->get_td_end();
|
265 |
-
$value .= $this->get_tr_end();
|
266 |
-
}
|
267 |
-
|
268 |
-
return $value;
|
269 |
-
}
|
270 |
-
|
271 |
-
/**
|
272 |
-
* Return a <textarea> input.
|
273 |
-
*
|
274 |
-
* @since 1.0
|
275 |
-
*
|
276 |
-
* @param array $args Arguments to use with the textarea input.
|
277 |
-
*
|
278 |
-
* @return string $value Complete <textarea> input with proper attributes.
|
279 |
-
*/
|
280 |
-
public function get_textarea_input( $args = array() ) {
|
281 |
-
$defaults = $this->get_default_input_parameters(
|
282 |
-
array(
|
283 |
-
'rows' => '',
|
284 |
-
'cols' => '',
|
285 |
-
)
|
286 |
-
);
|
287 |
-
$args = wp_parse_args( $args, $defaults );
|
288 |
-
|
289 |
-
$value = '';
|
290 |
-
|
291 |
-
if ( $args['wrap'] ) {
|
292 |
-
$value .= $this->get_tr_start();
|
293 |
-
$value .= $this->get_th_start();
|
294 |
-
$value .= $this->get_label( $args['name'], $args['labeltext'] );
|
295 |
-
if ( $args['required'] ) { $value .= $this->get_required(); }
|
296 |
-
$value .= $this->get_help( $args['helptext'] );
|
297 |
-
$value .= $this->get_th_end();
|
298 |
-
$value .= $this->get_td_start();
|
299 |
-
}
|
300 |
-
|
301 |
-
$value .= '<textarea id="' . $args['name'] . '" name="' . $args['namearray'] . '[' . $args['name'] . ']" rows="' . $args['rows'] . '" cols="' . $args['cols'] . '">' . $args['textvalue'] . '</textarea>';
|
302 |
-
|
303 |
-
if ( !empty ( $args['aftertext'] ) )
|
304 |
-
$value .= $args['aftertext'];
|
305 |
-
|
306 |
-
if ( $args['wrap'] ) {
|
307 |
-
$value .= $this->get_td_end();
|
308 |
-
$value .= $this->get_tr_end();
|
309 |
-
}
|
310 |
-
|
311 |
-
return $value;
|
312 |
-
}
|
313 |
-
|
314 |
-
/**
|
315 |
-
* Return a checkbox <input>.
|
316 |
-
*
|
317 |
-
* @since 1.0
|
318 |
-
*
|
319 |
-
* @param array $args Arguments to use with the checkbox input.
|
320 |
-
*
|
321 |
-
* @return string $value Complete checkbox <input> with proper attributes.
|
322 |
-
*/
|
323 |
-
public function get_check_input( $args = array() ) {
|
324 |
-
$defaults = $this->get_default_input_parameters(
|
325 |
-
array(
|
326 |
-
'checkvalue' => '',
|
327 |
-
'checked' => 'true',
|
328 |
-
'checklisttext' => '',
|
329 |
-
'default' => false
|
330 |
-
)
|
331 |
-
);
|
332 |
-
|
333 |
-
$args = wp_parse_args( $args, $defaults );
|
334 |
-
|
335 |
-
$value = '';
|
336 |
-
if ( $args['wrap'] ) {
|
337 |
-
$value .= $this->get_tr_start();
|
338 |
-
$value .= $this->get_th_start();
|
339 |
-
$value .= $args['checklisttext'];
|
340 |
-
if ( $args['required'] ) { $value .= $this->get_required(); }
|
341 |
-
$value .= $this->get_th_end();
|
342 |
-
$value .= $this->get_td_start();
|
343 |
-
}
|
344 |
-
|
345 |
-
if ( isset( $args['checked'] ) && 'false' == $args['checked'] ) {
|
346 |
-
$value .= '<input type="checkbox" id="' . $args['name'] . '" name="' . $args['namearray'] . '[]" value="' . $args['checkvalue'] . '" />';
|
347 |
-
} else {
|
348 |
-
$value .= '<input type="checkbox" id="' . $args['name'] . '" name="' . $args['namearray'] . '[]" value="' . $args['checkvalue'] . '" checked="checked" />';
|
349 |
-
}
|
350 |
-
$value .= $this->get_label( $args['name'], $args['labeltext'] );
|
351 |
-
$value .= $this->get_help( $args['helptext'] );
|
352 |
-
$value .= '<br/>';
|
353 |
-
|
354 |
-
if ( $args['wrap'] ) {
|
355 |
-
$value .= $this->get_td_end();
|
356 |
-
$value .= $this->get_tr_end();
|
357 |
-
}
|
358 |
-
|
359 |
-
return $value;
|
360 |
-
}
|
361 |
-
|
362 |
-
/**
|
363 |
-
* Return some array_merged default arguments for all input types.
|
364 |
-
*
|
365 |
-
* @since 1.0
|
366 |
-
*
|
367 |
-
* @param array $additions Arguments array to merge with our defaults.
|
368 |
-
*
|
369 |
-
* @return array $value Merged arrays for our default parameters.
|
370 |
-
*/
|
371 |
-
public function get_default_input_parameters( $additions = array() ) {
|
372 |
-
return array_merge(
|
373 |
-
array(
|
374 |
-
'namearray' => '',
|
375 |
-
'name' => '',
|
376 |
-
'textvalue' => '',
|
377 |
-
'labeltext' => '',
|
378 |
-
'aftertext' => '',
|
379 |
-
'helptext' => '',
|
380 |
-
'required' => false,
|
381 |
-
'wrap' => true
|
382 |
-
),
|
383 |
-
(array)$additions
|
384 |
-
);
|
385 |
-
}
|
386 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/cptui.css
DELETED
@@ -1,81 +0,0 @@
|
|
1 |
-
.help {
|
2 |
-
border-radius: 50%;
|
3 |
-
display: inline-block;
|
4 |
-
height: 15px;
|
5 |
-
margin-left: 2px;
|
6 |
-
text-align: center;
|
7 |
-
width: 15px;
|
8 |
-
}
|
9 |
-
.help:hover { font-weight: bold; }
|
10 |
-
.required { color: rgb(255,0,0); }
|
11 |
-
.cptui-table #excerpt { height: 16px; margin-right: 4px; width: auto; }
|
12 |
-
.cptui-table td { vertical-align: top; width: 50%; }
|
13 |
-
#cptui_select_post_type, #cptui_select_taxonomy { margin-top: 15px; }
|
14 |
-
.cptui_post_import, .cptui_tax_import {
|
15 |
-
height: 200px;
|
16 |
-
margin-bottom: 10px;
|
17 |
-
resize: vertical;
|
18 |
-
width: 100%;
|
19 |
-
}
|
20 |
-
.cptui_post_type_get_code, .cptui_tax_get_code {
|
21 |
-
height: 300px;
|
22 |
-
resize: vertical;
|
23 |
-
width: 100%;
|
24 |
-
}
|
25 |
-
#cptui_accordion { height: 500px; }
|
26 |
-
#cptui_accordion h3:hover, .cptui-table .question:hover { cursor: pointer; }
|
27 |
-
.question { font-size: 18px; font-weight: bold; }
|
28 |
-
.answer { margin: 10px 0 0 20px; }
|
29 |
-
#support li {
|
30 |
-
position: relative;
|
31 |
-
}
|
32 |
-
#cptui_accordion h3:after, #support .question:before {
|
33 |
-
content: "\f139";
|
34 |
-
display: inline-block;
|
35 |
-
font: normal 25px/1 'dashicons';
|
36 |
-
-webkit-font-smoothing: antialiased;
|
37 |
-
}
|
38 |
-
#cptui_accordion h3.ui-state-active:after, #support .question.active:before {
|
39 |
-
content: "\f140";
|
40 |
-
}
|
41 |
-
#support .question:before {
|
42 |
-
margin-left: -25px;
|
43 |
-
position: absolute;
|
44 |
-
}
|
45 |
-
#cptui_accordion h3:after {
|
46 |
-
position: absolute;
|
47 |
-
}
|
48 |
-
#support ol li { list-style: none; }
|
49 |
-
|
50 |
-
.ui-accordion-content {
|
51 |
-
overflow: auto;
|
52 |
-
margin: 0 auto;
|
53 |
-
|
54 |
-
background:
|
55 |
-
/* Shadow covers */
|
56 |
-
linear-gradient(#F1F1F1 30%, rgba(255,255,255,0)),
|
57 |
-
linear-gradient(rgba(255,255,255,0), #F1F1F1 70%) 0 100%,
|
58 |
-
|
59 |
-
/* Shadows */
|
60 |
-
radial-gradient(50% 0, farthest-side, rgba(0,0,0,.3), rgba(0,0,0,0)),
|
61 |
-
radial-gradient(50% 100%,farthest-side, rgba(0,0,0,.3), rgba(0,0,0,0)) 0 100%;
|
62 |
-
background:
|
63 |
-
/* Shadow covers */
|
64 |
-
linear-gradient(#F1F1F1 30%, rgba(255,255,255,0)),
|
65 |
-
linear-gradient(rgba(255,255,255,0), #F1F1F1 70%) 0 100%,
|
66 |
-
|
67 |
-
/* Shadows */
|
68 |
-
radial-gradient(farthest-side at 50% 0, rgba(0,0,0,.3), rgba(0,0,0,0)),
|
69 |
-
radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,.3), rgba(0,0,0,0)) 0 100%;
|
70 |
-
background-repeat: no-repeat;
|
71 |
-
background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
|
72 |
-
|
73 |
-
/* Opera doesn't support this in the shorthand */
|
74 |
-
background-attachment: local, local, scroll, scroll;
|
75 |
-
}
|
76 |
-
.one-third {
|
77 |
-
width: 33%;
|
78 |
-
}
|
79 |
-
.valign {
|
80 |
-
vertical-align: top;
|
81 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
custom-post-type-ui.php
CHANGED
@@ -1,649 +1,1721 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Custom Post Type UI
|
4 |
-
Plugin URI:
|
5 |
Description: Admin panel for creating custom post types and custom taxonomies in WordPress
|
6 |
Author: WebDevStudios.com
|
7 |
-
Version: 0.9.
|
8 |
Author URI: http://webdevstudios.com/
|
9 |
Text Domain: cpt-plugin
|
10 |
License: GPLv2
|
11 |
*/
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
exit;
|
16 |
-
}
|
17 |
|
18 |
-
|
19 |
define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
|
20 |
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
flush_rewrite_rules();
|
38 |
}
|
39 |
-
|
40 |
-
|
41 |
-
/**
|
42 |
-
* Register our text domain.
|
43 |
-
*
|
44 |
-
* @since 0.8.0
|
45 |
-
*/
|
46 |
-
function cptui_load_textdomain() {
|
47 |
load_plugin_textdomain( 'cpt-plugin', false, basename( dirname( __FILE__ ) ) . '/languages' );
|
48 |
}
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
}
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
* @since 0.9.0
|
65 |
-
*/
|
66 |
-
function cptui_create_submenus() {
|
67 |
-
require_once( plugin_dir_path( __FILE__ ) . 'inc/post-types.php' );
|
68 |
-
require_once( plugin_dir_path( __FILE__ ) . 'inc/taxonomies.php' );
|
69 |
-
require_once( plugin_dir_path( __FILE__ ) . 'inc/import_export.php' );
|
70 |
-
require_once( plugin_dir_path( __FILE__ ) . 'inc/support.php' );
|
71 |
}
|
72 |
-
add_action( 'init', 'cptui_create_submenus' );
|
73 |
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
}
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
}
|
91 |
}
|
92 |
-
return;
|
93 |
}
|
94 |
-
add_action( 'init', 'cptui_create_custom_post_types', 11 ); //Priority 11 so that the taxonomies are registered first.
|
95 |
-
|
96 |
-
/**
|
97 |
-
* Helper function to register the actual post_type.
|
98 |
-
*
|
99 |
-
* @since 0.9.0
|
100 |
-
*
|
101 |
-
* @param array $post_type Post type array to register.
|
102 |
-
*
|
103 |
-
* @return null Result of register_post_type.
|
104 |
-
*/
|
105 |
-
function cptui_register_single_post_type( $post_type = array() ) {
|
106 |
-
|
107 |
-
/**
|
108 |
-
* Filters the map_meta_cap value.
|
109 |
-
*
|
110 |
-
* @since 0.9.0
|
111 |
-
*
|
112 |
-
* @param bool $value True.
|
113 |
-
* @param string $name Post type name being registered.
|
114 |
-
* @param array $post_type All parameters for post type registration.
|
115 |
-
*/
|
116 |
-
$post_type['map_meta_cap'] = apply_filters( 'cptui_map_meta_cap', 'true', $post_type['name'], $post_type );
|
117 |
-
|
118 |
-
/**
|
119 |
-
* Filters custom supports parameters for 3rd party plugins.
|
120 |
-
*
|
121 |
-
* @since 0.9.0
|
122 |
-
*
|
123 |
-
* @param array $value Empty array to add supports keys to.
|
124 |
-
* @param string $name Post type slug being registered.
|
125 |
-
* @param array $post_type Array of post type arguments to be registered.
|
126 |
-
*/
|
127 |
-
$user_supports_params = apply_filters( 'cptui_user_supports_params', array(), $post_type['name'], $post_type );
|
128 |
|
129 |
-
if ( is_array( $user_supports_params ) ) {
|
130 |
-
$post_type['supports'] = array_merge( $post_type['supports'], $user_supports_params );
|
131 |
-
}
|
132 |
|
133 |
-
|
134 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
}
|
|
|
|
|
|
|
|
|
|
|
136 |
|
137 |
-
|
138 |
-
|
139 |
-
'singular_name' => $post_type['singular_label']
|
140 |
-
);
|
141 |
|
142 |
-
|
143 |
-
|
144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
}
|
|
|
|
|
146 |
}
|
147 |
|
148 |
-
|
149 |
-
if
|
150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
}
|
152 |
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
}
|
159 |
|
160 |
-
|
161 |
-
|
162 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
}
|
164 |
-
}
|
165 |
|
166 |
-
|
167 |
-
'
|
168 |
-
|
169 |
-
'public' => get_disp_boolean( $post_type['public'] ),
|
170 |
-
'show_ui' => get_disp_boolean( $post_type['show_ui'] ),
|
171 |
-
'has_archive' => get_disp_boolean( $post_type['has_archive'] ),
|
172 |
-
'show_in_menu' => $show_in_menu,
|
173 |
-
'exclude_from_search' => get_disp_boolean( $post_type['exclude_from_search'] ),
|
174 |
-
'capability_type' => $post_type['capability_type'],
|
175 |
-
'map_meta_cap' => $post_type['map_meta_cap'],
|
176 |
-
'hierarchical' => get_disp_boolean( $post_type['hierarchical'] ),
|
177 |
-
'rewrite' => $rewrite,
|
178 |
-
'menu_position' => $post_type['menu_position'],
|
179 |
-
'menu_icon' => $post_type['menu_icon'],
|
180 |
-
'query_var' => $post_type['query_var'],
|
181 |
-
'supports' => $post_type['supports'],
|
182 |
-
'taxonomies' => $post_type['taxonomies']
|
183 |
-
);
|
184 |
-
|
185 |
-
/**
|
186 |
-
* Filters the arguments used for a post type right before registering.
|
187 |
-
*
|
188 |
-
* @since 0.9.0
|
189 |
-
*
|
190 |
-
* @param array $args Array of arguments to use for registering post type.
|
191 |
-
* @param string $value Post type slug to be registered.
|
192 |
-
*/
|
193 |
-
$args = apply_filters( 'cptui_pre_register_post_type', $args, $post_type['name'] );
|
194 |
|
195 |
-
|
196 |
-
|
|
|
197 |
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
foreach ( $taxes as $tax ) {
|
208 |
-
cptui_register_single_taxonomy( $tax );
|
209 |
}
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
$labels = array(
|
224 |
-
'name' => $taxonomy['label'],
|
225 |
-
'singular_name' => $taxonomy['singular_label']
|
226 |
-
);
|
227 |
-
|
228 |
-
foreach( $taxonomy['labels'] as $key => $label ) {
|
229 |
-
if ( !empty( $label ) ) {
|
230 |
-
$labels[ $key ] = $label;
|
231 |
}
|
|
|
|
|
232 |
}
|
233 |
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
}
|
240 |
|
241 |
-
|
242 |
-
|
243 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
244 |
}
|
245 |
|
246 |
-
|
247 |
-
|
248 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
}
|
250 |
-
}
|
251 |
|
252 |
-
|
253 |
-
'
|
254 |
-
'label' => $taxonomy[ 'label' ],
|
255 |
-
'hierarchical' => get_disp_boolean( $taxonomy[ 'hierarchical' ] ),
|
256 |
-
'show_ui' => get_disp_boolean( $taxonomy[ 'show_ui' ] ),
|
257 |
-
'query_var' => $taxonomy[ 'query_var' ],
|
258 |
-
'query_var_slug' => $taxonomy[ 'query_var_slug' ],
|
259 |
-
'rewrite' => $rewrite,
|
260 |
-
'show_admin_column' => $taxonomy[ 'show_admin_column' ]
|
261 |
-
);
|
262 |
-
|
263 |
-
/**
|
264 |
-
* Filters the arguments used for a taxonomy right before registering.
|
265 |
-
*
|
266 |
-
* @since 0.9.0
|
267 |
-
*
|
268 |
-
* @param array $args Array of arguments to use for registering taxonomy.
|
269 |
-
* @param string $value Taxonomy slug to be registered.
|
270 |
-
*/
|
271 |
-
$args = apply_filters( 'cptui_pre_register_taxonomy', $args, $taxonomy['name'] );
|
272 |
|
273 |
-
|
274 |
-
|
275 |
|
276 |
-
|
277 |
-
|
278 |
-
*
|
279 |
-
* @since 0.3.0
|
280 |
-
*
|
281 |
-
* @return string $value HTML markup for the page.
|
282 |
-
*/
|
283 |
-
function cptui_settings() { ?>
|
284 |
-
<div class="wrap">
|
285 |
-
<?php
|
286 |
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
*/
|
292 |
-
do_action( 'cptui_main_page_start' ); ?>
|
293 |
-
<h2><?php _e( 'Custom Post Type UI', 'cpt-plugin' ); ?> <?php echo CPT_VERSION; ?></h2>
|
294 |
-
|
295 |
-
<div class="alignleft">
|
296 |
-
<p><?php _e( 'Thank you for choosing Custom Post Type UI. We hope that your experience with our plugin provides efficiency and speed in creating post types and taxonomies, to better organize your content, without having to touch code.', 'cpt-plugin' ); ?></p>
|
297 |
-
|
298 |
-
<p><?php echo sprintf( __( 'To get started with creating some post types, please visit %s and for taxonomies, visit %s. If you need some help, check the %s page. If nothing there fits your issue, visit our %s and we will try to get to your question as soon as possible.', 'cpt-plugin' ),
|
299 |
-
sprintf( '<a href="' . admin_url( 'admin.php?page=cptui_manage_post_types' ) . '">%s</a>', __( 'Add/Edit Post Types', 'cpt-plugin' ) ),
|
300 |
-
sprintf( '<a href="' . admin_url( 'admin.php?page=cptui_manage_taxonomies' ) . '">%s</a>', __( 'Add/Edit Taxonomies', 'cpt-plugin' ) ),
|
301 |
-
sprintf( '<a href="' . admin_url( 'admin.php?page=cptui_support' ) . '">%s</a>', __( 'Help/Support', 'cpt-plugin' ) ),
|
302 |
-
sprintf( '<a href="http://wordpress.org/support/plugin/custom-post-type-ui">%s</a>', __( 'CPT UI Support Forum', 'cpt-plugin' ) )
|
303 |
-
);
|
304 |
-
?>
|
305 |
-
</p>
|
306 |
-
</div>
|
307 |
|
308 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
309 |
|
310 |
-
/**
|
311 |
-
* Fires right above the table displaying the promoted books.
|
312 |
-
*
|
313 |
-
* @since 0.9.0
|
314 |
-
*/
|
315 |
-
do_action( 'cptui_main_page_before_books' ); ?>
|
316 |
<table border="0">
|
317 |
<tr>
|
318 |
-
|
319 |
</tr>
|
320 |
<tr>
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
<
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
<h3><?php _e( 'PayPal Donation', 'cpt-plugin' ); ?></h3>
|
339 |
-
<p><?php _e( 'Please donate to the development of Custom Post Type UI:', 'cpt-plugin' ); ?></p>
|
340 |
-
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
341 |
-
<input type="hidden" name="cmd" value="_s-xclick">
|
342 |
-
<input type="hidden" name="hosted_button_id" value="YJEDXPHE49Q3U">
|
343 |
-
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" name="submit" alt="<?php esc_attr_e( 'PayPal - The safer, easier way to pay online!', 'cpt-plugin' ); ?>">
|
344 |
-
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
345 |
-
</form>
|
346 |
-
</td>
|
347 |
</tr>
|
348 |
</table>
|
349 |
-
|
350 |
<?php
|
351 |
-
/**
|
352 |
-
* Fires right after the table displaying the promoted books.
|
353 |
-
*
|
354 |
-
* @since 0.9.0
|
355 |
-
*/
|
356 |
-
do_action( 'cptui_main_page_after_books' ); ?>
|
357 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
358 |
</div>
|
359 |
-
|
|
|
|
|
360 |
}
|
361 |
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
* @since 0.3.0
|
366 |
-
*
|
367 |
-
* @param string $original Original footer content.
|
368 |
-
*
|
369 |
-
* @return string $value HTML for footer.
|
370 |
-
*/
|
371 |
-
function cptui_footer( $original = '' ) {
|
372 |
-
|
373 |
-
$screen = get_current_screen();
|
374 |
-
|
375 |
-
if ( ! is_object( $screen ) || 'cptui_main_menu' != $screen->parent_base ) {
|
376 |
-
return $original;
|
377 |
-
}
|
378 |
|
379 |
-
|
380 |
-
__( '%s version %s by %s - %s %s · %s · %s · %s', 'cpt-plugin' ),
|
381 |
-
sprintf(
|
382 |
-
'<a target="_blank" href="http://wordpress.org/support/plugin/custom-post-type-ui">%s</a>',
|
383 |
-
__( 'Custom Post Type UI', 'cpt-plugin' )
|
384 |
-
),
|
385 |
-
CPT_VERSION,
|
386 |
-
'<a href="http://webdevstudios.com" target="_blank">WebDevStudios</a>',
|
387 |
-
sprintf(
|
388 |
-
'<a href="https://github.com/WebDevStudios/custom-post-type-ui/issues" target="_blank">%s</a>',
|
389 |
-
__( 'Please Report Bugs', 'cpt-plugin' )
|
390 |
-
),
|
391 |
-
__( 'Follow on Twitter:', 'cpt-plugin' ),
|
392 |
-
'<a href="http://twitter.com/tw2113" target="_blank">Michael</a>',
|
393 |
-
'<a href="http://twitter.com/williamsba" target="_blank">Brad</a>',
|
394 |
-
'<a href="http://twitter.com/webdevstudios" target="_blank">WebDevStudios</a>'
|
395 |
-
);
|
396 |
-
}
|
397 |
-
add_filter( 'admin_footer_text', 'cptui_footer' );
|
398 |
-
|
399 |
-
/**
|
400 |
-
* Return boolean status depending on passed in value.
|
401 |
-
*
|
402 |
-
* @since 0.5.0
|
403 |
-
*
|
404 |
-
* @param mixed $booText text to compare to typical boolean values.
|
405 |
-
*
|
406 |
-
* @return bool Which bool value the passed in value was.
|
407 |
-
*/
|
408 |
-
function get_disp_boolean( $booText ) {
|
409 |
-
$booText = (string) $booText;
|
410 |
-
if ( empty( $booText ) || $booText == '0' || $booText == 'false' ) {
|
411 |
-
return false;
|
412 |
-
}
|
413 |
|
414 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
415 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
416 |
|
417 |
-
|
418 |
-
|
419 |
-
*
|
420 |
-
* @since 0.1.0
|
421 |
-
*
|
422 |
-
* @param string $booText String boolean value.
|
423 |
-
*
|
424 |
-
* @return string standardized boolean text.
|
425 |
-
*/
|
426 |
-
function disp_boolean( $booText ) {
|
427 |
-
$booText = (string) $booText;
|
428 |
-
if ( empty( $booText ) || $booText == '0' || $booText == 'false' ) {
|
429 |
-
return 'false';
|
430 |
-
}
|
431 |
|
432 |
-
|
433 |
-
}
|
434 |
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
467 |
}
|
468 |
-
|
469 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
470 |
}
|
|
|
471 |
|
472 |
-
|
473 |
-
|
|
|
474 |
|
475 |
-
|
476 |
-
<h2 class="nav-tab-wrapper">
|
477 |
-
<?php echo $title;
|
478 |
|
479 |
-
|
480 |
-
|
481 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
482 |
<?php
|
|
|
|
|
483 |
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
492 |
}
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
498 |
}
|
499 |
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
|
|
504 |
*/
|
505 |
-
do_action( 'cptui_settings_tabs_after' );
|
506 |
?>
|
507 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
508 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
509 |
<?php
|
|
|
|
|
510 |
}
|
511 |
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
*/
|
519 |
-
function cptui_convert_settings() {
|
520 |
-
|
521 |
-
$retval = '';
|
522 |
-
|
523 |
-
if ( false === get_option( 'cptui_post_types' ) && ( $post_types = get_option( 'cpt_custom_post_types' ) ) ) {
|
524 |
-
|
525 |
-
$new_post_types = array();
|
526 |
-
foreach( $post_types as $type ) {
|
527 |
-
$new_post_types[ $type['name'] ] = $type; #This one assigns the # indexes # Named arrays are our friend.
|
528 |
-
$new_post_types[ $type['name'] ]['supports'] = ( !empty( $type[0] ) ) ? $type[0] : array(); # Especially
|
529 |
-
$new_post_types[ $type['name'] ]['taxonomies'] = ( !empty( $type[1] ) ) ? $type[1] : array(); # for multidimensional
|
530 |
-
$new_post_types[ $type['name'] ]['labels'] = ( !empty( $type[2] ) ) ? $type[2] : array(); # arrays
|
531 |
-
unset(
|
532 |
-
$new_post_types[ $type['name'] ][0],
|
533 |
-
$new_post_types[ $type['name'] ][1],
|
534 |
-
$new_post_types[ $type['name'] ][2]
|
535 |
-
); # Remove our previous indexed versions.
|
536 |
-
}
|
537 |
|
538 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
539 |
}
|
|
|
540 |
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
foreach( $taxonomies as $tax ) {
|
545 |
-
$new_taxonomies[ $tax['name'] ] = $tax; # Yep, still our friend.
|
546 |
-
$new_taxonomies[ $tax['name'] ]['labels'] = $tax[0]; # Taxonomies are the only thing with
|
547 |
-
$new_taxonomies[ $tax['name'] ]['post_types'] = $tax[1]; # "tax" in the name that I like.
|
548 |
-
unset(
|
549 |
-
$new_taxonomies[ $tax['name'] ][0],
|
550 |
-
$new_taxonomies[ $tax['name'] ][1]
|
551 |
-
);
|
552 |
-
}
|
553 |
-
|
554 |
-
$retval = update_option( 'cptui_taxonomies', $new_taxonomies );
|
555 |
}
|
556 |
|
557 |
-
return
|
558 |
-
}
|
559 |
-
add_action( 'admin_init', 'cptui_convert_settings' );
|
560 |
-
|
561 |
-
/**
|
562 |
-
* Edit links that appear on installed plugins list page, for our plugin.
|
563 |
-
*
|
564 |
-
* @since 0.9.0
|
565 |
-
*
|
566 |
-
* @param array $links Array of links to display below our plugin listing.
|
567 |
-
*
|
568 |
-
* @return array Amended array of links.
|
569 |
-
*/
|
570 |
-
function cptui_edit_plugin_list_links( $links ) {
|
571 |
-
# We shouldn't encourage editing our plugin directly.
|
572 |
-
unset( $links['edit'] );
|
573 |
-
|
574 |
-
# Add our custom links to the returned array value.
|
575 |
-
return array_merge( array(
|
576 |
-
'<a href="' . admin_url( 'admin.php?page=cptui_main_menu' ) . '">' . __( 'Settings', 'cpt-plugin' ) . '</a>', '<a href="' . admin_url( 'admin.php?page=cptui_support' ) . '">' . __( 'Help', 'cpt-plugin' ) . '</a>'
|
577 |
-
), $links );
|
578 |
}
|
579 |
-
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'cptui_edit_plugin_list_links' );
|
580 |
-
|
581 |
-
/**
|
582 |
-
* Return a notice based on conditions.
|
583 |
-
*
|
584 |
-
* @since 0.9.0
|
585 |
-
*
|
586 |
-
* @param string $action The type of action that occurred.
|
587 |
-
* @param string $object_type Whether it's from a post type or taxonomy.
|
588 |
-
* @param bool $success Whether the action succeeded or not.
|
589 |
-
* @param string $custom Custom message if necessary.
|
590 |
-
*
|
591 |
-
* @return bool|string false on no message, else HTML div with our notice message.
|
592 |
-
*/
|
593 |
-
function cptui_admin_notices( $action = '', $object_type = '', $success = true , $custom = '' ) {
|
594 |
-
|
595 |
-
$class = ( $success ) ? 'updated' : 'error';
|
596 |
-
|
597 |
-
$messagewrapstart = '<div id="message" class="' . $class . '"><p>';
|
598 |
-
$message = '';
|
599 |
-
|
600 |
-
$messagewrapend = '</p></div>';
|
601 |
-
|
602 |
-
if ( 'add' == $action ) {
|
603 |
-
if ( $success ) {
|
604 |
-
$message .= sprintf( __( '%s has been successfully added', 'cpt-plugin' ), $object_type );
|
605 |
-
} else {
|
606 |
-
$message .= sprintf( __( '%s has failed to be added', 'cpt-plugin' ), $object_type );
|
607 |
-
}
|
608 |
-
} elseif ( 'update' == $action ) {
|
609 |
-
if ( $success ) {
|
610 |
-
$message .= sprintf( __( '%s has been successfully updated', 'cpt-plugin' ), $object_type );
|
611 |
-
} else {
|
612 |
-
$message .= sprintf( __( '%s has failed to be updated', 'cpt-plugin' ), $object_type );
|
613 |
-
}
|
614 |
-
} elseif ( 'delete' == $action ) {
|
615 |
-
if ( $success ) {
|
616 |
-
$message .= sprintf( __( '%s has been successfully deleted', 'cpt-plugin' ), $object_type );
|
617 |
-
} else {
|
618 |
-
$message .= sprintf( __( '%s has failed to be deleted', 'cpt-plugin' ), $object_type );
|
619 |
-
}
|
620 |
-
} elseif ( 'import' == $action ) {
|
621 |
-
if ( $success ) {
|
622 |
-
$message .= sprintf( __( '%s has been successfully imported', 'cpt-plugin' ), $object_type );
|
623 |
-
} else {
|
624 |
-
$message .= sprintf( __( '%s has failed to be imported', 'cpt-plugin' ), $object_type );
|
625 |
-
}
|
626 |
-
} elseif ( 'error' == $action ) {
|
627 |
-
if ( !empty( $custom ) ) {
|
628 |
-
$message = $custom;
|
629 |
-
}
|
630 |
-
}
|
631 |
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
* Filters the custom admin notice for CPTUI.
|
636 |
-
*
|
637 |
-
* @since 0.9.0
|
638 |
-
*
|
639 |
-
* @param string $value Complete HTML output for notice.
|
640 |
-
* @param string $action Action whose message is being generated.
|
641 |
-
* @param string $message The message to be displayed.
|
642 |
-
* @param string $messagewrapstart Beginning wrap HTML.
|
643 |
-
* @param string $messagewrapend Ending wrap HTML.
|
644 |
-
*/
|
645 |
-
return apply_filters( 'cptui_admin_notice', $messagewrapstart . $message . $messagewrapend, $action, $message, $messagewrapstart, $messagewrapend );
|
646 |
}
|
647 |
|
648 |
-
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
649 |
}
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Custom Post Type UI
|
4 |
+
Plugin URI: http://webdevstudios.com/plugin/custom-post-type-ui/
|
5 |
Description: Admin panel for creating custom post types and custom taxonomies in WordPress
|
6 |
Author: WebDevStudios.com
|
7 |
+
Version: 0.9.5
|
8 |
Author URI: http://webdevstudios.com/
|
9 |
Text Domain: cpt-plugin
|
10 |
License: GPLv2
|
11 |
*/
|
12 |
|
13 |
+
// Define current version constant
|
14 |
+
define( 'CPT_VERSION', '0.9.5' );
|
|
|
|
|
15 |
|
16 |
+
// Define current WordPress version constant
|
17 |
define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
|
18 |
|
19 |
+
// Define plugin URL constant
|
20 |
+
$CPT_URL = cpt_check_return( 'add' );
|
21 |
+
|
22 |
+
//load translated strings
|
23 |
+
add_action( 'init', 'cpt_load_textdomain' );
|
24 |
+
|
25 |
+
// create custom plugin settings menu
|
26 |
+
add_action( 'admin_menu', 'cpt_plugin_menu' );
|
27 |
+
|
28 |
+
//call delete post function
|
29 |
+
add_action( 'admin_init', 'cpt_delete_post_type' );
|
30 |
+
|
31 |
+
//call register settings function
|
32 |
+
add_action( 'admin_init', 'cpt_register_settings' );
|
33 |
+
|
34 |
+
//process custom taxonomies if they exist
|
35 |
+
add_action( 'init', 'cpt_create_custom_taxonomies', 0 );
|
36 |
+
|
37 |
+
//process custom taxonomies if they exist
|
38 |
+
add_action( 'init', 'cpt_create_custom_post_types', 0 );
|
39 |
+
|
40 |
+
add_action( 'admin_head', 'cpt_help_style' );
|
41 |
+
|
42 |
+
//flush rewrite rules on deactivation
|
43 |
+
register_deactivation_hook( __FILE__, 'cpt_deactivation' );
|
44 |
+
|
45 |
+
function cpt_deactivation() {
|
46 |
+
// Clear the permalinks to remove our post type's rules
|
47 |
flush_rewrite_rules();
|
48 |
}
|
49 |
+
|
50 |
+
function cpt_load_textdomain() {
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
load_plugin_textdomain( 'cpt-plugin', false, basename( dirname( __FILE__ ) ) . '/languages' );
|
52 |
}
|
53 |
+
|
54 |
+
function cpt_plugin_menu() {
|
55 |
+
//create custom post type menu
|
56 |
+
add_menu_page( __( 'Custom Post Types', 'cpt-plugin' ), __( 'CPT UI', 'cpt-plugin' ), 'manage_options', 'cpt_main_menu', 'cpt_settings' );
|
57 |
+
|
58 |
+
//create submenu items
|
59 |
+
add_submenu_page( 'cpt_main_menu', __( 'Add New', 'cpt-plugin' ), __( 'Add New', 'cpt-plugin' ), 'manage_options', 'cpt_sub_add_new', 'cpt_add_new' );
|
60 |
+
add_submenu_page( 'cpt_main_menu', __( 'Manage Post Types', 'cpt-plugin' ), __( 'Manage Post Types', 'cpt-plugin' ), 'manage_options', 'cpt_sub_manage_cpt', 'cpt_manage_cpt' );
|
61 |
+
add_submenu_page( 'cpt_main_menu', __( 'Manage Taxonomies', 'cpt-plugin' ), __( 'Manage Taxonomies', 'cpt-plugin' ), 'manage_options', 'cpt_sub_manage_taxonomies', 'cpt_manage_taxonomies' );
|
62 |
}
|
63 |
+
|
64 |
+
//temp fix, should do: http://planetozh.com/blog/2008/04/how-to-load-javascript-with-your-wordpress-plugin/
|
65 |
+
//only load JS if on a CPT page
|
66 |
+
if ( strpos( $_SERVER['REQUEST_URI'], 'cpt' ) > 0 ) {
|
67 |
+
add_action( 'admin_head', 'cpt_wp_add_styles' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
}
|
|
|
69 |
|
70 |
+
// Add JS Scripts
|
71 |
+
function cpt_wp_add_styles() {
|
72 |
+
|
73 |
+
wp_enqueue_script( 'jquery' ); ?>
|
74 |
+
|
75 |
+
<script type="text/javascript" >
|
76 |
+
jQuery(document).ready(function($) {
|
77 |
+
$(".comment_button").click(function() {
|
78 |
+
var element = $(this), I = element.attr("id");
|
79 |
+
$("#slidepanel"+I).slideToggle(300);
|
80 |
+
$(this).toggleClass("active");
|
81 |
+
|
82 |
+
return false;
|
83 |
+
});
|
84 |
+
});
|
85 |
+
</script>
|
86 |
+
<?php
|
87 |
}
|
88 |
+
|
89 |
+
function cpt_create_custom_post_types() {
|
90 |
+
//register custom post types
|
91 |
+
$cpt_post_types = get_option('cpt_custom_post_types');
|
92 |
+
|
93 |
+
//check if option value is an Array before proceeding
|
94 |
+
if ( is_array( $cpt_post_types ) ) {
|
95 |
+
foreach ($cpt_post_types as $cpt_post_type) {
|
96 |
+
//set post type values
|
97 |
+
$cpt_label = ( !empty( $cpt_post_type["label"] ) ) ? esc_html( $cpt_post_type["label"] ) : esc_html( $cpt_post_type["name"] ) ;
|
98 |
+
$cpt_singular = ( !empty( $cpt_post_type["singular_label"] ) ) ? esc_html( $cpt_post_type["singular_label"] ) : esc_html( $cpt_label );
|
99 |
+
$cpt_rewrite_slug = ( !empty( $cpt_post_type["rewrite_slug"] ) ) ? esc_html( $cpt_post_type["rewrite_slug"] ) : esc_html( $cpt_post_type["name"] );
|
100 |
+
$cpt_rewrite_withfront = ( !empty( $cpt_post_type["rewrite_withfront"] ) ) ? true : get_disp_boolean( $cpt_post_type["rewrite_withfront"] ); //reversed because false is empty
|
101 |
+
$cpt_menu_position = ( !empty( $cpt_post_type["menu_position"] ) ) ? intval( $cpt_post_type["menu_position"] ) : null; //must be null
|
102 |
+
$cpt_menu_icon = ( !empty( $cpt_post_type["menu_icon"] ) ) ? esc_attr( $cpt_post_type["menu_icon"] ) : null; //must be null
|
103 |
+
$cpt_taxonomies = ( !empty( $cpt_post_type[1] ) ) ? $cpt_post_type[1] : array();
|
104 |
+
$cpt_supports = ( !empty( $cpt_post_type[0] ) ) ? $cpt_post_type[0] : array();
|
105 |
+
|
106 |
+
//Show UI must be true
|
107 |
+
if ( true == get_disp_boolean( $cpt_post_type["show_ui"] ) ) {
|
108 |
+
//If the string is empty, we will need boolean, else use the string.
|
109 |
+
if ( empty( $cpt_post_type['show_in_menu_string'] ) ) {
|
110 |
+
$cpt_show_in_menu = ( $cpt_post_type["show_in_menu"] == 1 ) ? true : false;
|
111 |
+
} else {
|
112 |
+
$cpt_show_in_menu = $cpt_post_type['show_in_menu_string'];
|
113 |
+
}
|
114 |
+
} else {
|
115 |
+
$cpt_show_in_menu = false;
|
116 |
+
}
|
117 |
+
|
118 |
+
//set custom label values
|
119 |
+
$cpt_labels['name'] = $cpt_label;
|
120 |
+
$cpt_labels['singular_name'] = $cpt_post_type["singular_label"];
|
121 |
+
|
122 |
+
if ( isset ( $cpt_post_type[2]["menu_name"] ) ) {
|
123 |
+
$cpt_labels['menu_name'] = ( !empty( $cpt_post_type[2]["menu_name"] ) ) ? $cpt_post_type[2]["menu_name"] : $cpt_label;
|
124 |
+
}
|
125 |
+
|
126 |
+
$cpt_has_archive = ( !empty( $cpt_post_type["has_archive"] ) ) ? get_disp_boolean( $cpt_post_type["has_archive"] ) : '';
|
127 |
+
$cpt_exclude_from_search = ( !empty( $cpt_post_type["exclude_from_search"] ) ) ? get_disp_boolean( $cpt_post_type["exclude_from_search"] ) : '';
|
128 |
+
$cpt_labels['add_new'] = ( !empty( $cpt_post_type[2]["add_new"] ) ) ? $cpt_post_type[2]["add_new"] : 'Add ' .$cpt_singular;
|
129 |
+
$cpt_labels['add_new_item'] = ( !empty( $cpt_post_type[2]["add_new_item"] ) ) ? $cpt_post_type[2]["add_new_item"] : 'Add New ' .$cpt_singular;
|
130 |
+
$cpt_labels['edit'] = ( !empty( $cpt_post_type[2]["edit"] ) ) ? $cpt_post_type[2]["edit"] : 'Edit';
|
131 |
+
$cpt_labels['edit_item'] = ( !empty( $cpt_post_type[2]["edit_item"] ) ) ? $cpt_post_type[2]["edit_item"] : 'Edit ' .$cpt_singular;
|
132 |
+
$cpt_labels['new_item'] = ( !empty( $cpt_post_type[2]["new_item"] ) ) ? $cpt_post_type[2]["new_item"] : 'New ' .$cpt_singular;
|
133 |
+
$cpt_labels['view'] = ( !empty( $cpt_post_type[2]["view"] ) ) ? $cpt_post_type[2]["view"] : 'View ' .$cpt_singular;
|
134 |
+
$cpt_labels['view_item'] = ( !empty( $cpt_post_type[2]["view_item"] ) ) ? $cpt_post_type[2]["view_item"] : 'View ' .$cpt_singular;
|
135 |
+
$cpt_labels['search_items'] = ( !empty( $cpt_post_type[2]["search_items"] ) ) ? $cpt_post_type[2]["search_items"] : 'Search ' .$cpt_label;
|
136 |
+
$cpt_labels['not_found'] = ( !empty( $cpt_post_type[2]["not_found"] ) ) ? $cpt_post_type[2]["not_found"] : 'No ' .$cpt_label. ' Found';
|
137 |
+
$cpt_labels['not_found_in_trash'] = ( !empty( $cpt_post_type[2]["not_found_in_trash"] ) ) ? $cpt_post_type[2]["not_found_in_trash"] : 'No ' .$cpt_label. ' Found in Trash';
|
138 |
+
$cpt_labels['parent'] = ( $cpt_post_type[2]["parent"] ) ? $cpt_post_type[2]["parent"] : 'Parent ' .$cpt_singular;
|
139 |
+
|
140 |
+
register_post_type( $cpt_post_type["name"], array( 'label' => __($cpt_label),
|
141 |
+
'public' => get_disp_boolean($cpt_post_type["public"]),
|
142 |
+
'singular_label' => $cpt_post_type["singular_label"],
|
143 |
+
'show_ui' => get_disp_boolean($cpt_post_type["show_ui"]),
|
144 |
+
'has_archive' => $cpt_has_archive,
|
145 |
+
'show_in_menu' => $cpt_show_in_menu,
|
146 |
+
'capability_type' => $cpt_post_type["capability_type"],
|
147 |
+
'map_meta_cap' => true,
|
148 |
+
'hierarchical' => get_disp_boolean($cpt_post_type["hierarchical"]),
|
149 |
+
'exclude_from_search' => $cpt_exclude_from_search,
|
150 |
+
'rewrite' => array( 'slug' => $cpt_rewrite_slug, 'with_front' => $cpt_rewrite_withfront ),
|
151 |
+
'query_var' => get_disp_boolean($cpt_post_type["query_var"]),
|
152 |
+
'description' => esc_html($cpt_post_type["description"]),
|
153 |
+
'menu_position' => $cpt_menu_position,
|
154 |
+
'menu_icon' => $cpt_menu_icon,
|
155 |
+
'supports' => $cpt_supports,
|
156 |
+
'taxonomies' => $cpt_taxonomies,
|
157 |
+
'labels' => $cpt_labels
|
158 |
+
) );
|
159 |
}
|
160 |
}
|
|
|
161 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
|
|
|
|
|
|
|
163 |
|
164 |
+
function cpt_create_custom_taxonomies() {
|
165 |
+
//register custom taxonomies
|
166 |
+
$cpt_tax_types = get_option('cpt_custom_tax_types');
|
167 |
+
|
168 |
+
//check if option value is an array before proceeding
|
169 |
+
if ( is_array( $cpt_tax_types ) ) {
|
170 |
+
foreach ($cpt_tax_types as $cpt_tax_type) {
|
171 |
+
|
172 |
+
//set custom taxonomy values
|
173 |
+
$cpt_label = ( !empty( $cpt_tax_type["label"] ) ) ? esc_html( $cpt_tax_type["label"] ) : esc_html( $cpt_tax_type["name"] );
|
174 |
+
$cpt_singular_label = ( !empty( $cpt_tax_type["singular_label"] ) ) ? esc_html( $cpt_tax_type["singular_label"] ) : esc_html( $cpt_tax_type["name"] );
|
175 |
+
$cpt_rewrite_slug = ( !empty( $cpt_tax_type["rewrite_slug"] ) ) ? esc_html( $cpt_tax_type["rewrite_slug"] ) : esc_html( $cpt_tax_type["name"] );
|
176 |
+
$cpt_tax_show_admin_column = ( !empty( $cpt_tax_type["show_admin_column"] ) ) ? esc_html( $cpt_tax_type["show_admin_column"] ) : false;
|
177 |
+
$cpt_post_types = ( !empty( $cpt_tax_type[1] ) ) ? $cpt_tax_type[1] : $cpt_tax_type["cpt_name"];
|
178 |
+
|
179 |
+
//set custom label values
|
180 |
+
$cpt_labels['name'] = $cpt_label;
|
181 |
+
$cpt_labels['singular_name'] = $cpt_tax_type["singular_label"];
|
182 |
+
$cpt_labels['search_items'] = ( $cpt_tax_type[0]["search_items"] ) ? $cpt_tax_type[0]["search_items"] : 'Search ' .$cpt_label;
|
183 |
+
$cpt_labels['popular_items'] = ( $cpt_tax_type[0]["popular_items"] ) ? $cpt_tax_type[0]["popular_items"] : 'Popular ' .$cpt_label;
|
184 |
+
$cpt_labels['all_items'] = ( $cpt_tax_type[0]["all_items"] ) ? $cpt_tax_type[0]["all_items"] : 'All ' .$cpt_label;
|
185 |
+
$cpt_labels['parent_item'] = ( $cpt_tax_type[0]["parent_item"] ) ? $cpt_tax_type[0]["parent_item"] : 'Parent ' .$cpt_singular_label;
|
186 |
+
$cpt_labels['parent_item_colon'] = ( $cpt_tax_type[0]["parent_item_colon"] ) ? $cpt_tax_type[0]["parent_item_colon"] : 'Parent ' .$cpt_singular_label. ':';
|
187 |
+
$cpt_labels['edit_item'] = ( $cpt_tax_type[0]["edit_item"] ) ? $cpt_tax_type[0]["edit_item"] : 'Edit ' .$cpt_singular_label;
|
188 |
+
$cpt_labels['update_item'] = ( $cpt_tax_type[0]["update_item"] ) ? $cpt_tax_type[0]["update_item"] : 'Update ' .$cpt_singular_label;
|
189 |
+
$cpt_labels['add_new_item'] = ( $cpt_tax_type[0]["add_new_item"] ) ? $cpt_tax_type[0]["add_new_item"] : 'Add New ' .$cpt_singular_label;
|
190 |
+
$cpt_labels['new_item_name'] = ( $cpt_tax_type[0]["new_item_name"] ) ? $cpt_tax_type[0]["new_item_name"] : 'New ' .$cpt_singular_label. ' Name';
|
191 |
+
$cpt_labels['separate_items_with_commas'] = ( $cpt_tax_type[0]["separate_items_with_commas"] ) ? $cpt_tax_type[0]["separate_items_with_commas"] : 'Separate ' .$cpt_label. ' with commas';
|
192 |
+
$cpt_labels['add_or_remove_items'] = ( $cpt_tax_type[0]["add_or_remove_items"] ) ? $cpt_tax_type[0]["add_or_remove_items"] : 'Add or remove ' .$cpt_label;
|
193 |
+
$cpt_labels['choose_from_most_used'] = ( $cpt_tax_type[0]["choose_from_most_used"] ) ? $cpt_tax_type[0]["choose_from_most_used"] : 'Choose from the most used ' .$cpt_label;
|
194 |
+
|
195 |
+
//register our custom taxonomies
|
196 |
+
register_taxonomy( $cpt_tax_type["name"],
|
197 |
+
$cpt_post_types,
|
198 |
+
array( 'hierarchical' => get_disp_boolean($cpt_tax_type["hierarchical"]),
|
199 |
+
'label' => $cpt_label,
|
200 |
+
'show_ui' => get_disp_boolean($cpt_tax_type["show_ui"]),
|
201 |
+
'query_var' => get_disp_boolean($cpt_tax_type["query_var"]),
|
202 |
+
'rewrite' => array('slug' => $cpt_rewrite_slug),
|
203 |
+
'singular_label' => $cpt_singular_label,
|
204 |
+
'labels' => $cpt_labels,
|
205 |
+
'show_admin_column' => $cpt_tax_show_admin_column
|
206 |
+
) );
|
207 |
+
|
208 |
+
}
|
209 |
}
|
210 |
+
}
|
211 |
+
|
212 |
+
//delete custom post type or custom taxonomy
|
213 |
+
function cpt_delete_post_type() {
|
214 |
+
global $CPT_URL;
|
215 |
|
216 |
+
//check if we are deleting a custom post type
|
217 |
+
if( isset( $_GET['deltype'] ) ) {
|
|
|
|
|
218 |
|
219 |
+
//nonce security check
|
220 |
+
check_admin_referer( 'cpt_delete_post_type' );
|
221 |
+
|
222 |
+
$delType = intval( $_GET['deltype'] );
|
223 |
+
$cpt_post_types = get_option( 'cpt_custom_post_types' );
|
224 |
+
|
225 |
+
unset( $cpt_post_types[$delType] );
|
226 |
+
|
227 |
+
$cpt_post_types = array_values( $cpt_post_types );
|
228 |
+
|
229 |
+
update_option( 'cpt_custom_post_types', $cpt_post_types );
|
230 |
+
|
231 |
+
if ( isset( $_GET['return'] ) ) {
|
232 |
+
$RETURN_URL = cpt_check_return( esc_attr( $_GET['return'] ) );
|
233 |
+
} else {
|
234 |
+
$RETURN_URL = $CPT_URL;
|
235 |
}
|
236 |
+
|
237 |
+
wp_redirect( $RETURN_URL .'&cpt_msg=del' );
|
238 |
}
|
239 |
|
240 |
+
//check if we are deleting a custom taxonomy
|
241 |
+
if( isset( $_GET['deltax'] ) ) {
|
242 |
+
check_admin_referer( 'cpt_delete_tax' );
|
243 |
+
|
244 |
+
$delType = intval( $_GET['deltax'] );
|
245 |
+
$cpt_taxonomies = get_option( 'cpt_custom_tax_types' );
|
246 |
+
|
247 |
+
unset( $cpt_taxonomies[$delType] );
|
248 |
+
|
249 |
+
$cpt_taxonomies = array_values( $cpt_taxonomies );
|
250 |
+
|
251 |
+
update_option( 'cpt_custom_tax_types', $cpt_taxonomies );
|
252 |
+
|
253 |
+
if ( isset( $_GET['return'] ) ) {
|
254 |
+
$RETURN_URL = cpt_check_return( esc_attr( $_GET['return'] ) );
|
255 |
+
} else {
|
256 |
+
$RETURN_URL = $CPT_URL;
|
257 |
+
}
|
258 |
+
|
259 |
+
wp_redirect( $RETURN_URL .'&cpt_msg=del' );
|
260 |
}
|
261 |
|
262 |
+
}
|
263 |
+
|
264 |
+
function cpt_register_settings() {
|
265 |
+
global $cpt_error, $CPT_URL;
|
266 |
+
|
267 |
+
if ( isset( $_POST['cpt_edit'] ) ) {
|
268 |
+
//edit a custom post type
|
269 |
+
check_admin_referer( 'cpt_add_custom_post_type' );
|
270 |
+
|
271 |
+
//custom post type to edit
|
272 |
+
$cpt_edit = intval( $_POST['cpt_edit'] );
|
273 |
+
|
274 |
+
//edit the custom post type
|
275 |
+
$cpt_form_fields = $_POST['cpt_custom_post_type'];
|
276 |
+
|
277 |
+
//add support checkbox values to array
|
278 |
+
$cpt_supports = ( isset( $_POST['cpt_supports'] ) ) ? $_POST['cpt_supports'] : null;
|
279 |
+
array_push($cpt_form_fields, $cpt_supports);
|
280 |
+
|
281 |
+
//add taxonomies support checkbox values to array
|
282 |
+
$cpt_addon_taxes = ( isset( $_POST['cpt_addon_taxes'] ) ) ? $_POST['cpt_addon_taxes'] : null;
|
283 |
+
array_push( $cpt_form_fields, $cpt_addon_taxes );
|
284 |
+
|
285 |
+
//add label values to array
|
286 |
+
array_push( $cpt_form_fields, $_POST['cpt_labels'] );
|
287 |
+
|
288 |
+
//load custom posts saved in WP
|
289 |
+
$cpt_options = get_option( 'cpt_custom_post_types' );
|
290 |
+
|
291 |
+
if ( is_array( $cpt_options ) ) {
|
292 |
+
|
293 |
+
unset( $cpt_options[$cpt_edit] );
|
294 |
+
|
295 |
+
//insert new custom post type into the array
|
296 |
+
array_push( $cpt_options, $cpt_form_fields );
|
297 |
+
|
298 |
+
$cpt_options = array_values( $cpt_options );
|
299 |
+
$cpt_options = stripslashes_deep( $cpt_options );
|
300 |
+
|
301 |
+
//save custom post types
|
302 |
+
update_option( 'cpt_custom_post_types', $cpt_options );
|
303 |
+
|
304 |
+
if ( isset( $_GET['return'] ) ) {
|
305 |
+
$RETURN_URL = cpt_check_return( esc_attr( $_GET['return'] ) );
|
306 |
+
} else {
|
307 |
+
$RETURN_URL = $CPT_URL;
|
308 |
+
}
|
309 |
+
|
310 |
+
wp_redirect( $RETURN_URL );
|
311 |
+
|
312 |
}
|
313 |
|
314 |
+
} elseif ( isset( $_POST['cpt_submit'] ) ) {
|
315 |
+
//create a new custom post type
|
316 |
+
|
317 |
+
//nonce security check
|
318 |
+
check_admin_referer( 'cpt_add_custom_post_type' );
|
319 |
+
|
320 |
+
//retrieve new custom post type values
|
321 |
+
$cpt_form_fields = $_POST['cpt_custom_post_type'];
|
322 |
+
|
323 |
+
if ( empty( $cpt_form_fields["name"] ) ) {
|
324 |
+
if ( isset( $_GET['return'] ) ) {
|
325 |
+
$RETURN_URL = cpt_check_return( esc_attr( $_GET['return'] ) );
|
326 |
+
} else {
|
327 |
+
$RETURN_URL = $CPT_URL;
|
328 |
+
}
|
329 |
+
|
330 |
+
wp_redirect( $RETURN_URL .'&cpt_error=1' );
|
331 |
+
exit();
|
332 |
+
}
|
333 |
+
if ( false !== strpos( $cpt_form_fields["name"], '\'' ) ||
|
334 |
+
false !== strpos( $cpt_form_fields["name"], '\"' ) ||
|
335 |
+
false !== strpos( $cpt_form_fields["rewrite_slug"], '\'' ) ||
|
336 |
+
false !== strpos( $cpt_form_fields["rewrite_slug"], '\"' ) ) {
|
337 |
+
if ( isset( $_GET['return'] ) ) {
|
338 |
+
$RETURN_URL = cpt_check_return( esc_attr( $_GET['return'] ) );
|
339 |
+
} else {
|
340 |
+
$RETURN_URL = $CPT_URL;
|
341 |
+
}
|
342 |
+
|
343 |
+
wp_redirect( $RETURN_URL .'&cpt_error=4' );
|
344 |
+
exit();
|
345 |
}
|
|
|
346 |
|
347 |
+
//add support checkbox values to array
|
348 |
+
$cpt_supports = ( isset( $_POST['cpt_supports'] ) ) ? $_POST['cpt_supports'] : null;
|
349 |
+
array_push( $cpt_form_fields, $cpt_supports );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
350 |
|
351 |
+
//add taxonomies support checkbox values to array
|
352 |
+
$cpt_addon_taxes = ( isset( $_POST['cpt_addon_taxes'] ) ) ? $_POST['cpt_addon_taxes'] : null;
|
353 |
+
array_push( $cpt_form_fields, $cpt_addon_taxes );
|
354 |
|
355 |
+
//add label values to array
|
356 |
+
array_push( $cpt_form_fields, $_POST['cpt_labels'] );
|
357 |
+
|
358 |
+
//load custom posts saved in WP
|
359 |
+
$cpt_options = get_option( 'cpt_custom_post_types' );
|
360 |
+
|
361 |
+
//check if option exists, if not create an array for it
|
362 |
+
if ( !is_array( $cpt_options ) ) {
|
363 |
+
$cpt_options = array();
|
|
|
|
|
364 |
}
|
365 |
+
|
366 |
+
//insert new custom post type into the array
|
367 |
+
array_push( $cpt_options, $cpt_form_fields );
|
368 |
+
$cpt_options = stripslashes_deep( $cpt_options );
|
369 |
+
|
370 |
+
//save new custom post type array in the CPT option
|
371 |
+
update_option( 'cpt_custom_post_types', $cpt_options );
|
372 |
+
|
373 |
+
if ( isset( $_GET['return'] ) ) {
|
374 |
+
$RETURN_URL = cpt_check_return( esc_attr( $_GET['return'] ) );
|
375 |
+
} else {
|
376 |
+
$RETURN_URL = $CPT_URL;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
377 |
}
|
378 |
+
|
379 |
+
wp_redirect( $RETURN_URL .'&cpt_msg=1' );
|
380 |
}
|
381 |
|
382 |
+
if ( isset( $_POST['cpt_edit_tax'] ) ) {
|
383 |
+
//edit a custom taxonomy
|
384 |
+
|
385 |
+
//nonce security check
|
386 |
+
check_admin_referer( 'cpt_add_custom_taxonomy' );
|
387 |
+
|
388 |
+
//custom taxonomy to edit
|
389 |
+
$cpt_edit = intval( $_POST['cpt_edit_tax'] );
|
390 |
+
|
391 |
+
//edit the custom taxonomy
|
392 |
+
$cpt_form_fields = $_POST['cpt_custom_tax'];
|
393 |
+
|
394 |
+
//add label values to array
|
395 |
+
array_push( $cpt_form_fields, $_POST['cpt_tax_labels'] );
|
396 |
+
|
397 |
+
//add attached post type values to array
|
398 |
+
array_push( $cpt_form_fields, $_POST['cpt_post_types'] );
|
399 |
+
|
400 |
+
//load custom posts saved in WP
|
401 |
+
$cpt_options = get_option( 'cpt_custom_tax_types' );
|
402 |
+
|
403 |
+
if ( is_array( $cpt_options ) ) {
|
404 |
+
|
405 |
+
unset( $cpt_options[$cpt_edit] );
|
406 |
+
|
407 |
+
//insert new custom post type into the array
|
408 |
+
array_push( $cpt_options, $cpt_form_fields );
|
409 |
+
|
410 |
+
$cpt_options = array_values( $cpt_options );
|
411 |
+
|
412 |
+
//save custom post types
|
413 |
+
update_option( 'cpt_custom_tax_types', $cpt_options );
|
414 |
+
|
415 |
+
if ( isset( $_GET['return'] ) ) {
|
416 |
+
$RETURN_URL = cpt_check_return( esc_attr( $_GET['return'] ) );
|
417 |
+
} else {
|
418 |
+
$RETURN_URL = $CPT_URL;
|
419 |
+
}
|
420 |
+
|
421 |
+
wp_redirect( $RETURN_URL );
|
422 |
+
|
423 |
}
|
424 |
|
425 |
+
} elseif ( isset( $_POST['cpt_add_tax'] ) ) {
|
426 |
+
//create new custom taxonomy
|
427 |
+
|
428 |
+
//nonce security check
|
429 |
+
check_admin_referer( 'cpt_add_custom_taxonomy' );
|
430 |
+
|
431 |
+
//retrieve new custom taxonomy values
|
432 |
+
$cpt_form_fields = $_POST['cpt_custom_tax'];
|
433 |
+
|
434 |
+
//verify required fields are filled out
|
435 |
+
if ( empty( $cpt_form_fields["name"] ) ) {
|
436 |
+
if ( isset( $_GET['return'] ) ) {
|
437 |
+
$RETURN_URL = cpt_check_return( esc_attr( $_GET['return'] ) );
|
438 |
+
} else {
|
439 |
+
$RETURN_URL = $CPT_URL;
|
440 |
+
}
|
441 |
+
|
442 |
+
wp_redirect( $RETURN_URL .'&cpt_error=2' );
|
443 |
+
exit();
|
444 |
+
} elseif ( empty( $_POST['cpt_post_types'] ) ) {
|
445 |
+
if ( isset( $_GET['return'] ) ) {
|
446 |
+
$RETURN_URL = cpt_check_return( esc_attr( $_GET['return'] ) );
|
447 |
+
} else {
|
448 |
+
$RETURN_URL = $CPT_URL;
|
449 |
+
}
|
450 |
+
|
451 |
+
wp_redirect( $RETURN_URL .'&cpt_error=3' );
|
452 |
+
exit();
|
453 |
}
|
454 |
|
455 |
+
if ( false !== strpos( $cpt_form_fields["name"], '\'' ) ||
|
456 |
+
false !== strpos( $cpt_form_fields["name"], '\"' ) ||
|
457 |
+
false !== strpos( $cpt_form_fields["rewrite_slug"], '\'' ) ||
|
458 |
+
false !== strpos( $cpt_form_fields["rewrite_slug"], '\"' ) ) {
|
459 |
+
if ( isset( $_GET['return'] ) ) {
|
460 |
+
$RETURN_URL = cpt_check_return( esc_attr( $_GET['return'] ) );
|
461 |
+
} else {
|
462 |
+
$RETURN_URL = $CPT_URL;
|
463 |
+
}
|
464 |
+
|
465 |
+
wp_redirect( $RETURN_URL .'&cpt_error=5' );
|
466 |
+
exit();
|
467 |
}
|
|
|
468 |
|
469 |
+
//add label values to array
|
470 |
+
array_push( $cpt_form_fields, $_POST['cpt_tax_labels'] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
471 |
|
472 |
+
//add attached post type values to array
|
473 |
+
array_push( $cpt_form_fields, $_POST['cpt_post_types'] );
|
474 |
|
475 |
+
//load custom taxonomies saved in WP
|
476 |
+
$cpt_options = get_option( 'cpt_custom_tax_types' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
477 |
|
478 |
+
//check if option exists, if not create an array for it
|
479 |
+
if ( !is_array( $cpt_options ) ) {
|
480 |
+
$cpt_options = array();
|
481 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
482 |
|
483 |
+
//insert new custom taxonomy into the array
|
484 |
+
array_push( $cpt_options, $cpt_form_fields );
|
485 |
+
|
486 |
+
//save new custom taxonomy array in the CPT option
|
487 |
+
update_option( 'cpt_custom_tax_types', $cpt_options );
|
488 |
+
|
489 |
+
if ( isset( $_GET['return'] ) ) {
|
490 |
+
$RETURN_URL = cpt_check_return( esc_attr( $_GET['return'] ) );
|
491 |
+
} else {
|
492 |
+
$RETURN_URL = $CPT_URL;
|
493 |
+
}
|
494 |
+
|
495 |
+
wp_redirect( $RETURN_URL .'&cpt_msg=2' );
|
496 |
+
|
497 |
+
}
|
498 |
+
}
|
499 |
+
|
500 |
+
//main welcome/settings page
|
501 |
+
function cpt_settings() {
|
502 |
+
global $CPT_URL, $wp_post_types;
|
503 |
+
|
504 |
+
//flush rewrite rules
|
505 |
+
flush_rewrite_rules();
|
506 |
+
?>
|
507 |
+
<div class="wrap">
|
508 |
+
<?php screen_icon( 'plugins' ); ?>
|
509 |
+
<h2><?php _e( 'Custom Post Type UI', 'cpt-plugin' ); ?> <?php _e( 'version', 'cpt-plugin' ); ?>: <?php echo CPT_VERSION; ?></h2>
|
510 |
+
|
511 |
+
<h2><?php _e( 'Frequently Asked Questions', 'cpt-plugin' ); ?></h2>
|
512 |
+
<p><?php _e( 'Please note that this plugin will NOT handle display of registered post types or taxonomies in your current theme. It will simply register them for you.', 'cpt-plugin' ); ?>
|
513 |
+
<h3><?php _e( 'Q: <strong>How can I display content from a custom post type on my website?</strong>', 'cpt-plugin' ); ?></h3>
|
514 |
+
<p>
|
515 |
+
<?php _e( 'A: Justin Tadlock has written some great posts on the topic:', 'cpt-plugin' ); ?><br />
|
516 |
+
<a href="http://justintadlock.com/archives/2010/02/02/showing-custom-post-types-on-your-home-blog-page" target="_blank"><?php _e( 'Showing Custom Post Types on your Home Page', 'cpt-plugin' ); ?></a><br />
|
517 |
+
<a href="http://justintadlock.com/archives/2010/04/29/custom-post-types-in-wordpress" target="_blank"><?php _e( 'Custom Post Types in WordPress', 'cpt-plugin' ); ?></a>
|
518 |
+
</p>
|
519 |
+
<h3><?php _e( 'Q: <strong>How can I add custom meta boxes to my custom post types?</strong>', 'cpt-plugin' ); ?></h3>
|
520 |
+
<p><?php _e( 'A: The More Fields plugin does a great job at creating custom meta boxes and fully supports custom post types: ', 'cpt-plugin' ); ?><a href="http://wordpress.org/extend/plugins/more-fields/" target="_blank">http://wordpress.org/extend/plugins/more-fields/</a>. The <a href="https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress" target="_blank">Custom Metaboxes and Fields for WordPress</a> class is a great alternative to a plugin for more advanced users.</p>
|
521 |
+
<h3><?php _e( 'Q: <strong>I changed my custom post type name and now I can\'t get to my posts</strong>', 'cpt-plugin' ); ?></h3>
|
522 |
+
<p><?php _e( 'A: You can either change the custom post type name back to the original name or try the Post Type Switcher plugin: ', 'cpt-plugin' ); ?><a href="http://wordpress.org/extend/plugins/post-type-switcher/" target="_blank">http://wordpress.org/extend/plugins/post-type-switcher/</a></p>
|
523 |
+
<div class="cp-rss-widget">
|
524 |
|
|
|
|
|
|
|
|
|
|
|
|
|
525 |
<table border="0">
|
526 |
<tr>
|
527 |
+
<td colspan="3"><h2><?php _e( 'Help Support This Plugin!', 'cpt-plugin' ); ?></h2></td>
|
528 |
</tr>
|
529 |
<tr>
|
530 |
+
<td width="33%"><h3><?php _e( 'PayPal Donation', 'cpt-plugin' ); ?></h3></td>
|
531 |
+
<td width="33%"><h3><?php _e( 'Professional WordPress<br />Second Edition', 'cpt-plugin' ); ?></h3></td>
|
532 |
+
<td width="33%"><h3><?php _e( 'Professional WordPress<br />Plugin Development', 'cpt-plugin' ); ?></h3></td>
|
533 |
+
</tr>
|
534 |
+
<tr>
|
535 |
+
<td valign="top" width="33%">
|
536 |
+
<p><?php _e( 'Please donate to the development<br />of Custom Post Type UI:', 'cpt-plugin'); ?>
|
537 |
+
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
538 |
+
<input type="hidden" name="cmd" value="_s-xclick">
|
539 |
+
<input type="hidden" name="hosted_button_id" value="YJEDXPHE49Q3U">
|
540 |
+
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
|
541 |
+
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
542 |
+
</form>
|
543 |
+
</p>
|
544 |
+
</td>
|
545 |
+
<td valign="top" width="33%"><a href="http://bit.ly/prowp2" target="_blank"><img src="<?php echo plugins_url( '/images/professional-wordpress-secondedition.jpg', __FILE__ ); ?>" width="200"></a><br /><?php _e( 'The leading book on WordPress design and development!<br /><strong>Brand new second edition!', 'cpt-plugin'); ?></strong></td>
|
546 |
+
<td valign="top" width="33%"><a href="http://amzn.to/plugindevbook" target="_blank"><img src="<?php echo plugins_url( '/images/professional-wordpress-plugin-development.png', __FILE__ ); ?>" width="200"></a><br /><?php _e( 'Highest rated WordPress development book on Amazon!', 'cpt-plugin' ); ?></td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
547 |
</tr>
|
548 |
</table>
|
549 |
+
<h2><?php _e( 'WebDevStudios.com Recent News', 'cpt-plugin' ); ?></h2>
|
550 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
551 |
|
552 |
+
wp_widget_rss_output( array(
|
553 |
+
'url' => esc_url( 'http://webdevstudios.com/feed/' ),
|
554 |
+
'title' => __( 'WebDevStudios.com News', 'cpt-plugin' ),
|
555 |
+
'items' => 3,
|
556 |
+
'show_summary' => 1,
|
557 |
+
'show_author' => 0,
|
558 |
+
'show_date' => 1
|
559 |
+
) );
|
560 |
+
?>
|
561 |
+
</div>
|
562 |
</div>
|
563 |
+
<?php
|
564 |
+
//load footer
|
565 |
+
cpt_footer();
|
566 |
}
|
567 |
|
568 |
+
//manage custom post types page
|
569 |
+
function cpt_manage_cpt() {
|
570 |
+
global $CPT_URL;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
571 |
|
572 |
+
$MANAGE_URL = cpt_check_return( 'add' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
573 |
|
574 |
+
?>
|
575 |
+
<div class="wrap">
|
576 |
+
<?php
|
577 |
+
//check for success/error messages
|
578 |
+
if ( isset($_GET['cpt_msg'] ) && $_GET['cpt_msg'] == 'del' ) { ?>
|
579 |
+
<div id="message" class="updated">
|
580 |
+
<?php _e('Custom post type deleted successfully', 'cpt-plugin'); ?>
|
581 |
+
</div>
|
582 |
+
<?php
|
583 |
}
|
584 |
+
?>
|
585 |
+
<?php screen_icon( 'plugins' ); ?>
|
586 |
+
<h2><?php _e('Manage Custom Post Types', 'cpt-plugin') ?></h2>
|
587 |
+
<p><?php _e('Deleting custom post types will <strong>NOT</strong> delete any content into the database or added to those post types. You can easily recreate your post types and the content will still exist.', 'cpt-plugin') ?></p>
|
588 |
+
<?php
|
589 |
+
$cpt_post_types = get_option( 'cpt_custom_post_types', array() );
|
590 |
+
|
591 |
+
if (is_array($cpt_post_types)) {
|
592 |
+
?>
|
593 |
+
<table width="100%" class="widefat">
|
594 |
+
<thead>
|
595 |
+
<tr>
|
596 |
+
<th><?php _e('Action', 'cpt-plugin');?></th>
|
597 |
+
<th><?php _e('Name', 'cpt-plugin');?></th>
|
598 |
+
<th><?php _e('Label', 'cpt-plugin');?></th>
|
599 |
+
<th><?php _e('Public', 'cpt-plugin');?></th>
|
600 |
+
<th><?php _e('Show UI', 'cpt-plugin');?></th>
|
601 |
+
<th><?php _e('Hierarchical', 'cpt-plugin');?></th>
|
602 |
+
<th><?php _e('Rewrite', 'cpt-plugin');?></th>
|
603 |
+
<th><?php _e('Rewrite Slug', 'cpt-plugin');?></th>
|
604 |
+
<th><?php _e('Total Published', 'cpt-plugin');?></th>
|
605 |
+
<th><?php _e('Total Drafts', 'cpt-plugin');?></th>
|
606 |
+
<th><?php _e('Supports', 'cpt-plugin');?></th>
|
607 |
+
</tr>
|
608 |
+
</thead>
|
609 |
+
<tfoot>
|
610 |
+
<tr>
|
611 |
+
<th><?php _e('Action', 'cpt-plugin');?></th>
|
612 |
+
<th><?php _e('Name', 'cpt-plugin');?></th>
|
613 |
+
<th><?php _e('Label', 'cpt-plugin');?></th>
|
614 |
+
<th><?php _e('Public', 'cpt-plugin');?></th>
|
615 |
+
<th><?php _e('Show UI', 'cpt-plugin');?></th>
|
616 |
+
<th><?php _e('Hierarchical', 'cpt-plugin');?></th>
|
617 |
+
<th><?php _e('Rewrite', 'cpt-plugin');?></th>
|
618 |
+
<th><?php _e('Rewrite Slug', 'cpt-plugin');?></th>
|
619 |
+
<th><?php _e('Total Published', 'cpt-plugin');?></th>
|
620 |
+
<th><?php _e('Total Drafts', 'cpt-plugin');?></th>
|
621 |
+
<th><?php _e('Supports', 'cpt-plugin');?></th>
|
622 |
+
</tr>
|
623 |
+
</tfoot>
|
624 |
+
<?php
|
625 |
+
$thecounter=0;
|
626 |
+
$cpt_names = array();
|
627 |
+
//Create urls for management
|
628 |
+
foreach ( $cpt_post_types as $cpt_post_type ) {
|
629 |
+
$del_url = cpt_check_return( 'cpt' ) .'&deltype=' .$thecounter .'&return=cpt';
|
630 |
+
$del_url = ( function_exists('wp_nonce_url') ) ? wp_nonce_url($del_url, 'cpt_delete_post_type') : $del_url;
|
631 |
|
632 |
+
$edit_url = $MANAGE_URL .'&edittype=' .$thecounter .'&return=cpt';
|
633 |
+
$edit_url = ( function_exists('wp_nonce_url') ) ? wp_nonce_url($edit_url, 'cpt_edit_post_type') : $edit_url;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
634 |
|
635 |
+
$cpt_counts = wp_count_posts($cpt_post_type["name"]);
|
|
|
636 |
|
637 |
+
$rewrite_slug = ( $cpt_post_type["rewrite_slug"] ) ? $cpt_post_type["rewrite_slug"] : $cpt_post_type["name"];
|
638 |
+
?>
|
639 |
+
<tr>
|
640 |
+
<td valign="top"><a href="<?php echo $del_url; ?>"><?php _e( 'Delete', 'cpt-plugin' ); ?></a> / <a href="<?php echo $edit_url; ?>"><?php _e( 'Edit', 'cpt-plugin' ); ?></a> / <a href="#" class="comment_button" id="<?php echo $thecounter; ?>"><?php _e( 'Get Code', 'cpt-plugin' ); ?></a></td>
|
641 |
+
<td valign="top"><?php echo stripslashes($cpt_post_type["name"]); ?></td>
|
642 |
+
<td valign="top"><?php echo stripslashes($cpt_post_type["label"]); ?></td>
|
643 |
+
<td valign="top"><?php echo disp_boolean($cpt_post_type["public"]); ?></td>
|
644 |
+
<td valign="top"><?php echo disp_boolean($cpt_post_type["show_ui"]); ?></td>
|
645 |
+
<td valign="top"><?php echo disp_boolean($cpt_post_type["hierarchical"]); ?></td>
|
646 |
+
<td valign="top"><?php echo disp_boolean($cpt_post_type["rewrite"]); ?></td>
|
647 |
+
<td valign="top"><?php echo $rewrite_slug; ?></td>
|
648 |
+
<td valign="top"><?php echo $cpt_counts->publish; ?></td>
|
649 |
+
<td valign="top"><?php echo $cpt_counts->draft; ?></td>
|
650 |
+
<td>
|
651 |
+
<?php
|
652 |
+
if (is_array($cpt_post_type[0])) {
|
653 |
+
foreach ($cpt_post_type[0] as $cpt_supports) {
|
654 |
+
echo $cpt_supports .'<br />';
|
655 |
+
}
|
656 |
+
}
|
657 |
+
?>
|
658 |
+
</td>
|
659 |
+
</tr>
|
660 |
+
<tr>
|
661 |
+
<td colspan="12">
|
662 |
+
<div style="display:none;" id="slidepanel<?php echo $thecounter; ?>">
|
663 |
+
<?php
|
664 |
+
// Begin the display for the "Get code" feature
|
665 |
+
//display register_post_type code
|
666 |
+
$custom_post_type = '';
|
667 |
+
$cpt_support_array = '';
|
668 |
+
$cpt_tax_array = '';
|
669 |
+
$cpt_sanitized_name = str_replace( '-', '_', $cpt_post_type['name'] );
|
670 |
+
|
671 |
+
$cpt_label = ( empty( $cpt_post_type["label"] ) ) ? esc_html($cpt_post_type["name"]) : esc_html($cpt_post_type["label"]);
|
672 |
+
$cpt_singular = ( empty( $cpt_post_type["singular_label"] ) ) ? $cpt_label : esc_html($cpt_post_type["singular_label"]);
|
673 |
+
$cpt_rewrite_slug = ( empty( $cpt_post_type["rewrite_slug"] ) ) ? esc_html($cpt_post_type["name"]) : esc_html($cpt_post_type["rewrite_slug"]);
|
674 |
+
$cpt_menu_position = ( empty( $cpt_post_type["menu_position"] ) ) ? null : intval($cpt_post_type["menu_position"]);
|
675 |
+
$cpt_menu_icon = ( !empty( $cpt_post_type["menu_icon"] ) ) ? esc_attr($cpt_post_type["menu_icon"]) : null;
|
676 |
+
|
677 |
+
if ( true == $cpt_post_type["show_ui"] ) {
|
678 |
+
$cpt_show_in_menu = ( $cpt_post_type["show_in_menu"] == 1 ) ? 1 : 0;
|
679 |
+
$cpt_show_in_menu = ( $cpt_post_type["show_in_menu_string"] ) ? '\''.$cpt_post_type["show_in_menu_string"].'\'' : $cpt_show_in_menu;
|
680 |
+
} else {
|
681 |
+
$cpt_show_in_menu = 0;
|
682 |
+
}
|
683 |
+
//set custom label values
|
684 |
+
$cpt_labels['name'] = $cpt_label;
|
685 |
+
$cpt_labels['singular_name'] = $cpt_post_type["singular_label"];
|
686 |
+
$cpt_labels['menu_name'] = ( $cpt_post_type[2]["menu_name"] ) ? $cpt_post_type[2]["menu_name"] : $cpt_label;
|
687 |
+
$cpt_labels['add_new'] = ( $cpt_post_type[2]["add_new"] ) ? $cpt_post_type[2]["add_new"] : 'Add ' .$cpt_singular;
|
688 |
+
$cpt_labels['add_new_item'] = ( $cpt_post_type[2]["add_new_item"] ) ? $cpt_post_type[2]["add_new_item"] : 'Add New ' .$cpt_singular;
|
689 |
+
$cpt_labels['edit'] = ( $cpt_post_type[2]["edit"] ) ? $cpt_post_type[2]["edit"] : 'Edit';
|
690 |
+
$cpt_labels['edit_item'] = ( $cpt_post_type[2]["edit_item"] ) ? $cpt_post_type[2]["edit_item"] : 'Edit ' .$cpt_singular;
|
691 |
+
$cpt_labels['new_item'] = ( $cpt_post_type[2]["new_item"] ) ? $cpt_post_type[2]["new_item"] : 'New ' .$cpt_singular;
|
692 |
+
$cpt_labels['view'] = ( $cpt_post_type[2]["view"] ) ? $cpt_post_type[2]["view"] : 'View ' .$cpt_singular;
|
693 |
+
$cpt_labels['view_item'] = ( $cpt_post_type[2]["view_item"] ) ? $cpt_post_type[2]["view_item"] : 'View ' .$cpt_singular;
|
694 |
+
$cpt_labels['search_items'] = ( $cpt_post_type[2]["search_items"] ) ? $cpt_post_type[2]["search_items"] : 'Search ' .$cpt_label;
|
695 |
+
$cpt_labels['not_found'] = ( $cpt_post_type[2]["not_found"] ) ? $cpt_post_type[2]["not_found"] : 'No ' .$cpt_label. ' Found';
|
696 |
+
$cpt_labels['not_found_in_trash'] = ( $cpt_post_type[2]["not_found_in_trash"] ) ? $cpt_post_type[2]["not_found_in_trash"] : 'No ' .$cpt_label. ' Found in Trash';
|
697 |
+
$cpt_labels['parent'] = ( $cpt_post_type[2]["parent"] ) ? $cpt_post_type[2]["parent"] : 'Parent ' .$cpt_singular;
|
698 |
+
|
699 |
+
if( is_array( $cpt_post_type[0] ) ) {
|
700 |
+
$counter = 1;
|
701 |
+
$count = count( $cpt_post_type[0] );
|
702 |
+
foreach ( $cpt_post_type[0] as $cpt_supports ) {
|
703 |
+
//build supports variable
|
704 |
+
$cpt_support_array .= '\'' . $cpt_supports . '\'';
|
705 |
+
if ( $counter != $count )
|
706 |
+
$cpt_support_array .= ',';
|
707 |
+
|
708 |
+
$counter++;
|
709 |
+
}
|
710 |
+
}
|
711 |
+
|
712 |
+
if( is_array( $cpt_post_type[1] ) ) {
|
713 |
+
$counter = 1;
|
714 |
+
$count = count( $cpt_post_type[1] );
|
715 |
+
foreach ( $cpt_post_type[1] as $cpt_taxes ) {
|
716 |
+
//build taxonomies variable
|
717 |
+
$cpt_tax_array .= '\''.$cpt_taxes.'\'';
|
718 |
+
if ( $counter != $count )
|
719 |
+
$cpt_tax_array .= ',';
|
720 |
+
$counter++;
|
721 |
+
}
|
722 |
+
}
|
723 |
+
$custom_post_type = "add_action('init', 'cptui_register_my_cpt_" . $cpt_sanitized_name . "');\n";
|
724 |
+
$custom_post_type .= "function cptui_register_my_cpt_" . $cpt_sanitized_name . "() {\n";
|
725 |
+
$custom_post_type .= "register_post_type('" . $cpt_post_type["name"] . "', array(\n'label' => '" . $cpt_label . "',\n";
|
726 |
+
$custom_post_type .= "'description' => '" . $cpt_post_type["description"] . "',\n";
|
727 |
+
$custom_post_type .= "'public' => " . disp_boolean( $cpt_post_type["public"]) . ",\n";
|
728 |
+
$custom_post_type .= "'show_ui' => " . disp_boolean( $cpt_post_type["show_ui"]) . ",\n";
|
729 |
+
$custom_post_type .= "'show_in_menu' => " . disp_boolean( $cpt_show_in_menu) . ",\n";
|
730 |
+
$custom_post_type .= "'capability_type' => '" . $cpt_post_type["capability_type"] . "',\n";
|
731 |
+
$custom_post_type .= "'map_meta_cap' => " . disp_boolean( '1' ) . ",\n";
|
732 |
+
$custom_post_type .= "'hierarchical' => " . disp_boolean( $cpt_post_type["hierarchical"] ) . ",\n";
|
733 |
+
|
734 |
+
if ( !empty( $cpt_post_type["rewrite_slug"] ) ) {
|
735 |
+
$custom_post_type .= "'rewrite' => array('slug' => '" . $cpt_post_type["rewrite_slug"] . "', 'with_front' => " . $cpt_post_type['rewrite_withfront'] . "),\n";
|
736 |
+
} else {
|
737 |
+
if( empty( $cpt_post_type['rewrite_withfront'] ) ) $cpt_post_type['rewrite_withfront'] = 1;
|
738 |
+
$custom_post_type .= "'rewrite' => array('slug' => '" . $cpt_post_type["name"] . "', 'with_front' => " . disp_boolean( $cpt_post_type['rewrite_withfront'] ) . "),\n";
|
739 |
+
}
|
740 |
+
|
741 |
+
$custom_post_type .= "'query_var' => " . disp_boolean($cpt_post_type["query_var"]) . ",\n";
|
742 |
+
|
743 |
+
if ( !empty( $cpt_post_type["has_archive"] ) ) {
|
744 |
+
$custom_post_type .= "'has_archive' => " . disp_boolean( $cpt_post_type["has_archive"] ) . ",\n";
|
745 |
+
}
|
746 |
+
|
747 |
+
if ( !empty( $cpt_post_type["exclude_from_search"] ) ) {
|
748 |
+
$custom_post_type .= "'exclude_from_search' => " . disp_boolean( $cpt_post_type["exclude_from_search"] ) . ",\n";
|
749 |
+
}
|
750 |
+
|
751 |
+
if ( !empty( $cpt_post_type["menu_position"] ) ) {
|
752 |
+
$custom_post_type .= "'menu_position' => " . $cpt_post_type["menu_position"] . ",\n";
|
753 |
+
}
|
754 |
+
|
755 |
+
if ( !empty( $cpt_post_type["menu_icon"] ) ) {
|
756 |
+
$custom_post_type .= "'menu_icon' => '" . $cpt_post_type["menu_icon"] . "',\n";
|
757 |
+
}
|
758 |
+
|
759 |
+
$custom_post_type .= "'supports' => array(" . $cpt_support_array . "),\n";
|
760 |
+
|
761 |
+
if ( !empty( $cpt_tax_array ) ) {
|
762 |
+
$custom_post_type .= "'taxonomies' => array(" . $cpt_tax_array . "),\n";
|
763 |
+
}
|
764 |
+
|
765 |
+
if ( !empty( $cpt_labels ) ) {
|
766 |
+
$custom_post_type .= "'labels' => " . var_export( $cpt_labels, true ) . "\n";
|
767 |
+
}
|
768 |
+
|
769 |
+
$custom_post_type .= ") ); }";
|
770 |
+
echo '<p>';
|
771 |
+
_e( 'Place the below code in your themes functions.php file to manually create this custom post type.', 'cpt-plugin' ).'<br>';
|
772 |
+
_e('This is a <strong>BETA</strong> feature. Please <a href="https://github.com/WebDevStudios/custom-post-type-ui">report bugs</a>.','cpt-plugin').'</p>';
|
773 |
+
echo '<textarea rows="10" cols="100">' .$custom_post_type .'</textarea>';
|
774 |
+
|
775 |
+
?>
|
776 |
+
</div>
|
777 |
+
</td>
|
778 |
+
</tr>
|
779 |
+
<?php
|
780 |
+
$thecounter++;
|
781 |
+
$cpt_names[] = strtolower( $cpt_post_type["name"] );
|
782 |
}
|
783 |
+
$args=array(
|
784 |
+
'public' => true,
|
785 |
+
'_builtin' => false
|
786 |
+
);
|
787 |
+
$output = 'objects'; // or objects
|
788 |
+
$post_types = get_post_types( $args, $output );
|
789 |
+
$cpt_first = false;
|
790 |
+
if ( $post_types ) {
|
791 |
+
|
792 |
+
?></table>
|
793 |
+
<h3><?php _e('Additional Custom Post Types', 'cpt-plugin') ?></h3>
|
794 |
+
<p><?php _e('The custom post types below are registered in WordPress but were not created by the Custom Post Type UI Plugin.', 'cpt-plugin') ?></p>
|
795 |
+
<?php
|
796 |
+
foreach ( $post_types as $post_type ) {
|
797 |
+
if ( !in_array( strtolower( $post_type->name ), $cpt_names ) ) {
|
798 |
+
if ( isset( $cpt_first ) && !$cpt_first ) {
|
799 |
+
?>
|
800 |
+
<table width="100%" class="widefat">
|
801 |
+
<thead>
|
802 |
+
<tr>
|
803 |
+
<th><?php _e('Name', 'cpt-plugin');?></th>
|
804 |
+
<th><?php _e('Label', 'cpt-plugin');?></th>
|
805 |
+
<th><?php _e('Public', 'cpt-plugin');?></th>
|
806 |
+
<th><?php _e('Show UI', 'cpt-plugin');?></th>
|
807 |
+
<th><?php _e('Hierarchical', 'cpt-plugin');?></th>
|
808 |
+
<th><?php _e('Rewrite', 'cpt-plugin');?></th>
|
809 |
+
<th><?php _e('Rewrite Slug', 'cpt-plugin');?></th>
|
810 |
+
<th><?php _e('Query Var', 'cpt-plugin');?></th>
|
811 |
+
</tr>
|
812 |
+
</thead>
|
813 |
+
<tfoot>
|
814 |
+
<tr>
|
815 |
+
<th><?php _e('Name', 'cpt-plugin');?></th>
|
816 |
+
<th><?php _e('Label', 'cpt-plugin');?></th>
|
817 |
+
<th><?php _e('Public', 'cpt-plugin');?></th>
|
818 |
+
<th><?php _e('Show UI', 'cpt-plugin');?></th>
|
819 |
+
<th><?php _e('Hierarchical', 'cpt-plugin');?></th>
|
820 |
+
<th><?php _e('Rewrite', 'cpt-plugin');?></th>
|
821 |
+
<th><?php _e('Rewrite Slug', 'cpt-plugin');?></th>
|
822 |
+
<th><?php _e('Query Var', 'cpt-plugin');?></th>
|
823 |
+
</tr>
|
824 |
+
</tfoot>
|
825 |
+
<?php
|
826 |
+
$cpt_first = true;
|
827 |
+
}
|
828 |
+
$rewrite_slug = ( isset( $post_type->rewrite_slug ) ) ? $post_type->rewrite_slug : $post_type->name;
|
829 |
+
?>
|
830 |
+
<tr>
|
831 |
+
<td valign="top"><?php echo $post_type->name; ?></td>
|
832 |
+
<td valign="top"><?php echo $post_type->label; ?></td>
|
833 |
+
<td valign="top"><?php echo disp_boolean($post_type->public); ?></td>
|
834 |
+
<td valign="top"><?php echo disp_boolean($post_type->show_ui); ?></td>
|
835 |
+
<td valign="top"><?php echo disp_boolean($post_type->hierarchical); ?></td>
|
836 |
+
<td valign="top"><?php echo disp_boolean($post_type->rewrite); ?></td>
|
837 |
+
<td valign="top"><?php echo $rewrite_slug; ?></td>
|
838 |
+
<td valign="top"><?php echo disp_boolean($post_type->query_var); ?></td>
|
839 |
+
</tr>
|
840 |
+
<?php
|
841 |
+
}
|
842 |
+
}
|
843 |
+
}
|
844 |
+
|
845 |
+
if ( isset($cpt_first) && !$cpt_first ) {
|
846 |
+
echo '<tr><td><strong>';
|
847 |
+
_e( 'No additional post types found', 'cpt-plugin' );
|
848 |
+
echo '</strong></td></tr>';
|
849 |
+
}
|
850 |
+
?>
|
851 |
+
</table>
|
852 |
+
|
853 |
+
</div><?php
|
854 |
+
//load footer
|
855 |
+
cpt_footer();
|
856 |
}
|
857 |
+
}
|
858 |
|
859 |
+
//manage custom taxonomies page
|
860 |
+
function cpt_manage_taxonomies() {
|
861 |
+
global $CPT_URL;
|
862 |
|
863 |
+
$MANAGE_URL = cpt_check_return( 'add' );
|
|
|
|
|
864 |
|
865 |
+
?>
|
866 |
+
<div class="wrap">
|
867 |
+
<?php
|
868 |
+
//check for success/error messages
|
869 |
+
if (isset($_GET['cpt_msg']) && $_GET['cpt_msg']=='del') { ?>
|
870 |
+
<div id="message" class="updated">
|
871 |
+
<?php _e('Custom taxonomy deleted successfully', 'cpt-plugin'); ?>
|
872 |
+
</div>
|
873 |
+
<?php
|
874 |
+
}
|
875 |
+
?>
|
876 |
+
<?php screen_icon( 'plugins' ); ?>
|
877 |
+
<h2><?php _e('Manage Custom Taxonomies', 'cpt-plugin') ?></h2>
|
878 |
+
<p><?php _e('Deleting custom taxonomies does <strong>NOT</strong> delete any content added to those taxonomies. You can easily recreate your taxonomies and the content will still exist.', 'cpt-plugin') ?></p>
|
879 |
+
<?php
|
880 |
+
$cpt_tax_types = get_option( 'cpt_custom_tax_types', array() );
|
881 |
+
|
882 |
+
if (is_array($cpt_tax_types)) {
|
883 |
+
?>
|
884 |
+
<table width="100%" class="widefat">
|
885 |
+
<thead>
|
886 |
+
<tr>
|
887 |
+
<th><?php _e('Action', 'cpt-plugin');?></th>
|
888 |
+
<th><?php _e('Name', 'cpt-plugin');?></th>
|
889 |
+
<th><?php _e('Label', 'cpt-plugin');?></th>
|
890 |
+
<th><?php _e('Singular Label', 'cpt-plugin');?></th>
|
891 |
+
<th><?php _e('Attached Post Types', 'cpt-plugin');?></th>
|
892 |
+
<th><?php _e('Hierarchical', 'cpt-plugin');?></th>
|
893 |
+
<th><?php _e('Show UI', 'cpt-plugin');?></th>
|
894 |
+
<th><?php _e('Rewrite', 'cpt-plugin');?></th>
|
895 |
+
<th><?php _e('Rewrite Slug', 'cpt-plugin');?></th>
|
896 |
+
</tr>
|
897 |
+
</thead>
|
898 |
+
<tfoot>
|
899 |
+
<tr>
|
900 |
+
<th><?php _e('Action', 'cpt-plugin');?></th>
|
901 |
+
<th><?php _e('Name', 'cpt-plugin');?></th>
|
902 |
+
<th><?php _e('Label', 'cpt-plugin');?></th>
|
903 |
+
<th><?php _e('Singular Label', 'cpt-plugin');?></th>
|
904 |
+
<th><?php _e('Attached Post Types', 'cpt-plugin');?></th>
|
905 |
+
<th><?php _e('Hierarchical', 'cpt-plugin');?></th>
|
906 |
+
<th><?php _e('Show UI', 'cpt-plugin');?></th>
|
907 |
+
<th><?php _e('Rewrite', 'cpt-plugin');?></th>
|
908 |
+
<th><?php _e('Rewrite Slug', 'cpt-plugin');?></th>
|
909 |
+
</tr>
|
910 |
+
</tfoot>
|
911 |
<?php
|
912 |
+
$thecounter=0;
|
913 |
+
foreach ($cpt_tax_types as $cpt_tax_type) {
|
914 |
|
915 |
+
$del_url = cpt_check_return( 'cpt' ) .'&deltax=' .$thecounter .'&return=tax';
|
916 |
+
$del_url = ( function_exists('wp_nonce_url') ) ? wp_nonce_url($del_url, 'cpt_delete_tax') : $del_url;
|
917 |
+
|
918 |
+
$edit_url = $MANAGE_URL .'&edittax=' .$thecounter .'&return=tax';
|
919 |
+
$edit_url = ( function_exists('wp_nonce_url') ) ? wp_nonce_url($edit_url, 'cpt_edit_tax') : $edit_url;
|
920 |
+
|
921 |
+
$rewrite_slug = ( $cpt_tax_type["rewrite_slug"] ) ? $cpt_tax_type["rewrite_slug"] : $cpt_tax_type["name"];
|
922 |
+
?>
|
923 |
+
<tr>
|
924 |
+
<td valign="top"><a href="<?php echo $del_url; ?>"><?php _e( 'Delete', 'cpt-plugin' ); ?></a> / <a href="<?php echo $edit_url; ?>"><?php _e( 'Edit', 'cpt-plugin' ); ?></a> / <a href="#" class="comment_button" id="<?php echo $thecounter; ?>"><?php _e( 'Get Code', 'cpt-plugin' ); ?></a></td>
|
925 |
+
<td valign="top"><?php echo stripslashes($cpt_tax_type["name"]); ?></td>
|
926 |
+
<td valign="top"><?php echo stripslashes($cpt_tax_type["label"]); ?></td>
|
927 |
+
<td valign="top"><?php echo stripslashes($cpt_tax_type["singular_label"]); ?></td>
|
928 |
+
<td valign="top">
|
929 |
+
<?php
|
930 |
+
if ( isset( $cpt_tax_type["cpt_name"] ) ) {
|
931 |
+
echo stripslashes($cpt_tax_type["cpt_name"]);
|
932 |
+
} elseif ( is_array( $cpt_tax_type[1] ) ) {
|
933 |
+
foreach ($cpt_tax_type[1] as $cpt_post_types) {
|
934 |
+
echo $cpt_post_types .'<br />';
|
935 |
+
}
|
936 |
+
}
|
937 |
+
?>
|
938 |
+
</td>
|
939 |
+
<td valign="top"><?php echo disp_boolean($cpt_tax_type["hierarchical"]); ?></td>
|
940 |
+
<td valign="top"><?php echo disp_boolean($cpt_tax_type["show_ui"]); ?></td>
|
941 |
+
<td valign="top"><?php echo disp_boolean($cpt_tax_type["rewrite"]); ?></td>
|
942 |
+
<td valign="top"><?php echo $rewrite_slug; ?></td>
|
943 |
+
</tr>
|
944 |
+
<tr>
|
945 |
+
<td colspan="10">
|
946 |
+
<div style="display:none;" id="slidepanel<?php echo $thecounter; ?>">
|
947 |
+
<?php
|
948 |
+
$cpt_tax_sanitized_name = str_replace( '-', '_', $cpt_tax_type['name'] );
|
949 |
+
//display register_taxonomy code
|
950 |
+
$custom_tax = '';
|
951 |
+
$custom_tax = "add_action('init', 'cptui_register_my_taxes_" . $cpt_tax_sanitized_name . "');\n";
|
952 |
+
$custom_tax .= "function cptui_register_my_taxes_" . $cpt_tax_sanitized_name . "() {\n";
|
953 |
+
|
954 |
+
if ( !$cpt_tax_type["label"] ) {
|
955 |
+
$cpt_label = esc_html( $cpt_tax_type["name"] );
|
956 |
+
} else {
|
957 |
+
$cpt_label = esc_html( $cpt_tax_type["label"] );
|
958 |
+
}
|
959 |
+
|
960 |
+
//check if singular label was filled out
|
961 |
+
if ( !$cpt_tax_type["singular_label"] ) {
|
962 |
+
$cpt_singular_label = esc_html( $cpt_tax_type["name"] );
|
963 |
+
} else {
|
964 |
+
$cpt_singular_label = esc_html( $cpt_tax_type["singular_label"] );
|
965 |
+
}
|
966 |
+
|
967 |
+
$labels = var_export( array(
|
968 |
+
'search_items' => ( !empty( $cpt_tax_type["singular_label"] ) ) ? esc_html( $cpt_tax_type["singular_label"] ) : '',
|
969 |
+
'popular_items' => ( !empty( $cpt_tax_type[0]["popular_items"] ) ) ? esc_html( $cpt_tax_type[0]["popular_items"] ) : '',
|
970 |
+
'all_items' => ( !empty( $cpt_tax_type[0]["all_items"] ) ) ? esc_html( $cpt_tax_type[0]["all_items"] ) : '',
|
971 |
+
'parent_item' => ( !empty( $cpt_tax_type[0]["parent_item"] ) ) ? esc_html( $cpt_tax_type[0]["parent_item"] ) : '',
|
972 |
+
'parent_item_colon' => ( !empty( $cpt_tax_type[0]["parent_item_colon"] ) ) ? esc_html( $cpt_tax_type[0]["parent_item_colon"] ) : '',
|
973 |
+
'edit_item' => ( !empty( $cpt_tax_type[0]["edit_item"] ) ) ? esc_html( $cpt_tax_type[0]["edit_item"] ) : '',
|
974 |
+
'update_item' => ( !empty( $cpt_tax_type[0]["update_item"] ) ) ? esc_html( $cpt_tax_type[0]["update_item"] ) : '',
|
975 |
+
'add_new_item' => ( !empty( $cpt_tax_type[0]["add_new_item"] ) ) ? esc_html( $cpt_tax_type[0]["add_new_item"] ) : '',
|
976 |
+
'new_item_name' => ( !empty( $cpt_tax_type[0]["new_item_name"] ) ) ? esc_html( $cpt_tax_type[0]["new_item_name"] ) : '',
|
977 |
+
'separate_items_with_commas' => ( !empty( $cpt_tax_type[0]["separate_items_with_commas"] ) ) ? esc_html( $cpt_tax_type[0]["separate_items_with_commas"] ) : '',
|
978 |
+
'add_or_remove_items' => ( !empty( $cpt_tax_type[0]["add_or_remove_items"] ) ) ? esc_html( $cpt_tax_type[0]["add_or_remove_items"] ) : '',
|
979 |
+
'choose_from_most_used' => ( !empty( $cpt_tax_type[0]["choose_from_most_used"] ) ) ? esc_html( $cpt_tax_type[0]["choose_from_most_used"] ) : ''
|
980 |
+
), true );
|
981 |
+
|
982 |
+
$cpt_post_types = ( !$cpt_tax_type[1] ) ? $cpt_tax_type["cpt_name"] : var_export( $cpt_tax_type[1], true );
|
983 |
+
|
984 |
+
//register our custom taxonomies
|
985 |
+
$custom_tax .= "register_taxonomy( '" . $cpt_tax_type["name"] . "',";
|
986 |
+
$custom_tax .= $cpt_post_types . ",\n";
|
987 |
+
$custom_tax .= "array( 'hierarchical' => " . disp_boolean( $cpt_tax_type["hierarchical"] ) . ",\n";
|
988 |
+
$custom_tax .= "\t'label' => '" . $cpt_label . "',\n";
|
989 |
+
$custom_tax .= "\t'show_ui' => " . disp_boolean( $cpt_tax_type["show_ui"] ) . ",\n";
|
990 |
+
$custom_tax .= "\t'query_var' => " . disp_boolean( $cpt_tax_type["query_var"] ) . ",\n";
|
991 |
+
if ( !empty( $cpt_tax_type["rewrite_slug"] ) ) {
|
992 |
+
$custom_tax .= "\t'rewrite' => array( 'slug' => '" . $cpt_tax_type["rewrite_slug"] . "' ),\n";
|
993 |
+
}
|
994 |
+
|
995 |
+
|
996 |
+
if ( version_compare( CPTUI_WP_VERSION, '3.5', '>' ) ) {
|
997 |
+
$custom_tax .= "\t'show_admin_column' => " . disp_boolean( $cpt_tax_type["show_admin_column"] ) . ",\n";
|
998 |
+
}
|
999 |
+
|
1000 |
+
|
1001 |
+
if ( !empty( $labels ) )
|
1002 |
+
$custom_tax .= "\t'labels' => " . $labels . "\n";
|
1003 |
+
$custom_tax .= ") ); \n}";
|
1004 |
+
|
1005 |
+
echo '<br>';
|
1006 |
+
echo _e('Place the below code in your themes functions.php file to manually create this custom taxonomy','cpt-plugin').'<br>';
|
1007 |
+
echo _e('This is a <strong>BETA</strong> feature. Please <a href="http://webdevstudios.com/support/forum/custom-post-type-ui/">report bugs</a>.','cpt-plugin').'<br>';
|
1008 |
+
echo '<textarea rows="10" cols="100">' .$custom_tax .'</textarea>';
|
1009 |
+
?>
|
1010 |
+
</div>
|
1011 |
+
</td>
|
1012 |
+
</tr>
|
1013 |
+
<?php
|
1014 |
+
$thecounter++;
|
1015 |
}
|
1016 |
+
?></table>
|
1017 |
+
</div>
|
1018 |
+
<?php
|
1019 |
+
//load footer
|
1020 |
+
cpt_footer();
|
1021 |
+
}
|
1022 |
+
}
|
1023 |
+
|
1024 |
+
//add new custom post type / taxonomy page
|
1025 |
+
function cpt_add_new() {
|
1026 |
+
global $cpt_error, $CPT_URL;
|
1027 |
+
|
1028 |
+
$RETURN_URL = ( isset( $_GET['return'] ) ) ? 'action="' . cpt_check_return( esc_attr( $_GET['return'] ) ) . '"' : '';
|
1029 |
+
|
1030 |
+
//check if we are editing a custom post type or creating a new one
|
1031 |
+
if ( isset( $_GET['edittype'] ) && !isset( $_GET['cpt_edit'] ) ) {
|
1032 |
+
check_admin_referer('cpt_edit_post_type');
|
1033 |
+
|
1034 |
+
//get post type to edit. This will reference array index for our option.
|
1035 |
+
$editType = intval($_GET['edittype']);
|
1036 |
+
|
1037 |
+
//load custom posts saved in WP
|
1038 |
+
$cpt_options = get_option('cpt_custom_post_types');
|
1039 |
+
|
1040 |
+
//load custom post type values to edit
|
1041 |
+
$cpt_post_type_name = ( isset( $cpt_options[ $editType ]["name"] ) ) ? $cpt_options[ $editType ]["name"] : null;
|
1042 |
+
$cpt_label = ( isset( $cpt_options[ $editType ]["label"] ) ) ? $cpt_options[ $editType ]["label"] : null;
|
1043 |
+
$cpt_singular_label = ( isset( $cpt_options[ $editType ]["singular_label"] ) ) ? $cpt_options[ $editType ]["singular_label"] : null;
|
1044 |
+
$cpt_public = ( isset( $cpt_options[ $editType ]["public"] ) ) ? $cpt_options[ $editType ]["public"] : null;
|
1045 |
+
$cpt_showui = ( isset( $cpt_options[ $editType ]["show_ui"] ) ) ? $cpt_options[ $editType ]["show_ui"] : null;
|
1046 |
+
$cpt_capability = ( isset( $cpt_options[ $editType ]["capability_type"] ) ) ? $cpt_options[ $editType ]["capability_type"] : null;
|
1047 |
+
$cpt_hierarchical = ( isset( $cpt_options[ $editType ]["hierarchical"] ) ) ? $cpt_options[ $editType ]["hierarchical"] : null;
|
1048 |
+
$cpt_rewrite = ( isset( $cpt_options[ $editType ]["rewrite"] ) ) ? $cpt_options[ $editType ]["rewrite"] : null;
|
1049 |
+
$cpt_rewrite_slug = ( isset( $cpt_options[ $editType ]["rewrite_slug"] ) ) ? $cpt_options[ $editType ]["rewrite_slug"] : null;
|
1050 |
+
$cpt_rewrite_withfront = ( isset( $cpt_options[ $editType ]["rewrite_withfront"] ) ) ? $cpt_options[ $editType ]["rewrite_withfront"] : null;
|
1051 |
+
$cpt_query_var = ( isset( $cpt_options[ $editType ]["query_var"] ) ) ? $cpt_options[ $editType ]["query_var"] : null;
|
1052 |
+
$cpt_description = ( isset( $cpt_options[ $editType ]["description"] ) ) ? $cpt_options[ $editType ]["description"] : null;
|
1053 |
+
$cpt_menu_position = ( isset( $cpt_options[ $editType ]["menu_position"] ) ) ? $cpt_options[ $editType ]["menu_position"] : null;
|
1054 |
+
$cpt_menu_icon = ( isset( $cpt_options[ $editType ]["menu_icon"] ) ) ? $cpt_options[ $editType ]["menu_icon"] : null;
|
1055 |
+
$cpt_supports = ( isset( $cpt_options[ $editType ][0] ) ) ? $cpt_options[ $editType ][0] : null;
|
1056 |
+
$cpt_taxes = ( isset( $cpt_options[ $editType ][1] ) )? $cpt_options[ $editType ][1] : null;
|
1057 |
+
$cpt_labels = ( isset( $cpt_options[ $editType ][2] ) ) ? $cpt_options[ $editType ][2] : null;
|
1058 |
+
$cpt_has_archive = ( isset( $cpt_options[$editType]["has_archive"] ) ) ? $cpt_options[$editType]["has_archive"] : null;
|
1059 |
+
$cpt_exclude_from_search = ( isset( $cpt_options[$editType]["exclude_from_search"] ) ) ? $cpt_options[$editType]["exclude_from_search"] : null;
|
1060 |
+
$cpt_show_in_menu = ( isset( $cpt_options[$editType]["show_in_menu"] ) ) ? $cpt_options[$editType]["show_in_menu"] : true;
|
1061 |
+
$cpt_show_in_menu_string = ( isset( $cpt_options[$editType]["show_in_menu_string"] ) ) ? $cpt_options[$editType]["show_in_menu_string"] : null;
|
1062 |
+
|
1063 |
+
$cpt_submit_name = __( 'Save Custom Post Type', 'cpt-plugin' );
|
1064 |
+
} else {
|
1065 |
+
$cpt_submit_name = __( 'Create Custom Post Type', 'cpt-plugin' );
|
1066 |
+
}
|
1067 |
+
|
1068 |
+
if ( isset( $_GET['edittax'] ) && !isset( $_GET['cpt_edit'] ) ) {
|
1069 |
+
check_admin_referer('cpt_edit_tax');
|
1070 |
+
|
1071 |
+
//get post type to edit
|
1072 |
+
$editTax = intval($_GET['edittax']);
|
1073 |
+
|
1074 |
+
//load custom posts saved in WP
|
1075 |
+
$cpt_options = get_option('cpt_custom_tax_types');
|
1076 |
+
|
1077 |
+
//load custom taxonomy values to edit
|
1078 |
+
$cpt_tax_name = $cpt_options[$editTax]["name"];
|
1079 |
+
$cpt_tax_label = stripslashes( $cpt_options[$editTax]["label"] );
|
1080 |
+
$cpt_singular_label_tax = stripslashes( $cpt_options[$editTax]["singular_label"] );
|
1081 |
+
$cpt_tax_object_type = ( isset( $cpt_options[$editTax]["cpt_name"] ) ) ? $cpt_options[$editTax]["cpt_name"] : null;
|
1082 |
+
$cpt_tax_hierarchical = $cpt_options[$editTax]["hierarchical"];
|
1083 |
+
$cpt_tax_showui = $cpt_options[$editTax]["show_ui"];
|
1084 |
+
$cpt_tax_query_var = $cpt_options[$editTax]["query_var"];
|
1085 |
+
$cpt_tax_rewrite = $cpt_options[$editTax]["rewrite"];
|
1086 |
+
$cpt_tax_rewrite_slug = $cpt_options[$editTax]["rewrite_slug"];
|
1087 |
+
$cpt_tax_show_admin_column = $cpt_options[$editTax]["show_admin_column"];
|
1088 |
+
$cpt_tax_labels = stripslashes_deep( $cpt_options[$editTax][0] );
|
1089 |
+
$cpt_post_types = $cpt_options[$editTax][1];
|
1090 |
+
|
1091 |
+
$cpt_tax_submit_name = __( 'Save Custom Taxonomy', 'cpt-plugin' );
|
1092 |
+
} else {
|
1093 |
+
$cpt_tax_submit_name = __( 'Create Custom Taxonomy', 'cpt-plugin' );
|
1094 |
}
|
1095 |
|
1096 |
+
//flush rewrite rules
|
1097 |
+
flush_rewrite_rules();
|
1098 |
+
|
1099 |
+
/*
|
1100 |
+
BEGIN 'ADD NEW' PAGE OUTPUT
|
1101 |
*/
|
|
|
1102 |
?>
|
1103 |
+
<div class="wrap">
|
1104 |
+
<?php
|
1105 |
+
//check for success/error messages
|
1106 |
+
if ( isset( $_GET['cpt_msg'] ) ) : ?>
|
1107 |
+
|
1108 |
+
<div id="message" class="updated">
|
1109 |
+
<?php if ( $_GET['cpt_msg'] == 1 ) {
|
1110 |
+
_e( 'Custom post type created successfully. You may need to refresh to view the new post type in the admin menu.', 'cpt-plugin' );
|
1111 |
+
echo '<a href="' . cpt_check_return( 'cpt' ) . '"> ' . __( 'Manage custom post types', 'cpt-plugin') . '</a>';
|
1112 |
+
} elseif ( $_GET['cpt_msg'] == 2 ) {
|
1113 |
+
_e('Custom taxonomy created successfully. You may need to refresh to view the new taxonomy in the admin menu.', 'cpt-plugin' );
|
1114 |
+
echo '<a href="' . cpt_check_return( 'tax' ) . '"> ' . __( 'Manage custom taxonomies', 'cpt-plugin') . '</a>';
|
1115 |
+
} ?>
|
1116 |
+
</div>
|
1117 |
+
<?php
|
1118 |
+
else :
|
1119 |
+
if ( isset( $_GET['cpt_error'] ) ) : ?>
|
1120 |
+
<div class="error">
|
1121 |
+
<?php if ( $_GET['cpt_error'] == 1 ) {
|
1122 |
+
_e( 'Post type name is a required field.', 'cpt-plugin' );
|
1123 |
+
}
|
1124 |
+
if ( $_GET['cpt_error'] == 2 ) {
|
1125 |
+
_e( 'Taxonomy name is a required field.', 'cpt-plugin' );
|
1126 |
+
}
|
1127 |
+
if ( $_GET['cpt_error'] == 3 ) {
|
1128 |
+
_e( 'You must assign your custom taxonomy to at least one post type.', 'cpt-plugin' );
|
1129 |
+
}
|
1130 |
+
if ( $_GET['cpt_error'] == 4 ) {
|
1131 |
+
_e( 'Please doe not use quotes in your post type slug or rewrite slug.', 'cpt-plugin' );
|
1132 |
+
}
|
1133 |
+
if ( $_GET['cpt_error'] == 5 ) {
|
1134 |
+
_e( 'Please doe not use quotes in your taxonomy slug or rewrite slug.', 'cpt-plugin' );
|
1135 |
+
} ?>
|
1136 |
+
</div>
|
1137 |
+
<?php
|
1138 |
+
endif;
|
1139 |
+
endif;
|
1140 |
+
|
1141 |
+
screen_icon( 'plugins' );
|
1142 |
+
|
1143 |
+
if ( isset( $_GET['edittype'] ) || isset( $_GET['edittax'] ) ) { ?>
|
1144 |
+
<h2>
|
1145 |
+
<?php _e('Edit Custom Post Type or Taxonomy', 'cpt-plugin') ?> ·
|
1146 |
+
<a href="<?php echo cpt_check_return( 'add' ); ?>">
|
1147 |
+
<?php _e('Reset', 'cpt-plugin');?>
|
1148 |
+
</a>
|
1149 |
+
</h2>
|
1150 |
+
<?php } else { ?>
|
1151 |
+
<h2>
|
1152 |
+
<?php _e('Create New Custom Post Type or Taxonomy', 'cpt-plugin') ?> ·
|
1153 |
+
<a href="<?php echo cpt_check_return( 'add' ); ?>">
|
1154 |
+
<?php _e('Reset', 'cpt-plugin');?>
|
1155 |
+
</a>
|
1156 |
+
</h2>
|
1157 |
+
<?php } ?>
|
1158 |
+
<table border="0" cellspacing="10" class="widefat">
|
1159 |
+
<?php
|
1160 |
+
//BEGIN CPT HALF
|
1161 |
+
?>
|
1162 |
+
<tr>
|
1163 |
+
<td width="50%" valign="top">
|
1164 |
+
<p><?php _e('If you are unfamiliar with the options below only fill out the <strong>Post Type Name</strong> and <strong>Label</strong> fields and check which meta boxes to support. The other settings are set to the most common defaults for custom post types. Hover over the question mark for more details.', 'cpt-plugin'); ?></p>
|
1165 |
+
<form method="post" <?php echo $RETURN_URL; ?>>
|
1166 |
+
<?php
|
1167 |
+
if ( function_exists( 'wp_nonce_field' ) )
|
1168 |
+
wp_nonce_field( 'cpt_add_custom_post_type' );
|
1169 |
+
?>
|
1170 |
+
<?php if ( isset( $_GET['edittype'] ) ) { ?>
|
1171 |
+
<input type="hidden" name="cpt_edit" value="<?php echo esc_attr( $editType ); ?>" />
|
1172 |
+
<?php } ?>
|
1173 |
+
<table class="form-table">
|
1174 |
+
<tr valign="top">
|
1175 |
+
<th scope="row"><?php _e('Post Type Name', 'cpt-plugin') ?> <span class="required">*</span> <a href="#" title="<?php esc_attr_e( 'The post type name. Used to retrieve custom post type content. Should be short and sweet', 'cpt-plugin'); ?>" class="help">?</a></th>
|
1176 |
+
<td><input type="text" name="cpt_custom_post_type[name]" tabindex="1" value="<?php if (isset($cpt_post_type_name)) { echo esc_attr($cpt_post_type_name); } ?>" maxlength="20" onblur="this.value=this.value.toLowerCase()" /> <?php _e( '(e.g. movie)', 'cpt-plugin' ); ?>
|
1177 |
+
<br />
|
1178 |
+
<p><strong><?php _e( 'Max 20 characters, can not contain capital letters or spaces. Reserved post types: post, page, attachment, revision, nav_menu_item.', 'cpt-plugin' ); ?></strong></p>
|
1179 |
+
</td>
|
1180 |
+
</tr>
|
1181 |
+
|
1182 |
+
<tr valign="top">
|
1183 |
+
<th scope="row"><?php _e('Label', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1184 |
+
<td><input type="text" name="cpt_custom_post_type[label]" tabindex="2" value="<?php if (isset($cpt_label)) { echo esc_attr($cpt_label); } ?>" /> <?php _e( '(e.g. Movies)', 'cpt-plugin' ); ?></td>
|
1185 |
+
</tr>
|
1186 |
+
|
1187 |
+
<tr valign="top">
|
1188 |
+
<th scope="row"><?php _e('Singular Label', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Custom Post Type Singular label. Used in WordPress when a singular label is needed.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1189 |
+
<td><input type="text" name="cpt_custom_post_type[singular_label]" tabindex="3" value="<?php if (isset($cpt_singular_label)) { echo esc_attr($cpt_singular_label); } ?>" /> <?php _e( '(e.g. Movie)', 'cpt-plugin' ); ?></td>
|
1190 |
+
|
1191 |
+
</tr>
|
1192 |
+
|
1193 |
+
<tr valign="top">
|
1194 |
+
<th scope="row"><?php _e('Description', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Custom Post Type Description. Describe what your custom post type is used for.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1195 |
+
<td><textarea name="cpt_custom_post_type[description]" tabindex="4" rows="4" cols="40"><?php if (isset($cpt_description)) { echo esc_attr($cpt_description); } ?></textarea></td>
|
1196 |
+
</tr>
|
1197 |
+
|
1198 |
+
<tr valign="top">
|
1199 |
+
<td colspan="2">
|
1200 |
+
<p align="center">
|
1201 |
+
<?php echo '<a href="#" class="comment_button" id="1">' . __( 'Advanced Label Options', 'cpt-plugin' ) . '</a>'; ?> |
|
1202 |
+
<?php echo '<a href="#" class="comment_button" id="2">' . __( 'Advanced Options', 'cpt-plugin' ) . '</a>'; ?>
|
1203 |
+
</p>
|
1204 |
+
</td>
|
1205 |
+
</tr>
|
1206 |
+
|
1207 |
+
</table>
|
1208 |
+
|
1209 |
+
<div style="display:none;" id="slidepanel1">
|
1210 |
+
<p><?php _e('Below are the advanced label options for custom post types. If you are unfamiliar with these labels, leave them blank and the plugin will automatically create labels based off of your custom post type name', 'cpt-plugin'); ?></p>
|
1211 |
+
<table class="form-table">
|
1212 |
+
|
1213 |
+
<tr valign="top">
|
1214 |
+
<th scope="row"><?php _e('Menu Name', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Custom menu name for your custom post type.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1215 |
+
<td><input type="text" name="cpt_labels[menu_name]" tabindex="2" value="<?php if (isset($cpt_labels["menu_name"])) { echo esc_attr($cpt_labels["menu_name"]); } ?>" /><br/>
|
1216 |
+
<?php _e( '(e.g. My Movies)', 'cpt-plugin' ); ?></td>
|
1217 |
+
</tr>
|
1218 |
+
|
1219 |
+
<tr valign="top">
|
1220 |
+
<th scope="row"><?php _e('Add New', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1221 |
+
<td><input type="text" name="cpt_labels[add_new]" tabindex="2" value="<?php if (isset($cpt_labels["add_new"])) { echo esc_attr($cpt_labels["add_new"]); } ?>" /><br/>
|
1222 |
+
<?php _e( '(e.g. Add New)', 'cpt-plugin' ); ?></td>
|
1223 |
+
</tr>
|
1224 |
+
|
1225 |
+
<tr valign="top">
|
1226 |
+
<th scope="row"><?php _e('Add New Item', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1227 |
+
<td><input type="text" name="cpt_labels[add_new_item]" tabindex="2" value="<?php if (isset($cpt_labels["add_new_item"])) { echo esc_attr($cpt_labels["add_new_item"]); } ?>" /><br/>
|
1228 |
+
<?php _e( '(e.g. Add New Movie)', 'cpt-plugin' ); ?></td>
|
1229 |
+
</tr>
|
1230 |
+
|
1231 |
+
<tr valign="top">
|
1232 |
+
<th scope="row"><?php _e('Edit', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1233 |
+
<td><input type="text" name="cpt_labels[edit]" tabindex="2" value="<?php if (isset($cpt_labels["edit"])) { echo esc_attr($cpt_labels["edit"]); } ?>" /><br/>
|
1234 |
+
<?php _e( '(e.g. Edit)', 'cpt-plugin' ); ?></td>
|
1235 |
+
</tr>
|
1236 |
+
|
1237 |
+
<tr valign="top">
|
1238 |
+
<th scope="row"><?php _e('Edit Item', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1239 |
+
<td><input type="text" name="cpt_labels[edit_item]" tabindex="2" value="<?php if (isset($cpt_labels["edit_item"])) { echo esc_attr($cpt_labels["edit_item"]); } ?>" /><br/>
|
1240 |
+
<?php _e( '(e.g. Edit Movie)', 'cpt-plugin' ); ?></td>
|
1241 |
+
</tr>
|
1242 |
+
|
1243 |
+
<tr valign="top">
|
1244 |
+
<th scope="row"><?php _e('New Item', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1245 |
+
<td><input type="text" name="cpt_labels[new_item]" tabindex="2" value="<?php if (isset($cpt_labels["new_item"])) { echo esc_attr($cpt_labels["new_item"]); } ?>" /><br/>
|
1246 |
+
<?php _e( '(e.g. New Movie)', 'cpt-plugin' ); ?></td>
|
1247 |
+
</tr>
|
1248 |
+
|
1249 |
+
<tr valign="top">
|
1250 |
+
<th scope="row"><?php _e('View', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1251 |
+
<td><input type="text" name="cpt_labels[view]" tabindex="2" value="<?php if (isset($cpt_labels["view"])) { echo esc_attr($cpt_labels["view"]); } ?>" /><br/>
|
1252 |
+
<?php _e( '(e.g. View Movie)', 'cpt-plugin' ); ?></td>
|
1253 |
+
</tr>
|
1254 |
+
|
1255 |
+
<tr valign="top">
|
1256 |
+
<th scope="row"><?php _e('View Item', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1257 |
+
<td><input type="text" name="cpt_labels[view_item]" tabindex="2" value="<?php if (isset($cpt_labels["view_item"])) { echo esc_attr($cpt_labels["view_item"]); } ?>" /><br/>
|
1258 |
+
<?php _e( '(e.g. View Movie)', 'cpt-plugin' ); ?></td>
|
1259 |
+
</tr>
|
1260 |
+
|
1261 |
+
<tr valign="top">
|
1262 |
+
<th scope="row"><?php _e('Search Items', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1263 |
+
<td><input type="text" name="cpt_labels[search_items]" tabindex="2" value="<?php if (isset($cpt_labels["search_items"])) { echo esc_attr($cpt_labels["search_items"]); } ?>" /><br/>
|
1264 |
+
<?php _e( '(e.g. Search Movies)', 'cpt-plugin' ); ?></td>
|
1265 |
+
</tr>
|
1266 |
+
|
1267 |
+
<tr valign="top">
|
1268 |
+
<th scope="row"><?php _e('Not Found', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1269 |
+
<td><input type="text" name="cpt_labels[not_found]" tabindex="2" value="<?php if (isset($cpt_labels["not_found"])) { echo esc_attr($cpt_labels["not_found"]); } ?>" /><br/>
|
1270 |
+
<?php _e( '(e.g. No Movies Found)', 'cpt-plugin' ); ?></td>
|
1271 |
+
</tr>
|
1272 |
+
|
1273 |
+
<tr valign="top">
|
1274 |
+
<th scope="row"><?php _e('Not Found in Trash', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1275 |
+
<td><input type="text" name="cpt_labels[not_found_in_trash]" tabindex="2" value="<?php if (isset($cpt_labels["not_found_in_trash"])) { echo esc_attr($cpt_labels["not_found_in_trash"]); } ?>" /><br/>
|
1276 |
+
<?php _e( '(e.g. No Movies found in Trash)', 'cpt-plugin' ); ?></td>
|
1277 |
+
</tr>
|
1278 |
+
|
1279 |
+
<tr valign="top">
|
1280 |
+
<th scope="row"><?php _e('Parent', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1281 |
+
<td><input type="text" name="cpt_labels[parent]" tabindex="2" value="<?php if (isset($cpt_labels["parent"])) { echo esc_attr($cpt_labels["parent"]); } ?>" /><br/>
|
1282 |
+
<?php _e( '(e.g. Parent Movie)', 'cpt-plugin' ); ?></td>
|
1283 |
+
</tr>
|
1284 |
+
|
1285 |
+
</table>
|
1286 |
+
</div>
|
1287 |
+
|
1288 |
+
<div style="display:none;" id="slidepanel2">
|
1289 |
+
<table class="form-table">
|
1290 |
+
<tr valign="top">
|
1291 |
+
<th scope="row"><?php _e('Public', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Whether posts of this type should be shown in the admin UI', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1292 |
+
<td>
|
1293 |
+
<select name="cpt_custom_post_type[public]" tabindex="4">
|
1294 |
+
<option value="0" <?php if (isset($cpt_public)) { if ($cpt_public == 0 && $cpt_public != '') { echo 'selected="selected"'; } } ?>><?php _e( 'False', 'cpt-plugin' ); ?></option>
|
1295 |
+
<option value="1" <?php if (isset($cpt_public)) { if ($cpt_public == 1 || is_null($cpt_public)) { echo 'selected="selected"'; } } else { echo 'selected="selected"'; } ?>><?php _e( 'True', 'cpt-plugin' ); ?></option>
|
1296 |
+
</select> <?php _e( '(default: True)', 'cpt-plugin' ); ?>
|
1297 |
+
</td>
|
1298 |
+
</tr>
|
1299 |
+
|
1300 |
+
<tr valign="top">
|
1301 |
+
<th scope="row"><?php _e('Show UI', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Whether to generate a default UI for managing this post type', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1302 |
+
<td>
|
1303 |
+
<select name="cpt_custom_post_type[show_ui]" tabindex="5">
|
1304 |
+
<option value="0" <?php if (isset($cpt_showui)) { if ($cpt_showui == 0 && $cpt_showui != '') { echo 'selected="selected"'; } } ?>><?php _e( 'False', 'cpt-plugin' ); ?></option>
|
1305 |
+
<option value="1" <?php if (isset($cpt_showui)) { if ($cpt_showui == 1 || is_null($cpt_showui)) { echo 'selected="selected"'; } } else { echo 'selected="selected"'; } ?>><?php _e( 'True', 'cpt-plugin' ); ?></option>
|
1306 |
+
</select> <?php _e( '(default: True)', 'cpt-plugin' ); ?>
|
1307 |
+
</td>
|
1308 |
+
</tr>
|
1309 |
+
|
1310 |
+
<tr valign="top">
|
1311 |
+
<th scope="row"><?php _e('Has Archive', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Whether the post type will have a post type archive page', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1312 |
+
<td>
|
1313 |
+
<select name="cpt_custom_post_type[has_archive]" tabindex="6">
|
1314 |
+
<option value="0" <?php if (isset($cpt_has_archive)) { if ($cpt_has_archive == 0) { echo 'selected="selected"'; } } else { echo 'selected="selected"'; } ?>><?php _e( 'False', 'cpt-plugin' ); ?></option>
|
1315 |
+
<option value="1" <?php if (isset($cpt_has_archive)) { if ($cpt_has_archive == 1) { echo 'selected="selected"'; } } ?>><?php _e( 'True', 'cpt-plugin' ); ?></option>
|
1316 |
+
</select> <?php _e( '(default: False)', 'cpt-plugin' ); ?>
|
1317 |
+
</td>
|
1318 |
+
</tr>
|
1319 |
+
|
1320 |
+
<tr valign="top">
|
1321 |
+
<th scope="row"><?php _e('Exclude From Search', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Whether the post type will be searchable', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1322 |
+
<td>
|
1323 |
+
<select name="cpt_custom_post_type[exclude_from_search]" tabindex="6">
|
1324 |
+
<option value="0" <?php if (isset($cpt_exclude_from_search)) { if ($cpt_exclude_from_search == 0) { echo 'selected="selected"'; } } else { echo 'selected="selected"'; } ?>><?php _e( 'False', 'cpt-plugin' ); ?></option>
|
1325 |
+
<option value="1" <?php if (isset($cpt_exclude_from_search)) { if ($cpt_exclude_from_search == 1) { echo 'selected="selected"'; } } ?>><?php _e( 'True', 'cpt-plugin' ); ?></option>
|
1326 |
+
</select> <?php _e( '(default: False)', 'cpt-plugin' ); ?>
|
1327 |
+
</td>
|
1328 |
+
</tr>
|
1329 |
+
|
1330 |
+
<tr valign="top">
|
1331 |
+
<th scope="row"><?php _e('Capability Type', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'The post type to use for checking read, edit, and delete capabilities', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1332 |
+
<td><input type="text" name="cpt_custom_post_type[capability_type]" tabindex="6" value="<?php if ( isset( $cpt_capability ) ) { echo esc_attr( $cpt_capability ); } else { echo 'post'; } ?>" /></td>
|
1333 |
+
</tr>
|
1334 |
+
|
1335 |
+
<tr valign="top">
|
1336 |
+
<th scope="row"><?php _e('Hierarchical', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Whether the post type can have parent-child relationships', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1337 |
+
<td>
|
1338 |
+
<select name="cpt_custom_post_type[hierarchical]" tabindex="8">
|
1339 |
+
<option value="0" <?php if (isset($cpt_hierarchical)) { if ($cpt_hierarchical == 0) { echo 'selected="selected"'; } } else { echo 'selected="selected"'; } ?>><?php _e( 'False', 'cpt-plugin' ); ?></option>
|
1340 |
+
<option value="1" <?php if (isset($cpt_hierarchical)) { if ($cpt_hierarchical == 1) { echo 'selected="selected"'; } } ?>><?php _e( 'True', 'cpt-plugin' ); ?></option>
|
1341 |
+
</select> <?php _e( '(default: False)', 'cpt-plugin' ); ?>
|
1342 |
+
</td>
|
1343 |
+
</tr>
|
1344 |
+
|
1345 |
+
<tr valign="top">
|
1346 |
+
<th scope="row"><?php _e('Rewrite', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Triggers the handling of rewrites for this post type', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1347 |
+
<td>
|
1348 |
+
<select name="cpt_custom_post_type[rewrite]" tabindex="9">
|
1349 |
+
<option value="0" <?php if (isset($cpt_rewrite)) { if ($cpt_rewrite == 0 && $cpt_rewrite != '') { echo 'selected="selected"'; } } ?>><?php _e( 'False', 'cpt-plugin' ); ?></option>
|
1350 |
+
<option value="1" <?php if (isset($cpt_rewrite)) { if ($cpt_rewrite == 1 || is_null($cpt_rewrite)) { echo 'selected="selected"'; } } else { echo 'selected="selected"'; } ?>><?php _e( 'True', 'cpt-plugin' ); ?></option>
|
1351 |
+
</select> <?php _e( '(default: True)', 'cpt-plugin' ); ?>
|
1352 |
+
</td>
|
1353 |
+
</tr>
|
1354 |
+
|
1355 |
+
<tr valign="top">
|
1356 |
+
<th scope="row"><?php _e('Custom Rewrite Slug', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Custom slug to use instead of the default.' ,'cpt-plugin' ); ?>" class="help">?</a></th>
|
1357 |
+
<td><input type="text" name="cpt_custom_post_type[rewrite_slug]" tabindex="10" value="<?php if (isset($cpt_rewrite_slug)) { echo esc_attr($cpt_rewrite_slug); } ?>" /> <?php _e( '(default: post type name)', 'cpt-plugin' ); ?></td>
|
1358 |
+
</tr>
|
1359 |
+
|
1360 |
+
<tr valign="top">
|
1361 |
+
<th scope="row"><?php _e('With Front', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Should the permastruct be prepended with the front base.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1362 |
+
<td>
|
1363 |
+
<select name="cpt_custom_post_type[rewrite_withfront]" tabindex="4">
|
1364 |
+
<option value="0" <?php if (isset($cpt_rewrite_withfront)) { if ($cpt_rewrite_withfront == 0 && $cpt_rewrite_withfront != '') { echo 'selected="selected"'; } } ?>><?php _e( 'False', 'cpt-plugin' ); ?></option>
|
1365 |
+
<option value="1" <?php if (isset($cpt_rewrite_withfront)) { if ($cpt_rewrite_withfront == 1 || is_null($cpt_rewrite_withfront)) { echo 'selected="selected"'; } } else { echo 'selected="selected"'; } ?>><?php _e( 'True', 'cpt-plugin' ); ?></option>
|
1366 |
+
</select> <?php _e( '(default: True)', 'cpt-plugin' ); ?>
|
1367 |
+
</td>
|
1368 |
+
</tr>
|
1369 |
+
|
1370 |
+
<tr valign="top">
|
1371 |
+
<th scope="row"><?php _e('Query Var', 'cpt-plugin') ?> <a href="#" title="" class="help">?</a></th>
|
1372 |
+
<td>
|
1373 |
+
<select name="cpt_custom_post_type[query_var]" tabindex="10">
|
1374 |
+
<option value="0" <?php if (isset($cpt_query_var)) { if ($cpt_query_var == 0 && $cpt_query_var != '') { echo 'selected="selected"'; } } ?>><?php _e( 'False', 'cpt-plugin' ); ?></option>
|
1375 |
+
<option value="1" <?php if (isset($cpt_query_var)) { if ($cpt_query_var == 1 || is_null($cpt_query_var)) { echo 'selected="selected"'; } } else { echo 'selected="selected"'; } ?>><?php _e( 'True', 'cpt-plugin' ); ?></option>
|
1376 |
+
</select> <?php _e( '(default: True)', 'cpt-plugin' ); ?>
|
1377 |
+
</td>
|
1378 |
+
</tr>
|
1379 |
+
|
1380 |
+
<tr valign="top">
|
1381 |
+
<th scope="row"><?php _e('Menu Position', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'The position in the menu order the post type should appear. show_in_menu must be true.', 'cpt-plugin' ); ?>" class="help">?</a>
|
1382 |
+
<p><?php _e( 'See <a href="http://codex.wordpress.org/Function_Reference/register_post_type#Parameters">Available options</a> in the "menu_position" section. Range of 5-100', 'cpt-plugin' ); ?></p>
|
1383 |
+
</th>
|
1384 |
+
<td><input type="text" name="cpt_custom_post_type[menu_position]" tabindex="11" size="5" value="<?php if (isset($cpt_menu_position)) { echo esc_attr($cpt_menu_position); } ?>" /></td>
|
1385 |
+
</tr>
|
1386 |
+
|
1387 |
+
<tr valign="top">
|
1388 |
+
<th scope="row"><?php _e('Show in Menu', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Whether to show the post type in the admin menu and where to show that menu. Note that show_ui must be true', 'cpt-plugin' ); ?>" class="help">?</a>
|
1389 |
+
<p><?php _e( '"Show UI" must be "true". If an existing top level page such as "tools.php" is indicated for second input, post type will be sub menu of that.', 'cpt-plugins' ); ?></p>
|
1390 |
+
</th>
|
1391 |
+
<td>
|
1392 |
+
<p><select name="cpt_custom_post_type[show_in_menu]" tabindex="10">
|
1393 |
+
<option value="0" <?php if (isset($cpt_show_in_menu)) { if ($cpt_show_in_menu == 0) { echo 'selected="selected"'; } } ?>><?php _e( 'False', 'cpt-plugin' ); ?></option>
|
1394 |
+
<option value="1" <?php if (isset($cpt_show_in_menu)) { if ($cpt_show_in_menu == 1 || is_null($cpt_show_in_menu)) { echo 'selected="selected"'; } } else { echo 'selected="selected"'; } ?>><?php _e( 'True', 'cpt-plugin' ); ?></option>
|
1395 |
+
</select></p>
|
1396 |
+
<p>
|
1397 |
+
<input type="text" name="cpt_custom_post_type[show_in_menu_string]" tabindex="12" size="20" value="<?php if (isset($cpt_show_in_menu_string)) { echo esc_attr($cpt_show_in_menu_string); } ?>" /></p></td>
|
1398 |
+
</tr>
|
1399 |
+
|
1400 |
+
<tr valign="top">
|
1401 |
+
<th scope="row"><?php _e('Menu Icon', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'URL to image to be used as menu icon.', 'cpt-plugin' ); ?>" class="help">?</a>
|
1402 |
+
</th>
|
1403 |
+
<td><input type="text" name="cpt_custom_post_type[menu_icon]" tabindex="11" size="20" value="<?php if (isset($cpt_menu_icon)) { echo esc_attr($cpt_menu_icon); } ?>" /> (Full URL for icon)</td>
|
1404 |
+
</tr>
|
1405 |
+
|
1406 |
+
<tr valign="top">
|
1407 |
+
<th scope="row"><?php _e('Supports', 'cpt-plugin') ?></th>
|
1408 |
+
<td>
|
1409 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="11" value="title" <?php if (isset($cpt_supports) && is_array($cpt_supports)) { if (in_array('title', $cpt_supports)) { echo 'checked="checked"'; } } elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> <?php _e( 'Title' , 'cpt-plugin' ); ?> <a href="#" title="<?php esc_attr_e( 'Adds the title meta box when creating content for this custom post type', 'cpt-plugin' ); ?>" class="help">?</a> <br/ >
|
1410 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="12" value="editor" <?php if (isset($cpt_supports) && is_array($cpt_supports)) { if (in_array('editor', $cpt_supports)) { echo 'checked="checked"'; } } elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> <?php _e( 'Editor' , 'cpt-plugin' ); ?> <a href="#" title="<?php esc_attr_e( 'Adds the content editor meta box when creating content for this custom post type', 'cpt-plugin' ); ?>" class="help">?</a> <br/ >
|
1411 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="13" value="excerpt" <?php if (isset($cpt_supports) && is_array($cpt_supports)) { if (in_array('excerpt', $cpt_supports)) { echo 'checked="checked"'; } } elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> <?php _e( 'Excerpt' , 'cpt-plugin' ); ?> <a href="#" title="<?php esc_attr_e( 'Adds the excerpt meta box when creating content for this custom post type', 'cpt-plugin' ); ?>" class="help">?</a> <br/ >
|
1412 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="14" value="trackbacks" <?php if (isset($cpt_supports) && is_array($cpt_supports)) { if (in_array('trackbacks', $cpt_supports)) { echo 'checked="checked"'; } } elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> <?php _e( 'Trackbacks' , 'cpt-plugin' ); ?> <a href="#" title="<?php esc_attr_e( 'Adds the trackbacks meta box when creating content for this custom post type', 'cpt-plugin' ); ?>" class="help">?</a> <br/ >
|
1413 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="15" value="custom-fields" <?php if (isset($cpt_supports) && is_array($cpt_supports)) { if (in_array('custom-fields', $cpt_supports)) { echo 'checked="checked"'; } } elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> <?php _e( 'Custom Fields' , 'cpt-plugin' ); ?> <a href="#" title="<?php esc_attr_e( 'Adds the custom fields meta box when creating content for this custom post type', 'cpt-plugin' ); ?>" class="help">?</a> <br/ >
|
1414 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="16" value="comments" <?php if (isset($cpt_supports) && is_array($cpt_supports)) { if (in_array('comments', $cpt_supports)) { echo 'checked="checked"'; } } elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> <?php _e( 'Comments' , 'cpt-plugin' ); ?> <a href="#" title="<?php esc_attr_e( 'Adds the comments meta box when creating content for this custom post type', 'cpt-plugin' ); ?>" class="help">?</a> <br/ >
|
1415 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="17" value="revisions" <?php if (isset($cpt_supports) && is_array($cpt_supports)) { if (in_array('revisions', $cpt_supports)) { echo 'checked="checked"'; } } elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> <?php _e( 'Revisions' , 'cpt-plugin' ); ?> <a href="#" title="<?php esc_attr_e( 'Adds the revisions meta box when creating content for this custom post type', 'cpt-plugin' ); ?>" class="help">?</a> <br/ >
|
1416 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="18" value="thumbnail" <?php if (isset($cpt_supports) && is_array($cpt_supports)) { if (in_array('thumbnail', $cpt_supports)) { echo 'checked="checked"'; } } elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> <?php _e( 'Featured Image' , 'cpt-plugin' ); ?> <a href="#" title="<?php esc_attr_e( 'Adds the featured image meta box when creating content for this custom post type', 'cpt-plugin' ); ?>" class="help">?</a> <br/ >
|
1417 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="19" value="author" <?php if (isset($cpt_supports) && is_array($cpt_supports)) { if (in_array('author', $cpt_supports)) { echo 'checked="checked"'; } } elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> <?php _e( 'Author' , 'cpt-plugin' ); ?> <a href="#" title="<?php esc_attr_e( 'Adds the author meta box when creating content for this custom post type', 'cpt-plugin' ); ?>" class="help">?</a> <br/ >
|
1418 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="20" value="page-attributes" <?php if (isset($cpt_supports) && is_array($cpt_supports)) { if (in_array('page-attributes', $cpt_supports)) { echo 'checked="checked"'; } } elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> <?php _e( 'Page Attributes' , 'cpt-plugin' ); ?> <a href="#" title="<?php esc_attr_e( 'Adds the page attribute meta box when creating content for this custom post type', 'cpt-plugin' ); ?>" class="help">?</a> <br/ >
|
1419 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="21" value="post-formats" <?php if (isset($cpt_supports) && is_array($cpt_supports)) { if (in_array('post-formats', $cpt_supports)) { echo 'checked="checked"'; } } elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> <?php _e( 'Post Formats' , 'cpt-plugin' ); ?> <a href="#" title="<?php esc_attr_e( 'Adds post format support', 'cpt-plugin' ); ?>" class="help">?</a> <br/ >
|
1420 |
+
</td>
|
1421 |
+
</tr>
|
1422 |
+
|
1423 |
+
<tr valign="top">
|
1424 |
+
<th scope="row"><?php _e('Built-in Taxonomies', 'cpt-plugin') ?></th>
|
1425 |
+
<td>
|
1426 |
+
<?php
|
1427 |
+
//load built-in WP Taxonomies
|
1428 |
+
$args=array( 'public' => true );
|
1429 |
+
$output = 'objects';
|
1430 |
+
$add_taxes = get_taxonomies($args,$output);
|
1431 |
+
foreach ($add_taxes as $add_tax ) {
|
1432 |
+
if ( $add_tax->name != 'nav_menu' && $add_tax->name != 'post_format') {
|
1433 |
+
?>
|
1434 |
+
<input type="checkbox" name="cpt_addon_taxes[]" tabindex="20" value="<?php echo $add_tax->name; ?>" <?php if (isset($cpt_taxes) && is_array($cpt_taxes)) { if (in_array($add_tax->name, $cpt_taxes)) { echo 'checked="checked"'; } } ?> /> <?php echo $add_tax->label; ?><br />
|
1435 |
+
<?php
|
1436 |
+
}
|
1437 |
+
}
|
1438 |
+
?>
|
1439 |
+
</td>
|
1440 |
+
</tr>
|
1441 |
+
|
1442 |
+
</table>
|
1443 |
+
</div>
|
1444 |
+
|
1445 |
+
<p class="submit">
|
1446 |
+
<input type="submit" class="button-primary" tabindex="21" name="cpt_submit" value="<?php echo $cpt_submit_name; ?>" />
|
1447 |
+
</p>
|
1448 |
|
1449 |
+
</form>
|
1450 |
+
</td>
|
1451 |
+
<?php //BEGIN TAXONOMY SIDE ?>
|
1452 |
+
<td width="50%" valign="top">
|
1453 |
+
<?php
|
1454 |
+
//debug area
|
1455 |
+
$cpt_options = get_option('cpt_custom_tax_types');
|
1456 |
+
?>
|
1457 |
+
<p><?php _e( 'If you are unfamiliar with the options below only fill out the <strong>Taxonomy Name</strong> and <strong>Post Type Name</strong> fields. The other settings are set to the most common defaults for custom taxonomies. Hover over the question mark for more details.', 'cpt-plugin' );?></p>
|
1458 |
+
<form method="post" <?php echo $RETURN_URL; ?>>
|
1459 |
+
<?php if ( function_exists('wp_nonce_field') )
|
1460 |
+
wp_nonce_field('cpt_add_custom_taxonomy'); ?>
|
1461 |
+
<?php if (isset($_GET['edittax'])) { ?>
|
1462 |
+
<input type="hidden" name="cpt_edit_tax" value="<?php echo $editTax; ?>" />
|
1463 |
+
<?php } ?>
|
1464 |
+
<table class="form-table">
|
1465 |
+
<tr valign="top">
|
1466 |
+
<th scope="row"><?php _e('Taxonomy Name', 'cpt-plugin') ?> <span class="required">*</span> <a href="#" title="<?php esc_attr_e( 'The taxonomy name. Used to retrieve custom taxonomy content. Should be short and sweet', 'cpt-plugin' ); ?>" class="help">?</a>
|
1467 |
+
<p><?php _e('Note: Changing the name, after adding terms to the taxonomy, will not update the terms in the database.', 'cpt-plugin' ); ?></p>
|
1468 |
+
</th>
|
1469 |
+
<td><input type="text" name="cpt_custom_tax[name]" maxlength="32" onblur="this.value=this.value.toLowerCase()" tabindex="21" value="<?php if (isset($cpt_tax_name)) { echo esc_attr($cpt_tax_name); } ?>" /> <?php _e( '(e.g. actors)', 'cpt-plugin' ); ?>
|
1470 |
+
<p><strong><?php _e( 'Max 32 characters, should only contain alphanumeric lowercase characters and underscores in place of spaces.', 'cpt-plugin' ); ?></strong></p>
|
1471 |
+
</td>
|
1472 |
+
</tr>
|
1473 |
+
|
1474 |
+
<tr valign="top">
|
1475 |
+
<th scope="row"><?php _e('Label', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Taxonomy label. Used in the admin menu for displaying custom taxonomy.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1476 |
+
<td><input type="text" name="cpt_custom_tax[label]" tabindex="22" value="<?php if (isset($cpt_tax_label)) { echo esc_attr( $cpt_tax_label ); } ?>" /> <?php _e( '(e.g. Actors)', 'cpt-plugin' ); ?></td>
|
1477 |
+
</tr>
|
1478 |
+
|
1479 |
+
<tr valign="top">
|
1480 |
+
<th scope="row"><?php _e('Singular Label', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Taxonomy Singular label. Used in WordPress when a singular label is needed.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1481 |
+
<td><input type="text" name="cpt_custom_tax[singular_label]" tabindex="23" value="<?php if (isset($cpt_singular_label_tax)) { echo esc_attr( $cpt_singular_label_tax ); } ?>" /> <?php _e( '(e.g. Actor)', 'cpt-plugin' ); ?></td>
|
1482 |
+
</tr>
|
1483 |
+
|
1484 |
+
<tr valign="top">
|
1485 |
+
<th scope="row"><?php _e('Attach to Post Type', 'cpt-plugin') ?> <span class="required">*</span> <a href="#" title="<?php esc_attr_e ('What post type object to attach the custom taxonomy to. Can be post, page, or link by default. Can also be any custom post type name.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1486 |
+
<td>
|
1487 |
+
<?php if ( isset( $cpt_tax_object_type ) ) { ?>
|
1488 |
+
<strong><?php _e( 'This is the old method. Delete the post type from the textbox and check which post type to attach this taxonomy to</strong>', 'cpt-plugin' ); ?>
|
1489 |
+
<input type="text" name="cpt_custom_tax[cpt_name]" tabindex="24" value="<?php if (isset($cpt_tax_object_type)) { echo esc_attr($cpt_tax_object_type); } ?>" /> <?php _e( '(e.g. movies)', 'cpt-plugin' ); ?>
|
1490 |
+
<?php } ?>
|
1491 |
+
<?php
|
1492 |
+
$args=array(
|
1493 |
+
'public' => true
|
1494 |
+
);
|
1495 |
+
$output = 'objects'; // or objects
|
1496 |
+
$post_types=get_post_types($args,$output);
|
1497 |
+
foreach ($post_types as $post_type ) {
|
1498 |
+
if ( $post_type->name != 'attachment' ) {
|
1499 |
+
?>
|
1500 |
+
<input type="checkbox" name="cpt_post_types[]" tabindex="20" value="<?php echo $post_type->name; ?>" <?php if (isset($cpt_post_types) && is_array($cpt_post_types)) { if (in_array($post_type->name, $cpt_post_types)) { echo 'checked="checked"'; } } ?> /> <?php echo $post_type->label; ?><br />
|
1501 |
+
<?php
|
1502 |
+
}
|
1503 |
+
}
|
1504 |
+
?>
|
1505 |
+
</td>
|
1506 |
+
</tr>
|
1507 |
+
|
1508 |
+
<tr valign="top">
|
1509 |
+
<td colspan="2">
|
1510 |
+
<p align="center">
|
1511 |
+
<?php echo '<a href="#" class="comment_button" id="3">' . __('Advanced Label Options', 'cpt-plugin') . '</a>'; ?> |
|
1512 |
+
<?php echo '<a href="#" class="comment_button" id="4">' . __('Advanced Options', 'cpt-plugin') . '</a>'; ?>
|
1513 |
+
</p>
|
1514 |
+
</td>
|
1515 |
+
</tr>
|
1516 |
+
|
1517 |
+
</table>
|
1518 |
+
|
1519 |
+
<div style="display:none;" id="slidepanel3">
|
1520 |
+
<p><?php _e('Below are the advanced label options for custom taxonomies. If you are unfamiliar with these labels the plugin will automatically create labels based off of your custom taxonomy name', 'cpt-plugin'); ?></p>
|
1521 |
+
<table class="form-table">
|
1522 |
+
<tr valign="top">
|
1523 |
+
<th scope="row"><?php _e('Search Items', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1524 |
+
<td><input type="text" name="cpt_tax_labels[search_items]" tabindex="2" value="<?php if (isset($cpt_tax_labels["search_items"])) { echo esc_attr($cpt_tax_labels["search_items"]); } ?>" /><br/>
|
1525 |
+
<?php _e('(e.g. Search Actors)', 'cpt-plugin' ); ?></td>
|
1526 |
+
</tr>
|
1527 |
+
|
1528 |
+
<tr valign="top">
|
1529 |
+
<th scope="row"><?php _e('Popular Items', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1530 |
+
<td><input type="text" name="cpt_tax_labels[popular_items]" tabindex="2" value="<?php if (isset($cpt_tax_labels["popular_items"])) { echo esc_attr($cpt_tax_labels["popular_items"]); } ?>" /><br/>
|
1531 |
+
<?php _e('(e.g. Popular Actors)', 'cpt-plugin' ); ?></td>
|
1532 |
+
</tr>
|
1533 |
+
|
1534 |
+
<tr valign="top">
|
1535 |
+
<th scope="row"><?php _e('All Items', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1536 |
+
<td><input type="text" name="cpt_tax_labels[all_items]" tabindex="2" value="<?php if (isset($cpt_tax_labels["all_items"])) { echo esc_attr($cpt_tax_labels["all_items"]); } ?>" /><br/>
|
1537 |
+
<?php _e('(e.g. All Actors)', 'cpt-plugin' ); ?></td>
|
1538 |
+
</tr>
|
1539 |
+
|
1540 |
+
<tr valign="top">
|
1541 |
+
<th scope="row"><?php _e('Parent Item', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1542 |
+
<td><input type="text" name="cpt_tax_labels[parent_item]" tabindex="2" value="<?php if (isset($cpt_tax_labels["parent_item"])) { echo esc_attr($cpt_tax_labels["parent_item"]); } ?>" /><br/>
|
1543 |
+
<?php _e('(e.g. Parent Actor)', 'cpt-plugin' ); ?></td>
|
1544 |
+
</tr>
|
1545 |
+
|
1546 |
+
<tr valign="top">
|
1547 |
+
<th scope="row"><?php _e('Parent Item Colon', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1548 |
+
<td><input type="text" name="cpt_tax_labels[parent_item_colon]" tabindex="2" value="<?php if (isset($cpt_tax_labels["parent_item_colon"])) { echo esc_attr($cpt_tax_labels["parent_item_colon"]); } ?>" /><br/>
|
1549 |
+
<?php _e('(e.g. Parent Actor:)', 'cpt-plugin' ); ?></td>
|
1550 |
+
</tr>
|
1551 |
+
|
1552 |
+
<tr valign="top">
|
1553 |
+
<th scope="row"><?php _e('Edit Item', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1554 |
+
<td><input type="text" name="cpt_tax_labels[edit_item]" tabindex="2" value="<?php if (isset($cpt_tax_labels["edit_item"])) { echo esc_attr($cpt_tax_labels["edit_item"]); } ?>" /><br/>
|
1555 |
+
<?php _e( '(e.g. Edit Actor)', 'cpt-plugin' ); ?></td>
|
1556 |
+
</tr>
|
1557 |
+
|
1558 |
+
<tr valign="top">
|
1559 |
+
<th scope="row"><?php _e('Update Item', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1560 |
+
<td><input type="text" name="cpt_tax_labels[update_item]" tabindex="2" value="<?php if (isset($cpt_tax_labels["update_item"])) { echo esc_attr($cpt_tax_labels["update_item"]); } ?>" /><br/>
|
1561 |
+
<?php _e( '(e.g. Update Actor)', 'cpt-plugin' ); ?></td>
|
1562 |
+
</tr>
|
1563 |
+
|
1564 |
+
<tr valign="top">
|
1565 |
+
<th scope="row"><?php _e('Add New Item', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1566 |
+
<td><input type="text" name="cpt_tax_labels[add_new_item]" tabindex="2" value="<?php if (isset($cpt_tax_labels["add_new_item"])) { echo esc_attr($cpt_tax_labels["add_new_item"]); } ?>" /><br/>
|
1567 |
+
<?php _e( '(e.g. Add New Actor)', 'cpt-plugin' ); ?></td>
|
1568 |
+
</tr>
|
1569 |
+
|
1570 |
+
<tr valign="top">
|
1571 |
+
<th scope="row"><?php _e('New Item Name', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1572 |
+
<td><input type="text" name="cpt_tax_labels[new_item_name]" tabindex="2" value="<?php if (isset($cpt_tax_labels["new_item_name"])) { echo esc_attr($cpt_tax_labels["new_item_name"]); } ?>" /><br/>
|
1573 |
+
<?php _e( '(e.g. New Actor Name)', 'cpt-plugin' ); ?></td>
|
1574 |
+
</tr>
|
1575 |
+
|
1576 |
+
<tr valign="top">
|
1577 |
+
<th scope="row"><?php _e('Separate Items with Commas', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1578 |
+
<td><input type="text" name="cpt_tax_labels[separate_items_with_commas]" tabindex="2" value="<?php if (isset($cpt_tax_labels["separate_items_with_commas"])) { echo esc_attr($cpt_tax_labels["separate_items_with_commas"]); } ?>" /><br/>
|
1579 |
+
<?php _e( '(e.g. Separate actors with commas)', 'cpt-plugin' ); ?></td>
|
1580 |
+
</tr>
|
1581 |
+
|
1582 |
+
<tr valign="top">
|
1583 |
+
<th scope="row"><?php _e('Add or Remove Items', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1584 |
+
<td><input type="text" name="cpt_tax_labels[add_or_remove_items]" tabindex="2" value="<?php if (isset($cpt_tax_labels["add_or_remove_items"])) { echo esc_attr($cpt_tax_labels["add_or_remove_items"]); } ?>" /><br/>
|
1585 |
+
<?php _e( '(e.g. Add or remove actors)', 'cpt-plugin' ); ?></td>
|
1586 |
+
</tr>
|
1587 |
+
|
1588 |
+
<tr valign="top">
|
1589 |
+
<th scope="row"><?php _e('Choose From Most Used', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1590 |
+
<td><input type="text" name="cpt_tax_labels[choose_from_most_used]" tabindex="2" value="<?php if (isset($cpt_tax_labels["choose_from_most_used"])) { echo esc_attr($cpt_tax_labels["choose_from_most_used"]); } ?>" /><br/>
|
1591 |
+
<?php _e( '(e.g. Choose from the most used actors)', 'cpt-plugin' ); ?></td>
|
1592 |
+
</tr>
|
1593 |
+
</table>
|
1594 |
+
</div>
|
1595 |
+
|
1596 |
+
<div style="display:none;" id="slidepanel4">
|
1597 |
+
<table class="form-table">
|
1598 |
+
<tr valign="top">
|
1599 |
+
<th scope="row"><?php _e('Hierarchical', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Whether the taxonomy can have parent-child relationships', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1600 |
+
<td>
|
1601 |
+
<select name="cpt_custom_tax[hierarchical]" tabindex="25">
|
1602 |
+
<option value="0" <?php if (isset($cpt_tax_hierarchical)) { if ($cpt_tax_hierarchical == 0) { echo 'selected="selected"'; } } else { echo 'selected="selected"'; } ?>>False</option>
|
1603 |
+
<option value="1" <?php if (isset($cpt_tax_hierarchical)) { if ($cpt_tax_hierarchical == 1) { echo 'selected="selected"'; } } ?>>True</option>
|
1604 |
+
</select> <?php _e('(default: False)', 'cpt-plugin' ); ?>
|
1605 |
+
</td>
|
1606 |
+
</tr>
|
1607 |
+
|
1608 |
+
<tr valign="top">
|
1609 |
+
<th scope="row"><?php _e('Show UI', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Whether to generate a default UI for managing this custom taxonomy', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1610 |
+
<td>
|
1611 |
+
<select name="cpt_custom_tax[show_ui]" tabindex="26">
|
1612 |
+
<option value="0" <?php if (isset($cpt_tax_showui)) { if ($cpt_tax_showui == 0 && $cpt_tax_showui != '') { echo 'selected="selected"'; } } ?>><?php _e( 'False', 'cpt-plugin' ); ?></option>
|
1613 |
+
<option value="1" <?php if (isset($cpt_tax_showui)) { if ($cpt_tax_showui == 1 || is_null($cpt_tax_showui)) { echo 'selected="selected"'; } } else { echo 'selected="selected"'; } ?>><?php _e( 'True', 'cpt-plugin' ); ?></option>
|
1614 |
+
</select> <?php _e('(default: True)', 'cpt-plugin' ); ?>
|
1615 |
+
</td>
|
1616 |
+
</tr>
|
1617 |
+
|
1618 |
+
<tr valign="top">
|
1619 |
+
<th scope="row"><?php _e('Query Var', 'cpt-plugin') ?> <a href="#" title="" class="help">?</a></th>
|
1620 |
+
<td>
|
1621 |
+
<select name="cpt_custom_tax[query_var]" tabindex="27">
|
1622 |
+
<option value="0" <?php if (isset($cpt_tax_query_var)) { if ($cpt_tax_query_var == 0 && $cpt_tax_query_var != '') { echo 'selected="selected"'; } } ?>><?php _e( 'False', 'cpt-plugin' ); ?></option>
|
1623 |
+
<option value="1" <?php if (isset($cpt_tax_query_var)) { if ($cpt_tax_query_var == 1 || is_null($cpt_tax_query_var)) { echo 'selected="selected"'; } } else { echo 'selected="selected"'; } ?>><?php _e( 'True', 'cpt-plugin' ); ?></option>
|
1624 |
+
</select> <?php _e( '(default: True)', 'cpt-plugin' ); ?>
|
1625 |
+
</td>
|
1626 |
+
</tr>
|
1627 |
+
|
1628 |
+
<tr valign="top">
|
1629 |
+
<th scope="row"><?php _e('Rewrite', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Triggers the handling of rewrites for this taxonomy', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1630 |
+
<td>
|
1631 |
+
<select name="cpt_custom_tax[rewrite]" tabindex="28">
|
1632 |
+
<option value="0" <?php if (isset($cpt_tax_rewrite)) { if ($cpt_tax_rewrite == 0 && $cpt_tax_rewrite != '') { echo 'selected="selected"'; } } ?>><?php _e( 'False', 'cpt-plugin' ); ?></option>
|
1633 |
+
<option value="1" <?php if (isset($cpt_tax_rewrite)) { if ($cpt_tax_rewrite == 1 || is_null($cpt_tax_rewrite)) { echo 'selected="selected"'; } } else { echo 'selected="selected"'; } ?>><?php _e( 'True', 'cpt-plugin' ); ?></option>
|
1634 |
+
</select> <?php _e( '(default: True)', 'cpt-plugin' ); ?>
|
1635 |
+
</td>
|
1636 |
+
</tr>
|
1637 |
+
|
1638 |
+
<tr valign="top">
|
1639 |
+
<th scope="row"><?php _e('Custom Rewrite Slug', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Custom Taxonomy Rewrite Slug', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1640 |
+
<td><input type="text" name="cpt_custom_tax[rewrite_slug]" tabindex="9" value="<?php if (isset($cpt_tax_rewrite_slug)) { echo esc_attr($cpt_tax_rewrite_slug); } ?>" /> <?php _e( '(default: taxonomy name)', 'cpt-plugin' ); ?></td>
|
1641 |
+
</tr>
|
1642 |
+
|
1643 |
+
<?php if ( version_compare( CPTUI_WP_VERSION, '3.5', '>' ) ) { ?>
|
1644 |
+
<tr valign="top">
|
1645 |
+
<th scope="row"><?php _e('Show Admin Column', 'cpt-plugin') ?> <a href="#" title="<?php esc_attr_e( 'Whether to allow automatic creation of taxonomy columns on associated post-types.', 'cpt-plugin' ); ?>" class="help">?</a></th>
|
1646 |
+
<td>
|
1647 |
+
<select name="cpt_custom_tax[show_admin_column]" tabindex="28">
|
1648 |
+
<?php if ( !isset( $cpt_tax_show_admin_column ) || $cpt_tax_show_admin_column == 0 ) { ?>
|
1649 |
+
<option value="0" selected="selected"><?php _e( 'False', 'cpt-plugin' ); ?></option>
|
1650 |
+
<option value="1"><?php _e( 'True', 'cpt-plugin' ); ?></option>
|
1651 |
+
<?php } else { ?>
|
1652 |
+
<option value="0"><?php _e( 'False', 'cpt-plugin' ); ?></option>
|
1653 |
+
<option value="1" selected="selected"><?php _e( 'True', 'cpt-plugin' ); ?></option>
|
1654 |
+
<?php } ?>
|
1655 |
+
</select> <?php _e( '(default: False)', 'cpt-plugin' ); ?>
|
1656 |
+
</td>
|
1657 |
+
</tr>
|
1658 |
+
<?php } ?>
|
1659 |
+
|
1660 |
+
</table>
|
1661 |
+
</div>
|
1662 |
+
|
1663 |
+
<p class="submit">
|
1664 |
+
<input type="submit" class="button-primary" tabindex="29" name="cpt_add_tax" value="<?php echo $cpt_tax_submit_name; ?>" />
|
1665 |
+
</p>
|
1666 |
+
</form>
|
1667 |
+
</td>
|
1668 |
+
</tr>
|
1669 |
+
</table>
|
1670 |
+
</div>
|
1671 |
<?php
|
1672 |
+
//load footer
|
1673 |
+
cpt_footer();
|
1674 |
}
|
1675 |
|
1676 |
+
function cpt_footer() {
|
1677 |
+
?>
|
1678 |
+
<hr />
|
1679 |
+
<p class="cp_about"><a target="_blank" href="http://webdevstudios.com/support/forum/custom-post-type-ui/"><?php _e( 'Custom Post Type UI', 'cpt-plugin' ); ?></a> <?php _e( 'version', 'cpt-plugin' ); echo ' '.CPT_VERSION; ?> by <a href="http://webdevstudios.com" target="_blank">WebDevStudios</a> - <a href="https://github.com/WebDevStudios/custom-post-type-ui" target="_blank"><?php _e( 'Please Report Bugs', 'cpt-plugin' ); ?></a> · <?php _e( 'Follow on Twitter:', 'cpt-plugin' ); ?> <a href="http://twitter.com/williamsba" target="_blank">Brad</a> · <a href="http://twitter.com/webdevstudios" target="_blank">WebDevStudios</a></p>
|
1680 |
+
<?php
|
1681 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1682 |
|
1683 |
+
function cpt_check_return( $return ) {
|
1684 |
+
global $CPT_URL;
|
1685 |
+
|
1686 |
+
if ( $return == 'cpt' ) {
|
1687 |
+
return ( isset( $_GET['return'] ) ) ? admin_url( 'admin.php?page=cpt_sub_manage_cpt&return=cpt' ) : admin_url( 'admin.php?page=cpt_sub_manage_cpt' );
|
1688 |
+
} elseif ( $return == 'tax' ){
|
1689 |
+
return ( isset( $_GET['return'] ) ) ? admin_url( 'admin.php?page=cpt_sub_manage_taxonomies&return=tax' ) : admin_url( 'admin.php?page=cpt_sub_manage_taxonomies' );
|
1690 |
+
} elseif ( $return == 'add' ) {
|
1691 |
+
return admin_url( 'admin.php?page=cpt_sub_add_new' );
|
1692 |
+
} else {
|
1693 |
+
return admin_url( 'admin.php?page=cpt_sub_add_new' );
|
1694 |
}
|
1695 |
+
}
|
1696 |
|
1697 |
+
function get_disp_boolean($booText) {
|
1698 |
+
if ( empty( $booText ) || $booText == '0') {
|
1699 |
+
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1700 |
}
|
1701 |
|
1702 |
+
return true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1703 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1704 |
|
1705 |
+
function disp_boolean($booText) {
|
1706 |
+
if ( empty( $booText ) || $booText == '0' ) {
|
1707 |
+
return 'false';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1708 |
}
|
1709 |
|
1710 |
+
return 'true';
|
1711 |
+
}
|
1712 |
+
|
1713 |
+
function cpt_help_style() { ?>
|
1714 |
+
<style>
|
1715 |
+
.help:hover {
|
1716 |
+
font-weight: bold;
|
1717 |
+
}
|
1718 |
+
.required { color: rgb(255,0,0); }
|
1719 |
+
</style>
|
1720 |
+
<?php
|
1721 |
}
|
images/professional-wordpress-secondedition.jpg
ADDED
Binary file
|
images/professional-wordpress-thirdedition.jpg
DELETED
Binary file
|
images/professional-wordpress.jpg
ADDED
Binary file
|
inc/import_export.php
DELETED
@@ -1,327 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* This file controls all of the content from the Import/Export page.
|
4 |
-
*/
|
5 |
-
|
6 |
-
# Exit if accessed directly
|
7 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
8 |
-
|
9 |
-
/**
|
10 |
-
* Add our settings page to the menu.
|
11 |
-
*
|
12 |
-
* @since 0.9.0
|
13 |
-
*/
|
14 |
-
function cptui_importexport_admin_menu() {
|
15 |
-
add_submenu_page( 'cptui_main_menu', __( 'Import/Export', 'cpt-plugin' ), __( 'Import/Export', 'cpt-plugin' ), 'manage_options', 'cptui_importexport', 'cptui_importexport' );
|
16 |
-
}
|
17 |
-
add_action( 'admin_menu', 'cptui_importexport_admin_menu' );
|
18 |
-
|
19 |
-
/**
|
20 |
-
* Create our settings page output.
|
21 |
-
*
|
22 |
-
* @since 0.9.0
|
23 |
-
*
|
24 |
-
* @return string HTML output for the page.
|
25 |
-
*/
|
26 |
-
function cptui_importexport() {
|
27 |
-
|
28 |
-
if ( !empty( $_GET ) ) {
|
29 |
-
if ( !empty( $_GET['action'] ) && 'taxonomies' == $_GET['action'] ) {
|
30 |
-
$tab = 'taxonomies';
|
31 |
-
} elseif ( !empty( $_GET['action'] ) && 'get_code' == $_GET['action'] ) {
|
32 |
-
$tab = 'get_code';
|
33 |
-
} else {
|
34 |
-
$tab = 'post_types';
|
35 |
-
}
|
36 |
-
}
|
37 |
-
|
38 |
-
if ( !empty( $_POST ) ) {
|
39 |
-
$notice = cptui_import_types_taxes_settings( $_POST );
|
40 |
-
}
|
41 |
-
|
42 |
-
if ( isset( $notice ) ) {
|
43 |
-
echo $notice;
|
44 |
-
}
|
45 |
-
echo '<div class="wrap">';
|
46 |
-
|
47 |
-
# Create our tabs.
|
48 |
-
cptui_settings_tab_menu( $page = 'importexport' );
|
49 |
-
|
50 |
-
if ( isset( $tab ) && ( 'post_types' == $tab || 'taxonomies' == $tab ) ) {
|
51 |
-
?>
|
52 |
-
<p><?php _e( 'If you are wanting to migrate registered post types or taxonomies from this site to another, that will also use Custom Post Type UI, use the import and export functionality. If you are moving away from Custom Post Type UI, use the information in the "Get Code" tab.', 'cpt-plugin' ); ?></p>
|
53 |
-
|
54 |
-
<p><?php printf( '<strong>%s</strong>: %s',
|
55 |
-
__( 'NOTE', 'cpt-plugin' ),
|
56 |
-
__( 'This will not export the associated posts, just the settings.', 'cpt-plugin' )
|
57 |
-
); ?>
|
58 |
-
</p>
|
59 |
-
<table class="form-table cptui-table">
|
60 |
-
<?php if ( !empty( $_GET ) && empty( $_GET['action'] ) ) { ?>
|
61 |
-
<tr>
|
62 |
-
<td>
|
63 |
-
<h3><?php _e( 'Import Post Types', 'cpt-plugin' ); ?></h3>
|
64 |
-
<form method="post">
|
65 |
-
<textarea class="cptui_post_import" placeholder="<?php esc_attr_e( 'Paste content here.', 'cpt-plugin' ); ?>" name="cptui_post_import"></textarea>
|
66 |
-
<p class="wp-ui-highlight"><strong><?php _e( 'Note:', 'cpt-plugin' ); ?></strong> <?php _e( 'Importing will overwrite previous registered settings.', 'cpt-plugin' ); ?></p>
|
67 |
-
<p><strong><?php _e( 'To import post types from a different WordPress site, paste the exported content from that site and click the "Import" button.', 'cpt-plugin' ); ?></strong></p>
|
68 |
-
<p><input class="button button-primary" type="submit" value="<?php esc_attr_e( 'Import', 'cpt-plugin' ); ?>"/></p>
|
69 |
-
</form>
|
70 |
-
</td>
|
71 |
-
<td>
|
72 |
-
<h3><?php _e( 'Export Post Types', 'cpt-plugin' ); ?></h3>
|
73 |
-
<?php
|
74 |
-
$cptui_post_types = get_option( 'cptui_post_types', array() );
|
75 |
-
if ( !empty( $cptui_post_types ) ) {
|
76 |
-
$cptui_post_types = stripslashes_deep( $cptui_post_types );
|
77 |
-
$content = esc_html( json_encode( $cptui_post_types ) );
|
78 |
-
} else {
|
79 |
-
$content = __( 'No post types registered yet.', 'cpt-plugin' );
|
80 |
-
}
|
81 |
-
?>
|
82 |
-
<textarea title="<?php esc_attr_e( 'To copy the system info, click below then press Ctrl + C (PC) or Cmd + C (Mac).', 'cpt-plugin' ); ?>" onclick="this.focus();this.select()" readonly="readonly" class="cptui_post_import"><?php echo $content; ?></textarea>
|
83 |
-
<p><strong><?php _e( 'Use the content above to import current post types into a different WordPress site. You can also use this to simply back up your post type settings.', 'cpt-plugin' ); ?></strong></p>
|
84 |
-
</td>
|
85 |
-
</tr>
|
86 |
-
<?php } elseif ( !empty( $_GET ) && 'taxonomies' == $_GET['action'] ) { ?>
|
87 |
-
<tr>
|
88 |
-
<td>
|
89 |
-
<h3><?php _e( 'Import Taxonomies', 'cpt-plugin' ); ?></h3>
|
90 |
-
<form method="post">
|
91 |
-
<textarea class="cptui_tax_import" placeholder="<?php esc_attr_e( 'Paste content here.', 'cpt-plugin' ); ?>" name="cptui_tax_import"></textarea>
|
92 |
-
<p class="wp-ui-highlight"><strong><?php _e( 'Note:', 'cpt-plugin' ); ?></strong> <?php _e( 'Importing will overwrite previous registered settings.', 'cpt-plugin' ); ?></p>
|
93 |
-
<p><strong><?php _e( 'To import taxonomies from a different WordPress site, paste the exported content from that site and click the "Import" button.', 'cpt-plugin' ); ?></strong></p>
|
94 |
-
<p><input class="button button-primary" type="submit" value="<?php esc_attr_e( 'Import', 'cpt-plugin' ); ?>"/></p>
|
95 |
-
</form>
|
96 |
-
</td>
|
97 |
-
<td>
|
98 |
-
<h3><?php _e( 'Export Taxonomies', 'cpt-plugin' ); ?></h3>
|
99 |
-
<?php
|
100 |
-
$cptui_taxonomies = get_option( 'cptui_taxonomies', array() );
|
101 |
-
if ( !empty( $cptui_taxonomies ) ) {
|
102 |
-
$content = esc_html( json_encode( $cptui_taxonomies ) );
|
103 |
-
} else {
|
104 |
-
$content = __( 'No taxonomies registered yet.', 'cpt-plugin' );
|
105 |
-
}
|
106 |
-
?>
|
107 |
-
<textarea title="<?php esc_attr_e( 'To copy the system info, click below then press Ctrl + C (PC) or Cmd + C (Mac).', 'cpt-plugin' ); ?>" onclick="this.focus();this.select()" readonly="readonly" class="cptui_tax_import"><?php echo $content; ?></textarea>
|
108 |
-
<p><strong><?php _e( 'Use the content above to import current taxonomies into a different WordPress site. You can also use this to simply back up your taxonomy settings.', 'cpt-plugin' ); ?></strong></p>
|
109 |
-
</td>
|
110 |
-
</tr>
|
111 |
-
<?php } ?>
|
112 |
-
</table>
|
113 |
-
|
114 |
-
<?php
|
115 |
-
} else { ?>
|
116 |
-
<h2><?php _e( 'Get Post Type and Taxonomy Code', 'cpt-plugin' ); ?></h2>
|
117 |
-
|
118 |
-
<h3><?php _e( 'All CPT UI Post Types', 'cpt-plugin' ); ?></h3>
|
119 |
-
<label for="cptui_post_type_get_code"><?php _e( 'Copy/paste the code below into your functions.php file.', 'cpt-plugin' ); ?></label>
|
120 |
-
<textarea name="cptui_post_type_get_code" id="cptui_post_type_get_code" class="cptui_post_type_get_code" onclick="this.focus();this.select()" readonly="readonly"><?php cptui_get_post_type_code(); ?></textarea>
|
121 |
-
|
122 |
-
<h3><?php _e( 'All CPT UI Taxonomies', 'cpt-plugin' ); ?></h3>
|
123 |
-
<label for="cptui_tax_get_code"><?php _e( 'Copy/paste the code below into your functions.php file.', 'cpt-plugin' ); ?></label>
|
124 |
-
<textarea name="cptui_tax_get_code" id="cptui_tax_get_code" class="cptui_tax_get_code" onclick="this.focus();this.select()" readonly="readonly"><?php cptui_get_taxonomy_code(); ?></textarea>
|
125 |
-
<?php
|
126 |
-
}
|
127 |
-
|
128 |
-
echo '</div><!-- End .wrap -->';
|
129 |
-
}
|
130 |
-
|
131 |
-
/**
|
132 |
-
* Display our copy-able code for registered taxonomies.
|
133 |
-
*
|
134 |
-
* @since 0.9.0
|
135 |
-
*
|
136 |
-
* @return string Taxonomy registration text for use elsewhere.
|
137 |
-
*/
|
138 |
-
function cptui_get_taxonomy_code() {
|
139 |
-
|
140 |
-
$cptui_taxonomies = get_option( 'cptui_taxonomies' );
|
141 |
-
if ( !empty( $cptui_taxonomies ) ) {
|
142 |
-
?>
|
143 |
-
add_action( 'init', 'cptui_register_my_taxes' );
|
144 |
-
function cptui_register_my_taxes() {
|
145 |
-
<?php
|
146 |
-
foreach( $cptui_taxonomies as $tax ) {
|
147 |
-
echo cptui_get_single_taxonomy_registery( $tax ) . "\n";
|
148 |
-
} ?>
|
149 |
-
// End cptui_register_my_taxes
|
150 |
-
}
|
151 |
-
<?php
|
152 |
-
} else {
|
153 |
-
_e( 'No taxonomies to display at this time', 'cpt-plugin' );
|
154 |
-
}
|
155 |
-
}
|
156 |
-
|
157 |
-
/**
|
158 |
-
* Create output for single taxonomy to be ready for copy/paste from Get Code.
|
159 |
-
*
|
160 |
-
* @since 0.9.0
|
161 |
-
*
|
162 |
-
* @param array $taxonomy Taxonomy data to output.
|
163 |
-
*
|
164 |
-
* @return string Copy/paste ready "php" code.
|
165 |
-
*/
|
166 |
-
function cptui_get_single_taxonomy_registery( $taxonomy = array() ) {
|
167 |
-
|
168 |
-
$post_types = '';
|
169 |
-
if ( is_array( $taxonomy['object_type'] ) ) {
|
170 |
-
$post_types = 'array( \'' . implode( '\', \'', $taxonomy['object_type'] ) . '\' )';
|
171 |
-
}
|
172 |
-
?>
|
173 |
-
|
174 |
-
$labels = array(
|
175 |
-
'name' => '<?php echo $taxonomy['name']; ?>',
|
176 |
-
'label' => '<?php echo $taxonomy['label']; ?>',
|
177 |
-
<?php foreach( $taxonomy['labels'] as $key => $label ) {
|
178 |
-
if ( !empty( $label ) ) {
|
179 |
-
echo "'$key' => '$label',\n\t\t";
|
180 |
-
}
|
181 |
-
} ?>
|
182 |
-
);
|
183 |
-
|
184 |
-
$args = array(
|
185 |
-
'labels' => $labels,
|
186 |
-
'hierarchical' => <?php echo $taxonomy['hierarchical']; ?>,
|
187 |
-
'label' => '<?php echo $taxonomy['label']; ?>',
|
188 |
-
'show_ui' => <?php echo $taxonomy['show_ui']; ?>,
|
189 |
-
'query_var' => <?php echo $taxonomy['query_var'];?>,
|
190 |
-
'rewrite' => <?php echo $taxonomy['rewrite']; ?>,
|
191 |
-
'show_admin_column' => <?php echo $taxonomy['show_admin_column']; ?>,
|
192 |
-
);
|
193 |
-
<?php # register_taxonomy( $taxonomy, $object_type, $args ); NEED TO DETERMINE THE $object_type ?>
|
194 |
-
register_taxonomy( '<?php echo $taxonomy['name']; ?>', <?php echo $post_types; ?>, $args );
|
195 |
-
<?php
|
196 |
-
}
|
197 |
-
|
198 |
-
/**
|
199 |
-
* Display our copy-able code for registered post types.
|
200 |
-
*
|
201 |
-
* @since 0.9.0
|
202 |
-
*
|
203 |
-
* @return string Post type registration text for use elsewhere.
|
204 |
-
*/
|
205 |
-
function cptui_get_post_type_code() {
|
206 |
-
|
207 |
-
$cptui_post_types = get_option( 'cptui_post_types' );
|
208 |
-
|
209 |
-
# Whitespace very much matters here, thus why it's all flush against the left side
|
210 |
-
if ( !empty( $cptui_post_types ) ) {
|
211 |
-
?>
|
212 |
-
add_action( 'init', 'cptui_register_my_cpts' );
|
213 |
-
function cptui_register_my_cpts() {
|
214 |
-
<?php #space before this line reflects in textarea
|
215 |
-
foreach( $cptui_post_types as $type ) {
|
216 |
-
echo cptui_get_single_post_type_registery( $type ) . "\n";
|
217 |
-
} ?>
|
218 |
-
// End of cptui_register_my_cpts()
|
219 |
-
}
|
220 |
-
<?php
|
221 |
-
} else {
|
222 |
-
_e( 'No post types to display at this time', 'cpt-plugin' );
|
223 |
-
}
|
224 |
-
}
|
225 |
-
|
226 |
-
/**
|
227 |
-
* Create output for single post type to be ready for copy/paste from Get Code.
|
228 |
-
*
|
229 |
-
* @since 0.9.0
|
230 |
-
*
|
231 |
-
* @param array $post_type Post type data to output.
|
232 |
-
*
|
233 |
-
* @return string Copy/paste ready "php" code.
|
234 |
-
*/
|
235 |
-
function cptui_get_single_post_type_registery( $post_type = array() ) {
|
236 |
-
|
237 |
-
/** This filter is documented in custom-post-type-ui/custom-post-type-ui.php */
|
238 |
-
$post_type['map_meta_cap'] = apply_filters( 'cptui_map_meta_cap', 'true', $post_type['name'], $post_type );
|
239 |
-
|
240 |
-
$user_supports_params = apply_filters( 'cptui_user_supports_params', array(), $post_type['name'], $post_type );
|
241 |
-
if ( is_array( $user_supports_params ) ) {
|
242 |
-
$post_type['supports'] = array_merge( $post_type['supports'], $user_supports_params );
|
243 |
-
}
|
244 |
-
|
245 |
-
$supports = '';
|
246 |
-
# Do a little bit of php work to get these into strings.
|
247 |
-
if ( !empty( $post_type['supports'] ) && is_array( $post_type['supports'] ) ) {
|
248 |
-
$supports = 'array( \'' . implode( '\', \'', $post_type['supports'] ) . '\' )';
|
249 |
-
}
|
250 |
-
|
251 |
-
$taxonomies = '';
|
252 |
-
if ( !empty( $post_type['taxonomies'] ) && is_array( $post_type['taxonomies'] ) ) {
|
253 |
-
$taxonomies = 'array( \'' . implode( '\', \'', $post_type['taxonomies'] ) . '\' )';
|
254 |
-
}
|
255 |
-
|
256 |
-
$post_type['description'] = addslashes( $post_type['description'] );
|
257 |
-
?>
|
258 |
-
$labels = array(
|
259 |
-
'name' => '<?php echo $post_type['label']; ?>',
|
260 |
-
'singular_name' => '<?php echo $post_type['singular_label']; ?>',
|
261 |
-
<?php foreach( $post_type['labels'] as $key => $label ) {
|
262 |
-
if ( !empty( $label ) ) {
|
263 |
-
echo "'$key' => '$label',\n\t\t";
|
264 |
-
}
|
265 |
-
} ?>);
|
266 |
-
|
267 |
-
$args = array(
|
268 |
-
'labels' => $labels,
|
269 |
-
'description' => '<?php echo $post_type['description']; ?>',
|
270 |
-
'public' => <?php echo $post_type['public']; ?>,
|
271 |
-
'show_ui' => <?php echo $post_type['show_ui']; ?>,
|
272 |
-
'has_archive' => <?php echo $post_type['has_archive']; ?>,
|
273 |
-
'show_in_menu' => <?php echo $post_type['show_in_menu']; ?>,
|
274 |
-
'exclude_from_search' => <?php echo $post_type['exclude_from_search']; ?>,
|
275 |
-
'capability_type' => '<?php echo $post_type['capability_type']; ?>',
|
276 |
-
'map_meta_cap' => <?php echo $post_type['map_meta_cap']; ?>,
|
277 |
-
'hierarchical' => <?php echo $post_type['hierarchical']; ?>,
|
278 |
-
'rewrite' => <?php echo $post_type['rewrite']; ?>,
|
279 |
-
'query_var' => <?php echo $post_type['query_var']; ?>,
|
280 |
-
<?php if ( !empty( $post_type['menu_position'] ) ) { ?>'menu_position' => <?php echo $post_type['menu_position']; ?>,<?php } ?>
|
281 |
-
<?php if ( !empty( $post_type['menu_icon'] ) ) { ?>'menu_icon' => <?php echo $post_type['menu_icon']; ?>,<?php } ?>
|
282 |
-
<?php if ( !empty( $supports ) ) { ?>'supports' => <?php echo $supports; ?>,<?php } ?>
|
283 |
-
<?php if ( !empty( $taxonomies ) ) { ?>'taxonomies' => <?php echo $taxonomies; ?><?php } ?>
|
284 |
-
);
|
285 |
-
register_post_type( '<?php echo $post_type['name']; ?>', $args );
|
286 |
-
<?php
|
287 |
-
}
|
288 |
-
|
289 |
-
/**
|
290 |
-
* Import the posted JSON data from a separate export.
|
291 |
-
*
|
292 |
-
* @since 0.9.0
|
293 |
-
*
|
294 |
-
* @param array $postdata $_POST data as json.
|
295 |
-
*
|
296 |
-
* @return mixed false on nothing to do, otherwise void.
|
297 |
-
*/
|
298 |
-
function cptui_import_types_taxes_settings( $postdata = array() ) {
|
299 |
-
if ( !isset( $postdata['cptui_post_import'] ) && !isset( $postdata['cptui_tax_import'] ) ) {
|
300 |
-
return false;
|
301 |
-
}
|
302 |
-
|
303 |
-
$success = false;
|
304 |
-
|
305 |
-
if ( !empty( $postdata['cptui_post_import'] ) ) {
|
306 |
-
$data = stripslashes_deep( trim( $postdata['cptui_post_import'] ) );
|
307 |
-
$settings = json_decode( $data, true );
|
308 |
-
|
309 |
-
if ( $settings ) {
|
310 |
-
$success = update_option( 'cptui_post_types', $settings );
|
311 |
-
}
|
312 |
-
return cptui_admin_notices( 'import', __( 'Post types', 'cpt-plugin' ), $success );
|
313 |
-
|
314 |
-
} elseif ( !empty( $postdata['cptui_tax_import'] ) ) {
|
315 |
-
$data = stripslashes_deep( trim( $postdata['cptui_tax_import'] ) );
|
316 |
-
$settings = json_decode( $data, true );
|
317 |
-
|
318 |
-
if ( $settings ) {
|
319 |
-
$success = update_option( 'cptui_taxonomies', $settings );
|
320 |
-
}
|
321 |
-
return cptui_admin_notices( 'import', __( 'Taxonomies', 'cpt-plugin' ), $success );
|
322 |
-
}
|
323 |
-
|
324 |
-
flush_rewrite_rules();
|
325 |
-
|
326 |
-
return $success;
|
327 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/post-types.php
DELETED
@@ -1,1082 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* This file controls all of the content from the Post Types page.
|
4 |
-
*/
|
5 |
-
|
6 |
-
# Exit if accessed directly
|
7 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
8 |
-
|
9 |
-
/**
|
10 |
-
* Add our cptui.js file, with dependencies on jQuery and jQuery UI.
|
11 |
-
*
|
12 |
-
* @since 0.9.0
|
13 |
-
*/
|
14 |
-
function cptui_post_type_enqueue_scripts() {
|
15 |
-
wp_enqueue_script( 'cptui', plugins_url( 'js/cptui.js', dirname(__FILE__) ), array( 'jquery', 'jquery-ui-core', 'jquery-ui-accordion' ), '0.9', true );
|
16 |
-
wp_localize_script( 'cptui', 'confirmdata', array( 'confirm' => __( 'Are you sure you want to delete this?', 'cpt-plugin' ) ) );
|
17 |
-
}
|
18 |
-
add_action( 'admin_enqueue_scripts', 'cptui_post_type_enqueue_scripts' );
|
19 |
-
|
20 |
-
/**
|
21 |
-
* Add our settings page to the menu.
|
22 |
-
*
|
23 |
-
* @since 0.9.0
|
24 |
-
*/
|
25 |
-
function cptui_post_types_admin_menu() {
|
26 |
-
add_submenu_page( 'cptui_main_menu', __( 'Add/Edit Post Types', 'cpt-plugin' ), __( 'Add/Edit Post Types', 'cpt-plugin' ), 'manage_options', 'cptui_manage_post_types', 'cptui_manage_post_types' );
|
27 |
-
}
|
28 |
-
add_action( 'admin_menu', 'cptui_post_types_admin_menu' );
|
29 |
-
|
30 |
-
/**
|
31 |
-
* Create our settings page output.
|
32 |
-
*
|
33 |
-
* @since 0.9.0
|
34 |
-
*
|
35 |
-
* @return string HTML output for the page.
|
36 |
-
*/
|
37 |
-
function cptui_manage_post_types() {
|
38 |
-
|
39 |
-
if ( !empty( $_POST ) ) {
|
40 |
-
if ( isset( $_POST['cpt_submit'] ) ) {
|
41 |
-
check_admin_referer( 'cptui_addedit_post_type_nonce_action', 'cptui_addedit_post_type_nonce_field' );
|
42 |
-
$notice = cptui_update_post_type( $_POST );
|
43 |
-
} elseif ( isset( $_POST['cpt_delete'] ) ) {
|
44 |
-
check_admin_referer( 'cptui_addedit_post_type_nonce_action', 'cptui_addedit_post_type_nonce_field' );
|
45 |
-
$notice = cptui_delete_post_type( $_POST );
|
46 |
-
}
|
47 |
-
}
|
48 |
-
|
49 |
-
$tab = ( !empty( $_GET ) && !empty( $_GET['action'] ) && 'edit' == $_GET['action'] ) ? 'edit' : 'new'; ?>
|
50 |
-
|
51 |
-
<div class="wrap">
|
52 |
-
|
53 |
-
<?php
|
54 |
-
if ( isset( $notice ) ) {
|
55 |
-
echo $notice;
|
56 |
-
}
|
57 |
-
|
58 |
-
cptui_settings_tab_menu();
|
59 |
-
|
60 |
-
if ( 'edit' == $tab ) {
|
61 |
-
|
62 |
-
$post_types = get_option( 'cptui_post_types' );
|
63 |
-
|
64 |
-
$selected_post_type = cptui_get_current_post_type();
|
65 |
-
|
66 |
-
if ( $selected_post_type ) {
|
67 |
-
if ( array_key_exists( $selected_post_type, $post_types ) ) {
|
68 |
-
$current = $post_types[ $selected_post_type ];
|
69 |
-
}
|
70 |
-
}
|
71 |
-
}
|
72 |
-
|
73 |
-
$ui = new cptui_admin_ui();
|
74 |
-
|
75 |
-
# Will only be set if we're already on the edit screen
|
76 |
-
if ( !empty( $post_types ) ) { ?>
|
77 |
-
<form id="cptui_select_post_type" method="post">
|
78 |
-
<p><?php _e( 'Select a post type to edit. DO NOT EDIT the post type slug unless necessary. Changing that value registers a new post type entry for your install.', 'cpt-plugin' ); ?></p>
|
79 |
-
<?php
|
80 |
-
cptui_post_types_dropdown( $post_types );
|
81 |
-
?>
|
82 |
-
<input type="submit" class="button-secondary" name="cptui_select_post_type_submit" value="<?php echo esc_attr( apply_filters( 'cptui_post_type_submit_select', __( 'Select', 'cpt-plugin' ) ) ); ?>" />
|
83 |
-
</form>
|
84 |
-
<?php
|
85 |
-
} ?>
|
86 |
-
|
87 |
-
<form method="post">
|
88 |
-
<table class="form-table cptui-table">
|
89 |
-
<tr>
|
90 |
-
<td><!--LEFT SIDE-->
|
91 |
-
<table>
|
92 |
-
<?php
|
93 |
-
|
94 |
-
/*
|
95 |
-
* Post Slug
|
96 |
-
*/
|
97 |
-
echo $ui->get_text_input( array(
|
98 |
-
'namearray' => 'cpt_custom_post_type',
|
99 |
-
'name' => 'name',
|
100 |
-
'textvalue' => ( isset( $current['name'] ) ) ? esc_attr( $current['name'] ) : '',
|
101 |
-
'maxlength' => '20',
|
102 |
-
'onblur' => 'this.value=this.value.toLowerCase()',
|
103 |
-
'labeltext' => __( 'Post Type Slug', 'cpt-plugin' ),
|
104 |
-
'aftertext' => __( '(e.g. movie)', 'cpt-plugin' ),
|
105 |
-
'helptext' => esc_attr__( 'The post type name. Used to retrieve custom post type content. Should be short and unique', 'cpt-plugin'),
|
106 |
-
'required' => true
|
107 |
-
) );
|
108 |
-
|
109 |
-
/*
|
110 |
-
* Post Label
|
111 |
-
*/
|
112 |
-
echo $ui->get_text_input( array(
|
113 |
-
'namearray' => 'cpt_custom_post_type',
|
114 |
-
'name' => 'label',
|
115 |
-
'textvalue' => ( isset( $current['label'] ) ) ? esc_attr( $current['label'] ) : '',
|
116 |
-
'labeltext' => __( 'Plural Label', 'cpt-plugin' ),
|
117 |
-
'aftertext' => __( '(e.g. Movies)', 'cpt-plugin' ),
|
118 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ),
|
119 |
-
) );
|
120 |
-
|
121 |
-
/*
|
122 |
-
* Post Singular Slug
|
123 |
-
*/
|
124 |
-
echo $ui->get_text_input( array(
|
125 |
-
'namearray' => 'cpt_custom_post_type',
|
126 |
-
'name' => 'singular_label',
|
127 |
-
'textvalue' => ( isset( $current['singular_label'] ) ) ? esc_attr( $current['singular_label'] ) : '',
|
128 |
-
'labeltext' => __( 'Singular Label', 'cpt-plugin' ),
|
129 |
-
'aftertext' => __( '(e.g. Movie)', 'cpt-plugin' ),
|
130 |
-
'helptext' => esc_attr__( 'Custom Post Type Singular label. Used in WordPress when a singular label is needed.', 'cpt-plugin' ),
|
131 |
-
) );
|
132 |
-
|
133 |
-
/*
|
134 |
-
* Post Description
|
135 |
-
*/
|
136 |
-
if ( isset( $current['description'] ) ) {
|
137 |
-
$current['description'] = stripslashes_deep( $current['description'] );
|
138 |
-
}
|
139 |
-
echo $ui->get_textarea_input( array(
|
140 |
-
'namearray' => 'cpt_custom_post_type',
|
141 |
-
'name' => 'description',
|
142 |
-
'rows' => '4',
|
143 |
-
'cols' => '40',
|
144 |
-
'textvalue' => ( isset( $current['description'] ) ) ? esc_textarea( $current['description'] ) : '',
|
145 |
-
'labeltext' => __('Description', 'cpt-plugin'),
|
146 |
-
'helptext' => esc_attr__( 'Custom Post Type Description. Describe what your custom post type is used for.', 'cpt-plugin' )
|
147 |
-
) );
|
148 |
-
?>
|
149 |
-
</table>
|
150 |
-
<p class="submit">
|
151 |
-
<?php wp_nonce_field( 'cptui_addedit_post_type_nonce_action', 'cptui_addedit_post_type_nonce_field' );
|
152 |
-
if ( !empty( $_GET ) && !empty( $_GET['action'] ) && 'edit' == $_GET['action'] ) { ?>
|
153 |
-
<input type="submit" class="button-primary" name="cpt_submit" value="<?php echo esc_attr( apply_filters( 'cptui_post_type_submit_edit', __( 'Edit Post Type', 'cpt-plugin' ) ) ); ?>" />
|
154 |
-
<input type="submit" class="button-secondary" name="cpt_delete" id="cpt_submit_delete" value="<?php echo esc_attr( apply_filters( 'cptui_post_type_submit_delete', __( 'Delete Post Type', 'cpt-plugin' ) ) ); ?>" />
|
155 |
-
<?php } else { ?>
|
156 |
-
<input type="submit" class="button-primary" name="cpt_submit" value="<?php echo esc_attr( apply_filters( 'cptui_post_type_submit_add', __( 'Add Post Type', 'cpt-plugin' ) ) ); ?>" />
|
157 |
-
<?php } ?>
|
158 |
-
<input type="hidden" name="cpt_type_status" id="cpt_type_status" value="<?php echo $tab; ?>" />
|
159 |
-
</p>
|
160 |
-
</td>
|
161 |
-
<td>
|
162 |
-
<p> <?php _e( 'Click headings to reveal available options.', 'cpt-plugin' ); ?></p>
|
163 |
-
|
164 |
-
<div id="cptui_accordion">
|
165 |
-
<h3 title="<?php esc_attr_e( 'Click to expand', 'cpt-plugin' ); ?>"><?php _e( 'Labels', 'cpt-plugin' ); ?></h3>
|
166 |
-
<div>
|
167 |
-
<table>
|
168 |
-
<?php
|
169 |
-
/*
|
170 |
-
* Post Admin Menu Name
|
171 |
-
*/
|
172 |
-
echo $ui->get_text_input( array(
|
173 |
-
'labeltext' => __( 'Menu Name', 'cpt-plugin' ),
|
174 |
-
'helptext' => esc_attr__( 'Custom menu name for your custom post type.', 'cpt-plugin' ),
|
175 |
-
'namearray' => 'cpt_labels',
|
176 |
-
'name' => 'menu_name',
|
177 |
-
'textvalue' => ( isset( $current['labels']['menu_name'] ) ) ? esc_attr( $current['labels']['menu_name'] ) : '',
|
178 |
-
'aftertext' => __( '(e.g. My Movies)', 'cpt-plugin' )
|
179 |
-
) );
|
180 |
-
|
181 |
-
/*
|
182 |
-
* Post All Items
|
183 |
-
*/
|
184 |
-
echo $ui->get_text_input( array(
|
185 |
-
'labeltext' => __( 'All Items', 'cpt-plugin' ),
|
186 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ),
|
187 |
-
'namearray' => 'cpt_labels',
|
188 |
-
'name' => 'all_items',
|
189 |
-
'textvalue' => ( isset( $current['labels']['all_items'] ) ) ? esc_attr( $current['labels']['all_items'] ) : '',
|
190 |
-
'aftertext' => __( '(e.g. All Movies)', 'cpt-plugin' )
|
191 |
-
) );
|
192 |
-
|
193 |
-
/*
|
194 |
-
* Add New Label
|
195 |
-
*/
|
196 |
-
echo $ui->get_text_input( array(
|
197 |
-
'labeltext' => __( 'Add New', 'cpt-plugin' ),
|
198 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ),
|
199 |
-
'namearray' => 'cpt_labels',
|
200 |
-
'name' => 'add_new',
|
201 |
-
'textvalue' => ( isset( $current['labels']['add_new'] ) ) ? esc_attr( $current['labels']['add_new'] ) : '',
|
202 |
-
'aftertext' => __( '(e.g. Add New)', 'cpt-plugin' )
|
203 |
-
) );
|
204 |
-
|
205 |
-
/*
|
206 |
-
* Add New Item Label
|
207 |
-
*/
|
208 |
-
echo $ui->get_text_input( array(
|
209 |
-
'labeltext' => __( 'Add New Item', 'cpt-plugin' ),
|
210 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ),
|
211 |
-
'namearray' => 'cpt_labels',
|
212 |
-
'name' => 'add_new_item',
|
213 |
-
'textvalue' => ( isset( $current['labels']['add_new_item'] ) ) ? esc_attr( $current['labels']['add_new_item'] ) : '',
|
214 |
-
'aftertext' => __( '(e.g. Add New Movie)', 'cpt-plugin' )
|
215 |
-
) );
|
216 |
-
|
217 |
-
/*
|
218 |
-
* Edit Label
|
219 |
-
*/
|
220 |
-
echo $ui->get_text_input( array(
|
221 |
-
'labeltext' => __( 'Edit', 'cpt-plugin' ),
|
222 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ),
|
223 |
-
'namearray' => 'cpt_labels',
|
224 |
-
'name' => 'edit',
|
225 |
-
'textvalue' => ( isset( $current['labels']['edit'] ) ) ? esc_attr( $current['labels']['edit'] ) : '',
|
226 |
-
'aftertext' => __( '(e.g. Edit)', 'cpt-plugin' )
|
227 |
-
) );
|
228 |
-
|
229 |
-
/*
|
230 |
-
* Edit Item Label
|
231 |
-
*/
|
232 |
-
echo $ui->get_text_input( array(
|
233 |
-
'labeltext' => __( 'Edit Item', 'cpt-plugin' ),
|
234 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ),
|
235 |
-
'namearray' => 'cpt_labels',
|
236 |
-
'name' => 'edit_item',
|
237 |
-
'textvalue' => ( isset( $current['labels']['edit_item'] ) ) ? esc_attr( $current['labels']['edit_item'] ) : '',
|
238 |
-
'aftertext' => __( '(e.g. Edit Movie)', 'cpt-plugin' )
|
239 |
-
) );
|
240 |
-
|
241 |
-
/*
|
242 |
-
* New Item Label
|
243 |
-
*/
|
244 |
-
echo $ui->get_text_input( array(
|
245 |
-
'labeltext' => __( 'New Item', 'cpt-plugin' ),
|
246 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ),
|
247 |
-
'namearray' => 'cpt_labels',
|
248 |
-
'name' => 'new_item',
|
249 |
-
'textvalue' => ( isset( $current['labels']['new_item'] ) ) ? esc_attr( $current['labels']['new_item'] ) : '',
|
250 |
-
'aftertext' => __( '(e.g. New Movie)', 'cpt-plugin' )
|
251 |
-
) );
|
252 |
-
|
253 |
-
/*
|
254 |
-
* View Label
|
255 |
-
*/
|
256 |
-
echo $ui->get_text_input( array(
|
257 |
-
'labeltext' => __( 'View', 'cpt-plugin' ),
|
258 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ),
|
259 |
-
'namearray' => 'cpt_labels',
|
260 |
-
'name' => 'view',
|
261 |
-
'textvalue' => ( isset( $current['labels']['view'] ) ) ? esc_attr( $current['labels']['view'] ) : '',
|
262 |
-
'aftertext' => __( '(e.g. View)', 'cpt-plugin' )
|
263 |
-
) );
|
264 |
-
|
265 |
-
/*
|
266 |
-
* View Item Label
|
267 |
-
*/
|
268 |
-
echo $ui->get_text_input( array(
|
269 |
-
'labeltext' => __( 'View Item', 'cpt-plugin' ),
|
270 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ),
|
271 |
-
'namearray' => 'cpt_labels',
|
272 |
-
'name' => 'view_item',
|
273 |
-
'textvalue' => ( isset( $current['labels']['view_item'] ) ) ? esc_attr( $current['labels']['view_item'] ) : '',
|
274 |
-
'aftertext' => __( '(e.g. View Movie)', 'cpt-plugin' )
|
275 |
-
) );
|
276 |
-
|
277 |
-
/*
|
278 |
-
* Search Item Label
|
279 |
-
*/
|
280 |
-
echo $ui->get_text_input( array(
|
281 |
-
'labeltext' => __( 'Search Item', 'cpt-plugin' ),
|
282 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ),
|
283 |
-
'namearray' => 'cpt_labels',
|
284 |
-
'name' => 'search_items',
|
285 |
-
'textvalue' => ( isset( $current['labels']['search_items'] ) ) ? esc_attr( $current['labels']['search_items'] ) : '',
|
286 |
-
'aftertext' => __( '(e.g. Search Movie)', 'cpt-plugin' )
|
287 |
-
) );
|
288 |
-
|
289 |
-
/*
|
290 |
-
* Not Found Label
|
291 |
-
*/
|
292 |
-
echo $ui->get_text_input( array(
|
293 |
-
'labeltext' => __( 'Not Found', 'cpt-plugin' ),
|
294 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ),
|
295 |
-
'namearray' => 'cpt_labels',
|
296 |
-
'name' => 'not_found',
|
297 |
-
'textvalue' => ( isset( $current['labels']['not_found'] ) ) ? esc_attr( $current['labels']['not_found'] ) : '',
|
298 |
-
'aftertext' => __( '(e.g. No Movies found)', 'cpt-plugin' )
|
299 |
-
) );
|
300 |
-
|
301 |
-
/*
|
302 |
-
* Not Found In Trash Label
|
303 |
-
*/
|
304 |
-
echo $ui->get_text_input( array(
|
305 |
-
'labeltext' => __( 'Not Found in Trash', 'cpt-plugin' ),
|
306 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ),
|
307 |
-
'namearray' => 'cpt_labels',
|
308 |
-
'name' => 'not_found_in_trash',
|
309 |
-
'textvalue' => ( isset( $current['labels']['not_found_in_trash'] ) ) ? esc_attr( $current['labels']['not_found_in_trash'] ) : '',
|
310 |
-
'aftertext' => __( '(e.g. No Movies found in Trash)', 'cpt-plugin' )
|
311 |
-
) );
|
312 |
-
|
313 |
-
/*
|
314 |
-
* Parent Label
|
315 |
-
*/
|
316 |
-
echo $ui->get_text_input( array(
|
317 |
-
'labeltext' => __( 'Parent', 'cpt-plugin' ),
|
318 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'cpt-plugin' ),
|
319 |
-
'namearray' => 'cpt_labels',
|
320 |
-
'name' => 'parent',
|
321 |
-
'textvalue' => ( isset( $current['labels']['parent'] ) ) ? esc_attr( $current['labels']['parent'] ) : '',
|
322 |
-
'aftertext' => __( '(e.g. Parent Movie)', 'cpt-plugin' )
|
323 |
-
) );
|
324 |
-
?>
|
325 |
-
</table>
|
326 |
-
</div>
|
327 |
-
<h3 title="<?php esc_attr_e( 'Click to expand', 'cpt-plugin' ); ?>"><?php _e( 'Settings', 'cpt-plugin' ); ?></h3>
|
328 |
-
<div>
|
329 |
-
<table>
|
330 |
-
<?php
|
331 |
-
/*
|
332 |
-
* Public Boolean
|
333 |
-
*/
|
334 |
-
$select = array(
|
335 |
-
'options' => array(
|
336 |
-
array( 'attr' => '0', 'text' => __( 'False', 'cpt-plugin' ) ),
|
337 |
-
array( 'attr' => '1', 'text' => __( 'True', 'cpt-plugin' ), 'default' => 'true' )
|
338 |
-
)
|
339 |
-
);
|
340 |
-
$selected = ( isset( $current ) ) ? disp_boolean( $current['public'] ) : '';
|
341 |
-
$select['selected'] = ( !empty( $selected ) ) ? $current['public'] : '';
|
342 |
-
echo $ui->get_select_input( array(
|
343 |
-
'namearray' => 'cpt_custom_post_type',
|
344 |
-
'name' => 'public',
|
345 |
-
'labeltext' => __( 'Public', 'cpt-plugin' ),
|
346 |
-
'aftertext' => __( '(default: True)', 'cpt-plugin' ),
|
347 |
-
'helptext' => esc_attr__( 'Whether posts of this type should be shown in the admin UI', 'cpt-plugin' ),
|
348 |
-
'selections' => $select
|
349 |
-
) );
|
350 |
-
|
351 |
-
/*
|
352 |
-
* Show UI Boolean
|
353 |
-
*/
|
354 |
-
$select = array(
|
355 |
-
'options' => array(
|
356 |
-
array( 'attr' => '0', 'text' => __( 'False', 'cpt-plugin' ) ),
|
357 |
-
array( 'attr' => '1', 'text' => __( 'True', 'cpt-plugin' ), 'default' => 'true' )
|
358 |
-
)
|
359 |
-
);
|
360 |
-
$selected = ( isset( $current ) ) ? disp_boolean( $current['show_ui'] ) : '';
|
361 |
-
$select['selected'] = ( !empty( $selected ) ) ? $current['show_ui'] : '';
|
362 |
-
echo $ui->get_select_input( array(
|
363 |
-
'namearray' => 'cpt_custom_post_type',
|
364 |
-
'name' => 'show_ui',
|
365 |
-
'labeltext' => __( 'Show UI', 'cpt-plugin' ),
|
366 |
-
'aftertext' => __( '(default: True)', 'cpt-plugin' ),
|
367 |
-
'helptext' => esc_attr__( 'Whether to generate a default UI for managing this post type', 'cpt-plugin' ),
|
368 |
-
'selections' => $select
|
369 |
-
) );
|
370 |
-
|
371 |
-
/*
|
372 |
-
* Has Archive Boolean
|
373 |
-
*/
|
374 |
-
$select = array(
|
375 |
-
'options' => array(
|
376 |
-
array( 'attr' => '0', 'text' => __( 'False', 'cpt-plugin' ), 'default' => 'true' ),
|
377 |
-
array( 'attr' => '1', 'text' => __( 'True', 'cpt-plugin' ) )
|
378 |
-
)
|
379 |
-
);
|
380 |
-
$selected = ( isset( $current ) ) ? disp_boolean( $current['has_archive'] ) : '';
|
381 |
-
$select['selected'] = ( !empty( $selected ) ) ? $current['has_archive'] : '';
|
382 |
-
echo $ui->get_select_input( array(
|
383 |
-
'namearray' => 'cpt_custom_post_type',
|
384 |
-
'name' => 'has_archive',
|
385 |
-
'labeltext' => __( 'Has Archive', 'cpt-plugin' ),
|
386 |
-
'aftertext' => __( '(default: False)', 'cpt-plugin' ),
|
387 |
-
'helptext' => esc_attr__( 'Whether the post type will have a post type archive page', 'cpt-plugin' ),
|
388 |
-
'selections' => $select
|
389 |
-
) );
|
390 |
-
|
391 |
-
/*
|
392 |
-
* Exclude From Search Boolean
|
393 |
-
*/
|
394 |
-
$select = array(
|
395 |
-
'options' => array(
|
396 |
-
array( 'attr' => '0', 'text' => __( 'False', 'cpt-plugin' ), 'default' => 'true' ),
|
397 |
-
array( 'attr' => '1', 'text' => __( 'True', 'cpt-plugin' ) )
|
398 |
-
)
|
399 |
-
);
|
400 |
-
$selected = ( isset( $current ) ) ? disp_boolean( $current['exclude_from_search'] ) : '';
|
401 |
-
$select['selected'] = ( !empty( $selected ) ) ? $current['exclude_from_search'] : '';
|
402 |
-
echo $ui->get_select_input( array(
|
403 |
-
'namearray' => 'cpt_custom_post_type',
|
404 |
-
'name' => 'exclude_from_search',
|
405 |
-
'labeltext' => __( 'Exclude From Search', 'cpt-plugin' ),
|
406 |
-
'aftertext' => __( '(default: False)', 'cpt-plugin' ),
|
407 |
-
'helptext' => esc_attr__( 'Whether the post type will be searchable', 'cpt-plugin' ),
|
408 |
-
'selections' => $select
|
409 |
-
) );
|
410 |
-
|
411 |
-
/*
|
412 |
-
* Capability Type Input
|
413 |
-
*/
|
414 |
-
echo $ui->get_text_input( array(
|
415 |
-
'namearray' => 'cpt_custom_post_type',
|
416 |
-
'name' => 'capability_type',
|
417 |
-
'textvalue' => ( isset( $current['capability_type'] ) ) ? esc_attr( $current['capability_type'] ) : 'post',
|
418 |
-
'labeltext' => __( 'Capability Type', 'cpt-plugin' ),
|
419 |
-
'helptext' => esc_attr__( 'The post type to use for checking read, edit, and delete capabilities', 'cpt-plugin' ),
|
420 |
-
) );
|
421 |
-
|
422 |
-
/*
|
423 |
-
* Hierarchical Boolean
|
424 |
-
*/
|
425 |
-
$select = array(
|
426 |
-
'options' => array(
|
427 |
-
array( 'attr' => '0', 'text' => __( 'False', 'cpt-plugin' ), 'default' => 'true' ),
|
428 |
-
array( 'attr' => '1', 'text' => __( 'True', 'cpt-plugin' ) )
|
429 |
-
)
|
430 |
-
);
|
431 |
-
$selected = ( isset( $current ) ) ? disp_boolean( $current['hierarchical'] ) : '';
|
432 |
-
$select['selected'] = ( !empty( $selected ) ) ? $current['hierarchical'] : '';
|
433 |
-
echo $ui->get_select_input( array(
|
434 |
-
'namearray' => 'cpt_custom_post_type',
|
435 |
-
'name' => 'hierarchical',
|
436 |
-
'labeltext' => __( 'Hierarchical', 'cpt-plugin' ),
|
437 |
-
'aftertext' => __( '(default: False)', 'cpt-plugin' ),
|
438 |
-
'helptext' => esc_attr__( 'Whether the post type can have parent-child relationships', 'cpt-plugin' ),
|
439 |
-
'selections' => $select
|
440 |
-
) );
|
441 |
-
|
442 |
-
/*
|
443 |
-
* Rewrite Boolean
|
444 |
-
*/
|
445 |
-
$select = array(
|
446 |
-
'options' => array(
|
447 |
-
array( 'attr' => '0', 'text' => __( 'False', 'cpt-plugin' ) ),
|
448 |
-
array( 'attr' => '1', 'text' => __( 'True', 'cpt-plugin' ), 'default' => 'true' )
|
449 |
-
)
|
450 |
-
);
|
451 |
-
$selected = ( isset( $current ) ) ? disp_boolean( $current['rewrite'] ) : '';
|
452 |
-
$select['selected'] = ( !empty( $selected ) ) ? $current['rewrite'] : '';
|
453 |
-
echo $ui->get_select_input( array(
|
454 |
-
'namearray' => 'cpt_custom_post_type',
|
455 |
-
'name' => 'rewrite',
|
456 |
-
'labeltext' => __( 'Rewrite', 'cpt-plugin' ),
|
457 |
-
'aftertext' => __( '(default: True)', 'cpt-plugin' ),
|
458 |
-
'helptext' => esc_attr__( 'Triggers the handling of rewrites for this post type', 'cpt-plugin' ),
|
459 |
-
'selections' => $select
|
460 |
-
) );
|
461 |
-
|
462 |
-
/*
|
463 |
-
* Rewrite Slug Input
|
464 |
-
*/
|
465 |
-
echo $ui->get_text_input( array(
|
466 |
-
'namearray' => 'cpt_custom_post_type',
|
467 |
-
'name' => 'rewrite_slug',
|
468 |
-
'textvalue' => ( isset( $current['rewrite_slug'] ) ) ? esc_attr( $current['rewrite_slug'] ) : '',
|
469 |
-
'labeltext' => __( 'Custom Rewrite Slug', 'cpt-plugin' ),
|
470 |
-
'aftertext' => __( '(default: post type name)', 'cpt-plugin' ),
|
471 |
-
'helptext' => esc_attr__( 'Custom slug to use instead of the default.', 'cpt-plugin' ),
|
472 |
-
) );
|
473 |
-
|
474 |
-
/*
|
475 |
-
* Rewrite With Front Boolean
|
476 |
-
*/
|
477 |
-
$select = array(
|
478 |
-
'options' => array(
|
479 |
-
array( 'attr' => '0', 'text' => __( 'False', 'cpt-plugin' ) ),
|
480 |
-
array( 'attr' => '1', 'text' => __( 'True', 'cpt-plugin' ), 'default' => 'true' )
|
481 |
-
)
|
482 |
-
);
|
483 |
-
$selected = ( isset( $current ) ) ? disp_boolean( $current['rewrite_withfront'] ) : '';
|
484 |
-
$select['selected'] = ( !empty( $selected ) ) ? $current['rewrite_withfront'] : '';
|
485 |
-
echo $ui->get_select_input( array(
|
486 |
-
'namearray' => 'cpt_custom_post_type',
|
487 |
-
'name' => 'rewrite_withfront',
|
488 |
-
'labeltext' => __( 'With Front', 'cpt-plugin' ),
|
489 |
-
'aftertext' => __( '(default: True)', 'cpt-plugin' ),
|
490 |
-
'helptext' => esc_attr__( 'Should the permastruct be prepended with the front base.', 'cpt-plugin' ),
|
491 |
-
'selections' => $select
|
492 |
-
) );
|
493 |
-
|
494 |
-
/*
|
495 |
-
* Query Var Boolean
|
496 |
-
*/
|
497 |
-
$select = array(
|
498 |
-
'options' => array(
|
499 |
-
array( 'attr' => '0', 'text' => __( 'False', 'cpt-plugin' ) ),
|
500 |
-
array( 'attr' => '1', 'text' => __( 'True', 'cpt-plugin' ), 'default' => 'true' )
|
501 |
-
)
|
502 |
-
);
|
503 |
-
$selected = ( isset( $current ) ) ? disp_boolean( $current['query_var'] ) : '';
|
504 |
-
$select['selected'] = ( !empty( $selected ) ) ? $current['query_var'] : '';
|
505 |
-
echo $ui->get_select_input( array(
|
506 |
-
'namearray' => 'cpt_custom_post_type',
|
507 |
-
'name' => 'query_var',
|
508 |
-
'labeltext' => __( 'Query Var', 'cpt-plugin' ),
|
509 |
-
'aftertext' => __( '(default: True)', 'cpt-plugin' ),
|
510 |
-
'helptext' => esc_attr__( 'Should the permastruct be prepended with the front base.', 'cpt-plugin' ),
|
511 |
-
'selections' => $select
|
512 |
-
) );
|
513 |
-
|
514 |
-
echo $ui->get_tr_start() . $ui->get_th_start() . __( 'Menu Position', 'cpt-plugin' );
|
515 |
-
|
516 |
-
echo $ui->get_help( esc_attr__( 'The position in the menu order the post type should appear. show_in_menu must be true.', 'cpt-plugin' ) );
|
517 |
-
echo $ui->get_p( __( 'See <a href="http://codex.wordpress.org/Function_Reference/register_post_type#Parameters">Available options</a> in the "menu_position" section. Range of 5-100', 'cpt-plugin' ) );
|
518 |
-
|
519 |
-
echo $ui->get_th_end() . $ui->get_td_start();
|
520 |
-
echo $ui->get_text_input( array(
|
521 |
-
'namearray' => 'cpt_custom_post_type',
|
522 |
-
'name' => 'menu_position',
|
523 |
-
'textvalue' => ( isset( $current['menu_position'] ) ) ? esc_attr( $current['menu_position'] ) : '',
|
524 |
-
'helptext' => esc_attr__( 'URL or Dashicon value for image to be used as menu icon.', 'cpt-plugin' ),
|
525 |
-
'wrap' => false
|
526 |
-
) );
|
527 |
-
echo $ui->get_td_end() . $ui->get_tr_end();
|
528 |
-
|
529 |
-
echo $ui->get_tr_start() . $ui->get_th_start() . __( 'Show in Menu', 'cpt-plugin' );
|
530 |
-
echo $ui->get_p( __( '"Show UI" must be "true". If an existing top level page such as "tools.php" is indicated for second input, post type will be sub menu of that.', 'cpt-plugins' ) );
|
531 |
-
echo $ui->get_th_end() . $ui->get_td_start();
|
532 |
-
|
533 |
-
/*
|
534 |
-
* Show In Menu Boolean
|
535 |
-
*/
|
536 |
-
$select = array(
|
537 |
-
'options' => array(
|
538 |
-
array( 'attr' => '0', 'text' => __( 'False', 'cpt-plugin' ) ),
|
539 |
-
array( 'attr' => '1', 'text' => __( 'True', 'cpt-plugin' ), 'default' => 'true' )
|
540 |
-
)
|
541 |
-
);
|
542 |
-
$selected = ( isset( $current ) ) ? disp_boolean( $current['show_in_menu'] ) : '';
|
543 |
-
$select['selected'] = ( !empty( $selected ) ) ? $current['show_in_menu'] : '';
|
544 |
-
echo $ui->get_select_input( array(
|
545 |
-
'namearray' => 'cpt_custom_post_type',
|
546 |
-
'name' => 'show_in_menu',
|
547 |
-
'labeltext' => __( 'Show In Menu', 'cpt-plugin' ),
|
548 |
-
'aftertext' => __( '(default: True)', 'cpt-plugin' ),
|
549 |
-
'helptext' => esc_attr__( 'Whether to show the post type in the admin menu and where to show that menu. Note that show_ui must be true', 'cpt-plugin' ),
|
550 |
-
'selections' => $select,
|
551 |
-
'wrap' => false
|
552 |
-
) );
|
553 |
-
|
554 |
-
/*
|
555 |
-
* Show In Menu Input
|
556 |
-
*/
|
557 |
-
echo $ui->get_text_input( array(
|
558 |
-
'namearray' => 'cpt_custom_post_type',
|
559 |
-
'name' => 'show_in_menu_string',
|
560 |
-
'textvalue' => ( isset( $current['show_in_menu_string'] ) ) ? esc_attr( $current['show_in_menu_string'] ) : '',
|
561 |
-
'helptext' => esc_attr__( 'URL to image to be used as menu icon.', 'cpt-plugin' ),
|
562 |
-
'wrap' => false
|
563 |
-
) );
|
564 |
-
echo $ui->get_td_end() . $ui->get_tr_end();
|
565 |
-
/*
|
566 |
-
* Menu Icon
|
567 |
-
*/
|
568 |
-
echo $ui->get_text_input( array(
|
569 |
-
'namearray' => 'cpt_custom_post_type',
|
570 |
-
'name' => 'menu_icon',
|
571 |
-
'textvalue' => ( isset( $current['menu_icon'] ) ) ? esc_attr( $current['menu_icon'] ) : '',
|
572 |
-
'labeltext' => __( 'Menu Icon', 'cpt-plugin' ),
|
573 |
-
'aftertext' => __( '(Full URL for icon or Dashicon class)', 'cpt-plugin' ),
|
574 |
-
'helptext' => esc_attr__( 'URL to image to be used as menu icon or Dashicon class to use instead.', 'cpt-plugin' ),
|
575 |
-
) );
|
576 |
-
|
577 |
-
echo $ui->get_tr_start() . $ui->get_th_start() . __( 'Supports', 'cpt-plugin' ) . $ui->get_th_end() . $ui->get_td_start();
|
578 |
-
/*
|
579 |
-
* Supports Title Checkbox
|
580 |
-
*/
|
581 |
-
echo $ui->get_check_input( array(
|
582 |
-
'checkvalue' => 'title',
|
583 |
-
'checked' => ( !empty( $current['supports'] ) && is_array( $current['supports'] ) && in_array( 'title', $current['supports'] ) ) ? 'true' : 'false',
|
584 |
-
'name' => 'title',
|
585 |
-
'namearray' => 'cpt_supports',
|
586 |
-
'textvalue' => 'title',
|
587 |
-
'labeltext' => __( 'Title' , 'cpt-plugin' ),
|
588 |
-
'helptext' => esc_attr__( 'Adds the title meta box when creating content for this custom post type', 'cpt-plugin' ),
|
589 |
-
'default' => true,
|
590 |
-
'wrap' => false
|
591 |
-
) );
|
592 |
-
|
593 |
-
/*
|
594 |
-
* Supports Editor Checkbox
|
595 |
-
*/
|
596 |
-
echo $ui->get_check_input( array(
|
597 |
-
'checkvalue' => 'editor',
|
598 |
-
'checked' => ( !empty( $current['supports'] ) && is_array( $current['supports'] ) && in_array( 'editor', $current['supports'] ) ) ? 'true' : 'false',
|
599 |
-
'name' => 'editor',
|
600 |
-
'namearray' => 'cpt_supports',
|
601 |
-
'textvalue' => 'editor',
|
602 |
-
'labeltext' => __( 'Editor' , 'cpt-plugin' ),
|
603 |
-
'helptext' => esc_attr__( 'Adds the content editor meta box when creating content for this custom post type', 'cpt-plugin' ),
|
604 |
-
'default' => true,
|
605 |
-
'wrap' => false
|
606 |
-
) );
|
607 |
-
|
608 |
-
/*
|
609 |
-
* Supports Excerpt Checkbox
|
610 |
-
*/
|
611 |
-
echo $ui->get_check_input( array(
|
612 |
-
'checkvalue' => 'excerpt',
|
613 |
-
'checked' => ( !empty( $current['supports'] ) && is_array( $current['supports'] ) && in_array( 'excerpt', $current['supports'] ) ) ? 'true' : 'false',
|
614 |
-
'name' => 'excerpt',
|
615 |
-
'namearray' => 'cpt_supports',
|
616 |
-
'textvalue' => 'excerpt',
|
617 |
-
'labeltext' => __( 'Excerpt' , 'cpt-plugin' ),
|
618 |
-
'helptext' => esc_attr__( 'Adds the excerpt meta box when creating content for this custom post type', 'cpt-plugin' ),
|
619 |
-
'default' => true,
|
620 |
-
'wrap' => false
|
621 |
-
) );
|
622 |
-
|
623 |
-
/*
|
624 |
-
* Supports Trackbacks Checkbox
|
625 |
-
*/
|
626 |
-
echo $ui->get_check_input( array(
|
627 |
-
'checkvalue' => 'trackbacks',
|
628 |
-
'checked' => ( !empty( $current['supports'] ) && is_array( $current['supports'] ) && in_array( 'trackbacks', $current['supports'] ) ) ? 'true' : 'false',
|
629 |
-
'name' => 'trackbacks',
|
630 |
-
'namearray' => 'cpt_supports',
|
631 |
-
'textvalue' => 'trackbacks',
|
632 |
-
'labeltext' => __( 'Trackbacks' , 'cpt-plugin' ),
|
633 |
-
'helptext' => esc_attr__( 'Adds the trackbacks meta box when creating content for this custom post type', 'cpt-plugin' ),
|
634 |
-
'default' => true,
|
635 |
-
'wrap' => false
|
636 |
-
) );
|
637 |
-
|
638 |
-
/*
|
639 |
-
* Supports Custom Fields Checkbox
|
640 |
-
*/
|
641 |
-
echo $ui->get_check_input( array(
|
642 |
-
'checkvalue' => 'custom-fields',
|
643 |
-
'checked' => ( !empty( $current['supports'] ) && is_array( $current['supports'] ) && in_array( 'custom-fields', $current['supports'] ) ) ? 'true' : 'false',
|
644 |
-
'name' => 'custom-fields',
|
645 |
-
'namearray' => 'cpt_supports',
|
646 |
-
'textvalue' => 'custom-fields',
|
647 |
-
'labeltext' => __( 'Custom Fields' , 'cpt-plugin' ),
|
648 |
-
'helptext' => esc_attr__( 'Adds the custom fields meta box when creating content for this custom post type', 'cpt-plugin' ),
|
649 |
-
'default' => true,
|
650 |
-
'wrap' => false
|
651 |
-
) );
|
652 |
-
|
653 |
-
/*
|
654 |
-
* Supports Comments Checkbox
|
655 |
-
*/
|
656 |
-
echo $ui->get_check_input( array(
|
657 |
-
'checkvalue' => 'comments',
|
658 |
-
'checked' => ( !empty( $current['supports'] ) && is_array( $current['supports'] ) && in_array( 'comments', $current['supports'] ) ) ? 'true' : 'false',
|
659 |
-
'name' => 'comments',
|
660 |
-
'namearray' => 'cpt_supports',
|
661 |
-
'textvalue' => 'comments',
|
662 |
-
'labeltext' => __( 'Comments' , 'cpt-plugin' ),
|
663 |
-
'helptext' => esc_attr__( 'Adds the comments meta box when creating content for this custom post type', 'cpt-plugin' ),
|
664 |
-
'default' => true,
|
665 |
-
'wrap' => false
|
666 |
-
) );
|
667 |
-
|
668 |
-
/*
|
669 |
-
* Supports Revisions Checkbox
|
670 |
-
*/
|
671 |
-
echo $ui->get_check_input( array(
|
672 |
-
'checkvalue' => 'revisions',
|
673 |
-
'checked' => ( !empty( $current['supports'] ) && is_array( $current['supports'] ) && in_array( 'revisions', $current['supports'] ) ) ? 'true' : 'false',
|
674 |
-
'name' => 'revisions',
|
675 |
-
'namearray' => 'cpt_supports',
|
676 |
-
'textvalue' => 'revisions',
|
677 |
-
'labeltext' => __( 'Revisions' , 'cpt-plugin' ),
|
678 |
-
'helptext' => esc_attr__( 'Adds the revisions meta box when creating content for this custom post type', 'cpt-plugin' ),
|
679 |
-
'default' => true,
|
680 |
-
'wrap' => false
|
681 |
-
) );
|
682 |
-
|
683 |
-
/*
|
684 |
-
* Supports Post Thumbnail Checkbox
|
685 |
-
*/
|
686 |
-
echo $ui->get_check_input( array(
|
687 |
-
'checkvalue' => 'thumbnail',
|
688 |
-
'checked' => ( !empty( $current['supports'] ) && is_array( $current['supports'] ) && in_array( 'thumbnail', $current['supports'] ) ) ? 'true' : 'false',
|
689 |
-
'name' => 'thumbnail',
|
690 |
-
'namearray' => 'cpt_supports',
|
691 |
-
'textvalue' => 'thumbnail',
|
692 |
-
'labeltext' => __( 'Featured Image' , 'cpt-plugin' ),
|
693 |
-
'helptext' => esc_attr__( 'Adds the featured image meta box when creating content for this custom post type', 'cpt-plugin' ),
|
694 |
-
'default' => true,
|
695 |
-
'wrap' => false
|
696 |
-
) );
|
697 |
-
|
698 |
-
/*
|
699 |
-
* Supports Author Checkbox
|
700 |
-
*/
|
701 |
-
echo $ui->get_check_input( array(
|
702 |
-
'checkvalue' => 'author',
|
703 |
-
'checked' => ( !empty( $current['supports'] ) && is_array( $current['supports'] ) && in_array( 'author', $current['supports'] ) ) ? 'true' : 'false',
|
704 |
-
'name' => 'author',
|
705 |
-
'namearray' => 'cpt_supports',
|
706 |
-
'textvalue' => 'author',
|
707 |
-
'labeltext' => __( 'Author' , 'cpt-plugin' ),
|
708 |
-
'helptext' => esc_attr__( 'Adds the author meta box when creating content for this custom post type', 'cpt-plugin' ),
|
709 |
-
'default' => true,
|
710 |
-
'wrap' => false
|
711 |
-
) );
|
712 |
-
|
713 |
-
/*
|
714 |
-
* Supports Page Attributes Checkbox
|
715 |
-
*/
|
716 |
-
echo $ui->get_check_input( array(
|
717 |
-
'checkvalue' => 'page-attributes',
|
718 |
-
'checked' => ( !empty( $current['supports'] ) && is_array( $current['supports'] ) && in_array( 'page-attributes', $current['supports'] ) ) ? 'true' : 'false',
|
719 |
-
'name' => 'page-attributes',
|
720 |
-
'namearray' => 'cpt_supports',
|
721 |
-
'textvalue' => 'page-attributes',
|
722 |
-
'labeltext' => __( 'Page Attributes' , 'cpt-plugin' ),
|
723 |
-
'helptext' => esc_attr__( 'Adds the page attribute meta box when creating content for this custom post type', 'cpt-plugin' ),
|
724 |
-
'default' => true,
|
725 |
-
'wrap' => false
|
726 |
-
) );
|
727 |
-
|
728 |
-
/*
|
729 |
-
* Supports Post Formats Checkbox
|
730 |
-
*/
|
731 |
-
echo $ui->get_check_input( array(
|
732 |
-
'checkvalue' => 'post-formats',
|
733 |
-
'checked' => ( !empty( $current['supports'] ) && is_array( $current['supports'] ) && in_array( 'post-formats', $current['supports'] ) ) ? 'true' : 'false',
|
734 |
-
'name' => 'post-formats',
|
735 |
-
'namearray' => 'cpt_supports',
|
736 |
-
'textvalue' => 'post-formats',
|
737 |
-
'labeltext' => __( 'Post Formats' , 'cpt-plugin' ),
|
738 |
-
'helptext' => esc_attr__( 'Adds post format support', 'cpt-plugin' ),
|
739 |
-
'default' => true,
|
740 |
-
'wrap' => false
|
741 |
-
) );
|
742 |
-
|
743 |
-
echo $ui->get_p( __( '"Use the option below to explicitly set "supports" to false.', 'cpt-plugins' ) );
|
744 |
-
|
745 |
-
echo $ui->get_check_input( array(
|
746 |
-
'checkvalue' => 'none',
|
747 |
-
'checked' => ( !empty( $current['supports'] ) && ( is_array( $current['supports'] ) && in_array( 'none', $current['supports'] ) ) ) ? 'true' : 'false',
|
748 |
-
'name' => 'none',
|
749 |
-
'namearray' => 'cpt_supports',
|
750 |
-
'textvalue' => 'none',
|
751 |
-
'labeltext' => __( 'None' , 'cpt-plugin' ),
|
752 |
-
'helptext' => esc_attr__( 'Remove all support features', 'cpt-plugin' ),
|
753 |
-
'default' => false,
|
754 |
-
'wrap' => false
|
755 |
-
) );
|
756 |
-
|
757 |
-
echo $ui->get_td_end() . $ui->get_tr_end();
|
758 |
-
|
759 |
-
echo $ui->get_tr_start() . $ui->get_th_start() . __( 'Built-in Taxonomies', 'cpt-plugin' ) . $ui->get_th_end() . $ui->get_td_start();
|
760 |
-
|
761 |
-
/**
|
762 |
-
* Filters the arguments for taxonomies to list for post type association.
|
763 |
-
*
|
764 |
-
* @since 0.9.0
|
765 |
-
*
|
766 |
-
* @param array $value Array of default arguments.
|
767 |
-
*/
|
768 |
-
$args = apply_filters( 'cptui_attach_taxonomies_to_post_type', array( 'public' => true ) );
|
769 |
-
|
770 |
-
/**
|
771 |
-
* Filters the arguments for output type for returned results.
|
772 |
-
*
|
773 |
-
* @since 0.9.0
|
774 |
-
*
|
775 |
-
* @param string $value Default output type.
|
776 |
-
*/
|
777 |
-
$output = apply_filters( 'cptui_attach_taxonomies_to_post_type_output', 'objects' );
|
778 |
-
|
779 |
-
# If they don't return an array, fall back to the original default. Don't need to check for empty, because empty array is default for $args param in get_post_types anyway.
|
780 |
-
if ( !is_array( $args ) ) {
|
781 |
-
$args = array( 'public' => true );
|
782 |
-
}
|
783 |
-
|
784 |
-
$add_taxes = get_taxonomies( $args, $output );
|
785 |
-
unset( $add_taxes['nav_menu'] ); unset( $add_taxes['post_format'] );
|
786 |
-
foreach ( $add_taxes as $add_tax ) {
|
787 |
-
/*
|
788 |
-
* Supports Taxonomies Checkbox
|
789 |
-
*/
|
790 |
-
echo $ui->get_check_input( array(
|
791 |
-
'checkvalue' => $add_tax->name,
|
792 |
-
'checked' => ( !empty( $current['taxonomies'] ) && is_array( $current['taxonomies'] ) && in_array( $add_tax->name, $current['taxonomies'] ) ) ? 'true' : 'false',
|
793 |
-
'name' => $add_tax->name,
|
794 |
-
'namearray' => 'cpt_addon_taxes',
|
795 |
-
'textvalue' => $add_tax->name,
|
796 |
-
'labeltext' => $add_tax->label,
|
797 |
-
'helptext' => sprintf( esc_attr__( 'Adds %s support', 'cpt-plugin' ), $add_tax->name ),
|
798 |
-
'wrap' => false
|
799 |
-
) );
|
800 |
-
}
|
801 |
-
|
802 |
-
echo $ui->get_td_end() . $ui->get_tr_end(); ?>
|
803 |
-
</table>
|
804 |
-
</div>
|
805 |
-
<?php if ( 'new' == $tab ) { ?>
|
806 |
-
<h3 title="<?php esc_attr_e( 'Click to expand', 'cpt-plugin' ); ?>"><?php _e( 'Starter Notes', 'cpt-plugin' ); ?></h3>
|
807 |
-
<div><ol>
|
808 |
-
<?php
|
809 |
-
echo '<li>' . sprintf( __( 'Post Type names should have %smax 20 characters%s, and only contain alphanumeric, lowercase characters, underscores in place of spaces and letters that do not have accents. Reserved names: post, page, attachment, revision, nav_menu_item.', 'cpt-plugin' ), '<strong class="wp-ui-highlight">', '</strong>' );
|
810 |
-
echo '<li>' . sprintf( __( 'If you are unfamiliar with the advanced post type settings, just fill in the %sPost Type Name%s and %sLabel%s fields. Remaining settings will use default values. Labels, if left blank, will be automatically created based on the post type name. Hover over the question mark for more details.', 'cpt-plugin' ), '<strong class="wp-ui-highlight">', '</strong>', '<strong class="wp-ui-highlight">', '</strong>' );
|
811 |
-
echo '<li>' . sprintf( __( 'Deleting custom post types will %sNOT%s delete any content into the database or added to those post types. You can easily recreate your post types and the content will still exist.', 'cpt-plugin' ), '<strong class="wp-ui-highlight">', '</strong>' ); ?>
|
812 |
-
</ol></div>
|
813 |
-
<?php } ?>
|
814 |
-
</td>
|
815 |
-
</tr>
|
816 |
-
</table>
|
817 |
-
</form>
|
818 |
-
</div><!-- End .wrap -->
|
819 |
-
<?php
|
820 |
-
}
|
821 |
-
|
822 |
-
/**
|
823 |
-
* Construct a dropdown of our post types so users can select which to edit.
|
824 |
-
*
|
825 |
-
* @since 0.9.0
|
826 |
-
*
|
827 |
-
* @param array $post_types Array of post types that are registered.
|
828 |
-
*
|
829 |
-
* @return string HTML select dropdown.
|
830 |
-
*/
|
831 |
-
function cptui_post_types_dropdown( $post_types = array() ) {
|
832 |
-
|
833 |
-
$ui = new cptui_admin_ui();
|
834 |
-
|
835 |
-
if ( !empty( $post_types ) ) {
|
836 |
-
$select = array();
|
837 |
-
$select['options'] = array();
|
838 |
-
|
839 |
-
$select['options'][] = array( 'attr' => '', 'text' => '--' );
|
840 |
-
|
841 |
-
foreach( $post_types as $type ) {
|
842 |
-
$select['options'][] = array( 'attr' => $type['name'], 'text' => $type['label'] );
|
843 |
-
}
|
844 |
-
|
845 |
-
$current = cptui_get_current_post_type();
|
846 |
-
|
847 |
-
$select['selected'] = $current;
|
848 |
-
echo $ui->get_select_input( array(
|
849 |
-
'namearray' => 'cptui_selected_post_type',
|
850 |
-
'name' => 'post_type',
|
851 |
-
'selections' => $select,
|
852 |
-
'wrap' => false
|
853 |
-
) );
|
854 |
-
}
|
855 |
-
}
|
856 |
-
|
857 |
-
/**
|
858 |
-
* Get the selected post type from the $_POST global.
|
859 |
-
*
|
860 |
-
* @since 0.9.0
|
861 |
-
*
|
862 |
-
* @return bool|string $value False on no result, sanitized post type if set.
|
863 |
-
*/
|
864 |
-
function cptui_get_current_post_type() {
|
865 |
-
if ( !empty( $_POST ) ) {
|
866 |
-
if ( isset( $_POST['cptui_selected_post_type']['post_type'] ) ) {
|
867 |
-
return sanitize_text_field( $_POST['cptui_selected_post_type']['post_type'] );
|
868 |
-
}
|
869 |
-
|
870 |
-
if ( isset( $_POST['cpt_custom_post_type']['name'] ) ) {
|
871 |
-
return sanitize_text_field( $_POST['cpt_custom_post_type']['name'] );
|
872 |
-
}
|
873 |
-
}
|
874 |
-
|
875 |
-
return false;
|
876 |
-
}
|
877 |
-
|
878 |
-
/**
|
879 |
-
* Delete our custom post type from the array of post types.
|
880 |
-
*
|
881 |
-
* @since 0.9.0
|
882 |
-
*
|
883 |
-
* @param $data array $_POST values.
|
884 |
-
*
|
885 |
-
* @return bool|string False on failure, string on success.
|
886 |
-
*/
|
887 |
-
function cptui_delete_post_type( $data = array() ) {
|
888 |
-
|
889 |
-
if ( empty( $data['cpt_custom_post_type']['name'] ) ) {
|
890 |
-
return cptui_admin_notices( 'error', '', false, __( 'Please provide a post type to delete', 'cpt-plugin' ) );
|
891 |
-
}
|
892 |
-
|
893 |
-
/**
|
894 |
-
* Fires before a post type is deleted from our saved options.
|
895 |
-
*
|
896 |
-
* @since 0.9.0
|
897 |
-
*
|
898 |
-
* @param array $data Array of post type data we are deleting.
|
899 |
-
*/
|
900 |
-
do_action( 'cptui_before_delete_post_type', $data );
|
901 |
-
|
902 |
-
$post_types = get_option( 'cptui_post_types' );
|
903 |
-
|
904 |
-
if ( array_key_exists( strtolower( $data['cpt_custom_post_type']['name'] ), $post_types ) ) {
|
905 |
-
|
906 |
-
unset( $post_types[ $data['cpt_custom_post_type']['name'] ] );
|
907 |
-
|
908 |
-
$success = update_option( 'cptui_post_types', $post_types );
|
909 |
-
}
|
910 |
-
|
911 |
-
/**
|
912 |
-
* Fires after a post type is deleted from our saved options.
|
913 |
-
*
|
914 |
-
* @since 0.9.0
|
915 |
-
*
|
916 |
-
* @param array $data Array of post type data that was deleted.
|
917 |
-
*/
|
918 |
-
do_action( 'cptui_after_delete_post_type', $data );
|
919 |
-
|
920 |
-
if ( isset( $success ) ) {
|
921 |
-
return cptui_admin_notices( 'delete', $data['cpt_custom_post_type']['name'], $success );
|
922 |
-
}
|
923 |
-
return false;
|
924 |
-
}
|
925 |
-
|
926 |
-
/**
|
927 |
-
* Add to or update our CPTUI option with new data.
|
928 |
-
*
|
929 |
-
* @since 0.9.0
|
930 |
-
*
|
931 |
-
* @param array $data Array of post type data to update.
|
932 |
-
*
|
933 |
-
* @return bool|string False on failure, string on success.
|
934 |
-
*/
|
935 |
-
function cptui_update_post_type( $data = array() ) {
|
936 |
-
|
937 |
-
/**
|
938 |
-
* Fires before a post_type is updated to our saved options.
|
939 |
-
*
|
940 |
-
* @since 0.9.0
|
941 |
-
*
|
942 |
-
* @param array $data Array of post_type data we are updating.
|
943 |
-
*/
|
944 |
-
do_action( 'cptui_before_update_post_type', $data );
|
945 |
-
|
946 |
-
# They need to provide a name
|
947 |
-
if ( empty( $data['cpt_custom_post_type']['name'] ) ) {
|
948 |
-
return cptui_admin_notices( 'error', '', false, __( 'Please provide a post type name', 'cpt-plugin' ) );
|
949 |
-
}
|
950 |
-
|
951 |
-
# clean up $_POST data
|
952 |
-
foreach( $data as $key => $value ) {
|
953 |
-
if ( is_string( $value ) ) {
|
954 |
-
$data[ $key ] = sanitize_text_field( $value );
|
955 |
-
} else {
|
956 |
-
array_map( 'sanitize_text_field', $data[ $key ] );
|
957 |
-
}
|
958 |
-
}
|
959 |
-
|
960 |
-
# Check if they didn't put quotes in the name or rewrite slug.
|
961 |
-
if ( false !== strpos( $data['cpt_custom_post_type']['name'], '\'' ) ||
|
962 |
-
false !== strpos( $data['cpt_custom_post_type']['name'], '\"' ) ||
|
963 |
-
false !== strpos( $data['cpt_custom_post_type']['rewrite_slug'], '\'' ) ||
|
964 |
-
false !== strpos( $data['cpt_custom_post_type']['rewrite_slug'], '\"' ) ) {
|
965 |
-
|
966 |
-
return cptui_admin_notices( 'error', '', false, __( 'Please do not use quotes in post type names or rewrite slugs', 'cpt-plugin' ) );
|
967 |
-
}
|
968 |
-
|
969 |
-
$post_types = get_option( 'cptui_post_types', array() );
|
970 |
-
|
971 |
-
# Check if we already have a post type of that name.
|
972 |
-
if ( 'new' == $data['cpt_type_status'] && ( array_key_exists( strtolower( $data['cpt_custom_post_type']['name'] ), $post_types ) || in_array( $data['cpt_custom_post_type']['name'], cptui_reserved_post_types() ) ) ) {
|
973 |
-
return cptui_admin_notices( 'error', '', false, sprintf( __( 'Please choose a different post type name. %s is already registered.', 'cpt-plugin' ), $data['cpt_custom_post_type']['name'] ) );
|
974 |
-
}
|
975 |
-
|
976 |
-
if ( empty( $data['cpt_addon_taxes'] ) || !is_array( $data['cpt_addon_taxes'] ) ) {
|
977 |
-
$data['cpt_addon_taxes'] = array();
|
978 |
-
}
|
979 |
-
|
980 |
-
if ( empty( $data['cpt_supports'] ) || !is_array( $data['cpt_supports'] ) ) {
|
981 |
-
$data['cpt_supports'] = array();
|
982 |
-
}
|
983 |
-
|
984 |
-
foreach( $data['cpt_labels'] as $key => $label ) {
|
985 |
-
if ( empty( $label ) ) {
|
986 |
-
unset( $data['cpt_labels'][ $key ] );
|
987 |
-
}
|
988 |
-
$label = str_replace( "'", "", $label );
|
989 |
-
$label = str_replace( '"', '', $label );
|
990 |
-
|
991 |
-
$data['cpt_labels'][ $key ] = stripslashes_deep( $label );
|
992 |
-
}
|
993 |
-
|
994 |
-
if ( empty( $data['cpt_custom_post_type']['menu_icon'] ) ) {
|
995 |
-
$data['cpt_custom_post_type']['menu_icon'] = null;
|
996 |
-
}
|
997 |
-
|
998 |
-
$data['cpt_custom_post_type']['label'] = stripslashes( $data['cpt_custom_post_type']['label'] );
|
999 |
-
$data['cpt_custom_post_type']['singular_label'] = stripslashes( $data['cpt_custom_post_type']['singular_label'] );
|
1000 |
-
|
1001 |
-
$label = str_replace( "'", "", $data['cpt_custom_post_type']['label'] );
|
1002 |
-
$label = stripslashes( str_replace( '"', '', $label ) );
|
1003 |
-
|
1004 |
-
$singular_label = str_replace( "'", "", $data['cpt_custom_post_type']['singular_label'] );
|
1005 |
-
$singular_label = stripslashes( str_replace( '"', '', $singular_label ) );
|
1006 |
-
|
1007 |
-
$description = stripslashes_deep( $data['cpt_custom_post_type']['description'] );
|
1008 |
-
|
1009 |
-
$post_types[ $data['cpt_custom_post_type']['name'] ] = array(
|
1010 |
-
'name' => $data['cpt_custom_post_type']['name'],
|
1011 |
-
'label' => $label,
|
1012 |
-
'singular_label' => $singular_label,
|
1013 |
-
'description' => $description,
|
1014 |
-
'public' => disp_boolean( $data['cpt_custom_post_type']['public'] ),
|
1015 |
-
'show_ui' => disp_boolean( $data['cpt_custom_post_type']['show_ui'] ),
|
1016 |
-
'has_archive' => disp_boolean( $data['cpt_custom_post_type']['has_archive'] ),
|
1017 |
-
'exclude_from_search' => disp_boolean( $data['cpt_custom_post_type']['exclude_from_search'] ),
|
1018 |
-
'capability_type' => $data['cpt_custom_post_type']['capability_type'],
|
1019 |
-
'hierarchical' => disp_boolean( $data['cpt_custom_post_type']['hierarchical'] ),
|
1020 |
-
'rewrite' => disp_boolean( $data['cpt_custom_post_type']['rewrite'] ),
|
1021 |
-
'rewrite_slug' => $data['cpt_custom_post_type']['rewrite_slug'],
|
1022 |
-
'rewrite_withfront' => disp_boolean( $data['cpt_custom_post_type']['rewrite_withfront'] ),
|
1023 |
-
'query_var' => disp_boolean( $data['cpt_custom_post_type']['query_var'] ),
|
1024 |
-
'menu_position' => $data['cpt_custom_post_type']['menu_position'],
|
1025 |
-
'show_in_menu' => disp_boolean( $data['cpt_custom_post_type']['show_in_menu'] ),
|
1026 |
-
'show_in_menu_string' => $data['cpt_custom_post_type']['show_in_menu_string'],
|
1027 |
-
'menu_icon' => $data['cpt_custom_post_type']['menu_icon'],
|
1028 |
-
'supports' => $data['cpt_supports'],
|
1029 |
-
'taxonomies' => $data['cpt_addon_taxes'],
|
1030 |
-
'labels' => $data['cpt_labels']
|
1031 |
-
);
|
1032 |
-
|
1033 |
-
$success = update_option( 'cptui_post_types', $post_types );
|
1034 |
-
|
1035 |
-
/**
|
1036 |
-
* Fires after a post type is updated to our saved options.
|
1037 |
-
*
|
1038 |
-
* @since 0.9.0
|
1039 |
-
*
|
1040 |
-
* @param array $data Array of post type data that was updated.
|
1041 |
-
*/
|
1042 |
-
do_action( 'cptui_after_update_post_type', $data );
|
1043 |
-
|
1044 |
-
flush_rewrite_rules();
|
1045 |
-
|
1046 |
-
if ( isset( $success ) ) {
|
1047 |
-
if ( 'new' == $data['cpt_type_status'] ) {
|
1048 |
-
return cptui_admin_notices( 'add', $data['cpt_custom_post_type']['name'], $success );
|
1049 |
-
}
|
1050 |
-
}
|
1051 |
-
return cptui_admin_notices( 'update', $data['cpt_custom_post_type']['name'], true );
|
1052 |
-
}
|
1053 |
-
|
1054 |
-
/**
|
1055 |
-
* Return an array of names that users should not or can not use for post type names.
|
1056 |
-
*
|
1057 |
-
* @since 0.9.0
|
1058 |
-
*
|
1059 |
-
* @return array $value Array of names that are recommended against.
|
1060 |
-
*/
|
1061 |
-
function cptui_reserved_post_types() {
|
1062 |
-
|
1063 |
-
/**
|
1064 |
-
* Filters the list of reserved post types to check against.
|
1065 |
-
*
|
1066 |
-
* 3rd party plugin authors could use this to prevent duplicate post types.
|
1067 |
-
*
|
1068 |
-
* @since 0.9.0
|
1069 |
-
*
|
1070 |
-
* @param array $value Array of post type slugs to forbid.
|
1071 |
-
*/
|
1072 |
-
return apply_filters( 'cptui_reserved_post_types', array(
|
1073 |
-
'post',
|
1074 |
-
'page',
|
1075 |
-
'attachment',
|
1076 |
-
'revision',
|
1077 |
-
'nav_menu_item',
|
1078 |
-
'action',
|
1079 |
-
'order',
|
1080 |
-
'theme'
|
1081 |
-
) );
|
1082 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/support.php
DELETED
@@ -1,167 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/* This file controls everything about our support section. */
|
3 |
-
|
4 |
-
# Exit if accessed directly
|
5 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Add our cptui.js file, with dependencies on jQuery.
|
9 |
-
*
|
10 |
-
* @since 0.9.0
|
11 |
-
*/
|
12 |
-
function cptui_support_enqueue_scripts() {
|
13 |
-
wp_enqueue_script( 'cptui', plugins_url( 'js/cptui.js' , dirname(__FILE__) ) . '', array( 'jquery' ), '0.9', true );
|
14 |
-
}
|
15 |
-
add_action( 'admin_enqueue_scripts', 'cptui_support_enqueue_scripts' );
|
16 |
-
|
17 |
-
/**
|
18 |
-
* Add our settings page to the menu.
|
19 |
-
*
|
20 |
-
* @since 0.9.0
|
21 |
-
*/
|
22 |
-
function cptui_support_admin_menu() {
|
23 |
-
add_submenu_page( 'cptui_main_menu', __( 'Help/Support', 'cpt-plugin' ), __( 'Help/Support', 'cpt-plugin' ), 'manage_options', 'cptui_support', 'cptui_support' );
|
24 |
-
}
|
25 |
-
add_action( 'admin_menu', 'cptui_support_admin_menu' );
|
26 |
-
|
27 |
-
/**
|
28 |
-
* Create our settings page output.
|
29 |
-
*
|
30 |
-
* @since 0.9.0
|
31 |
-
*
|
32 |
-
* @return string HTML output for the page.
|
33 |
-
*/
|
34 |
-
function cptui_support() {
|
35 |
-
echo '<div class="wrap">';
|
36 |
-
|
37 |
-
/**
|
38 |
-
* Fires at the top of the FAQ/Support page.
|
39 |
-
*
|
40 |
-
* @since 0.9.0
|
41 |
-
*/
|
42 |
-
do_action( 'cptui_main_page_before_faq' ); ?>
|
43 |
-
|
44 |
-
<h1><?php _e( 'Custom Post Type UI Support', 'cpt-plugin' ); ?></h1>
|
45 |
-
|
46 |
-
<p><?php printf( __( 'Please note that this plugin will NOT handle display of registered post types or taxonomies in your current theme. It will simply register them for you. If all else fails, visit us on the %s', 'cpt-plugin' ),
|
47 |
-
'<a href="http://www.wordpress.org/support/plugin/custom-post-type-ui/">' . __( 'Support Forums', 'cpt-plugin' ) . '</a>'
|
48 |
-
); ?></p>
|
49 |
-
|
50 |
-
<table id="support" class="form-table cptui-table">
|
51 |
-
<tr>
|
52 |
-
<td>
|
53 |
-
<h2><?php _e( 'General', 'cpt-plugin' ); ?></h2>
|
54 |
-
<ol id="questions_general">
|
55 |
-
<li>
|
56 |
-
<span class="question"><?php _e( 'I changed my custom post type name and now I can not get to my posts. How do I get them back?', 'cpt-plugin' ); ?></span>
|
57 |
-
<div class="answer"><?php _e( 'You can either change the custom post type name back to the original name or try the Post Type Switcher plugin', 'cpt-plugin' ); ?>
|
58 |
-
<a href="http://wordpress.org/plugins/post-type-switcher/" target="_blank">http://wordpress.org/extend/plugins/post-type-switcher/</a>
|
59 |
-
</div>
|
60 |
-
</li>
|
61 |
-
<li>
|
62 |
-
<span class="question"><?php _e( 'I changed my custom post type or taxonomy slug and now I have duplicates shown. How do I remove the duplicate?', 'cpt-plugin' ); ?></span>
|
63 |
-
<div class="answer"><?php _e( 'Renaming the slug for a post type or taxonomy creates a new entry in our saved option which gets registered as its own post type or taxonomy. Since the settings will be mirrored from the previous slug, you will just need to delete the previous version\'s entry.', 'cpt-plugin' ); ?> <a href="http://wordpress.org/plugins/post-type-switcher/" target="_blank">http://wordpress.org/extend/plugins/post-type-switcher/</a></div>
|
64 |
-
</li>
|
65 |
-
<li>
|
66 |
-
<span class="question"><?php _e( 'I have added post thumbnail and/or post format support to my post type, but those do not appear when adding a post type post.', 'cpt-plugin' ); ?></span>
|
67 |
-
<div class="answer"><?php _e( 'Make sure your theme has post "post-thumbnails" theme support enabled.', 'cpt-plugin' ); ?> <a href="http://codex.wordpress.org/Function_Reference/add_theme_support" target="_blank">http://codex.wordpress.org/Function_Reference/add_theme_support</a></div>
|
68 |
-
</li>
|
69 |
-
</ol>
|
70 |
-
</td>
|
71 |
-
<td>
|
72 |
-
<h2><?php _e( 'Front-end Display', 'cpt-plugin' ); ?></h2>
|
73 |
-
<ol id="questions_front">
|
74 |
-
<li>
|
75 |
-
<span class="question"><?php _e( 'What template files should I edit to alter my post type display?', 'cpt-plugin' ); ?></span>
|
76 |
-
<div class="answer"><?php printf( __( 'Please visit the %sTemplate Hierarchy%s page on the WordPress codex for details about available templates.', 'cpt-plugin' ),
|
77 |
-
'<a href="http://codex.wordpress.org/Template_Hierarchy" target="_blank">',
|
78 |
-
'</a>'
|
79 |
-
); ?>
|
80 |
-
</div>
|
81 |
-
</li>
|
82 |
-
<li>
|
83 |
-
<span class="question"><?php _e( 'How do I display my custom post type on my site?', 'cpt-plugin' ); ?></span>
|
84 |
-
<div class="answer"><?php printf( __( 'You will need to utilize the %sWP_Query%s class to handle display in custom locations. If you have set the post type to have archives, the archive url should be something like "http://www.mysite.com/post-type-slug"', 'cpt-plugin' ),
|
85 |
-
'<a href="http://codex.wordpress.org/Class_Reference/WP_Query" target="_blank">',
|
86 |
-
'</a>'
|
87 |
-
); ?></div>
|
88 |
-
</li>
|
89 |
-
<li>
|
90 |
-
<span class="question"><?php _e( 'I have added categories and tags to my custom post type, but they do not appear in the archives.', 'cpt-plugin' ); ?></span>
|
91 |
-
<div class="answer"><?php printf( __( 'You will need to add your newly created post type to the types that the category and tag archives query for. You can see a tutorial on how to do that at %s', 'cpt-plugin' ),
|
92 |
-
'<a href="http://wpmu.org/add-custom-post-types-to-tags-and-categories-in-wordpress/" target="_blank">http://wpmu.org/add-custom-post-types-to-tags-and-categories-in-wordpress/</a>'
|
93 |
-
); ?> </div>
|
94 |
-
</li>
|
95 |
-
</ol>
|
96 |
-
</td>
|
97 |
-
</tr>
|
98 |
-
<tr>
|
99 |
-
<td>
|
100 |
-
<h2><?php _e( 'Advanced', 'cpt-plugin' ); ?></h2>
|
101 |
-
<ol id="questions_advanced">
|
102 |
-
<li>
|
103 |
-
<span class="question"><?php _e( 'How do I add custom metaboxes to my post type?', 'cpt-plugin' ); ?></span>
|
104 |
-
<div class="answer"><?php printf(
|
105 |
-
__( 'We recommend checking out %s, the latest iteration of "Custom Metaboxes and Fields for WordPress". Both are maintained by WebDevStudios.', 'cpt-plugin' ),
|
106 |
-
'<a href="https://wordpress.org/plugins/cmb2/" target="_blank">CMB2</a>'
|
107 |
-
); ?>
|
108 |
-
</div>
|
109 |
-
</li>
|
110 |
-
<li>
|
111 |
-
<span class="question"><?php _e( 'How do I add a newly registered taxonomy to a post type that already exists?', 'cpt-plugin' ); ?></span>
|
112 |
-
<div class="answer"><?php printf(
|
113 |
-
__( 'Check out the %s function for documentation and usage examples.'),
|
114 |
-
'<a href="http://codex.wordpress.org/Function_Reference/register_taxonomy_for_object_type" target="_blank">register_taxonomy_for_object_type()</a>'
|
115 |
-
); ?>
|
116 |
-
</div>
|
117 |
-
</li>
|
118 |
-
<li>
|
119 |
-
<span class="question"><?php _e( 'Post relationships?', 'cpt-plugin' ); ?></span>
|
120 |
-
<div class="answer"><?php printf( __( '%s has an excellent %spost%s introducing users to the %sPosts 2 Posts%s plugin that should be a good start.', 'cpt-plugin' ),
|
121 |
-
'Pippin Williamson',
|
122 |
-
'<a href="http://pippinsplugins.com/introduction-posts-2-posts-plugin/" target="_blank">',
|
123 |
-
'</a>',
|
124 |
-
'<a href="https://wordpress.org/plugins/posts-to-posts/" target="_blank">',
|
125 |
-
'</a>'
|
126 |
-
); ?></div>
|
127 |
-
</li>
|
128 |
-
<li>
|
129 |
-
<span class="question"><?php _e( 'How do I filter the "enter title here" text in the post editor screen.', 'cpt-plugin' ); ?></span>
|
130 |
-
<div class="answer"><p><?php _e( 'Change text inside the post/page editor title field. Should be able to adapt as necessary.', 'cpt-plugin' ); ?></p>
|
131 |
-
<pre><code>function my_custom_title_text( $title ){
|
132 |
-
global $post;
|
133 |
-
if ( 'ENTER POST TYPE SLUG HERE' == $post->post_type )
|
134 |
-
return 'NEW CUSTOM TEXT HERE';
|
135 |
-
}
|
136 |
-
}
|
137 |
-
add_filter( 'enter_title_here', 'my_custom_title_text' );
|
138 |
-
</code></pre></div>
|
139 |
-
</li>
|
140 |
-
</ol>
|
141 |
-
</td>
|
142 |
-
<td>
|
143 |
-
|
144 |
-
<?php
|
145 |
-
|
146 |
-
/**
|
147 |
-
* Fires in the last table cell of the FAQ list.
|
148 |
-
*
|
149 |
-
* @since 0.9.0
|
150 |
-
*/
|
151 |
-
do_action( 'cptui_main_page_custom_questions' );
|
152 |
-
?>
|
153 |
-
</td>
|
154 |
-
</tr>
|
155 |
-
</table>
|
156 |
-
|
157 |
-
<?php
|
158 |
-
|
159 |
-
/**
|
160 |
-
* Fires at the bottom of the FAQ/Support page.
|
161 |
-
*
|
162 |
-
* @since 0.9.0
|
163 |
-
*/
|
164 |
-
do_action( 'cptui_main_page_after_faq' );
|
165 |
-
|
166 |
-
echo '</div>';
|
167 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/taxonomies.php
DELETED
@@ -1,692 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* This file controls all of the content from the Taxonomies page.
|
4 |
-
*/
|
5 |
-
|
6 |
-
# Exit if accessed directly
|
7 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
8 |
-
|
9 |
-
/**
|
10 |
-
* Add our cptui.js file, with dependencies on jQuery and jQuery UI.
|
11 |
-
*
|
12 |
-
* @since 0.9.0
|
13 |
-
*/
|
14 |
-
function cptui_taxonomies_enqueue_scripts() {
|
15 |
-
wp_enqueue_script( 'cptui', plugins_url( 'js/cptui.js' , dirname(__FILE__) ) . '', array( 'jquery', 'jquery-ui-core', 'jquery-ui-accordion' ), '0.9', true );
|
16 |
-
wp_localize_script( 'cptui', 'confirmdata', array( 'confirm' => __( 'Are you sure you want to delete this?', 'cpt-plugin' ) ) );
|
17 |
-
}
|
18 |
-
add_action( 'admin_enqueue_scripts', 'cptui_taxonomies_enqueue_scripts' );
|
19 |
-
|
20 |
-
/**
|
21 |
-
* Add our settings page to the menu.
|
22 |
-
*
|
23 |
-
* @since 0.9.0
|
24 |
-
*/
|
25 |
-
function cptui_taxonomies_admin_menu() {
|
26 |
-
add_submenu_page( 'cptui_main_menu', __( 'Add/Edit Taxonomies', 'cpt-plugin' ), __( 'Add/Edit Taxonomies', 'cpt-plugin' ), 'manage_options', 'cptui_manage_taxonomies', 'cptui_manage_taxonomies' );
|
27 |
-
}
|
28 |
-
add_action( 'admin_menu', 'cptui_taxonomies_admin_menu' );
|
29 |
-
|
30 |
-
/**
|
31 |
-
* Create our settings page output.
|
32 |
-
*
|
33 |
-
* @since 0.9.0
|
34 |
-
*
|
35 |
-
* @return string HTML output for the page.
|
36 |
-
*/
|
37 |
-
function cptui_manage_taxonomies() {
|
38 |
-
|
39 |
-
if ( !empty( $_POST ) ) {
|
40 |
-
if ( isset( $_POST['cpt_submit'] ) ) {
|
41 |
-
check_admin_referer( 'cptui_addedit_taxonomy_nonce_action', 'cptui_addedit_taxonomy_nonce_field' );
|
42 |
-
$notice = cptui_update_taxonomy( $_POST );
|
43 |
-
} elseif ( isset( $_POST['cpt_delete'] ) ) {
|
44 |
-
check_admin_referer( 'cptui_addedit_taxonomy_nonce_action', 'cptui_addedit_taxonomy_nonce_field' );
|
45 |
-
$notice = cptui_delete_taxonomy( $_POST );
|
46 |
-
}
|
47 |
-
}
|
48 |
-
|
49 |
-
$tab = ( !empty( $_GET ) && !empty( $_GET['action'] ) && 'edit' == $_GET['action'] ) ? 'edit' : 'new'; ?>
|
50 |
-
|
51 |
-
<div class="wrap">
|
52 |
-
|
53 |
-
<?php
|
54 |
-
|
55 |
-
if ( isset( $notice ) ) {
|
56 |
-
echo $notice;
|
57 |
-
}
|
58 |
-
|
59 |
-
# Create our tabs.
|
60 |
-
cptui_settings_tab_menu( $page = 'taxonomies' );
|
61 |
-
|
62 |
-
if ( 'edit' == $tab ) {
|
63 |
-
|
64 |
-
$taxonomies = get_option( 'cptui_taxonomies' );
|
65 |
-
|
66 |
-
$selected_taxonomy = cptui_get_current_taxonomy();
|
67 |
-
|
68 |
-
if ( $selected_taxonomy ) {
|
69 |
-
if ( array_key_exists( $selected_taxonomy, $taxonomies ) ) {
|
70 |
-
$current = $taxonomies[ $selected_taxonomy ];
|
71 |
-
}
|
72 |
-
}
|
73 |
-
}
|
74 |
-
|
75 |
-
$ui = new cptui_admin_ui();
|
76 |
-
|
77 |
-
# Will only be set if we're already on the edit screen
|
78 |
-
if ( !empty( $taxonomies ) ) { ?>
|
79 |
-
<form id="cptui_select_taxonomy" method="post">
|
80 |
-
<p><?php _e( 'Select a taxonomy to edit. DO NOT EDIT the taxonomy slug unless necessary. Changing that value registers a new taxonomy entry for your install.', 'cpt-plugin' ); ?></p>
|
81 |
-
<?php
|
82 |
-
cptui_taxonomies_dropdown( $taxonomies );
|
83 |
-
?>
|
84 |
-
<input type="submit" class="button-secondary" name="cptui_select_taxonomy_submit" value="<?php echo esc_attr( apply_filters( 'cptui_taxonomy_submit_select', __( 'Select', 'cpt-plugin' ) ) ); ?>" />
|
85 |
-
</form>
|
86 |
-
<?php
|
87 |
-
} ?>
|
88 |
-
|
89 |
-
<form method="post">
|
90 |
-
<table class="form-table cptui-table">
|
91 |
-
<tr>
|
92 |
-
<td><!--LEFT SIDE-->
|
93 |
-
<table>
|
94 |
-
<?php
|
95 |
-
|
96 |
-
echo $ui->get_text_input( array(
|
97 |
-
'namearray' => 'cpt_custom_tax',
|
98 |
-
'name' => 'name',
|
99 |
-
'textvalue' => ( isset( $current['name'] ) ) ? esc_attr( $current['name'] ) : '',
|
100 |
-
'maxlength' => '32',
|
101 |
-
'onblur' => 'this.value=this.value.toLowerCase()',
|
102 |
-
'labeltext' => __( 'Taxonomy Slug', 'cpt-plugin' ),
|
103 |
-
'aftertext' => __( '(e.g. actors)', 'cpt-plugin' ),
|
104 |
-
'helptext' => esc_attr__( 'The taxonomy name. Used to retrieve custom taxonomy content. Should be short and unique', 'cpt-plugin'),
|
105 |
-
'required' => true,
|
106 |
-
) );
|
107 |
-
|
108 |
-
echo $ui->get_text_input( array(
|
109 |
-
'namearray' => 'cpt_custom_tax',
|
110 |
-
'name' => 'label',
|
111 |
-
'textvalue' => ( isset( $current['label'] ) ) ? esc_attr( $current['label'] ) : '',
|
112 |
-
'aftertext' => __( '(e.g. Actors)', 'cpt-plugin' ),
|
113 |
-
'labeltext' => __( 'Plural Label', 'cpt-plugin' ),
|
114 |
-
'helptext' => esc_attr__( 'Taxonomy label. Used in the admin menu for displaying custom taxonomy.', 'cpt-plugin'),
|
115 |
-
) );
|
116 |
-
|
117 |
-
echo $ui->get_text_input( array(
|
118 |
-
'namearray' => 'cpt_custom_tax',
|
119 |
-
'name' => 'singular_label',
|
120 |
-
'textvalue' => ( isset( $current['singular_label'] ) ) ? esc_attr( $current['singular_label'] ) : '',
|
121 |
-
'aftertext' => __( '(e.g. Actor)', 'cpt-plugin' ),
|
122 |
-
'labeltext' => __( 'Singular Label', 'cpt-plugin' ),
|
123 |
-
'helptext' => esc_attr__( 'Taxonomy Singular label. Used in WordPress when a singular label is needed.', 'cpt-plugin'),
|
124 |
-
) );
|
125 |
-
|
126 |
-
echo $ui->get_tr_start() . $ui->get_th_start() . __( 'Attach to Post Type', 'cpt-plugin' ) . $ui->get_required();
|
127 |
-
echo $ui->get_th_end() . $ui->get_td_start();
|
128 |
-
|
129 |
-
/**
|
130 |
-
* Filters the arguments for post types to list for taxonomy association.
|
131 |
-
*
|
132 |
-
* @since 0.9.0
|
133 |
-
*
|
134 |
-
* @param array $value Array of default arguments.
|
135 |
-
*/
|
136 |
-
$args = apply_filters( 'cptui_attach_post_types_to_taxonomy', array( 'public' => true ) );
|
137 |
-
|
138 |
-
# If they don't return an array, fall back to the original default. Don't need to check for empty, because empty array is default for $args param in get_post_types anyway.
|
139 |
-
if ( !is_array( $args ) ) {
|
140 |
-
$args = array( 'public' => true );
|
141 |
-
}
|
142 |
-
$output = 'objects'; # or objects
|
143 |
-
$post_types = get_post_types( $args, $output );
|
144 |
-
|
145 |
-
foreach ( $post_types as $post_type ) {
|
146 |
-
/*
|
147 |
-
* Supports Taxonomies Checkbox
|
148 |
-
*/
|
149 |
-
echo $ui->get_check_input( array(
|
150 |
-
'checkvalue' => $post_type->name,
|
151 |
-
'checked' => ( !empty( $current['object_type'] ) && is_array( $current['object_type'] ) && in_array( $post_type->name, $current['object_type'] ) ) ? 'true' : 'false',
|
152 |
-
'name' => $post_type->name,
|
153 |
-
'namearray' => 'cpt_post_types',
|
154 |
-
'textvalue' => $post_type->name,
|
155 |
-
'labeltext' => $post_type->label,
|
156 |
-
'helptext' => sprintf( esc_attr__( 'Adds %s support', 'cpt-plugin' ), $post_type->name ),
|
157 |
-
'wrap' => false
|
158 |
-
) );
|
159 |
-
}
|
160 |
-
echo $ui->get_td_end() . $ui->get_tr_end(); ?>
|
161 |
-
</table>
|
162 |
-
<p class="submit">
|
163 |
-
<?php wp_nonce_field( 'cptui_addedit_taxonomy_nonce_action', 'cptui_addedit_taxonomy_nonce_field' );
|
164 |
-
if ( !empty( $_GET ) && !empty( $_GET['action'] ) && 'edit' == $_GET['action'] ) { ?>
|
165 |
-
<input type="submit" class="button-primary" name="cpt_submit" value="<?php echo esc_attr( apply_filters( 'cptui_taxonomy_submit_edit', __( 'Edit Taxonomy', 'cpt-plugin' ) ) ); ?>" />
|
166 |
-
<input type="submit" class="button-secondary" name="cpt_delete" id="cpt_submit_delete" value="<?php echo apply_filters( 'cptui_taxonomy_submit_delete', __( 'Delete Taxonomy', 'cpt-plugin' ) ); ?>" />
|
167 |
-
<?php } else { ?>
|
168 |
-
<input type="submit" class="button-primary" name="cpt_submit" value="<?php echo esc_attr( apply_filters( 'cptui_taxonomy_submit_add', __( 'Add Taxonomy', 'cpt-plugin' ) ) ); ?>" />
|
169 |
-
<?php } ?>
|
170 |
-
<input type="hidden" name="cpt_tax_status" id="cpt_tax_status" value="<?php echo $tab; ?>" />
|
171 |
-
</p>
|
172 |
-
</td>
|
173 |
-
<td>
|
174 |
-
<p><?php _e( 'Click headings to reveal available options.', 'cpt-plugin' ); ?></p>
|
175 |
-
|
176 |
-
<div id="cptui_accordion">
|
177 |
-
<h3 title="<?php esc_attr_e( 'Click to expand', 'cpt-plugin' ); ?>"><?php _e( 'Labels', 'cpt-plugin' ); ?></h3>
|
178 |
-
<div>
|
179 |
-
<table>
|
180 |
-
<?php
|
181 |
-
|
182 |
-
echo $ui->get_text_input( array(
|
183 |
-
'namearray' => 'cpt_tax_labels',
|
184 |
-
'name' => 'menu_name',
|
185 |
-
'textvalue' => ( isset( $current['labels']['menu_name'] ) ) ? esc_attr( $current['labels']['menu_name'] ) : '',
|
186 |
-
'aftertext' => __( '(e.g. Actors)', 'cpt-plugin' ),
|
187 |
-
'labeltext' => __( 'Menu Name', 'cpt-plugin' ),
|
188 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin'),
|
189 |
-
) );
|
190 |
-
|
191 |
-
echo $ui->get_text_input( array(
|
192 |
-
'namearray' => 'cpt_tax_labels',
|
193 |
-
'name' => 'all_items',
|
194 |
-
'textvalue' => ( isset( $current['labels']['all_items'] ) ) ? esc_attr( $current['labels']['all_items'] ) : '',
|
195 |
-
'aftertext' => __( '(e.g. All Actors)', 'cpt-plugin' ),
|
196 |
-
'labeltext' => __( 'All Items', 'cpt-plugin' ),
|
197 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin'),
|
198 |
-
) );
|
199 |
-
|
200 |
-
echo $ui->get_text_input( array(
|
201 |
-
'namearray' => 'cpt_tax_labels',
|
202 |
-
'name' => 'edit_item',
|
203 |
-
'textvalue' => ( isset( $current['labels']['edit_item'] ) ) ? esc_attr( $current['labels']['edit_item'] ) : '',
|
204 |
-
'aftertext' => __( '(e.g. Edit Actor)', 'cpt-plugin' ),
|
205 |
-
'labeltext' => __( 'Edit Item', 'cpt-plugin' ),
|
206 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin'),
|
207 |
-
) );
|
208 |
-
|
209 |
-
echo $ui->get_text_input( array(
|
210 |
-
'namearray' => 'cpt_tax_labels',
|
211 |
-
'name' => 'view_item',
|
212 |
-
'textvalue' => ( isset( $current['labels']['view_item'] ) ) ? esc_attr( $current['labels']['view_item'] ) : '',
|
213 |
-
'aftertext' => __( '(e.g. View Actor)', 'cpt-plugin' ),
|
214 |
-
'labeltext' => __( 'View Item', 'cpt-plugin' ),
|
215 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin'),
|
216 |
-
) );
|
217 |
-
|
218 |
-
echo $ui->get_text_input( array(
|
219 |
-
'namearray' => 'cpt_tax_labels',
|
220 |
-
'name' => 'update_item',
|
221 |
-
'textvalue' => ( isset( $current['labels']['update_item'] ) ) ? esc_attr( $current['labels']['update_item'] ) : '',
|
222 |
-
'aftertext' => __( '(e.g. Update Actor Name)', 'cpt-plugin' ),
|
223 |
-
'labeltext' => __( 'Update Item Name', 'cpt-plugin' ),
|
224 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin'),
|
225 |
-
) );
|
226 |
-
|
227 |
-
echo $ui->get_text_input( array(
|
228 |
-
'namearray' => 'cpt_tax_labels',
|
229 |
-
'name' => 'add_new_item',
|
230 |
-
'textvalue' => ( isset( $current['labels']['add_new_item'] ) ) ? esc_attr( $current['labels']['add_new_item'] ) : '',
|
231 |
-
'aftertext' => __( '(e.g. Add New Actor)', 'cpt-plugin' ),
|
232 |
-
'labeltext' => __( 'Add New Item', 'cpt-plugin' ),
|
233 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin'),
|
234 |
-
) );
|
235 |
-
|
236 |
-
echo $ui->get_text_input( array(
|
237 |
-
'namearray' => 'cpt_tax_labels',
|
238 |
-
'name' => 'new_item_name',
|
239 |
-
'textvalue' => ( isset( $current['labels']['new_item_name'] ) ) ? esc_attr( $current['labels']['new_item_name'] ) : '',
|
240 |
-
'aftertext' => __( '(e.g. New Actor Name)', 'cpt-plugin' ),
|
241 |
-
'labeltext' => __( 'New Item Name', 'cpt-plugin' ),
|
242 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin'),
|
243 |
-
) );
|
244 |
-
|
245 |
-
echo $ui->get_text_input( array(
|
246 |
-
'namearray' => 'cpt_tax_labels',
|
247 |
-
'name' => 'parent_item',
|
248 |
-
'textvalue' => ( isset( $current['labels']['parent_item'] ) ) ? esc_attr( $current['labels']['parent_item'] ) : '',
|
249 |
-
'aftertext' => __( '(e.g. Parent Actor)', 'cpt-plugin' ),
|
250 |
-
'labeltext' => __( 'Parent Item', 'cpt-plugin' ),
|
251 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin'),
|
252 |
-
) );
|
253 |
-
|
254 |
-
echo $ui->get_text_input( array(
|
255 |
-
'namearray' => 'cpt_tax_labels',
|
256 |
-
'name' => 'parent_item_colon',
|
257 |
-
'textvalue' => ( isset( $current['labels']['parent_item_colon'] ) ) ? esc_attr( $current['labels']['parent_item_colon'] ) : '',
|
258 |
-
'aftertext' => __( '(e.g. Parent Actor:)', 'cpt-plugin' ),
|
259 |
-
'labeltext' => __( 'Parent Item Colon', 'cpt-plugin' ),
|
260 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin'),
|
261 |
-
) );
|
262 |
-
|
263 |
-
echo $ui->get_text_input( array(
|
264 |
-
'namearray' => 'cpt_tax_labels',
|
265 |
-
'name' => 'search_items',
|
266 |
-
'textvalue' => ( isset( $current['labels']['search_items'] ) ) ? esc_attr( $current['labels']['search_items'] ) : '',
|
267 |
-
'aftertext' => __( '(e.g. Search Actors)', 'cpt-plugin' ),
|
268 |
-
'labeltext' => __( 'Search Items', 'cpt-plugin' ),
|
269 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin'),
|
270 |
-
) );
|
271 |
-
|
272 |
-
echo $ui->get_text_input( array(
|
273 |
-
'namearray' => 'cpt_tax_labels',
|
274 |
-
'name' => 'popular_items',
|
275 |
-
'textvalue' => ( isset( $current['labels']['popular_items'] ) ) ? esc_attr( $current['labels']['popular_items'] ) : null,
|
276 |
-
'aftertext' => __( '(e.g. Popular Actors)', 'cpt-plugin' ),
|
277 |
-
'labeltext' => __( 'Popular Items', 'cpt-plugin' ),
|
278 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin'),
|
279 |
-
) );
|
280 |
-
|
281 |
-
echo $ui->get_text_input( array(
|
282 |
-
'namearray' => 'cpt_tax_labels',
|
283 |
-
'name' => 'separate_items_with_commas',
|
284 |
-
'textvalue' => ( isset( $current['labels']['separate_items_with_commas'] ) ) ? esc_attr( $current['labels']['separate_items_with_commas'] ) : null,
|
285 |
-
'aftertext' => __( '(e.g. Separate actors with commas)', 'cpt-plugin' ),
|
286 |
-
'labeltext' => __( 'Separate Items with Commas', 'cpt-plugin' ),
|
287 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin'),
|
288 |
-
) );
|
289 |
-
|
290 |
-
echo $ui->get_text_input( array(
|
291 |
-
'namearray' => 'cpt_tax_labels',
|
292 |
-
'name' => 'add_or_remove_items',
|
293 |
-
'textvalue' => ( isset( $current['labels']['add_or_remove_items'] ) ) ? esc_attr( $current['labels']['add_or_remove_items'] ) : null,
|
294 |
-
'aftertext' => __( '(e.g. Add or remove actors)', 'cpt-plugin' ),
|
295 |
-
'labeltext' => __( 'Add or Remove Items', 'cpt-plugin' ),
|
296 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin'),
|
297 |
-
) );
|
298 |
-
|
299 |
-
echo $ui->get_text_input( array(
|
300 |
-
'namearray' => 'cpt_tax_labels',
|
301 |
-
'name' => 'choose_from_most_used',
|
302 |
-
'textvalue' => ( isset( $current['labels']['choose_from_most_used'] ) ) ? esc_attr( $current['labels']['choose_from_most_used'] ) : null,
|
303 |
-
'aftertext' => __( '(e.g. Choose from the most used actors)', 'cpt-plugin' ),
|
304 |
-
'labeltext' => __( 'Choose From Most Used', 'cpt-plugin' ),
|
305 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin'),
|
306 |
-
) );
|
307 |
-
|
308 |
-
echo $ui->get_text_input( array(
|
309 |
-
'namearray' => 'cpt_tax_labels',
|
310 |
-
'name' => 'not_found',
|
311 |
-
'textvalue' => ( isset( $current['labels']['not_found'] ) ) ? esc_attr( $current['labels']['not_found'] ) : null,
|
312 |
-
'aftertext' => __( '(e.g. No actors found)', 'cpt-plugin' ),
|
313 |
-
'labeltext' => __( 'Not found', 'cpt-plugin' ),
|
314 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'cpt-plugin'),
|
315 |
-
) );
|
316 |
-
?>
|
317 |
-
</table>
|
318 |
-
</div>
|
319 |
-
<h3 title="<?php esc_attr_e( 'Click to expand', 'cpt-plugin' ); ?>"><?php _e( 'Settings', 'cpt-plugin' ); ?></h3>
|
320 |
-
<div>
|
321 |
-
<table>
|
322 |
-
<?php
|
323 |
-
$select = array(
|
324 |
-
'options' => array(
|
325 |
-
array( 'attr' => '0', 'text' => __( 'False', 'cpt-plugin' ), 'default' => 'true' ),
|
326 |
-
array( 'attr' => '1', 'text' => __( 'True', 'cpt-plugin' ) )
|
327 |
-
)
|
328 |
-
);
|
329 |
-
$selected = ( isset( $current ) ) ? disp_boolean( $current['hierarchical'] ) : '';
|
330 |
-
$select['selected'] = ( !empty( $selected ) ) ? $current['hierarchical'] : '';
|
331 |
-
echo $ui->get_select_input( array(
|
332 |
-
'namearray' => 'cpt_custom_tax',
|
333 |
-
'name' => 'hierarchical',
|
334 |
-
'labeltext' => __( 'Hierarchical', 'cpt-plugin' ),
|
335 |
-
'aftertext' => __( '(default: False)', 'cpt-plugin' ),
|
336 |
-
'helptext' => esc_attr__( 'Whether the taxonomy can have parent-child relationships', 'cpt-plugin' ),
|
337 |
-
'selections' => $select
|
338 |
-
) );
|
339 |
-
|
340 |
-
$select = array(
|
341 |
-
'options' => array(
|
342 |
-
array( 'attr' => '0', 'text' => __( 'False', 'cpt-plugin' ) ),
|
343 |
-
array( 'attr' => '1', 'text' => __( 'True', 'cpt-plugin' ), 'default' => 'true' )
|
344 |
-
)
|
345 |
-
);
|
346 |
-
$selected = ( isset( $current ) ) ? disp_boolean( $current['show_ui'] ) : '';
|
347 |
-
$select['selected'] = ( !empty( $selected ) ) ? $current['show_ui'] : '';
|
348 |
-
echo $ui->get_select_input( array(
|
349 |
-
'namearray' => 'cpt_custom_tax',
|
350 |
-
'name' => 'show_ui',
|
351 |
-
'labeltext' => __( 'Show UI', 'cpt-plugin' ),
|
352 |
-
'aftertext' => __( '(default: True)', 'cpt-plugin' ),
|
353 |
-
'helptext' => esc_attr__( 'Whether to generate a default UI for managing this custom taxonomy', 'cpt-plugin' ),
|
354 |
-
'selections' => $select
|
355 |
-
) );
|
356 |
-
|
357 |
-
$select = array(
|
358 |
-
'options' => array(
|
359 |
-
array( 'attr' => '0', 'text' => __( 'False', 'cpt-plugin' ) ),
|
360 |
-
array( 'attr' => '1', 'text' => __( 'True', 'cpt-plugin' ), 'default' => 'true' )
|
361 |
-
)
|
362 |
-
);
|
363 |
-
$selected = ( isset( $current ) ) ? disp_boolean( $current['query_var'] ) : '';
|
364 |
-
$select['selected'] = ( !empty( $selected ) ) ? $current['query_var'] : '';
|
365 |
-
echo $ui->get_select_input( array(
|
366 |
-
'namearray' => 'cpt_custom_tax',
|
367 |
-
'name' => 'query_var',
|
368 |
-
'labeltext' => __( 'Query Var', 'cpt-plugin' ),
|
369 |
-
'aftertext' => __( '(default: True)', 'cpt-plugin' ),
|
370 |
-
'selections' => $select
|
371 |
-
) );
|
372 |
-
|
373 |
-
echo $ui->get_text_input( array(
|
374 |
-
'namearray' => 'cpt_custom_tax',
|
375 |
-
'name' => 'query_var_slug',
|
376 |
-
'textvalue' => ( isset( $current['query_var_slug'] ) ) ? esc_attr( $current['query_var_slug'] ) : '',
|
377 |
-
'aftertext' => __( '(default: none). Query Var needs to be true to use.', 'cpt-plugin' ),
|
378 |
-
'labeltext' => __( 'Custom Query Var String', 'cpt-plugin' ),
|
379 |
-
'helptext' => esc_attr__( 'Custom Query Var Slug', 'cpt-plugin'),
|
380 |
-
) );
|
381 |
-
|
382 |
-
$select = array(
|
383 |
-
'options' => array(
|
384 |
-
array( 'attr' => '0', 'text' => __( 'False', 'cpt-plugin' ) ),
|
385 |
-
array( 'attr' => '1', 'text' => __( 'True', 'cpt-plugin' ), 'default' => 'true' )
|
386 |
-
)
|
387 |
-
);
|
388 |
-
$selected = ( isset( $current ) ) ? disp_boolean( $current['rewrite'] ) : '';
|
389 |
-
$select['selected'] = ( !empty( $selected ) ) ? $current['rewrite'] : '';
|
390 |
-
echo $ui->get_select_input( array(
|
391 |
-
'namearray' => 'cpt_custom_tax',
|
392 |
-
'name' => 'rewrite',
|
393 |
-
'labeltext' => __( 'Rewrite', 'cpt-plugin' ),
|
394 |
-
'aftertext' => __( '(default: True)', 'cpt-plugin' ),
|
395 |
-
'helptext' => esc_attr__( 'Triggers the handling of rewrites for this taxonomy', 'cpt-plugin' ),
|
396 |
-
'selections' => $select
|
397 |
-
) );
|
398 |
-
|
399 |
-
echo $ui->get_text_input( array(
|
400 |
-
'namearray' => 'cpt_custom_tax',
|
401 |
-
'name' => 'rewrite_slug',
|
402 |
-
'textvalue' => ( isset( $current['rewrite_slug'] ) ) ? esc_attr( $current['rewrite_slug'] ) : '',
|
403 |
-
'aftertext' => __( '(default: taxonomy name)', 'cpt-plugin' ),
|
404 |
-
'labeltext' => __( 'Custom Rewrite Slug', 'cpt-plugin' ),
|
405 |
-
'helptext' => esc_attr__( 'Custom Taxonomy Rewrite Slug', 'cpt-plugin'),
|
406 |
-
) );
|
407 |
-
|
408 |
-
$select = array(
|
409 |
-
'options' => array(
|
410 |
-
array( 'attr' => '0', 'text' => __( 'False', 'cpt-plugin' ) ),
|
411 |
-
array( 'attr' => '1', 'text' => __( 'True', 'cpt-plugin' ), 'default' => 'true' )
|
412 |
-
)
|
413 |
-
);
|
414 |
-
$selected = ( isset( $current ) ) ? disp_boolean( $current['rewrite_withfront'] ) : '';
|
415 |
-
$select['selected'] = ( !empty( $selected ) ) ? $current['rewrite_withfront'] : '';
|
416 |
-
echo $ui->get_select_input( array(
|
417 |
-
'namearray' => 'cpt_custom_tax',
|
418 |
-
'name' => 'rewrite_withfront',
|
419 |
-
'labeltext' => __( 'Rewrite With Front', 'cpt-plugin' ),
|
420 |
-
'aftertext' => __( '(default: true)', 'cpt-plugin' ),
|
421 |
-
'helptext' => esc_attr__( 'Should the permastruct be prepended with the front base.', 'cpt-plugin' ),
|
422 |
-
'selections' => $select
|
423 |
-
) );
|
424 |
-
|
425 |
-
$select = array(
|
426 |
-
'options' => array(
|
427 |
-
array( 'attr' => '0', 'text' => __( 'False', 'cpt-plugin' ), 'default' => 'false' ),
|
428 |
-
array( 'attr' => '1', 'text' => __( 'True', 'cpt-plugin' ) )
|
429 |
-
)
|
430 |
-
);
|
431 |
-
$selected = ( isset( $current ) ) ? disp_boolean( $current['rewrite_hierarchical'] ) : '';
|
432 |
-
$select['selected'] = ( !empty( $selected ) ) ? $current['rewrite_hierarchical'] : '';
|
433 |
-
echo $ui->get_select_input( array(
|
434 |
-
'namearray' => 'cpt_custom_tax',
|
435 |
-
'name' => 'rewrite_hierarchical',
|
436 |
-
'labeltext' => __( 'Rewrite Hierarchical', 'cpt-plugin' ),
|
437 |
-
'aftertext' => __( '(default: false)', 'cpt-plugin' ),
|
438 |
-
'helptext' => esc_attr__( 'Should the permastruct allow hierarchical urls.', 'cpt-plugin' ),
|
439 |
-
'selections' => $select
|
440 |
-
) );
|
441 |
-
|
442 |
-
$select = array(
|
443 |
-
'options' => array(
|
444 |
-
array( 'attr' => '0', 'text' => __( 'False', 'cpt-plugin' ), 'default' => 'true' ),
|
445 |
-
array( 'attr' => '1', 'text' => __( 'True', 'cpt-plugin' ) )
|
446 |
-
)
|
447 |
-
);
|
448 |
-
$selected = ( isset( $current ) ) ? disp_boolean( $current['show_admin_column'] ) : '';
|
449 |
-
$select['selected'] = ( !empty( $selected ) ) ? $current['show_admin_column'] : '';
|
450 |
-
echo $ui->get_select_input( array(
|
451 |
-
'namearray' => 'cpt_custom_tax',
|
452 |
-
'name' => 'show_admin_column',
|
453 |
-
'labeltext' => __( 'Show Admin Column', 'cpt-plugin' ),
|
454 |
-
'aftertext' => __( '(default: False)', 'cpt-plugin' ),
|
455 |
-
'helptext' => esc_attr__( 'Whether to allow automatic creation of taxonomy columns on associated post-types.', 'cpt-plugin' ),
|
456 |
-
'selections' => $select
|
457 |
-
) );
|
458 |
-
?>
|
459 |
-
</table>
|
460 |
-
</div>
|
461 |
-
|
462 |
-
<?php if ( 'new' == $tab ) { ?>
|
463 |
-
<h3 title="<?php esc_attr_e( 'Click to expand', 'cpt-plugin' ); ?>"><?php _e( 'Starter Notes', 'cpt-plugin' ); ?></h3>
|
464 |
-
<div><ol>
|
465 |
-
<?php
|
466 |
-
echo '<li>' . sprintf( __( 'Taxonomy names should have %smax 32 characters%s, and only contain alphanumeric, lowercase, characters, underscores in place of spaces, and letters that do not have accents.', 'cpt-plugin' ), '<strong class="wp-ui-highlight">', '</strong>' );
|
467 |
-
echo '<li>' . sprintf( __( 'If you are unfamiliar with the advanced taxonomy settings, just fill in the %sTaxonomy Name%s and choose an %sAttach to Post Type%s option. Remaining settings will use default values. Labels, if left blank, will be automatically created based on the taxonomy name. Hover over the question marks for more details.', 'cpt-plugin' ), '<strong class="wp-ui-highlight">', '</strong>', '<strong class="wp-ui-highlight">', '</strong>' ) ;
|
468 |
-
echo '<li>' . sprintf( __( 'Deleting custom taxonomies do %sNOT%s delete terms added to those taxonomies. You can recreate your taxonomies and the terms will return. Changing the name, after adding terms to the taxonomy, will not update the terms in the database.', 'cpt-plugin' ), '<strong class="wp-ui-highlight">', '</strong>' ); ?>
|
469 |
-
</ol></div>
|
470 |
-
<?php } ?>
|
471 |
-
</td>
|
472 |
-
</tr>
|
473 |
-
</table><!-- End outter table -->
|
474 |
-
</form>
|
475 |
-
</div><!-- End .wrap -->
|
476 |
-
<?php
|
477 |
-
}
|
478 |
-
|
479 |
-
/**
|
480 |
-
* Construct a dropdown of our taxonomies so users can select which to edit.
|
481 |
-
*
|
482 |
-
* @since 0.9.0
|
483 |
-
*
|
484 |
-
* @param array $taxonomies Array of taxonomies that are registered.
|
485 |
-
*
|
486 |
-
* @return string HTML select dropdown.
|
487 |
-
*/
|
488 |
-
function cptui_taxonomies_dropdown( $taxonomies = array() ) {
|
489 |
-
|
490 |
-
$ui = new cptui_admin_ui();
|
491 |
-
|
492 |
-
if ( !empty( $taxonomies ) ) {
|
493 |
-
$select = array();
|
494 |
-
$select['options'] = array();
|
495 |
-
|
496 |
-
$select['options'][] = array( 'attr' => '', 'text' => '--' );
|
497 |
-
|
498 |
-
foreach( $taxonomies as $tax ) {
|
499 |
-
$select['options'][] = array( 'attr' => $tax['name'], 'text' => $tax['label'] );
|
500 |
-
}
|
501 |
-
|
502 |
-
$current = cptui_get_current_taxonomy();
|
503 |
-
|
504 |
-
$select['selected'] = $current;
|
505 |
-
echo $ui->get_select_input( array(
|
506 |
-
'namearray' => 'cptui_selected_taxonomy',
|
507 |
-
'name' => 'taxonomy',
|
508 |
-
'selections' => $select
|
509 |
-
) );
|
510 |
-
}
|
511 |
-
}
|
512 |
-
|
513 |
-
/**
|
514 |
-
* Get the selected taxonomy from the $_POST global.
|
515 |
-
*
|
516 |
-
* @since 0.9.0
|
517 |
-
*
|
518 |
-
* @return bool|string False on no result, sanitized taxonomy if set.
|
519 |
-
*/
|
520 |
-
function cptui_get_current_taxonomy() {
|
521 |
-
if ( !empty( $_POST ) ) {
|
522 |
-
if ( isset( $_POST['cptui_selected_taxonomy']['taxonomy'] ) ) {
|
523 |
-
return sanitize_text_field( $_POST['cptui_selected_taxonomy']['taxonomy'] );
|
524 |
-
}
|
525 |
-
|
526 |
-
if ( isset( $_POST['cpt_custom_tax']['name'] ) ) {
|
527 |
-
return sanitize_text_field( $_POST['cpt_custom_tax']['name'] );
|
528 |
-
}
|
529 |
-
}
|
530 |
-
|
531 |
-
return false;
|
532 |
-
}
|
533 |
-
|
534 |
-
/**
|
535 |
-
* Delete our custom taxonomy from the array of taxonomies.
|
536 |
-
*
|
537 |
-
* @since 0.9.0
|
538 |
-
*
|
539 |
-
* @param $data array $_POST values.
|
540 |
-
*
|
541 |
-
* @return bool|string False on failure, string on success.
|
542 |
-
*/
|
543 |
-
function cptui_delete_taxonomy( $data = array() ) {
|
544 |
-
|
545 |
-
/**
|
546 |
-
* Fires before a taxonomy is deleted from our saved options.
|
547 |
-
*
|
548 |
-
* @since 0.9.0
|
549 |
-
*
|
550 |
-
* @param array $data Array of taxonomy data we are deleting.
|
551 |
-
*/
|
552 |
-
do_action( 'cptui_before_delete_taxonomy', $data );
|
553 |
-
|
554 |
-
#Check if they selected one to delete
|
555 |
-
if ( empty( $data['cpt_custom_tax']['name'] ) ) {
|
556 |
-
return cptui_admin_notices( 'error', '', false, __( 'Please provide a taxonomy to delete', 'cpt-plugin' ) );
|
557 |
-
}
|
558 |
-
|
559 |
-
$taxonomies = get_option( 'cptui_taxonomies' );
|
560 |
-
|
561 |
-
if ( array_key_exists( strtolower( $data['cpt_custom_tax']['name'] ), $taxonomies ) ) {
|
562 |
-
|
563 |
-
unset( $taxonomies[ $data['cpt_custom_tax']['name'] ] );
|
564 |
-
|
565 |
-
$success = update_option( 'cptui_taxonomies', $taxonomies );
|
566 |
-
}
|
567 |
-
|
568 |
-
/**
|
569 |
-
* Fires after a taxonomy is deleted from our saved options.
|
570 |
-
*
|
571 |
-
* @since 0.9.0
|
572 |
-
*
|
573 |
-
* @param array $data Array of taxonomy data that was deleted.
|
574 |
-
*/
|
575 |
-
do_action( 'cptui_after_delete_taxonomy', $data );
|
576 |
-
|
577 |
-
if ( isset( $success ) ) {
|
578 |
-
return cptui_admin_notices( 'delete', $data['cpt_custom_tax']['name'], $success );
|
579 |
-
}
|
580 |
-
return false;
|
581 |
-
}
|
582 |
-
|
583 |
-
/**
|
584 |
-
* Add to or update our CPTUI option with new data.
|
585 |
-
*
|
586 |
-
* @since 0.9.0
|
587 |
-
*
|
588 |
-
* @param array $data Array of taxonomy data to update.
|
589 |
-
*
|
590 |
-
* @return bool|string False on failure, string on success.
|
591 |
-
*/
|
592 |
-
function cptui_update_taxonomy( $data = array() ) {
|
593 |
-
|
594 |
-
/**
|
595 |
-
* Fires before a taxonomy is updated to our saved options.
|
596 |
-
*
|
597 |
-
* @since 0.9.0
|
598 |
-
*
|
599 |
-
* @param array $data Array of taxonomy data we are updating.
|
600 |
-
*/
|
601 |
-
do_action( 'cptui_before_delete_taxonomy', $data );
|
602 |
-
|
603 |
-
# They need to provide a name
|
604 |
-
if ( empty( $data['cpt_custom_tax']['name'] ) ) {
|
605 |
-
return cptui_admin_notices( 'error', '', false, __( 'Please provide a taxonomy name', 'cpt-plugin' ) );
|
606 |
-
}
|
607 |
-
|
608 |
-
foreach( $data as $key => $value ) {
|
609 |
-
if ( is_string( $value ) ) {
|
610 |
-
$data[ $key ] = sanitize_text_field( $value );
|
611 |
-
} else {
|
612 |
-
array_map( 'sanitize_text_field', $data[ $key ] );
|
613 |
-
}
|
614 |
-
}
|
615 |
-
|
616 |
-
if ( false !== strpos( $data['cpt_custom_tax']['name'], '\'' ) ||
|
617 |
-
false !== strpos( $data['cpt_custom_tax']['name'], '\"' ) ||
|
618 |
-
false !== strpos( $data['cpt_custom_tax']['rewrite_slug'], '\'' ) ||
|
619 |
-
false !== strpos( $data['cpt_custom_tax']['rewrite_slug'], '\"' ) ) {
|
620 |
-
|
621 |
-
return cptui_admin_notices( 'error', '', false, __( 'Please do not use quotes in taxonomy names or rewrite slugs', 'cpt-plugin' ) );
|
622 |
-
}
|
623 |
-
|
624 |
-
$taxonomies = get_option( 'cptui_taxonomies', array() );
|
625 |
-
|
626 |
-
if ( 'new' == $data['cpt_tax_status'] && array_key_exists( strtolower( $data['cpt_custom_tax']['name'] ), $taxonomies ) ) {
|
627 |
-
return cptui_admin_notices( 'error', '', false, sprintf( __( 'Please choose a different taxonomy name. %s is already used.', 'cpt-plugin' ), $data['cpt_custom_tax']['name'] ) );
|
628 |
-
}
|
629 |
-
|
630 |
-
if ( empty( $data['cpt_post_types'] ) || !is_array( $data['cpt_post_types'] ) ) {
|
631 |
-
$data['cpt_post_types'] = '';
|
632 |
-
}
|
633 |
-
|
634 |
-
foreach( $data['cpt_tax_labels'] as $key => $label ) {
|
635 |
-
if ( empty( $label ) ) {
|
636 |
-
unset( $data['cpt_tax_labels'][ $key ] );
|
637 |
-
}
|
638 |
-
|
639 |
-
$label = str_replace( "'", "", $label );
|
640 |
-
$label = str_replace( '"', '', $label );
|
641 |
-
|
642 |
-
$data['cpt_tax_labels'][ $key ] = stripslashes_deep( $label );
|
643 |
-
}
|
644 |
-
|
645 |
-
$data['cpt_custom_tax']['label'] = stripslashes( $data['cpt_custom_tax']['label'] );
|
646 |
-
$data['cpt_custom_tax']['singular_label'] = stripslashes( $data['cpt_custom_tax']['singular_label'] );
|
647 |
-
|
648 |
-
$label = str_replace( "'", "", $data['cpt_custom_tax']['label'] );
|
649 |
-
$label = stripslashes( str_replace( '"', '', $label ) );
|
650 |
-
|
651 |
-
$singular_label = str_replace( "'", "", $data['cpt_custom_tax']['singular_label'] );
|
652 |
-
$singular_label = stripslashes( str_replace( '"', '', $singular_label ) );
|
653 |
-
|
654 |
-
$taxonomies[ $data['cpt_custom_tax']['name'] ] = array(
|
655 |
-
'name' => $data['cpt_custom_tax']['name'],
|
656 |
-
'label' => $label,
|
657 |
-
'singular_label' => $singular_label,
|
658 |
-
'hierarchical' => disp_boolean( $data['cpt_custom_tax']['hierarchical'] ),
|
659 |
-
'show_ui' => disp_boolean( $data['cpt_custom_tax']['show_ui'] ),
|
660 |
-
'query_var' => disp_boolean( $data['cpt_custom_tax']['query_var'] ),
|
661 |
-
'query_var_slug' => $data['cpt_custom_tax']['query_var_slug'],
|
662 |
-
'rewrite' => disp_boolean( $data['cpt_custom_tax']['rewrite'] ),
|
663 |
-
'rewrite_slug' => $data['cpt_custom_tax']['rewrite_slug'],
|
664 |
-
'rewrite_withfront' => $data['cpt_custom_tax']['rewrite_withfront'],
|
665 |
-
'rewrite_hierarchical' => $data['cpt_custom_tax']['rewrite_hierarchical'],
|
666 |
-
'show_admin_column' => disp_boolean( $data['cpt_custom_tax']['show_admin_column'] ),
|
667 |
-
'labels' => $data['cpt_tax_labels']
|
668 |
-
);
|
669 |
-
|
670 |
-
$taxonomies[ $data['cpt_custom_tax']['name'] ]['object_type'] = $data['cpt_post_types'];
|
671 |
-
|
672 |
-
$success = update_option( 'cptui_taxonomies', $taxonomies );
|
673 |
-
|
674 |
-
/**
|
675 |
-
* Fires after a taxonomy is updated to our saved options.
|
676 |
-
*
|
677 |
-
* @since 0.9.0
|
678 |
-
*
|
679 |
-
* @param array $data Array of taxonomy data that was updated.
|
680 |
-
*/
|
681 |
-
do_action( 'cptui_after_delete_taxonomy', $data );
|
682 |
-
|
683 |
-
flush_rewrite_rules();
|
684 |
-
|
685 |
-
if ( isset( $success ) ) {
|
686 |
-
if ( 'new' == $data['cpt_tax_status'] ) {
|
687 |
-
return cptui_admin_notices( 'add', $data['cpt_custom_tax']['name'], $success );
|
688 |
-
}
|
689 |
-
}
|
690 |
-
|
691 |
-
return cptui_admin_notices( 'update', $data['cpt_custom_tax']['name'], true );
|
692 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/cptui.js
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
(function($) {
|
2 |
-
//Create our accordions
|
3 |
-
$( "#cptui_accordion" ).accordion({ collapsible: true, heightStyle: 'fill', active: 2 });
|
4 |
-
|
5 |
-
//confirm our deletions
|
6 |
-
$( '#cpt_submit_delete' ).on( 'click', function() {
|
7 |
-
if( confirm( confirmdata.confirm ) ) {
|
8 |
-
return true;
|
9 |
-
}
|
10 |
-
return false;
|
11 |
-
});
|
12 |
-
|
13 |
-
$('#support .question').each(function() {
|
14 |
-
var tis = $(this), state = false, answer = tis.next('div').slideUp();
|
15 |
-
tis.click(function() {
|
16 |
-
state = !state;
|
17 |
-
answer.slideToggle(state);
|
18 |
-
tis.toggleClass('active',state);
|
19 |
-
});
|
20 |
-
});
|
21 |
-
|
22 |
-
var orig, highlight;
|
23 |
-
$('#cptui_accordion h3').hover(function(){
|
24 |
-
orig = $(this).css('color');
|
25 |
-
highlight = $('.wp-ui-highlight').css('background-color');
|
26 |
-
$(this).css({'color':highlight});
|
27 |
-
}, function() {
|
28 |
-
$(this).css({'color':orig });
|
29 |
-
}
|
30 |
-
);
|
31 |
-
|
32 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/cpt-plugin-de_DE.mo
DELETED
Binary file
|
languages/cpt-plugin-de_DE.po
DELETED
@@ -1,1028 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Custom Post Type UI 0.8\n"
|
4 |
-
"POT-Creation-Date: 2013-09-08 19:13-0600\n"
|
5 |
-
"PO-Revision-Date: 2013-12-19 12:04+0100\n"
|
6 |
-
"Last-Translator: Pascal Kläres <pascal.klaeres@lecking-werbeagentur.de>\n"
|
7 |
-
"Language-Team: Pascal Kläres <pascal.klaeres@gmail.com>\n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"X-Generator: Poedit 1.6.3\n"
|
12 |
-
"X-Poedit-KeywordsList: __;_e;esc_attr__;esc_attr_e;esc_attr_x;_n;_x;_ex;_nx;"
|
13 |
-
"esc_html__;esc_html_e;esc_html_x\n"
|
14 |
-
"X-Poedit-Basepath: .\n"
|
15 |
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
16 |
-
"Language: de_DE\n"
|
17 |
-
"X-Poedit-SearchPath-0: ..\n"
|
18 |
-
|
19 |
-
#: ../custom-post-type-ui.php:52
|
20 |
-
msgid "Custom Post Types"
|
21 |
-
msgstr ""
|
22 |
-
|
23 |
-
#: ../custom-post-type-ui.php:52
|
24 |
-
msgid "CPT UI"
|
25 |
-
msgstr ""
|
26 |
-
|
27 |
-
#: ../custom-post-type-ui.php:55 ../custom-post-type-ui.php:1214
|
28 |
-
msgid "Add New"
|
29 |
-
msgstr "Hinzufügen"
|
30 |
-
|
31 |
-
#: ../custom-post-type-ui.php:56
|
32 |
-
msgid "Manage Post Types"
|
33 |
-
msgstr "Verwalte Post Types"
|
34 |
-
|
35 |
-
#: ../custom-post-type-ui.php:57
|
36 |
-
msgid "Manage Taxonomies"
|
37 |
-
msgstr "Verwalte Taxonomien"
|
38 |
-
|
39 |
-
#: ../custom-post-type-ui.php:505 ../custom-post-type-ui.php:1673
|
40 |
-
msgid "Custom Post Type UI"
|
41 |
-
msgstr ""
|
42 |
-
|
43 |
-
#: ../custom-post-type-ui.php:505 ../custom-post-type-ui.php:1673
|
44 |
-
msgid "version"
|
45 |
-
msgstr "Version"
|
46 |
-
|
47 |
-
#: ../custom-post-type-ui.php:507
|
48 |
-
msgid "Frequently Asked Questions"
|
49 |
-
msgstr "Häufig gestellte Fragen"
|
50 |
-
|
51 |
-
#: ../custom-post-type-ui.php:508
|
52 |
-
msgid ""
|
53 |
-
"Please note that this plugin will NOT handle display of registered post "
|
54 |
-
"types or taxonomies in your current theme. It will simply register them for "
|
55 |
-
"you."
|
56 |
-
msgstr ""
|
57 |
-
"Beachte bitte, dieses Plugin verwaltet NICHT die Anzeige der erstellten Post "
|
58 |
-
"Types oder Taxonomien in deinem Theme. Es registriert diese lediglich im "
|
59 |
-
"System."
|
60 |
-
|
61 |
-
#: ../custom-post-type-ui.php:509
|
62 |
-
msgid ""
|
63 |
-
"Q: <strong>How can I display content from a custom post type on my website?</"
|
64 |
-
"strong>"
|
65 |
-
msgstr ""
|
66 |
-
"Frage: <strong>Wie bekomme ich die in einem Custom Post Type erstellten "
|
67 |
-
"Inhalte in meine Webseite?</strong>"
|
68 |
-
|
69 |
-
#: ../custom-post-type-ui.php:511
|
70 |
-
msgid "A: Justin Tadlock has written some great posts on the topic:"
|
71 |
-
msgstr ""
|
72 |
-
"Antwort: Justin Tadlock schrieb großartige Artikel (in engl.) zu diesem "
|
73 |
-
"Thema:"
|
74 |
-
|
75 |
-
#: ../custom-post-type-ui.php:512
|
76 |
-
msgid "Showing Custom Post Types on your Home Page"
|
77 |
-
msgstr ""
|
78 |
-
|
79 |
-
#: ../custom-post-type-ui.php:513
|
80 |
-
msgid "Custom Post Types in WordPress"
|
81 |
-
msgstr ""
|
82 |
-
|
83 |
-
#: ../custom-post-type-ui.php:515
|
84 |
-
msgid ""
|
85 |
-
"Q: <strong>How can I add custom meta boxes to my custom post types?</strong>"
|
86 |
-
msgstr ""
|
87 |
-
"Frage: <strong>Wie erstelle ich benutzerdefinierte Meta Boxen in meinen "
|
88 |
-
"Custom Post Types?</strong>"
|
89 |
-
|
90 |
-
#: ../custom-post-type-ui.php:516
|
91 |
-
msgid ""
|
92 |
-
"A: The More Fields plugin does a great job at creating custom meta boxes and "
|
93 |
-
"fully supports custom post types: "
|
94 |
-
msgstr ""
|
95 |
-
"Antwort: Mit dem Plugin \"More Fields\" lassen sich benutzerdefinierte Meta "
|
96 |
-
"Boxen erstellen. Im Plugin werden Custom Post Types unterstütz: "
|
97 |
-
|
98 |
-
#: ../custom-post-type-ui.php:517
|
99 |
-
msgid ""
|
100 |
-
"Q: <strong>I changed my custom post type name and now I can't get to my "
|
101 |
-
"posts</strong>"
|
102 |
-
msgstr ""
|
103 |
-
"Frage: <strong>Ich habe den Namen meines Custom Post Types verändert und "
|
104 |
-
"erhalte nun keinen Zugriff mehr auf meine Einträge!?</strong>"
|
105 |
-
|
106 |
-
#: ../custom-post-type-ui.php:518
|
107 |
-
msgid ""
|
108 |
-
"A: You can either change the custom post type name back to the original name "
|
109 |
-
"or try the Post Type Switcher plugin: "
|
110 |
-
msgstr ""
|
111 |
-
"Antwort: Entweder wird der Post Type Namen zurück zum ursprünglichen Namen "
|
112 |
-
"gewechselt oder die Datenbankeinträge korrigiert. Zum Beispiel mit dem "
|
113 |
-
"\"Post Type Switcher\" Plugin: "
|
114 |
-
|
115 |
-
#: ../custom-post-type-ui.php:523
|
116 |
-
msgid "Help Support This Plugin!"
|
117 |
-
msgstr "Unterstütze die Entwicklung dieses Plugins!"
|
118 |
-
|
119 |
-
#: ../custom-post-type-ui.php:526
|
120 |
-
msgid "PayPal Donation"
|
121 |
-
msgstr "Spende über PayPal"
|
122 |
-
|
123 |
-
#: ../custom-post-type-ui.php:527
|
124 |
-
msgid "Professional WordPress<br />Second Edition"
|
125 |
-
msgstr ""
|
126 |
-
|
127 |
-
#: ../custom-post-type-ui.php:528
|
128 |
-
msgid "Professional WordPress<br />Plugin Development"
|
129 |
-
msgstr ""
|
130 |
-
|
131 |
-
#: ../custom-post-type-ui.php:532
|
132 |
-
msgid "Please donate to the development<br />of Custom Post Type UI:"
|
133 |
-
msgstr "Bitte unterstütze die Entwicklung <br />von Custom Post Type UI:"
|
134 |
-
|
135 |
-
#: ../custom-post-type-ui.php:541
|
136 |
-
msgid ""
|
137 |
-
"The leading book on WordPress design and development!<br /><strong>Brand new "
|
138 |
-
"second edition!"
|
139 |
-
msgstr ""
|
140 |
-
|
141 |
-
#: ../custom-post-type-ui.php:542
|
142 |
-
msgid "Highest rated WordPress development book on Amazon!"
|
143 |
-
msgstr ""
|
144 |
-
|
145 |
-
#: ../custom-post-type-ui.php:545
|
146 |
-
msgid "WebDevStudios.com Recent News"
|
147 |
-
msgstr "WebDevStudios.com Neuigkeiten (engl.)"
|
148 |
-
|
149 |
-
#: ../custom-post-type-ui.php:550
|
150 |
-
msgid "WebDevStudios.com News"
|
151 |
-
msgstr ""
|
152 |
-
|
153 |
-
#: ../custom-post-type-ui.php:576
|
154 |
-
msgid "Custom post type deleted successfully"
|
155 |
-
msgstr "Der Custom Post Type wurde gelöscht"
|
156 |
-
|
157 |
-
#: ../custom-post-type-ui.php:582
|
158 |
-
msgid "Manage Custom Post Types"
|
159 |
-
msgstr "Verwalte Custom Post Types"
|
160 |
-
|
161 |
-
#: ../custom-post-type-ui.php:583
|
162 |
-
msgid ""
|
163 |
-
"Deleting custom post types will <strong>NOT</strong> delete any content into "
|
164 |
-
"the database or added to those post types. You can easily recreate your "
|
165 |
-
"post types and the content will still exist."
|
166 |
-
msgstr ""
|
167 |
-
"Das Löschen eines Post Types führt <strong>nicht</strong> zur Entfernung der "
|
168 |
-
"Inhalte aus der Datenbank. Erstelle den Post Type erneut und die bereits "
|
169 |
-
"erstellten Inhalte sind wieder bearbeitbar."
|
170 |
-
|
171 |
-
#: ../custom-post-type-ui.php:592 ../custom-post-type-ui.php:607
|
172 |
-
#: ../custom-post-type-ui.php:882 ../custom-post-type-ui.php:895
|
173 |
-
msgid "Action"
|
174 |
-
msgstr "Aktionen"
|
175 |
-
|
176 |
-
#: ../custom-post-type-ui.php:593 ../custom-post-type-ui.php:608
|
177 |
-
#: ../custom-post-type-ui.php:798 ../custom-post-type-ui.php:810
|
178 |
-
#: ../custom-post-type-ui.php:883 ../custom-post-type-ui.php:896
|
179 |
-
msgid "Name"
|
180 |
-
msgstr "Name"
|
181 |
-
|
182 |
-
#: ../custom-post-type-ui.php:594 ../custom-post-type-ui.php:609
|
183 |
-
#: ../custom-post-type-ui.php:799 ../custom-post-type-ui.php:811
|
184 |
-
#: ../custom-post-type-ui.php:884 ../custom-post-type-ui.php:897
|
185 |
-
#: ../custom-post-type-ui.php:1177 ../custom-post-type-ui.php:1469
|
186 |
-
msgid "Label"
|
187 |
-
msgstr "Beschriftung"
|
188 |
-
|
189 |
-
#: ../custom-post-type-ui.php:595 ../custom-post-type-ui.php:610
|
190 |
-
#: ../custom-post-type-ui.php:800 ../custom-post-type-ui.php:812
|
191 |
-
#: ../custom-post-type-ui.php:1285
|
192 |
-
msgid "Public"
|
193 |
-
msgstr "Öffentlich"
|
194 |
-
|
195 |
-
#: ../custom-post-type-ui.php:596 ../custom-post-type-ui.php:611
|
196 |
-
#: ../custom-post-type-ui.php:801 ../custom-post-type-ui.php:813
|
197 |
-
#: ../custom-post-type-ui.php:888 ../custom-post-type-ui.php:901
|
198 |
-
#: ../custom-post-type-ui.php:1295 ../custom-post-type-ui.php:1603
|
199 |
-
msgid "Show UI"
|
200 |
-
msgstr "Zeige UI"
|
201 |
-
|
202 |
-
#: ../custom-post-type-ui.php:597 ../custom-post-type-ui.php:612
|
203 |
-
#: ../custom-post-type-ui.php:802 ../custom-post-type-ui.php:814
|
204 |
-
#: ../custom-post-type-ui.php:887 ../custom-post-type-ui.php:900
|
205 |
-
#: ../custom-post-type-ui.php:1330 ../custom-post-type-ui.php:1593
|
206 |
-
msgid "Hierarchical"
|
207 |
-
msgstr "Hierarchisch"
|
208 |
-
|
209 |
-
#: ../custom-post-type-ui.php:598 ../custom-post-type-ui.php:613
|
210 |
-
#: ../custom-post-type-ui.php:803 ../custom-post-type-ui.php:815
|
211 |
-
#: ../custom-post-type-ui.php:889 ../custom-post-type-ui.php:902
|
212 |
-
#: ../custom-post-type-ui.php:1340 ../custom-post-type-ui.php:1623
|
213 |
-
msgid "Rewrite"
|
214 |
-
msgstr "Slug umschreiben"
|
215 |
-
|
216 |
-
#: ../custom-post-type-ui.php:599 ../custom-post-type-ui.php:614
|
217 |
-
#: ../custom-post-type-ui.php:804 ../custom-post-type-ui.php:816
|
218 |
-
#: ../custom-post-type-ui.php:890 ../custom-post-type-ui.php:903
|
219 |
-
msgid "Rewrite Slug"
|
220 |
-
msgstr "Slug umschreiben"
|
221 |
-
|
222 |
-
#: ../custom-post-type-ui.php:600 ../custom-post-type-ui.php:615
|
223 |
-
msgid "Total Published"
|
224 |
-
msgstr "Gesamt: Veröffentlicht"
|
225 |
-
|
226 |
-
#: ../custom-post-type-ui.php:601 ../custom-post-type-ui.php:616
|
227 |
-
msgid "Total Drafts"
|
228 |
-
msgstr "Gesamt: Entwürfe"
|
229 |
-
|
230 |
-
#: ../custom-post-type-ui.php:602 ../custom-post-type-ui.php:617
|
231 |
-
#: ../custom-post-type-ui.php:1401
|
232 |
-
msgid "Supports"
|
233 |
-
msgstr "Unterstützt"
|
234 |
-
|
235 |
-
#: ../custom-post-type-ui.php:636 ../custom-post-type-ui.php:919
|
236 |
-
msgid "Delete"
|
237 |
-
msgstr "Löschen"
|
238 |
-
|
239 |
-
#: ../custom-post-type-ui.php:636 ../custom-post-type-ui.php:919
|
240 |
-
#: ../custom-post-type-ui.php:1226
|
241 |
-
msgid "Edit"
|
242 |
-
msgstr "Bearbeiten"
|
243 |
-
|
244 |
-
#: ../custom-post-type-ui.php:636 ../custom-post-type-ui.php:919
|
245 |
-
msgid "Get Code"
|
246 |
-
msgstr "Code anzeigen"
|
247 |
-
|
248 |
-
#: ../custom-post-type-ui.php:766
|
249 |
-
msgid ""
|
250 |
-
"Place the below code in your themes functions.php file to manually create "
|
251 |
-
"this custom post type."
|
252 |
-
msgstr ""
|
253 |
-
|
254 |
-
#: ../custom-post-type-ui.php:767
|
255 |
-
msgid ""
|
256 |
-
"This is a <strong>BETA</strong> feature. Please <a href=\"https://github.com/"
|
257 |
-
"WebDevStudios/custom-post-type-ui\">report bugs</a>."
|
258 |
-
msgstr ""
|
259 |
-
|
260 |
-
#: ../custom-post-type-ui.php:788
|
261 |
-
msgid "Additional Custom Post Types"
|
262 |
-
msgstr "Zusätzliche Custom Post Types"
|
263 |
-
|
264 |
-
#: ../custom-post-type-ui.php:789
|
265 |
-
msgid ""
|
266 |
-
"The custom post types below are registered in WordPress but were not created "
|
267 |
-
"by the Custom Post Type UI Plugin."
|
268 |
-
msgstr ""
|
269 |
-
"Die hier aufgeführten Custom Post Types sind ebenfalls in WordPress "
|
270 |
-
"registriert, jedoch nicht vom Custom Post Type UI Plugin erstellt worden."
|
271 |
-
|
272 |
-
#: ../custom-post-type-ui.php:805 ../custom-post-type-ui.php:817
|
273 |
-
#: ../custom-post-type-ui.php:1365 ../custom-post-type-ui.php:1613
|
274 |
-
msgid "Query Var"
|
275 |
-
msgstr ""
|
276 |
-
|
277 |
-
#: ../custom-post-type-ui.php:842
|
278 |
-
msgid "No additional post types found"
|
279 |
-
msgstr ""
|
280 |
-
|
281 |
-
#: ../custom-post-type-ui.php:866
|
282 |
-
msgid "Custom taxonomy deleted successfully"
|
283 |
-
msgstr "Die Taxonomie wurde gelöscht"
|
284 |
-
|
285 |
-
#: ../custom-post-type-ui.php:872
|
286 |
-
msgid "Manage Custom Taxonomies"
|
287 |
-
msgstr ""
|
288 |
-
|
289 |
-
#: ../custom-post-type-ui.php:873
|
290 |
-
msgid ""
|
291 |
-
"Deleting custom taxonomies does <strong>NOT</strong> delete any content "
|
292 |
-
"added to those taxonomies. You can easily recreate your taxonomies and the "
|
293 |
-
"content will still exist."
|
294 |
-
msgstr ""
|
295 |
-
"Das Löschen einer Taxonomie führt <strong>nicht</strong> zur Entfernung der "
|
296 |
-
"Inhalte aus der Datenbank. Erstelle die Taxanomie erneut und die bereits "
|
297 |
-
"erstellten Inhalte sind wieder bearbeitbar."
|
298 |
-
|
299 |
-
#: ../custom-post-type-ui.php:885 ../custom-post-type-ui.php:898
|
300 |
-
#: ../custom-post-type-ui.php:1182 ../custom-post-type-ui.php:1474
|
301 |
-
msgid "Singular Label"
|
302 |
-
msgstr "Beschriftung (Singular)"
|
303 |
-
|
304 |
-
#: ../custom-post-type-ui.php:886 ../custom-post-type-ui.php:899
|
305 |
-
msgid "Attached Post Types"
|
306 |
-
msgstr "Verbundene Post Types"
|
307 |
-
|
308 |
-
#: ../custom-post-type-ui.php:1000
|
309 |
-
msgid ""
|
310 |
-
"Place the below code in your themes functions.php file to manually create "
|
311 |
-
"this custom taxonomy"
|
312 |
-
msgstr ""
|
313 |
-
|
314 |
-
#: ../custom-post-type-ui.php:1001
|
315 |
-
msgid ""
|
316 |
-
"This is a <strong>BETA</strong> feature. Please <a href=\"http://"
|
317 |
-
"webdevstudios.com/support/forum/custom-post-type-ui/\">report bugs</a>."
|
318 |
-
msgstr ""
|
319 |
-
|
320 |
-
#: ../custom-post-type-ui.php:1057
|
321 |
-
msgid "Save Custom Post Type"
|
322 |
-
msgstr ""
|
323 |
-
|
324 |
-
#: ../custom-post-type-ui.php:1059
|
325 |
-
msgid "Create Custom Post Type"
|
326 |
-
msgstr "Erstelle Custom Post Type"
|
327 |
-
|
328 |
-
#: ../custom-post-type-ui.php:1085
|
329 |
-
msgid "Save Custom Taxonomy"
|
330 |
-
msgstr ""
|
331 |
-
|
332 |
-
#: ../custom-post-type-ui.php:1087
|
333 |
-
msgid "Create Custom Taxonomy"
|
334 |
-
msgstr "Erstelle Custom Taxonomie"
|
335 |
-
|
336 |
-
#: ../custom-post-type-ui.php:1104
|
337 |
-
msgid ""
|
338 |
-
"Custom post type created successfully. You may need to refresh to view the "
|
339 |
-
"new post type in the admin menu."
|
340 |
-
msgstr ""
|
341 |
-
"Der Custom Post Type wurde erfolgreich erstellt. Der Post Type wird "
|
342 |
-
"eventuell erst nach erneutem laden der Seite im Admin Menü sichtbar."
|
343 |
-
|
344 |
-
#: ../custom-post-type-ui.php:1105
|
345 |
-
msgid "Manage custom post types"
|
346 |
-
msgstr "Verwalte Custom Post Types"
|
347 |
-
|
348 |
-
#: ../custom-post-type-ui.php:1107
|
349 |
-
msgid ""
|
350 |
-
"Custom taxonomy created successfully. You may need to refresh to view the "
|
351 |
-
"new taxonomy in the admin menu."
|
352 |
-
msgstr ""
|
353 |
-
"Die Taxonomie wurde erfolgreich erstellt. Die Taxanomie wird eventuell erst "
|
354 |
-
"nach erneutem laden der Seite im Admin Menü sichtbar."
|
355 |
-
|
356 |
-
#: ../custom-post-type-ui.php:1108
|
357 |
-
msgid "Manage custom taxonomies"
|
358 |
-
msgstr "Verwalte Taxanomien"
|
359 |
-
|
360 |
-
#: ../custom-post-type-ui.php:1116
|
361 |
-
msgid "Post type name is a required field."
|
362 |
-
msgstr ""
|
363 |
-
|
364 |
-
#: ../custom-post-type-ui.php:1119
|
365 |
-
msgid "Taxonomy name is a required field."
|
366 |
-
msgstr ""
|
367 |
-
|
368 |
-
#: ../custom-post-type-ui.php:1122
|
369 |
-
msgid "You must assign your custom taxonomy to at least one post type."
|
370 |
-
msgstr "Sie müssen der Taxonomie mindestens einen Post Type zuordnen."
|
371 |
-
|
372 |
-
#: ../custom-post-type-ui.php:1125
|
373 |
-
msgid "Please doe not use quotes in your post type slug or rewrite slug."
|
374 |
-
msgstr ""
|
375 |
-
|
376 |
-
#: ../custom-post-type-ui.php:1128
|
377 |
-
msgid "Please doe not use quotes in your taxonomy slug or rewrite slug."
|
378 |
-
msgstr ""
|
379 |
-
|
380 |
-
#: ../custom-post-type-ui.php:1139
|
381 |
-
msgid "Edit Custom Post Type or Taxonomy"
|
382 |
-
msgstr ""
|
383 |
-
|
384 |
-
#: ../custom-post-type-ui.php:1141 ../custom-post-type-ui.php:1148
|
385 |
-
msgid "Reset"
|
386 |
-
msgstr "Zurücksetzen"
|
387 |
-
|
388 |
-
#: ../custom-post-type-ui.php:1146
|
389 |
-
msgid "Create New Custom Post Type or Taxonomy"
|
390 |
-
msgstr "Erstelle einen neuen Custom Post Type oder eine neue Taxonomie"
|
391 |
-
|
392 |
-
#: ../custom-post-type-ui.php:1158
|
393 |
-
msgid ""
|
394 |
-
"If you are unfamiliar with the options below only fill out the <strong>Post "
|
395 |
-
"Type Name</strong> and <strong>Label</strong> fields and check which meta "
|
396 |
-
"boxes to support. The other settings are set to the most common defaults "
|
397 |
-
"for custom post types. Hover over the question mark for more details."
|
398 |
-
msgstr ""
|
399 |
-
"Falls Sie nicht sicher mit den unten aufgeführten Einstellungen sind füllen "
|
400 |
-
"Sie nur den <strong>Post Type Namen</strong> und die <strong>Beschriftung</"
|
401 |
-
"strong> aus. Die anderen Einstellungen sind auf die gängigsten Standardwerte "
|
402 |
-
"für benutzerdefinierte Custom Post Types gesetzt. Bewegen Sie den Mauszeiger "
|
403 |
-
"über das Fragezeichen für weitere Details zum Feld."
|
404 |
-
|
405 |
-
#: ../custom-post-type-ui.php:1169
|
406 |
-
msgid "Post Type Name"
|
407 |
-
msgstr "Post Type Name"
|
408 |
-
|
409 |
-
#: ../custom-post-type-ui.php:1169
|
410 |
-
msgid ""
|
411 |
-
"The post type name. Used to retrieve custom post type content. Should be "
|
412 |
-
"short and sweet"
|
413 |
-
msgstr ""
|
414 |
-
|
415 |
-
#: ../custom-post-type-ui.php:1170
|
416 |
-
msgid "(e.g. movie)"
|
417 |
-
msgstr "(z. B. film)"
|
418 |
-
|
419 |
-
#: ../custom-post-type-ui.php:1172
|
420 |
-
msgid ""
|
421 |
-
"Max 20 characters, can not contain capital letters or spaces. Reserved post "
|
422 |
-
"types: post, page, attachment, revision, nav_menu_item."
|
423 |
-
msgstr ""
|
424 |
-
"Maximal 20 Zeichen, keine Großbuchstaben oder Leerzeichen. Bereits vom "
|
425 |
-
"System reservierte Post Types: post, page, attachment, revision, "
|
426 |
-
"nav_menu_item."
|
427 |
-
|
428 |
-
#: ../custom-post-type-ui.php:1177 ../custom-post-type-ui.php:1214
|
429 |
-
#: ../custom-post-type-ui.php:1220 ../custom-post-type-ui.php:1226
|
430 |
-
#: ../custom-post-type-ui.php:1232 ../custom-post-type-ui.php:1238
|
431 |
-
#: ../custom-post-type-ui.php:1244 ../custom-post-type-ui.php:1250
|
432 |
-
#: ../custom-post-type-ui.php:1256 ../custom-post-type-ui.php:1262
|
433 |
-
#: ../custom-post-type-ui.php:1268 ../custom-post-type-ui.php:1274
|
434 |
-
msgid "Post type label. Used in the admin menu for displaying post types."
|
435 |
-
msgstr ""
|
436 |
-
|
437 |
-
#: ../custom-post-type-ui.php:1178
|
438 |
-
msgid "(e.g. Movies)"
|
439 |
-
msgstr "(z. B. Filme)"
|
440 |
-
|
441 |
-
#: ../custom-post-type-ui.php:1182
|
442 |
-
msgid ""
|
443 |
-
"Custom Post Type Singular label. Used in WordPress when a singular label is "
|
444 |
-
"needed."
|
445 |
-
msgstr ""
|
446 |
-
|
447 |
-
#: ../custom-post-type-ui.php:1183
|
448 |
-
msgid "(e.g. Movie)"
|
449 |
-
msgstr "(z. B. Film)"
|
450 |
-
|
451 |
-
#: ../custom-post-type-ui.php:1188
|
452 |
-
msgid "Description"
|
453 |
-
msgstr "Beschreibung"
|
454 |
-
|
455 |
-
#: ../custom-post-type-ui.php:1188
|
456 |
-
msgid ""
|
457 |
-
"Custom Post Type Description. Describe what your custom post type is used "
|
458 |
-
"for."
|
459 |
-
msgstr ""
|
460 |
-
|
461 |
-
#: ../custom-post-type-ui.php:1195 ../custom-post-type-ui.php:1505
|
462 |
-
msgid "Advanced Label Options"
|
463 |
-
msgstr "weitere Beschriftungsoptionen"
|
464 |
-
|
465 |
-
#: ../custom-post-type-ui.php:1196 ../custom-post-type-ui.php:1506
|
466 |
-
msgid "Advanced Options"
|
467 |
-
msgstr "Tiefergehende Optionen"
|
468 |
-
|
469 |
-
#: ../custom-post-type-ui.php:1204
|
470 |
-
msgid ""
|
471 |
-
"Below are the advanced label options for custom post types. If you are "
|
472 |
-
"unfamiliar with these labels, leave them blank and the plugin will "
|
473 |
-
"automatically create labels based off of your custom post type name"
|
474 |
-
msgstr ""
|
475 |
-
"Nachfolgend findest du weitere Felder für die Beschriftungen des Post Types. "
|
476 |
-
"Falls du dir bei der Bezeichnung der Felder unsicher bist - das Plugin wird "
|
477 |
-
"die Felder, basierend auf dem Post Type Namen, automatisch für dich "
|
478 |
-
"erstellen."
|
479 |
-
|
480 |
-
#: ../custom-post-type-ui.php:1208
|
481 |
-
msgid "Menu Name"
|
482 |
-
msgstr "Menü Name"
|
483 |
-
|
484 |
-
#: ../custom-post-type-ui.php:1208
|
485 |
-
msgid "Custom menu name for your custom post type."
|
486 |
-
msgstr ""
|
487 |
-
|
488 |
-
#: ../custom-post-type-ui.php:1210
|
489 |
-
msgid "(e.g. My Movies)"
|
490 |
-
msgstr "(z. B. Mein Film)"
|
491 |
-
|
492 |
-
#: ../custom-post-type-ui.php:1216
|
493 |
-
msgid "(e.g. Add New)"
|
494 |
-
msgstr "(z. B. Hinzufügen)"
|
495 |
-
|
496 |
-
#: ../custom-post-type-ui.php:1220 ../custom-post-type-ui.php:1559
|
497 |
-
msgid "Add New Item"
|
498 |
-
msgstr "Neuen Eintrag erstellen"
|
499 |
-
|
500 |
-
#: ../custom-post-type-ui.php:1222
|
501 |
-
msgid "(e.g. Add New Movie)"
|
502 |
-
msgstr "(z. B. Neuen Film hinzufügen)"
|
503 |
-
|
504 |
-
#: ../custom-post-type-ui.php:1228
|
505 |
-
msgid "(e.g. Edit)"
|
506 |
-
msgstr "(z. B. Bearbeiten)"
|
507 |
-
|
508 |
-
#: ../custom-post-type-ui.php:1232 ../custom-post-type-ui.php:1547
|
509 |
-
msgid "Edit Item"
|
510 |
-
msgstr "Eintrag bearbeiten"
|
511 |
-
|
512 |
-
#: ../custom-post-type-ui.php:1234
|
513 |
-
msgid "(e.g. Edit Movie)"
|
514 |
-
msgstr "(z. B. Film bearbeiten)"
|
515 |
-
|
516 |
-
#: ../custom-post-type-ui.php:1238
|
517 |
-
msgid "New Item"
|
518 |
-
msgstr "Neuer Eintrag"
|
519 |
-
|
520 |
-
#: ../custom-post-type-ui.php:1240
|
521 |
-
msgid "(e.g. New Movie)"
|
522 |
-
msgstr "(z. B. Neuer Film)"
|
523 |
-
|
524 |
-
#: ../custom-post-type-ui.php:1244
|
525 |
-
msgid "View"
|
526 |
-
msgstr "Anzeigen"
|
527 |
-
|
528 |
-
#: ../custom-post-type-ui.php:1246 ../custom-post-type-ui.php:1252
|
529 |
-
msgid "(e.g. View Movie)"
|
530 |
-
msgstr "(z. B. Film anzeigen)"
|
531 |
-
|
532 |
-
#: ../custom-post-type-ui.php:1250
|
533 |
-
msgid "View Item"
|
534 |
-
msgstr "Eintrag anzeigen"
|
535 |
-
|
536 |
-
#: ../custom-post-type-ui.php:1256 ../custom-post-type-ui.php:1517
|
537 |
-
msgid "Search Items"
|
538 |
-
msgstr "Einträge durchsuchen"
|
539 |
-
|
540 |
-
#: ../custom-post-type-ui.php:1258
|
541 |
-
msgid "(e.g. Search Movies)"
|
542 |
-
msgstr "(z. B. Filme durchsuchen)"
|
543 |
-
|
544 |
-
#: ../custom-post-type-ui.php:1262
|
545 |
-
msgid "Not Found"
|
546 |
-
msgstr "Nichts gefunden"
|
547 |
-
|
548 |
-
#: ../custom-post-type-ui.php:1264
|
549 |
-
msgid "(e.g. No Movies Found)"
|
550 |
-
msgstr "(z. B. Kein Film gefunden)"
|
551 |
-
|
552 |
-
#: ../custom-post-type-ui.php:1268
|
553 |
-
msgid "Not Found in Trash"
|
554 |
-
msgstr "Kein Eintrag im Papierkorb"
|
555 |
-
|
556 |
-
#: ../custom-post-type-ui.php:1270
|
557 |
-
msgid "(e.g. No Movies found in Trash)"
|
558 |
-
msgstr "(z. B. Keine Filme im Papierkorb)"
|
559 |
-
|
560 |
-
#: ../custom-post-type-ui.php:1274
|
561 |
-
msgid "Parent"
|
562 |
-
msgstr "Übergeordneter Eintrag"
|
563 |
-
|
564 |
-
#: ../custom-post-type-ui.php:1276
|
565 |
-
msgid "(e.g. Parent Movie)"
|
566 |
-
msgstr "(z. B. Übergeordneter Film)"
|
567 |
-
|
568 |
-
#: ../custom-post-type-ui.php:1285
|
569 |
-
msgid "Whether posts of this type should be shown in the admin UI"
|
570 |
-
msgstr ""
|
571 |
-
|
572 |
-
#: ../custom-post-type-ui.php:1288 ../custom-post-type-ui.php:1298
|
573 |
-
#: ../custom-post-type-ui.php:1308 ../custom-post-type-ui.php:1318
|
574 |
-
#: ../custom-post-type-ui.php:1333 ../custom-post-type-ui.php:1343
|
575 |
-
#: ../custom-post-type-ui.php:1358 ../custom-post-type-ui.php:1368
|
576 |
-
#: ../custom-post-type-ui.php:1387 ../custom-post-type-ui.php:1606
|
577 |
-
#: ../custom-post-type-ui.php:1616 ../custom-post-type-ui.php:1626
|
578 |
-
#: ../custom-post-type-ui.php:1643 ../custom-post-type-ui.php:1646
|
579 |
-
msgid "False"
|
580 |
-
msgstr "deaktiviert"
|
581 |
-
|
582 |
-
#: ../custom-post-type-ui.php:1289 ../custom-post-type-ui.php:1299
|
583 |
-
#: ../custom-post-type-ui.php:1309 ../custom-post-type-ui.php:1319
|
584 |
-
#: ../custom-post-type-ui.php:1334 ../custom-post-type-ui.php:1344
|
585 |
-
#: ../custom-post-type-ui.php:1359 ../custom-post-type-ui.php:1369
|
586 |
-
#: ../custom-post-type-ui.php:1388 ../custom-post-type-ui.php:1607
|
587 |
-
#: ../custom-post-type-ui.php:1617 ../custom-post-type-ui.php:1627
|
588 |
-
#: ../custom-post-type-ui.php:1644 ../custom-post-type-ui.php:1647
|
589 |
-
msgid "True"
|
590 |
-
msgstr "aktiviert"
|
591 |
-
|
592 |
-
#: ../custom-post-type-ui.php:1290 ../custom-post-type-ui.php:1300
|
593 |
-
#: ../custom-post-type-ui.php:1345 ../custom-post-type-ui.php:1360
|
594 |
-
#: ../custom-post-type-ui.php:1370 ../custom-post-type-ui.php:1608
|
595 |
-
#: ../custom-post-type-ui.php:1618 ../custom-post-type-ui.php:1628
|
596 |
-
msgid "(default: True)"
|
597 |
-
msgstr "(Standard: aktiviert)"
|
598 |
-
|
599 |
-
#: ../custom-post-type-ui.php:1295
|
600 |
-
msgid "Whether to generate a default UI for managing this post type"
|
601 |
-
msgstr ""
|
602 |
-
|
603 |
-
#: ../custom-post-type-ui.php:1305
|
604 |
-
msgid "Has Archive"
|
605 |
-
msgstr "Archiv-Seite"
|
606 |
-
|
607 |
-
#: ../custom-post-type-ui.php:1305
|
608 |
-
msgid "Whether the post type will have a post type archive page"
|
609 |
-
msgstr ""
|
610 |
-
|
611 |
-
#: ../custom-post-type-ui.php:1310 ../custom-post-type-ui.php:1320
|
612 |
-
#: ../custom-post-type-ui.php:1335 ../custom-post-type-ui.php:1598
|
613 |
-
#: ../custom-post-type-ui.php:1649
|
614 |
-
msgid "(default: False)"
|
615 |
-
msgstr "(Standard: deaktiviert)"
|
616 |
-
|
617 |
-
#: ../custom-post-type-ui.php:1315
|
618 |
-
msgid "Exclude From Search"
|
619 |
-
msgstr "Von Suche ausschließen"
|
620 |
-
|
621 |
-
#: ../custom-post-type-ui.php:1315
|
622 |
-
msgid "Whether the post type will be searchable"
|
623 |
-
msgstr ""
|
624 |
-
|
625 |
-
#: ../custom-post-type-ui.php:1325
|
626 |
-
msgid "Capability Type"
|
627 |
-
msgstr ""
|
628 |
-
|
629 |
-
#: ../custom-post-type-ui.php:1325
|
630 |
-
msgid "The post type to use for checking read, edit, and delete capabilities"
|
631 |
-
msgstr ""
|
632 |
-
|
633 |
-
#: ../custom-post-type-ui.php:1330
|
634 |
-
msgid "Whether the post type can have parent-child relationships"
|
635 |
-
msgstr ""
|
636 |
-
|
637 |
-
#: ../custom-post-type-ui.php:1340
|
638 |
-
msgid "Triggers the handling of rewrites for this post type"
|
639 |
-
msgstr ""
|
640 |
-
|
641 |
-
#: ../custom-post-type-ui.php:1350 ../custom-post-type-ui.php:1633
|
642 |
-
msgid "Custom Rewrite Slug"
|
643 |
-
msgstr "Benutzerdefinierter Slug"
|
644 |
-
|
645 |
-
#: ../custom-post-type-ui.php:1350
|
646 |
-
msgid "Custom slug to use instead of the default."
|
647 |
-
msgstr ""
|
648 |
-
|
649 |
-
#: ../custom-post-type-ui.php:1351
|
650 |
-
msgid "(default: post type name)"
|
651 |
-
msgstr "(Standard: Post Type Name)"
|
652 |
-
|
653 |
-
#: ../custom-post-type-ui.php:1355
|
654 |
-
msgid "With Front"
|
655 |
-
msgstr ""
|
656 |
-
|
657 |
-
#: ../custom-post-type-ui.php:1355
|
658 |
-
msgid "Should the permastruct be prepended with the front base."
|
659 |
-
msgstr ""
|
660 |
-
|
661 |
-
#: ../custom-post-type-ui.php:1375
|
662 |
-
msgid "Menu Position"
|
663 |
-
msgstr "Menü Position"
|
664 |
-
|
665 |
-
#: ../custom-post-type-ui.php:1375
|
666 |
-
msgid ""
|
667 |
-
"The position in the menu order the post type should appear. show_in_menu "
|
668 |
-
"must be true."
|
669 |
-
msgstr ""
|
670 |
-
|
671 |
-
#: ../custom-post-type-ui.php:1376
|
672 |
-
msgid ""
|
673 |
-
"See <a href=\"http://codex.wordpress.org/Function_Reference/"
|
674 |
-
"register_post_type#Parameters\">Available options</a> in the \"menu_position"
|
675 |
-
"\" section. Range of 5-100"
|
676 |
-
msgstr ""
|
677 |
-
|
678 |
-
#: ../custom-post-type-ui.php:1382
|
679 |
-
msgid "Show in Menu"
|
680 |
-
msgstr "Anzeige im Menü"
|
681 |
-
|
682 |
-
#: ../custom-post-type-ui.php:1382
|
683 |
-
msgid ""
|
684 |
-
"Whether to show the post type in the admin menu and where to show that menu. "
|
685 |
-
"Note that show_ui must be true"
|
686 |
-
msgstr ""
|
687 |
-
|
688 |
-
#: ../custom-post-type-ui.php:1383
|
689 |
-
msgid ""
|
690 |
-
"\"Show UI\" must be \"true\". If an existing top level page such as \"tools."
|
691 |
-
"php\" is indicated for second input, post type will be sub menu of that."
|
692 |
-
msgstr ""
|
693 |
-
|
694 |
-
#: ../custom-post-type-ui.php:1395
|
695 |
-
msgid "Menu Icon"
|
696 |
-
msgstr "Menü Icon"
|
697 |
-
|
698 |
-
#: ../custom-post-type-ui.php:1395
|
699 |
-
msgid "URL to image to be used as menu icon."
|
700 |
-
msgstr ""
|
701 |
-
|
702 |
-
#: ../custom-post-type-ui.php:1403
|
703 |
-
msgid "Title"
|
704 |
-
msgstr "Titel"
|
705 |
-
|
706 |
-
#: ../custom-post-type-ui.php:1403
|
707 |
-
msgid "Adds the title meta box when creating content for this custom post type"
|
708 |
-
msgstr ""
|
709 |
-
|
710 |
-
#: ../custom-post-type-ui.php:1404
|
711 |
-
msgid "Editor"
|
712 |
-
msgstr "Text-Editor"
|
713 |
-
|
714 |
-
#: ../custom-post-type-ui.php:1404
|
715 |
-
msgid ""
|
716 |
-
"Adds the content editor meta box when creating content for this custom post "
|
717 |
-
"type"
|
718 |
-
msgstr ""
|
719 |
-
|
720 |
-
#: ../custom-post-type-ui.php:1405
|
721 |
-
msgid "Excerpt"
|
722 |
-
msgstr "Auszug"
|
723 |
-
|
724 |
-
#: ../custom-post-type-ui.php:1405
|
725 |
-
msgid ""
|
726 |
-
"Adds the excerpt meta box when creating content for this custom post type"
|
727 |
-
msgstr ""
|
728 |
-
|
729 |
-
#: ../custom-post-type-ui.php:1406
|
730 |
-
msgid "Trackbacks"
|
731 |
-
msgstr "Trackbacks"
|
732 |
-
|
733 |
-
#: ../custom-post-type-ui.php:1406
|
734 |
-
msgid ""
|
735 |
-
"Adds the trackbacks meta box when creating content for this custom post type"
|
736 |
-
msgstr ""
|
737 |
-
|
738 |
-
#: ../custom-post-type-ui.php:1407
|
739 |
-
msgid "Custom Fields"
|
740 |
-
msgstr "Benutzerdefinierte Felder"
|
741 |
-
|
742 |
-
#: ../custom-post-type-ui.php:1407
|
743 |
-
msgid ""
|
744 |
-
"Adds the custom fields meta box when creating content for this custom post "
|
745 |
-
"type"
|
746 |
-
msgstr ""
|
747 |
-
|
748 |
-
#: ../custom-post-type-ui.php:1408
|
749 |
-
msgid "Comments"
|
750 |
-
msgstr "Kommentare"
|
751 |
-
|
752 |
-
#: ../custom-post-type-ui.php:1408
|
753 |
-
msgid ""
|
754 |
-
"Adds the comments meta box when creating content for this custom post type"
|
755 |
-
msgstr ""
|
756 |
-
|
757 |
-
#: ../custom-post-type-ui.php:1409
|
758 |
-
msgid "Revisions"
|
759 |
-
msgstr "Revisionen"
|
760 |
-
|
761 |
-
#: ../custom-post-type-ui.php:1409
|
762 |
-
msgid ""
|
763 |
-
"Adds the revisions meta box when creating content for this custom post type"
|
764 |
-
msgstr ""
|
765 |
-
|
766 |
-
#: ../custom-post-type-ui.php:1410
|
767 |
-
msgid "Featured Image"
|
768 |
-
msgstr "Beitragsbild"
|
769 |
-
|
770 |
-
#: ../custom-post-type-ui.php:1410
|
771 |
-
msgid ""
|
772 |
-
"Adds the featured image meta box when creating content for this custom post "
|
773 |
-
"type"
|
774 |
-
msgstr ""
|
775 |
-
|
776 |
-
#: ../custom-post-type-ui.php:1411
|
777 |
-
msgid "Author"
|
778 |
-
msgstr "Autor"
|
779 |
-
|
780 |
-
#: ../custom-post-type-ui.php:1411
|
781 |
-
msgid ""
|
782 |
-
"Adds the author meta box when creating content for this custom post type"
|
783 |
-
msgstr ""
|
784 |
-
|
785 |
-
#: ../custom-post-type-ui.php:1412
|
786 |
-
msgid "Page Attributes"
|
787 |
-
msgstr "Seiten Attribute"
|
788 |
-
|
789 |
-
#: ../custom-post-type-ui.php:1412
|
790 |
-
msgid ""
|
791 |
-
"Adds the page attribute meta box when creating content for this custom post "
|
792 |
-
"type"
|
793 |
-
msgstr ""
|
794 |
-
|
795 |
-
#: ../custom-post-type-ui.php:1413
|
796 |
-
msgid "Post Formats"
|
797 |
-
msgstr "Formatvorlagen"
|
798 |
-
|
799 |
-
#: ../custom-post-type-ui.php:1413
|
800 |
-
msgid "Adds post format support"
|
801 |
-
msgstr ""
|
802 |
-
|
803 |
-
#: ../custom-post-type-ui.php:1418
|
804 |
-
msgid "Built-in Taxonomies"
|
805 |
-
msgstr "Verbundene Taxonomien"
|
806 |
-
|
807 |
-
#: ../custom-post-type-ui.php:1451
|
808 |
-
msgid ""
|
809 |
-
"If you are unfamiliar with the options below only fill out the "
|
810 |
-
"<strong>Taxonomy Name</strong> and <strong>Post Type Name</strong> fields. "
|
811 |
-
"The other settings are set to the most common defaults for custom "
|
812 |
-
"taxonomies. Hover over the question mark for more details."
|
813 |
-
msgstr ""
|
814 |
-
"Falls Sie nicht sicher mit den unten aufgeführten Einstellungen sind füllen "
|
815 |
-
"Sie nur den <strong>Taxonomie Namen</strong> und die <strong>Beschriftung</"
|
816 |
-
"strong> aus. Die anderen Einstellungen sind auf die gängigsten Standardwerte "
|
817 |
-
"für benutzerdefinierte Taxonomien gesetzt. Bewegen Sie den Mauszeiger über "
|
818 |
-
"das Fragezeichen für weitere Details zum Feld."
|
819 |
-
|
820 |
-
#: ../custom-post-type-ui.php:1460
|
821 |
-
msgid "Taxonomy Name"
|
822 |
-
msgstr "Taxonomie Name"
|
823 |
-
|
824 |
-
#: ../custom-post-type-ui.php:1460
|
825 |
-
msgid ""
|
826 |
-
"The taxonomy name. Used to retrieve custom taxonomy content. Should be "
|
827 |
-
"short and sweet"
|
828 |
-
msgstr ""
|
829 |
-
|
830 |
-
#: ../custom-post-type-ui.php:1461
|
831 |
-
msgid ""
|
832 |
-
"Note: Changing the name, after adding terms to the taxonomy, will not update "
|
833 |
-
"the terms in the database."
|
834 |
-
msgstr ""
|
835 |
-
"Achtung: Änderungen am Namen der Taxonomie nach der Erstellung werden in der "
|
836 |
-
"Datenbank nicht automatisch korrigiert."
|
837 |
-
|
838 |
-
#: ../custom-post-type-ui.php:1463
|
839 |
-
msgid "(e.g. actors)"
|
840 |
-
msgstr "(z. B. regisseure)"
|
841 |
-
|
842 |
-
#: ../custom-post-type-ui.php:1464
|
843 |
-
msgid ""
|
844 |
-
"Max 32 characters, should only contain alphanumeric lowercase characters and "
|
845 |
-
"underscores in place of spaces."
|
846 |
-
msgstr ""
|
847 |
-
"Maximal 32 Zeichen. Darf nur alphanumerische Zeichen in Kleinbuchstaben und "
|
848 |
-
"Unterstriche anstelle von Leerzeichen enthalten."
|
849 |
-
|
850 |
-
#: ../custom-post-type-ui.php:1469
|
851 |
-
msgid "Taxonomy label. Used in the admin menu for displaying custom taxonomy."
|
852 |
-
msgstr ""
|
853 |
-
|
854 |
-
#: ../custom-post-type-ui.php:1470
|
855 |
-
msgid "(e.g. Actors)"
|
856 |
-
msgstr "(z. B. Regisseure)"
|
857 |
-
|
858 |
-
#: ../custom-post-type-ui.php:1474
|
859 |
-
msgid ""
|
860 |
-
"Taxonomy Singular label. Used in WordPress when a singular label is needed."
|
861 |
-
msgstr ""
|
862 |
-
|
863 |
-
#: ../custom-post-type-ui.php:1475
|
864 |
-
msgid "(e.g. Actor)"
|
865 |
-
msgstr "(z. B. Regisseur)"
|
866 |
-
|
867 |
-
#: ../custom-post-type-ui.php:1479
|
868 |
-
msgid "Attach to Post Type"
|
869 |
-
msgstr "Mit Post Type verbinden"
|
870 |
-
|
871 |
-
#: ../custom-post-type-ui.php:1479
|
872 |
-
msgid ""
|
873 |
-
"What post type object to attach the custom taxonomy to. Can be post, page, "
|
874 |
-
"or link by default. Can also be any custom post type name."
|
875 |
-
msgstr ""
|
876 |
-
|
877 |
-
#: ../custom-post-type-ui.php:1482
|
878 |
-
msgid ""
|
879 |
-
"This is the old method. Delete the post type from the textbox and check "
|
880 |
-
"which post type to attach this taxonomy to</strong>"
|
881 |
-
msgstr ""
|
882 |
-
|
883 |
-
#: ../custom-post-type-ui.php:1483
|
884 |
-
msgid "(e.g. movies)"
|
885 |
-
msgstr "(z. B. Filme)"
|
886 |
-
|
887 |
-
#: ../custom-post-type-ui.php:1514
|
888 |
-
msgid ""
|
889 |
-
"Below are the advanced label options for custom taxonomies. If you are "
|
890 |
-
"unfamiliar with these labels the plugin will automatically create labels "
|
891 |
-
"based off of your custom taxonomy name"
|
892 |
-
msgstr ""
|
893 |
-
"Nachfolgend findest du weitere Felder für die Beschriftungen der Taxonomie. "
|
894 |
-
"Falls du dir bei der Bezeichnung der Felder unsicher bist - das Plugin wird "
|
895 |
-
"die Felder, basierend auf dem Taxonomie Namen, automatisch für dich "
|
896 |
-
"erstellen."
|
897 |
-
|
898 |
-
#: ../custom-post-type-ui.php:1517 ../custom-post-type-ui.php:1523
|
899 |
-
#: ../custom-post-type-ui.php:1529 ../custom-post-type-ui.php:1535
|
900 |
-
#: ../custom-post-type-ui.php:1541 ../custom-post-type-ui.php:1547
|
901 |
-
#: ../custom-post-type-ui.php:1553 ../custom-post-type-ui.php:1559
|
902 |
-
#: ../custom-post-type-ui.php:1565 ../custom-post-type-ui.php:1571
|
903 |
-
#: ../custom-post-type-ui.php:1577 ../custom-post-type-ui.php:1583
|
904 |
-
msgid ""
|
905 |
-
"Custom taxonomy label. Used in the admin menu for displaying taxonomies."
|
906 |
-
msgstr ""
|
907 |
-
|
908 |
-
#: ../custom-post-type-ui.php:1519
|
909 |
-
msgid "(e.g. Search Actors)"
|
910 |
-
msgstr "(z. B. Regisseur durchsuchen)"
|
911 |
-
|
912 |
-
#: ../custom-post-type-ui.php:1523
|
913 |
-
msgid "Popular Items"
|
914 |
-
msgstr "Beliebte Einträge"
|
915 |
-
|
916 |
-
#: ../custom-post-type-ui.php:1525
|
917 |
-
msgid "(e.g. Popular Actors)"
|
918 |
-
msgstr "(z. B. beliebte Regisseure)"
|
919 |
-
|
920 |
-
#: ../custom-post-type-ui.php:1529
|
921 |
-
msgid "All Items"
|
922 |
-
msgstr "Alle Einträge"
|
923 |
-
|
924 |
-
#: ../custom-post-type-ui.php:1531
|
925 |
-
msgid "(e.g. All Actors)"
|
926 |
-
msgstr "(z. B. alle Regisseure)"
|
927 |
-
|
928 |
-
#: ../custom-post-type-ui.php:1535
|
929 |
-
msgid "Parent Item"
|
930 |
-
msgstr "Übergeordneter Eintrag"
|
931 |
-
|
932 |
-
#: ../custom-post-type-ui.php:1537
|
933 |
-
msgid "(e.g. Parent Actor)"
|
934 |
-
msgstr "(z. B. übergeordneter Regisseur)"
|
935 |
-
|
936 |
-
#: ../custom-post-type-ui.php:1541
|
937 |
-
msgid "Parent Item Colon"
|
938 |
-
msgstr "Übergeordneter Eintrag (:)"
|
939 |
-
|
940 |
-
#: ../custom-post-type-ui.php:1543
|
941 |
-
msgid "(e.g. Parent Actor:)"
|
942 |
-
msgstr "(z. B. Übergeordneter Regisseur:)"
|
943 |
-
|
944 |
-
#: ../custom-post-type-ui.php:1549
|
945 |
-
msgid "(e.g. Edit Actor)"
|
946 |
-
msgstr "(z. B. Regisseur bearbeiten)"
|
947 |
-
|
948 |
-
#: ../custom-post-type-ui.php:1553
|
949 |
-
msgid "Update Item"
|
950 |
-
msgstr "Eintrag speichern"
|
951 |
-
|
952 |
-
#: ../custom-post-type-ui.php:1555
|
953 |
-
msgid "(e.g. Update Actor)"
|
954 |
-
msgstr "(z. B. Regisseur speichern)"
|
955 |
-
|
956 |
-
#: ../custom-post-type-ui.php:1561
|
957 |
-
msgid "(e.g. Add New Actor)"
|
958 |
-
msgstr "(z. B. neuen Regisseur hinzufügen)"
|
959 |
-
|
960 |
-
#: ../custom-post-type-ui.php:1565
|
961 |
-
msgid "New Item Name"
|
962 |
-
msgstr "Neuer Name für Eintrag"
|
963 |
-
|
964 |
-
#: ../custom-post-type-ui.php:1567
|
965 |
-
msgid "(e.g. New Actor Name)"
|
966 |
-
msgstr "(z. B. neuer Regisseur Name)"
|
967 |
-
|
968 |
-
#: ../custom-post-type-ui.php:1571
|
969 |
-
msgid "Separate Items with Commas"
|
970 |
-
msgstr "Trenne Einträge mit Komma"
|
971 |
-
|
972 |
-
#: ../custom-post-type-ui.php:1573
|
973 |
-
msgid "(e.g. Separate actors with commas)"
|
974 |
-
msgstr "(z. B. Trenne die Regisseure mit Komma)"
|
975 |
-
|
976 |
-
#: ../custom-post-type-ui.php:1577
|
977 |
-
msgid "Add or Remove Items"
|
978 |
-
msgstr "Füge lösche oder füge Einträge hinzu"
|
979 |
-
|
980 |
-
#: ../custom-post-type-ui.php:1579
|
981 |
-
msgid "(e.g. Add or remove actors)"
|
982 |
-
msgstr "(z. B. lösche oder füge Regisseure hinzu)"
|
983 |
-
|
984 |
-
#: ../custom-post-type-ui.php:1583
|
985 |
-
msgid "Choose From Most Used"
|
986 |
-
msgstr "Wähle aus den meist Verwendeten"
|
987 |
-
|
988 |
-
#: ../custom-post-type-ui.php:1585
|
989 |
-
msgid "(e.g. Choose from the most used actors)"
|
990 |
-
msgstr "(z. B. wähle aus den meist genutzten Regisseuren)"
|
991 |
-
|
992 |
-
#: ../custom-post-type-ui.php:1593
|
993 |
-
msgid "Whether the taxonomy can have parent-child relationships"
|
994 |
-
msgstr ""
|
995 |
-
|
996 |
-
#: ../custom-post-type-ui.php:1603
|
997 |
-
msgid "Whether to generate a default UI for managing this custom taxonomy"
|
998 |
-
msgstr ""
|
999 |
-
|
1000 |
-
#: ../custom-post-type-ui.php:1623
|
1001 |
-
msgid "Triggers the handling of rewrites for this taxonomy"
|
1002 |
-
msgstr ""
|
1003 |
-
|
1004 |
-
#: ../custom-post-type-ui.php:1633
|
1005 |
-
msgid "Custom Taxonomy Rewrite Slug"
|
1006 |
-
msgstr ""
|
1007 |
-
|
1008 |
-
#: ../custom-post-type-ui.php:1634
|
1009 |
-
msgid "(default: taxonomy name)"
|
1010 |
-
msgstr ""
|
1011 |
-
|
1012 |
-
#: ../custom-post-type-ui.php:1639
|
1013 |
-
msgid "Show Admin Column"
|
1014 |
-
msgstr "Anzeige als Admin-Menüpunkt"
|
1015 |
-
|
1016 |
-
#: ../custom-post-type-ui.php:1639
|
1017 |
-
msgid ""
|
1018 |
-
"Whether to allow automatic creation of taxonomy columns on associated post-"
|
1019 |
-
"types."
|
1020 |
-
msgstr ""
|
1021 |
-
|
1022 |
-
#: ../custom-post-type-ui.php:1673
|
1023 |
-
msgid "Please Report Bugs"
|
1024 |
-
msgstr "Fehler melden"
|
1025 |
-
|
1026 |
-
#: ../custom-post-type-ui.php:1673
|
1027 |
-
msgid "Follow on Twitter:"
|
1028 |
-
msgstr "Auf Twitter folgen:"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/cpt-plugin-tr_TR.mo
DELETED
Binary file
|
languages/cpt-plugin-tr_TR.po
DELETED
@@ -1,1065 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Custom Post Type UI 0.8\n"
|
4 |
-
"POT-Creation-Date: 2013-09-08 19:13-0600\n"
|
5 |
-
"PO-Revision-Date: 2014-10-11 15:06+0200\n"
|
6 |
-
"Last-Translator: TrStar <trstar@gmail.com>\n"
|
7 |
-
"Language-Team: TrStar <trstar@gmail.com>\n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"X-Generator: Poedit 1.6.9\n"
|
12 |
-
"X-Poedit-KeywordsList: __;_e;esc_attr__;esc_attr_e;esc_attr_x;_n;_x;_ex;_nx;"
|
13 |
-
"esc_html__;esc_html_e;esc_html_x\n"
|
14 |
-
"X-Poedit-Basepath: .\n"
|
15 |
-
"Plural-Forms: nplurals=1; plural=0;\n"
|
16 |
-
"Language: tr_TR\n"
|
17 |
-
"X-Poedit-SearchPath-0: ..\n"
|
18 |
-
|
19 |
-
#: ../custom-post-type-ui.php:52
|
20 |
-
msgid "Custom Post Types"
|
21 |
-
msgstr "Özel Yazı Türleri"
|
22 |
-
|
23 |
-
#: ../custom-post-type-ui.php:52
|
24 |
-
msgid "CPT UI"
|
25 |
-
msgstr "CPT KA"
|
26 |
-
|
27 |
-
#: ../custom-post-type-ui.php:55 ../custom-post-type-ui.php:1214
|
28 |
-
msgid "Add New"
|
29 |
-
msgstr "Yeni Ekle"
|
30 |
-
|
31 |
-
#: ../custom-post-type-ui.php:56
|
32 |
-
msgid "Manage Post Types"
|
33 |
-
msgstr "Yazı Türlerini Yönet"
|
34 |
-
|
35 |
-
#: ../custom-post-type-ui.php:57
|
36 |
-
msgid "Manage Taxonomies"
|
37 |
-
msgstr "Sınıflandırmaları Yönet"
|
38 |
-
|
39 |
-
#: ../custom-post-type-ui.php:505 ../custom-post-type-ui.php:1673
|
40 |
-
msgid "Custom Post Type UI"
|
41 |
-
msgstr "Özel Yazı Türleri KA"
|
42 |
-
|
43 |
-
#: ../custom-post-type-ui.php:505 ../custom-post-type-ui.php:1673
|
44 |
-
msgid "version"
|
45 |
-
msgstr "versiyon"
|
46 |
-
|
47 |
-
#: ../custom-post-type-ui.php:507
|
48 |
-
msgid "Frequently Asked Questions"
|
49 |
-
msgstr "Sıkça sorulan sorular"
|
50 |
-
|
51 |
-
#: ../custom-post-type-ui.php:508
|
52 |
-
msgid ""
|
53 |
-
"Please note that this plugin will NOT handle display of registered post "
|
54 |
-
"types or taxonomies in your current theme. It will simply register them for "
|
55 |
-
"you."
|
56 |
-
msgstr ""
|
57 |
-
"Bu eklenti mevcut tema kayıtlı sonrası türleri veya sınıflandırmalar ekrana "
|
58 |
-
"otomatik eklenmez unutmayın. Sadece sizin için bunları kayıt edeceğiz."
|
59 |
-
|
60 |
-
#: ../custom-post-type-ui.php:509
|
61 |
-
msgid ""
|
62 |
-
"Q: <strong>How can I display content from a custom post type on my website?</"
|
63 |
-
"strong>"
|
64 |
-
msgstr ""
|
65 |
-
"S: <strong>Web sitemde nasıl özel yazı türü içerik görüntüleyebilirsiniz?</"
|
66 |
-
"strong>"
|
67 |
-
|
68 |
-
#: ../custom-post-type-ui.php:511
|
69 |
-
msgid "A: Justin Tadlock has written some great posts on the topic:"
|
70 |
-
msgstr "C: Justin Tadlock konu hakkında bazı makaleler hazırlamıştır:"
|
71 |
-
|
72 |
-
#: ../custom-post-type-ui.php:512
|
73 |
-
msgid "Showing Custom Post Types on your Home Page"
|
74 |
-
msgstr "Ana Sayfada Özel Yazı Türleri gösteriliyor"
|
75 |
-
|
76 |
-
#: ../custom-post-type-ui.php:513
|
77 |
-
msgid "Custom Post Types in WordPress"
|
78 |
-
msgstr "WordPress Özel Yazı Türleri"
|
79 |
-
|
80 |
-
#: ../custom-post-type-ui.php:515
|
81 |
-
msgid ""
|
82 |
-
"Q: <strong>How can I add custom meta boxes to my custom post types?</strong>"
|
83 |
-
msgstr ""
|
84 |
-
"S: <strong>Nasıl özel yazılan tipleri için özel meta kutuları "
|
85 |
-
"ekleyebilirsiniz?</strong>"
|
86 |
-
|
87 |
-
#: ../custom-post-type-ui.php:516
|
88 |
-
msgid ""
|
89 |
-
"A: The More Fields plugin does a great job at creating custom meta boxes and "
|
90 |
-
"fully supports custom post types: "
|
91 |
-
msgstr ""
|
92 |
-
"A: Alanlar eklentisi özel meta kutuları oluşturarak iş yapar ve tamamen "
|
93 |
-
"bütün oluşturulan türleri destekler:"
|
94 |
-
|
95 |
-
#: ../custom-post-type-ui.php:517
|
96 |
-
msgid ""
|
97 |
-
"Q: <strong>I changed my custom post type name and now I can't get to my "
|
98 |
-
"posts</strong>"
|
99 |
-
msgstr ""
|
100 |
-
"S: <strong>Özel yazı türü adı değişti ve şimdi benim yazılarım "
|
101 |
-
"gösterilmiyor</strong>"
|
102 |
-
|
103 |
-
#: ../custom-post-type-ui.php:518
|
104 |
-
msgid ""
|
105 |
-
"A: You can either change the custom post type name back to the original name "
|
106 |
-
"or try the Post Type Switcher plugin: "
|
107 |
-
msgstr ""
|
108 |
-
"A: Ya önceki adına geri dönersiniz veya Post Type Switcher eklentisi "
|
109 |
-
"deneyebilirsiniz:"
|
110 |
-
|
111 |
-
#: ../custom-post-type-ui.php:523
|
112 |
-
msgid "Help Support This Plugin!"
|
113 |
-
msgstr "Eklentiye Destek, Yardım!"
|
114 |
-
|
115 |
-
#: ../custom-post-type-ui.php:526
|
116 |
-
msgid "PayPal Donation"
|
117 |
-
msgstr "PayPal Bağış"
|
118 |
-
|
119 |
-
#: ../custom-post-type-ui.php:527
|
120 |
-
msgid "Professional WordPress<br />Second Edition"
|
121 |
-
msgstr "Profesyonel WordPress<br/>İkinci Baskı"
|
122 |
-
|
123 |
-
#: ../custom-post-type-ui.php:528
|
124 |
-
msgid "Professional WordPress<br />Plugin Development"
|
125 |
-
msgstr "Profesyonel WordPress<br/>Eklenti Geliştirme"
|
126 |
-
|
127 |
-
#: ../custom-post-type-ui.php:532
|
128 |
-
msgid "Please donate to the development<br />of Custom Post Type UI:"
|
129 |
-
msgstr "Özel Yazı Türü KA geliştirme <br/> için bağış yapın:"
|
130 |
-
|
131 |
-
#: ../custom-post-type-ui.php:541
|
132 |
-
msgid ""
|
133 |
-
"The leading book on WordPress design and development!<br /><strong>Brand new "
|
134 |
-
"second edition!"
|
135 |
-
msgstr ""
|
136 |
-
"WordPress tasarım ve geliştirme öncü kitap! <br/> <Strong>Yepyeni ikinci "
|
137 |
-
"sürüm !"
|
138 |
-
|
139 |
-
#: ../custom-post-type-ui.php:542
|
140 |
-
msgid "Highest rated WordPress development book on Amazon!"
|
141 |
-
msgstr "Amazondaki En Yüksek Puanlı WordPress geliştirici kitabı!"
|
142 |
-
|
143 |
-
#: ../custom-post-type-ui.php:545
|
144 |
-
msgid "WebDevStudios.com Recent News"
|
145 |
-
msgstr "WebDevStudios.com Son Haberler"
|
146 |
-
|
147 |
-
#: ../custom-post-type-ui.php:550
|
148 |
-
msgid "WebDevStudios.com News"
|
149 |
-
msgstr "WebDevStudios.com Haberler"
|
150 |
-
|
151 |
-
#: ../custom-post-type-ui.php:576
|
152 |
-
msgid "Custom post type deleted successfully"
|
153 |
-
msgstr "Özel Yazı Türü başarıyla silindi"
|
154 |
-
|
155 |
-
#: ../custom-post-type-ui.php:582
|
156 |
-
msgid "Manage Custom Post Types"
|
157 |
-
msgstr "Özel Yazı Türlerini Yönet"
|
158 |
-
|
159 |
-
#: ../custom-post-type-ui.php:583
|
160 |
-
msgid ""
|
161 |
-
"Deleting custom post types will <strong>NOT</strong> delete any content into "
|
162 |
-
"the database or added to those post types. You can easily recreate your "
|
163 |
-
"post types and the content will still exist."
|
164 |
-
msgstr ""
|
165 |
-
"Özel yazı türlerini silmek veritabanında herhangi bir içeriği silmek veya bu "
|
166 |
-
"yazı türlerini değiştirmeyecektir. Yazılan tipleri yeniden ve içeriği hala "
|
167 |
-
"veritabanında olacaktır."
|
168 |
-
|
169 |
-
#: ../custom-post-type-ui.php:592 ../custom-post-type-ui.php:607
|
170 |
-
#: ../custom-post-type-ui.php:882 ../custom-post-type-ui.php:895
|
171 |
-
msgid "Action"
|
172 |
-
msgstr "Eylem"
|
173 |
-
|
174 |
-
#: ../custom-post-type-ui.php:593 ../custom-post-type-ui.php:608
|
175 |
-
#: ../custom-post-type-ui.php:798 ../custom-post-type-ui.php:810
|
176 |
-
#: ../custom-post-type-ui.php:883 ../custom-post-type-ui.php:896
|
177 |
-
msgid "Name"
|
178 |
-
msgstr "İsim"
|
179 |
-
|
180 |
-
#: ../custom-post-type-ui.php:594 ../custom-post-type-ui.php:609
|
181 |
-
#: ../custom-post-type-ui.php:799 ../custom-post-type-ui.php:811
|
182 |
-
#: ../custom-post-type-ui.php:884 ../custom-post-type-ui.php:897
|
183 |
-
#: ../custom-post-type-ui.php:1177 ../custom-post-type-ui.php:1469
|
184 |
-
msgid "Label"
|
185 |
-
msgstr "Etiket"
|
186 |
-
|
187 |
-
#: ../custom-post-type-ui.php:595 ../custom-post-type-ui.php:610
|
188 |
-
#: ../custom-post-type-ui.php:800 ../custom-post-type-ui.php:812
|
189 |
-
#: ../custom-post-type-ui.php:1285
|
190 |
-
msgid "Public"
|
191 |
-
msgstr "Genel"
|
192 |
-
|
193 |
-
#: ../custom-post-type-ui.php:596 ../custom-post-type-ui.php:611
|
194 |
-
#: ../custom-post-type-ui.php:801 ../custom-post-type-ui.php:813
|
195 |
-
#: ../custom-post-type-ui.php:888 ../custom-post-type-ui.php:901
|
196 |
-
#: ../custom-post-type-ui.php:1295 ../custom-post-type-ui.php:1603
|
197 |
-
msgid "Show UI"
|
198 |
-
msgstr "KA Göster"
|
199 |
-
|
200 |
-
#: ../custom-post-type-ui.php:597 ../custom-post-type-ui.php:612
|
201 |
-
#: ../custom-post-type-ui.php:802 ../custom-post-type-ui.php:814
|
202 |
-
#: ../custom-post-type-ui.php:887 ../custom-post-type-ui.php:900
|
203 |
-
#: ../custom-post-type-ui.php:1330 ../custom-post-type-ui.php:1593
|
204 |
-
msgid "Hierarchical"
|
205 |
-
msgstr "Hiyerarşik"
|
206 |
-
|
207 |
-
#: ../custom-post-type-ui.php:598 ../custom-post-type-ui.php:613
|
208 |
-
#: ../custom-post-type-ui.php:803 ../custom-post-type-ui.php:815
|
209 |
-
#: ../custom-post-type-ui.php:889 ../custom-post-type-ui.php:902
|
210 |
-
#: ../custom-post-type-ui.php:1340 ../custom-post-type-ui.php:1623
|
211 |
-
msgid "Rewrite"
|
212 |
-
msgstr "Rewrite"
|
213 |
-
|
214 |
-
#: ../custom-post-type-ui.php:599 ../custom-post-type-ui.php:614
|
215 |
-
#: ../custom-post-type-ui.php:804 ../custom-post-type-ui.php:816
|
216 |
-
#: ../custom-post-type-ui.php:890 ../custom-post-type-ui.php:903
|
217 |
-
msgid "Rewrite Slug"
|
218 |
-
msgstr "Rewrite Slug"
|
219 |
-
|
220 |
-
#: ../custom-post-type-ui.php:600 ../custom-post-type-ui.php:615
|
221 |
-
msgid "Total Published"
|
222 |
-
msgstr "Yayınlanan Toplamı"
|
223 |
-
|
224 |
-
#: ../custom-post-type-ui.php:601 ../custom-post-type-ui.php:616
|
225 |
-
msgid "Total Drafts"
|
226 |
-
msgstr "Taslaklar Toplamı"
|
227 |
-
|
228 |
-
#: ../custom-post-type-ui.php:602 ../custom-post-type-ui.php:617
|
229 |
-
#: ../custom-post-type-ui.php:1401
|
230 |
-
msgid "Supports"
|
231 |
-
msgstr "Destekler"
|
232 |
-
|
233 |
-
#: ../custom-post-type-ui.php:636 ../custom-post-type-ui.php:919
|
234 |
-
msgid "Delete"
|
235 |
-
msgstr "Sil"
|
236 |
-
|
237 |
-
#: ../custom-post-type-ui.php:636 ../custom-post-type-ui.php:919
|
238 |
-
#: ../custom-post-type-ui.php:1226
|
239 |
-
msgid "Edit"
|
240 |
-
msgstr "Düzenle"
|
241 |
-
|
242 |
-
#: ../custom-post-type-ui.php:636 ../custom-post-type-ui.php:919
|
243 |
-
msgid "Get Code"
|
244 |
-
msgstr "Kodu Alın"
|
245 |
-
|
246 |
-
#: ../custom-post-type-ui.php:766
|
247 |
-
msgid ""
|
248 |
-
"Place the below code in your themes functions.php file to manually create "
|
249 |
-
"this custom post type."
|
250 |
-
msgstr ""
|
251 |
-
"El ile bu özel yazı alanı oluşturmak için functions.php dosyasına aşağıdaki "
|
252 |
-
"kodu yerleştirin."
|
253 |
-
|
254 |
-
#: ../custom-post-type-ui.php:767
|
255 |
-
msgid ""
|
256 |
-
"This is a <strong>BETA</strong> feature. Please <a href=\"https://github.com/"
|
257 |
-
"WebDevStudios/custom-post-type-ui\">report bugs</a>."
|
258 |
-
msgstr ""
|
259 |
-
"Bu<strong> BETA</strong> özelliğidir. Lütfen <a href=\"https://github.com/"
|
260 |
-
"WebDevStudios/custom-post tipi-ui\"> hata raporu </a>"
|
261 |
-
|
262 |
-
#: ../custom-post-type-ui.php:788
|
263 |
-
msgid "Additional Custom Post Types"
|
264 |
-
msgstr "Ek Özel Yazı Türleri"
|
265 |
-
|
266 |
-
#: ../custom-post-type-ui.php:789
|
267 |
-
msgid ""
|
268 |
-
"The custom post types below are registered in WordPress but were not created "
|
269 |
-
"by the Custom Post Type UI Plugin."
|
270 |
-
msgstr ""
|
271 |
-
"Özel yazı türleri kayıtlı ancak, Özel Post Tür KA Eklentisi tarafından "
|
272 |
-
"oluşturulmamış."
|
273 |
-
|
274 |
-
#: ../custom-post-type-ui.php:805 ../custom-post-type-ui.php:817
|
275 |
-
#: ../custom-post-type-ui.php:1365 ../custom-post-type-ui.php:1613
|
276 |
-
msgid "Query Var"
|
277 |
-
msgstr "Sorgu Tanımı"
|
278 |
-
|
279 |
-
#: ../custom-post-type-ui.php:842
|
280 |
-
msgid "No additional post types found"
|
281 |
-
msgstr "Hiçbir ek yazı türleri bulunamadı"
|
282 |
-
|
283 |
-
#: ../custom-post-type-ui.php:866
|
284 |
-
msgid "Custom taxonomy deleted successfully"
|
285 |
-
msgstr "Özel sınıflandırma başarıyla silindi"
|
286 |
-
|
287 |
-
#: ../custom-post-type-ui.php:872
|
288 |
-
msgid "Manage Custom Taxonomies"
|
289 |
-
msgstr "Özel Sınıflandırmayı Yönet"
|
290 |
-
|
291 |
-
#: ../custom-post-type-ui.php:873
|
292 |
-
msgid ""
|
293 |
-
"Deleting custom taxonomies does <strong>NOT</strong> delete any content "
|
294 |
-
"added to those taxonomies. You can easily recreate your taxonomies and the "
|
295 |
-
"content will still exist."
|
296 |
-
msgstr ""
|
297 |
-
"Özel sınıflandırmaları silmek işlemi sonrasında veritabanında sınıflandırma "
|
298 |
-
"içerikleri kalacaktır."
|
299 |
-
|
300 |
-
#: ../custom-post-type-ui.php:885 ../custom-post-type-ui.php:898
|
301 |
-
#: ../custom-post-type-ui.php:1182 ../custom-post-type-ui.php:1474
|
302 |
-
msgid "Singular Label"
|
303 |
-
msgstr "Tekil Etiket"
|
304 |
-
|
305 |
-
#: ../custom-post-type-ui.php:886 ../custom-post-type-ui.php:899
|
306 |
-
msgid "Attached Post Types"
|
307 |
-
msgstr "Ek Yazı Türleri"
|
308 |
-
|
309 |
-
#: ../custom-post-type-ui.php:1000
|
310 |
-
msgid ""
|
311 |
-
"Place the below code in your themes functions.php file to manually create "
|
312 |
-
"this custom taxonomy"
|
313 |
-
msgstr ""
|
314 |
-
"El ile bu özel sınıflandırma oluşturmak için functions.php dosyasına "
|
315 |
-
"aşağıdaki kodu yerleştirin"
|
316 |
-
|
317 |
-
#: ../custom-post-type-ui.php:1001
|
318 |
-
msgid ""
|
319 |
-
"This is a <strong>BETA</strong> feature. Please <a href=\"http://"
|
320 |
-
"webdevstudios.com/support/forum/custom-post-type-ui/\">report bugs</a>."
|
321 |
-
msgstr ""
|
322 |
-
"Bu<strong> BETA</strong> özelliğidir. Lütfen <a href=\"http://webdevstudios."
|
323 |
-
"com/support/forum/custom-post-type-ui/\"> hata raporu </a>"
|
324 |
-
|
325 |
-
#: ../custom-post-type-ui.php:1057
|
326 |
-
msgid "Save Custom Post Type"
|
327 |
-
msgstr "Özel Yazı Türü Kaydet"
|
328 |
-
|
329 |
-
#: ../custom-post-type-ui.php:1059
|
330 |
-
msgid "Create Custom Post Type"
|
331 |
-
msgstr "Özel Yazı Türü Oluştur"
|
332 |
-
|
333 |
-
#: ../custom-post-type-ui.php:1085
|
334 |
-
msgid "Save Custom Taxonomy"
|
335 |
-
msgstr "Özel Sınıflandırma Kaydet"
|
336 |
-
|
337 |
-
#: ../custom-post-type-ui.php:1087
|
338 |
-
msgid "Create Custom Taxonomy"
|
339 |
-
msgstr "Özel Sınıflandırma Oluştur"
|
340 |
-
|
341 |
-
#: ../custom-post-type-ui.php:1104
|
342 |
-
msgid ""
|
343 |
-
"Custom post type created successfully. You may need to refresh to view the "
|
344 |
-
"new post type in the admin menu."
|
345 |
-
msgstr ""
|
346 |
-
"Özel yazı türü başarıyla oluşturuldu. Yönetici menüsünde okunmamış yazı "
|
347 |
-
"türünü görüntülemek için sayfayı yenilemeniz gerekebilir."
|
348 |
-
|
349 |
-
#: ../custom-post-type-ui.php:1105
|
350 |
-
msgid "Manage custom post types"
|
351 |
-
msgstr "Özel yazı türlerini yönetin"
|
352 |
-
|
353 |
-
#: ../custom-post-type-ui.php:1107
|
354 |
-
msgid ""
|
355 |
-
"Custom taxonomy created successfully. You may need to refresh to view the "
|
356 |
-
"new taxonomy in the admin menu."
|
357 |
-
msgstr ""
|
358 |
-
"Özel sınıflandırma başarıyla oluşturuldu. Yönetici menüsünde yeni "
|
359 |
-
"sınıflandırmayı görüntülemek için sayfayı yenilemeniz gerekebilir."
|
360 |
-
|
361 |
-
#: ../custom-post-type-ui.php:1108
|
362 |
-
msgid "Manage custom taxonomies"
|
363 |
-
msgstr "Özel sınıflandırmaları yönet"
|
364 |
-
|
365 |
-
#: ../custom-post-type-ui.php:1116
|
366 |
-
msgid "Post type name is a required field."
|
367 |
-
msgstr "Yazı türü adı doldurulması zorunlu bir alandır."
|
368 |
-
|
369 |
-
#: ../custom-post-type-ui.php:1119
|
370 |
-
msgid "Taxonomy name is a required field."
|
371 |
-
msgstr "Sınıflandırma adı doldurulması zorunlu bir alandır."
|
372 |
-
|
373 |
-
#: ../custom-post-type-ui.php:1122
|
374 |
-
msgid "You must assign your custom taxonomy to at least one post type."
|
375 |
-
msgstr "En az bir yazı türüne özel sınıflandırma atamanız gerekir."
|
376 |
-
|
377 |
-
#: ../custom-post-type-ui.php:1125
|
378 |
-
msgid "Please doe not use quotes in your post type slug or rewrite slug."
|
379 |
-
msgstr ""
|
380 |
-
"Lütfen özel yazı türü slug oluştururken tırnak işaretlerini kullanmayınız."
|
381 |
-
|
382 |
-
#: ../custom-post-type-ui.php:1128
|
383 |
-
msgid "Please doe not use quotes in your taxonomy slug or rewrite slug."
|
384 |
-
msgstr ""
|
385 |
-
"Lütfen özel sınıflandırma slug oluştururken tırnak işaretlerini "
|
386 |
-
"kullanmayınız."
|
387 |
-
|
388 |
-
#: ../custom-post-type-ui.php:1139
|
389 |
-
msgid "Edit Custom Post Type or Taxonomy"
|
390 |
-
msgstr "Özel Yazı Türü veya Sınıflandırma Düzenle"
|
391 |
-
|
392 |
-
#: ../custom-post-type-ui.php:1141 ../custom-post-type-ui.php:1148
|
393 |
-
msgid "Reset"
|
394 |
-
msgstr "Sıfırla"
|
395 |
-
|
396 |
-
#: ../custom-post-type-ui.php:1146
|
397 |
-
msgid "Create New Custom Post Type or Taxonomy"
|
398 |
-
msgstr "Yeni Özel Yazı Türü veya Sınıflandırma Oluştur"
|
399 |
-
|
400 |
-
#: ../custom-post-type-ui.php:1158
|
401 |
-
msgid ""
|
402 |
-
"If you are unfamiliar with the options below only fill out the <strong>Post "
|
403 |
-
"Type Name</strong> and <strong>Label</strong> fields and check which meta "
|
404 |
-
"boxes to support. The other settings are set to the most common defaults "
|
405 |
-
"for custom post types. Hover over the question mark for more details."
|
406 |
-
msgstr ""
|
407 |
-
"Sadece Adı ve Etiket alanlarını doldurun kullanıyorsanız diğer kutuları da "
|
408 |
-
"doldurabilirsiniz. Diğer ayarlar özel yazı türleri için en yaygın varsayılan "
|
409 |
-
"olarak ayarlanır. Daha fazla bilgi için soru işareti üzerinde gezinin."
|
410 |
-
|
411 |
-
#: ../custom-post-type-ui.php:1169
|
412 |
-
msgid "Post Type Name"
|
413 |
-
msgstr "Yazı Türü Adı"
|
414 |
-
|
415 |
-
#: ../custom-post-type-ui.php:1169
|
416 |
-
msgid ""
|
417 |
-
"The post type name. Used to retrieve custom post type content. Should be "
|
418 |
-
"short and sweet"
|
419 |
-
msgstr ""
|
420 |
-
"Kısa ve şirin bir ad belirleyin, bu daha sonra bu alanı çağırmak için "
|
421 |
-
"kullanılacaktır."
|
422 |
-
|
423 |
-
#: ../custom-post-type-ui.php:1170
|
424 |
-
msgid "(e.g. movie)"
|
425 |
-
msgstr "(örnek: film)"
|
426 |
-
|
427 |
-
#: ../custom-post-type-ui.php:1172
|
428 |
-
msgid ""
|
429 |
-
"Max 20 characters, can not contain capital letters or spaces. Reserved post "
|
430 |
-
"types: post, page, attachment, revision, nav_menu_item."
|
431 |
-
msgstr ""
|
432 |
-
"Maksimum 20 karakter, harf veya boşluk içeremez. Ayrılmış sonrası tipleri: "
|
433 |
-
"post, sayfa, ek, revizyon, nav_menu_item."
|
434 |
-
|
435 |
-
#: ../custom-post-type-ui.php:1177 ../custom-post-type-ui.php:1214
|
436 |
-
#: ../custom-post-type-ui.php:1220 ../custom-post-type-ui.php:1226
|
437 |
-
#: ../custom-post-type-ui.php:1232 ../custom-post-type-ui.php:1238
|
438 |
-
#: ../custom-post-type-ui.php:1244 ../custom-post-type-ui.php:1250
|
439 |
-
#: ../custom-post-type-ui.php:1256 ../custom-post-type-ui.php:1262
|
440 |
-
#: ../custom-post-type-ui.php:1268 ../custom-post-type-ui.php:1274
|
441 |
-
msgid "Post type label. Used in the admin menu for displaying post types."
|
442 |
-
msgstr ""
|
443 |
-
"Yazı türü etiketi. Admin menüsünde yazı türlerini göstermek için "
|
444 |
-
"kullanılacak."
|
445 |
-
|
446 |
-
#: ../custom-post-type-ui.php:1178
|
447 |
-
msgid "(e.g. Movies)"
|
448 |
-
msgstr "(örneğin: Filmler)"
|
449 |
-
|
450 |
-
#: ../custom-post-type-ui.php:1182
|
451 |
-
msgid ""
|
452 |
-
"Custom Post Type Singular label. Used in WordPress when a singular label is "
|
453 |
-
"needed."
|
454 |
-
msgstr ""
|
455 |
-
"Özel Yazı Türü tekil etiketi. Wordpress ihtiyaç duyarsa tekil etiketi "
|
456 |
-
"kullanacak."
|
457 |
-
|
458 |
-
#: ../custom-post-type-ui.php:1183
|
459 |
-
msgid "(e.g. Movie)"
|
460 |
-
msgstr "(örneğin: Film)"
|
461 |
-
|
462 |
-
#: ../custom-post-type-ui.php:1188
|
463 |
-
msgid "Description"
|
464 |
-
msgstr "Açıklama"
|
465 |
-
|
466 |
-
#: ../custom-post-type-ui.php:1188
|
467 |
-
msgid ""
|
468 |
-
"Custom Post Type Description. Describe what your custom post type is used "
|
469 |
-
"for."
|
470 |
-
msgstr ""
|
471 |
-
"Özel Yazı Türü Açıklaması. Bu açıklama türü kullanacak kişiye gösterilecek."
|
472 |
-
|
473 |
-
#: ../custom-post-type-ui.php:1195 ../custom-post-type-ui.php:1505
|
474 |
-
msgid "Advanced Label Options"
|
475 |
-
msgstr "Gelişmiş Etiket Ayarları"
|
476 |
-
|
477 |
-
#: ../custom-post-type-ui.php:1196 ../custom-post-type-ui.php:1506
|
478 |
-
msgid "Advanced Options"
|
479 |
-
msgstr "Gelişmiş Ayarlar"
|
480 |
-
|
481 |
-
#: ../custom-post-type-ui.php:1204
|
482 |
-
msgid ""
|
483 |
-
"Below are the advanced label options for custom post types. If you are "
|
484 |
-
"unfamiliar with these labels, leave them blank and the plugin will "
|
485 |
-
"automatically create labels based off of your custom post type name"
|
486 |
-
msgstr ""
|
487 |
-
"Aşağıda özel yazı türleri için gelişmiş etiket seçenekleri vardır. Eğer "
|
488 |
-
"bunlara kullanmayı bilmiyorsanız boş bırakın. Eklenti sizin için otomatik "
|
489 |
-
"olarak özel yazı türü adının varsayılan ayarlarıyla oluşturulacak."
|
490 |
-
|
491 |
-
#: ../custom-post-type-ui.php:1208
|
492 |
-
msgid "Menu Name"
|
493 |
-
msgstr "Menü Adı"
|
494 |
-
|
495 |
-
#: ../custom-post-type-ui.php:1208
|
496 |
-
msgid "Custom menu name for your custom post type."
|
497 |
-
msgstr "Özel yazı türü için özel menü adı."
|
498 |
-
|
499 |
-
#: ../custom-post-type-ui.php:1210
|
500 |
-
msgid "(e.g. My Movies)"
|
501 |
-
msgstr "(örneğin: Benim Filmlerim)"
|
502 |
-
|
503 |
-
#: ../custom-post-type-ui.php:1216
|
504 |
-
msgid "(e.g. Add New)"
|
505 |
-
msgstr "(örneğin: Yeni Ekle)"
|
506 |
-
|
507 |
-
#: ../custom-post-type-ui.php:1220 ../custom-post-type-ui.php:1559
|
508 |
-
msgid "Add New Item"
|
509 |
-
msgstr "Yeni Eleman Ekle"
|
510 |
-
|
511 |
-
#: ../custom-post-type-ui.php:1222
|
512 |
-
msgid "(e.g. Add New Movie)"
|
513 |
-
msgstr "(örneğin: Yeni Film ekle)"
|
514 |
-
|
515 |
-
#: ../custom-post-type-ui.php:1228
|
516 |
-
msgid "(e.g. Edit)"
|
517 |
-
msgstr "(örneğin: Düzenle)"
|
518 |
-
|
519 |
-
#: ../custom-post-type-ui.php:1232 ../custom-post-type-ui.php:1547
|
520 |
-
msgid "Edit Item"
|
521 |
-
msgstr "Eleman Düzenle"
|
522 |
-
|
523 |
-
#: ../custom-post-type-ui.php:1234
|
524 |
-
msgid "(e.g. Edit Movie)"
|
525 |
-
msgstr "(örneğin: Film Düzenle)"
|
526 |
-
|
527 |
-
#: ../custom-post-type-ui.php:1238
|
528 |
-
msgid "New Item"
|
529 |
-
msgstr "Yeni Eleman"
|
530 |
-
|
531 |
-
#: ../custom-post-type-ui.php:1240
|
532 |
-
msgid "(e.g. New Movie)"
|
533 |
-
msgstr "(örneğin: Yeni Film)"
|
534 |
-
|
535 |
-
#: ../custom-post-type-ui.php:1244
|
536 |
-
msgid "View"
|
537 |
-
msgstr "Göster"
|
538 |
-
|
539 |
-
#: ../custom-post-type-ui.php:1246 ../custom-post-type-ui.php:1252
|
540 |
-
msgid "(e.g. View Movie)"
|
541 |
-
msgstr "(örneğin: Film Göster)"
|
542 |
-
|
543 |
-
#: ../custom-post-type-ui.php:1250
|
544 |
-
msgid "View Item"
|
545 |
-
msgstr "Elemanı Göster"
|
546 |
-
|
547 |
-
#: ../custom-post-type-ui.php:1256 ../custom-post-type-ui.php:1517
|
548 |
-
msgid "Search Items"
|
549 |
-
msgstr "Eleman Ara"
|
550 |
-
|
551 |
-
#: ../custom-post-type-ui.php:1258
|
552 |
-
msgid "(e.g. Search Movies)"
|
553 |
-
msgstr "(örneğin: Filmleri Ara)"
|
554 |
-
|
555 |
-
#: ../custom-post-type-ui.php:1262
|
556 |
-
msgid "Not Found"
|
557 |
-
msgstr "Bulunamadı"
|
558 |
-
|
559 |
-
#: ../custom-post-type-ui.php:1264
|
560 |
-
msgid "(e.g. No Movies Found)"
|
561 |
-
msgstr "(örneğin: Filmler bulunamadı)"
|
562 |
-
|
563 |
-
#: ../custom-post-type-ui.php:1268
|
564 |
-
msgid "Not Found in Trash"
|
565 |
-
msgstr "Çöpte Bulunamadı"
|
566 |
-
|
567 |
-
#: ../custom-post-type-ui.php:1270
|
568 |
-
msgid "(e.g. No Movies found in Trash)"
|
569 |
-
msgstr "(örneğin: Çöpte Filmler bulunamadı)"
|
570 |
-
|
571 |
-
#: ../custom-post-type-ui.php:1274
|
572 |
-
msgid "Parent"
|
573 |
-
msgstr "Temel"
|
574 |
-
|
575 |
-
#: ../custom-post-type-ui.php:1276
|
576 |
-
msgid "(e.g. Parent Movie)"
|
577 |
-
msgstr "(örneğin: Temel Film)"
|
578 |
-
|
579 |
-
#: ../custom-post-type-ui.php:1285
|
580 |
-
msgid "Whether posts of this type should be shown in the admin UI"
|
581 |
-
msgstr ""
|
582 |
-
"Bu tip mesajların gerekip gerekmediğini yönetici arabiriminde gösterilir "
|
583 |
-
|
584 |
-
#: ../custom-post-type-ui.php:1288 ../custom-post-type-ui.php:1298
|
585 |
-
#: ../custom-post-type-ui.php:1308 ../custom-post-type-ui.php:1318
|
586 |
-
#: ../custom-post-type-ui.php:1333 ../custom-post-type-ui.php:1343
|
587 |
-
#: ../custom-post-type-ui.php:1358 ../custom-post-type-ui.php:1368
|
588 |
-
#: ../custom-post-type-ui.php:1387 ../custom-post-type-ui.php:1606
|
589 |
-
#: ../custom-post-type-ui.php:1616 ../custom-post-type-ui.php:1626
|
590 |
-
#: ../custom-post-type-ui.php:1643 ../custom-post-type-ui.php:1646
|
591 |
-
msgid "False"
|
592 |
-
msgstr "False"
|
593 |
-
|
594 |
-
#: ../custom-post-type-ui.php:1289 ../custom-post-type-ui.php:1299
|
595 |
-
#: ../custom-post-type-ui.php:1309 ../custom-post-type-ui.php:1319
|
596 |
-
#: ../custom-post-type-ui.php:1334 ../custom-post-type-ui.php:1344
|
597 |
-
#: ../custom-post-type-ui.php:1359 ../custom-post-type-ui.php:1369
|
598 |
-
#: ../custom-post-type-ui.php:1388 ../custom-post-type-ui.php:1607
|
599 |
-
#: ../custom-post-type-ui.php:1617 ../custom-post-type-ui.php:1627
|
600 |
-
#: ../custom-post-type-ui.php:1644 ../custom-post-type-ui.php:1647
|
601 |
-
msgid "True"
|
602 |
-
msgstr "True"
|
603 |
-
|
604 |
-
#: ../custom-post-type-ui.php:1290 ../custom-post-type-ui.php:1300
|
605 |
-
#: ../custom-post-type-ui.php:1345 ../custom-post-type-ui.php:1360
|
606 |
-
#: ../custom-post-type-ui.php:1370 ../custom-post-type-ui.php:1608
|
607 |
-
#: ../custom-post-type-ui.php:1618 ../custom-post-type-ui.php:1628
|
608 |
-
msgid "(default: True)"
|
609 |
-
msgstr "(varsayılan: Doğru)"
|
610 |
-
|
611 |
-
#: ../custom-post-type-ui.php:1295
|
612 |
-
msgid "Whether to generate a default UI for managing this post type"
|
613 |
-
msgstr ""
|
614 |
-
"Bu yazı türünün varsayılan kullanıcı arayüzünden yönetililp yönetilmeyeceği "
|
615 |
-
|
616 |
-
#: ../custom-post-type-ui.php:1305
|
617 |
-
msgid "Has Archive"
|
618 |
-
msgstr "Arşivlenebilir mi?"
|
619 |
-
|
620 |
-
#: ../custom-post-type-ui.php:1305
|
621 |
-
msgid "Whether the post type will have a post type archive page"
|
622 |
-
msgstr "Yazı türünün arşivlenebilir tür olup olmadığı"
|
623 |
-
|
624 |
-
#: ../custom-post-type-ui.php:1310 ../custom-post-type-ui.php:1320
|
625 |
-
#: ../custom-post-type-ui.php:1335 ../custom-post-type-ui.php:1598
|
626 |
-
#: ../custom-post-type-ui.php:1649
|
627 |
-
msgid "(default: False)"
|
628 |
-
msgstr "(varsayılan:Yanlış)"
|
629 |
-
|
630 |
-
#: ../custom-post-type-ui.php:1315
|
631 |
-
msgid "Exclude From Search"
|
632 |
-
msgstr "Arama Dışında Bırak"
|
633 |
-
|
634 |
-
#: ../custom-post-type-ui.php:1315
|
635 |
-
msgid "Whether the post type will be searchable"
|
636 |
-
msgstr "Yazı türünün aranabilir olup olmadığı"
|
637 |
-
|
638 |
-
#: ../custom-post-type-ui.php:1325
|
639 |
-
msgid "Capability Type"
|
640 |
-
msgstr "Yetenek Türü"
|
641 |
-
|
642 |
-
#: ../custom-post-type-ui.php:1325
|
643 |
-
msgid "The post type to use for checking read, edit, and delete capabilities"
|
644 |
-
msgstr "Bu yazı türü okunabilir, düzenlenebilir ve silinebilir yetenekleri"
|
645 |
-
|
646 |
-
#: ../custom-post-type-ui.php:1330
|
647 |
-
msgid "Whether the post type can have parent-child relationships"
|
648 |
-
msgstr "Yazı türünün üst sayfa, alt sayfa ilişkisinin olup olmadığı"
|
649 |
-
|
650 |
-
#: ../custom-post-type-ui.php:1340
|
651 |
-
msgid "Triggers the handling of rewrites for this post type"
|
652 |
-
msgstr "Bu Yazı türü için rewrite işlenmesini tetikler"
|
653 |
-
|
654 |
-
#: ../custom-post-type-ui.php:1350 ../custom-post-type-ui.php:1633
|
655 |
-
msgid "Custom Rewrite Slug"
|
656 |
-
msgstr "Özel Rewrite Slug"
|
657 |
-
|
658 |
-
#: ../custom-post-type-ui.php:1350
|
659 |
-
msgid "Custom slug to use instead of the default."
|
660 |
-
msgstr "Özel slug yerine varsayılan kullanmak için."
|
661 |
-
|
662 |
-
#: ../custom-post-type-ui.php:1351
|
663 |
-
msgid "(default: post type name)"
|
664 |
-
msgstr "(varsayılan: yazı türü adı)"
|
665 |
-
|
666 |
-
#: ../custom-post-type-ui.php:1355
|
667 |
-
msgid "With Front"
|
668 |
-
msgstr "Cephesinden"
|
669 |
-
|
670 |
-
#: ../custom-post-type-ui.php:1355
|
671 |
-
msgid "Should the permastruct be prepended with the front base."
|
672 |
-
msgstr "Perma yapı ön tabanı ile önüne alınmalıdır."
|
673 |
-
|
674 |
-
#: ../custom-post-type-ui.php:1375
|
675 |
-
msgid "Menu Position"
|
676 |
-
msgstr "Menü Pozisyonu"
|
677 |
-
|
678 |
-
#: ../custom-post-type-ui.php:1375
|
679 |
-
msgid ""
|
680 |
-
"The position in the menu order the post type should appear. show_in_menu "
|
681 |
-
"must be true."
|
682 |
-
msgstr ""
|
683 |
-
"Menüsündeki pozisyon sonrası tipi görünmelidir. show_in_menu doğru olması "
|
684 |
-
"gerekir."
|
685 |
-
|
686 |
-
#: ../custom-post-type-ui.php:1376
|
687 |
-
msgid ""
|
688 |
-
"See <a href=\"http://codex.wordpress.org/Function_Reference/"
|
689 |
-
"register_post_type#Parameters\">Available options</a> in the \"menu_position"
|
690 |
-
"\" section. Range of 5-100"
|
691 |
-
msgstr ""
|
692 |
-
"Bak <a href=\"http://codex.wordpress.org/Function_Reference/"
|
693 |
-
"register_post_type#Parameters\">Kullanılabilir ayarlar</a> \"menu_pozisyonu "
|
694 |
-
"bölümü\". Aralık 5 ile 100"
|
695 |
-
|
696 |
-
#: ../custom-post-type-ui.php:1382
|
697 |
-
msgid "Show in Menu"
|
698 |
-
msgstr "Menüde Göster"
|
699 |
-
|
700 |
-
#: ../custom-post-type-ui.php:1382
|
701 |
-
msgid ""
|
702 |
-
"Whether to show the post type in the admin menu and where to show that menu. "
|
703 |
-
"Note that show_ui must be true"
|
704 |
-
msgstr "Admin menüsünde yazı türünün görünüp görünmeyeceği"
|
705 |
-
|
706 |
-
#: ../custom-post-type-ui.php:1383
|
707 |
-
msgid ""
|
708 |
-
"\"Show UI\" must be \"true\". If an existing top level page such as \"tools."
|
709 |
-
"php\" is indicated for second input, post type will be sub menu of that."
|
710 |
-
msgstr ""
|
711 |
-
"\"Göster UI \" \"gerçek \" edilmelidir. \"Tools.php \" ikinci giriş için "
|
712 |
-
"belirtilen varolan üst düzey sayfasında ise, sonrası türü bu alt menü "
|
713 |
-
"olacaktır."
|
714 |
-
|
715 |
-
#: ../custom-post-type-ui.php:1395
|
716 |
-
msgid "Menu Icon"
|
717 |
-
msgstr "Menü Simgesi"
|
718 |
-
|
719 |
-
#: ../custom-post-type-ui.php:1395
|
720 |
-
msgid "URL to image to be used as menu icon."
|
721 |
-
msgstr "Görüntünün URL menü simgesi olarak kullanılacak."
|
722 |
-
|
723 |
-
#: ../custom-post-type-ui.php:1403
|
724 |
-
msgid "Title"
|
725 |
-
msgstr "Başlık"
|
726 |
-
|
727 |
-
#: ../custom-post-type-ui.php:1403
|
728 |
-
msgid "Adds the title meta box when creating content for this custom post type"
|
729 |
-
msgstr "Bu özel yazı türü için içerik oluştururken başlık meta kutusu ekler"
|
730 |
-
|
731 |
-
#: ../custom-post-type-ui.php:1404
|
732 |
-
msgid "Editor"
|
733 |
-
msgstr "Editör"
|
734 |
-
|
735 |
-
#: ../custom-post-type-ui.php:1404
|
736 |
-
msgid ""
|
737 |
-
"Adds the content editor meta box when creating content for this custom post "
|
738 |
-
"type"
|
739 |
-
msgstr ""
|
740 |
-
"Bu özel yazı türü için içerik oluştururken içerik editörü meta kutusu ekler"
|
741 |
-
|
742 |
-
#: ../custom-post-type-ui.php:1405
|
743 |
-
msgid "Excerpt"
|
744 |
-
msgstr "Alıntı"
|
745 |
-
|
746 |
-
#: ../custom-post-type-ui.php:1405
|
747 |
-
msgid ""
|
748 |
-
"Adds the excerpt meta box when creating content for this custom post type"
|
749 |
-
msgstr "Bu özel yazı türü için içerik oluştururken alıntı meta kutusu ekler"
|
750 |
-
|
751 |
-
#: ../custom-post-type-ui.php:1406
|
752 |
-
msgid "Trackbacks"
|
753 |
-
msgstr "Parçagönderimi"
|
754 |
-
|
755 |
-
#: ../custom-post-type-ui.php:1406
|
756 |
-
msgid ""
|
757 |
-
"Adds the trackbacks meta box when creating content for this custom post type"
|
758 |
-
msgstr ""
|
759 |
-
"Bu özel yazı türü için içerik oluştururken parçagönderimi meta kutusu ekler"
|
760 |
-
|
761 |
-
#: ../custom-post-type-ui.php:1407
|
762 |
-
msgid "Custom Fields"
|
763 |
-
msgstr "Özel Alanlar"
|
764 |
-
|
765 |
-
#: ../custom-post-type-ui.php:1407
|
766 |
-
msgid ""
|
767 |
-
"Adds the custom fields meta box when creating content for this custom post "
|
768 |
-
"type"
|
769 |
-
msgstr "Bu özel yazı türü için içerik oluştururken özel alan meta kutusu ekler"
|
770 |
-
|
771 |
-
#: ../custom-post-type-ui.php:1408
|
772 |
-
msgid "Comments"
|
773 |
-
msgstr "Yorumlar"
|
774 |
-
|
775 |
-
#: ../custom-post-type-ui.php:1408
|
776 |
-
msgid ""
|
777 |
-
"Adds the comments meta box when creating content for this custom post type"
|
778 |
-
msgstr "Bu özel yazı türü için içerik oluştururken Yorumlar meta kutusu ekler"
|
779 |
-
|
780 |
-
#: ../custom-post-type-ui.php:1409
|
781 |
-
msgid "Revisions"
|
782 |
-
msgstr "Düzenlemeler"
|
783 |
-
|
784 |
-
#: ../custom-post-type-ui.php:1409
|
785 |
-
msgid ""
|
786 |
-
"Adds the revisions meta box when creating content for this custom post type"
|
787 |
-
msgstr ""
|
788 |
-
"Bu özel yazı türü için içerik oluştururken revizyonlar meta kutusu ekler"
|
789 |
-
|
790 |
-
#: ../custom-post-type-ui.php:1410
|
791 |
-
msgid "Featured Image"
|
792 |
-
msgstr "Öne Çıkan Görüntü"
|
793 |
-
|
794 |
-
#: ../custom-post-type-ui.php:1410
|
795 |
-
msgid ""
|
796 |
-
"Adds the featured image meta box when creating content for this custom post "
|
797 |
-
"type"
|
798 |
-
msgstr ""
|
799 |
-
"Bu özel yazı türü için içerik oluştururken öne çıkan görüntü meta kutusu "
|
800 |
-
"ekler"
|
801 |
-
|
802 |
-
#: ../custom-post-type-ui.php:1411
|
803 |
-
msgid "Author"
|
804 |
-
msgstr "Yazar"
|
805 |
-
|
806 |
-
#: ../custom-post-type-ui.php:1411
|
807 |
-
msgid ""
|
808 |
-
"Adds the author meta box when creating content for this custom post type"
|
809 |
-
msgstr "Bu özel yazı türü için içerik oluştururken yazar meta kutusu ekler"
|
810 |
-
|
811 |
-
#: ../custom-post-type-ui.php:1412
|
812 |
-
msgid "Page Attributes"
|
813 |
-
msgstr "Sayfa Öznitelikleri"
|
814 |
-
|
815 |
-
#: ../custom-post-type-ui.php:1412
|
816 |
-
msgid ""
|
817 |
-
"Adds the page attribute meta box when creating content for this custom post "
|
818 |
-
"type"
|
819 |
-
msgstr ""
|
820 |
-
"Bu özel yazı türü için içerik oluştururken sayfa öznitelikleri meta kutusunu "
|
821 |
-
"ekler "
|
822 |
-
|
823 |
-
#: ../custom-post-type-ui.php:1413
|
824 |
-
msgid "Post Formats"
|
825 |
-
msgstr "Yazı Formatları"
|
826 |
-
|
827 |
-
#: ../custom-post-type-ui.php:1413
|
828 |
-
msgid "Adds post format support"
|
829 |
-
msgstr "Bu Yazı format desteği ekler"
|
830 |
-
|
831 |
-
#: ../custom-post-type-ui.php:1418
|
832 |
-
msgid "Built-in Taxonomies"
|
833 |
-
msgstr "Dahili Sınıflandırmalar"
|
834 |
-
|
835 |
-
#: ../custom-post-type-ui.php:1451
|
836 |
-
msgid ""
|
837 |
-
"If you are unfamiliar with the options below only fill out the "
|
838 |
-
"<strong>Taxonomy Name</strong> and <strong>Post Type Name</strong> fields. "
|
839 |
-
"The other settings are set to the most common defaults for custom "
|
840 |
-
"taxonomies. Hover over the question mark for more details."
|
841 |
-
msgstr ""
|
842 |
-
"Diğer ayarlar özel sınıflandırmalar için en yaygın varsayılan olarak "
|
843 |
-
"ayarlanır. Daha fazla bilgi için soru işareti üzerinde gezinin."
|
844 |
-
|
845 |
-
#: ../custom-post-type-ui.php:1460
|
846 |
-
msgid "Taxonomy Name"
|
847 |
-
msgstr "Sınıflandırma Adı"
|
848 |
-
|
849 |
-
#: ../custom-post-type-ui.php:1460
|
850 |
-
msgid ""
|
851 |
-
"The taxonomy name. Used to retrieve custom taxonomy content. Should be "
|
852 |
-
"short and sweet"
|
853 |
-
msgstr ""
|
854 |
-
"Sınıflandırma adı. Özel sınıflandırma içeriği almak için kullanılır. Kısa ve "
|
855 |
-
"tatlı olmalıdır"
|
856 |
-
|
857 |
-
#: ../custom-post-type-ui.php:1461
|
858 |
-
msgid ""
|
859 |
-
"Note: Changing the name, after adding terms to the taxonomy, will not update "
|
860 |
-
"the terms in the database."
|
861 |
-
msgstr ""
|
862 |
-
"Not: Sınıflandırma terimleri ekledikten sonra, adının değiştirilmesi, "
|
863 |
-
"veritabanında koşullarını güncelleme yapılmayacak."
|
864 |
-
|
865 |
-
#: ../custom-post-type-ui.php:1463
|
866 |
-
msgid "(e.g. actors)"
|
867 |
-
msgstr "(örneğin: aktörler)"
|
868 |
-
|
869 |
-
#: ../custom-post-type-ui.php:1464
|
870 |
-
msgid ""
|
871 |
-
"Max 32 characters, should only contain alphanumeric lowercase characters and "
|
872 |
-
"underscores in place of spaces."
|
873 |
-
msgstr ""
|
874 |
-
"Maksimum 32 karakter, sadece alfanümerik küçük harf karakterleri içeren ve "
|
875 |
-
"boşluk yerine alt çizgi olmalıdır."
|
876 |
-
|
877 |
-
#: ../custom-post-type-ui.php:1469
|
878 |
-
msgid "Taxonomy label. Used in the admin menu for displaying custom taxonomy."
|
879 |
-
msgstr ""
|
880 |
-
"Sınıflandırma etiketi. Özel sınıflandırma görüntülemek için yönetici "
|
881 |
-
"menüsünde kullanılan."
|
882 |
-
|
883 |
-
#: ../custom-post-type-ui.php:1470
|
884 |
-
msgid "(e.g. Actors)"
|
885 |
-
msgstr "(örneğin: Aktörler)"
|
886 |
-
|
887 |
-
#: ../custom-post-type-ui.php:1474
|
888 |
-
msgid ""
|
889 |
-
"Taxonomy Singular label. Used in WordPress when a singular label is needed."
|
890 |
-
msgstr ""
|
891 |
-
"Sınıflandırma Tekil etiketi. WordPress bir tekil etiket gerektiğinde "
|
892 |
-
"kullanır."
|
893 |
-
|
894 |
-
#: ../custom-post-type-ui.php:1475
|
895 |
-
msgid "(e.g. Actor)"
|
896 |
-
msgstr "(örneğin: Aktör)"
|
897 |
-
|
898 |
-
#: ../custom-post-type-ui.php:1479
|
899 |
-
msgid "Attach to Post Type"
|
900 |
-
msgstr "Yazı Türüne ekle"
|
901 |
-
|
902 |
-
#: ../custom-post-type-ui.php:1479
|
903 |
-
msgid ""
|
904 |
-
"What post type object to attach the custom taxonomy to. Can be post, page, "
|
905 |
-
"or link by default. Can also be any custom post type name."
|
906 |
-
msgstr ""
|
907 |
-
"Yazı türü nesnesi için özel sınıflandırma oluşturmak için. Sayfa veya link "
|
908 |
-
"varsayılan olabilir. Ayrıca herhangi bir özel yazı türü adı olabilir."
|
909 |
-
|
910 |
-
#: ../custom-post-type-ui.php:1482
|
911 |
-
msgid ""
|
912 |
-
"This is the old method. Delete the post type from the textbox and check "
|
913 |
-
"which post type to attach this taxonomy to</strong>"
|
914 |
-
msgstr ""
|
915 |
-
"Bu, eski bir yöntemdir. Metin kutusu sonrası türünü silmek ve bu "
|
916 |
-
"sınıflandırma eklemek sonrası hangi tip onay"
|
917 |
-
|
918 |
-
#: ../custom-post-type-ui.php:1483
|
919 |
-
msgid "(e.g. movies)"
|
920 |
-
msgstr "(örneğin: filmler)"
|
921 |
-
|
922 |
-
#: ../custom-post-type-ui.php:1514
|
923 |
-
msgid ""
|
924 |
-
"Below are the advanced label options for custom taxonomies. If you are "
|
925 |
-
"unfamiliar with these labels the plugin will automatically create labels "
|
926 |
-
"based off of your custom taxonomy name"
|
927 |
-
msgstr ""
|
928 |
-
"Aşağıda özel sınıflandırmalar için gelişmiş etiket seçenekleri vardır. Eğer "
|
929 |
-
"bu etiket ile aşina değilseniz eklenti otomatik olarak özel sınıflandırma "
|
930 |
-
"adının kapalıya dayalı etiketlerini oluşturacak."
|
931 |
-
|
932 |
-
#: ../custom-post-type-ui.php:1517 ../custom-post-type-ui.php:1523
|
933 |
-
#: ../custom-post-type-ui.php:1529 ../custom-post-type-ui.php:1535
|
934 |
-
#: ../custom-post-type-ui.php:1541 ../custom-post-type-ui.php:1547
|
935 |
-
#: ../custom-post-type-ui.php:1553 ../custom-post-type-ui.php:1559
|
936 |
-
#: ../custom-post-type-ui.php:1565 ../custom-post-type-ui.php:1571
|
937 |
-
#: ../custom-post-type-ui.php:1577 ../custom-post-type-ui.php:1583
|
938 |
-
msgid ""
|
939 |
-
"Custom taxonomy label. Used in the admin menu for displaying taxonomies."
|
940 |
-
msgstr ""
|
941 |
-
"Özel sınıflandırma etiketi. Sınıflandırmaları görüntülemek için yönetici "
|
942 |
-
"menüsünde kullanılan."
|
943 |
-
|
944 |
-
#: ../custom-post-type-ui.php:1519
|
945 |
-
msgid "(e.g. Search Actors)"
|
946 |
-
msgstr "(örneğin: Aktörleri Ara)"
|
947 |
-
|
948 |
-
#: ../custom-post-type-ui.php:1523
|
949 |
-
msgid "Popular Items"
|
950 |
-
msgstr "Popüler Elemanlar"
|
951 |
-
|
952 |
-
#: ../custom-post-type-ui.php:1525
|
953 |
-
msgid "(e.g. Popular Actors)"
|
954 |
-
msgstr "(örneğin: Popüler Aktörler)"
|
955 |
-
|
956 |
-
#: ../custom-post-type-ui.php:1529
|
957 |
-
msgid "All Items"
|
958 |
-
msgstr "Bütün Elemanlar"
|
959 |
-
|
960 |
-
#: ../custom-post-type-ui.php:1531
|
961 |
-
msgid "(e.g. All Actors)"
|
962 |
-
msgstr "(örneğin: Bütün Aktörler)"
|
963 |
-
|
964 |
-
#: ../custom-post-type-ui.php:1535
|
965 |
-
msgid "Parent Item"
|
966 |
-
msgstr "Temel Eleman"
|
967 |
-
|
968 |
-
#: ../custom-post-type-ui.php:1537
|
969 |
-
msgid "(e.g. Parent Actor)"
|
970 |
-
msgstr "(örneğin: Temel Aktör)"
|
971 |
-
|
972 |
-
#: ../custom-post-type-ui.php:1541
|
973 |
-
msgid "Parent Item Colon"
|
974 |
-
msgstr "Temel Eleman Kolon"
|
975 |
-
|
976 |
-
#: ../custom-post-type-ui.php:1543
|
977 |
-
msgid "(e.g. Parent Actor:)"
|
978 |
-
msgstr "(örneğin: Temel Aktör:)"
|
979 |
-
|
980 |
-
#: ../custom-post-type-ui.php:1549
|
981 |
-
msgid "(e.g. Edit Actor)"
|
982 |
-
msgstr "(örneğin: Aktör Düzenle)"
|
983 |
-
|
984 |
-
#: ../custom-post-type-ui.php:1553
|
985 |
-
msgid "Update Item"
|
986 |
-
msgstr "Eleman Güncelle"
|
987 |
-
|
988 |
-
#: ../custom-post-type-ui.php:1555
|
989 |
-
msgid "(e.g. Update Actor)"
|
990 |
-
msgstr "(örneğin: Aktörü Güncelle)"
|
991 |
-
|
992 |
-
#: ../custom-post-type-ui.php:1561
|
993 |
-
msgid "(e.g. Add New Actor)"
|
994 |
-
msgstr "(örneğin: Yeni Aktör Ekle)"
|
995 |
-
|
996 |
-
#: ../custom-post-type-ui.php:1565
|
997 |
-
msgid "New Item Name"
|
998 |
-
msgstr "Yeni Eleman Adı"
|
999 |
-
|
1000 |
-
#: ../custom-post-type-ui.php:1567
|
1001 |
-
msgid "(e.g. New Actor Name)"
|
1002 |
-
msgstr "(örneğin: Yeni Aktör Adı)"
|
1003 |
-
|
1004 |
-
#: ../custom-post-type-ui.php:1571
|
1005 |
-
msgid "Separate Items with Commas"
|
1006 |
-
msgstr "Elemanları virgül ile ayır"
|
1007 |
-
|
1008 |
-
#: ../custom-post-type-ui.php:1573
|
1009 |
-
msgid "(e.g. Separate actors with commas)"
|
1010 |
-
msgstr "(örneğin: Aktörleri virgülle ayırınız)"
|
1011 |
-
|
1012 |
-
#: ../custom-post-type-ui.php:1577
|
1013 |
-
msgid "Add or Remove Items"
|
1014 |
-
msgstr "Elemanları Ekle veya Çıkar "
|
1015 |
-
|
1016 |
-
#: ../custom-post-type-ui.php:1579
|
1017 |
-
msgid "(e.g. Add or remove actors)"
|
1018 |
-
msgstr "(örneğin: Aktörleri ekle veya çıkar)"
|
1019 |
-
|
1020 |
-
#: ../custom-post-type-ui.php:1583
|
1021 |
-
msgid "Choose From Most Used"
|
1022 |
-
msgstr "Çok Kullanılandan Seç"
|
1023 |
-
|
1024 |
-
#: ../custom-post-type-ui.php:1585
|
1025 |
-
msgid "(e.g. Choose from the most used actors)"
|
1026 |
-
msgstr "(örneğin: Çok kullanılan aktörlerden seç)"
|
1027 |
-
|
1028 |
-
#: ../custom-post-type-ui.php:1593
|
1029 |
-
msgid "Whether the taxonomy can have parent-child relationships"
|
1030 |
-
msgstr "Sınıflandırma alt-üst sayfa ilişkisine sahip mi?"
|
1031 |
-
|
1032 |
-
#: ../custom-post-type-ui.php:1603
|
1033 |
-
msgid "Whether to generate a default UI for managing this custom taxonomy"
|
1034 |
-
msgstr "Varsayılan arayüzden bu özel sınıflandırma oluşturulabilir mi"
|
1035 |
-
|
1036 |
-
#: ../custom-post-type-ui.php:1623
|
1037 |
-
msgid "Triggers the handling of rewrites for this taxonomy"
|
1038 |
-
msgstr "Bu sınıflandırma için rewrite işlenmesini tetikler"
|
1039 |
-
|
1040 |
-
#: ../custom-post-type-ui.php:1633
|
1041 |
-
msgid "Custom Taxonomy Rewrite Slug"
|
1042 |
-
msgstr "Özel Sınıflandırma Rewrite Slug"
|
1043 |
-
|
1044 |
-
#: ../custom-post-type-ui.php:1634
|
1045 |
-
msgid "(default: taxonomy name)"
|
1046 |
-
msgstr "(varsayılan: sınıflandırma adı)"
|
1047 |
-
|
1048 |
-
#: ../custom-post-type-ui.php:1639
|
1049 |
-
msgid "Show Admin Column"
|
1050 |
-
msgstr "Yönetici Sütunu Göster"
|
1051 |
-
|
1052 |
-
#: ../custom-post-type-ui.php:1639
|
1053 |
-
msgid ""
|
1054 |
-
"Whether to allow automatic creation of taxonomy columns on associated post-"
|
1055 |
-
"types."
|
1056 |
-
msgstr ""
|
1057 |
-
"Sınıflandırma sütunu otomatik olarak oluşturulmasını izin verilip verilmediği"
|
1058 |
-
|
1059 |
-
#: ../custom-post-type-ui.php:1673
|
1060 |
-
msgid "Please Report Bugs"
|
1061 |
-
msgstr "Lütfen Hataları Bildirin"
|
1062 |
-
|
1063 |
-
#: ../custom-post-type-ui.php:1673
|
1064 |
-
msgid "Follow on Twitter:"
|
1065 |
-
msgstr "Twitterden takip et:"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/custom-post-type-ui.mo
CHANGED
Binary file
|
languages/custom-post-type-ui.pot
CHANGED
@@ -1,1285 +1,973 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: Custom Post Type UI 0.
|
4 |
-
"POT-Creation-Date:
|
5 |
-
"PO-Revision-Date:
|
6 |
-
"Last-Translator:
|
7 |
-
"Language-Team:
|
8 |
-
"Language: en\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.7
|
13 |
"X-Poedit-KeywordsList: __;_e;esc_attr__;esc_attr_e;esc_attr_x;_n;_x;_ex;_nx;"
|
14 |
"esc_html__;esc_html_e;esc_html_x\n"
|
15 |
"X-Poedit-Basepath: .\n"
|
16 |
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
17 |
"X-Poedit-SearchPath-0: ..\n"
|
18 |
|
19 |
-
#: ../custom-post-type-ui.php:
|
20 |
msgid "Custom Post Types"
|
21 |
msgstr ""
|
22 |
|
23 |
-
#: ../custom-post-type-ui.php:
|
24 |
msgid "CPT UI"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: ../custom-post-type-ui.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
msgid "Custom Post Type UI"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: ../custom-post-type-ui.php:
|
32 |
-
msgid ""
|
33 |
-
|
34 |
-
|
35 |
-
|
|
|
36 |
msgstr ""
|
37 |
|
38 |
-
#: ../custom-post-type-ui.php:
|
39 |
-
#, php-format
|
40 |
msgid ""
|
41 |
-
"
|
42 |
-
"
|
43 |
-
"
|
44 |
-
"as soon as possible."
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: ../custom-post-type-ui.php:
|
48 |
-
msgid "
|
|
|
|
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: ../custom-post-type-ui.php:
|
52 |
-
msgid "
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: ../custom-post-type-ui.php:
|
56 |
-
msgid "
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: ../custom-post-type-ui.php:
|
60 |
-
msgid "
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: ../custom-post-type-ui.php:
|
64 |
-
msgid "
|
|
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: ../custom-post-type-ui.php:
|
68 |
-
msgid "
|
|
|
|
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: ../custom-post-type-ui.php:
|
72 |
msgid ""
|
73 |
-
"
|
74 |
-
"
|
75 |
msgstr ""
|
76 |
|
77 |
-
#: ../custom-post-type-ui.php:
|
78 |
-
msgid "
|
|
|
|
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: ../custom-post-type-ui.php:
|
82 |
-
msgid "
|
83 |
msgstr ""
|
84 |
|
85 |
-
#: ../custom-post-type-ui.php:
|
86 |
msgid "PayPal Donation"
|
87 |
msgstr ""
|
88 |
|
89 |
-
#: ../custom-post-type-ui.php:
|
90 |
-
msgid "
|
91 |
msgstr ""
|
92 |
|
93 |
-
#: ../custom-post-type-ui.php:
|
94 |
-
msgid "
|
95 |
msgstr ""
|
96 |
|
97 |
-
#: ../custom-post-type-ui.php:
|
98 |
-
|
99 |
-
msgid "%s version %s by %s - %s %s · %s · %s · %s"
|
100 |
msgstr ""
|
101 |
|
102 |
-
#: ../custom-post-type-ui.php:
|
103 |
-
msgid "
|
|
|
|
|
104 |
msgstr ""
|
105 |
|
106 |
-
#: ../custom-post-type-ui.php:
|
107 |
-
msgid "
|
108 |
msgstr ""
|
109 |
|
110 |
-
#: ../custom-post-type-ui.php:
|
111 |
-
msgid "
|
112 |
msgstr ""
|
113 |
|
114 |
-
#: ../custom-post-type-ui.php:
|
115 |
-
msgid "
|
116 |
msgstr ""
|
117 |
|
118 |
-
#: ../custom-post-type-ui.php:
|
119 |
-
msgid "
|
120 |
msgstr ""
|
121 |
|
122 |
-
#: ../custom-post-type-ui.php:
|
123 |
-
msgid "
|
124 |
msgstr ""
|
125 |
|
126 |
-
#: ../custom-post-type-ui.php:
|
127 |
-
msgid "
|
|
|
|
|
|
|
128 |
msgstr ""
|
129 |
|
130 |
-
#: ../custom-post-type-ui.php:
|
131 |
-
|
|
|
132 |
msgstr ""
|
133 |
|
134 |
-
#: ../custom-post-type-ui.php:
|
135 |
-
|
|
|
|
|
136 |
msgstr ""
|
137 |
|
138 |
-
#: ../custom-post-type-ui.php:
|
139 |
-
|
|
|
|
|
|
|
140 |
msgstr ""
|
141 |
|
142 |
-
#: ../custom-post-type-ui.php:
|
143 |
-
|
|
|
|
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: ../custom-post-type-ui.php:
|
147 |
-
#: ../
|
148 |
-
|
|
|
|
|
149 |
msgstr ""
|
150 |
|
151 |
-
#: ../custom-post-type-ui.php:
|
152 |
-
|
|
|
|
|
|
|
153 |
msgstr ""
|
154 |
|
155 |
-
#: ../custom-post-type-ui.php:
|
156 |
-
|
157 |
-
|
|
|
|
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: ../custom-post-type-ui.php:
|
161 |
-
|
162 |
-
|
|
|
163 |
msgstr ""
|
164 |
|
165 |
-
#: ../custom-post-type-ui.php:
|
166 |
-
|
167 |
-
msgid "%s has been successfully updated"
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: ../custom-post-type-ui.php:
|
171 |
-
|
172 |
-
msgid "%s has failed to be updated"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: ../custom-post-type-ui.php:
|
176 |
-
|
177 |
-
msgid "
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: ../custom-post-type-ui.php:
|
181 |
-
|
182 |
-
msgid "%s has failed to be deleted"
|
183 |
msgstr ""
|
184 |
|
185 |
-
#: ../custom-post-type-ui.php:
|
186 |
-
|
187 |
-
msgid "
|
188 |
msgstr ""
|
189 |
|
190 |
-
#: ../custom-post-type-ui.php:
|
191 |
-
|
192 |
-
msgid "%s has failed to be imported"
|
193 |
msgstr ""
|
194 |
|
195 |
-
#: ../
|
196 |
msgid ""
|
197 |
-
"
|
198 |
-
"
|
199 |
-
"export functionality. If you are moving away from Custom Post Type UI, use "
|
200 |
-
"the information in the \"Get Code\" tab."
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: ../
|
204 |
-
msgid "
|
|
|
|
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: ../
|
208 |
-
msgid "
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: ../
|
212 |
-
msgid "
|
|
|
|
|
213 |
msgstr ""
|
214 |
|
215 |
-
#: ../
|
216 |
-
|
|
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: ../
|
220 |
-
msgid "
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: ../
|
224 |
-
msgid "
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: ../
|
228 |
-
msgid ""
|
229 |
-
"To import post types from a different WordPress site, paste the exported "
|
230 |
-
"content from that site and click the \"Import\" button."
|
231 |
msgstr ""
|
232 |
|
233 |
-
#: ../
|
234 |
-
msgid "
|
|
|
|
|
|
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: ../
|
238 |
-
|
|
|
239 |
msgstr ""
|
240 |
|
241 |
-
#: ../
|
242 |
-
msgid "
|
243 |
msgstr ""
|
244 |
|
245 |
-
#: ../
|
246 |
msgid ""
|
247 |
-
"
|
248 |
-
"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: ../
|
252 |
msgid ""
|
253 |
-
"
|
254 |
-
"
|
255 |
-
"settings."
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: ../
|
259 |
-
msgid "
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: ../
|
263 |
-
msgid ""
|
264 |
-
"To import taxonomies from a different WordPress site, paste the exported "
|
265 |
-
"content from that site and click the \"Import\" button."
|
266 |
msgstr ""
|
267 |
|
268 |
-
#: ../
|
269 |
-
msgid "
|
270 |
msgstr ""
|
271 |
|
272 |
-
#: ../
|
273 |
-
msgid "
|
274 |
msgstr ""
|
275 |
|
276 |
-
#: ../
|
277 |
msgid ""
|
278 |
-
"
|
279 |
-
"
|
280 |
-
"settings."
|
281 |
msgstr ""
|
282 |
|
283 |
-
#: ../
|
284 |
-
msgid "
|
285 |
msgstr ""
|
286 |
|
287 |
-
#: ../
|
288 |
-
msgid "
|
|
|
|
|
289 |
msgstr ""
|
290 |
|
291 |
-
#: ../
|
292 |
-
msgid "
|
293 |
msgstr ""
|
294 |
|
295 |
-
#: ../
|
296 |
-
msgid "
|
297 |
msgstr ""
|
298 |
|
299 |
-
#: ../
|
300 |
-
msgid "
|
301 |
msgstr ""
|
302 |
|
303 |
-
#: ../
|
304 |
-
msgid "
|
305 |
msgstr ""
|
306 |
|
307 |
-
#: ../
|
308 |
-
msgid "
|
309 |
msgstr ""
|
310 |
|
311 |
-
#: ../
|
312 |
-
msgid "
|
313 |
msgstr ""
|
314 |
|
315 |
-
#: ../
|
316 |
-
msgid ""
|
317 |
-
"Select a post type to edit. DO NOT EDIT the post type slug unless necessary. "
|
318 |
-
"Changing that value registers a new post type entry for your install."
|
319 |
msgstr ""
|
320 |
|
321 |
-
#: ../
|
322 |
-
msgid "
|
323 |
msgstr ""
|
324 |
|
325 |
-
#: ../
|
326 |
-
msgid "Post Type
|
327 |
msgstr ""
|
328 |
|
329 |
-
#: ../
|
330 |
-
msgid "
|
|
|
|
|
|
|
|
|
331 |
msgstr ""
|
332 |
|
333 |
-
#: ../
|
334 |
-
msgid ""
|
335 |
-
"The post type name. Used to retrieve custom post type content. Should be "
|
336 |
-
"short and unique"
|
337 |
msgstr ""
|
338 |
|
339 |
-
#: ../
|
340 |
-
msgid "
|
|
|
|
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: ../
|
344 |
-
msgid "(e.g.
|
345 |
msgstr ""
|
346 |
|
347 |
-
#: ../
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
#: ../inc/post-types.php:270 ../inc/post-types.php:282
|
352 |
-
#: ../inc/post-types.php:294 ../inc/post-types.php:306
|
353 |
-
#: ../inc/post-types.php:318
|
354 |
-
msgid "Post type label. Used in the admin menu for displaying post types."
|
355 |
msgstr ""
|
356 |
|
357 |
-
#: ../
|
358 |
-
|
|
|
|
|
|
|
|
|
|
|
359 |
msgstr ""
|
360 |
|
361 |
-
#: ../
|
362 |
-
msgid "(e.g.
|
363 |
msgstr ""
|
364 |
|
365 |
-
#: ../
|
366 |
msgid ""
|
367 |
-
"Custom Post Type Singular label.
|
368 |
"needed."
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: ../
|
|
|
|
|
|
|
|
|
372 |
msgid "Description"
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: ../
|
376 |
msgid ""
|
377 |
-
"Custom Post Type Description.
|
378 |
"for."
|
379 |
msgstr ""
|
380 |
|
381 |
-
#: ../
|
382 |
-
msgid "
|
383 |
-
msgstr ""
|
384 |
-
|
385 |
-
#: ../inc/post-types.php:154
|
386 |
-
msgid "Delete Post Type"
|
387 |
-
msgstr ""
|
388 |
-
|
389 |
-
#: ../inc/post-types.php:156
|
390 |
-
msgid "Add Post Type"
|
391 |
-
msgstr ""
|
392 |
-
|
393 |
-
#: ../inc/post-types.php:162 ../inc/taxonomies.php:174
|
394 |
-
msgid "Click headings to reveal available options."
|
395 |
msgstr ""
|
396 |
|
397 |
-
#: ../
|
398 |
-
|
399 |
-
#: ../inc/taxonomies.php:319 ../inc/taxonomies.php:463
|
400 |
-
msgid "Click to expand"
|
401 |
msgstr ""
|
402 |
|
403 |
-
#: ../
|
404 |
-
msgid "
|
|
|
|
|
|
|
405 |
msgstr ""
|
406 |
|
407 |
-
#: ../
|
408 |
msgid "Menu Name"
|
409 |
msgstr ""
|
410 |
|
411 |
-
#: ../
|
412 |
msgid "Custom menu name for your custom post type."
|
413 |
msgstr ""
|
414 |
|
415 |
-
#: ../
|
416 |
msgid "(e.g. My Movies)"
|
417 |
msgstr ""
|
418 |
|
419 |
-
#: ../
|
420 |
-
msgid "All Items"
|
421 |
-
msgstr ""
|
422 |
-
|
423 |
-
#: ../inc/post-types.php:190
|
424 |
-
msgid "(e.g. All Movies)"
|
425 |
-
msgstr ""
|
426 |
-
|
427 |
-
#: ../inc/post-types.php:202
|
428 |
msgid "(e.g. Add New)"
|
429 |
msgstr ""
|
430 |
|
431 |
-
#: ../
|
432 |
msgid "Add New Item"
|
433 |
msgstr ""
|
434 |
|
435 |
-
#: ../
|
436 |
msgid "(e.g. Add New Movie)"
|
437 |
msgstr ""
|
438 |
|
439 |
-
#: ../
|
440 |
-
msgid "Edit"
|
441 |
-
msgstr ""
|
442 |
-
|
443 |
-
#: ../inc/post-types.php:226
|
444 |
msgid "(e.g. Edit)"
|
445 |
msgstr ""
|
446 |
|
447 |
-
#: ../
|
448 |
msgid "Edit Item"
|
449 |
msgstr ""
|
450 |
|
451 |
-
#: ../
|
452 |
msgid "(e.g. Edit Movie)"
|
453 |
msgstr ""
|
454 |
|
455 |
-
#: ../
|
456 |
msgid "New Item"
|
457 |
msgstr ""
|
458 |
|
459 |
-
#: ../
|
460 |
msgid "(e.g. New Movie)"
|
461 |
msgstr ""
|
462 |
|
463 |
-
#: ../
|
464 |
msgid "View"
|
465 |
msgstr ""
|
466 |
|
467 |
-
#: ../
|
468 |
-
msgid "(e.g. View)"
|
469 |
msgstr ""
|
470 |
|
471 |
-
#: ../
|
472 |
msgid "View Item"
|
473 |
msgstr ""
|
474 |
|
475 |
-
#: ../
|
476 |
-
msgid "
|
477 |
-
msgstr ""
|
478 |
-
|
479 |
-
#: ../inc/post-types.php:281
|
480 |
-
msgid "Search Item"
|
481 |
msgstr ""
|
482 |
|
483 |
-
#: ../
|
484 |
-
msgid "(e.g. Search
|
485 |
msgstr ""
|
486 |
|
487 |
-
#: ../
|
488 |
msgid "Not Found"
|
489 |
msgstr ""
|
490 |
|
491 |
-
#: ../
|
492 |
-
msgid "(e.g. No Movies
|
493 |
msgstr ""
|
494 |
|
495 |
-
#: ../
|
496 |
msgid "Not Found in Trash"
|
497 |
msgstr ""
|
498 |
|
499 |
-
#: ../
|
500 |
msgid "(e.g. No Movies found in Trash)"
|
501 |
msgstr ""
|
502 |
|
503 |
-
#: ../
|
504 |
msgid "Parent"
|
505 |
msgstr ""
|
506 |
|
507 |
-
#: ../
|
508 |
msgid "(e.g. Parent Movie)"
|
509 |
msgstr ""
|
510 |
|
511 |
-
#: ../
|
512 |
-
|
513 |
-
#: ../inc/post-types.php:427 ../inc/post-types.php:447
|
514 |
-
#: ../inc/post-types.php:479 ../inc/post-types.php:499
|
515 |
-
#: ../inc/post-types.php:538 ../inc/taxonomies.php:325
|
516 |
-
#: ../inc/taxonomies.php:342 ../inc/taxonomies.php:359
|
517 |
-
#: ../inc/taxonomies.php:384 ../inc/taxonomies.php:410
|
518 |
-
#: ../inc/taxonomies.php:427 ../inc/taxonomies.php:444
|
519 |
-
#: ../tests/CPTUI-Admin-UI-Inputs-Test.php:88
|
520 |
-
#: ../tests/CPTUI-Admin-UI-Inputs-Test.php:120
|
521 |
-
#: ../tests/CPTUI-Admin-UI-Inputs-Test.php:153
|
522 |
-
#: ../tests/CPTUI-Admin-UI-Inputs-Test.php:185
|
523 |
-
msgid "False"
|
524 |
msgstr ""
|
525 |
|
526 |
-
#: ../
|
527 |
-
#: ../
|
528 |
-
#: ../
|
529 |
-
#: ../
|
530 |
-
#: ../
|
531 |
-
#: ../
|
532 |
-
#: ../
|
533 |
-
|
534 |
-
#: ../tests/CPTUI-Admin-UI-Inputs-Test.php:89
|
535 |
-
#: ../tests/CPTUI-Admin-UI-Inputs-Test.php:121
|
536 |
-
#: ../tests/CPTUI-Admin-UI-Inputs-Test.php:154
|
537 |
-
#: ../tests/CPTUI-Admin-UI-Inputs-Test.php:186
|
538 |
-
msgid "True"
|
539 |
msgstr ""
|
540 |
|
541 |
-
#: ../
|
542 |
-
#: ../
|
543 |
-
#: ../
|
544 |
-
#: ../
|
545 |
-
|
|
|
|
|
|
|
546 |
msgstr ""
|
547 |
|
548 |
-
#: ../
|
549 |
-
#: ../
|
550 |
-
#: ../
|
551 |
-
#: ../
|
552 |
-
#: ../inc/taxonomies.php:394 ../tests/CPTUI-Admin-UI-Inputs-Test.php:98
|
553 |
-
#: ../tests/CPTUI-Admin-UI-Inputs-Test.php:130
|
554 |
-
#: ../tests/CPTUI-Admin-UI-Inputs-Test.php:163
|
555 |
-
#: ../tests/CPTUI-Admin-UI-Inputs-Test.php:195
|
556 |
msgid "(default: True)"
|
557 |
msgstr ""
|
558 |
|
559 |
-
#: ../
|
560 |
-
#: ../tests/CPTUI-Admin-UI-Inputs-Test.php:131
|
561 |
-
#: ../tests/CPTUI-Admin-UI-Inputs-Test.php:164
|
562 |
-
#: ../tests/CPTUI-Admin-UI-Inputs-Test.php:196
|
563 |
-
msgid "Whether posts of this type should be shown in the admin UI"
|
564 |
-
msgstr ""
|
565 |
-
|
566 |
-
#: ../inc/post-types.php:365 ../inc/taxonomies.php:351
|
567 |
-
msgid "Show UI"
|
568 |
-
msgstr ""
|
569 |
-
|
570 |
-
#: ../inc/post-types.php:367
|
571 |
msgid "Whether to generate a default UI for managing this post type"
|
572 |
msgstr ""
|
573 |
|
574 |
-
#: ../
|
575 |
msgid "Has Archive"
|
576 |
msgstr ""
|
577 |
|
578 |
-
#: ../
|
579 |
-
|
580 |
-
#: ../inc/taxonomies.php:454
|
581 |
-
msgid "(default: False)"
|
582 |
msgstr ""
|
583 |
|
584 |
-
#: ../
|
585 |
-
|
|
|
|
|
586 |
msgstr ""
|
587 |
|
588 |
-
#: ../
|
589 |
msgid "Exclude From Search"
|
590 |
msgstr ""
|
591 |
|
592 |
-
#: ../
|
593 |
msgid "Whether the post type will be searchable"
|
594 |
msgstr ""
|
595 |
|
596 |
-
#: ../
|
597 |
msgid "Capability Type"
|
598 |
msgstr ""
|
599 |
|
600 |
-
#: ../
|
601 |
msgid "The post type to use for checking read, edit, and delete capabilities"
|
602 |
msgstr ""
|
603 |
|
604 |
-
#: ../
|
605 |
-
msgid "Hierarchical"
|
606 |
-
msgstr ""
|
607 |
-
|
608 |
-
#: ../inc/post-types.php:438
|
609 |
msgid "Whether the post type can have parent-child relationships"
|
610 |
msgstr ""
|
611 |
|
612 |
-
#: ../
|
613 |
-
msgid "Rewrite"
|
614 |
-
msgstr ""
|
615 |
-
|
616 |
-
#: ../inc/post-types.php:458
|
617 |
msgid "Triggers the handling of rewrites for this post type"
|
618 |
msgstr ""
|
619 |
|
620 |
-
#: ../
|
621 |
msgid "Custom Rewrite Slug"
|
622 |
msgstr ""
|
623 |
|
624 |
-
#: ../
|
625 |
-
msgid "
|
626 |
msgstr ""
|
627 |
|
628 |
-
#: ../
|
629 |
-
msgid "
|
630 |
msgstr ""
|
631 |
|
632 |
-
#: ../
|
633 |
msgid "With Front"
|
634 |
msgstr ""
|
635 |
|
636 |
-
#: ../
|
637 |
-
#: ../inc/taxonomies.php:421
|
638 |
msgid "Should the permastruct be prepended with the front base."
|
639 |
msgstr ""
|
640 |
|
641 |
-
#: ../
|
642 |
-
msgid "Query Var"
|
643 |
-
msgstr ""
|
644 |
-
|
645 |
-
#: ../inc/post-types.php:514
|
646 |
msgid "Menu Position"
|
647 |
msgstr ""
|
648 |
|
649 |
-
#: ../
|
650 |
msgid ""
|
651 |
"The position in the menu order the post type should appear. show_in_menu "
|
652 |
"must be true."
|
653 |
msgstr ""
|
654 |
|
655 |
-
#: ../
|
656 |
msgid ""
|
657 |
"See <a href=\"http://codex.wordpress.org/Function_Reference/"
|
658 |
"register_post_type#Parameters\">Available options</a> in the \"menu_position"
|
659 |
"\" section. Range of 5-100"
|
660 |
msgstr ""
|
661 |
|
662 |
-
#: ../
|
663 |
-
msgid "URL or Dashicon value for image to be used as menu icon."
|
664 |
-
msgstr ""
|
665 |
-
|
666 |
-
#: ../inc/post-types.php:529
|
667 |
msgid "Show in Menu"
|
668 |
msgstr ""
|
669 |
|
670 |
-
#: ../
|
671 |
-
msgid ""
|
672 |
-
"\"Show UI\" must be \"true\". If an existing top level page such as \"tools."
|
673 |
-
"php\" is indicated for second input, post type will be sub menu of that."
|
674 |
-
msgstr ""
|
675 |
-
|
676 |
-
#: ../inc/post-types.php:547
|
677 |
-
msgid "Show In Menu"
|
678 |
-
msgstr ""
|
679 |
-
|
680 |
-
#: ../inc/post-types.php:549
|
681 |
msgid ""
|
682 |
"Whether to show the post type in the admin menu and where to show that menu. "
|
683 |
"Note that show_ui must be true"
|
684 |
msgstr ""
|
685 |
|
686 |
-
#: ../
|
687 |
-
msgid "
|
|
|
|
|
688 |
msgstr ""
|
689 |
|
690 |
-
#: ../
|
691 |
msgid "Menu Icon"
|
692 |
msgstr ""
|
693 |
|
694 |
-
#: ../
|
695 |
-
msgid "
|
696 |
-
msgstr ""
|
697 |
-
|
698 |
-
#: ../inc/post-types.php:574
|
699 |
-
msgid "URL to image to be used as menu icon or Dashicon class to use instead."
|
700 |
-
msgstr ""
|
701 |
-
|
702 |
-
#: ../inc/post-types.php:577
|
703 |
-
msgid "Supports"
|
704 |
msgstr ""
|
705 |
|
706 |
-
#: ../
|
707 |
msgid "Title"
|
708 |
msgstr ""
|
709 |
|
710 |
-
#: ../
|
711 |
msgid "Adds the title meta box when creating content for this custom post type"
|
712 |
msgstr ""
|
713 |
|
714 |
-
#: ../
|
715 |
msgid "Editor"
|
716 |
msgstr ""
|
717 |
|
718 |
-
#: ../
|
719 |
msgid ""
|
720 |
"Adds the content editor meta box when creating content for this custom post "
|
721 |
"type"
|
722 |
msgstr ""
|
723 |
|
724 |
-
#: ../
|
725 |
msgid "Excerpt"
|
726 |
msgstr ""
|
727 |
|
728 |
-
#: ../
|
729 |
msgid ""
|
730 |
"Adds the excerpt meta box when creating content for this custom post type"
|
731 |
msgstr ""
|
732 |
|
733 |
-
#: ../
|
734 |
msgid "Trackbacks"
|
735 |
msgstr ""
|
736 |
|
737 |
-
#: ../
|
738 |
msgid ""
|
739 |
"Adds the trackbacks meta box when creating content for this custom post type"
|
740 |
msgstr ""
|
741 |
|
742 |
-
#: ../
|
743 |
msgid "Custom Fields"
|
744 |
msgstr ""
|
745 |
|
746 |
-
#: ../
|
747 |
msgid ""
|
748 |
"Adds the custom fields meta box when creating content for this custom post "
|
749 |
"type"
|
750 |
msgstr ""
|
751 |
|
752 |
-
#: ../
|
753 |
msgid "Comments"
|
754 |
msgstr ""
|
755 |
|
756 |
-
#: ../
|
757 |
msgid ""
|
758 |
"Adds the comments meta box when creating content for this custom post type"
|
759 |
msgstr ""
|
760 |
|
761 |
-
#: ../
|
762 |
msgid "Revisions"
|
763 |
msgstr ""
|
764 |
|
765 |
-
#: ../
|
766 |
msgid ""
|
767 |
"Adds the revisions meta box when creating content for this custom post type"
|
768 |
msgstr ""
|
769 |
|
770 |
-
#: ../
|
771 |
msgid "Featured Image"
|
772 |
msgstr ""
|
773 |
|
774 |
-
#: ../
|
775 |
msgid ""
|
776 |
"Adds the featured image meta box when creating content for this custom post "
|
777 |
"type"
|
778 |
msgstr ""
|
779 |
|
780 |
-
#: ../
|
781 |
msgid "Author"
|
782 |
msgstr ""
|
783 |
|
784 |
-
#: ../
|
785 |
msgid ""
|
786 |
"Adds the author meta box when creating content for this custom post type"
|
787 |
msgstr ""
|
788 |
|
789 |
-
#: ../
|
790 |
msgid "Page Attributes"
|
791 |
msgstr ""
|
792 |
|
793 |
-
#: ../
|
794 |
msgid ""
|
795 |
"Adds the page attribute meta box when creating content for this custom post "
|
796 |
"type"
|
797 |
msgstr ""
|
798 |
|
799 |
-
#: ../
|
800 |
msgid "Post Formats"
|
801 |
msgstr ""
|
802 |
|
803 |
-
#: ../
|
804 |
msgid "Adds post format support"
|
805 |
msgstr ""
|
806 |
|
807 |
-
#: ../
|
808 |
-
msgid "\"Use the option below to explicitly set \"supports\" to false."
|
809 |
-
msgstr ""
|
810 |
-
|
811 |
-
#: ../inc/post-types.php:751
|
812 |
-
msgid "None"
|
813 |
-
msgstr ""
|
814 |
-
|
815 |
-
#: ../inc/post-types.php:752
|
816 |
-
msgid "Remove all support features"
|
817 |
-
msgstr ""
|
818 |
-
|
819 |
-
#: ../inc/post-types.php:759
|
820 |
msgid "Built-in Taxonomies"
|
821 |
msgstr ""
|
822 |
|
823 |
-
#: ../
|
824 |
-
#, php-format
|
825 |
-
msgid "Adds %s support"
|
826 |
-
msgstr ""
|
827 |
-
|
828 |
-
#: ../inc/post-types.php:806 ../inc/taxonomies.php:463
|
829 |
-
msgid "Starter Notes"
|
830 |
-
msgstr ""
|
831 |
-
|
832 |
-
#: ../inc/post-types.php:809
|
833 |
-
#, php-format
|
834 |
msgid ""
|
835 |
-
"
|
836 |
-
"
|
837 |
-
"
|
838 |
-
"
|
839 |
msgstr ""
|
840 |
|
841 |
-
#: ../
|
842 |
-
|
843 |
-
msgid ""
|
844 |
-
"If you are unfamiliar with the advanced post type settings, just fill in the "
|
845 |
-
"%sPost Type Name%s and %sLabel%s fields. Remaining settings will use default "
|
846 |
-
"values. Labels, if left blank, will be automatically created based on the "
|
847 |
-
"post type name. Hover over the question mark for more details."
|
848 |
msgstr ""
|
849 |
|
850 |
-
#: ../
|
851 |
-
#, php-format
|
852 |
msgid ""
|
853 |
-
"
|
854 |
-
"
|
855 |
-
"the content will still exist."
|
856 |
-
msgstr ""
|
857 |
-
|
858 |
-
#: ../inc/post-types.php:890
|
859 |
-
msgid "Please provide a post type to delete"
|
860 |
-
msgstr ""
|
861 |
-
|
862 |
-
#: ../inc/post-types.php:948
|
863 |
-
msgid "Please provide a post type name"
|
864 |
msgstr ""
|
865 |
|
866 |
-
#: ../
|
867 |
-
msgid "Please do not use quotes in post type names or rewrite slugs"
|
868 |
-
msgstr ""
|
869 |
-
|
870 |
-
#: ../inc/post-types.php:973
|
871 |
-
#, php-format
|
872 |
-
msgid "Please choose a different post type name. %s is already registered."
|
873 |
-
msgstr ""
|
874 |
-
|
875 |
-
#: ../inc/support.php:44
|
876 |
-
msgid "Custom Post Type UI Support"
|
877 |
-
msgstr ""
|
878 |
-
|
879 |
-
#: ../inc/support.php:46
|
880 |
-
#, php-format
|
881 |
-
msgid ""
|
882 |
-
"Please note that this plugin will NOT handle display of registered post "
|
883 |
-
"types or taxonomies in your current theme. It will simply register them for "
|
884 |
-
"you. If all else fails, visit us on the %s"
|
885 |
-
msgstr ""
|
886 |
-
|
887 |
-
#: ../inc/support.php:47
|
888 |
-
msgid "Support Forums"
|
889 |
-
msgstr ""
|
890 |
-
|
891 |
-
#: ../inc/support.php:53
|
892 |
-
msgid "General"
|
893 |
-
msgstr ""
|
894 |
-
|
895 |
-
#: ../inc/support.php:56
|
896 |
-
msgid ""
|
897 |
-
"I changed my custom post type name and now I can not get to my posts. How do "
|
898 |
-
"I get them back?"
|
899 |
-
msgstr ""
|
900 |
-
|
901 |
-
#: ../inc/support.php:57
|
902 |
-
msgid ""
|
903 |
-
"You can either change the custom post type name back to the original name or "
|
904 |
-
"try the Post Type Switcher plugin"
|
905 |
-
msgstr ""
|
906 |
-
|
907 |
-
#: ../inc/support.php:62
|
908 |
-
msgid ""
|
909 |
-
"I changed my custom post type or taxonomy slug and now I have duplicates "
|
910 |
-
"shown. How do I remove the duplicate?"
|
911 |
-
msgstr ""
|
912 |
-
|
913 |
-
#: ../inc/support.php:63
|
914 |
-
msgid ""
|
915 |
-
"Renaming the slug for a post type or taxonomy creates a new entry in our "
|
916 |
-
"saved option which gets registered as its own post type or taxonomy. Since "
|
917 |
-
"the settings will be mirrored from the previous slug, you will just need to "
|
918 |
-
"delete the previous version's entry."
|
919 |
-
msgstr ""
|
920 |
-
|
921 |
-
#: ../inc/support.php:66
|
922 |
-
msgid ""
|
923 |
-
"I have added post thumbnail and/or post format support to my post type, but "
|
924 |
-
"those do not appear when adding a post type post."
|
925 |
-
msgstr ""
|
926 |
-
|
927 |
-
#: ../inc/support.php:67
|
928 |
-
msgid ""
|
929 |
-
"Make sure your theme has post \"post-thumbnails\" theme support enabled."
|
930 |
-
msgstr ""
|
931 |
-
|
932 |
-
#: ../inc/support.php:72
|
933 |
-
msgid "Front-end Display"
|
934 |
-
msgstr ""
|
935 |
-
|
936 |
-
#: ../inc/support.php:75
|
937 |
-
msgid "What template files should I edit to alter my post type display?"
|
938 |
-
msgstr ""
|
939 |
-
|
940 |
-
#: ../inc/support.php:76
|
941 |
-
#, php-format
|
942 |
msgid ""
|
943 |
-
"
|
944 |
-
"
|
945 |
msgstr ""
|
946 |
|
947 |
-
#: ../
|
948 |
-
msgid "
|
949 |
-
msgstr ""
|
950 |
-
|
951 |
-
#: ../inc/support.php:84
|
952 |
-
#, php-format
|
953 |
-
msgid ""
|
954 |
-
"You will need to utilize the %sWP_Query%s class to handle display in custom "
|
955 |
-
"locations. If you have set the post type to have archives, the archive url "
|
956 |
-
"should be something like \"http://www.mysite.com/post-type-slug\""
|
957 |
-
msgstr ""
|
958 |
-
|
959 |
-
#: ../inc/support.php:90
|
960 |
-
msgid ""
|
961 |
-
"I have added categories and tags to my custom post type, but they do not "
|
962 |
-
"appear in the archives."
|
963 |
msgstr ""
|
964 |
|
965 |
-
#: ../
|
966 |
-
#, php-format
|
967 |
msgid ""
|
968 |
-
"
|
969 |
-
"
|
970 |
-
"that at %s"
|
971 |
-
msgstr ""
|
972 |
-
|
973 |
-
#: ../inc/support.php:100
|
974 |
-
msgid "Advanced"
|
975 |
msgstr ""
|
976 |
|
977 |
-
#: ../
|
978 |
-
msgid "
|
979 |
msgstr ""
|
980 |
|
981 |
-
#: ../
|
982 |
-
|
983 |
-
msgid ""
|
984 |
-
"We recommend checking out %s, the latest iteration of \"Custom Metaboxes and "
|
985 |
-
"Fields for WordPress\". Both are maintained by WebDevStudios."
|
986 |
msgstr ""
|
987 |
|
988 |
-
#: ../
|
989 |
msgid ""
|
990 |
-
"
|
991 |
-
msgstr ""
|
992 |
-
|
993 |
-
#: ../inc/support.php:113
|
994 |
-
#, php-format
|
995 |
-
msgid "Check out the %s function for documentation and usage examples."
|
996 |
-
msgstr ""
|
997 |
-
|
998 |
-
#: ../inc/support.php:119
|
999 |
-
msgid "Post relationships?"
|
1000 |
msgstr ""
|
1001 |
|
1002 |
-
#: ../
|
1003 |
-
|
1004 |
-
msgid ""
|
1005 |
-
"%s has an excellent %spost%s introducing users to the %sPosts 2 Posts%s "
|
1006 |
-
"plugin that should be a good start."
|
1007 |
msgstr ""
|
1008 |
|
1009 |
-
#: ../
|
1010 |
-
msgid ""
|
1011 |
-
"How do I filter the \"enter title here\" text in the post editor screen."
|
1012 |
msgstr ""
|
1013 |
|
1014 |
-
#: ../
|
1015 |
msgid ""
|
1016 |
-
"
|
1017 |
-
"
|
1018 |
msgstr ""
|
1019 |
|
1020 |
-
#: ../
|
1021 |
msgid ""
|
1022 |
-
"
|
1023 |
-
"
|
1024 |
msgstr ""
|
1025 |
|
1026 |
-
#: ../
|
1027 |
-
msgid "
|
1028 |
-
msgstr ""
|
1029 |
-
|
1030 |
-
#: ../inc/taxonomies.php:103
|
1031 |
-
msgid "(e.g. actors)"
|
1032 |
msgstr ""
|
1033 |
|
1034 |
-
#: ../
|
1035 |
msgid ""
|
1036 |
-
"
|
1037 |
-
"
|
1038 |
-
|
1039 |
-
|
1040 |
-
#: ../inc/taxonomies.php:112 ../inc/taxonomies.php:186
|
1041 |
-
msgid "(e.g. Actors)"
|
1042 |
-
msgstr ""
|
1043 |
-
|
1044 |
-
#: ../inc/taxonomies.php:114
|
1045 |
-
msgid "Taxonomy label. Used in the admin menu for displaying custom taxonomy."
|
1046 |
msgstr ""
|
1047 |
|
1048 |
-
#: ../
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
#: ../
|
|
|
1053 |
msgid ""
|
1054 |
-
"
|
1055 |
msgstr ""
|
1056 |
|
1057 |
-
#: ../
|
1058 |
-
msgid "
|
1059 |
-
msgstr ""
|
1060 |
-
|
1061 |
-
#: ../inc/taxonomies.php:165
|
1062 |
-
msgid "Edit Taxonomy"
|
1063 |
msgstr ""
|
1064 |
|
1065 |
-
#: ../
|
1066 |
-
msgid "
|
1067 |
msgstr ""
|
1068 |
|
1069 |
-
#: ../
|
1070 |
-
msgid "
|
1071 |
msgstr ""
|
1072 |
|
1073 |
-
#: ../
|
1074 |
-
|
1075 |
-
#: ../inc/taxonomies.php:224 ../inc/taxonomies.php:233
|
1076 |
-
#: ../inc/taxonomies.php:242 ../inc/taxonomies.php:251
|
1077 |
-
#: ../inc/taxonomies.php:260 ../inc/taxonomies.php:269
|
1078 |
-
#: ../inc/taxonomies.php:278 ../inc/taxonomies.php:287
|
1079 |
-
#: ../inc/taxonomies.php:296 ../inc/taxonomies.php:305
|
1080 |
-
#: ../inc/taxonomies.php:314
|
1081 |
-
msgid ""
|
1082 |
-
"Custom taxonomy label. Used in the admin menu for displaying taxonomies."
|
1083 |
msgstr ""
|
1084 |
|
1085 |
-
#: ../
|
1086 |
msgid "(e.g. All Actors)"
|
1087 |
msgstr ""
|
1088 |
|
1089 |
-
#: ../
|
1090 |
-
msgid "
|
1091 |
-
msgstr ""
|
1092 |
-
|
1093 |
-
#: ../inc/taxonomies.php:213
|
1094 |
-
msgid "(e.g. View Actor)"
|
1095 |
-
msgstr ""
|
1096 |
-
|
1097 |
-
#: ../inc/taxonomies.php:222
|
1098 |
-
msgid "(e.g. Update Actor Name)"
|
1099 |
-
msgstr ""
|
1100 |
-
|
1101 |
-
#: ../inc/taxonomies.php:223
|
1102 |
-
msgid "Update Item Name"
|
1103 |
-
msgstr ""
|
1104 |
-
|
1105 |
-
#: ../inc/taxonomies.php:231
|
1106 |
-
msgid "(e.g. Add New Actor)"
|
1107 |
-
msgstr ""
|
1108 |
-
|
1109 |
-
#: ../inc/taxonomies.php:240
|
1110 |
-
msgid "(e.g. New Actor Name)"
|
1111 |
-
msgstr ""
|
1112 |
-
|
1113 |
-
#: ../inc/taxonomies.php:241
|
1114 |
-
msgid "New Item Name"
|
1115 |
msgstr ""
|
1116 |
|
1117 |
-
#: ../
|
1118 |
msgid "(e.g. Parent Actor)"
|
1119 |
msgstr ""
|
1120 |
|
1121 |
-
#: ../
|
1122 |
-
msgid "Parent Item"
|
1123 |
msgstr ""
|
1124 |
|
1125 |
-
#: ../
|
1126 |
msgid "(e.g. Parent Actor:)"
|
1127 |
msgstr ""
|
1128 |
|
1129 |
-
#: ../
|
1130 |
-
msgid "
|
1131 |
msgstr ""
|
1132 |
|
1133 |
-
#: ../
|
1134 |
-
msgid "
|
1135 |
msgstr ""
|
1136 |
|
1137 |
-
#: ../
|
1138 |
-
msgid "
|
1139 |
msgstr ""
|
1140 |
|
1141 |
-
#: ../
|
1142 |
-
msgid "(e.g.
|
1143 |
msgstr ""
|
1144 |
|
1145 |
-
#: ../
|
1146 |
-
msgid "
|
1147 |
msgstr ""
|
1148 |
|
1149 |
-
#: ../
|
1150 |
-
msgid "(e.g.
|
1151 |
msgstr ""
|
1152 |
|
1153 |
-
#: ../
|
1154 |
msgid "Separate Items with Commas"
|
1155 |
msgstr ""
|
1156 |
|
1157 |
-
#: ../
|
1158 |
-
msgid "(e.g.
|
1159 |
msgstr ""
|
1160 |
|
1161 |
-
#: ../
|
1162 |
msgid "Add or Remove Items"
|
1163 |
msgstr ""
|
1164 |
|
1165 |
-
#: ../
|
1166 |
-
msgid "(e.g.
|
1167 |
msgstr ""
|
1168 |
|
1169 |
-
#: ../
|
1170 |
msgid "Choose From Most Used"
|
1171 |
msgstr ""
|
1172 |
|
1173 |
-
#: ../
|
1174 |
-
msgid "(e.g.
|
1175 |
-
msgstr ""
|
1176 |
-
|
1177 |
-
#: ../inc/taxonomies.php:313
|
1178 |
-
msgid "Not found"
|
1179 |
msgstr ""
|
1180 |
|
1181 |
-
#: ../
|
1182 |
msgid "Whether the taxonomy can have parent-child relationships"
|
1183 |
msgstr ""
|
1184 |
|
1185 |
-
#: ../
|
1186 |
msgid "Whether to generate a default UI for managing this custom taxonomy"
|
1187 |
msgstr ""
|
1188 |
|
1189 |
-
#: ../
|
1190 |
-
msgid "(default: none). Query Var needs to be true to use."
|
1191 |
-
msgstr ""
|
1192 |
-
|
1193 |
-
#: ../inc/taxonomies.php:378
|
1194 |
-
msgid "Custom Query Var String"
|
1195 |
-
msgstr ""
|
1196 |
-
|
1197 |
-
#: ../inc/taxonomies.php:379
|
1198 |
-
msgid "Custom Query Var Slug"
|
1199 |
-
msgstr ""
|
1200 |
-
|
1201 |
-
#: ../inc/taxonomies.php:395
|
1202 |
msgid "Triggers the handling of rewrites for this taxonomy"
|
1203 |
msgstr ""
|
1204 |
|
1205 |
-
#: ../
|
1206 |
-
msgid "(default: taxonomy name)"
|
1207 |
-
msgstr ""
|
1208 |
-
|
1209 |
-
#: ../inc/taxonomies.php:405
|
1210 |
msgid "Custom Taxonomy Rewrite Slug"
|
1211 |
msgstr ""
|
1212 |
|
1213 |
-
#: ../
|
1214 |
-
msgid "
|
1215 |
-
msgstr ""
|
1216 |
-
|
1217 |
-
#: ../inc/taxonomies.php:420
|
1218 |
-
msgid "(default: true)"
|
1219 |
-
msgstr ""
|
1220 |
-
|
1221 |
-
#: ../inc/taxonomies.php:436
|
1222 |
-
msgid "Rewrite Hierarchical"
|
1223 |
-
msgstr ""
|
1224 |
-
|
1225 |
-
#: ../inc/taxonomies.php:437
|
1226 |
-
msgid "(default: false)"
|
1227 |
-
msgstr ""
|
1228 |
-
|
1229 |
-
#: ../inc/taxonomies.php:438
|
1230 |
-
msgid "Should the permastruct allow hierarchical urls."
|
1231 |
msgstr ""
|
1232 |
|
1233 |
-
#: ../
|
1234 |
msgid "Show Admin Column"
|
1235 |
msgstr ""
|
1236 |
|
1237 |
-
#: ../
|
1238 |
msgid ""
|
1239 |
"Whether to allow automatic creation of taxonomy columns on associated post-"
|
1240 |
"types."
|
1241 |
msgstr ""
|
1242 |
|
1243 |
-
#: ../
|
1244 |
-
|
1245 |
-
msgid ""
|
1246 |
-
"Taxonomy names should have %smax 32 characters%s, and only contain "
|
1247 |
-
"alphanumeric, lowercase, characters, underscores in place of spaces, and "
|
1248 |
-
"letters that do not have accents."
|
1249 |
-
msgstr ""
|
1250 |
-
|
1251 |
-
#: ../inc/taxonomies.php:467
|
1252 |
-
#, php-format
|
1253 |
-
msgid ""
|
1254 |
-
"If you are unfamiliar with the advanced taxonomy settings, just fill in the "
|
1255 |
-
"%sTaxonomy Name%s and choose an %sAttach to Post Type%s option. Remaining "
|
1256 |
-
"settings will use default values. Labels, if left blank, will be "
|
1257 |
-
"automatically created based on the taxonomy name. Hover over the question "
|
1258 |
-
"marks for more details."
|
1259 |
-
msgstr ""
|
1260 |
-
|
1261 |
-
#: ../inc/taxonomies.php:468
|
1262 |
-
#, php-format
|
1263 |
-
msgid ""
|
1264 |
-
"Deleting custom taxonomies do %sNOT%s delete terms added to those "
|
1265 |
-
"taxonomies. You can recreate your taxonomies and the terms will return. "
|
1266 |
-
"Changing the name, after adding terms to the taxonomy, will not update the "
|
1267 |
-
"terms in the database."
|
1268 |
-
msgstr ""
|
1269 |
-
|
1270 |
-
#: ../inc/taxonomies.php:556
|
1271 |
-
msgid "Please provide a taxonomy to delete"
|
1272 |
-
msgstr ""
|
1273 |
-
|
1274 |
-
#: ../inc/taxonomies.php:605
|
1275 |
-
msgid "Please provide a taxonomy name"
|
1276 |
-
msgstr ""
|
1277 |
-
|
1278 |
-
#: ../inc/taxonomies.php:621
|
1279 |
-
msgid "Please do not use quotes in taxonomy names or rewrite slugs"
|
1280 |
msgstr ""
|
1281 |
|
1282 |
-
#: ../
|
1283 |
-
|
1284 |
-
msgid "Please choose a different taxonomy name. %s is already used."
|
1285 |
msgstr ""
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: Custom Post Type UI 0.8\n"
|
4 |
+
"POT-Creation-Date: 2013-09-08 19:13-0600\n"
|
5 |
+
"PO-Revision-Date: 2013-09-08 19:13-0600\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
|
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.5.7\n"
|
12 |
"X-Poedit-KeywordsList: __;_e;esc_attr__;esc_attr_e;esc_attr_x;_n;_x;_ex;_nx;"
|
13 |
"esc_html__;esc_html_e;esc_html_x\n"
|
14 |
"X-Poedit-Basepath: .\n"
|
|
|
15 |
"X-Poedit-SearchPath-0: ..\n"
|
16 |
|
17 |
+
#: ../custom-post-type-ui.php:52
|
18 |
msgid "Custom Post Types"
|
19 |
msgstr ""
|
20 |
|
21 |
+
#: ../custom-post-type-ui.php:52
|
22 |
msgid "CPT UI"
|
23 |
msgstr ""
|
24 |
|
25 |
+
#: ../custom-post-type-ui.php:55 ../custom-post-type-ui.php:1214
|
26 |
+
msgid "Add New"
|
27 |
+
msgstr ""
|
28 |
+
|
29 |
+
#: ../custom-post-type-ui.php:56
|
30 |
+
msgid "Manage Post Types"
|
31 |
+
msgstr ""
|
32 |
+
|
33 |
+
#: ../custom-post-type-ui.php:57
|
34 |
+
msgid "Manage Taxonomies"
|
35 |
+
msgstr ""
|
36 |
+
|
37 |
+
#: ../custom-post-type-ui.php:505 ../custom-post-type-ui.php:1673
|
38 |
msgid "Custom Post Type UI"
|
39 |
msgstr ""
|
40 |
|
41 |
+
#: ../custom-post-type-ui.php:505 ../custom-post-type-ui.php:1673
|
42 |
+
msgid "version"
|
43 |
+
msgstr ""
|
44 |
+
|
45 |
+
#: ../custom-post-type-ui.php:507
|
46 |
+
msgid "Frequently Asked Questions"
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: ../custom-post-type-ui.php:508
|
|
|
50 |
msgid ""
|
51 |
+
"Please note that this plugin will NOT handle display of registered post "
|
52 |
+
"types or taxonomies in your current theme. It will simply register them for "
|
53 |
+
"you."
|
|
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: ../custom-post-type-ui.php:509
|
57 |
+
msgid ""
|
58 |
+
"Q: <strong>How can I display content from a custom post type on my website?</"
|
59 |
+
"strong>"
|
60 |
msgstr ""
|
61 |
|
62 |
+
#: ../custom-post-type-ui.php:511
|
63 |
+
msgid "A: Justin Tadlock has written some great posts on the topic:"
|
64 |
msgstr ""
|
65 |
|
66 |
+
#: ../custom-post-type-ui.php:512
|
67 |
+
msgid "Showing Custom Post Types on your Home Page"
|
68 |
msgstr ""
|
69 |
|
70 |
+
#: ../custom-post-type-ui.php:513
|
71 |
+
msgid "Custom Post Types in WordPress"
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: ../custom-post-type-ui.php:515
|
75 |
+
msgid ""
|
76 |
+
"Q: <strong>How can I add custom meta boxes to my custom post types?</strong>"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: ../custom-post-type-ui.php:516
|
80 |
+
msgid ""
|
81 |
+
"A: The More Fields plugin does a great job at creating custom meta boxes and "
|
82 |
+
"fully supports custom post types: "
|
83 |
msgstr ""
|
84 |
|
85 |
+
#: ../custom-post-type-ui.php:517
|
86 |
msgid ""
|
87 |
+
"Q: <strong>I changed my custom post type name and now I can't get to my "
|
88 |
+
"posts</strong>"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: ../custom-post-type-ui.php:518
|
92 |
+
msgid ""
|
93 |
+
"A: You can either change the custom post type name back to the original name "
|
94 |
+
"or try the Post Type Switcher plugin: "
|
95 |
msgstr ""
|
96 |
|
97 |
+
#: ../custom-post-type-ui.php:523
|
98 |
+
msgid "Help Support This Plugin!"
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: ../custom-post-type-ui.php:526
|
102 |
msgid "PayPal Donation"
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: ../custom-post-type-ui.php:527
|
106 |
+
msgid "Professional WordPress<br />Second Edition"
|
107 |
msgstr ""
|
108 |
|
109 |
+
#: ../custom-post-type-ui.php:528
|
110 |
+
msgid "Professional WordPress<br />Plugin Development"
|
111 |
msgstr ""
|
112 |
|
113 |
+
#: ../custom-post-type-ui.php:532
|
114 |
+
msgid "Please donate to the development<br />of Custom Post Type UI:"
|
|
|
115 |
msgstr ""
|
116 |
|
117 |
+
#: ../custom-post-type-ui.php:541
|
118 |
+
msgid ""
|
119 |
+
"The leading book on WordPress design and development!<br /><strong>Brand new "
|
120 |
+
"second edition!"
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: ../custom-post-type-ui.php:542
|
124 |
+
msgid "Highest rated WordPress development book on Amazon!"
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: ../custom-post-type-ui.php:545
|
128 |
+
msgid "WebDevStudios.com Recent News"
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: ../custom-post-type-ui.php:550
|
132 |
+
msgid "WebDevStudios.com News"
|
133 |
msgstr ""
|
134 |
|
135 |
+
#: ../custom-post-type-ui.php:576
|
136 |
+
msgid "Custom post type deleted successfully"
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: ../custom-post-type-ui.php:582
|
140 |
+
msgid "Manage Custom Post Types"
|
141 |
msgstr ""
|
142 |
|
143 |
+
#: ../custom-post-type-ui.php:583
|
144 |
+
msgid ""
|
145 |
+
"Deleting custom post types will <strong>NOT</strong> delete any content into "
|
146 |
+
"the database or added to those post types. You can easily recreate your "
|
147 |
+
"post types and the content will still exist."
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: ../custom-post-type-ui.php:592 ../custom-post-type-ui.php:607
|
151 |
+
#: ../custom-post-type-ui.php:882 ../custom-post-type-ui.php:895
|
152 |
+
msgid "Action"
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: ../custom-post-type-ui.php:593 ../custom-post-type-ui.php:608
|
156 |
+
#: ../custom-post-type-ui.php:798 ../custom-post-type-ui.php:810
|
157 |
+
#: ../custom-post-type-ui.php:883 ../custom-post-type-ui.php:896
|
158 |
+
msgid "Name"
|
159 |
msgstr ""
|
160 |
|
161 |
+
#: ../custom-post-type-ui.php:594 ../custom-post-type-ui.php:609
|
162 |
+
#: ../custom-post-type-ui.php:799 ../custom-post-type-ui.php:811
|
163 |
+
#: ../custom-post-type-ui.php:884 ../custom-post-type-ui.php:897
|
164 |
+
#: ../custom-post-type-ui.php:1177 ../custom-post-type-ui.php:1469
|
165 |
+
msgid "Label"
|
166 |
msgstr ""
|
167 |
|
168 |
+
#: ../custom-post-type-ui.php:595 ../custom-post-type-ui.php:610
|
169 |
+
#: ../custom-post-type-ui.php:800 ../custom-post-type-ui.php:812
|
170 |
+
#: ../custom-post-type-ui.php:1285
|
171 |
+
msgid "Public"
|
172 |
msgstr ""
|
173 |
|
174 |
+
#: ../custom-post-type-ui.php:596 ../custom-post-type-ui.php:611
|
175 |
+
#: ../custom-post-type-ui.php:801 ../custom-post-type-ui.php:813
|
176 |
+
#: ../custom-post-type-ui.php:888 ../custom-post-type-ui.php:901
|
177 |
+
#: ../custom-post-type-ui.php:1295 ../custom-post-type-ui.php:1603
|
178 |
+
msgid "Show UI"
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: ../custom-post-type-ui.php:597 ../custom-post-type-ui.php:612
|
182 |
+
#: ../custom-post-type-ui.php:802 ../custom-post-type-ui.php:814
|
183 |
+
#: ../custom-post-type-ui.php:887 ../custom-post-type-ui.php:900
|
184 |
+
#: ../custom-post-type-ui.php:1330 ../custom-post-type-ui.php:1593
|
185 |
+
msgid "Hierarchical"
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: ../custom-post-type-ui.php:598 ../custom-post-type-ui.php:613
|
189 |
+
#: ../custom-post-type-ui.php:803 ../custom-post-type-ui.php:815
|
190 |
+
#: ../custom-post-type-ui.php:889 ../custom-post-type-ui.php:902
|
191 |
+
#: ../custom-post-type-ui.php:1340 ../custom-post-type-ui.php:1623
|
192 |
+
msgid "Rewrite"
|
193 |
msgstr ""
|
194 |
|
195 |
+
#: ../custom-post-type-ui.php:599 ../custom-post-type-ui.php:614
|
196 |
+
#: ../custom-post-type-ui.php:804 ../custom-post-type-ui.php:816
|
197 |
+
#: ../custom-post-type-ui.php:890 ../custom-post-type-ui.php:903
|
198 |
+
msgid "Rewrite Slug"
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: ../custom-post-type-ui.php:600 ../custom-post-type-ui.php:615
|
202 |
+
msgid "Total Published"
|
|
|
203 |
msgstr ""
|
204 |
|
205 |
+
#: ../custom-post-type-ui.php:601 ../custom-post-type-ui.php:616
|
206 |
+
msgid "Total Drafts"
|
|
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: ../custom-post-type-ui.php:602 ../custom-post-type-ui.php:617
|
210 |
+
#: ../custom-post-type-ui.php:1401
|
211 |
+
msgid "Supports"
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: ../custom-post-type-ui.php:636 ../custom-post-type-ui.php:919
|
215 |
+
msgid "Delete"
|
|
|
216 |
msgstr ""
|
217 |
|
218 |
+
#: ../custom-post-type-ui.php:636 ../custom-post-type-ui.php:919
|
219 |
+
#: ../custom-post-type-ui.php:1226
|
220 |
+
msgid "Edit"
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: ../custom-post-type-ui.php:636 ../custom-post-type-ui.php:919
|
224 |
+
msgid "Get Code"
|
|
|
225 |
msgstr ""
|
226 |
|
227 |
+
#: ../custom-post-type-ui.php:766
|
228 |
msgid ""
|
229 |
+
"Place the below code in your themes functions.php file to manually create "
|
230 |
+
"this custom post type."
|
|
|
|
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: ../custom-post-type-ui.php:767
|
234 |
+
msgid ""
|
235 |
+
"This is a <strong>BETA</strong> feature. Please <a href=\"https://github.com/"
|
236 |
+
"WebDevStudios/custom-post-type-ui\">report bugs</a>."
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: ../custom-post-type-ui.php:788
|
240 |
+
msgid "Additional Custom Post Types"
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: ../custom-post-type-ui.php:789
|
244 |
+
msgid ""
|
245 |
+
"The custom post types below are registered in WordPress but were not created "
|
246 |
+
"by the Custom Post Type UI Plugin."
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: ../custom-post-type-ui.php:805 ../custom-post-type-ui.php:817
|
250 |
+
#: ../custom-post-type-ui.php:1365 ../custom-post-type-ui.php:1613
|
251 |
+
msgid "Query Var"
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: ../custom-post-type-ui.php:842
|
255 |
+
msgid "No additional post types found"
|
256 |
msgstr ""
|
257 |
|
258 |
+
#: ../custom-post-type-ui.php:866
|
259 |
+
msgid "Custom taxonomy deleted successfully"
|
260 |
msgstr ""
|
261 |
|
262 |
+
#: ../custom-post-type-ui.php:872
|
263 |
+
msgid "Manage Custom Taxonomies"
|
|
|
|
|
264 |
msgstr ""
|
265 |
|
266 |
+
#: ../custom-post-type-ui.php:873
|
267 |
+
msgid ""
|
268 |
+
"Deleting custom taxonomies does <strong>NOT</strong> delete any content "
|
269 |
+
"added to those taxonomies. You can easily recreate your taxonomies and the "
|
270 |
+
"content will still exist."
|
271 |
msgstr ""
|
272 |
|
273 |
+
#: ../custom-post-type-ui.php:885 ../custom-post-type-ui.php:898
|
274 |
+
#: ../custom-post-type-ui.php:1182 ../custom-post-type-ui.php:1474
|
275 |
+
msgid "Singular Label"
|
276 |
msgstr ""
|
277 |
|
278 |
+
#: ../custom-post-type-ui.php:886 ../custom-post-type-ui.php:899
|
279 |
+
msgid "Attached Post Types"
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: ../custom-post-type-ui.php:1000
|
283 |
msgid ""
|
284 |
+
"Place the below code in your themes functions.php file to manually create "
|
285 |
+
"this custom taxonomy"
|
286 |
msgstr ""
|
287 |
|
288 |
+
#: ../custom-post-type-ui.php:1001
|
289 |
msgid ""
|
290 |
+
"This is a <strong>BETA</strong> feature. Please <a href=\"http://"
|
291 |
+
"webdevstudios.com/support/forum/custom-post-type-ui/\">report bugs</a>."
|
|
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: ../custom-post-type-ui.php:1057
|
295 |
+
msgid "Save Custom Post Type"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: ../custom-post-type-ui.php:1059
|
299 |
+
msgid "Create Custom Post Type"
|
|
|
|
|
300 |
msgstr ""
|
301 |
|
302 |
+
#: ../custom-post-type-ui.php:1085
|
303 |
+
msgid "Save Custom Taxonomy"
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: ../custom-post-type-ui.php:1087
|
307 |
+
msgid "Create Custom Taxonomy"
|
308 |
msgstr ""
|
309 |
|
310 |
+
#: ../custom-post-type-ui.php:1104
|
311 |
msgid ""
|
312 |
+
"Custom post type created successfully. You may need to refresh to view the "
|
313 |
+
"new post type in the admin menu."
|
|
|
314 |
msgstr ""
|
315 |
|
316 |
+
#: ../custom-post-type-ui.php:1105
|
317 |
+
msgid "Manage custom post types"
|
318 |
msgstr ""
|
319 |
|
320 |
+
#: ../custom-post-type-ui.php:1107
|
321 |
+
msgid ""
|
322 |
+
"Custom taxonomy created successfully. You may need to refresh to view the "
|
323 |
+
"new taxonomy in the admin menu."
|
324 |
msgstr ""
|
325 |
|
326 |
+
#: ../custom-post-type-ui.php:1108
|
327 |
+
msgid "Manage custom taxonomies"
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: ../custom-post-type-ui.php:1116
|
331 |
+
msgid "Post type name is a required field."
|
332 |
msgstr ""
|
333 |
|
334 |
+
#: ../custom-post-type-ui.php:1119
|
335 |
+
msgid "Taxonomy name is a required field."
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: ../custom-post-type-ui.php:1122
|
339 |
+
msgid "You must assign your custom taxonomy to at least one post type."
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: ../custom-post-type-ui.php:1125
|
343 |
+
msgid "Please doe not use quotes in your post type slug or rewrite slug."
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: ../custom-post-type-ui.php:1128
|
347 |
+
msgid "Please doe not use quotes in your taxonomy slug or rewrite slug."
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: ../custom-post-type-ui.php:1139
|
351 |
+
msgid "Edit Custom Post Type or Taxonomy"
|
|
|
|
|
352 |
msgstr ""
|
353 |
|
354 |
+
#: ../custom-post-type-ui.php:1141 ../custom-post-type-ui.php:1148
|
355 |
+
msgid "Reset"
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: ../custom-post-type-ui.php:1146
|
359 |
+
msgid "Create New Custom Post Type or Taxonomy"
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: ../custom-post-type-ui.php:1158
|
363 |
+
msgid ""
|
364 |
+
"If you are unfamiliar with the options below only fill out the <strong>Post "
|
365 |
+
"Type Name</strong> and <strong>Label</strong> fields and check which meta "
|
366 |
+
"boxes to support. The other settings are set to the most common defaults "
|
367 |
+
"for custom post types. Hover over the question mark for more details."
|
368 |
msgstr ""
|
369 |
|
370 |
+
#: ../custom-post-type-ui.php:1169
|
371 |
+
msgid "Post Type Name"
|
|
|
|
|
372 |
msgstr ""
|
373 |
|
374 |
+
#: ../custom-post-type-ui.php:1169
|
375 |
+
msgid ""
|
376 |
+
"The post type name. Used to retrieve custom post type content. Should be "
|
377 |
+
"short and sweet"
|
378 |
msgstr ""
|
379 |
|
380 |
+
#: ../custom-post-type-ui.php:1170
|
381 |
+
msgid "(e.g. movie)"
|
382 |
msgstr ""
|
383 |
|
384 |
+
#: ../custom-post-type-ui.php:1172
|
385 |
+
msgid ""
|
386 |
+
"Max 20 characters, can not contain capital letters or spaces. Reserved post "
|
387 |
+
"types: post, page, attachment, revision, nav_menu_item."
|
|
|
|
|
|
|
|
|
388 |
msgstr ""
|
389 |
|
390 |
+
#: ../custom-post-type-ui.php:1177 ../custom-post-type-ui.php:1214
|
391 |
+
#: ../custom-post-type-ui.php:1220 ../custom-post-type-ui.php:1226
|
392 |
+
#: ../custom-post-type-ui.php:1232 ../custom-post-type-ui.php:1238
|
393 |
+
#: ../custom-post-type-ui.php:1244 ../custom-post-type-ui.php:1250
|
394 |
+
#: ../custom-post-type-ui.php:1256 ../custom-post-type-ui.php:1262
|
395 |
+
#: ../custom-post-type-ui.php:1268 ../custom-post-type-ui.php:1274
|
396 |
+
msgid "Post type label. Used in the admin menu for displaying post types."
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: ../custom-post-type-ui.php:1178
|
400 |
+
msgid "(e.g. Movies)"
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: ../custom-post-type-ui.php:1182
|
404 |
msgid ""
|
405 |
+
"Custom Post Type Singular label. Used in WordPress when a singular label is "
|
406 |
"needed."
|
407 |
msgstr ""
|
408 |
|
409 |
+
#: ../custom-post-type-ui.php:1183
|
410 |
+
msgid "(e.g. Movie)"
|
411 |
+
msgstr ""
|
412 |
+
|
413 |
+
#: ../custom-post-type-ui.php:1188
|
414 |
msgid "Description"
|
415 |
msgstr ""
|
416 |
|
417 |
+
#: ../custom-post-type-ui.php:1188
|
418 |
msgid ""
|
419 |
+
"Custom Post Type Description. Describe what your custom post type is used "
|
420 |
"for."
|
421 |
msgstr ""
|
422 |
|
423 |
+
#: ../custom-post-type-ui.php:1195 ../custom-post-type-ui.php:1505
|
424 |
+
msgid "Advanced Label Options"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
425 |
msgstr ""
|
426 |
|
427 |
+
#: ../custom-post-type-ui.php:1196 ../custom-post-type-ui.php:1506
|
428 |
+
msgid "Advanced Options"
|
|
|
|
|
429 |
msgstr ""
|
430 |
|
431 |
+
#: ../custom-post-type-ui.php:1204
|
432 |
+
msgid ""
|
433 |
+
"Below are the advanced label options for custom post types. If you are "
|
434 |
+
"unfamiliar with these labels, leave them blank and the plugin will "
|
435 |
+
"automatically create labels based off of your custom post type name"
|
436 |
msgstr ""
|
437 |
|
438 |
+
#: ../custom-post-type-ui.php:1208
|
439 |
msgid "Menu Name"
|
440 |
msgstr ""
|
441 |
|
442 |
+
#: ../custom-post-type-ui.php:1208
|
443 |
msgid "Custom menu name for your custom post type."
|
444 |
msgstr ""
|
445 |
|
446 |
+
#: ../custom-post-type-ui.php:1210
|
447 |
msgid "(e.g. My Movies)"
|
448 |
msgstr ""
|
449 |
|
450 |
+
#: ../custom-post-type-ui.php:1216
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
451 |
msgid "(e.g. Add New)"
|
452 |
msgstr ""
|
453 |
|
454 |
+
#: ../custom-post-type-ui.php:1220 ../custom-post-type-ui.php:1559
|
455 |
msgid "Add New Item"
|
456 |
msgstr ""
|
457 |
|
458 |
+
#: ../custom-post-type-ui.php:1222
|
459 |
msgid "(e.g. Add New Movie)"
|
460 |
msgstr ""
|
461 |
|
462 |
+
#: ../custom-post-type-ui.php:1228
|
|
|
|
|
|
|
|
|
463 |
msgid "(e.g. Edit)"
|
464 |
msgstr ""
|
465 |
|
466 |
+
#: ../custom-post-type-ui.php:1232 ../custom-post-type-ui.php:1547
|
467 |
msgid "Edit Item"
|
468 |
msgstr ""
|
469 |
|
470 |
+
#: ../custom-post-type-ui.php:1234
|
471 |
msgid "(e.g. Edit Movie)"
|
472 |
msgstr ""
|
473 |
|
474 |
+
#: ../custom-post-type-ui.php:1238
|
475 |
msgid "New Item"
|
476 |
msgstr ""
|
477 |
|
478 |
+
#: ../custom-post-type-ui.php:1240
|
479 |
msgid "(e.g. New Movie)"
|
480 |
msgstr ""
|
481 |
|
482 |
+
#: ../custom-post-type-ui.php:1244
|
483 |
msgid "View"
|
484 |
msgstr ""
|
485 |
|
486 |
+
#: ../custom-post-type-ui.php:1246 ../custom-post-type-ui.php:1252
|
487 |
+
msgid "(e.g. View Movie)"
|
488 |
msgstr ""
|
489 |
|
490 |
+
#: ../custom-post-type-ui.php:1250
|
491 |
msgid "View Item"
|
492 |
msgstr ""
|
493 |
|
494 |
+
#: ../custom-post-type-ui.php:1256 ../custom-post-type-ui.php:1517
|
495 |
+
msgid "Search Items"
|
|
|
|
|
|
|
|
|
496 |
msgstr ""
|
497 |
|
498 |
+
#: ../custom-post-type-ui.php:1258
|
499 |
+
msgid "(e.g. Search Movies)"
|
500 |
msgstr ""
|
501 |
|
502 |
+
#: ../custom-post-type-ui.php:1262
|
503 |
msgid "Not Found"
|
504 |
msgstr ""
|
505 |
|
506 |
+
#: ../custom-post-type-ui.php:1264
|
507 |
+
msgid "(e.g. No Movies Found)"
|
508 |
msgstr ""
|
509 |
|
510 |
+
#: ../custom-post-type-ui.php:1268
|
511 |
msgid "Not Found in Trash"
|
512 |
msgstr ""
|
513 |
|
514 |
+
#: ../custom-post-type-ui.php:1270
|
515 |
msgid "(e.g. No Movies found in Trash)"
|
516 |
msgstr ""
|
517 |
|
518 |
+
#: ../custom-post-type-ui.php:1274
|
519 |
msgid "Parent"
|
520 |
msgstr ""
|
521 |
|
522 |
+
#: ../custom-post-type-ui.php:1276
|
523 |
msgid "(e.g. Parent Movie)"
|
524 |
msgstr ""
|
525 |
|
526 |
+
#: ../custom-post-type-ui.php:1285
|
527 |
+
msgid "Whether posts of this type should be shown in the admin UI"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
528 |
msgstr ""
|
529 |
|
530 |
+
#: ../custom-post-type-ui.php:1288 ../custom-post-type-ui.php:1298
|
531 |
+
#: ../custom-post-type-ui.php:1308 ../custom-post-type-ui.php:1318
|
532 |
+
#: ../custom-post-type-ui.php:1333 ../custom-post-type-ui.php:1343
|
533 |
+
#: ../custom-post-type-ui.php:1358 ../custom-post-type-ui.php:1368
|
534 |
+
#: ../custom-post-type-ui.php:1387 ../custom-post-type-ui.php:1606
|
535 |
+
#: ../custom-post-type-ui.php:1616 ../custom-post-type-ui.php:1626
|
536 |
+
#: ../custom-post-type-ui.php:1643 ../custom-post-type-ui.php:1646
|
537 |
+
msgid "False"
|
|
|
|
|
|
|
|
|
|
|
538 |
msgstr ""
|
539 |
|
540 |
+
#: ../custom-post-type-ui.php:1289 ../custom-post-type-ui.php:1299
|
541 |
+
#: ../custom-post-type-ui.php:1309 ../custom-post-type-ui.php:1319
|
542 |
+
#: ../custom-post-type-ui.php:1334 ../custom-post-type-ui.php:1344
|
543 |
+
#: ../custom-post-type-ui.php:1359 ../custom-post-type-ui.php:1369
|
544 |
+
#: ../custom-post-type-ui.php:1388 ../custom-post-type-ui.php:1607
|
545 |
+
#: ../custom-post-type-ui.php:1617 ../custom-post-type-ui.php:1627
|
546 |
+
#: ../custom-post-type-ui.php:1644 ../custom-post-type-ui.php:1647
|
547 |
+
msgid "True"
|
548 |
msgstr ""
|
549 |
|
550 |
+
#: ../custom-post-type-ui.php:1290 ../custom-post-type-ui.php:1300
|
551 |
+
#: ../custom-post-type-ui.php:1345 ../custom-post-type-ui.php:1360
|
552 |
+
#: ../custom-post-type-ui.php:1370 ../custom-post-type-ui.php:1608
|
553 |
+
#: ../custom-post-type-ui.php:1618 ../custom-post-type-ui.php:1628
|
|
|
|
|
|
|
|
|
554 |
msgid "(default: True)"
|
555 |
msgstr ""
|
556 |
|
557 |
+
#: ../custom-post-type-ui.php:1295
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
558 |
msgid "Whether to generate a default UI for managing this post type"
|
559 |
msgstr ""
|
560 |
|
561 |
+
#: ../custom-post-type-ui.php:1305
|
562 |
msgid "Has Archive"
|
563 |
msgstr ""
|
564 |
|
565 |
+
#: ../custom-post-type-ui.php:1305
|
566 |
+
msgid "Whether the post type will have a post type archive page"
|
|
|
|
|
567 |
msgstr ""
|
568 |
|
569 |
+
#: ../custom-post-type-ui.php:1310 ../custom-post-type-ui.php:1320
|
570 |
+
#: ../custom-post-type-ui.php:1335 ../custom-post-type-ui.php:1598
|
571 |
+
#: ../custom-post-type-ui.php:1649
|
572 |
+
msgid "(default: False)"
|
573 |
msgstr ""
|
574 |
|
575 |
+
#: ../custom-post-type-ui.php:1315
|
576 |
msgid "Exclude From Search"
|
577 |
msgstr ""
|
578 |
|
579 |
+
#: ../custom-post-type-ui.php:1315
|
580 |
msgid "Whether the post type will be searchable"
|
581 |
msgstr ""
|
582 |
|
583 |
+
#: ../custom-post-type-ui.php:1325
|
584 |
msgid "Capability Type"
|
585 |
msgstr ""
|
586 |
|
587 |
+
#: ../custom-post-type-ui.php:1325
|
588 |
msgid "The post type to use for checking read, edit, and delete capabilities"
|
589 |
msgstr ""
|
590 |
|
591 |
+
#: ../custom-post-type-ui.php:1330
|
|
|
|
|
|
|
|
|
592 |
msgid "Whether the post type can have parent-child relationships"
|
593 |
msgstr ""
|
594 |
|
595 |
+
#: ../custom-post-type-ui.php:1340
|
|
|
|
|
|
|
|
|
596 |
msgid "Triggers the handling of rewrites for this post type"
|
597 |
msgstr ""
|
598 |
|
599 |
+
#: ../custom-post-type-ui.php:1350 ../custom-post-type-ui.php:1633
|
600 |
msgid "Custom Rewrite Slug"
|
601 |
msgstr ""
|
602 |
|
603 |
+
#: ../custom-post-type-ui.php:1350
|
604 |
+
msgid "Custom slug to use instead of the default."
|
605 |
msgstr ""
|
606 |
|
607 |
+
#: ../custom-post-type-ui.php:1351
|
608 |
+
msgid "(default: post type name)"
|
609 |
msgstr ""
|
610 |
|
611 |
+
#: ../custom-post-type-ui.php:1355
|
612 |
msgid "With Front"
|
613 |
msgstr ""
|
614 |
|
615 |
+
#: ../custom-post-type-ui.php:1355
|
|
|
616 |
msgid "Should the permastruct be prepended with the front base."
|
617 |
msgstr ""
|
618 |
|
619 |
+
#: ../custom-post-type-ui.php:1375
|
|
|
|
|
|
|
|
|
620 |
msgid "Menu Position"
|
621 |
msgstr ""
|
622 |
|
623 |
+
#: ../custom-post-type-ui.php:1375
|
624 |
msgid ""
|
625 |
"The position in the menu order the post type should appear. show_in_menu "
|
626 |
"must be true."
|
627 |
msgstr ""
|
628 |
|
629 |
+
#: ../custom-post-type-ui.php:1376
|
630 |
msgid ""
|
631 |
"See <a href=\"http://codex.wordpress.org/Function_Reference/"
|
632 |
"register_post_type#Parameters\">Available options</a> in the \"menu_position"
|
633 |
"\" section. Range of 5-100"
|
634 |
msgstr ""
|
635 |
|
636 |
+
#: ../custom-post-type-ui.php:1382
|
|
|
|
|
|
|
|
|
637 |
msgid "Show in Menu"
|
638 |
msgstr ""
|
639 |
|
640 |
+
#: ../custom-post-type-ui.php:1382
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
641 |
msgid ""
|
642 |
"Whether to show the post type in the admin menu and where to show that menu. "
|
643 |
"Note that show_ui must be true"
|
644 |
msgstr ""
|
645 |
|
646 |
+
#: ../custom-post-type-ui.php:1383
|
647 |
+
msgid ""
|
648 |
+
"\"Show UI\" must be \"true\". If an existing top level page such as \"tools."
|
649 |
+
"php\" is indicated for second input, post type will be sub menu of that."
|
650 |
msgstr ""
|
651 |
|
652 |
+
#: ../custom-post-type-ui.php:1395
|
653 |
msgid "Menu Icon"
|
654 |
msgstr ""
|
655 |
|
656 |
+
#: ../custom-post-type-ui.php:1395
|
657 |
+
msgid "URL to image to be used as menu icon."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
658 |
msgstr ""
|
659 |
|
660 |
+
#: ../custom-post-type-ui.php:1403
|
661 |
msgid "Title"
|
662 |
msgstr ""
|
663 |
|
664 |
+
#: ../custom-post-type-ui.php:1403
|
665 |
msgid "Adds the title meta box when creating content for this custom post type"
|
666 |
msgstr ""
|
667 |
|
668 |
+
#: ../custom-post-type-ui.php:1404
|
669 |
msgid "Editor"
|
670 |
msgstr ""
|
671 |
|
672 |
+
#: ../custom-post-type-ui.php:1404
|
673 |
msgid ""
|
674 |
"Adds the content editor meta box when creating content for this custom post "
|
675 |
"type"
|
676 |
msgstr ""
|
677 |
|
678 |
+
#: ../custom-post-type-ui.php:1405
|
679 |
msgid "Excerpt"
|
680 |
msgstr ""
|
681 |
|
682 |
+
#: ../custom-post-type-ui.php:1405
|
683 |
msgid ""
|
684 |
"Adds the excerpt meta box when creating content for this custom post type"
|
685 |
msgstr ""
|
686 |
|
687 |
+
#: ../custom-post-type-ui.php:1406
|
688 |
msgid "Trackbacks"
|
689 |
msgstr ""
|
690 |
|
691 |
+
#: ../custom-post-type-ui.php:1406
|
692 |
msgid ""
|
693 |
"Adds the trackbacks meta box when creating content for this custom post type"
|
694 |
msgstr ""
|
695 |
|
696 |
+
#: ../custom-post-type-ui.php:1407
|
697 |
msgid "Custom Fields"
|
698 |
msgstr ""
|
699 |
|
700 |
+
#: ../custom-post-type-ui.php:1407
|
701 |
msgid ""
|
702 |
"Adds the custom fields meta box when creating content for this custom post "
|
703 |
"type"
|
704 |
msgstr ""
|
705 |
|
706 |
+
#: ../custom-post-type-ui.php:1408
|
707 |
msgid "Comments"
|
708 |
msgstr ""
|
709 |
|
710 |
+
#: ../custom-post-type-ui.php:1408
|
711 |
msgid ""
|
712 |
"Adds the comments meta box when creating content for this custom post type"
|
713 |
msgstr ""
|
714 |
|
715 |
+
#: ../custom-post-type-ui.php:1409
|
716 |
msgid "Revisions"
|
717 |
msgstr ""
|
718 |
|
719 |
+
#: ../custom-post-type-ui.php:1409
|
720 |
msgid ""
|
721 |
"Adds the revisions meta box when creating content for this custom post type"
|
722 |
msgstr ""
|
723 |
|
724 |
+
#: ../custom-post-type-ui.php:1410
|
725 |
msgid "Featured Image"
|
726 |
msgstr ""
|
727 |
|
728 |
+
#: ../custom-post-type-ui.php:1410
|
729 |
msgid ""
|
730 |
"Adds the featured image meta box when creating content for this custom post "
|
731 |
"type"
|
732 |
msgstr ""
|
733 |
|
734 |
+
#: ../custom-post-type-ui.php:1411
|
735 |
msgid "Author"
|
736 |
msgstr ""
|
737 |
|
738 |
+
#: ../custom-post-type-ui.php:1411
|
739 |
msgid ""
|
740 |
"Adds the author meta box when creating content for this custom post type"
|
741 |
msgstr ""
|
742 |
|
743 |
+
#: ../custom-post-type-ui.php:1412
|
744 |
msgid "Page Attributes"
|
745 |
msgstr ""
|
746 |
|
747 |
+
#: ../custom-post-type-ui.php:1412
|
748 |
msgid ""
|
749 |
"Adds the page attribute meta box when creating content for this custom post "
|
750 |
"type"
|
751 |
msgstr ""
|
752 |
|
753 |
+
#: ../custom-post-type-ui.php:1413
|
754 |
msgid "Post Formats"
|
755 |
msgstr ""
|
756 |
|
757 |
+
#: ../custom-post-type-ui.php:1413
|
758 |
msgid "Adds post format support"
|
759 |
msgstr ""
|
760 |
|
761 |
+
#: ../custom-post-type-ui.php:1418
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
762 |
msgid "Built-in Taxonomies"
|
763 |
msgstr ""
|
764 |
|
765 |
+
#: ../custom-post-type-ui.php:1451
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
766 |
msgid ""
|
767 |
+
"If you are unfamiliar with the options below only fill out the "
|
768 |
+
"<strong>Taxonomy Name</strong> and <strong>Post Type Name</strong> fields. "
|
769 |
+
"The other settings are set to the most common defaults for custom "
|
770 |
+
"taxonomies. Hover over the question mark for more details."
|
771 |
msgstr ""
|
772 |
|
773 |
+
#: ../custom-post-type-ui.php:1460
|
774 |
+
msgid "Taxonomy Name"
|
|
|
|
|
|
|
|
|
|
|
775 |
msgstr ""
|
776 |
|
777 |
+
#: ../custom-post-type-ui.php:1460
|
|
|
778 |
msgid ""
|
779 |
+
"The taxonomy name. Used to retrieve custom taxonomy content. Should be "
|
780 |
+
"short and sweet"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
781 |
msgstr ""
|
782 |
|
783 |
+
#: ../custom-post-type-ui.php:1461
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
784 |
msgid ""
|
785 |
+
"Note: Changing the name, after adding terms to the taxonomy, will not update "
|
786 |
+
"the terms in the database."
|
787 |
msgstr ""
|
788 |
|
789 |
+
#: ../custom-post-type-ui.php:1463
|
790 |
+
msgid "(e.g. actors)"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
791 |
msgstr ""
|
792 |
|
793 |
+
#: ../custom-post-type-ui.php:1464
|
|
|
794 |
msgid ""
|
795 |
+
"Max 32 characters, should only contain alphanumeric lowercase characters and "
|
796 |
+
"underscores in place of spaces."
|
|
|
|
|
|
|
|
|
|
|
797 |
msgstr ""
|
798 |
|
799 |
+
#: ../custom-post-type-ui.php:1469
|
800 |
+
msgid "Taxonomy label. Used in the admin menu for displaying custom taxonomy."
|
801 |
msgstr ""
|
802 |
|
803 |
+
#: ../custom-post-type-ui.php:1470
|
804 |
+
msgid "(e.g. Actors)"
|
|
|
|
|
|
|
805 |
msgstr ""
|
806 |
|
807 |
+
#: ../custom-post-type-ui.php:1474
|
808 |
msgid ""
|
809 |
+
"Taxonomy Singular label. Used in WordPress when a singular label is needed."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
810 |
msgstr ""
|
811 |
|
812 |
+
#: ../custom-post-type-ui.php:1475
|
813 |
+
msgid "(e.g. Actor)"
|
|
|
|
|
|
|
814 |
msgstr ""
|
815 |
|
816 |
+
#: ../custom-post-type-ui.php:1479
|
817 |
+
msgid "Attach to Post Type"
|
|
|
818 |
msgstr ""
|
819 |
|
820 |
+
#: ../custom-post-type-ui.php:1479
|
821 |
msgid ""
|
822 |
+
"What post type object to attach the custom taxonomy to. Can be post, page, "
|
823 |
+
"or link by default. Can also be any custom post type name."
|
824 |
msgstr ""
|
825 |
|
826 |
+
#: ../custom-post-type-ui.php:1482
|
827 |
msgid ""
|
828 |
+
"This is the old method. Delete the post type from the textbox and check "
|
829 |
+
"which post type to attach this taxonomy to</strong>"
|
830 |
msgstr ""
|
831 |
|
832 |
+
#: ../custom-post-type-ui.php:1483
|
833 |
+
msgid "(e.g. movies)"
|
|
|
|
|
|
|
|
|
834 |
msgstr ""
|
835 |
|
836 |
+
#: ../custom-post-type-ui.php:1514
|
837 |
msgid ""
|
838 |
+
"Below are the advanced label options for custom taxonomies. If you are "
|
839 |
+
"unfamiliar with these labels the plugin will automatically create labels "
|
840 |
+
"based off of your custom taxonomy name"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
841 |
msgstr ""
|
842 |
|
843 |
+
#: ../custom-post-type-ui.php:1517 ../custom-post-type-ui.php:1523
|
844 |
+
#: ../custom-post-type-ui.php:1529 ../custom-post-type-ui.php:1535
|
845 |
+
#: ../custom-post-type-ui.php:1541 ../custom-post-type-ui.php:1547
|
846 |
+
#: ../custom-post-type-ui.php:1553 ../custom-post-type-ui.php:1559
|
847 |
+
#: ../custom-post-type-ui.php:1565 ../custom-post-type-ui.php:1571
|
848 |
+
#: ../custom-post-type-ui.php:1577 ../custom-post-type-ui.php:1583
|
849 |
msgid ""
|
850 |
+
"Custom taxonomy label. Used in the admin menu for displaying taxonomies."
|
851 |
msgstr ""
|
852 |
|
853 |
+
#: ../custom-post-type-ui.php:1519
|
854 |
+
msgid "(e.g. Search Actors)"
|
|
|
|
|
|
|
|
|
855 |
msgstr ""
|
856 |
|
857 |
+
#: ../custom-post-type-ui.php:1523
|
858 |
+
msgid "Popular Items"
|
859 |
msgstr ""
|
860 |
|
861 |
+
#: ../custom-post-type-ui.php:1525
|
862 |
+
msgid "(e.g. Popular Actors)"
|
863 |
msgstr ""
|
864 |
|
865 |
+
#: ../custom-post-type-ui.php:1529
|
866 |
+
msgid "All Items"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
867 |
msgstr ""
|
868 |
|
869 |
+
#: ../custom-post-type-ui.php:1531
|
870 |
msgid "(e.g. All Actors)"
|
871 |
msgstr ""
|
872 |
|
873 |
+
#: ../custom-post-type-ui.php:1535
|
874 |
+
msgid "Parent Item"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
875 |
msgstr ""
|
876 |
|
877 |
+
#: ../custom-post-type-ui.php:1537
|
878 |
msgid "(e.g. Parent Actor)"
|
879 |
msgstr ""
|
880 |
|
881 |
+
#: ../custom-post-type-ui.php:1541
|
882 |
+
msgid "Parent Item Colon"
|
883 |
msgstr ""
|
884 |
|
885 |
+
#: ../custom-post-type-ui.php:1543
|
886 |
msgid "(e.g. Parent Actor:)"
|
887 |
msgstr ""
|
888 |
|
889 |
+
#: ../custom-post-type-ui.php:1549
|
890 |
+
msgid "(e.g. Edit Actor)"
|
891 |
msgstr ""
|
892 |
|
893 |
+
#: ../custom-post-type-ui.php:1553
|
894 |
+
msgid "Update Item"
|
895 |
msgstr ""
|
896 |
|
897 |
+
#: ../custom-post-type-ui.php:1555
|
898 |
+
msgid "(e.g. Update Actor)"
|
899 |
msgstr ""
|
900 |
|
901 |
+
#: ../custom-post-type-ui.php:1561
|
902 |
+
msgid "(e.g. Add New Actor)"
|
903 |
msgstr ""
|
904 |
|
905 |
+
#: ../custom-post-type-ui.php:1565
|
906 |
+
msgid "New Item Name"
|
907 |
msgstr ""
|
908 |
|
909 |
+
#: ../custom-post-type-ui.php:1567
|
910 |
+
msgid "(e.g. New Actor Name)"
|
911 |
msgstr ""
|
912 |
|
913 |
+
#: ../custom-post-type-ui.php:1571
|
914 |
msgid "Separate Items with Commas"
|
915 |
msgstr ""
|
916 |
|
917 |
+
#: ../custom-post-type-ui.php:1573
|
918 |
+
msgid "(e.g. Separate actors with commas)"
|
919 |
msgstr ""
|
920 |
|
921 |
+
#: ../custom-post-type-ui.php:1577
|
922 |
msgid "Add or Remove Items"
|
923 |
msgstr ""
|
924 |
|
925 |
+
#: ../custom-post-type-ui.php:1579
|
926 |
+
msgid "(e.g. Add or remove actors)"
|
927 |
msgstr ""
|
928 |
|
929 |
+
#: ../custom-post-type-ui.php:1583
|
930 |
msgid "Choose From Most Used"
|
931 |
msgstr ""
|
932 |
|
933 |
+
#: ../custom-post-type-ui.php:1585
|
934 |
+
msgid "(e.g. Choose from the most used actors)"
|
|
|
|
|
|
|
|
|
935 |
msgstr ""
|
936 |
|
937 |
+
#: ../custom-post-type-ui.php:1593
|
938 |
msgid "Whether the taxonomy can have parent-child relationships"
|
939 |
msgstr ""
|
940 |
|
941 |
+
#: ../custom-post-type-ui.php:1603
|
942 |
msgid "Whether to generate a default UI for managing this custom taxonomy"
|
943 |
msgstr ""
|
944 |
|
945 |
+
#: ../custom-post-type-ui.php:1623
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
946 |
msgid "Triggers the handling of rewrites for this taxonomy"
|
947 |
msgstr ""
|
948 |
|
949 |
+
#: ../custom-post-type-ui.php:1633
|
|
|
|
|
|
|
|
|
950 |
msgid "Custom Taxonomy Rewrite Slug"
|
951 |
msgstr ""
|
952 |
|
953 |
+
#: ../custom-post-type-ui.php:1634
|
954 |
+
msgid "(default: taxonomy name)"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
955 |
msgstr ""
|
956 |
|
957 |
+
#: ../custom-post-type-ui.php:1639
|
958 |
msgid "Show Admin Column"
|
959 |
msgstr ""
|
960 |
|
961 |
+
#: ../custom-post-type-ui.php:1639
|
962 |
msgid ""
|
963 |
"Whether to allow automatic creation of taxonomy columns on associated post-"
|
964 |
"types."
|
965 |
msgstr ""
|
966 |
|
967 |
+
#: ../custom-post-type-ui.php:1673
|
968 |
+
msgid "Please Report Bugs"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
969 |
msgstr ""
|
970 |
|
971 |
+
#: ../custom-post-type-ui.php:1673
|
972 |
+
msgid "Follow on Twitter:"
|
|
|
973 |
msgstr ""
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: williamsba1, tw2113, webdevstudios
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3084056
|
4 |
Tags: custom post types, CPT, CMS, post, types, post type, cck, taxonomy, tax, custom
|
5 |
-
Requires at least: 3.
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 0.9.
|
8 |
License: GPLv2
|
9 |
|
10 |
Admin UI for creating custom post types and custom taxonomies in WordPress
|
@@ -15,40 +15,20 @@ This plugin provides an easy to use interface to create and administer custom po
|
|
15 |
|
16 |
Please note that this plugin will NOT handle display of registered post types or taxonomies in your current theme. It will simply register them for you.
|
17 |
|
18 |
-
All official development on this plugin is on GitHub. Version bumps will still be published here on WordPress.org. You can find the repo at [https://github.com/WebDevStudios/custom-post-type-ui](https://github.com/WebDevStudios/custom-post-type-ui). Please file
|
19 |
-
|
20 |
-
Import/Export functionality amended from original contribution by [Ben Allfree](http://wordpress.org/support/profile/benallfree).
|
21 |
-
|
22 |
-
Implied credit to:
|
23 |
-
|
24 |
-
* [exeQutor](https://github.com/exeQutor) For proper supports fix.
|
25 |
|
26 |
== Screenshots ==
|
27 |
|
28 |
-
1.
|
29 |
-
2.
|
30 |
-
3.
|
31 |
-
4.
|
32 |
-
5.
|
33 |
-
6. Export post types screen and tab.
|
34 |
-
7. Export taxonomies screen and tab.
|
35 |
-
8. Get code screen and tab.
|
36 |
-
9. Help/support screen.
|
37 |
|
38 |
== Changelog ==
|
39 |
|
40 |
-
= 0.9.
|
41 |
-
*
|
42 |
-
* Separated out post type and taxonomy creation to their own screens.
|
43 |
-
* Added import/export ability for post type and taxonomy settings.
|
44 |
-
* Added a Help/Support Screen.
|
45 |
-
* Added/Updated available parameters for post types and parameters.
|
46 |
-
* Updated i18n and translation files.
|
47 |
-
* Added Confirmation prompts before deleting post types and taxonomies.
|
48 |
-
* Added actions and filters for 3rd party customization.
|
49 |
-
* Added function that automatically converts 0.8.x and down settings to new setting arrangement.
|
50 |
-
* Changed how settings are stored so that post types and taxonomies are in named array indexes.
|
51 |
-
* Bug fixes not mentioned above.
|
52 |
|
53 |
= 0.8.5 =
|
54 |
* Fix issue with menu_postion being quoted in CPT get_code functionality.
|
@@ -177,24 +157,8 @@ Implied credit to:
|
|
177 |
|
178 |
== Upgrade Notice ==
|
179 |
|
180 |
-
= 0.9.
|
181 |
-
|
182 |
-
PLEASE TEST ON DEV SITE BEFORE UPGRADING. We have received support requests involving breaking of existing post types. This was not intended, and we will do everything we can to debug.
|
183 |
-
|
184 |
-
This is a major upgrade. This includes a new UI and a settings conversion to new stored arangement. 0.8.x settings will not be deleted if for some reason you must revert to the previous version.
|
185 |
-
|
186 |
-
Full list:
|
187 |
-
* CPTUI has been given a new UI!
|
188 |
-
* Separated out post type and taxonomy creation to their own screens.
|
189 |
-
* Added import/export ability for post type and taxonomy settings.
|
190 |
-
* Added a Help/Support Screen.
|
191 |
-
* Added/Updated available parameters for post types and parameters.
|
192 |
-
* Updated i18n and translation files.
|
193 |
-
* Added Confirmation prompts before deleting post types and taxonomies.
|
194 |
-
* Added actions and filters for 3rd party customization.
|
195 |
-
* Added function that automatically converts 0.8.x and down settings to new setting arrangement.
|
196 |
-
* Changed how settings are stored so that post types and taxonomies are in named array indexes.
|
197 |
-
* Bug fixes not mentioned above.
|
198 |
|
199 |
= 0.8.5 =
|
200 |
* Fix issue with menu_postion being quoted in CPT get_code functionality.
|
@@ -302,7 +266,27 @@ That's it! Now you can easily start creating custom post types and taxonomies in
|
|
302 |
|
303 |
== Frequently Asked Questions ==
|
304 |
|
305 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
|
307 |
== Other Notes ==
|
308 |
|
2 |
Contributors: williamsba1, tw2113, webdevstudios
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3084056
|
4 |
Tags: custom post types, CPT, CMS, post, types, post type, cck, taxonomy, tax, custom
|
5 |
+
Requires at least: 3.5
|
6 |
+
Tested up to: 3.9.1
|
7 |
+
Stable tag: 0.9.5
|
8 |
License: GPLv2
|
9 |
|
10 |
Admin UI for creating custom post types and custom taxonomies in WordPress
|
15 |
|
16 |
Please note that this plugin will NOT handle display of registered post types or taxonomies in your current theme. It will simply register them for you.
|
17 |
|
18 |
+
All official development on this plugin is on GitHub. Version bumps will still be published here on WordPress.org. You can find the repo at [https://github.com/WebDevStudios/custom-post-type-ui](https://github.com/WebDevStudios/custom-post-type-ui). Please file issues, bugs, and enhancement ideas there, when possible.
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
== Screenshots ==
|
21 |
|
22 |
+
1. Create a custom post type
|
23 |
+
2. Create a custom taxonomy
|
24 |
+
3. Custom post type and taxonomies are automatically added to your admin menus
|
25 |
+
4. Easily view and edit existing custom post types. Even "Get Code" generated by the plugin
|
26 |
+
5. Custom taxonomies are automatically added to your content type screens
|
|
|
|
|
|
|
|
|
27 |
|
28 |
== Changelog ==
|
29 |
|
30 |
+
= 0.9.5 =
|
31 |
+
* Revert 0.9.0 release until unfound bugs are fixed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
= 0.8.5 =
|
34 |
* Fix issue with menu_postion being quoted in CPT get_code functionality.
|
157 |
|
158 |
== Upgrade Notice ==
|
159 |
|
160 |
+
= 0.9.5 =
|
161 |
+
* Revert 0.9.0 release until unfound bugs are fixed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
|
163 |
= 0.8.5 =
|
164 |
* Fix issue with menu_postion being quoted in CPT get_code functionality.
|
266 |
|
267 |
== Frequently Asked Questions ==
|
268 |
|
269 |
+
= How can I display content from a custom post type on my website? =
|
270 |
+
|
271 |
+
Justin Tadlock has written some great posts on the topic:
|
272 |
+
[Showing Custom Post Types on your Home Page](https://github.com/WebDevStudios/custom-post-type-ui)
|
273 |
+
[Custom Post Types in WordPress](http://justintadlock.com/archives/2010/04/29/custom-post-types-in-wordpress)
|
274 |
+
|
275 |
+
= How can I add custom meta boxes to my custom post types? =
|
276 |
+
|
277 |
+
The More Fields plugin does a great job at creating custom meta boxes and fully supports custom post types: http://wordpress.org/extend/plugins/more-fields/
|
278 |
+
|
279 |
+
= I changed my custom post type name and now I can't get to my posts =
|
280 |
+
|
281 |
+
You can either change the custom post type name back to the original name or try the Post Type Switcher plugin here: http://wordpress.org/extend/plugins/post-type-switcher/
|
282 |
+
|
283 |
+
= I receive a 404 error when viewing custom post type content =
|
284 |
+
|
285 |
+
This is usually caused if the rewrite slug was changed. To fix this issue simply visit Settings > Permalinks to flush the rewrite rules in WordPress
|
286 |
+
|
287 |
+
= Will this work in previous version of WordPress =
|
288 |
+
|
289 |
+
The register_post_type function was added in WordPress 2.9 so technically it should work in 2.9, but there is no admin menu UI so all post types are created and used behind the scenes.
|
290 |
|
291 |
== Other Notes ==
|
292 |
|
screenshot-1.png
CHANGED
Binary file
|
screenshot-2.png
CHANGED
Binary file
|
screenshot-3.png
CHANGED
Binary file
|
screenshot-4.png
CHANGED
Binary file
|
screenshot-5.png
CHANGED
Binary file
|
screenshot-6.png
DELETED
Binary file
|
screenshot-7.png
DELETED
Binary file
|
screenshot-8.png
DELETED
Binary file
|
screenshot-9.png
DELETED
Binary file
|