Version Description
- Added: Support for show_in_nav_menus parameter for post types.
- Added: Support for taxonomy descriptions.
- Added: Message on listings page if no post types or taxonomies are available.
- Added: Note regarding 'public' parameter not being true by default for WordPress but is for CPTUI.
- Added: Individual post type and taxonomy output for "Get Code" area.
- Added: Fallback values for post type/taxonomy select input and get code area if no plural label provided.
- Added: Support for custom query_var strings for post types.
- Added: Support for show_in_rest and rest_base for post types and taxonomies for the upcoming WordPress REST API.
- Added: Template hierarchy files to listings tables for user reference.
- Added: Form labels in more areas to help with accessibility and usability.
- Added: Fieldset method to Admin UI class for easily adding fieldset output.
- Added: Debugging tab for use with CPTUI support.
- Updated: Minimum version required. Now WordPress 4.2.
- Updated: Heading tags match accessibility changes in WordPress 4.3.
- Updated: Moved page title for some pages above tabs.
- Updated: Textdomain now matches WordPress.org repo slug.
- Updated: Added Visual Composer questions/answers to support section.
- Updated: Added question/answer regarding spaces in post type slugs
- Updated: Changed help icons to a Dashicon help icon.
- Fixed: Support for YARPP plugin.
- Fixed: Prevent potential issues with AJAX requests and our scripts/styles
Download this release
Release Info
Developer | tw2113 |
Plugin | ![]() |
Version | 1.2.0 |
Comparing to | |
See all releases |
Code changes from version 1.1.3 to 1.2.0
- classes/class.cptui_admin_ui.php +42 -26
- classes/class.cptui_debug_info.php +193 -0
- css/cptui.css +18 -9
- custom-post-type-ui.php +153 -79
- inc/import_export.php +284 -100
- inc/listings.php +169 -108
- inc/post-types.php +309 -183
- inc/support.php +50 -28
- inc/taxonomies.php +215 -119
- js/cptui.js +1 -1
- languages/cpt-plugin-de_DE.mo +0 -0
- languages/cpt-plugin-pt_PT.mo +0 -0
- languages/cpt-plugin-pt_PT.po +0 -2029
- languages/cpt-plugin-tr_TR.mo +0 -0
- languages/custom-post-type-ui-de_DE.mo +0 -0
- languages/{cpt-plugin-de_DE.po → custom-post-type-ui-de_DE.po} +669 -396
- languages/custom-post-type-ui-de_DE_formal.mo +0 -0
- languages/custom-post-type-ui-de_DE_formal.po +2225 -0
- languages/{cpt-plugin-ja.mo → custom-post-type-ui-ja.mo} +0 -0
- languages/{cpt-plugin-ja.po → custom-post-type-ui-ja.po} +587 -376
- languages/custom-post-type-ui-pt_PT.mo +0 -0
- languages/custom-post-type-ui-pt_PT.po +1889 -0
- languages/custom-post-type-ui-tr_TR.mo +0 -0
- languages/{cpt-plugin-tr_TR.po → custom-post-type-ui-tr_TR.po} +602 -372
- languages/{cpt-plugin-zh_CN.mo → custom-post-type-ui-zh_CN.mo} +0 -0
- languages/{cpt-plugin-zh_CN.po → custom-post-type-ui-zh_CN.po} +588 -376
- languages/custom-post-type-ui.pot +572 -360
- readme.txt +61 -146
classes/class.cptui_admin_ui.php
CHANGED
@@ -11,7 +11,7 @@ class cptui_admin_ui {
|
|
11 |
/**
|
12 |
* Return an opening <tr> tag.
|
13 |
*
|
14 |
-
* @since 1.0
|
15 |
*
|
16 |
* @return string $value Opening <tr> tag with attributes.
|
17 |
*/
|
@@ -22,7 +22,7 @@ class cptui_admin_ui {
|
|
22 |
/**
|
23 |
* Return a closing </tr> tag.
|
24 |
*
|
25 |
-
* @since 1.0
|
26 |
*
|
27 |
* @return string $value Closing </tr> tag.
|
28 |
*/
|
@@ -33,7 +33,7 @@ class cptui_admin_ui {
|
|
33 |
/**
|
34 |
* Return an opening <th> tag.
|
35 |
*
|
36 |
-
* @since 1.0
|
37 |
*
|
38 |
* @return string $value Opening <th> tag with attributes.
|
39 |
*/
|
@@ -44,7 +44,7 @@ class cptui_admin_ui {
|
|
44 |
/**
|
45 |
* Return a closing </th> tag.
|
46 |
*
|
47 |
-
* @since 1.0
|
48 |
*
|
49 |
* @return string $value Closing </th> tag.
|
50 |
*/
|
@@ -55,7 +55,7 @@ class cptui_admin_ui {
|
|
55 |
/**
|
56 |
* Return an opening <td> tag.
|
57 |
*
|
58 |
-
* @since 1.0
|
59 |
*
|
60 |
* @return string $value Opening <td> tag.
|
61 |
*/
|
@@ -66,7 +66,7 @@ class cptui_admin_ui {
|
|
66 |
/**
|
67 |
* Return a closing </td> tag.
|
68 |
*
|
69 |
-
* @since 1.0
|
70 |
*
|
71 |
* @return string $value Closing </td> tag.
|
72 |
*/
|
@@ -74,13 +74,34 @@ class cptui_admin_ui {
|
|
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 = '' ) {
|
@@ -90,11 +111,10 @@ class cptui_admin_ui {
|
|
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 = '' ) {
|
@@ -104,7 +124,7 @@ class cptui_admin_ui {
|
|
104 |
/**
|
105 |
* Return a <span> to indicate required status, with class attribute.
|
106 |
*
|
107 |
-
* @since 1.0
|
108 |
*
|
109 |
* @return string span tag.
|
110 |
*/
|
@@ -115,21 +135,21 @@ class cptui_admin_ui {
|
|
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 ) . '"
|
126 |
}
|
127 |
|
128 |
/**
|
129 |
* Return a maxlength HTML attribute with a specified length.
|
130 |
*
|
131 |
-
* @
|
132 |
*
|
|
|
133 |
* @return string $value Maxlength HTML attribute.
|
134 |
*/
|
135 |
public function get_maxlength( $length = '' ) {
|
@@ -139,8 +159,9 @@ class cptui_admin_ui {
|
|
139 |
/**
|
140 |
* Return a onblur HTML attribute for a specified value.
|
141 |
*
|
142 |
-
* @
|
143 |
*
|
|
|
144 |
* @return string $value Onblur HTML attribute.
|
145 |
*/
|
146 |
public function get_onblur( $text = '' ) {
|
@@ -150,10 +171,9 @@ class cptui_admin_ui {
|
|
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() ) {
|
@@ -219,10 +239,9 @@ class cptui_admin_ui {
|
|
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() ) {
|
@@ -278,10 +297,9 @@ class cptui_admin_ui {
|
|
278 |
/**
|
279 |
* Return a <textarea> input.
|
280 |
*
|
281 |
-
* @since 1.0
|
282 |
*
|
283 |
* @param array $args Arguments to use with the textarea input.
|
284 |
-
*
|
285 |
* @return string $value Complete <textarea> input with proper attributes.
|
286 |
*/
|
287 |
public function get_textarea_input( $args = array() ) {
|
@@ -321,10 +339,9 @@ class cptui_admin_ui {
|
|
321 |
/**
|
322 |
* Return a checkbox <input>.
|
323 |
*
|
324 |
-
* @since 1.0
|
325 |
*
|
326 |
* @param array $args Arguments to use with the checkbox input.
|
327 |
-
*
|
328 |
* @return string $value Complete checkbox <input> with proper attributes.
|
329 |
*/
|
330 |
public function get_check_input( $args = array() ) {
|
@@ -369,10 +386,9 @@ class cptui_admin_ui {
|
|
369 |
/**
|
370 |
* Return some array_merged default arguments for all input types.
|
371 |
*
|
372 |
-
* @since 1.0
|
373 |
*
|
374 |
* @param array $additions Arguments array to merge with our defaults.
|
375 |
-
*
|
376 |
* @return array $value Merged arrays for our default parameters.
|
377 |
*/
|
378 |
public function get_default_input_parameters( $additions = array() ) {
|
11 |
/**
|
12 |
* Return an opening <tr> tag.
|
13 |
*
|
14 |
+
* @since 1.0.0
|
15 |
*
|
16 |
* @return string $value Opening <tr> tag with attributes.
|
17 |
*/
|
22 |
/**
|
23 |
* Return a closing </tr> tag.
|
24 |
*
|
25 |
+
* @since 1.0.0
|
26 |
*
|
27 |
* @return string $value Closing </tr> tag.
|
28 |
*/
|
33 |
/**
|
34 |
* Return an opening <th> tag.
|
35 |
*
|
36 |
+
* @since 1.0.0
|
37 |
*
|
38 |
* @return string $value Opening <th> tag with attributes.
|
39 |
*/
|
44 |
/**
|
45 |
* Return a closing </th> tag.
|
46 |
*
|
47 |
+
* @since 1.0.0
|
48 |
*
|
49 |
* @return string $value Closing </th> tag.
|
50 |
*/
|
55 |
/**
|
56 |
* Return an opening <td> tag.
|
57 |
*
|
58 |
+
* @since 1.0.0
|
59 |
*
|
60 |
* @return string $value Opening <td> tag.
|
61 |
*/
|
66 |
/**
|
67 |
* Return a closing </td> tag.
|
68 |
*
|
69 |
+
* @since 1.0.0
|
70 |
*
|
71 |
* @return string $value Closing </td> tag.
|
72 |
*/
|
74 |
return '</td>';
|
75 |
}
|
76 |
|
77 |
+
/**
|
78 |
+
* Return an opening <fieldset> tag.
|
79 |
+
*
|
80 |
+
* @since 1.2.0
|
81 |
+
*
|
82 |
+
* @return string $value Opening <fieldset> tag.
|
83 |
+
*/
|
84 |
+
public function get_fieldset_start() {
|
85 |
+
return '<fieldset>';
|
86 |
+
}
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Return an closing <fieldset> tag.
|
90 |
+
*
|
91 |
+
* @since 1.2.0
|
92 |
+
*
|
93 |
+
* @return string $value Closing <fieldset> tag.
|
94 |
+
*/
|
95 |
+
public function get_fieldset_end() {
|
96 |
+
return '</fieldset>';
|
97 |
+
}
|
98 |
+
|
99 |
/**
|
100 |
* Return string wrapped in a <p> tag.
|
101 |
*
|
102 |
+
* @since 1.0.0
|
103 |
*
|
104 |
* @param string $text Content to wrap in a <p> tag.
|
|
|
105 |
* @return string $value Content wrapped in a <p> tag.
|
106 |
*/
|
107 |
public function get_p( $text = '' ) {
|
111 |
/**
|
112 |
* Return a form <label> with for attribute.
|
113 |
*
|
114 |
+
* @since 1.0.0
|
115 |
*
|
116 |
* @param string $label_for Form input to associate <label> with.
|
117 |
* @param string $label_text Text to display in the <label> tag.
|
|
|
118 |
* @return string $value <label> tag with filled out parts.
|
119 |
*/
|
120 |
public function get_label( $label_for = '', $label_text = '' ) {
|
124 |
/**
|
125 |
* Return a <span> to indicate required status, with class attribute.
|
126 |
*
|
127 |
+
* @since 1.0.0
|
128 |
*
|
129 |
* @return string span tag.
|
130 |
*/
|
135 |
/**
|
136 |
* Return an <a> tag with title attribute holding help text.
|
137 |
*
|
138 |
+
* @since 1.0.0
|
139 |
*
|
140 |
* @param string $help_text Text to use in the title attribute.
|
|
|
141 |
* @return string <a> tag with filled out parts.
|
142 |
*/
|
143 |
public function get_help( $help_text = '' ) {
|
144 |
+
return '<a href="#" class="cptui-help dashicons-before dashicons-editor-help" title="' . esc_attr( $help_text ) . '"></a>';
|
145 |
}
|
146 |
|
147 |
/**
|
148 |
* Return a maxlength HTML attribute with a specified length.
|
149 |
*
|
150 |
+
* @since 1.0.0
|
151 |
*
|
152 |
+
* @param string $length How many characters the max length should be set to.
|
153 |
* @return string $value Maxlength HTML attribute.
|
154 |
*/
|
155 |
public function get_maxlength( $length = '' ) {
|
159 |
/**
|
160 |
* Return a onblur HTML attribute for a specified value.
|
161 |
*
|
162 |
+
* @since 1.0.0
|
163 |
*
|
164 |
+
* @param string $text Text to place in the onblur attribute.
|
165 |
* @return string $value Onblur HTML attribute.
|
166 |
*/
|
167 |
public function get_onblur( $text = '' ) {
|
171 |
/**
|
172 |
* Return a populated <select> input.
|
173 |
*
|
174 |
+
* @since 1.0.0
|
175 |
*
|
176 |
* @param array $args Arguments to use with the <select> input.
|
|
|
177 |
* @return string $value Complete <select> input with options and selected attribute.
|
178 |
*/
|
179 |
public function get_select_input( $args = array() ) {
|
239 |
/**
|
240 |
* Return a text input.
|
241 |
*
|
242 |
+
* @since 1.0.0
|
243 |
*
|
244 |
* @param array $args Arguments to use with the text input.
|
|
|
245 |
* @return string Complete text <input> with proper attributes.
|
246 |
*/
|
247 |
public function get_text_input( $args = array() ) {
|
297 |
/**
|
298 |
* Return a <textarea> input.
|
299 |
*
|
300 |
+
* @since 1.0.0
|
301 |
*
|
302 |
* @param array $args Arguments to use with the textarea input.
|
|
|
303 |
* @return string $value Complete <textarea> input with proper attributes.
|
304 |
*/
|
305 |
public function get_textarea_input( $args = array() ) {
|
339 |
/**
|
340 |
* Return a checkbox <input>.
|
341 |
*
|
342 |
+
* @since 1.0.0
|
343 |
*
|
344 |
* @param array $args Arguments to use with the checkbox input.
|
|
|
345 |
* @return string $value Complete checkbox <input> with proper attributes.
|
346 |
*/
|
347 |
public function get_check_input( $args = array() ) {
|
386 |
/**
|
387 |
* Return some array_merged default arguments for all input types.
|
388 |
*
|
389 |
+
* @since 1.0.0
|
390 |
*
|
391 |
* @param array $additions Arguments array to merge with our defaults.
|
|
|
392 |
* @return array $value Merged arrays for our default parameters.
|
393 |
*/
|
394 |
public function get_default_input_parameters( $additions = array() ) {
|
classes/class.cptui_debug_info.php
ADDED
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class CPTUI_Debug_Info {
|
4 |
+
|
5 |
+
public function tab_site_info() {
|
6 |
+
?>
|
7 |
+
<p><?php _e( 'If you have sought support for Custom Post Type UI on the forums, you may be requested to send the information below to the plugin developer. Simply insert the email they provided in the input field at the bottom and click the "Send debug info" button. Only the data below will be sent to them.', 'custom-post-type-ui' ); ?></p>
|
8 |
+
<label for="cptui_audit_textarea">
|
9 |
+
<textarea readonly="readonly" id="cptui-audit-textarea" name="cptui_audit_textarea" rows="20" cols="100">
|
10 |
+
<?php echo $this->system_status(); ?>
|
11 |
+
</textarea></label>
|
12 |
+
<?php
|
13 |
+
}
|
14 |
+
|
15 |
+
private function system_status() {
|
16 |
+
if ( ! current_user_can( 'manage_options' ) ) {
|
17 |
+
return '';
|
18 |
+
}
|
19 |
+
|
20 |
+
global $wpdb;
|
21 |
+
|
22 |
+
if ( get_bloginfo( 'version' ) < '3.4' ) {
|
23 |
+
$theme_data = get_theme_data( get_stylesheet_directory() . '/style.css' );
|
24 |
+
$theme = $theme_data['Name'] . ' ' . $theme_data['Version'];
|
25 |
+
} else {
|
26 |
+
$theme_data = wp_get_theme();
|
27 |
+
$theme = $theme_data->Name . ' ' . $theme_data->Version;
|
28 |
+
}
|
29 |
+
|
30 |
+
ob_start();
|
31 |
+
?>
|
32 |
+
|
33 |
+
### Begin Custom Post Type UI Debug Info ###
|
34 |
+
|
35 |
+
Multisite: <?php echo is_multisite() ? 'Yes' . "\n" : 'No' . "\n" ?>
|
36 |
+
|
37 |
+
SITE_URL: <?php echo site_url() . "\n"; ?>
|
38 |
+
HOME_URL: <?php echo home_url() . "\n"; ?>
|
39 |
+
|
40 |
+
WordPress Version: <?php echo get_bloginfo( 'version' ) . "\n"; ?>
|
41 |
+
Permalink Structure: <?php echo get_option( 'permalink_structure' ) . "\n"; ?>
|
42 |
+
Active Theme: <?php echo $theme . "\n"; ?>
|
43 |
+
|
44 |
+
Registered Post Types: <?php echo implode( ', ', get_post_types( '', 'names' ) ) . "\n"; ?>
|
45 |
+
|
46 |
+
PHP Version: <?php echo PHP_VERSION . "\n"; ?>
|
47 |
+
MySQL Version: <?php echo $wpdb->db_version() . "\n"; ?>
|
48 |
+
Web Server Info: <?php echo $_SERVER['SERVER_SOFTWARE'] . "\n"; ?>
|
49 |
+
|
50 |
+
Show On Front: <?php echo get_option( 'show_on_front' ) . "\n" ?>
|
51 |
+
Page On Front: <?php $id = get_option( 'page_on_front' );
|
52 |
+
echo get_the_title( $id ) . ' (#' . $id . ')' . "\n" ?>
|
53 |
+
Page For Posts: <?php $id = get_option( 'page_for_posts' );
|
54 |
+
echo get_the_title( $id ) . ' (#' . $id . ')' . "\n" ?>
|
55 |
+
|
56 |
+
WordPress Memory Limit: <?php echo ( $this->num_convt( WP_MEMORY_LIMIT ) / ( 1024 ) ) . "MB"; ?><?php echo "\n"; ?>
|
57 |
+
|
58 |
+
<?php
|
59 |
+
$plugins = get_plugins();
|
60 |
+
$pg_count = count( $plugins );
|
61 |
+
echo 'TOTAL PLUGINS: ' . $pg_count . "\n\n";
|
62 |
+
// MU plugins
|
63 |
+
$mu_plugins = get_mu_plugins();
|
64 |
+
|
65 |
+
if ( $mu_plugins ) :
|
66 |
+
$mu_count = count( $mu_plugins );
|
67 |
+
|
68 |
+
echo 'MU PLUGINS: (' . $mu_count . ')' . "\n\n";
|
69 |
+
|
70 |
+
foreach ( $mu_plugins as $mu_path => $mu_plugin ) {
|
71 |
+
|
72 |
+
echo $mu_plugin['Name'] . ': ' . $mu_plugin['Version'] . "\n";
|
73 |
+
}
|
74 |
+
endif;
|
75 |
+
// standard plugins - active
|
76 |
+
echo "\n";
|
77 |
+
|
78 |
+
$active = get_option( 'active_plugins', array() );
|
79 |
+
$ac_count = count( $active );
|
80 |
+
$ic_count = $pg_count - $ac_count;
|
81 |
+
|
82 |
+
echo 'ACTIVE PLUGINS: (' . $ac_count . ')' . "\n\n";
|
83 |
+
|
84 |
+
foreach ( $plugins as $plugin_path => $plugin ) {
|
85 |
+
// If the plugin isn't active, don't show it.
|
86 |
+
if ( ! in_array( $plugin_path, $active ) ) {
|
87 |
+
continue;
|
88 |
+
}
|
89 |
+
|
90 |
+
echo $plugin['Name'] . ': ' . $plugin['Version'] . "\n";
|
91 |
+
}
|
92 |
+
// standard plugins - inactive
|
93 |
+
echo "\n";
|
94 |
+
echo 'INACTIVE PLUGINS: (' . $ic_count . ')' . "\n\n";
|
95 |
+
|
96 |
+
foreach ( $plugins as $plugin_path => $plugin ) {
|
97 |
+
// If the plugin isn't active, show it here.
|
98 |
+
if ( in_array( $plugin_path, $active ) ) {
|
99 |
+
continue;
|
100 |
+
}
|
101 |
+
|
102 |
+
echo $plugin['Name'] . ': ' . $plugin['Version'] . "\n";
|
103 |
+
}
|
104 |
+
|
105 |
+
// if multisite, grab network as well
|
106 |
+
if ( is_multisite() ) :
|
107 |
+
|
108 |
+
$net_plugins = wp_get_active_network_plugins();
|
109 |
+
$net_active = get_site_option( 'active_sitewide_plugins', array() );
|
110 |
+
|
111 |
+
echo "\n";
|
112 |
+
echo 'NETWORK ACTIVE PLUGINS: (' . count( $net_plugins ) . ')' . "\n\n";
|
113 |
+
|
114 |
+
foreach ( $net_plugins as $plugin_path ) {
|
115 |
+
$plugin_base = plugin_basename( $plugin_path );
|
116 |
+
|
117 |
+
// If the plugin isn't active, don't show it.
|
118 |
+
if ( ! array_key_exists( $plugin_base, $net_active ) ) {
|
119 |
+
continue;
|
120 |
+
}
|
121 |
+
|
122 |
+
$plugin = get_plugin_data( $plugin_path );
|
123 |
+
|
124 |
+
echo $plugin['Name'] . ' :' . $plugin['Version'] . "\n";
|
125 |
+
}
|
126 |
+
|
127 |
+
endif;
|
128 |
+
|
129 |
+
echo "\n";
|
130 |
+
$cptui_post_types = get_option( 'cptui_post_types', array() );
|
131 |
+
echo 'Post Types: ' . "\n";
|
132 |
+
echo esc_html( json_encode( $cptui_post_types ) ) . "\n";
|
133 |
+
|
134 |
+
echo "\n\n";
|
135 |
+
|
136 |
+
$cptui_taxonomies = get_option( 'cptui_taxonomies', array() );
|
137 |
+
echo 'Taxonomies: ' . "\n";
|
138 |
+
echo esc_html( json_encode( $cptui_taxonomies ) ) . "\n";
|
139 |
+
echo "\n";
|
140 |
+
?>
|
141 |
+
### End Debug Info ###
|
142 |
+
<?php
|
143 |
+
|
144 |
+
return ob_get_clean();
|
145 |
+
}
|
146 |
+
|
147 |
+
/**
|
148 |
+
* helper function for number conversions
|
149 |
+
* @access public
|
150 |
+
*
|
151 |
+
* @param mixed $v
|
152 |
+
* @return int
|
153 |
+
*/
|
154 |
+
public function num_convt( $v ) {
|
155 |
+
$l = substr( $v, - 1 );
|
156 |
+
$ret = substr( $v, 0, - 1 );
|
157 |
+
|
158 |
+
switch ( strtoupper( $l ) ) {
|
159 |
+
case 'P': // fall-through
|
160 |
+
case 'T': // fall-through
|
161 |
+
case 'G': // fall-through
|
162 |
+
case 'M': // fall-through
|
163 |
+
case 'K': // fall-through
|
164 |
+
$ret *= 1024;
|
165 |
+
break;
|
166 |
+
default:
|
167 |
+
break;
|
168 |
+
}
|
169 |
+
|
170 |
+
return $ret;
|
171 |
+
}
|
172 |
+
|
173 |
+
public function send_email( $args ) {
|
174 |
+
|
175 |
+
if ( ! isset( $args['email'] ) || ! is_email( $args['email'] ) ) {
|
176 |
+
return false;
|
177 |
+
}
|
178 |
+
|
179 |
+
stripslashes_deep( $args );
|
180 |
+
|
181 |
+
$args['email'] = sanitize_email( $args['email'] );
|
182 |
+
|
183 |
+
$message = $this->system_status();
|
184 |
+
|
185 |
+
$subject = sprintf(
|
186 |
+
__( 'CPTUI debug information for %s'),
|
187 |
+
home_url( '/' )
|
188 |
+
);
|
189 |
+
|
190 |
+
wp_mail( $args['email'], $subject, $message );
|
191 |
+
}
|
192 |
+
}
|
193 |
+
|
css/cptui.css
CHANGED
@@ -1,12 +1,3 @@
|
|
1 |
-
.cptui-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 |
-
.cptui-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.outter { vertical-align: top; width: 50%; }
|
@@ -108,3 +99,21 @@
|
|
108 |
.js #cptui_select_taxonomy input[type='submit'] {
|
109 |
display: none;
|
110 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
.required { color: rgb(255,0,0); }
|
2 |
.cptui-table #excerpt { height: 16px; margin-right: 4px; width: auto; }
|
3 |
.cptui-table td.outter { vertical-align: top; width: 50%; }
|
99 |
.js #cptui_select_taxonomy input[type='submit'] {
|
100 |
display: none;
|
101 |
}
|
102 |
+
.cptui-help {
|
103 |
+
color: #424242;
|
104 |
+
margin-left: 4px;
|
105 |
+
opacity: 0.5;
|
106 |
+
text-decoration: none;
|
107 |
+
width: 16px;
|
108 |
+
}
|
109 |
+
fieldset .cptui-help {
|
110 |
+
position: relative;
|
111 |
+
top: 4px;
|
112 |
+
}
|
113 |
+
.cptui-help:hover {
|
114 |
+
color: #0074a2;
|
115 |
+
opacity: 1;
|
116 |
+
}
|
117 |
+
.cptui-help:focus {
|
118 |
+
box-shadow: none;
|
119 |
+
}
|
custom-post-type-ui.php
CHANGED
@@ -4,9 +4,9 @@ Plugin Name: Custom Post Type UI
|
|
4 |
Plugin URI: https://github.com/WebDevStudios/custom-post-type-ui/
|
5 |
Description: Admin panel for creating custom post types and custom taxonomies in WordPress
|
6 |
Author: WebDevStudios
|
7 |
-
Version: 1.
|
8 |
Author URI: http://webdevstudios.com/
|
9 |
-
Text Domain:
|
10 |
Domain Path: /languages
|
11 |
License: GPLv2
|
12 |
*/
|
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
16 |
exit;
|
17 |
}
|
18 |
|
19 |
-
define( 'CPT_VERSION', '1.
|
20 |
define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
|
21 |
|
22 |
/**
|
@@ -26,6 +26,7 @@ define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
|
|
26 |
*/
|
27 |
function cptui_load_ui_class() {
|
28 |
require_once( plugin_dir_path( __FILE__ ) . 'classes/class.cptui_admin_ui.php' );
|
|
|
29 |
}
|
30 |
add_action( 'init', 'cptui_load_ui_class' );
|
31 |
|
@@ -45,7 +46,7 @@ register_deactivation_hook( __FILE__, 'cptui_deactivation' );
|
|
45 |
* @since 0.8.0
|
46 |
*/
|
47 |
function cptui_load_textdomain() {
|
48 |
-
load_plugin_textdomain( '
|
49 |
}
|
50 |
add_action( 'init', 'cptui_load_textdomain' );
|
51 |
|
@@ -57,16 +58,16 @@ add_action( 'init', 'cptui_load_textdomain' );
|
|
57 |
* @since 0.1.0
|
58 |
*/
|
59 |
function cptui_plugin_menu() {
|
60 |
-
add_menu_page( __( 'Custom Post Types', '
|
61 |
-
add_submenu_page( 'cptui_main_menu', __( 'Add/Edit Post Types', '
|
62 |
-
add_submenu_page( 'cptui_main_menu', __( 'Add/Edit Taxonomies', '
|
63 |
-
add_submenu_page( 'cptui_main_menu', __( 'Registered Types and Taxes', '
|
64 |
-
add_submenu_page( 'cptui_main_menu', __( 'Import/Export', '
|
65 |
-
add_submenu_page( 'cptui_main_menu', __( 'Help/Support', '
|
66 |
|
67 |
# Remove the default one so we can add our customized version.
|
68 |
remove_submenu_page('cptui_main_menu', 'cptui_main_menu');
|
69 |
-
add_submenu_page( 'cptui_main_menu', __( 'About CPT UI', '
|
70 |
}
|
71 |
add_action( 'admin_menu', 'cptui_plugin_menu' );
|
72 |
|
@@ -85,6 +86,10 @@ function cptui_create_submenus() {
|
|
85 |
add_action( 'init', 'cptui_create_submenus' );
|
86 |
|
87 |
function cptui_add_styles() {
|
|
|
|
|
|
|
|
|
88 |
wp_enqueue_style( 'cptui-css', plugins_url( 'css/cptui.css', __FILE__ ) );
|
89 |
}
|
90 |
add_action( 'admin_enqueue_scripts', 'cptui_add_styles' );
|
@@ -143,9 +148,15 @@ function cptui_register_single_post_type( $post_type = array() ) {
|
|
143 |
$post_type['supports'] = array_merge( $post_type['supports'], $user_supports_params );
|
144 |
}
|
145 |
|
|
|
146 |
if ( ! empty( $post_type['custom_supports'] ) ) {
|
147 |
$custom = explode( ',', $post_type['custom_supports'] );
|
148 |
foreach( $custom as $part ) {
|
|
|
|
|
|
|
|
|
|
|
149 |
$post_type['supports'][] = $part;
|
150 |
}
|
151 |
}
|
@@ -192,26 +203,46 @@ function cptui_register_single_post_type( $post_type = array() ) {
|
|
192 |
if ( in_array( $post_type['query_var'], array( 'true', 'false', '0', '1' ) ) ) {
|
193 |
$post_type['query_var'] = get_disp_boolean( $post_type['query_var'] );
|
194 |
}
|
|
|
|
|
|
|
195 |
|
196 |
$menu_position = null;
|
197 |
if ( !empty( $post_type['menu_position'] ) ) {
|
198 |
$menu_position = (int) $post_type['menu_position'];
|
199 |
}
|
200 |
|
|
|
201 |
if ( ! empty( $post_type['exclude_from_search'] ) ) {
|
202 |
$exclude_from_search = get_disp_boolean( $post_type['exclude_from_search'] );
|
203 |
} else {
|
204 |
-
$public = get_disp_boolean( $post_type['public'] );
|
205 |
$exclude_from_search = ( false === $public ) ? true : false;
|
206 |
}
|
207 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
$args = array(
|
209 |
'labels' => $labels,
|
210 |
'description' => $post_type['description'],
|
211 |
'public' => get_disp_boolean( $post_type['public'] ),
|
212 |
'show_ui' => get_disp_boolean( $post_type['show_ui'] ),
|
|
|
213 |
'has_archive' => $has_archive,
|
214 |
'show_in_menu' => $show_in_menu,
|
|
|
|
|
215 |
'exclude_from_search' => $exclude_from_search,
|
216 |
'capability_type' => $post_type['capability_type'],
|
217 |
'map_meta_cap' => $post_type['map_meta_cap'],
|
@@ -224,6 +255,10 @@ function cptui_register_single_post_type( $post_type = array() ) {
|
|
224 |
'taxonomies' => $post_type['taxonomies']
|
225 |
);
|
226 |
|
|
|
|
|
|
|
|
|
227 |
/**
|
228 |
* Filters the arguments used for a post type right before registering.
|
229 |
*
|
@@ -294,14 +329,22 @@ function cptui_register_single_taxonomy( $taxonomy = array() ) {
|
|
294 |
|
295 |
$show_admin_column = ( !empty( $taxonomy['show_admin_column'] ) && false !== get_disp_boolean( $taxonomy['show_admin_column'] ) ) ? true : false;
|
296 |
|
|
|
|
|
|
|
|
|
|
|
297 |
$args = array(
|
298 |
'labels' => $labels,
|
299 |
'label' => $taxonomy['label'],
|
|
|
300 |
'hierarchical' => get_disp_boolean( $taxonomy['hierarchical'] ),
|
301 |
'show_ui' => get_disp_boolean( $taxonomy['show_ui'] ),
|
302 |
'query_var' => $taxonomy['query_var'],
|
303 |
'rewrite' => $rewrite,
|
304 |
-
'show_admin_column' => $show_admin_column
|
|
|
|
|
305 |
);
|
306 |
|
307 |
$object_type = ( !empty( $taxonomy['object_types'] ) ) ? $taxonomy['object_types'] : '';
|
@@ -336,57 +379,74 @@ function cptui_settings() { ?>
|
|
336 |
* @since 1.0.0
|
337 |
*/
|
338 |
do_action( 'cptui_main_page_start' ); ?>
|
339 |
-
<h1><?php _e( 'Custom Post Type UI', '
|
340 |
|
341 |
<div class="about-text cptui-about-text">
|
342 |
-
<?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.', '
|
343 |
</div>
|
344 |
-
|
345 |
<div class="changelog about-integrations">
|
346 |
<div class="cptui-feature feature-section col three-col">
|
|
|
347 |
<div>
|
348 |
-
<
|
349 |
-
<p><?php _e( '
|
350 |
</div>
|
351 |
<div>
|
352 |
-
<
|
353 |
-
<p><?php _e( '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
354 |
</div>
|
355 |
<div class="last-feature">
|
356 |
-
<
|
357 |
-
<p><?php _e( '
|
358 |
</div>
|
359 |
</div>
|
360 |
</div>
|
361 |
|
362 |
-
<
|
363 |
<table border="0">
|
364 |
<tr>
|
365 |
<td class="one-third valign">
|
366 |
-
<
|
367 |
<a href="http://bit.ly/prowp3" target="_blank">
|
368 |
-
<img src="<?php echo plugins_url( '/images/professional-wordpress-thirdedition.jpg', __FILE__ ); ?>" width="200">
|
369 |
</a>
|
370 |
<br />
|
371 |
-
<p><?php _e( 'The leading book on WordPress design and development! Brand new third edition!', '
|
372 |
</td>
|
373 |
<td class="one-third valign">
|
374 |
-
<
|
375 |
<a href="http://amzn.to/plugindevbook" target="_blank">
|
376 |
-
<img src="<?php echo plugins_url( '/images/professional-wordpress-plugin-development.png', __FILE__ ); ?>" width="200">
|
377 |
</a>
|
378 |
<br />
|
379 |
-
<p><?php _e( 'Highest rated WordPress development book on Amazon!', '
|
380 |
</td>
|
381 |
<td class="one-third valign">
|
382 |
-
<
|
383 |
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
384 |
<input type="hidden" name="cmd" value="_s-xclick">
|
385 |
<input type="hidden" name="hosted_button_id" value="YJEDXPHE49Q3U">
|
386 |
-
<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!', '
|
387 |
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
388 |
</form>
|
389 |
-
<p><?php _e( 'Please donate to the development of Custom Post Type UI:', '
|
390 |
</td>
|
391 |
</tr>
|
392 |
</table>
|
@@ -412,10 +472,10 @@ function cptui_footer( $original = '' ) {
|
|
412 |
}
|
413 |
|
414 |
return sprintf(
|
415 |
-
__( '%s version %s by %s', '
|
416 |
sprintf(
|
417 |
'<a target="_blank" href="http://wordpress.org/support/plugin/custom-post-type-ui">%s</a>',
|
418 |
-
__( 'Custom Post Type UI', '
|
419 |
),
|
420 |
CPT_VERSION,
|
421 |
'<a href="http://webdevstudios.com" target="_blank">WebDevStudios</a>'
|
@@ -423,10 +483,10 @@ function cptui_footer( $original = '' ) {
|
|
423 |
' - '.
|
424 |
sprintf(
|
425 |
'<a href="https://github.com/WebDevStudios/custom-post-type-ui/issues" target="_blank">%s</a>',
|
426 |
-
__( 'Please Report Bugs', '
|
427 |
).
|
428 |
' '.
|
429 |
-
__( 'Follow on Twitter:', '
|
430 |
sprintf(
|
431 |
' %s · %s · %s',
|
432 |
'<a href="http://twitter.com/tw2113" target="_blank">Michael</a>',
|
@@ -484,17 +544,17 @@ function disp_boolean( $booText ) {
|
|
484 |
function cptui_settings_tab_menu( $page = 'post_types' ) {
|
485 |
|
486 |
# initiate our arrays with default classes
|
487 |
-
$tab1 = $tab2 = $tab3 = array( 'nav-tab' );
|
488 |
$has = false;
|
489 |
|
490 |
if ( 'importexport' == $page ) :
|
491 |
-
$title = __( 'Import/Export', '
|
492 |
elseif ( 'taxonomies' == $page ) :
|
493 |
-
$title = __( 'Manage Taxonomies', '
|
494 |
$taxes = get_option( 'cptui_taxonomies' );
|
495 |
$has = ( !empty( $taxes ) ) ? true : false;
|
496 |
else :
|
497 |
-
$title = __( 'Manage Post Types', '
|
498 |
$types = get_option( 'cptui_post_types' );
|
499 |
$has = ( !empty( $types ) ) ? true : false;
|
500 |
endif;
|
@@ -504,39 +564,42 @@ function cptui_settings_tab_menu( $page = 'post_types' ) {
|
|
504 |
$tab2[] = 'nav-tab-active';
|
505 |
} elseif ( 'get_code' == $_GET['action'] ) {
|
506 |
$tab3[] = 'nav-tab-active';
|
|
|
|
|
507 |
}
|
508 |
} else {
|
509 |
$tab1[] = 'nav-tab-active';
|
510 |
}
|
511 |
|
512 |
# implode our arrays for class attributes
|
513 |
-
$tab1 = implode( ' ', $tab1 ); $tab2 = implode( ' ', $tab2 ); $tab3 = implode( ' ', $tab3 );
|
514 |
|
515 |
?>
|
|
|
516 |
<h2 class="nav-tab-wrapper">
|
517 |
-
<?php
|
518 |
-
|
519 |
# Import/Export area is getting different tabs, so we need to separate out.
|
520 |
if ( 'importexport' != $page ) {
|
521 |
if ( 'post_types' == $page ) {
|
522 |
?>
|
523 |
-
<a class="<?php echo $tab1; ?>" href="<?php echo admin_url( 'admin.php?page=cptui_manage_' . $page ); ?>"><?php _e( 'Add New Post Type', '
|
524 |
<?php
|
525 |
if ( $has ) { ?>
|
526 |
-
<a class="<?php echo $tab2; ?>" href="<?php echo esc_url( add_query_arg( array( 'action' => 'edit' ), admin_url( 'admin.php?page=cptui_manage_' . $page ) ) ); ?>"><?php _e( 'Edit Post Types', '
|
527 |
<?php }
|
528 |
} elseif ( 'taxonomies' == $page ) {
|
529 |
?>
|
530 |
-
<a class="<?php echo $tab1; ?>" href="<?php echo admin_url( 'admin.php?page=cptui_manage_' . $page ); ?>"><?php _e( 'Add New Taxonomy', '
|
531 |
<?php
|
532 |
if ( $has ) { ?>
|
533 |
-
<a class="<?php echo $tab2; ?>" href="<?php echo esc_url( add_query_arg( array( 'action' => 'edit' ), admin_url( 'admin.php?page=cptui_manage_' . $page ) ) ); ?>"><?php _e( 'Edit Taxonomies', '
|
534 |
<?php }
|
535 |
}
|
536 |
} else { ?>
|
537 |
-
<a class="<?php echo $tab1; ?>" href="<?php echo admin_url( 'admin.php?page=cptui_' . $page ); ?>"><?php _e( 'Post Types', '
|
538 |
-
<a class="<?php echo $tab2; ?>" href="<?php echo esc_url( add_query_arg( array( 'action' => 'taxonomies' ), admin_url( 'admin.php?page=cptui_' . $page ) ) ); ?>"><?php _e( 'Taxonomies', '
|
539 |
-
<a class="<?php echo $tab3; ?>" href="<?php echo esc_url( add_query_arg( array( 'action' => 'get_code' ), admin_url( 'admin.php?page=cptui_' . $page ) ) ); ?>"><?php _e( 'Get Code', '
|
|
|
540 |
<?php
|
541 |
}
|
542 |
|
@@ -619,7 +682,7 @@ function cptui_edit_plugin_list_links( $links ) {
|
|
619 |
|
620 |
# Add our custom links to the returned array value.
|
621 |
return array_merge( array(
|
622 |
-
'<a href="' . admin_url( 'admin.php?page=cptui_main_menu' ) . '">' . __( 'Settings', '
|
623 |
), $links );
|
624 |
}
|
625 |
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'cptui_edit_plugin_list_links' );
|
@@ -648,27 +711,27 @@ function cptui_admin_notices( $action = '', $object_type = '', $success = true ,
|
|
648 |
|
649 |
if ( 'add' == $action ) {
|
650 |
if ( $success ) {
|
651 |
-
$message .= sprintf( __( '%s has been successfully added', '
|
652 |
} else {
|
653 |
-
$message .= sprintf( __( '%s has failed to be added', '
|
654 |
}
|
655 |
} elseif ( 'update' == $action ) {
|
656 |
if ( $success ) {
|
657 |
-
$message .= sprintf( __( '%s has been successfully updated', '
|
658 |
} else {
|
659 |
-
$message .= sprintf( __( '%s has failed to be updated', '
|
660 |
}
|
661 |
} elseif ( 'delete' == $action ) {
|
662 |
if ( $success ) {
|
663 |
-
$message .= sprintf( __( '%s has been successfully deleted', '
|
664 |
} else {
|
665 |
-
$message .= sprintf( __( '%s has failed to be deleted', '
|
666 |
}
|
667 |
} elseif ( 'import' == $action ) {
|
668 |
if ( $success ) {
|
669 |
-
$message .= sprintf( __( '%s has been successfully imported', '
|
670 |
} else {
|
671 |
-
$message .= sprintf( __( '%s has failed to be imported', '
|
672 |
}
|
673 |
} elseif ( 'error' == $action ) {
|
674 |
if ( !empty( $custom ) ) {
|
@@ -751,30 +814,41 @@ function cptui_get_preserved_label( $type = '', $key = '', $plural = '', $singul
|
|
751 |
|
752 |
$preserved_labels = array(
|
753 |
'post_types' => array(
|
754 |
-
'add_new_item' => sprintf( __( 'Add new %s', '
|
755 |
-
'edit_item' => sprintf( __( 'Edit %s', '
|
756 |
-
'new_item' => sprintf( __( 'New %s', '
|
757 |
-
'view_item' => sprintf( __( 'View %s', '
|
758 |
-
'all_items' => sprintf( __( 'All %s', '
|
759 |
-
'search_items' => sprintf( __( 'Search %s', '
|
760 |
-
'not_found' => sprintf( __( 'No %s found.', '
|
761 |
-
'not_found_in_trash' => sprintf( __( 'No %s found in trash.', '
|
762 |
),
|
763 |
'taxonomies' => array(
|
764 |
-
'search_items' => sprintf( __( 'Search %s', '
|
765 |
-
'popular_items' => sprintf( __( 'Popular %s', '
|
766 |
-
'all_items' => sprintf( __( 'All %s', '
|
767 |
-
'parent_item' => sprintf( __( 'Parent %s', '
|
768 |
-
'parent_item_colon' => sprintf( __( 'Parent %s:', '
|
769 |
-
'edit_item' => sprintf( __( 'Edit %s', '
|
770 |
-
'update_item' => sprintf( __( 'Update %s', '
|
771 |
-
'add_new_item' => sprintf( __( 'Add new %s', '
|
772 |
-
'new_item_name' => sprintf( __( 'New %s name', '
|
773 |
-
'separate_items_with_commas' => sprintf( __( 'Separate %s with commas', '
|
774 |
-
'add_or_remove_items' => sprintf( __( 'Add or remove %s', '
|
775 |
-
'choose_from_most_used' => sprintf( __( 'Choose from the most used %s', '
|
776 |
)
|
777 |
);
|
778 |
|
779 |
return $preserved_labels[ $type ][ $key ];
|
780 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
Plugin URI: https://github.com/WebDevStudios/custom-post-type-ui/
|
5 |
Description: Admin panel for creating custom post types and custom taxonomies in WordPress
|
6 |
Author: WebDevStudios
|
7 |
+
Version: 1.2.0
|
8 |
Author URI: http://webdevstudios.com/
|
9 |
+
Text Domain: custom-post-type-ui
|
10 |
Domain Path: /languages
|
11 |
License: GPLv2
|
12 |
*/
|
16 |
exit;
|
17 |
}
|
18 |
|
19 |
+
define( 'CPT_VERSION', '1.2.0' );
|
20 |
define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
|
21 |
|
22 |
/**
|
26 |
*/
|
27 |
function cptui_load_ui_class() {
|
28 |
require_once( plugin_dir_path( __FILE__ ) . 'classes/class.cptui_admin_ui.php' );
|
29 |
+
require_once( plugin_dir_path( __FILE__ ) . 'classes/class.cptui_debug_info.php' );
|
30 |
}
|
31 |
add_action( 'init', 'cptui_load_ui_class' );
|
32 |
|
46 |
* @since 0.8.0
|
47 |
*/
|
48 |
function cptui_load_textdomain() {
|
49 |
+
load_plugin_textdomain( 'custom-post-type-ui', false, basename( dirname( __FILE__ ) ) . '/languages' );
|
50 |
}
|
51 |
add_action( 'init', 'cptui_load_textdomain' );
|
52 |
|
58 |
* @since 0.1.0
|
59 |
*/
|
60 |
function cptui_plugin_menu() {
|
61 |
+
add_menu_page( __( 'Custom Post Types', 'custom-post-type-ui' ), __( 'CPT UI', 'custom-post-type-ui' ), 'manage_options', 'cptui_main_menu', 'cptui_settings', cptui_menu_icon() );
|
62 |
+
add_submenu_page( 'cptui_main_menu', __( 'Add/Edit Post Types', 'custom-post-type-ui' ), __( 'Add/Edit Post Types', 'custom-post-type-ui' ), 'manage_options', 'cptui_manage_post_types', 'cptui_manage_post_types' );
|
63 |
+
add_submenu_page( 'cptui_main_menu', __( 'Add/Edit Taxonomies', 'custom-post-type-ui' ), __( 'Add/Edit Taxonomies', 'custom-post-type-ui' ), 'manage_options', 'cptui_manage_taxonomies', 'cptui_manage_taxonomies' );
|
64 |
+
add_submenu_page( 'cptui_main_menu', __( 'Registered Types and Taxes', 'custom-post-type-ui' ), __( 'Registered Types/Taxes', 'custom-post-type-ui' ), 'manage_options', 'cptui_listings', 'cptui_listings' );
|
65 |
+
add_submenu_page( 'cptui_main_menu', __( 'Import/Export', 'custom-post-type-ui' ), __( 'Import/Export', 'custom-post-type-ui' ), 'manage_options', 'cptui_importexport', 'cptui_importexport' );
|
66 |
+
add_submenu_page( 'cptui_main_menu', __( 'Help/Support', 'custom-post-type-ui' ), __( 'Help/Support', 'custom-post-type-ui' ), 'manage_options', 'cptui_support', 'cptui_support' );
|
67 |
|
68 |
# Remove the default one so we can add our customized version.
|
69 |
remove_submenu_page('cptui_main_menu', 'cptui_main_menu');
|
70 |
+
add_submenu_page( 'cptui_main_menu', __( 'About CPT UI', 'custom-post-type-ui' ), __( 'About CPT UI', 'custom-post-type-ui' ), 'manage_options', 'cptui_main_menu', 'cptui_settings' );
|
71 |
}
|
72 |
add_action( 'admin_menu', 'cptui_plugin_menu' );
|
73 |
|
86 |
add_action( 'init', 'cptui_create_submenus' );
|
87 |
|
88 |
function cptui_add_styles() {
|
89 |
+
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
90 |
+
return;
|
91 |
+
}
|
92 |
+
|
93 |
wp_enqueue_style( 'cptui-css', plugins_url( 'css/cptui.css', __FILE__ ) );
|
94 |
}
|
95 |
add_action( 'admin_enqueue_scripts', 'cptui_add_styles' );
|
148 |
$post_type['supports'] = array_merge( $post_type['supports'], $user_supports_params );
|
149 |
}
|
150 |
|
151 |
+
$yarpp = false; # Prevent notices.
|
152 |
if ( ! empty( $post_type['custom_supports'] ) ) {
|
153 |
$custom = explode( ',', $post_type['custom_supports'] );
|
154 |
foreach( $custom as $part ) {
|
155 |
+
# We'll handle YARPP separately.
|
156 |
+
if ( in_array( $part, array( 'YARPP', 'yarpp' ) ) ) {
|
157 |
+
$yarpp = true;
|
158 |
+
continue;
|
159 |
+
}
|
160 |
$post_type['supports'][] = $part;
|
161 |
}
|
162 |
}
|
203 |
if ( in_array( $post_type['query_var'], array( 'true', 'false', '0', '1' ) ) ) {
|
204 |
$post_type['query_var'] = get_disp_boolean( $post_type['query_var'] );
|
205 |
}
|
206 |
+
if ( ! empty( $post_type['query_var_slug'] ) ) {
|
207 |
+
$post_type['query_var'] = $post_type['query_var_slug'];
|
208 |
+
}
|
209 |
|
210 |
$menu_position = null;
|
211 |
if ( !empty( $post_type['menu_position'] ) ) {
|
212 |
$menu_position = (int) $post_type['menu_position'];
|
213 |
}
|
214 |
|
215 |
+
$public = get_disp_boolean( $post_type['public'] );
|
216 |
if ( ! empty( $post_type['exclude_from_search'] ) ) {
|
217 |
$exclude_from_search = get_disp_boolean( $post_type['exclude_from_search'] );
|
218 |
} else {
|
|
|
219 |
$exclude_from_search = ( false === $public ) ? true : false;
|
220 |
}
|
221 |
|
222 |
+
if ( empty( $post_type['show_in_nav_menus'] ) ) {
|
223 |
+
// Defaults to value of public.
|
224 |
+
$post_type['show_in_nav_menus'] = $public;
|
225 |
+
}
|
226 |
+
|
227 |
+
if ( empty( $post_type['show_in_rest'] ) ) {
|
228 |
+
$post_type['show_in_rest'] = false;
|
229 |
+
}
|
230 |
+
|
231 |
+
$rest_base = null;
|
232 |
+
if ( ! empty( $post_type['rest_base'] ) ) {
|
233 |
+
$rest_base = $post_type['rest_base'];
|
234 |
+
}
|
235 |
+
|
236 |
$args = array(
|
237 |
'labels' => $labels,
|
238 |
'description' => $post_type['description'],
|
239 |
'public' => get_disp_boolean( $post_type['public'] ),
|
240 |
'show_ui' => get_disp_boolean( $post_type['show_ui'] ),
|
241 |
+
'show_in_nav_menus' => get_disp_boolean( $post_type['show_in_nav_menus'] ),
|
242 |
'has_archive' => $has_archive,
|
243 |
'show_in_menu' => $show_in_menu,
|
244 |
+
'show_in_rest' => get_disp_boolean( $post_type['show_in_rest'] ),
|
245 |
+
'rest_base' => $rest_base,
|
246 |
'exclude_from_search' => $exclude_from_search,
|
247 |
'capability_type' => $post_type['capability_type'],
|
248 |
'map_meta_cap' => $post_type['map_meta_cap'],
|
255 |
'taxonomies' => $post_type['taxonomies']
|
256 |
);
|
257 |
|
258 |
+
if ( true === $yarpp ) {
|
259 |
+
$args['yarpp_support'] = $yarpp;
|
260 |
+
}
|
261 |
+
|
262 |
/**
|
263 |
* Filters the arguments used for a post type right before registering.
|
264 |
*
|
329 |
|
330 |
$show_admin_column = ( !empty( $taxonomy['show_admin_column'] ) && false !== get_disp_boolean( $taxonomy['show_admin_column'] ) ) ? true : false;
|
331 |
|
332 |
+
$rest_base = null;
|
333 |
+
if ( ! empty( $taxonomy['rest_base'] ) ) {
|
334 |
+
$rest_base = $taxonomy['rest_base'];
|
335 |
+
}
|
336 |
+
|
337 |
$args = array(
|
338 |
'labels' => $labels,
|
339 |
'label' => $taxonomy['label'],
|
340 |
+
'description' => $taxonomy['description'],
|
341 |
'hierarchical' => get_disp_boolean( $taxonomy['hierarchical'] ),
|
342 |
'show_ui' => get_disp_boolean( $taxonomy['show_ui'] ),
|
343 |
'query_var' => $taxonomy['query_var'],
|
344 |
'rewrite' => $rewrite,
|
345 |
+
'show_admin_column' => $show_admin_column,
|
346 |
+
'show_in_rest' => get_disp_boolean( $taxonomy['show_in_rest'] ),
|
347 |
+
'rest_base' => $rest_base,
|
348 |
);
|
349 |
|
350 |
$object_type = ( !empty( $taxonomy['object_types'] ) ) ? $taxonomy['object_types'] : '';
|
379 |
* @since 1.0.0
|
380 |
*/
|
381 |
do_action( 'cptui_main_page_start' ); ?>
|
382 |
+
<h1><?php _e( 'Custom Post Type UI', 'custom-post-type-ui' ); ?> <?php echo CPT_VERSION; ?></h1>
|
383 |
|
384 |
<div class="about-text cptui-about-text">
|
385 |
+
<?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.', 'custom-post-type-ui' ); ?>
|
386 |
</div>
|
387 |
+
<h2><?php printf( __( 'What\'s new in version %s', 'custom-post-type-ui' ), CPT_VERSION ); ?></h2>
|
388 |
<div class="changelog about-integrations">
|
389 |
<div class="cptui-feature feature-section col three-col">
|
390 |
+
|
391 |
<div>
|
392 |
+
<h2><?php _e( 'Updated internationalization', 'custom-post-type-ui' ); ?></h2>
|
393 |
+
<p><?php _e( 'Our textdomain now matches the plugin slug from our WordPress.org repository to help aid in translating Custom Post Type UI', 'custom-post-type-ui' ); ?></p>
|
394 |
</div>
|
395 |
<div>
|
396 |
+
<h2><?php _e( 'Debugging information', 'custom-post-type-ui' ); ?></h2>
|
397 |
+
<p><?php _e( 'We have added a new "Debug Info" tab to the Import/Export area to aid in debugging issues with Custom Post Type UI.', 'custom-post-type-ui' ); ?></p>
|
398 |
+
</div>
|
399 |
+
<div>
|
400 |
+
<h2><?php _e( 'Improved accessibility', 'custom-post-type-ui' ); ?></h2>
|
401 |
+
<p><?php _e( 'A lot of work was done in the areas of accessibility to help aid users who need it. If you have feedback on where it could be further improved, let us know.', 'custom-post-type-ui' ); ?></p>
|
402 |
+
</div>
|
403 |
+
<div>
|
404 |
+
<h2><?php _e( 'WP REST API support', 'custom-post-type-ui' ); ?></h2>
|
405 |
+
<p><?php _e( 'We now have support for the required fields for the WP REST API. Now you can add your Custom Post Type UI post types and taxonomies to the available REST API lists.', 'custom-post-type-ui' ); ?></p>
|
406 |
+
</div>
|
407 |
+
<div>
|
408 |
+
<h2><?php _e( 'More parameter support', 'custom-post-type-ui' ); ?></h2>
|
409 |
+
<p><?php _e( 'We have added more parameters for greater customization of your post type and taxonomy settings.', 'custom-post-type-ui' ); ?></p>
|
410 |
+
</div>
|
411 |
+
<div>
|
412 |
+
<h2><?php _e( 'New individual "Get Code" sections', 'custom-post-type-ui' ); ?></h2>
|
413 |
+
<p><?php _e( 'The "Get Code" area now has support for copy/paste of individual post types and taxonomies.', 'custom-post-type-ui' ); ?></p>
|
414 |
</div>
|
415 |
<div class="last-feature">
|
416 |
+
<h2><?php _e( 'Template hierarchy reference', 'custom-post-type-ui' ); ?></h2>
|
417 |
+
<p><?php _e( 'To help aid your development with post types and taxonomies, we have added a quick reference list of common template files you can use in your theme. They will be listed on the "Registered Types/Taxes" screen.', 'custom-post-type-ui' ); ?></p>
|
418 |
</div>
|
419 |
</div>
|
420 |
</div>
|
421 |
|
422 |
+
<h1><?php _e( 'Help Support This Plugin!', 'custom-post-type-ui' ); ?></h1>
|
423 |
<table border="0">
|
424 |
<tr>
|
425 |
<td class="one-third valign">
|
426 |
+
<h2><?php _e( 'Professional WordPress<br />Third Edition', 'custom-post-type-ui' ); ?></h2>
|
427 |
<a href="http://bit.ly/prowp3" target="_blank">
|
428 |
+
<img src="<?php echo plugins_url( '/images/professional-wordpress-thirdedition.jpg', __FILE__ ); ?>" width="200" alt="<?php esc_attr_e( 'Professional WordPress Design and Development book cover.', 'custom-post-type-ui' ); ?>">
|
429 |
</a>
|
430 |
<br />
|
431 |
+
<p><?php _e( 'The leading book on WordPress design and development! Brand new third edition!', 'custom-post-type-ui' ); ?></p>
|
432 |
</td>
|
433 |
<td class="one-third valign">
|
434 |
+
<h2><?php _e( 'Professional WordPress<br />Plugin Development', 'custom-post-type-ui' ); ?></h2>
|
435 |
<a href="http://amzn.to/plugindevbook" target="_blank">
|
436 |
+
<img src="<?php echo plugins_url( '/images/professional-wordpress-plugin-development.png', __FILE__ ); ?>" width="200" alt="<?php esc_attr_e( 'Professional WordPress Pluing Development book cover.', 'custom-post-type-ui' ); ?>">
|
437 |
</a>
|
438 |
<br />
|
439 |
+
<p><?php _e( 'Highest rated WordPress development book on Amazon!', 'custom-post-type-ui' ); ?></p>
|
440 |
</td>
|
441 |
<td class="one-third valign">
|
442 |
+
<h2><?php _e( 'PayPal Donation', 'custom-post-type-ui' ); ?></h2>
|
443 |
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
444 |
<input type="hidden" name="cmd" value="_s-xclick">
|
445 |
<input type="hidden" name="hosted_button_id" value="YJEDXPHE49Q3U">
|
446 |
+
<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!', 'custom-post-type-ui' ); ?>">
|
447 |
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
448 |
</form>
|
449 |
+
<p><?php _e( 'Please donate to the development of Custom Post Type UI:', 'custom-post-type-ui' ); ?></p>
|
450 |
</td>
|
451 |
</tr>
|
452 |
</table>
|
472 |
}
|
473 |
|
474 |
return sprintf(
|
475 |
+
__( '%s version %s by %s', 'custom-post-type-ui' ),
|
476 |
sprintf(
|
477 |
'<a target="_blank" href="http://wordpress.org/support/plugin/custom-post-type-ui">%s</a>',
|
478 |
+
__( 'Custom Post Type UI', 'custom-post-type-ui' )
|
479 |
),
|
480 |
CPT_VERSION,
|
481 |
'<a href="http://webdevstudios.com" target="_blank">WebDevStudios</a>'
|
483 |
' - '.
|
484 |
sprintf(
|
485 |
'<a href="https://github.com/WebDevStudios/custom-post-type-ui/issues" target="_blank">%s</a>',
|
486 |
+
__( 'Please Report Bugs', 'custom-post-type-ui' )
|
487 |
).
|
488 |
' '.
|
489 |
+
__( 'Follow on Twitter:', 'custom-post-type-ui' ).
|
490 |
sprintf(
|
491 |
' %s · %s · %s',
|
492 |
'<a href="http://twitter.com/tw2113" target="_blank">Michael</a>',
|
544 |
function cptui_settings_tab_menu( $page = 'post_types' ) {
|
545 |
|
546 |
# initiate our arrays with default classes
|
547 |
+
$tab1 = $tab2 = $tab3 = $tab4 = array( 'nav-tab' );
|
548 |
$has = false;
|
549 |
|
550 |
if ( 'importexport' == $page ) :
|
551 |
+
$title = __( 'Import/Export', 'custom-post-type-ui' );
|
552 |
elseif ( 'taxonomies' == $page ) :
|
553 |
+
$title = __( 'Manage Taxonomies', 'custom-post-type-ui' );
|
554 |
$taxes = get_option( 'cptui_taxonomies' );
|
555 |
$has = ( !empty( $taxes ) ) ? true : false;
|
556 |
else :
|
557 |
+
$title = __( 'Manage Post Types', 'custom-post-type-ui' );
|
558 |
$types = get_option( 'cptui_post_types' );
|
559 |
$has = ( !empty( $types ) ) ? true : false;
|
560 |
endif;
|
564 |
$tab2[] = 'nav-tab-active';
|
565 |
} elseif ( 'get_code' == $_GET['action'] ) {
|
566 |
$tab3[] = 'nav-tab-active';
|
567 |
+
} elseif ( 'debuginfo' == $_GET['action'] ) {
|
568 |
+
$tab4[] = 'nav-tab-active';
|
569 |
}
|
570 |
} else {
|
571 |
$tab1[] = 'nav-tab-active';
|
572 |
}
|
573 |
|
574 |
# implode our arrays for class attributes
|
575 |
+
$tab1 = implode( ' ', $tab1 ); $tab2 = implode( ' ', $tab2 ); $tab3 = implode( ' ', $tab3 ); $tab4 = implode( ' ', $tab4 );
|
576 |
|
577 |
?>
|
578 |
+
<h1><?php echo $title; ?></h1>
|
579 |
<h2 class="nav-tab-wrapper">
|
580 |
+
<?php
|
|
|
581 |
# Import/Export area is getting different tabs, so we need to separate out.
|
582 |
if ( 'importexport' != $page ) {
|
583 |
if ( 'post_types' == $page ) {
|
584 |
?>
|
585 |
+
<a class="<?php echo $tab1; ?>" href="<?php echo admin_url( 'admin.php?page=cptui_manage_' . $page ); ?>"><?php _e( 'Add New Post Type', 'custom-post-type-ui' ); ?></a>
|
586 |
<?php
|
587 |
if ( $has ) { ?>
|
588 |
+
<a class="<?php echo $tab2; ?>" href="<?php echo esc_url( add_query_arg( array( 'action' => 'edit' ), admin_url( 'admin.php?page=cptui_manage_' . $page ) ) ); ?>"><?php _e( 'Edit Post Types', 'custom-post-type-ui' ); ?></a>
|
589 |
<?php }
|
590 |
} elseif ( 'taxonomies' == $page ) {
|
591 |
?>
|
592 |
+
<a class="<?php echo $tab1; ?>" href="<?php echo admin_url( 'admin.php?page=cptui_manage_' . $page ); ?>"><?php _e( 'Add New Taxonomy', 'custom-post-type-ui' ); ?></a>
|
593 |
<?php
|
594 |
if ( $has ) { ?>
|
595 |
+
<a class="<?php echo $tab2; ?>" href="<?php echo esc_url( add_query_arg( array( 'action' => 'edit' ), admin_url( 'admin.php?page=cptui_manage_' . $page ) ) ); ?>"><?php _e( 'Edit Taxonomies', 'custom-post-type-ui' ); ?></a>
|
596 |
<?php }
|
597 |
}
|
598 |
} else { ?>
|
599 |
+
<a class="<?php echo $tab1; ?>" href="<?php echo admin_url( 'admin.php?page=cptui_' . $page ); ?>"><?php _e( 'Post Types', 'custom-post-type-ui' ); ?></a>
|
600 |
+
<a class="<?php echo $tab2; ?>" href="<?php echo esc_url( add_query_arg( array( 'action' => 'taxonomies' ), admin_url( 'admin.php?page=cptui_' . $page ) ) ); ?>"><?php _e( 'Taxonomies', 'custom-post-type-ui' ); ?></a>
|
601 |
+
<a class="<?php echo $tab3; ?>" href="<?php echo esc_url( add_query_arg( array( 'action' => 'get_code' ), admin_url( 'admin.php?page=cptui_' . $page ) ) ); ?>"><?php _e( 'Get Code', 'custom-post-type-ui' ); ?></a>
|
602 |
+
<a class="<?php echo $tab4; ?>" href="<?php echo esc_url( add_query_arg( array( 'action' => 'debuginfo' ), admin_url( 'admin.php?page=cptui_' . $page ) ) ); ?>"><?php _e( 'Debug Info', 'custom-post-type-ui' ); ?></a>
|
603 |
<?php
|
604 |
}
|
605 |
|
682 |
|
683 |
# Add our custom links to the returned array value.
|
684 |
return array_merge( array(
|
685 |
+
'<a href="' . admin_url( 'admin.php?page=cptui_main_menu' ) . '">' . __( 'Settings', 'custom-post-type-ui' ) . '</a>', '<a href="' . admin_url( 'admin.php?page=cptui_support' ) . '">' . __( 'Help', 'custom-post-type-ui' ) . '</a>'
|
686 |
), $links );
|
687 |
}
|
688 |
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'cptui_edit_plugin_list_links' );
|
711 |
|
712 |
if ( 'add' == $action ) {
|
713 |
if ( $success ) {
|
714 |
+
$message .= sprintf( __( '%s has been successfully added', 'custom-post-type-ui' ), $object_type );
|
715 |
} else {
|
716 |
+
$message .= sprintf( __( '%s has failed to be added', 'custom-post-type-ui' ), $object_type );
|
717 |
}
|
718 |
} elseif ( 'update' == $action ) {
|
719 |
if ( $success ) {
|
720 |
+
$message .= sprintf( __( '%s has been successfully updated', 'custom-post-type-ui' ), $object_type );
|
721 |
} else {
|
722 |
+
$message .= sprintf( __( '%s has failed to be updated', 'custom-post-type-ui' ), $object_type );
|
723 |
}
|
724 |
} elseif ( 'delete' == $action ) {
|
725 |
if ( $success ) {
|
726 |
+
$message .= sprintf( __( '%s has been successfully deleted', 'custom-post-type-ui' ), $object_type );
|
727 |
} else {
|
728 |
+
$message .= sprintf( __( '%s has failed to be deleted', 'custom-post-type-ui' ), $object_type );
|
729 |
}
|
730 |
} elseif ( 'import' == $action ) {
|
731 |
if ( $success ) {
|
732 |
+
$message .= sprintf( __( '%s has been successfully imported', 'custom-post-type-ui' ), $object_type );
|
733 |
} else {
|
734 |
+
$message .= sprintf( __( '%s has failed to be imported', 'custom-post-type-ui' ), $object_type );
|
735 |
}
|
736 |
} elseif ( 'error' == $action ) {
|
737 |
if ( !empty( $custom ) ) {
|
814 |
|
815 |
$preserved_labels = array(
|
816 |
'post_types' => array(
|
817 |
+
'add_new_item' => sprintf( __( 'Add new %s', 'custom-post-type-ui' ), $singular ),
|
818 |
+
'edit_item' => sprintf( __( 'Edit %s', 'custom-post-type-ui' ), $singular ),
|
819 |
+
'new_item' => sprintf( __( 'New %s', 'custom-post-type-ui' ), $singular ),
|
820 |
+
'view_item' => sprintf( __( 'View %s', 'custom-post-type-ui' ), $singular ),
|
821 |
+
'all_items' => sprintf( __( 'All %s', 'custom-post-type-ui' ), $plural ),
|
822 |
+
'search_items' => sprintf( __( 'Search %s', 'custom-post-type-ui' ), $plural ),
|
823 |
+
'not_found' => sprintf( __( 'No %s found.', 'custom-post-type-ui' ), $plural ),
|
824 |
+
'not_found_in_trash' => sprintf( __( 'No %s found in trash.', 'custom-post-type-ui' ), $plural )
|
825 |
),
|
826 |
'taxonomies' => array(
|
827 |
+
'search_items' => sprintf( __( 'Search %s', 'custom-post-type-ui' ), $plural ),
|
828 |
+
'popular_items' => sprintf( __( 'Popular %s', 'custom-post-type-ui' ), $plural ),
|
829 |
+
'all_items' => sprintf( __( 'All %s', 'custom-post-type-ui' ), $plural ),
|
830 |
+
'parent_item' => sprintf( __( 'Parent %s', 'custom-post-type-ui' ), $singular ),
|
831 |
+
'parent_item_colon' => sprintf( __( 'Parent %s:', 'custom-post-type-ui' ), $singular ),
|
832 |
+
'edit_item' => sprintf( __( 'Edit %s', 'custom-post-type-ui' ), $singular ),
|
833 |
+
'update_item' => sprintf( __( 'Update %s', 'custom-post-type-ui' ), $singular ),
|
834 |
+
'add_new_item' => sprintf( __( 'Add new %s', 'custom-post-type-ui' ), $singular ),
|
835 |
+
'new_item_name' => sprintf( __( 'New %s name', 'custom-post-type-ui' ), $singular ),
|
836 |
+
'separate_items_with_commas' => sprintf( __( 'Separate %s with commas', 'custom-post-type-ui' ), $plural ),
|
837 |
+
'add_or_remove_items' => sprintf( __( 'Add or remove %s', 'custom-post-type-ui' ), $plural ),
|
838 |
+
'choose_from_most_used' => sprintf( __( 'Choose from the most used %s', 'custom-post-type-ui' ), $plural )
|
839 |
)
|
840 |
);
|
841 |
|
842 |
return $preserved_labels[ $type ][ $key ];
|
843 |
}
|
844 |
+
|
845 |
+
/**
|
846 |
+
* Returns SVG icon for custom menu icon
|
847 |
+
*
|
848 |
+
* @since 1.2.0
|
849 |
+
*
|
850 |
+
* @return string
|
851 |
+
*/
|
852 |
+
function cptui_menu_icon() {
|
853 |
+
return 'data:image/svg+xml;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABC9pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE0IDc5LjE1Njc5NywgMjAxNC8wOC8yMC0wOTo1MzowMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wUmlnaHRzPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvcmlnaHRzLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1wUmlnaHRzOk1hcmtlZD0iVHJ1ZSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo5NkE3NTc5MUJCOTIxMUU0QUVENDlFMUYwOEMyRDgwQyIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo5NkE3NTc5MEJCOTIxMUU0QUVENDlFMUYwOEMyRDgwQyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxNCAoV2luZG93cykiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmRpZDo5NjMzOTU2ODgyMjhFMDExOTg5Q0MwQTFBRDAyQjVDMiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo5NjMzOTU2ODgyMjhFMDExOTg5Q0MwQTFBRDAyQjVDMiIvPiA8ZGM6cmlnaHRzPiA8cmRmOkFsdD4gPHJkZjpsaSB4bWw6bGFuZz0ieC1kZWZhdWx0Ij5DcmVhdGl2ZSBDb21tb25zIEF0dHJpYnV0aW9uIE5vbi1Db21tZXJjaWFsIE5vIERlcml2YXRpdmVzPC9yZGY6bGk+IDwvcmRmOkFsdD4gPC9kYzpyaWdodHM+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+hXhu9wAAAjdJREFUeNrcWYFtwjAQBNQB0g3oBukEDRPUnYCwQRmhE8AGhgnKBh0h2YBuQDZIbclI6GXH7/c7cfrSCxEcuHv+7x3/su/7xZxttZi5/XsChfJP5Y3ynskFKwNdAw4Xym89r9UDv0dy1wd1z2/s4F0ERGbgC+WN8iuGQJFZ2tzB303ANbCIa1O4XLZTfiLeq3H8KC8frr3BRU/g/dbzpRflZ+Wd8ta8pjAbeG2VT4VGL0JE2kArXClUeCJ/GqEvuSL/aGtKJz5nAv5oUtdKYCifuwzAa+Bf8OIS7EZdW9PnCQoWBnADox+SQhjwtQcEFby2vQ18iAr5lEOadboJlkxqczcZspWgEJBgLYYEFnwDZZObgHSsHyKBBY/6N2MISEL0sODRjZNK4IAEocGuzT1lAHiJ7dxYGV0CtZEJe0JrJBMl2xQCN+YdK0rvHSYoD/WXhNHfB4DXmfBNrQGZ4KlNBuxYaxcwThUKsYYCPpZAiCT69H5NAR9LgIuEoILnIBBL4hCQOlajyGjMrhLq/WvIGVzKs9FQ/dbrP3I73A0hoY9bfnM8ncaQOHI2Q64awNZEaN6PVgOYf4It78cacEASG668HyOFUlhUClUTg69iU6hYZGpYAtuJcb5jZ2Q5nE5DL4eGLrCIG89+Zqz5QPUQ+aGhSwsJ6JHqYUZj4j0koJlecy5a0GdeVpaLu5lEX+PsVo48380A/MWmQqkn9RzPz2LoZM7WwGrTB8oJI94a9TtB5fsTYABOp6Z0XZr87gAAAABJRU5ErkJggg==';
|
854 |
+
}
|
inc/import_export.php
CHANGED
@@ -20,6 +20,8 @@ function cptui_importexport() {
|
|
20 |
$tab = 'taxonomies';
|
21 |
} elseif ( !empty( $_GET['action'] ) && 'get_code' == $_GET['action'] ) {
|
22 |
$tab = 'get_code';
|
|
|
|
|
23 |
} else {
|
24 |
$tab = 'post_types';
|
25 |
}
|
@@ -37,82 +39,7 @@ function cptui_importexport() {
|
|
37 |
# Create our tabs.
|
38 |
cptui_settings_tab_menu( $page = 'importexport' );
|
39 |
|
40 |
-
|
41 |
-
?>
|
42 |
-
<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>
|
43 |
-
|
44 |
-
<p><?php printf( '<strong>%s</strong>: %s',
|
45 |
-
__( 'NOTE', 'cpt-plugin' ),
|
46 |
-
__( 'This will not export the associated posts, just the settings.', 'cpt-plugin' )
|
47 |
-
); ?>
|
48 |
-
</p>
|
49 |
-
<table class="form-table cptui-table">
|
50 |
-
<?php if ( !empty( $_GET ) && empty( $_GET['action'] ) ) { ?>
|
51 |
-
<tr>
|
52 |
-
<td class="outter">
|
53 |
-
<h3><?php _e( 'Import Post Types', 'cpt-plugin' ); ?></h3>
|
54 |
-
<form method="post">
|
55 |
-
<textarea class="cptui_post_import" placeholder="<?php esc_attr_e( 'Paste content here.', 'cpt-plugin' ); ?>" name="cptui_post_import"></textarea>
|
56 |
-
<p class="wp-ui-highlight"><strong><?php _e( 'Note:', 'cpt-plugin' ); ?></strong> <?php _e( 'Importing will overwrite previous registered settings.', 'cpt-plugin' ); ?></p>
|
57 |
-
<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>
|
58 |
-
<p><input class="button button-primary" type="submit" value="<?php esc_attr_e( 'Import', 'cpt-plugin' ); ?>"/></p>
|
59 |
-
</form>
|
60 |
-
</td>
|
61 |
-
<td class="outter">
|
62 |
-
<h3><?php _e( 'Export Post Types', 'cpt-plugin' ); ?></h3>
|
63 |
-
<?php
|
64 |
-
$cptui_post_types = get_option( 'cptui_post_types', array() );
|
65 |
-
if ( !empty( $cptui_post_types ) ) {
|
66 |
-
$content = esc_html( json_encode( $cptui_post_types ) );
|
67 |
-
} else {
|
68 |
-
$content = __( 'No post types registered yet.', 'cpt-plugin' );
|
69 |
-
}
|
70 |
-
?>
|
71 |
-
<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>
|
72 |
-
<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>
|
73 |
-
</td>
|
74 |
-
</tr>
|
75 |
-
<?php } elseif ( !empty( $_GET ) && 'taxonomies' == $_GET['action'] ) { ?>
|
76 |
-
<tr>
|
77 |
-
<td class="outter">
|
78 |
-
<h3><?php _e( 'Import Taxonomies', 'cpt-plugin' ); ?></h3>
|
79 |
-
<form method="post">
|
80 |
-
<textarea class="cptui_tax_import" placeholder="<?php esc_attr_e( 'Paste content here.', 'cpt-plugin' ); ?>" name="cptui_tax_import"></textarea>
|
81 |
-
<p class="wp-ui-highlight"><strong><?php _e( 'Note:', 'cpt-plugin' ); ?></strong> <?php _e( 'Importing will overwrite previous registered settings.', 'cpt-plugin' ); ?></p>
|
82 |
-
<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>
|
83 |
-
<p><input class="button button-primary" type="submit" value="<?php esc_attr_e( 'Import', 'cpt-plugin' ); ?>"/></p>
|
84 |
-
</form>
|
85 |
-
</td>
|
86 |
-
<td class="outter">
|
87 |
-
<h3><?php _e( 'Export Taxonomies', 'cpt-plugin' ); ?></h3>
|
88 |
-
<?php
|
89 |
-
$cptui_taxonomies = get_option( 'cptui_taxonomies', array() );
|
90 |
-
if ( !empty( $cptui_taxonomies ) ) {
|
91 |
-
$content = esc_html( json_encode( $cptui_taxonomies ) );
|
92 |
-
} else {
|
93 |
-
$content = __( 'No taxonomies registered yet.', 'cpt-plugin' );
|
94 |
-
}
|
95 |
-
?>
|
96 |
-
<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>
|
97 |
-
<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>
|
98 |
-
</td>
|
99 |
-
</tr>
|
100 |
-
<?php } ?>
|
101 |
-
</table>
|
102 |
-
|
103 |
-
<?php
|
104 |
-
} else { ?>
|
105 |
-
<h2><?php _e( 'Get Post Type and Taxonomy Code', 'cpt-plugin' ); ?></h2>
|
106 |
-
|
107 |
-
<h3><?php _e( 'All CPT UI Post Types', 'cpt-plugin' ); ?></h3>
|
108 |
-
<label for="cptui_post_type_get_code"><?php _e( 'Copy/paste the code below into your functions.php file.', 'cpt-plugin' ); ?></label>
|
109 |
-
<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>
|
110 |
-
|
111 |
-
<h3><?php _e( 'All CPT UI Taxonomies', 'cpt-plugin' ); ?></h3>
|
112 |
-
<label for="cptui_tax_get_code"><?php _e( 'Copy/paste the code below into your functions.php file.', 'cpt-plugin' ); ?></label>
|
113 |
-
<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>
|
114 |
-
<?php
|
115 |
-
}
|
116 |
|
117 |
echo '</div><!-- End .wrap -->';
|
118 |
}
|
@@ -121,25 +48,33 @@ function cptui_importexport() {
|
|
121 |
* Display our copy-able code for registered taxonomies.
|
122 |
*
|
123 |
* @since 1.0.0
|
|
|
|
|
|
|
|
|
|
|
124 |
*
|
125 |
* @return string Taxonomy registration text for use elsewhere.
|
126 |
*/
|
127 |
-
function cptui_get_taxonomy_code() {
|
128 |
-
|
129 |
-
$cptui_taxonomies = get_option( 'cptui_taxonomies' );
|
130 |
if ( !empty( $cptui_taxonomies ) ) {
|
|
|
|
|
|
|
|
|
|
|
131 |
?>
|
132 |
-
add_action( 'init', '
|
133 |
-
function
|
134 |
<?php
|
135 |
foreach( $cptui_taxonomies as $tax ) {
|
136 |
echo cptui_get_single_taxonomy_registery( $tax ) . "\n";
|
137 |
} ?>
|
138 |
-
// End
|
139 |
}
|
140 |
<?php
|
141 |
} else {
|
142 |
-
_e( 'No taxonomies to display at this time', '
|
143 |
}
|
144 |
}
|
145 |
|
@@ -168,6 +103,7 @@ function cptui_get_single_taxonomy_registery( $taxonomy = array() ) {
|
|
168 |
$rewrite_slug = ' \'slug\' => \'' . $taxonomy['rewrite_slug'] . '\',';
|
169 |
}
|
170 |
|
|
|
171 |
$withfront = disp_boolean( $taxonomy['rewrite_withfront'] );
|
172 |
if ( !empty( $withfront ) ) {
|
173 |
$rewrite_withfront = ' \'with_front\' => ' . $withfront . ' ';
|
@@ -218,27 +154,34 @@ function cptui_get_single_taxonomy_registery( $taxonomy = array() ) {
|
|
218 |
* Display our copy-able code for registered post types.
|
219 |
*
|
220 |
* @since 1.0.0
|
|
|
|
|
|
|
|
|
|
|
221 |
*
|
222 |
* @return string Post type registration text for use elsewhere.
|
223 |
*/
|
224 |
-
function cptui_get_post_type_code() {
|
225 |
-
|
226 |
-
$cptui_post_types = get_option( 'cptui_post_types' );
|
227 |
-
|
228 |
# Whitespace very much matters here, thus why it's all flush against the left side
|
229 |
if ( !empty( $cptui_post_types ) ) {
|
|
|
|
|
|
|
|
|
|
|
230 |
?>
|
231 |
-
add_action( 'init', '
|
232 |
-
function
|
233 |
<?php #space before this line reflects in textarea
|
234 |
foreach( $cptui_post_types as $type ) {
|
235 |
echo cptui_get_single_post_type_registery( $type ) . "\n";
|
236 |
} ?>
|
237 |
-
// End of
|
238 |
}
|
239 |
<?php
|
240 |
} else {
|
241 |
-
_e( 'No post types to display at this time', '
|
242 |
}
|
243 |
}
|
244 |
|
@@ -256,11 +199,26 @@ function cptui_get_single_post_type_registery( $post_type = array() ) {
|
|
256 |
/** This filter is documented in custom-post-type-ui/custom-post-type-ui.php */
|
257 |
$post_type['map_meta_cap'] = apply_filters( 'cptui_map_meta_cap', 'true', $post_type['name'], $post_type );
|
258 |
|
|
|
259 |
$user_supports_params = apply_filters( 'cptui_user_supports_params', array(), $post_type['name'], $post_type );
|
260 |
if ( is_array( $user_supports_params ) ) {
|
261 |
$post_type['supports'] = array_merge( $post_type['supports'], $user_supports_params );
|
262 |
}
|
263 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
264 |
$rewrite = get_disp_boolean( $post_type['rewrite' ] );
|
265 |
if ( false !== $rewrite ) {
|
266 |
$rewrite = disp_boolean( $post_type['rewrite'] );
|
@@ -302,7 +260,14 @@ function cptui_get_single_post_type_registery( $post_type = array() ) {
|
|
302 |
}
|
303 |
|
304 |
if ( in_array( $post_type['query_var'], array( 'true', 'false', '0', '1' ) ) ) {
|
305 |
-
$post_type['query_var'] =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
}
|
307 |
|
308 |
$post_type['description'] = addslashes( $post_type['description'] );
|
@@ -321,6 +286,7 @@ function cptui_get_single_post_type_registery( $post_type = array() ) {
|
|
321 |
"description" => "<?php echo $post_type['description']; ?>",
|
322 |
"public" => <?php echo disp_boolean( $post_type['public'] ); ?>,
|
323 |
"show_ui" => <?php echo disp_boolean( $post_type['show_ui'] ); ?>,
|
|
|
324 |
"has_archive" => <?php echo disp_boolean( $post_type['has_archive'] ); ?>,
|
325 |
"show_in_menu" => <?php echo disp_boolean( $post_type['show_in_menu'] ); ?>,
|
326 |
"exclude_from_search" => <?php echo disp_boolean( $post_type['exclude_from_search'] ); ?>,
|
@@ -328,10 +294,11 @@ function cptui_get_single_post_type_registery( $post_type = array() ) {
|
|
328 |
"map_meta_cap" => <?php echo disp_boolean( $post_type['map_meta_cap'] ); ?>,
|
329 |
"hierarchical" => <?php echo disp_boolean( $post_type['hierarchical'] ); ?>,
|
330 |
"rewrite" => <?php echo $rewrite; ?>,
|
331 |
-
"query_var" => <?php echo
|
332 |
<?php if ( !empty( $post_type['menu_position'] ) ) { ?>"menu_position" => <?php echo $post_type['menu_position']; ?>,<?php } ?><?php if ( !empty( $post_type['menu_icon'] ) ) { ?>"menu_icon" => "<?php echo $post_type['menu_icon']; ?>",<?php } ?>
|
333 |
<?php if ( !empty( $supports ) ) { echo "\n\t\t" ?>"supports" => <?php echo $supports; ?>,<?php } ?>
|
334 |
-
<?php if ( !empty( $taxonomies ) ) { echo "\n\t\t" ?>"taxonomies" => <?php echo $taxonomies;
|
|
|
335 |
);
|
336 |
register_post_type( "<?php echo $post_type['name']; ?>", $args );
|
337 |
<?php
|
@@ -353,9 +320,47 @@ function cptui_import_types_taxes_settings( $postdata = array() ) {
|
|
353 |
|
354 |
$success = false;
|
355 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
356 |
if ( !empty( $postdata['cptui_post_import'] ) ) {
|
357 |
-
$
|
358 |
-
$settings = json_decode( $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
359 |
|
360 |
if ( $settings ) {
|
361 |
if ( false !== get_option( 'cptui_post_types' ) ) {
|
@@ -364,11 +369,19 @@ function cptui_import_types_taxes_settings( $postdata = array() ) {
|
|
364 |
|
365 |
$success = update_option( 'cptui_post_types', $settings );
|
366 |
}
|
367 |
-
return cptui_admin_notices( 'import', __( 'Post types', '
|
368 |
|
369 |
} elseif ( !empty( $postdata['cptui_tax_import'] ) ) {
|
370 |
-
|
371 |
-
$settings = json_decode( $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
372 |
|
373 |
if ( $settings ) {
|
374 |
if ( false !== get_option( 'cptui_taxonomies' ) ) {
|
@@ -377,10 +390,181 @@ function cptui_import_types_taxes_settings( $postdata = array() ) {
|
|
377 |
|
378 |
$success = update_option( 'cptui_taxonomies', $settings );
|
379 |
}
|
380 |
-
return cptui_admin_notices( 'import', __( 'Taxonomies', '
|
381 |
}
|
382 |
|
383 |
flush_rewrite_rules();
|
384 |
|
385 |
return $success;
|
386 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
$tab = 'taxonomies';
|
21 |
} elseif ( !empty( $_GET['action'] ) && 'get_code' == $_GET['action'] ) {
|
22 |
$tab = 'get_code';
|
23 |
+
} elseif ( !empty( $_GET['action'] ) && 'debuginfo' == $_GET['action'] ) {
|
24 |
+
$tab = 'debuginfo';
|
25 |
} else {
|
26 |
$tab = 'post_types';
|
27 |
}
|
39 |
# Create our tabs.
|
40 |
cptui_settings_tab_menu( $page = 'importexport' );
|
41 |
|
42 |
+
do_action( 'cptui_import_export_sections', $tab );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
echo '</div><!-- End .wrap -->';
|
45 |
}
|
48 |
* Display our copy-able code for registered taxonomies.
|
49 |
*
|
50 |
* @since 1.0.0
|
51 |
+
* @since 1.2.0 Added $cptui_taxonomies parameter.
|
52 |
+
* @since 1.2.0 Added $single parameter.
|
53 |
+
*
|
54 |
+
* @param array $cptui_taxonomies Array of taxonomies to render.
|
55 |
+
* @param bool $single Whether or not we are rendering a single taxonomy.
|
56 |
*
|
57 |
* @return string Taxonomy registration text for use elsewhere.
|
58 |
*/
|
59 |
+
function cptui_get_taxonomy_code( $cptui_taxonomies = array(), $single = false ) {
|
|
|
|
|
60 |
if ( !empty( $cptui_taxonomies ) ) {
|
61 |
+
$callback = 'cptui_register_my_taxes';
|
62 |
+
if ( $single ) {
|
63 |
+
$key = key( $cptui_taxonomies );
|
64 |
+
$callback = 'cptui_register_my_taxes_' . str_replace('-', '_', $cptui_taxonomies[ $key ]['name'] );
|
65 |
+
}
|
66 |
?>
|
67 |
+
add_action( 'init', '<?php echo $callback; ?>' );
|
68 |
+
function <?php echo $callback; ?>() {
|
69 |
<?php
|
70 |
foreach( $cptui_taxonomies as $tax ) {
|
71 |
echo cptui_get_single_taxonomy_registery( $tax ) . "\n";
|
72 |
} ?>
|
73 |
+
// End <?php echo $callback; ?>()
|
74 |
}
|
75 |
<?php
|
76 |
} else {
|
77 |
+
_e( 'No taxonomies to display at this time', 'custom-post-type-ui' );
|
78 |
}
|
79 |
}
|
80 |
|
103 |
$rewrite_slug = ' \'slug\' => \'' . $taxonomy['rewrite_slug'] . '\',';
|
104 |
}
|
105 |
|
106 |
+
$rewrite_withfront = '';
|
107 |
$withfront = disp_boolean( $taxonomy['rewrite_withfront'] );
|
108 |
if ( !empty( $withfront ) ) {
|
109 |
$rewrite_withfront = ' \'with_front\' => ' . $withfront . ' ';
|
154 |
* Display our copy-able code for registered post types.
|
155 |
*
|
156 |
* @since 1.0.0
|
157 |
+
* @since 1.2.0 Added $cptui_post_types parameter.
|
158 |
+
* @since 1.2.0 Added $single parameter.
|
159 |
+
*
|
160 |
+
* @param array $cptui_post_types Array of post types to render.
|
161 |
+
* @param bool $single Whether or not we are rendering a single post type.
|
162 |
*
|
163 |
* @return string Post type registration text for use elsewhere.
|
164 |
*/
|
165 |
+
function cptui_get_post_type_code( $cptui_post_types = array(), $single = false ) {
|
|
|
|
|
|
|
166 |
# Whitespace very much matters here, thus why it's all flush against the left side
|
167 |
if ( !empty( $cptui_post_types ) ) {
|
168 |
+
$callback = 'cptui_register_my_cpts';
|
169 |
+
if ( $single ) {
|
170 |
+
$key = key( $cptui_post_types );
|
171 |
+
$callback = 'cptui_register_my_cpts_' . str_replace( '-', '_', $cptui_post_types[ $key ]['name'] );
|
172 |
+
}
|
173 |
?>
|
174 |
+
add_action( 'init', '<?php echo $callback; ?>' );
|
175 |
+
function <?php echo $callback; ?>() {
|
176 |
<?php #space before this line reflects in textarea
|
177 |
foreach( $cptui_post_types as $type ) {
|
178 |
echo cptui_get_single_post_type_registery( $type ) . "\n";
|
179 |
} ?>
|
180 |
+
// End of <?php echo $callback; ?>()
|
181 |
}
|
182 |
<?php
|
183 |
} else {
|
184 |
+
_e( 'No post types to display at this time', 'custom-post-type-ui' );
|
185 |
}
|
186 |
}
|
187 |
|
199 |
/** This filter is documented in custom-post-type-ui/custom-post-type-ui.php */
|
200 |
$post_type['map_meta_cap'] = apply_filters( 'cptui_map_meta_cap', 'true', $post_type['name'], $post_type );
|
201 |
|
202 |
+
/** This filter is documented in custom-post-type-ui/custom-post-type-ui.php */
|
203 |
$user_supports_params = apply_filters( 'cptui_user_supports_params', array(), $post_type['name'], $post_type );
|
204 |
if ( is_array( $user_supports_params ) ) {
|
205 |
$post_type['supports'] = array_merge( $post_type['supports'], $user_supports_params );
|
206 |
}
|
207 |
|
208 |
+
$yarpp = false; # Prevent notices.
|
209 |
+
if ( ! empty( $post_type['custom_supports'] ) ) {
|
210 |
+
$custom = explode( ',', $post_type['custom_supports'] );
|
211 |
+
foreach ( $custom as $part ) {
|
212 |
+
# We'll handle YARPP separately.
|
213 |
+
if ( in_array( $part, array( 'YARPP', 'yarpp' ) ) ) {
|
214 |
+
$yarpp = true;
|
215 |
+
continue;
|
216 |
+
}
|
217 |
+
$post_type['supports'][] = $part;
|
218 |
+
}
|
219 |
+
}
|
220 |
+
|
221 |
+
$rewrite_withfront = '';
|
222 |
$rewrite = get_disp_boolean( $post_type['rewrite' ] );
|
223 |
if ( false !== $rewrite ) {
|
224 |
$rewrite = disp_boolean( $post_type['rewrite'] );
|
260 |
}
|
261 |
|
262 |
if ( in_array( $post_type['query_var'], array( 'true', 'false', '0', '1' ) ) ) {
|
263 |
+
$post_type['query_var'] = disp_boolean( $post_type['query_var'] );
|
264 |
+
}
|
265 |
+
if ( !empty( $post_type['query_var_slug'] ) ) {
|
266 |
+
$post_type['query_var'] = '"' . $post_type['query_var_slug'] . '"';
|
267 |
+
}
|
268 |
+
|
269 |
+
if ( empty( $post_type['show_in_rest'] ) ) {
|
270 |
+
$post_type['show_in_rest'] = 'false';
|
271 |
}
|
272 |
|
273 |
$post_type['description'] = addslashes( $post_type['description'] );
|
286 |
"description" => "<?php echo $post_type['description']; ?>",
|
287 |
"public" => <?php echo disp_boolean( $post_type['public'] ); ?>,
|
288 |
"show_ui" => <?php echo disp_boolean( $post_type['show_ui'] ); ?>,
|
289 |
+
"show_in_rest" => <?php echo disp_boolean( $post_type['show_in_rest'] ); ?>,
|
290 |
"has_archive" => <?php echo disp_boolean( $post_type['has_archive'] ); ?>,
|
291 |
"show_in_menu" => <?php echo disp_boolean( $post_type['show_in_menu'] ); ?>,
|
292 |
"exclude_from_search" => <?php echo disp_boolean( $post_type['exclude_from_search'] ); ?>,
|
294 |
"map_meta_cap" => <?php echo disp_boolean( $post_type['map_meta_cap'] ); ?>,
|
295 |
"hierarchical" => <?php echo disp_boolean( $post_type['hierarchical'] ); ?>,
|
296 |
"rewrite" => <?php echo $rewrite; ?>,
|
297 |
+
"query_var" => <?php echo $post_type['query_var']; ?>,
|
298 |
<?php if ( !empty( $post_type['menu_position'] ) ) { ?>"menu_position" => <?php echo $post_type['menu_position']; ?>,<?php } ?><?php if ( !empty( $post_type['menu_icon'] ) ) { ?>"menu_icon" => "<?php echo $post_type['menu_icon']; ?>",<?php } ?>
|
299 |
<?php if ( !empty( $supports ) ) { echo "\n\t\t" ?>"supports" => <?php echo $supports; ?>,<?php } ?>
|
300 |
+
<?php if ( !empty( $taxonomies ) ) { echo "\n\t\t" ?>"taxonomies" => <?php echo $taxonomies; ?>,<?php } ?>
|
301 |
+
<?php if ( true === $yarpp ) { echo "\n\t\t" ?>"yarpp_support" => <?php echo disp_boolean( $yarpp ); ?><?php } echo "\n";?>
|
302 |
);
|
303 |
register_post_type( "<?php echo $post_type['name']; ?>", $args );
|
304 |
<?php
|
320 |
|
321 |
$success = false;
|
322 |
|
323 |
+
/**
|
324 |
+
* Filters the post type data to import.
|
325 |
+
*
|
326 |
+
* Allows third parties to provide their own data dump and import instead of going through our UI.
|
327 |
+
*
|
328 |
+
* @since 1.2.0
|
329 |
+
*
|
330 |
+
* @param bool $value Default to no data.
|
331 |
+
*/
|
332 |
+
$third_party_post_type_data = apply_filters( 'cptui_third_party_post_type_import', false );
|
333 |
+
|
334 |
+
/**
|
335 |
+
* Filters the taxonomy data to import.
|
336 |
+
*
|
337 |
+
* Allows third parties to provide their own data dump and import instead of going through our UI.
|
338 |
+
*
|
339 |
+
* @since 1.2.0
|
340 |
+
*
|
341 |
+
* @param bool $value Default to no data.
|
342 |
+
*/
|
343 |
+
$third_party_taxonomy_data = apply_filters( 'cptui_third_party_taxonomy_import', false );
|
344 |
+
|
345 |
+
if ( false !== $third_party_post_type_data ) {
|
346 |
+
$postdata['cptui_post_import'] = $third_party_post_type_data;
|
347 |
+
}
|
348 |
+
|
349 |
+
if ( false !== $third_party_taxonomy_data ) {
|
350 |
+
$postdata['cptui_tax_import'] = $third_party_taxonomy_data;
|
351 |
+
}
|
352 |
+
|
353 |
if ( !empty( $postdata['cptui_post_import'] ) ) {
|
354 |
+
$cpt_data = stripslashes_deep( trim( $postdata['cptui_post_import'] ) );
|
355 |
+
$settings = json_decode( $cpt_data, true );
|
356 |
+
|
357 |
+
# Add support to delete settings outright, without accessing database.
|
358 |
+
# Doing double check to protect.
|
359 |
+
if ( is_null( $settings ) && '{""}' === $cpt_data ) {
|
360 |
+
delete_option( 'cptui_post_types' );
|
361 |
+
# We're technically successful in a sense. Importing nothing.
|
362 |
+
$success = true;
|
363 |
+
}
|
364 |
|
365 |
if ( $settings ) {
|
366 |
if ( false !== get_option( 'cptui_post_types' ) ) {
|
369 |
|
370 |
$success = update_option( 'cptui_post_types', $settings );
|
371 |
}
|
372 |
+
return cptui_admin_notices( 'import', __( 'Post types', 'custom-post-type-ui' ), $success );
|
373 |
|
374 |
} elseif ( !empty( $postdata['cptui_tax_import'] ) ) {
|
375 |
+
$tax_data = stripslashes_deep( trim( $postdata['cptui_tax_import'] ) );
|
376 |
+
$settings = json_decode( $tax_data, true );
|
377 |
+
|
378 |
+
# Add support to delete settings outright, without accessing database.
|
379 |
+
# Doing double check to protect.
|
380 |
+
if ( is_null( $settings ) && '{""}' === $tax_data ) {
|
381 |
+
delete_option( 'cptui_taxonomies' );
|
382 |
+
# We're technically successful in a sense. Importing nothing.
|
383 |
+
$success = true;
|
384 |
+
}
|
385 |
|
386 |
if ( $settings ) {
|
387 |
if ( false !== get_option( 'cptui_taxonomies' ) ) {
|
390 |
|
391 |
$success = update_option( 'cptui_taxonomies', $settings );
|
392 |
}
|
393 |
+
return cptui_admin_notices( 'import', __( 'Taxonomies', 'custom-post-type-ui' ), $success );
|
394 |
}
|
395 |
|
396 |
flush_rewrite_rules();
|
397 |
|
398 |
return $success;
|
399 |
}
|
400 |
+
|
401 |
+
function cptui_render_posttypes_taxonomies_section() {
|
402 |
+
?>
|
403 |
+
|
404 |
+
<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.', 'custom-post-type-ui' ); ?></p>
|
405 |
+
|
406 |
+
<p><?php printf( '<strong>%s</strong>: %s',
|
407 |
+
__( 'NOTE', 'custom-post-type-ui' ),
|
408 |
+
__( 'This will not export the associated posts or taxonomy terms, just the settings.', 'custom-post-type-ui' )
|
409 |
+
); ?>
|
410 |
+
</p>
|
411 |
+
<table class="form-table cptui-table">
|
412 |
+
<?php if ( ! empty( $_GET ) && empty( $_GET['action'] ) ) { ?>
|
413 |
+
<tr>
|
414 |
+
<td class="outter">
|
415 |
+
<label for="cptui_post_import"><h2><?php _e( 'Import Post Types', 'custom-post-type-ui' ); ?></h2>
|
416 |
+
</label>
|
417 |
+
|
418 |
+
<form method="post">
|
419 |
+
<textarea class="cptui_post_import" placeholder="<?php esc_attr_e( 'Paste content here.', 'custom-post-type-ui' ); ?>" id="cptui_post_import" name="cptui_post_import"></textarea>
|
420 |
+
|
421 |
+
<p class="wp-ui-highlight">
|
422 |
+
<strong><?php _e( 'Note:', 'custom-post-type-ui' ); ?></strong> <?php _e( 'Importing will overwrite previous registered settings.', 'custom-post-type-ui' ); ?>
|
423 |
+
</p>
|
424 |
+
|
425 |
+
<p>
|
426 |
+
<strong><?php _e( 'To import post types from a different WordPress site, paste the exported content from that site and click the "Import" button.', 'custom-post-type-ui' ); ?></strong>
|
427 |
+
</p>
|
428 |
+
|
429 |
+
<p>
|
430 |
+
<input class="button button-primary" type="submit" value="<?php esc_attr_e( 'Import', 'custom-post-type-ui' ); ?>" />
|
431 |
+
</p>
|
432 |
+
</form>
|
433 |
+
</td>
|
434 |
+
<td class="outter">
|
435 |
+
<label for="cptui_post_export"><h2><?php _e( 'Export Post Types', 'custom-post-type-ui' ); ?></h2>
|
436 |
+
</label>
|
437 |
+
<?php
|
438 |
+
$cptui_post_types = get_option( 'cptui_post_types', array() );
|
439 |
+
if ( ! empty( $cptui_post_types ) ) {
|
440 |
+
$content = esc_html( json_encode( $cptui_post_types ) );
|
441 |
+
} else {
|
442 |
+
$content = __( 'No post types registered yet.', 'custom-post-type-ui' );
|
443 |
+
}
|
444 |
+
?>
|
445 |
+
<textarea title="<?php esc_attr_e( 'To copy the system info, click below then press Ctrl + C (PC) or Cmd + C (Mac).', 'custom-post-type-ui' ); ?>" onclick="this.focus();this.select()" readonly="readonly" class="cptui_post_import" id="cptui_post_export" name="cptui_post_export"><?php echo $content; ?></textarea>
|
446 |
+
|
447 |
+
<p>
|
448 |
+
<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.', 'custom-post-type-ui' ); ?></strong>
|
449 |
+
</p>
|
450 |
+
</td>
|
451 |
+
</tr>
|
452 |
+
<?php } elseif ( ! empty( $_GET ) && 'taxonomies' == $_GET['action'] ) { ?>
|
453 |
+
<tr>
|
454 |
+
<td class="outter">
|
455 |
+
<label for="cptui_tax_import"><h2><?php _e( 'Import Taxonomies', 'custom-post-type-ui' ); ?></h2>
|
456 |
+
</label>
|
457 |
+
|
458 |
+
<form method="post">
|
459 |
+
<textarea class="cptui_tax_import" placeholder="<?php esc_attr_e( 'Paste content here.', 'custom-post-type-ui' ); ?>" id="cptui_tax_import" name="cptui_tax_import"></textarea>
|
460 |
+
|
461 |
+
<p class="wp-ui-highlight">
|
462 |
+
<strong><?php _e( 'Note:', 'custom-post-type-ui' ); ?></strong> <?php _e( 'Importing will overwrite previous registered settings.', 'custom-post-type-ui' ); ?>
|
463 |
+
</p>
|
464 |
+
|
465 |
+
<p>
|
466 |
+
<strong><?php _e( 'To import taxonomies from a different WordPress site, paste the exported content from that site and click the "Import" button.', 'custom-post-type-ui' ); ?></strong>
|
467 |
+
</p>
|
468 |
+
|
469 |
+
<p>
|
470 |
+
<input class="button button-primary" type="submit" value="<?php esc_attr_e( 'Import', 'custom-post-type-ui' ); ?>" />
|
471 |
+
</p>
|
472 |
+
</form>
|
473 |
+
</td>
|
474 |
+
<td class="outter">
|
475 |
+
<label for="cptui_tax_export"><h2><?php _e( 'Export Taxonomies', 'custom-post-type-ui' ); ?></h2>
|
476 |
+
</label>
|
477 |
+
<?php
|
478 |
+
$cptui_taxonomies = get_option( 'cptui_taxonomies', array() );
|
479 |
+
if ( ! empty( $cptui_taxonomies ) ) {
|
480 |
+
$content = esc_html( json_encode( $cptui_taxonomies ) );
|
481 |
+
} else {
|
482 |
+
$content = __( 'No taxonomies registered yet.', 'custom-post-type-ui' );
|
483 |
+
}
|
484 |
+
?>
|
485 |
+
<textarea title="<?php esc_attr_e( 'To copy the system info, click below then press Ctrl + C (PC) or Cmd + C (Mac).', 'custom-post-type-ui' ); ?>" onclick="this.focus();this.select()" readonly="readonly" class="cptui_tax_import" id="cptui_tax_export" name="cptui_tax_export"><?php echo $content; ?></textarea>
|
486 |
+
|
487 |
+
<p>
|
488 |
+
<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.', 'custom-post-type-ui' ); ?></strong>
|
489 |
+
</p>
|
490 |
+
</td>
|
491 |
+
</tr>
|
492 |
+
<?php } ?>
|
493 |
+
</table>
|
494 |
+
<?php
|
495 |
+
}
|
496 |
+
|
497 |
+
function cptui_render_getcode_section() {
|
498 |
+
?>
|
499 |
+
<h1><?php _e( 'Get Post Type and Taxonomy Code', 'custom-post-type-ui' ); ?></h1>
|
500 |
+
|
501 |
+
<h2><?php _e( 'All CPT UI Post Types', 'custom-post-type-ui' ); ?></h2>
|
502 |
+
|
503 |
+
<?php $cptui_post_types = get_option( 'cptui_post_types' ); ?>
|
504 |
+
<label for="cptui_post_type_get_code"><?php _e( 'Copy/paste the code below into your functions.php file.', 'custom-post-type-ui' ); ?></label>
|
505 |
+
<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( $cptui_post_types ); ?></textarea>
|
506 |
+
|
507 |
+
<?php
|
508 |
+
if ( !empty( $cptui_post_types ) ) {
|
509 |
+
foreach ( $cptui_post_types as $post_type ) { ?>
|
510 |
+
<h2><?php
|
511 |
+
$type = ( !empty( $post_type['label'] ) ) ? $post_type['label'] : $post_type['name'];
|
512 |
+
printf( __( '%s Post Type', 'custom-post-type-ui' ), $type ); ?></h2>
|
513 |
+
<label for="cptui_post_type_get_code_<?php echo $post_type['name']; ?>"><?php _e( 'Copy/paste the code below into your functions.php file.', 'custom-post-type-ui' ); ?></label>
|
514 |
+
<textarea name="cptui_post_type_get_code_<?php echo $post_type['name']; ?>" id="cptui_post_type_get_code_<?php echo $post_type['name']; ?>" class="cptui_post_type_get_code" onclick="this.focus();this.select()" readonly="readonly"><?php cptui_get_post_type_code( array( $post_type ), true ); ?></textarea>
|
515 |
+
<?php }
|
516 |
+
} ?>
|
517 |
+
|
518 |
+
<h2><?php _e( 'All CPT UI Taxonomies', 'custom-post-type-ui' ); ?></h2>
|
519 |
+
|
520 |
+
<?php $cptui_taxonomies = get_option( 'cptui_taxonomies' ); ?>
|
521 |
+
<label for="cptui_tax_get_code"><?php _e( 'Copy/paste the code below into your functions.php file.', 'custom-post-type-ui' ); ?></label>
|
522 |
+
<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( $cptui_taxonomies ); ?></textarea>
|
523 |
+
|
524 |
+
<?php
|
525 |
+
if ( ! empty( $cptui_taxonomies ) ) {
|
526 |
+
foreach ( $cptui_taxonomies as $taxonomy ) { ?>
|
527 |
+
<h2><?php
|
528 |
+
$tax = ( ! empty( $taxonomy['label'] ) ) ? $taxonomy['label'] : $taxonomy['name'];
|
529 |
+
printf( __( '%s Taxonomy', 'custom-post-type-ui' ), $tax ); ?></h2>
|
530 |
+
<label for="cptui_tax_get_code_<?php echo $taxonomy['name']; ?>"><?php _e( 'Copy/paste the code below into your functions.php file.', 'custom-post-type-ui' ); ?></label>
|
531 |
+
<textarea name="cptui_tax_get_code_<?php echo $taxonomy['name']; ?>" id="cptui_tax_get_code_<?php echo $taxonomy['name']; ?>" class="cptui_tax_get_code" onclick="this.focus();this.select()" readonly="readonly"><?php cptui_get_taxonomy_code( array( $taxonomy ), true ); ?></textarea>
|
532 |
+
<?php }
|
533 |
+
} ?>
|
534 |
+
<?php
|
535 |
+
}
|
536 |
+
|
537 |
+
function cptui_render_debuginfo_section() {
|
538 |
+
$debuginfo = new CPTUI_Debug_Info();
|
539 |
+
|
540 |
+
echo '<form id="cptui_debug_info" method="post">';
|
541 |
+
$debuginfo->tab_site_info();
|
542 |
+
|
543 |
+
if ( ! empty( $_POST ) && isset( $_POST['cptui_debug_info_email'] ) ) {
|
544 |
+
$email_args = array();
|
545 |
+
$email_args['email'] = sanitize_text_field( $_POST['cptui_debug_info_email'] );
|
546 |
+
$debuginfo->send_email( $email_args );
|
547 |
+
}
|
548 |
+
|
549 |
+
echo '<p><label for="cptui_debug_info_email">' . __( 'Please provide an email address to send debug information to: ', 'custom-post-type-ui' ) . '</label><input type="email" id="cptui_debug_info_email" name="cptui_debug_info_email" value="" /></p>';
|
550 |
+
|
551 |
+
echo '<p><input type="submit" class="button-primary" name="cptui_send_debug_email" value="' . esc_attr( apply_filters( 'cptui_post_type_debug_email', __( 'Send debug info', 'custom-post-type-ui' ) ) ) . '" /></p>';
|
552 |
+
echo '</form>';
|
553 |
+
}
|
554 |
+
|
555 |
+
function cptui_render_importexportsections( $tab ) {
|
556 |
+
if ( isset( $tab ) ) {
|
557 |
+
if ( 'post_types' == $tab || 'taxonomies' == $tab ) {
|
558 |
+
cptui_render_posttypes_taxonomies_section();
|
559 |
+
}
|
560 |
+
|
561 |
+
if ( 'get_code' == $tab ) {
|
562 |
+
cptui_render_getcode_section();
|
563 |
+
}
|
564 |
+
|
565 |
+
if ( 'debuginfo' == $tab ) {
|
566 |
+
cptui_render_debuginfo_section();
|
567 |
+
}
|
568 |
+
}
|
569 |
+
}
|
570 |
+
add_action( 'cptui_import_export_sections', 'cptui_render_importexportsections' );
|
inc/listings.php
CHANGED
@@ -7,18 +7,25 @@ function cptui_listings() {
|
|
7 |
?>
|
8 |
<div class="wrap">
|
9 |
|
10 |
-
<h1><?php _e( 'Post Types and Taxonomies registered by Custom Post Type UI.', '
|
11 |
<?php
|
12 |
$post_types = get_option( 'cptui_post_types' );
|
13 |
-
|
14 |
if ( !empty( $post_types ) ) {
|
15 |
-
|
16 |
-
echo '<h2>' . __( 'Post Types', 'cpt-plugin' ) . '</h2>';
|
17 |
?>
|
18 |
-
<p><?php printf( __( 'Total count: %d', '
|
19 |
|
20 |
<?php
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
/**
|
23 |
* Fires before the listing of registered post type data.
|
24 |
*
|
@@ -28,11 +35,9 @@ function cptui_listings() {
|
|
28 |
?>
|
29 |
<table class="wp-list-table widefat">
|
30 |
<tr>
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
<th><?php _e( 'Taxonomies', 'cpt-plugin' ); ?></th>
|
35 |
-
<th><?php _e( 'Labels', 'cpt-plugin' ); ?></th>
|
36 |
</tr>
|
37 |
<?php
|
38 |
$counter = 1;
|
@@ -43,6 +48,7 @@ function cptui_listings() {
|
|
43 |
$strings = array();
|
44 |
$supports = array();
|
45 |
$taxonomies = array();
|
|
|
46 |
foreach( $post_type_settings as $settings_key => $settings_value ) {
|
47 |
if ( 'labels' == $settings_key ) {
|
48 |
continue;
|
@@ -68,11 +74,11 @@ function cptui_listings() {
|
|
68 |
}
|
69 |
?>
|
70 |
<tr class="<?php echo $rowclass; ?>">
|
71 |
-
|
72 |
-
|
73 |
<?php if ( $archive ) { ?>
|
74 |
|
|
75 |
-
<a href="<?php echo get_post_type_archive_link( $post_type ); ?>"><?php _e( 'View frontend archive', '
|
76 |
<?php } ?>
|
77 |
</td>
|
78 |
<td>
|
@@ -105,10 +111,30 @@ function cptui_listings() {
|
|
105 |
echo $key . ': ' . $value . '<br/>';
|
106 |
}
|
107 |
} else {
|
108 |
-
_e( 'No custom labels to display', '
|
109 |
}
|
110 |
?>
|
111 |
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
</tr>
|
113 |
|
114 |
<?php
|
@@ -116,118 +142,153 @@ function cptui_listings() {
|
|
116 |
}
|
117 |
?>
|
118 |
<tr>
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
<th><?php _e( 'Taxonomies', 'cpt-plugin' ); ?></th>
|
123 |
-
<th><?php _e( 'Labels', 'cpt-plugin' ); ?></th>
|
124 |
</tr>
|
125 |
</table>
|
126 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
}
|
128 |
|
129 |
-
|
130 |
-
|
|
|
|
|
|
|
131 |
|
132 |
-
|
133 |
-
?>
|
134 |
-
<p><?php printf( __( 'Total count: %d', 'cpt-plugin' ), count( $taxonomies ) ); ?></p>
|
135 |
|
136 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
foreach ( $taxonomies as $taxonomy => $taxonomy_settings ) {
|
155 |
|
156 |
-
|
157 |
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
|
|
175 |
}
|
176 |
}
|
177 |
}
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
} else {
|
190 |
-
|
191 |
-
}
|
192 |
-
echo '<br/>';
|
193 |
-
} ?>
|
194 |
-
</td>
|
195 |
-
<td>
|
196 |
-
<?php
|
197 |
-
if ( !empty( $object_types['types'] ) ) {
|
198 |
-
foreach ( $object_types['types'] as $type ) {
|
199 |
-
echo $type . '<br/>';
|
200 |
-
}
|
201 |
-
} ?>
|
202 |
-
</td>
|
203 |
-
<td>
|
204 |
-
<?php
|
205 |
-
$maybe_empty = array_filter( $taxonomy_settings['labels'] );
|
206 |
-
if ( !empty( $maybe_empty ) ) {
|
207 |
-
foreach ( $taxonomy_settings['labels'] as $key => $value ) {
|
208 |
-
echo $key . ': ' . $value . '<br/>';
|
209 |
}
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
|
|
|
|
|
|
|
|
216 |
|
217 |
-
|
218 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
}
|
220 |
-
|
221 |
-
<tr>
|
222 |
-
<th><?php _e( 'Taxonomy', 'cpt-plugin' ); ?></th>
|
223 |
-
<th><?php _e( 'Settings', 'cpt-plugin' ); ?></th>
|
224 |
-
<th><?php _e( 'Post Types', 'cpt-plugin' ); ?></th>
|
225 |
-
<th><?php _e( 'Labels', 'cpt-plugin' ); ?></th>
|
226 |
-
</tr>
|
227 |
-
</table>
|
228 |
-
<?php
|
229 |
-
}
|
230 |
-
?>
|
231 |
|
232 |
</div>
|
233 |
<?php
|
7 |
?>
|
8 |
<div class="wrap">
|
9 |
|
10 |
+
<h1><?php _e( 'Post Types and Taxonomies registered by Custom Post Type UI.', 'custom-post-type-ui' ); ?></h1>
|
11 |
<?php
|
12 |
$post_types = get_option( 'cptui_post_types' );
|
13 |
+
echo '<h2>' . __( 'Post Types', 'custom-post-type-ui' ) . '</h2>';
|
14 |
if ( !empty( $post_types ) ) {
|
|
|
|
|
15 |
?>
|
16 |
+
<p><?php printf( __( 'Total count: %d', 'custom-post-type-ui' ), count( $post_types ) ); ?></p>
|
17 |
|
18 |
<?php
|
19 |
|
20 |
+
$post_type_table_heads = array(
|
21 |
+
__( 'Post Type', 'custom-post-type-ui' ),
|
22 |
+
__( 'Settings', 'custom-post-type-ui' ),
|
23 |
+
__( 'Supports', 'custom-post-type-ui' ),
|
24 |
+
__( 'Taxonomies', 'custom-post-type-ui' ),
|
25 |
+
__( 'Labels', 'custom-post-type-ui' ),
|
26 |
+
__( 'Template Hierarchy', 'custom-post-type-ui' )
|
27 |
+
);
|
28 |
+
|
29 |
/**
|
30 |
* Fires before the listing of registered post type data.
|
31 |
*
|
35 |
?>
|
36 |
<table class="wp-list-table widefat">
|
37 |
<tr>
|
38 |
+
<?php foreach( $post_type_table_heads as $head ) {
|
39 |
+
echo '<th>' . $head . '</th>';
|
40 |
+
} ?>
|
|
|
|
|
41 |
</tr>
|
42 |
<?php
|
43 |
$counter = 1;
|
48 |
$strings = array();
|
49 |
$supports = array();
|
50 |
$taxonomies = array();
|
51 |
+
$archive = '';
|
52 |
foreach( $post_type_settings as $settings_key => $settings_value ) {
|
53 |
if ( 'labels' == $settings_key ) {
|
54 |
continue;
|
74 |
}
|
75 |
?>
|
76 |
<tr class="<?php echo $rowclass; ?>">
|
77 |
+
<?php $post_type_link_url = admin_url( 'admin.php?page=cptui_manage_post_types&action=edit&cptui_post_type=' . $post_type ); ?>
|
78 |
+
<td><a href="<?php echo $post_type_link_url; ?>"><?php printf( __( 'Edit %s', 'custom-post-type-ui' ), $post_type ); ?></a>
|
79 |
<?php if ( $archive ) { ?>
|
80 |
|
|
81 |
+
<a href="<?php echo get_post_type_archive_link( $post_type ); ?>"><?php _e( 'View frontend archive', 'custom-post-type-ui' ); ?></a>
|
82 |
<?php } ?>
|
83 |
</td>
|
84 |
<td>
|
111 |
echo $key . ': ' . $value . '<br/>';
|
112 |
}
|
113 |
} else {
|
114 |
+
_e( 'No custom labels to display', 'custom-post-type-ui' );
|
115 |
}
|
116 |
?>
|
117 |
</td>
|
118 |
+
<td>
|
119 |
+
<p><strong><?php _e( 'Archives file name examples.', 'custom-post-type-ui' ); ?></strong><br/>
|
120 |
+
archive-<?php echo $post_type; ?>.php<br/>
|
121 |
+
archive.php<br/>
|
122 |
+
index.php
|
123 |
+
</p>
|
124 |
+
|
125 |
+
<p><strong><?php _e( 'Single Posts file name examples.', 'custom-post-type-ui' ); ?></strong><br/>
|
126 |
+
single-<?php echo $post_type; ?>.php<br/>
|
127 |
+
single.php<br/>
|
128 |
+
singular.php(WP 4.3+)<br/>
|
129 |
+
index.php
|
130 |
+
</p>
|
131 |
+
|
132 |
+
<p><?php printf(
|
133 |
+
'<a href="https://developer.wordpress.org/themes/basics/template-hierarchy/">%s</a>',
|
134 |
+
__( 'Template hierarchy Theme Handbook', 'custom-post-type-ui' )
|
135 |
+
); ?>
|
136 |
+
</p>
|
137 |
+
</td>
|
138 |
</tr>
|
139 |
|
140 |
<?php
|
142 |
}
|
143 |
?>
|
144 |
<tr>
|
145 |
+
<?php foreach ( $post_type_table_heads as $head ) {
|
146 |
+
echo '<th>' . $head . '</th>';
|
147 |
+
} ?>
|
|
|
|
|
148 |
</tr>
|
149 |
</table>
|
150 |
+
<?php
|
151 |
+
} else {
|
152 |
+
echo '<p>' . sprintf( __( 'No post types registered for display. Visit %s to get started.', 'custom-post-type-ui' ),
|
153 |
+
sprintf( '<a href="%s">%s</a>',
|
154 |
+
admin_url( 'admin.php?page=cptui_manage_post_types' ),
|
155 |
+
__( 'Add/Edit Post Types', 'custom-post-type-ui' )
|
156 |
+
)
|
157 |
+
) . '</p>';
|
158 |
}
|
159 |
|
160 |
+
$taxonomies = get_option( 'cptui_taxonomies' );
|
161 |
+
echo '<h2>' . __( 'Taxonomies', 'custom-post-type-ui' ) . '</h2>';
|
162 |
+
if ( !empty( $taxonomies ) ) {
|
163 |
+
?>
|
164 |
+
<p><?php printf( __( 'Total count: %d', 'custom-post-type-ui' ), count( $taxonomies ) ); ?></p>
|
165 |
|
166 |
+
<?php
|
|
|
|
|
167 |
|
168 |
+
$taxonomy_table_heads = array(
|
169 |
+
__( 'Taxonomy', 'custom-post-type-ui' ),
|
170 |
+
__( 'Settings', 'custom-post-type-ui' ),
|
171 |
+
__( 'Post Types', 'custom-post-type-ui' ),
|
172 |
+
__( 'Labels', 'custom-post-type-ui' ),
|
173 |
+
__( 'Template Hierarchy', 'custom-post-type-ui' )
|
174 |
+
);
|
175 |
|
176 |
+
/**
|
177 |
+
* Fires before the listing of registered taxonomy data.
|
178 |
+
*
|
179 |
+
* @since 1.1.0
|
180 |
+
*/
|
181 |
+
do_action( 'cptui_before_taxonomy_listing' );
|
182 |
+
?>
|
183 |
+
<table class="wp-list-table widefat">
|
184 |
+
<tr>
|
185 |
+
<?php foreach ( $taxonomy_table_heads as $head ) {
|
186 |
+
echo '<th>' . $head . '</th>';
|
187 |
+
} ?>
|
188 |
+
</tr>
|
189 |
+
<?php
|
190 |
+
$counter = 1;
|
191 |
+
foreach ( $taxonomies as $taxonomy => $taxonomy_settings ) {
|
|
|
192 |
|
193 |
+
$rowclass = ( $counter % 2 == 0 ) ? '' : 'alternate';
|
194 |
|
195 |
+
$strings = array();
|
196 |
+
$object_types = array();
|
197 |
+
foreach( $taxonomy_settings as $settings_key => $settings_value ) {
|
198 |
+
if ( 'labels' == $settings_key ) {
|
199 |
+
continue;
|
200 |
+
}
|
201 |
|
202 |
+
if ( is_string( $settings_value ) ) {
|
203 |
+
$strings[ $settings_key ] = $settings_value;
|
204 |
+
} else {
|
205 |
+
if ( 'object_types' === $settings_key ) {
|
206 |
+
$object_types[ $settings_key ] = $settings_value;
|
207 |
|
208 |
+
# In case they are not associated from the post type settings
|
209 |
+
if ( empty( $object_types['object_types'] ) ) {
|
210 |
+
$types = get_taxonomy( $taxonomy );
|
211 |
+
$object_types['object_types'] = $types->object_type;
|
212 |
+
}
|
213 |
}
|
214 |
}
|
215 |
}
|
216 |
+
?>
|
217 |
+
<tr class="<?php echo $rowclass; ?>">
|
218 |
+
<?php $taxonomy_link_url = admin_url( 'admin.php?page=cptui_manage_taxonomies&action=edit&cptui_taxonomy=' . $taxonomy ); ?>
|
219 |
+
<td><a href="<?php echo $taxonomy_link_url; ?>"><?php echo $taxonomy; ?></a><br/><hr/>
|
220 |
+
<a href="<?php echo $taxonomy_link_url; ?>"><?php printf( __( 'Edit %s', 'custom-post-type-ui' ), $taxonomy ); ?></a>
|
221 |
+
</td>
|
222 |
+
<td>
|
223 |
+
<?php foreach ( $strings as $key => $value ) {
|
224 |
+
printf( '<strong>%s:</strong> ', $key );
|
225 |
+
if ( in_array( $value, array( '1', '0' ) ) ) {
|
226 |
+
echo disp_boolean( $value );
|
227 |
+
} else {
|
228 |
+
echo $value;
|
229 |
+
}
|
230 |
+
echo '<br/>';
|
231 |
+
} ?>
|
232 |
+
</td>
|
233 |
+
<td>
|
234 |
+
<?php
|
235 |
+
if ( !empty( $object_types['object_types'] ) ) {
|
236 |
+
foreach ( $object_types['object_types'] as $type ) {
|
237 |
+
echo $type . '<br/>';
|
238 |
+
}
|
239 |
+
} ?>
|
240 |
+
</td>
|
241 |
+
<td>
|
242 |
+
<?php
|
243 |
+
$maybe_empty = array_filter( $taxonomy_settings['labels'] );
|
244 |
+
if ( !empty( $maybe_empty ) ) {
|
245 |
+
foreach ( $taxonomy_settings['labels'] as $key => $value ) {
|
246 |
+
echo $key . ': ' . $value . '<br/>';
|
247 |
+
}
|
248 |
} else {
|
249 |
+
_e( 'No custom labels to display', 'custom-post-type-ui' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
}
|
251 |
+
?>
|
252 |
+
</td>
|
253 |
+
<td>
|
254 |
+
<p><strong><?php _e( 'Archives', 'custom-post-type-ui' ); ?></strong><br />
|
255 |
+
taxonomy-<?php echo $taxonomy; ?>-term_slug.php *<br />
|
256 |
+
taxonomy-<?php echo $taxonomy; ?>.php<br />
|
257 |
+
taxonomy.php<br />
|
258 |
+
archive.php<br />
|
259 |
+
index.php
|
260 |
+
</p>
|
261 |
|
262 |
+
<p>
|
263 |
+
<?php _e( '*Replace "term_slug" with the slug of the actual taxonomy term.', 'custom-post-type-ui' ); ?>
|
264 |
+
</p>
|
265 |
+
<p><?php printf(
|
266 |
+
'<a href="https://developer.wordpress.org/themes/basics/template-hierarchy/">%s</a>',
|
267 |
+
__( 'Template hierarchy Theme Handbook', 'custom-post-type-ui' )
|
268 |
+
); ?></p>
|
269 |
+
</td>
|
270 |
+
</tr>
|
271 |
+
|
272 |
+
<?php
|
273 |
+
$counter++;
|
274 |
+
}
|
275 |
+
?>
|
276 |
+
<tr>
|
277 |
+
<?php foreach ( $taxonomy_table_heads as $head ) {
|
278 |
+
echo '<th>' . $head . '</th>';
|
279 |
+
} ?>
|
280 |
+
</tr>
|
281 |
+
</table>
|
282 |
+
<?php
|
283 |
+
} else {
|
284 |
+
echo '<p>' . sprintf( __( 'No taxonomies registered for display. Visit %s to get started.', 'custom-post-type-ui' ),
|
285 |
+
sprintf( '<a href="%s">%s</a>',
|
286 |
+
admin_url( 'admin.php?page=cptui_manage_taxonomies' ),
|
287 |
+
__( 'Add/Edit Taxonomies', 'custom-post-type-ui' )
|
288 |
+
)
|
289 |
+
) . '</p>';
|
290 |
}
|
291 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
292 |
|
293 |
</div>
|
294 |
<?php
|
inc/post-types.php
CHANGED
@@ -19,6 +19,10 @@ function cptui_post_type_enqueue_scripts() {
|
|
19 |
return;
|
20 |
}
|
21 |
|
|
|
|
|
|
|
|
|
22 |
/*$post_types = get_option( 'cptui_post_types' );
|
23 |
foreach( $post_types as $type ) {
|
24 |
$types[] = $type['name'];
|
@@ -27,9 +31,9 @@ function cptui_post_type_enqueue_scripts() {
|
|
27 |
wp_enqueue_script( 'cptui', plugins_url( 'js/cptui.js', dirname(__FILE__) ), array( 'jquery', 'jquery-ui-core', 'jquery-ui-accordion' ), CPT_VERSION, true );
|
28 |
wp_localize_script( 'cptui', 'cptui_type_data',
|
29 |
array(
|
30 |
-
'confirm' => __( 'Are you sure you want to delete this?', '
|
31 |
# 'post_types' => $types,
|
32 |
-
#'post_change_name' => '<div class="typetax-rename">' . __( 'Changing this will rename the post type.', '
|
33 |
)
|
34 |
);
|
35 |
}
|
@@ -86,23 +90,32 @@ function cptui_manage_post_types() {
|
|
86 |
# Will only be set if we're already on the edit screen
|
87 |
if ( !empty( $post_types ) ) { ?>
|
88 |
<form id="cptui_select_post_type" method="post">
|
89 |
-
<p><?php _e( 'DO NOT EDIT the post type slug unless necessary. Changing that value registers a new post type entry for your install.', '
|
90 |
-
<p><?php _e( 'Use appropriate checkbox above save/delete buttons if you wish to change slugs and update post types for existing posts.', '
|
91 |
-
|
|
|
92 |
cptui_post_types_dropdown( $post_types );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
?>
|
94 |
-
<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', '
|
95 |
</form>
|
96 |
<?php
|
97 |
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
} ?>
|
107 |
|
108 |
<form method="post">
|
@@ -121,9 +134,9 @@ function cptui_manage_post_types() {
|
|
121 |
'textvalue' => ( isset( $current['name'] ) ) ? esc_attr( $current['name'] ) : '',
|
122 |
'maxlength' => '20',
|
123 |
'onblur' => 'this.value=this.value.toLowerCase()',
|
124 |
-
'labeltext' => __( 'Post Type Slug', '
|
125 |
-
'aftertext' => __( '(e.g. movie)', '
|
126 |
-
'helptext' => esc_attr__( 'The post type name. Used to retrieve custom post type content. Should be short and unique', '
|
127 |
'required' => true
|
128 |
) );
|
129 |
|
@@ -134,9 +147,9 @@ function cptui_manage_post_types() {
|
|
134 |
'namearray' => 'cpt_custom_post_type',
|
135 |
'name' => 'label',
|
136 |
'textvalue' => ( isset( $current['label'] ) ) ? esc_attr( $current['label'] ) : '',
|
137 |
-
'labeltext' => __( 'Plural Label', '
|
138 |
-
'aftertext' => __( '(e.g. Movies)', '
|
139 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', '
|
140 |
) );
|
141 |
|
142 |
/*
|
@@ -146,9 +159,9 @@ function cptui_manage_post_types() {
|
|
146 |
'namearray' => 'cpt_custom_post_type',
|
147 |
'name' => 'singular_label',
|
148 |
'textvalue' => ( isset( $current['singular_label'] ) ) ? esc_attr( $current['singular_label'] ) : '',
|
149 |
-
'labeltext' => __( 'Singular Label', '
|
150 |
-
'aftertext' => __( '(e.g. Movie)', '
|
151 |
-
'helptext' => esc_attr__( 'Custom Post Type Singular label. Used in WordPress when a singular label is needed.', '
|
152 |
) );
|
153 |
|
154 |
/*
|
@@ -164,8 +177,8 @@ function cptui_manage_post_types() {
|
|
164 |
'rows' => '4',
|
165 |
'cols' => '40',
|
166 |
'textvalue' => ( isset( $current['description'] ) ) ? esc_textarea( $current['description'] ) : '',
|
167 |
-
'labeltext' => __('Description', '
|
168 |
-
'helptext' => esc_attr__( 'Custom Post Type Description. Describe what your custom post type is used for.', '
|
169 |
) );
|
170 |
|
171 |
/*
|
@@ -177,8 +190,8 @@ function cptui_manage_post_types() {
|
|
177 |
'checked' => 'false',
|
178 |
'name' => 'update_post_types',
|
179 |
'namearray' => 'update_post_types',
|
180 |
-
'labeltext' => __( 'Migrate posts to newly renamed post type?', '
|
181 |
-
'helptext' => esc_attr__( 'Check this to migrate posts if and when renaming your post type.', '
|
182 |
'default' => false
|
183 |
) );
|
184 |
}
|
@@ -187,10 +200,40 @@ function cptui_manage_post_types() {
|
|
187 |
<p class="submit">
|
188 |
<?php wp_nonce_field( 'cptui_addedit_post_type_nonce_action', 'cptui_addedit_post_type_nonce_field' );
|
189 |
if ( !empty( $_GET ) && !empty( $_GET['action'] ) && 'edit' == $_GET['action'] ) { ?>
|
190 |
-
|
191 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
<?php } else { ?>
|
193 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
<?php } ?>
|
195 |
|
196 |
<?php if ( !empty( $current ) ) { ?>
|
@@ -201,18 +244,18 @@ function cptui_manage_post_types() {
|
|
201 |
</p>
|
202 |
|
203 |
<?php if ( 'new' == $tab ) { ?>
|
204 |
-
<
|
205 |
<div><ol>
|
206 |
<?php
|
207 |
-
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.', '
|
208 |
-
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.', '
|
209 |
-
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.', '
|
210 |
</ol></div>
|
211 |
<?php } ?>
|
212 |
</td>
|
213 |
<td class="outter">
|
214 |
<div>
|
215 |
-
<
|
216 |
<div>
|
217 |
<table>
|
218 |
<?php
|
@@ -220,161 +263,161 @@ function cptui_manage_post_types() {
|
|
220 |
* Post Admin Menu Name
|
221 |
*/
|
222 |
echo $ui->get_text_input( array(
|
223 |
-
'labeltext' => __( 'Menu Name', '
|
224 |
-
'helptext' => esc_attr__( 'Custom menu name for your custom post type.', '
|
225 |
'namearray' => 'cpt_labels',
|
226 |
'name' => 'menu_name',
|
227 |
'textvalue' => ( isset( $current['labels']['menu_name'] ) ) ? esc_attr( $current['labels']['menu_name'] ) : '',
|
228 |
-
'aftertext' => __( '(e.g. My Movies)', '
|
229 |
) );
|
230 |
|
231 |
/*
|
232 |
* Post All Items
|
233 |
*/
|
234 |
echo $ui->get_text_input( array(
|
235 |
-
'labeltext' => __( 'All Items', '
|
236 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', '
|
237 |
'namearray' => 'cpt_labels',
|
238 |
'name' => 'all_items',
|
239 |
'textvalue' => ( isset( $current['labels']['all_items'] ) ) ? esc_attr( $current['labels']['all_items'] ) : '',
|
240 |
-
'aftertext' => __( '(e.g. All Movies)', '
|
241 |
) );
|
242 |
|
243 |
/*
|
244 |
* Add New Label
|
245 |
*/
|
246 |
echo $ui->get_text_input( array(
|
247 |
-
'labeltext' => __( 'Add New', '
|
248 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', '
|
249 |
'namearray' => 'cpt_labels',
|
250 |
'name' => 'add_new',
|
251 |
'textvalue' => ( isset( $current['labels']['add_new'] ) ) ? esc_attr( $current['labels']['add_new'] ) : '',
|
252 |
-
'aftertext' => __( '(e.g. Add New)', '
|
253 |
) );
|
254 |
|
255 |
/*
|
256 |
* Add New Item Label
|
257 |
*/
|
258 |
echo $ui->get_text_input( array(
|
259 |
-
'labeltext' => __( 'Add New Item', '
|
260 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', '
|
261 |
'namearray' => 'cpt_labels',
|
262 |
'name' => 'add_new_item',
|
263 |
'textvalue' => ( isset( $current['labels']['add_new_item'] ) ) ? esc_attr( $current['labels']['add_new_item'] ) : '',
|
264 |
-
'aftertext' => __( '(e.g. Add New Movie)', '
|
265 |
) );
|
266 |
|
267 |
/*
|
268 |
* Edit Label
|
269 |
*/
|
270 |
echo $ui->get_text_input( array(
|
271 |
-
'labeltext' => __( 'Edit', '
|
272 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', '
|
273 |
'namearray' => 'cpt_labels',
|
274 |
'name' => 'edit',
|
275 |
'textvalue' => ( isset( $current['labels']['edit'] ) ) ? esc_attr( $current['labels']['edit'] ) : '',
|
276 |
-
'aftertext' => __( '(e.g. Edit)', '
|
277 |
) );
|
278 |
|
279 |
/*
|
280 |
* Edit Item Label
|
281 |
*/
|
282 |
echo $ui->get_text_input( array(
|
283 |
-
'labeltext' => __( 'Edit Item', '
|
284 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', '
|
285 |
'namearray' => 'cpt_labels',
|
286 |
'name' => 'edit_item',
|
287 |
'textvalue' => ( isset( $current['labels']['edit_item'] ) ) ? esc_attr( $current['labels']['edit_item'] ) : '',
|
288 |
-
'aftertext' => __( '(e.g. Edit Movie)', '
|
289 |
) );
|
290 |
|
291 |
/*
|
292 |
* New Item Label
|
293 |
*/
|
294 |
echo $ui->get_text_input( array(
|
295 |
-
'labeltext' => __( 'New Item', '
|
296 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', '
|
297 |
'namearray' => 'cpt_labels',
|
298 |
'name' => 'new_item',
|
299 |
'textvalue' => ( isset( $current['labels']['new_item'] ) ) ? esc_attr( $current['labels']['new_item'] ) : '',
|
300 |
-
'aftertext' => __( '(e.g. New Movie)', '
|
301 |
) );
|
302 |
|
303 |
/*
|
304 |
* View Label
|
305 |
*/
|
306 |
echo $ui->get_text_input( array(
|
307 |
-
'labeltext' => __( 'View', '
|
308 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', '
|
309 |
'namearray' => 'cpt_labels',
|
310 |
'name' => 'view',
|
311 |
'textvalue' => ( isset( $current['labels']['view'] ) ) ? esc_attr( $current['labels']['view'] ) : '',
|
312 |
-
'aftertext' => __( '(e.g. View)', '
|
313 |
) );
|
314 |
|
315 |
/*
|
316 |
* View Item Label
|
317 |
*/
|
318 |
echo $ui->get_text_input( array(
|
319 |
-
'labeltext' => __( 'View Item', '
|
320 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', '
|
321 |
'namearray' => 'cpt_labels',
|
322 |
'name' => 'view_item',
|
323 |
'textvalue' => ( isset( $current['labels']['view_item'] ) ) ? esc_attr( $current['labels']['view_item'] ) : '',
|
324 |
-
'aftertext' => __( '(e.g. View Movie)', '
|
325 |
) );
|
326 |
|
327 |
/*
|
328 |
* Search Item Label
|
329 |
*/
|
330 |
echo $ui->get_text_input( array(
|
331 |
-
'labeltext' => __( 'Search Item', '
|
332 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', '
|
333 |
'namearray' => 'cpt_labels',
|
334 |
'name' => 'search_items',
|
335 |
'textvalue' => ( isset( $current['labels']['search_items'] ) ) ? esc_attr( $current['labels']['search_items'] ) : '',
|
336 |
-
'aftertext' => __( '(e.g. Search Movie)', '
|
337 |
) );
|
338 |
|
339 |
/*
|
340 |
* Not Found Label
|
341 |
*/
|
342 |
echo $ui->get_text_input( array(
|
343 |
-
'labeltext' => __( 'Not Found', '
|
344 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', '
|
345 |
'namearray' => 'cpt_labels',
|
346 |
'name' => 'not_found',
|
347 |
'textvalue' => ( isset( $current['labels']['not_found'] ) ) ? esc_attr( $current['labels']['not_found'] ) : '',
|
348 |
-
'aftertext' => __( '(e.g. No Movies found)', '
|
349 |
) );
|
350 |
|
351 |
/*
|
352 |
* Not Found In Trash Label
|
353 |
*/
|
354 |
echo $ui->get_text_input( array(
|
355 |
-
'labeltext' => __( 'Not Found in Trash', '
|
356 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', '
|
357 |
'namearray' => 'cpt_labels',
|
358 |
'name' => 'not_found_in_trash',
|
359 |
'textvalue' => ( isset( $current['labels']['not_found_in_trash'] ) ) ? esc_attr( $current['labels']['not_found_in_trash'] ) : '',
|
360 |
-
'aftertext' => __( '(e.g. No Movies found in Trash)', '
|
361 |
) );
|
362 |
|
363 |
/*
|
364 |
* Parent Label
|
365 |
*/
|
366 |
echo $ui->get_text_input( array(
|
367 |
-
'labeltext' => __( 'Parent', '
|
368 |
-
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', '
|
369 |
'namearray' => 'cpt_labels',
|
370 |
'name' => 'parent',
|
371 |
'textvalue' => ( isset( $current['labels']['parent'] ) ) ? esc_attr( $current['labels']['parent'] ) : '',
|
372 |
-
'aftertext' => __( '(e.g. Parent Movie)', '
|
373 |
) );
|
374 |
?>
|
375 |
</table>
|
376 |
</div>
|
377 |
-
<
|
378 |
<div>
|
379 |
<table>
|
380 |
<?php
|
@@ -383,8 +426,8 @@ function cptui_manage_post_types() {
|
|
383 |
*/
|
384 |
$select = array(
|
385 |
'options' => array(
|
386 |
-
array( 'attr' => '0', 'text' => __( 'False', '
|
387 |
-
array( 'attr' => '1', 'text' => __( 'True', '
|
388 |
)
|
389 |
);
|
390 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['public'] ) : '';
|
@@ -392,9 +435,9 @@ function cptui_manage_post_types() {
|
|
392 |
echo $ui->get_select_input( array(
|
393 |
'namearray' => 'cpt_custom_post_type',
|
394 |
'name' => 'public',
|
395 |
-
'labeltext' => __( 'Public', '
|
396 |
-
'aftertext' => __( '(default: True)', '
|
397 |
-
'helptext' => esc_attr__( 'Whether posts of this type should be shown in the admin UI and is publicly queryable.', '
|
398 |
'selections' => $select
|
399 |
) );
|
400 |
|
@@ -403,8 +446,8 @@ function cptui_manage_post_types() {
|
|
403 |
*/
|
404 |
$select = array(
|
405 |
'options' => array(
|
406 |
-
array( 'attr' => '0', 'text' => __( 'False', '
|
407 |
-
array( 'attr' => '1', 'text' => __( 'True', '
|
408 |
)
|
409 |
);
|
410 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['show_ui'] ) : '';
|
@@ -412,25 +455,76 @@ function cptui_manage_post_types() {
|
|
412 |
echo $ui->get_select_input( array(
|
413 |
'namearray' => 'cpt_custom_post_type',
|
414 |
'name' => 'show_ui',
|
415 |
-
'labeltext' => __( 'Show UI', '
|
416 |
-
'aftertext' => __( '(default: True)', '
|
417 |
-
'helptext' => esc_attr__( 'Whether to generate a default UI for managing this post type.', '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
418 |
'selections' => $select
|
419 |
) );
|
420 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
421 |
/*
|
422 |
* Has Archive Boolean
|
423 |
*/
|
424 |
echo $ui->get_tr_start() . $ui->get_th_start();
|
425 |
-
echo $ui->get_label( 'has_archive', __( 'Has Archive', '
|
426 |
-
echo $ui->get_help( esc_attr__( 'Whether the post type will have a post type archive URL.', '
|
427 |
-
echo $ui->get_p( __( 'If left blank, the archive slug will default to the post type slug.', '
|
428 |
echo $ui->get_th_end() . $ui->get_td_start();
|
429 |
|
430 |
$select = array(
|
431 |
'options' => array(
|
432 |
-
array( 'attr' => '0', 'text' => __( 'False', '
|
433 |
-
array( 'attr' => '1', 'text' => __( 'True', '
|
434 |
)
|
435 |
);
|
436 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['has_archive'] ) : '';
|
@@ -438,7 +532,7 @@ function cptui_manage_post_types() {
|
|
438 |
echo $ui->get_select_input( array(
|
439 |
'namearray' => 'cpt_custom_post_type',
|
440 |
'name' => 'has_archive',
|
441 |
-
'aftertext' => __( '(default: False)', '
|
442 |
'selections' => $select,
|
443 |
'wrap' => false
|
444 |
) );
|
@@ -450,7 +544,7 @@ function cptui_manage_post_types() {
|
|
450 |
'namearray' => 'cpt_custom_post_type',
|
451 |
'name' => 'has_archive_string',
|
452 |
'textvalue' => ( isset( $current['has_archive_string'] ) ) ? esc_attr( $current['has_archive_string'] ) : '',
|
453 |
-
'helptext' => esc_attr__( 'Slug to be used for archive URL.', '
|
454 |
'helptext_after'=> true,
|
455 |
'wrap' => false
|
456 |
) );
|
@@ -461,8 +555,8 @@ function cptui_manage_post_types() {
|
|
461 |
*/
|
462 |
$select = array(
|
463 |
'options' => array(
|
464 |
-
array( 'attr' => '0', 'text' => __( 'False', '
|
465 |
-
array( 'attr' => '1', 'text' => __( 'True', '
|
466 |
)
|
467 |
);
|
468 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['exclude_from_search'] ) : '';
|
@@ -470,9 +564,9 @@ function cptui_manage_post_types() {
|
|
470 |
echo $ui->get_select_input( array(
|
471 |
'namearray' => 'cpt_custom_post_type',
|
472 |
'name' => 'exclude_from_search',
|
473 |
-
'labeltext' => __( 'Exclude From Search', '
|
474 |
-
'aftertext' => __( '(default: False)', '
|
475 |
-
'helptext' => esc_attr__( 'Whether to exclude posts with this post type from front end search results.', '
|
476 |
'selections' => $select
|
477 |
) );
|
478 |
|
@@ -483,8 +577,8 @@ function cptui_manage_post_types() {
|
|
483 |
'namearray' => 'cpt_custom_post_type',
|
484 |
'name' => 'capability_type',
|
485 |
'textvalue' => ( isset( $current['capability_type'] ) ) ? esc_attr( $current['capability_type'] ) : 'post',
|
486 |
-
'labeltext' => __( 'Capability Type', '
|
487 |
-
'helptext' => esc_attr__( 'The post type to use for checking read, edit, and delete capabilities', '
|
488 |
) );
|
489 |
|
490 |
/*
|
@@ -492,8 +586,8 @@ function cptui_manage_post_types() {
|
|
492 |
*/
|
493 |
$select = array(
|
494 |
'options' => array(
|
495 |
-
array( 'attr' => '0', 'text' => __( 'False', '
|
496 |
-
array( 'attr' => '1', 'text' => __( 'True', '
|
497 |
)
|
498 |
);
|
499 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['hierarchical'] ) : '';
|
@@ -501,9 +595,9 @@ function cptui_manage_post_types() {
|
|
501 |
echo $ui->get_select_input( array(
|
502 |
'namearray' => 'cpt_custom_post_type',
|
503 |
'name' => 'hierarchical',
|
504 |
-
'labeltext' => __( 'Hierarchical', '
|
505 |
-
'aftertext' => __( '(default: False)', '
|
506 |
-
'helptext' => esc_attr__( 'Whether the post type can have parent-child relationships', '
|
507 |
'selections' => $select
|
508 |
) );
|
509 |
|
@@ -512,8 +606,8 @@ function cptui_manage_post_types() {
|
|
512 |
*/
|
513 |
$select = array(
|
514 |
'options' => array(
|
515 |
-
array( 'attr' => '0', 'text' => __( 'False', '
|
516 |
-
array( 'attr' => '1', 'text' => __( 'True', '
|
517 |
)
|
518 |
);
|
519 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['rewrite'] ) : '';
|
@@ -521,9 +615,9 @@ function cptui_manage_post_types() {
|
|
521 |
echo $ui->get_select_input( array(
|
522 |
'namearray' => 'cpt_custom_post_type',
|
523 |
'name' => 'rewrite',
|
524 |
-
'labeltext' => __( 'Rewrite', '
|
525 |
-
'aftertext' => __( '(default: True)', '
|
526 |
-
'helptext' => esc_attr__( 'Whether or not WordPress should use rewrites for this post type', '
|
527 |
'selections' => $select
|
528 |
) );
|
529 |
|
@@ -534,9 +628,9 @@ function cptui_manage_post_types() {
|
|
534 |
'namearray' => 'cpt_custom_post_type',
|
535 |
'name' => 'rewrite_slug',
|
536 |
'textvalue' => ( isset( $current['rewrite_slug'] ) ) ? esc_attr( $current['rewrite_slug'] ) : '',
|
537 |
-
'labeltext' => __( 'Custom Rewrite Slug', '
|
538 |
-
'aftertext' => __( '(default: post type slug)', '
|
539 |
-
'helptext' => esc_attr__( 'Custom post type slug to use instead of the default.', '
|
540 |
) );
|
541 |
|
542 |
/*
|
@@ -544,8 +638,8 @@ function cptui_manage_post_types() {
|
|
544 |
*/
|
545 |
$select = array(
|
546 |
'options' => array(
|
547 |
-
array( 'attr' => '0', 'text' => __( 'False', '
|
548 |
-
array( 'attr' => '1', 'text' => __( 'True', '
|
549 |
)
|
550 |
);
|
551 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['rewrite_withfront'] ) : '';
|
@@ -553,9 +647,9 @@ function cptui_manage_post_types() {
|
|
553 |
echo $ui->get_select_input( array(
|
554 |
'namearray' => 'cpt_custom_post_type',
|
555 |
'name' => 'rewrite_withfront',
|
556 |
-
'labeltext' => __( 'With Front', '
|
557 |
-
'aftertext' => __( '(default: True)', '
|
558 |
-
'helptext' => esc_attr__( 'Should the permastruct be prepended with the front base.', '
|
559 |
'selections' => $select
|
560 |
) );
|
561 |
|
@@ -564,8 +658,8 @@ function cptui_manage_post_types() {
|
|
564 |
*/
|
565 |
$select = array(
|
566 |
'options' => array(
|
567 |
-
array( 'attr' => '0', 'text' => __( 'False', '
|
568 |
-
array( 'attr' => '1', 'text' => __( 'True', '
|
569 |
)
|
570 |
);
|
571 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['query_var'] ) : '';
|
@@ -573,19 +667,31 @@ function cptui_manage_post_types() {
|
|
573 |
echo $ui->get_select_input( array(
|
574 |
'namearray' => 'cpt_custom_post_type',
|
575 |
'name' => 'query_var',
|
576 |
-
'labeltext' => __( 'Query Var', '
|
577 |
-
'aftertext' => __( '(default: True)', '
|
578 |
-
'helptext' => esc_attr__( 'Sets the query_var key for this post type.', '
|
579 |
'selections' => $select
|
580 |
) );
|
581 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
582 |
/*
|
583 |
* Menu Position Boolean
|
584 |
*/
|
585 |
echo $ui->get_tr_start() . $ui->get_th_start();
|
586 |
-
echo $ui->get_label( 'menu_position', __( 'Menu Position', '
|
587 |
-
echo $ui->get_help( esc_attr__( 'The position in the menu order the post type should appear. show_in_menu must be true.', '
|
588 |
-
echo $ui->get_p( __( 'See <a href="http://codex.wordpress.org/Function_Reference/register_post_type#Parameters" target="_blank">Available options</a> in the "menu_position" section. Range of 5-100', '
|
589 |
|
590 |
echo $ui->get_th_end() . $ui->get_td_start();
|
591 |
echo $ui->get_text_input( array(
|
@@ -600,15 +706,15 @@ function cptui_manage_post_types() {
|
|
600 |
* Show In Menu Boolean
|
601 |
*/
|
602 |
echo $ui->get_tr_start() . $ui->get_th_start();
|
603 |
-
echo $ui->get_label( 'show_in_menu', __( 'Show in Menu', '
|
604 |
-
echo $ui->get_help( esc_attr__( 'Whether to show the post type in the admin menu and where to show that menu.', '
|
605 |
-
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.', '
|
606 |
echo $ui->get_th_end() . $ui->get_td_start();
|
607 |
|
608 |
$select = array(
|
609 |
'options' => array(
|
610 |
-
array( 'attr' => '0', 'text' => __( 'False', '
|
611 |
-
array( 'attr' => '1', 'text' => __( 'True', '
|
612 |
)
|
613 |
);
|
614 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['show_in_menu'] ) : '';
|
@@ -616,7 +722,7 @@ function cptui_manage_post_types() {
|
|
616 |
echo $ui->get_select_input( array(
|
617 |
'namearray' => 'cpt_custom_post_type',
|
618 |
'name' => 'show_in_menu',
|
619 |
-
'aftertext' => __( '(default: True)', '
|
620 |
'selections' => $select,
|
621 |
'wrap' => false
|
622 |
) );
|
@@ -628,7 +734,7 @@ function cptui_manage_post_types() {
|
|
628 |
'namearray' => 'cpt_custom_post_type',
|
629 |
'name' => 'show_in_menu_string',
|
630 |
'textvalue' => ( isset( $current['show_in_menu_string'] ) ) ? esc_attr( $current['show_in_menu_string'] ) : '',
|
631 |
-
'helptext' => esc_attr__( 'Top-level page file name to make post type a sub-menu of.', '
|
632 |
'helptext_after'=> true,
|
633 |
'wrap' => false
|
634 |
) );
|
@@ -640,12 +746,12 @@ function cptui_manage_post_types() {
|
|
640 |
'namearray' => 'cpt_custom_post_type',
|
641 |
'name' => 'menu_icon',
|
642 |
'textvalue' => ( isset( $current['menu_icon'] ) ) ? esc_attr( $current['menu_icon'] ) : '',
|
643 |
-
'labeltext' => __( 'Menu Icon', '
|
644 |
-
'aftertext' => __( '(Full URL for icon or Dashicon class)', '
|
645 |
-
'helptext' => esc_attr__( 'URL to image to be used as menu icon or Dashicon class to use instead.', '
|
646 |
) );
|
647 |
|
648 |
-
echo $ui->get_tr_start() . $ui->get_th_start() . __( 'Supports', '
|
649 |
/*
|
650 |
* Supports Title Checkbox
|
651 |
*/
|
@@ -655,8 +761,8 @@ function cptui_manage_post_types() {
|
|
655 |
'name' => 'title',
|
656 |
'namearray' => 'cpt_supports',
|
657 |
'textvalue' => 'title',
|
658 |
-
'labeltext' => __( 'Title' , '
|
659 |
-
'helptext' => esc_attr__( 'Adds the title meta box when creating content for this custom post type', '
|
660 |
'default' => true,
|
661 |
'wrap' => false
|
662 |
) );
|
@@ -670,8 +776,8 @@ function cptui_manage_post_types() {
|
|
670 |
'name' => 'editor',
|
671 |
'namearray' => 'cpt_supports',
|
672 |
'textvalue' => 'editor',
|
673 |
-
'labeltext' => __( 'Editor' , '
|
674 |
-
'helptext' => esc_attr__( 'Adds the content editor meta box when creating content for this custom post type', '
|
675 |
'default' => true,
|
676 |
'wrap' => false
|
677 |
) );
|
@@ -685,8 +791,8 @@ function cptui_manage_post_types() {
|
|
685 |
'name' => 'excerpt',
|
686 |
'namearray' => 'cpt_supports',
|
687 |
'textvalue' => 'excerpt',
|
688 |
-
'labeltext' => __( 'Excerpt' , '
|
689 |
-
'helptext' => esc_attr__( 'Adds the excerpt meta box when creating content for this custom post type', '
|
690 |
'default' => true,
|
691 |
'wrap' => false
|
692 |
) );
|
@@ -700,8 +806,8 @@ function cptui_manage_post_types() {
|
|
700 |
'name' => 'trackbacks',
|
701 |
'namearray' => 'cpt_supports',
|
702 |
'textvalue' => 'trackbacks',
|
703 |
-
'labeltext' => __( 'Trackbacks' , '
|
704 |
-
'helptext' => esc_attr__( 'Adds the trackbacks meta box when creating content for this custom post type', '
|
705 |
'default' => true,
|
706 |
'wrap' => false
|
707 |
) );
|
@@ -715,8 +821,8 @@ function cptui_manage_post_types() {
|
|
715 |
'name' => 'custom-fields',
|
716 |
'namearray' => 'cpt_supports',
|
717 |
'textvalue' => 'custom-fields',
|
718 |
-
'labeltext' => __( 'Custom Fields' , '
|
719 |
-
'helptext' => esc_attr__( 'Adds the custom fields meta box when creating content for this custom post type', '
|
720 |
'default' => true,
|
721 |
'wrap' => false
|
722 |
) );
|
@@ -730,8 +836,8 @@ function cptui_manage_post_types() {
|
|
730 |
'name' => 'comments',
|
731 |
'namearray' => 'cpt_supports',
|
732 |
'textvalue' => 'comments',
|
733 |
-
'labeltext' => __( 'Comments' , '
|
734 |
-
'helptext' => esc_attr__( 'Adds the comments meta box when creating content for this custom post type', '
|
735 |
'default' => true,
|
736 |
'wrap' => false
|
737 |
) );
|
@@ -745,8 +851,8 @@ function cptui_manage_post_types() {
|
|
745 |
'name' => 'revisions',
|
746 |
'namearray' => 'cpt_supports',
|
747 |
'textvalue' => 'revisions',
|
748 |
-
'labeltext' => __( 'Revisions' , '
|
749 |
-
'helptext' => esc_attr__( 'Adds the revisions meta box when creating content for this custom post type', '
|
750 |
'default' => true,
|
751 |
'wrap' => false
|
752 |
) );
|
@@ -760,8 +866,8 @@ function cptui_manage_post_types() {
|
|
760 |
'name' => 'thumbnail',
|
761 |
'namearray' => 'cpt_supports',
|
762 |
'textvalue' => 'thumbnail',
|
763 |
-
'labeltext' => __( 'Featured Image' , '
|
764 |
-
'helptext' => esc_attr__( 'Adds the featured image meta box when creating content for this custom post type', '
|
765 |
'default' => true,
|
766 |
'wrap' => false
|
767 |
) );
|
@@ -775,8 +881,8 @@ function cptui_manage_post_types() {
|
|
775 |
'name' => 'author',
|
776 |
'namearray' => 'cpt_supports',
|
777 |
'textvalue' => 'author',
|
778 |
-
'labeltext' => __( 'Author' , '
|
779 |
-
'helptext' => esc_attr__( 'Adds the author meta box when creating content for this custom post type', '
|
780 |
'default' => true,
|
781 |
'wrap' => false
|
782 |
) );
|
@@ -790,8 +896,8 @@ function cptui_manage_post_types() {
|
|
790 |
'name' => 'page-attributes',
|
791 |
'namearray' => 'cpt_supports',
|
792 |
'textvalue' => 'page-attributes',
|
793 |
-
'labeltext' => __( 'Page Attributes' , '
|
794 |
-
'helptext' => esc_attr__( 'Adds the page attribute meta box when creating content for this custom post type', '
|
795 |
'default' => true,
|
796 |
'wrap' => false
|
797 |
) );
|
@@ -805,13 +911,13 @@ function cptui_manage_post_types() {
|
|
805 |
'name' => 'post-formats',
|
806 |
'namearray' => 'cpt_supports',
|
807 |
'textvalue' => 'post-formats',
|
808 |
-
'labeltext' => __( 'Post Formats' , '
|
809 |
-
'helptext' => esc_attr__( 'Adds post format support', '
|
810 |
'default' => true,
|
811 |
'wrap' => false
|
812 |
) );
|
813 |
|
814 |
-
echo $ui->get_p( __( 'Use the option below to explicitly set "supports" to false.', '
|
815 |
|
816 |
echo $ui->get_check_input( array(
|
817 |
'checkvalue' => 'none',
|
@@ -819,27 +925,28 @@ function cptui_manage_post_types() {
|
|
819 |
'name' => 'none',
|
820 |
'namearray' => 'cpt_supports',
|
821 |
'textvalue' => 'none',
|
822 |
-
'labeltext' => __( 'None' , '
|
823 |
-
'helptext' => esc_attr__( 'Remove all support features', '
|
824 |
'default' => false,
|
825 |
'wrap' => false
|
826 |
) );
|
827 |
-
echo $ui->get_td_end() . $ui->get_tr_end();
|
828 |
|
829 |
-
echo $ui->
|
830 |
-
|
|
|
|
|
831 |
echo $ui->get_th_end() . $ui->get_td_start();
|
832 |
echo $ui->get_text_input( array(
|
833 |
'namearray' => 'cpt_custom_post_type',
|
834 |
'name' => 'custom_supports',
|
835 |
'textvalue' => ( isset( $current['custom_supports'] ) ) ? esc_attr( $current['custom_supports'] ) : '',
|
836 |
-
'helptext' => esc_attr__( 'Provide custom support slugs here.', '
|
837 |
'helptext_after'=> true,
|
838 |
'wrap' => false
|
839 |
) );
|
840 |
echo $ui->get_td_end() . $ui->get_tr_end();
|
841 |
|
842 |
-
echo $ui->get_tr_start() . $ui->get_th_start() . __( 'Built-in Taxonomies', '
|
843 |
|
844 |
/**
|
845 |
* Filters the arguments for taxonomies to list for post type association.
|
@@ -868,12 +975,12 @@ function cptui_manage_post_types() {
|
|
868 |
'namearray' => 'cpt_addon_taxes',
|
869 |
'textvalue' => $add_tax->name,
|
870 |
'labeltext' => $add_tax->label,
|
871 |
-
'helptext' => sprintf( esc_attr__( 'Adds %s support', '
|
872 |
'wrap' => false
|
873 |
) );
|
874 |
}
|
875 |
|
876 |
-
echo $ui->get_td_end() . $ui->get_tr_end(); ?>
|
877 |
</table>
|
878 |
</div>
|
879 |
</div>
|
@@ -903,7 +1010,8 @@ function cptui_post_types_dropdown( $post_types = array() ) {
|
|
903 |
$select['options'] = array();
|
904 |
|
905 |
foreach( $post_types as $type ) {
|
906 |
-
$
|
|
|
907 |
}
|
908 |
|
909 |
$current = cptui_get_current_post_type();
|
@@ -974,7 +1082,7 @@ function cptui_delete_post_type( $data = array() ) {
|
|
974 |
}
|
975 |
|
976 |
if ( empty( $data['cpt_custom_post_type']['name'] ) || ! post_type_exists( $data['cpt_custom_post_type']['name'] ) ) {
|
977 |
-
return cptui_admin_notices( 'error', '', false, __( 'Please provide a post type to delete', '
|
978 |
}
|
979 |
|
980 |
/**
|
@@ -1034,7 +1142,7 @@ function cptui_update_post_type( $data = array() ) {
|
|
1034 |
|
1035 |
# They need to provide a name
|
1036 |
if ( empty( $data['cpt_custom_post_type']['name'] ) ) {
|
1037 |
-
return cptui_admin_notices(
|
1038 |
}
|
1039 |
|
1040 |
if ( !empty( $data['cpt_original'] ) && $data['cpt_original'] != $data['cpt_custom_post_type']['name'] ) {
|
@@ -1058,14 +1166,14 @@ function cptui_update_post_type( $data = array() ) {
|
|
1058 |
false !== strpos( $data['cpt_custom_post_type']['rewrite_slug'], '\'' ) ||
|
1059 |
false !== strpos( $data['cpt_custom_post_type']['rewrite_slug'], '\"' ) ) {
|
1060 |
|
1061 |
-
return cptui_admin_notices( 'error', '', false, __( 'Please do not use quotes in post type names or rewrite slugs', '
|
1062 |
}
|
1063 |
|
1064 |
$post_types = get_option( 'cptui_post_types', array() );
|
1065 |
|
1066 |
# Check if we already have a post type of that name.
|
1067 |
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() ) ) ) {
|
1068 |
-
return cptui_admin_notices( 'error', '', false, sprintf( __( 'Please choose a different post type name. %s is already registered.', '
|
1069 |
}
|
1070 |
|
1071 |
if ( empty( $data['cpt_addon_taxes'] ) || !is_array( $data['cpt_addon_taxes'] ) ) {
|
@@ -1099,9 +1207,11 @@ function cptui_update_post_type( $data = array() ) {
|
|
1099 |
|
1100 |
$name = trim( $data['cpt_custom_post_type']['name'] );
|
1101 |
$description = stripslashes_deep( $data['cpt_custom_post_type']['description'] );
|
|
|
1102 |
$has_archive_string = trim( $data['cpt_custom_post_type']['has_archive_string'] );
|
1103 |
$capability_type = trim( $data['cpt_custom_post_type']['capability_type'] );
|
1104 |
$rewrite_slug = trim( $data['cpt_custom_post_type']['rewrite_slug'] );
|
|
|
1105 |
$menu_position = trim( $data['cpt_custom_post_type']['menu_position'] );
|
1106 |
$show_in_menu_string = trim( $data['cpt_custom_post_type']['show_in_menu_string'] );
|
1107 |
$menu_icon = trim( $data['cpt_custom_post_type']['menu_icon'] );
|
@@ -1114,6 +1224,9 @@ function cptui_update_post_type( $data = array() ) {
|
|
1114 |
'description' => $description,
|
1115 |
'public' => disp_boolean( $data['cpt_custom_post_type']['public'] ),
|
1116 |
'show_ui' => disp_boolean( $data['cpt_custom_post_type']['show_ui'] ),
|
|
|
|
|
|
|
1117 |
'has_archive' => disp_boolean( $data['cpt_custom_post_type']['has_archive'] ),
|
1118 |
'has_archive_string' => $has_archive_string,
|
1119 |
'exclude_from_search' => disp_boolean( $data['cpt_custom_post_type']['exclude_from_search'] ),
|
@@ -1123,6 +1236,7 @@ function cptui_update_post_type( $data = array() ) {
|
|
1123 |
'rewrite_slug' => $rewrite_slug,
|
1124 |
'rewrite_withfront' => disp_boolean( $data['cpt_custom_post_type']['rewrite_withfront'] ),
|
1125 |
'query_var' => disp_boolean( $data['cpt_custom_post_type']['query_var'] ),
|
|
|
1126 |
'menu_position' => $menu_position,
|
1127 |
'show_in_menu' => disp_boolean( $data['cpt_custom_post_type']['show_in_menu'] ),
|
1128 |
'show_in_menu_string' => $show_in_menu_string,
|
@@ -1163,6 +1277,17 @@ function cptui_update_post_type( $data = array() ) {
|
|
1163 |
*/
|
1164 |
function cptui_reserved_post_types() {
|
1165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1166 |
/**
|
1167 |
* Filters the list of reserved post types to check against.
|
1168 |
*
|
@@ -1172,16 +1297,17 @@ function cptui_reserved_post_types() {
|
|
1172 |
*
|
1173 |
* @param array $value Array of post type slugs to forbid.
|
1174 |
*/
|
1175 |
-
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
|
1181 |
-
|
1182 |
-
|
1183 |
-
|
1184 |
-
|
|
|
1185 |
}
|
1186 |
|
1187 |
/**
|
19 |
return;
|
20 |
}
|
21 |
|
22 |
+
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
23 |
+
return;
|
24 |
+
}
|
25 |
+
|
26 |
/*$post_types = get_option( 'cptui_post_types' );
|
27 |
foreach( $post_types as $type ) {
|
28 |
$types[] = $type['name'];
|
31 |
wp_enqueue_script( 'cptui', plugins_url( 'js/cptui.js', dirname(__FILE__) ), array( 'jquery', 'jquery-ui-core', 'jquery-ui-accordion' ), CPT_VERSION, true );
|
32 |
wp_localize_script( 'cptui', 'cptui_type_data',
|
33 |
array(
|
34 |
+
'confirm' => __( 'Are you sure you want to delete this?', 'custom-post-type-ui' ),
|
35 |
# 'post_types' => $types,
|
36 |
+
#'post_change_name' => '<div class="typetax-rename">' . __( 'Changing this will rename the post type.', 'custom-post-type-ui' ) . '</div>'
|
37 |
)
|
38 |
);
|
39 |
}
|
90 |
# Will only be set if we're already on the edit screen
|
91 |
if ( !empty( $post_types ) ) { ?>
|
92 |
<form id="cptui_select_post_type" method="post">
|
93 |
+
<p><?php _e( 'DO NOT EDIT the post type slug unless necessary. Changing that value registers a new post type entry for your install.', 'custom-post-type-ui' ); ?></p>
|
94 |
+
<p><?php _e( 'Use appropriate checkbox above save/delete buttons if you wish to change slugs and update post types for existing posts.', 'custom-post-type-ui' ); ?></p>
|
95 |
+
<label for="post_type"><?php _e( 'Select: ', 'custom-post-type-ui' ); ?></label>
|
96 |
+
<?php
|
97 |
cptui_post_types_dropdown( $post_types );
|
98 |
+
|
99 |
+
/**
|
100 |
+
* Filters the text value to use on the select post type button.
|
101 |
+
*
|
102 |
+
* @since 1.0.0
|
103 |
+
*
|
104 |
+
* @param string $value Text to use for the button.
|
105 |
+
*/
|
106 |
?>
|
107 |
+
<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', 'custom-post-type-ui' ) ) ); ?>" />
|
108 |
</form>
|
109 |
<?php
|
110 |
|
111 |
+
/**
|
112 |
+
* Fires below the post type select input.
|
113 |
+
*
|
114 |
+
* @since 1.1.0
|
115 |
+
*
|
116 |
+
* @param string $value Current post type selected.
|
117 |
+
*/
|
118 |
+
do_action( 'cptui_below_post_type_select', $current['name'] );
|
119 |
} ?>
|
120 |
|
121 |
<form method="post">
|
134 |
'textvalue' => ( isset( $current['name'] ) ) ? esc_attr( $current['name'] ) : '',
|
135 |
'maxlength' => '20',
|
136 |
'onblur' => 'this.value=this.value.toLowerCase()',
|
137 |
+
'labeltext' => __( 'Post Type Slug', 'custom-post-type-ui' ),
|
138 |
+
'aftertext' => __( '(e.g. movie)', 'custom-post-type-ui' ),
|
139 |
+
'helptext' => esc_attr__( 'The post type name. Used to retrieve custom post type content. Should be short and unique', 'custom-post-type-ui'),
|
140 |
'required' => true
|
141 |
) );
|
142 |
|
147 |
'namearray' => 'cpt_custom_post_type',
|
148 |
'name' => 'label',
|
149 |
'textvalue' => ( isset( $current['label'] ) ) ? esc_attr( $current['label'] ) : '',
|
150 |
+
'labeltext' => __( 'Plural Label', 'custom-post-type-ui' ),
|
151 |
+
'aftertext' => __( '(e.g. Movies)', 'custom-post-type-ui' ),
|
152 |
+
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'custom-post-type-ui' ),
|
153 |
) );
|
154 |
|
155 |
/*
|
159 |
'namearray' => 'cpt_custom_post_type',
|
160 |
'name' => 'singular_label',
|
161 |
'textvalue' => ( isset( $current['singular_label'] ) ) ? esc_attr( $current['singular_label'] ) : '',
|
162 |
+
'labeltext' => __( 'Singular Label', 'custom-post-type-ui' ),
|
163 |
+
'aftertext' => __( '(e.g. Movie)', 'custom-post-type-ui' ),
|
164 |
+
'helptext' => esc_attr__( 'Custom Post Type Singular label. Used in WordPress when a singular label is needed.', 'custom-post-type-ui' ),
|
165 |
) );
|
166 |
|
167 |
/*
|
177 |
'rows' => '4',
|
178 |
'cols' => '40',
|
179 |
'textvalue' => ( isset( $current['description'] ) ) ? esc_textarea( $current['description'] ) : '',
|
180 |
+
'labeltext' => __('Description', 'custom-post-type-ui'),
|
181 |
+
'helptext' => esc_attr__( 'Custom Post Type Description. Describe what your custom post type is used for.', 'custom-post-type-ui' )
|
182 |
) );
|
183 |
|
184 |
/*
|
190 |
'checked' => 'false',
|
191 |
'name' => 'update_post_types',
|
192 |
'namearray' => 'update_post_types',
|
193 |
+
'labeltext' => __( 'Migrate posts to newly renamed post type?', 'custom-post-type-ui' ),
|
194 |
+
'helptext' => esc_attr__( 'Check this to migrate posts if and when renaming your post type.', 'custom-post-type-ui' ),
|
195 |
'default' => false
|
196 |
) );
|
197 |
}
|
200 |
<p class="submit">
|
201 |
<?php wp_nonce_field( 'cptui_addedit_post_type_nonce_action', 'cptui_addedit_post_type_nonce_field' );
|
202 |
if ( !empty( $_GET ) && !empty( $_GET['action'] ) && 'edit' == $_GET['action'] ) { ?>
|
203 |
+
<?php
|
204 |
+
|
205 |
+
/**
|
206 |
+
* Filters the text value to use on the button when editing.
|
207 |
+
*
|
208 |
+
* @since 1.0.0
|
209 |
+
*
|
210 |
+
* @param string $value Text to use for the button.
|
211 |
+
*/
|
212 |
+
?>
|
213 |
+
<input type="submit" class="button-primary" name="cpt_submit" value="<?php echo esc_attr( apply_filters( 'cptui_post_type_submit_edit', __( 'Save Post Type', 'custom-post-type-ui' ) ) ); ?>" />
|
214 |
+
<?php
|
215 |
+
|
216 |
+
/**
|
217 |
+
* Filters the text value to use on the button when deleting.
|
218 |
+
*
|
219 |
+
* @since 1.0.0
|
220 |
+
*
|
221 |
+
* @param string $value Text to use for the button.
|
222 |
+
*/
|
223 |
+
?>
|
224 |
+
<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', 'custom-post-type-ui' ) ) ); ?>" />
|
225 |
<?php } else { ?>
|
226 |
+
<?php
|
227 |
+
|
228 |
+
/**
|
229 |
+
* Filters the text value to use on the button when adding.
|
230 |
+
*
|
231 |
+
* @since 1.0.0
|
232 |
+
*
|
233 |
+
* @param string $value Text to use for the button.
|
234 |
+
*/
|
235 |
+
?>
|
236 |
+
<input type="submit" class="button-primary" name="cpt_submit" value="<?php echo esc_attr( apply_filters( 'cptui_post_type_submit_add', __( 'Add Post Type', 'custom-post-type-ui' ) ) ); ?>" />
|
237 |
<?php } ?>
|
238 |
|
239 |
<?php if ( !empty( $current ) ) { ?>
|
244 |
</p>
|
245 |
|
246 |
<?php if ( 'new' == $tab ) { ?>
|
247 |
+
<h2><?php _e( 'Starter Notes', 'custom-post-type-ui' ); ?></h2>
|
248 |
<div><ol>
|
249 |
<?php
|
250 |
+
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.', 'custom-post-type-ui' ), '<strong class="wp-ui-highlight">', '</strong>' );
|
251 |
+
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.', 'custom-post-type-ui' ), '<strong class="wp-ui-highlight">', '</strong>', '<strong class="wp-ui-highlight">', '</strong>' );
|
252 |
+
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.', 'custom-post-type-ui' ), '<strong class="wp-ui-highlight">', '</strong>' ); ?>
|
253 |
</ol></div>
|
254 |
<?php } ?>
|
255 |
</td>
|
256 |
<td class="outter">
|
257 |
<div>
|
258 |
+
<h2><?php _e( 'Labels', 'custom-post-type-ui' ); ?></h2>
|
259 |
<div>
|
260 |
<table>
|
261 |
<?php
|
263 |
* Post Admin Menu Name
|
264 |
*/
|
265 |
echo $ui->get_text_input( array(
|
266 |
+
'labeltext' => __( 'Menu Name', 'custom-post-type-ui' ),
|
267 |
+
'helptext' => esc_attr__( 'Custom menu name for your custom post type.', 'custom-post-type-ui' ),
|
268 |
'namearray' => 'cpt_labels',
|
269 |
'name' => 'menu_name',
|
270 |
'textvalue' => ( isset( $current['labels']['menu_name'] ) ) ? esc_attr( $current['labels']['menu_name'] ) : '',
|
271 |
+
'aftertext' => __( '(e.g. My Movies)', 'custom-post-type-ui' )
|
272 |
) );
|
273 |
|
274 |
/*
|
275 |
* Post All Items
|
276 |
*/
|
277 |
echo $ui->get_text_input( array(
|
278 |
+
'labeltext' => __( 'All Items', 'custom-post-type-ui' ),
|
279 |
+
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'custom-post-type-ui' ),
|
280 |
'namearray' => 'cpt_labels',
|
281 |
'name' => 'all_items',
|
282 |
'textvalue' => ( isset( $current['labels']['all_items'] ) ) ? esc_attr( $current['labels']['all_items'] ) : '',
|
283 |
+
'aftertext' => __( '(e.g. All Movies)', 'custom-post-type-ui' )
|
284 |
) );
|
285 |
|
286 |
/*
|
287 |
* Add New Label
|
288 |
*/
|
289 |
echo $ui->get_text_input( array(
|
290 |
+
'labeltext' => __( 'Add New', 'custom-post-type-ui' ),
|
291 |
+
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'custom-post-type-ui' ),
|
292 |
'namearray' => 'cpt_labels',
|
293 |
'name' => 'add_new',
|
294 |
'textvalue' => ( isset( $current['labels']['add_new'] ) ) ? esc_attr( $current['labels']['add_new'] ) : '',
|
295 |
+
'aftertext' => __( '(e.g. Add New)', 'custom-post-type-ui' )
|
296 |
) );
|
297 |
|
298 |
/*
|
299 |
* Add New Item Label
|
300 |
*/
|
301 |
echo $ui->get_text_input( array(
|
302 |
+
'labeltext' => __( 'Add New Item', 'custom-post-type-ui' ),
|
303 |
+
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'custom-post-type-ui' ),
|
304 |
'namearray' => 'cpt_labels',
|
305 |
'name' => 'add_new_item',
|
306 |
'textvalue' => ( isset( $current['labels']['add_new_item'] ) ) ? esc_attr( $current['labels']['add_new_item'] ) : '',
|
307 |
+
'aftertext' => __( '(e.g. Add New Movie)', 'custom-post-type-ui' )
|
308 |
) );
|
309 |
|
310 |
/*
|
311 |
* Edit Label
|
312 |
*/
|
313 |
echo $ui->get_text_input( array(
|
314 |
+
'labeltext' => __( 'Edit', 'custom-post-type-ui' ),
|
315 |
+
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'custom-post-type-ui' ),
|
316 |
'namearray' => 'cpt_labels',
|
317 |
'name' => 'edit',
|
318 |
'textvalue' => ( isset( $current['labels']['edit'] ) ) ? esc_attr( $current['labels']['edit'] ) : '',
|
319 |
+
'aftertext' => __( '(e.g. Edit)', 'custom-post-type-ui' )
|
320 |
) );
|
321 |
|
322 |
/*
|
323 |
* Edit Item Label
|
324 |
*/
|
325 |
echo $ui->get_text_input( array(
|
326 |
+
'labeltext' => __( 'Edit Item', 'custom-post-type-ui' ),
|
327 |
+
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'custom-post-type-ui' ),
|
328 |
'namearray' => 'cpt_labels',
|
329 |
'name' => 'edit_item',
|
330 |
'textvalue' => ( isset( $current['labels']['edit_item'] ) ) ? esc_attr( $current['labels']['edit_item'] ) : '',
|
331 |
+
'aftertext' => __( '(e.g. Edit Movie)', 'custom-post-type-ui' )
|
332 |
) );
|
333 |
|
334 |
/*
|
335 |
* New Item Label
|
336 |
*/
|
337 |
echo $ui->get_text_input( array(
|
338 |
+
'labeltext' => __( 'New Item', 'custom-post-type-ui' ),
|
339 |
+
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'custom-post-type-ui' ),
|
340 |
'namearray' => 'cpt_labels',
|
341 |
'name' => 'new_item',
|
342 |
'textvalue' => ( isset( $current['labels']['new_item'] ) ) ? esc_attr( $current['labels']['new_item'] ) : '',
|
343 |
+
'aftertext' => __( '(e.g. New Movie)', 'custom-post-type-ui' )
|
344 |
) );
|
345 |
|
346 |
/*
|
347 |
* View Label
|
348 |
*/
|
349 |
echo $ui->get_text_input( array(
|
350 |
+
'labeltext' => __( 'View', 'custom-post-type-ui' ),
|
351 |
+
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'custom-post-type-ui' ),
|
352 |
'namearray' => 'cpt_labels',
|
353 |
'name' => 'view',
|
354 |
'textvalue' => ( isset( $current['labels']['view'] ) ) ? esc_attr( $current['labels']['view'] ) : '',
|
355 |
+
'aftertext' => __( '(e.g. View)', 'custom-post-type-ui' )
|
356 |
) );
|
357 |
|
358 |
/*
|
359 |
* View Item Label
|
360 |
*/
|
361 |
echo $ui->get_text_input( array(
|
362 |
+
'labeltext' => __( 'View Item', 'custom-post-type-ui' ),
|
363 |
+
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'custom-post-type-ui' ),
|
364 |
'namearray' => 'cpt_labels',
|
365 |
'name' => 'view_item',
|
366 |
'textvalue' => ( isset( $current['labels']['view_item'] ) ) ? esc_attr( $current['labels']['view_item'] ) : '',
|
367 |
+
'aftertext' => __( '(e.g. View Movie)', 'custom-post-type-ui' )
|
368 |
) );
|
369 |
|
370 |
/*
|
371 |
* Search Item Label
|
372 |
*/
|
373 |
echo $ui->get_text_input( array(
|
374 |
+
'labeltext' => __( 'Search Item', 'custom-post-type-ui' ),
|
375 |
+
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'custom-post-type-ui' ),
|
376 |
'namearray' => 'cpt_labels',
|
377 |
'name' => 'search_items',
|
378 |
'textvalue' => ( isset( $current['labels']['search_items'] ) ) ? esc_attr( $current['labels']['search_items'] ) : '',
|
379 |
+
'aftertext' => __( '(e.g. Search Movie)', 'custom-post-type-ui' )
|
380 |
) );
|
381 |
|
382 |
/*
|
383 |
* Not Found Label
|
384 |
*/
|
385 |
echo $ui->get_text_input( array(
|
386 |
+
'labeltext' => __( 'Not Found', 'custom-post-type-ui' ),
|
387 |
+
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'custom-post-type-ui' ),
|
388 |
'namearray' => 'cpt_labels',
|
389 |
'name' => 'not_found',
|
390 |
'textvalue' => ( isset( $current['labels']['not_found'] ) ) ? esc_attr( $current['labels']['not_found'] ) : '',
|
391 |
+
'aftertext' => __( '(e.g. No Movies found)', 'custom-post-type-ui' )
|
392 |
) );
|
393 |
|
394 |
/*
|
395 |
* Not Found In Trash Label
|
396 |
*/
|
397 |
echo $ui->get_text_input( array(
|
398 |
+
'labeltext' => __( 'Not Found in Trash', 'custom-post-type-ui' ),
|
399 |
+
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'custom-post-type-ui' ),
|
400 |
'namearray' => 'cpt_labels',
|
401 |
'name' => 'not_found_in_trash',
|
402 |
'textvalue' => ( isset( $current['labels']['not_found_in_trash'] ) ) ? esc_attr( $current['labels']['not_found_in_trash'] ) : '',
|
403 |
+
'aftertext' => __( '(e.g. No Movies found in Trash)', 'custom-post-type-ui' )
|
404 |
) );
|
405 |
|
406 |
/*
|
407 |
* Parent Label
|
408 |
*/
|
409 |
echo $ui->get_text_input( array(
|
410 |
+
'labeltext' => __( 'Parent', 'custom-post-type-ui' ),
|
411 |
+
'helptext' => esc_attr__( 'Post type label. Used in the admin menu for displaying post types.', 'custom-post-type-ui' ),
|
412 |
'namearray' => 'cpt_labels',
|
413 |
'name' => 'parent',
|
414 |
'textvalue' => ( isset( $current['labels']['parent'] ) ) ? esc_attr( $current['labels']['parent'] ) : '',
|
415 |
+
'aftertext' => __( '(e.g. Parent Movie)', 'custom-post-type-ui' )
|
416 |
) );
|
417 |
?>
|
418 |
</table>
|
419 |
</div>
|
420 |
+
<h2><?php _e( 'Settings', 'custom-post-type-ui' ); ?></h2>
|
421 |
<div>
|
422 |
<table>
|
423 |
<?php
|
426 |
*/
|
427 |
$select = array(
|
428 |
'options' => array(
|
429 |
+
array( 'attr' => '0', 'text' => __( 'False', 'custom-post-type-ui' ) ),
|
430 |
+
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ), 'default' => 'true' )
|
431 |
)
|
432 |
);
|
433 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['public'] ) : '';
|
435 |
echo $ui->get_select_input( array(
|
436 |
'namearray' => 'cpt_custom_post_type',
|
437 |
'name' => 'public',
|
438 |
+
'labeltext' => __( 'Public', 'custom-post-type-ui' ),
|
439 |
+
'aftertext' => __( '(CPTUI default: True.)', 'custom-post-type-ui' ),
|
440 |
+
'helptext' => esc_attr__( 'WordPress core defaults to false. CPTUI defaults to true for user sake. Whether posts of this type should be shown in the admin UI and is publicly queryable.', 'custom-post-type-ui' ),
|
441 |
'selections' => $select
|
442 |
) );
|
443 |
|
446 |
*/
|
447 |
$select = array(
|
448 |
'options' => array(
|
449 |
+
array( 'attr' => '0', 'text' => __( 'False', 'custom-post-type-ui' ) ),
|
450 |
+
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ), 'default' => 'true' )
|
451 |
)
|
452 |
);
|
453 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['show_ui'] ) : '';
|
455 |
echo $ui->get_select_input( array(
|
456 |
'namearray' => 'cpt_custom_post_type',
|
457 |
'name' => 'show_ui',
|
458 |
+
'labeltext' => __( 'Show UI', 'custom-post-type-ui' ),
|
459 |
+
'aftertext' => __( '(default: True)', 'custom-post-type-ui' ),
|
460 |
+
'helptext' => esc_attr__( 'Whether to generate a default UI for managing this post type.', 'custom-post-type-ui' ),
|
461 |
+
'selections' => $select
|
462 |
+
) );
|
463 |
+
|
464 |
+
/*
|
465 |
+
* Show in Nav Menus
|
466 |
+
*/
|
467 |
+
$select = array(
|
468 |
+
'options' => array(
|
469 |
+
array( 'attr' => '0', 'text' => __( 'False', 'custom-post-type-ui' ) ),
|
470 |
+
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ), 'default' => 'true' )
|
471 |
+
)
|
472 |
+
);
|
473 |
+
$selected = ( isset( $current ) ) ? disp_boolean( $current['show_in_nav_menus'] ) : '';
|
474 |
+
$select['selected'] = ( ! empty( $selected ) ) ? $current['show_in_nav_menus'] : '';
|
475 |
+
echo $ui->get_select_input( array(
|
476 |
+
'namearray' => 'cpt_custom_post_type',
|
477 |
+
'name' => 'show_in_nav_menus',
|
478 |
+
'labeltext' => __( 'Show in Nav Menus', 'custom-post-type-ui' ),
|
479 |
+
'aftertext' => __( '(CPTUI default: true)', 'custom-post-type-ui' ),
|
480 |
+
'helptext' => esc_attr__( 'Whether post type is available for selection in navigation menus.', 'custom-post-type-ui' ),
|
481 |
+
'selections' => $select
|
482 |
+
) );
|
483 |
+
|
484 |
+
/*
|
485 |
+
* show_in_rest Boolean
|
486 |
+
*/
|
487 |
+
$select = array(
|
488 |
+
'options' => array(
|
489 |
+
array( 'attr' => '0', 'text' => __( 'False', 'custom-post-type-ui' ), 'default' => 'false' ),
|
490 |
+
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ) )
|
491 |
+
)
|
492 |
+
);
|
493 |
+
$selected = ( isset( $current ) ) ? disp_boolean( $current['show_in_rest'] ) : '';
|
494 |
+
$select['selected'] = ( !empty( $selected ) ) ? $current['show_in_rest'] : '';
|
495 |
+
echo $ui->get_select_input( array(
|
496 |
+
'namearray' => 'cpt_custom_post_type',
|
497 |
+
'name' => 'show_in_rest',
|
498 |
+
'labeltext' => __( 'Show in REST API', 'custom-post-type-ui' ),
|
499 |
+
'aftertext' => __( '(default: False)', 'custom-post-type-ui' ),
|
500 |
+
'helptext' => esc_attr__( 'Whether to show this post type data in the WP REST API.', 'custom-post-type-ui' ),
|
501 |
'selections' => $select
|
502 |
) );
|
503 |
|
504 |
+
/*
|
505 |
+
* rest_base slug.
|
506 |
+
*/
|
507 |
+
echo $ui->get_text_input( array(
|
508 |
+
'labeltext' => __( 'REST API base slug', 'custom-post-type-ui' ),
|
509 |
+
'helptext' => esc_attr__( 'Slug to use in REST API URLs.', 'custom-post-type-ui' ),
|
510 |
+
'namearray' => 'cpt_custom_post_type',
|
511 |
+
'name' => 'rest_base',
|
512 |
+
'textvalue' => ( isset( $current['rest_base'] ) ) ? esc_attr( $current['rest_base'] ) : '',
|
513 |
+
) );
|
514 |
+
|
515 |
/*
|
516 |
* Has Archive Boolean
|
517 |
*/
|
518 |
echo $ui->get_tr_start() . $ui->get_th_start();
|
519 |
+
echo $ui->get_label( 'has_archive', __( 'Has Archive', 'custom-post-type-ui' ) );
|
520 |
+
echo $ui->get_help( esc_attr__( 'Whether the post type will have a post type archive URL.', 'custom-post-type-ui' ) );
|
521 |
+
echo $ui->get_p( __( 'If left blank, the archive slug will default to the post type slug.', 'custom-post-type-ui' ) );
|
522 |
echo $ui->get_th_end() . $ui->get_td_start();
|
523 |
|
524 |
$select = array(
|
525 |
'options' => array(
|
526 |
+
array( 'attr' => '0', 'text' => __( 'False', 'custom-post-type-ui' ), 'default' => 'true' ),
|
527 |
+
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ) )
|
528 |
)
|
529 |
);
|
530 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['has_archive'] ) : '';
|
532 |
echo $ui->get_select_input( array(
|
533 |
'namearray' => 'cpt_custom_post_type',
|
534 |
'name' => 'has_archive',
|
535 |
+
'aftertext' => __( '(default: False)', 'custom-post-type-ui' ),
|
536 |
'selections' => $select,
|
537 |
'wrap' => false
|
538 |
) );
|
544 |
'namearray' => 'cpt_custom_post_type',
|
545 |
'name' => 'has_archive_string',
|
546 |
'textvalue' => ( isset( $current['has_archive_string'] ) ) ? esc_attr( $current['has_archive_string'] ) : '',
|
547 |
+
'helptext' => esc_attr__( 'Slug to be used for archive URL.', 'custom-post-type-ui' ),
|
548 |
'helptext_after'=> true,
|
549 |
'wrap' => false
|
550 |
) );
|
555 |
*/
|
556 |
$select = array(
|
557 |
'options' => array(
|
558 |
+
array( 'attr' => '0', 'text' => __( 'False', 'custom-post-type-ui' ), 'default' => 'true' ),
|
559 |
+
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ) )
|
560 |
)
|
561 |
);
|
562 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['exclude_from_search'] ) : '';
|
564 |
echo $ui->get_select_input( array(
|
565 |
'namearray' => 'cpt_custom_post_type',
|
566 |
'name' => 'exclude_from_search',
|
567 |
+
'labeltext' => __( 'Exclude From Search', 'custom-post-type-ui' ),
|
568 |
+
'aftertext' => __( '(default: False)', 'custom-post-type-ui' ),
|
569 |
+
'helptext' => esc_attr__( 'Whether to exclude posts with this post type from front end search results.', 'custom-post-type-ui' ),
|
570 |
'selections' => $select
|
571 |
) );
|
572 |
|
577 |
'namearray' => 'cpt_custom_post_type',
|
578 |
'name' => 'capability_type',
|
579 |
'textvalue' => ( isset( $current['capability_type'] ) ) ? esc_attr( $current['capability_type'] ) : 'post',
|
580 |
+
'labeltext' => __( 'Capability Type', 'custom-post-type-ui' ),
|
581 |
+
'helptext' => esc_attr__( 'The post type to use for checking read, edit, and delete capabilities', 'custom-post-type-ui' ),
|
582 |
) );
|
583 |
|
584 |
/*
|
586 |
*/
|
587 |
$select = array(
|
588 |
'options' => array(
|
589 |
+
array( 'attr' => '0', 'text' => __( 'False', 'custom-post-type-ui' ), 'default' => 'true' ),
|
590 |
+
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ) )
|
591 |
)
|
592 |
);
|
593 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['hierarchical'] ) : '';
|
595 |
echo $ui->get_select_input( array(
|
596 |
'namearray' => 'cpt_custom_post_type',
|
597 |
'name' => 'hierarchical',
|
598 |
+
'labeltext' => __( 'Hierarchical', 'custom-post-type-ui' ),
|
599 |
+
'aftertext' => __( '(default: False)', 'custom-post-type-ui' ),
|
600 |
+
'helptext' => esc_attr__( 'Whether the post type can have parent-child relationships', 'custom-post-type-ui' ),
|
601 |
'selections' => $select
|
602 |
) );
|
603 |
|
606 |
*/
|
607 |
$select = array(
|
608 |
'options' => array(
|
609 |
+
array( 'attr' => '0', 'text' => __( 'False', 'custom-post-type-ui' ) ),
|
610 |
+
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ), 'default' => 'true' )
|
611 |
)
|
612 |
);
|
613 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['rewrite'] ) : '';
|
615 |
echo $ui->get_select_input( array(
|
616 |
'namearray' => 'cpt_custom_post_type',
|
617 |
'name' => 'rewrite',
|
618 |
+
'labeltext' => __( 'Rewrite', 'custom-post-type-ui' ),
|
619 |
+
'aftertext' => __( '(default: True)', 'custom-post-type-ui' ),
|
620 |
+
'helptext' => esc_attr__( 'Whether or not WordPress should use rewrites for this post type', 'custom-post-type-ui' ),
|
621 |
'selections' => $select
|
622 |
) );
|
623 |
|
628 |
'namearray' => 'cpt_custom_post_type',
|
629 |
'name' => 'rewrite_slug',
|
630 |
'textvalue' => ( isset( $current['rewrite_slug'] ) ) ? esc_attr( $current['rewrite_slug'] ) : '',
|
631 |
+
'labeltext' => __( 'Custom Rewrite Slug', 'custom-post-type-ui' ),
|
632 |
+
'aftertext' => __( '(default: post type slug)', 'custom-post-type-ui' ),
|
633 |
+
'helptext' => esc_attr__( 'Custom post type slug to use instead of the default.', 'custom-post-type-ui' ),
|
634 |
) );
|
635 |
|
636 |
/*
|
638 |
*/
|
639 |
$select = array(
|
640 |
'options' => array(
|
641 |
+
array( 'attr' => '0', 'text' => __( 'False', 'custom-post-type-ui' ) ),
|
642 |
+
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ), 'default' => 'true' )
|
643 |
)
|
644 |
);
|
645 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['rewrite_withfront'] ) : '';
|
647 |
echo $ui->get_select_input( array(
|
648 |
'namearray' => 'cpt_custom_post_type',
|
649 |
'name' => 'rewrite_withfront',
|
650 |
+
'labeltext' => __( 'With Front', 'custom-post-type-ui' ),
|
651 |
+
'aftertext' => __( '(default: True)', 'custom-post-type-ui' ),
|
652 |
+
'helptext' => esc_attr__( 'Should the permastruct be prepended with the front base.', 'custom-post-type-ui' ),
|
653 |
'selections' => $select
|
654 |
) );
|
655 |
|
658 |
*/
|
659 |
$select = array(
|
660 |
'options' => array(
|
661 |
+
array( 'attr' => '0', 'text' => __( 'False', 'custom-post-type-ui' ) ),
|
662 |
+
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ), 'default' => 'true' )
|
663 |
)
|
664 |
);
|
665 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['query_var'] ) : '';
|
667 |
echo $ui->get_select_input( array(
|
668 |
'namearray' => 'cpt_custom_post_type',
|
669 |
'name' => 'query_var',
|
670 |
+
'labeltext' => __( 'Query Var', 'custom-post-type-ui' ),
|
671 |
+
'aftertext' => __( '(default: True)', 'custom-post-type-ui' ),
|
672 |
+
'helptext' => esc_attr__( 'Sets the query_var key for this post type.', 'custom-post-type-ui' ),
|
673 |
'selections' => $select
|
674 |
) );
|
675 |
|
676 |
+
/*
|
677 |
+
* Query Var Slug Input
|
678 |
+
*/
|
679 |
+
echo $ui->get_text_input( array(
|
680 |
+
'namearray' => 'cpt_custom_post_type',
|
681 |
+
'name' => 'query_var_slug',
|
682 |
+
'textvalue' => ( isset( $current['query_var_slug'] ) ) ? esc_attr( $current['query_var_slug'] ) : '',
|
683 |
+
'labeltext' => __( 'Custom Query Var Slug', 'custom-post-type-ui' ),
|
684 |
+
'aftertext' => __( '(default: post type slug) Query var needs to be true to use.', 'custom-post-type-ui' ),
|
685 |
+
'helptext' => esc_attr__( 'Custom query var slug to use instead of the default.', 'custom-post-type-ui' ),
|
686 |
+
) );
|
687 |
+
|
688 |
/*
|
689 |
* Menu Position Boolean
|
690 |
*/
|
691 |
echo $ui->get_tr_start() . $ui->get_th_start();
|
692 |
+
echo $ui->get_label( 'menu_position', __( 'Menu Position', 'custom-post-type-ui' ) );
|
693 |
+
echo $ui->get_help( esc_attr__( 'The position in the menu order the post type should appear. show_in_menu must be true.', 'custom-post-type-ui' ) );
|
694 |
+
echo $ui->get_p( __( 'See <a href="http://codex.wordpress.org/Function_Reference/register_post_type#Parameters" target="_blank">Available options</a> in the "menu_position" section. Range of 5-100', 'custom-post-type-ui' ) );
|
695 |
|
696 |
echo $ui->get_th_end() . $ui->get_td_start();
|
697 |
echo $ui->get_text_input( array(
|
706 |
* Show In Menu Boolean
|
707 |
*/
|
708 |
echo $ui->get_tr_start() . $ui->get_th_start();
|
709 |
+
echo $ui->get_label( 'show_in_menu', __( 'Show in Menu', 'custom-post-type-ui' ) );
|
710 |
+
echo $ui->get_help( esc_attr__( 'Whether to show the post type in the admin menu and where to show that menu.', 'custom-post-type-ui' ) );
|
711 |
+
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.', 'custom-post-type-ui' ) );
|
712 |
echo $ui->get_th_end() . $ui->get_td_start();
|
713 |
|
714 |
$select = array(
|
715 |
'options' => array(
|
716 |
+
array( 'attr' => '0', 'text' => __( 'False', 'custom-post-type-ui' ) ),
|
717 |
+
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ), 'default' => 'true' )
|
718 |
)
|
719 |
);
|
720 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['show_in_menu'] ) : '';
|
722 |
echo $ui->get_select_input( array(
|
723 |
'namearray' => 'cpt_custom_post_type',
|
724 |
'name' => 'show_in_menu',
|
725 |
+
'aftertext' => __( '(default: True)', 'custom-post-type-ui' ),
|
726 |
'selections' => $select,
|
727 |
'wrap' => false
|
728 |
) );
|
734 |
'namearray' => 'cpt_custom_post_type',
|
735 |
'name' => 'show_in_menu_string',
|
736 |
'textvalue' => ( isset( $current['show_in_menu_string'] ) ) ? esc_attr( $current['show_in_menu_string'] ) : '',
|
737 |
+
'helptext' => esc_attr__( 'Top-level page file name to make post type a sub-menu of.', 'custom-post-type-ui' ),
|
738 |
'helptext_after'=> true,
|
739 |
'wrap' => false
|
740 |
) );
|
746 |
'namearray' => 'cpt_custom_post_type',
|
747 |
'name' => 'menu_icon',
|
748 |
'textvalue' => ( isset( $current['menu_icon'] ) ) ? esc_attr( $current['menu_icon'] ) : '',
|
749 |
+
'labeltext' => __( 'Menu Icon', 'custom-post-type-ui' ),
|
750 |
+
'aftertext' => __( '(Full URL for icon or Dashicon class)', 'custom-post-type-ui' ),
|
751 |
+
'helptext' => esc_attr__( 'URL to image to be used as menu icon or Dashicon class to use instead.', 'custom-post-type-ui' ),
|
752 |
) );
|
753 |
|
754 |
+
echo $ui->get_tr_start() . $ui->get_th_start() . __( 'Supports', 'custom-post-type-ui' ) . $ui->get_th_end() . $ui->get_td_start() . $ui->get_fieldset_start();
|
755 |
/*
|
756 |
* Supports Title Checkbox
|
757 |
*/
|
761 |
'name' => 'title',
|
762 |
'namearray' => 'cpt_supports',
|
763 |
'textvalue' => 'title',
|
764 |
+
'labeltext' => __( 'Title' , 'custom-post-type-ui' ),
|
765 |
+
'helptext' => esc_attr__( 'Adds the title meta box when creating content for this custom post type', 'custom-post-type-ui' ),
|
766 |
'default' => true,
|
767 |
'wrap' => false
|
768 |
) );
|
776 |
'name' => 'editor',
|
777 |
'namearray' => 'cpt_supports',
|
778 |
'textvalue' => 'editor',
|
779 |
+
'labeltext' => __( 'Editor' , 'custom-post-type-ui' ),
|
780 |
+
'helptext' => esc_attr__( 'Adds the content editor meta box when creating content for this custom post type', 'custom-post-type-ui' ),
|
781 |
'default' => true,
|
782 |
'wrap' => false
|
783 |
) );
|
791 |
'name' => 'excerpt',
|
792 |
'namearray' => 'cpt_supports',
|
793 |
'textvalue' => 'excerpt',
|
794 |
+
'labeltext' => __( 'Excerpt' , 'custom-post-type-ui' ),
|
795 |
+
'helptext' => esc_attr__( 'Adds the excerpt meta box when creating content for this custom post type', 'custom-post-type-ui' ),
|
796 |
'default' => true,
|
797 |
'wrap' => false
|
798 |
) );
|
806 |
'name' => 'trackbacks',
|
807 |
'namearray' => 'cpt_supports',
|
808 |
'textvalue' => 'trackbacks',
|
809 |
+
'labeltext' => __( 'Trackbacks' , 'custom-post-type-ui' ),
|
810 |
+
'helptext' => esc_attr__( 'Adds the trackbacks meta box when creating content for this custom post type', 'custom-post-type-ui' ),
|
811 |
'default' => true,
|
812 |
'wrap' => false
|
813 |
) );
|
821 |
'name' => 'custom-fields',
|
822 |
'namearray' => 'cpt_supports',
|
823 |
'textvalue' => 'custom-fields',
|
824 |
+
'labeltext' => __( 'Custom Fields' , 'custom-post-type-ui' ),
|
825 |
+
'helptext' => esc_attr__( 'Adds the custom fields meta box when creating content for this custom post type', 'custom-post-type-ui' ),
|
826 |
'default' => true,
|
827 |
'wrap' => false
|
828 |
) );
|
836 |
'name' => 'comments',
|
837 |
'namearray' => 'cpt_supports',
|
838 |
'textvalue' => 'comments',
|
839 |
+
'labeltext' => __( 'Comments' , 'custom-post-type-ui' ),
|
840 |
+
'helptext' => esc_attr__( 'Adds the comments meta box when creating content for this custom post type', 'custom-post-type-ui' ),
|
841 |
'default' => true,
|
842 |
'wrap' => false
|
843 |
) );
|
851 |
'name' => 'revisions',
|
852 |
'namearray' => 'cpt_supports',
|
853 |
'textvalue' => 'revisions',
|
854 |
+
'labeltext' => __( 'Revisions' , 'custom-post-type-ui' ),
|
855 |
+
'helptext' => esc_attr__( 'Adds the revisions meta box when creating content for this custom post type', 'custom-post-type-ui' ),
|
856 |
'default' => true,
|
857 |
'wrap' => false
|
858 |
) );
|
866 |
'name' => 'thumbnail',
|
867 |
'namearray' => 'cpt_supports',
|
868 |
'textvalue' => 'thumbnail',
|
869 |
+
'labeltext' => __( 'Featured Image' , 'custom-post-type-ui' ),
|
870 |
+
'helptext' => esc_attr__( 'Adds the featured image meta box when creating content for this custom post type', 'custom-post-type-ui' ),
|
871 |
'default' => true,
|
872 |
'wrap' => false
|
873 |
) );
|
881 |
'name' => 'author',
|
882 |
'namearray' => 'cpt_supports',
|
883 |
'textvalue' => 'author',
|
884 |
+
'labeltext' => __( 'Author' , 'custom-post-type-ui' ),
|
885 |
+
'helptext' => esc_attr__( 'Adds the author meta box when creating content for this custom post type', 'custom-post-type-ui' ),
|
886 |
'default' => true,
|
887 |
'wrap' => false
|
888 |
) );
|
896 |
'name' => 'page-attributes',
|
897 |
'namearray' => 'cpt_supports',
|
898 |
'textvalue' => 'page-attributes',
|
899 |
+
'labeltext' => __( 'Page Attributes' , 'custom-post-type-ui' ),
|
900 |
+
'helptext' => esc_attr__( 'Adds the page attribute meta box when creating content for this custom post type', 'custom-post-type-ui' ),
|
901 |
'default' => true,
|
902 |
'wrap' => false
|
903 |
) );
|
911 |
'name' => 'post-formats',
|
912 |
'namearray' => 'cpt_supports',
|
913 |
'textvalue' => 'post-formats',
|
914 |
+
'labeltext' => __( 'Post Formats' , 'custom-post-type-ui' ),
|
915 |
+
'helptext' => esc_attr__( 'Adds post format support', 'custom-post-type-ui' ),
|
916 |
'default' => true,
|
917 |
'wrap' => false
|
918 |
) );
|
919 |
|
920 |
+
echo $ui->get_p( __( 'Use the option below to explicitly set "supports" to false.', 'custom-post-type-ui' ) );
|
921 |
|
922 |
echo $ui->get_check_input( array(
|
923 |
'checkvalue' => 'none',
|
925 |
'name' => 'none',
|
926 |
'namearray' => 'cpt_supports',
|
927 |
'textvalue' => 'none',
|
928 |
+
'labeltext' => __( 'None' , 'custom-post-type-ui' ),
|
929 |
+
'helptext' => esc_attr__( 'Remove all support features', 'custom-post-type-ui' ),
|
930 |
'default' => false,
|
931 |
'wrap' => false
|
932 |
) );
|
|
|
933 |
|
934 |
+
echo $ui->get_fieldset_end() . $ui->get_td_end() . $ui->get_tr_end();
|
935 |
+
|
936 |
+
echo $ui->get_tr_start() . $ui->get_th_start() . __( 'Custom "Supports"', 'custom-post-type-ui' );
|
937 |
+
echo $ui->get_p( __( 'Use this input to register custom "supports" values, separated by commas.', 'custom-post-type-ui' ) );
|
938 |
echo $ui->get_th_end() . $ui->get_td_start();
|
939 |
echo $ui->get_text_input( array(
|
940 |
'namearray' => 'cpt_custom_post_type',
|
941 |
'name' => 'custom_supports',
|
942 |
'textvalue' => ( isset( $current['custom_supports'] ) ) ? esc_attr( $current['custom_supports'] ) : '',
|
943 |
+
'helptext' => esc_attr__( 'Provide custom support slugs here.', 'custom-post-type-ui' ),
|
944 |
'helptext_after'=> true,
|
945 |
'wrap' => false
|
946 |
) );
|
947 |
echo $ui->get_td_end() . $ui->get_tr_end();
|
948 |
|
949 |
+
echo $ui->get_tr_start() . $ui->get_th_start() . __( 'Built-in Taxonomies', 'custom-post-type-ui' ) . $ui->get_th_end() . $ui->get_td_start() . $ui->get_fieldset_start();
|
950 |
|
951 |
/**
|
952 |
* Filters the arguments for taxonomies to list for post type association.
|
975 |
'namearray' => 'cpt_addon_taxes',
|
976 |
'textvalue' => $add_tax->name,
|
977 |
'labeltext' => $add_tax->label,
|
978 |
+
'helptext' => sprintf( esc_attr__( 'Adds %s support', 'custom-post-type-ui' ), $add_tax->label ),
|
979 |
'wrap' => false
|
980 |
) );
|
981 |
}
|
982 |
|
983 |
+
echo $ui->get_fieldset_end() . $ui->get_td_end() . $ui->get_tr_end(); ?>
|
984 |
</table>
|
985 |
</div>
|
986 |
</div>
|
1010 |
$select['options'] = array();
|
1011 |
|
1012 |
foreach( $post_types as $type ) {
|
1013 |
+
$text = ( !empty( $type['label'] ) ) ? $type['label'] : $type['name'];
|
1014 |
+
$select['options'][] = array( 'attr' => $type['name'], 'text' => $text );
|
1015 |
}
|
1016 |
|
1017 |
$current = cptui_get_current_post_type();
|
1082 |
}
|
1083 |
|
1084 |
if ( empty( $data['cpt_custom_post_type']['name'] ) || ! post_type_exists( $data['cpt_custom_post_type']['name'] ) ) {
|
1085 |
+
return cptui_admin_notices( 'error', '', false, __( 'Please provide a post type to delete', 'custom-post-type-ui' ) );
|
1086 |
}
|
1087 |
|
1088 |
/**
|
1142 |
|
1143 |
# They need to provide a name
|
1144 |
if ( empty( $data['cpt_custom_post_type']['name'] ) ) {
|
1145 |
+
return cptui_admin_notices( 'error', '', false, __( 'Please provide a post type name', 'custom-post-type-ui' ) );
|
1146 |
}
|
1147 |
|
1148 |
if ( !empty( $data['cpt_original'] ) && $data['cpt_original'] != $data['cpt_custom_post_type']['name'] ) {
|
1166 |
false !== strpos( $data['cpt_custom_post_type']['rewrite_slug'], '\'' ) ||
|
1167 |
false !== strpos( $data['cpt_custom_post_type']['rewrite_slug'], '\"' ) ) {
|
1168 |
|
1169 |
+
return cptui_admin_notices( 'error', '', false, __( 'Please do not use quotes in post type names or rewrite slugs', 'custom-post-type-ui' ) );
|
1170 |
}
|
1171 |
|
1172 |
$post_types = get_option( 'cptui_post_types', array() );
|
1173 |
|
1174 |
# Check if we already have a post type of that name.
|
1175 |
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() ) ) ) {
|
1176 |
+
return cptui_admin_notices( 'error', '', false, sprintf( __( 'Please choose a different post type name. %s is already registered.', 'custom-post-type-ui' ), $data['cpt_custom_post_type']['name'] ) );
|
1177 |
}
|
1178 |
|
1179 |
if ( empty( $data['cpt_addon_taxes'] ) || !is_array( $data['cpt_addon_taxes'] ) ) {
|
1207 |
|
1208 |
$name = trim( $data['cpt_custom_post_type']['name'] );
|
1209 |
$description = stripslashes_deep( $data['cpt_custom_post_type']['description'] );
|
1210 |
+
$rest_base = trim( $data['cpt_custom_post_type']['rest_base'] );
|
1211 |
$has_archive_string = trim( $data['cpt_custom_post_type']['has_archive_string'] );
|
1212 |
$capability_type = trim( $data['cpt_custom_post_type']['capability_type'] );
|
1213 |
$rewrite_slug = trim( $data['cpt_custom_post_type']['rewrite_slug'] );
|
1214 |
+
$query_var_slug = trim( $data['cpt_custom_post_type']['query_var_slug'] );
|
1215 |
$menu_position = trim( $data['cpt_custom_post_type']['menu_position'] );
|
1216 |
$show_in_menu_string = trim( $data['cpt_custom_post_type']['show_in_menu_string'] );
|
1217 |
$menu_icon = trim( $data['cpt_custom_post_type']['menu_icon'] );
|
1224 |
'description' => $description,
|
1225 |
'public' => disp_boolean( $data['cpt_custom_post_type']['public'] ),
|
1226 |
'show_ui' => disp_boolean( $data['cpt_custom_post_type']['show_ui'] ),
|
1227 |
+
'show_in_nav_menus' => disp_boolean( $data['cpt_custom_post_type']['show_in_nav_menus'] ),
|
1228 |
+
'show_in_rest' => disp_boolean( $data['cpt_custom_post_type']['show_in_rest'] ),
|
1229 |
+
'rest_base' => $rest_base,
|
1230 |
'has_archive' => disp_boolean( $data['cpt_custom_post_type']['has_archive'] ),
|
1231 |
'has_archive_string' => $has_archive_string,
|
1232 |
'exclude_from_search' => disp_boolean( $data['cpt_custom_post_type']['exclude_from_search'] ),
|
1236 |
'rewrite_slug' => $rewrite_slug,
|
1237 |
'rewrite_withfront' => disp_boolean( $data['cpt_custom_post_type']['rewrite_withfront'] ),
|
1238 |
'query_var' => disp_boolean( $data['cpt_custom_post_type']['query_var'] ),
|
1239 |
+
'query_var_slug' => $query_var_slug,
|
1240 |
'menu_position' => $menu_position,
|
1241 |
'show_in_menu' => disp_boolean( $data['cpt_custom_post_type']['show_in_menu'] ),
|
1242 |
'show_in_menu_string' => $show_in_menu_string,
|
1277 |
*/
|
1278 |
function cptui_reserved_post_types() {
|
1279 |
|
1280 |
+
$reserved = array(
|
1281 |
+
'post',
|
1282 |
+
'page',
|
1283 |
+
'attachment',
|
1284 |
+
'revision',
|
1285 |
+
'nav_menu_item',
|
1286 |
+
'action',
|
1287 |
+
'order',
|
1288 |
+
'theme'
|
1289 |
+
);
|
1290 |
+
|
1291 |
/**
|
1292 |
* Filters the list of reserved post types to check against.
|
1293 |
*
|
1297 |
*
|
1298 |
* @param array $value Array of post type slugs to forbid.
|
1299 |
*/
|
1300 |
+
$custom_reserved = apply_filters( 'cptui_reserved_post_types', array() );
|
1301 |
+
|
1302 |
+
if ( is_string( $custom_reserved ) && ! empty( $custom_reserved ) ) {
|
1303 |
+
$reserved[] = $custom_reserved;
|
1304 |
+
} else if ( is_array( $custom_reserved ) && ! empty( $custom_reserved ) ) {
|
1305 |
+
foreach ( $custom_reserved as $slug ) {
|
1306 |
+
$reserved[] = $slug;
|
1307 |
+
}
|
1308 |
+
}
|
1309 |
+
|
1310 |
+
return $reserved;
|
1311 |
}
|
1312 |
|
1313 |
/**
|
inc/support.php
CHANGED
@@ -17,6 +17,10 @@ function cptui_support_enqueue_scripts() {
|
|
17 |
return;
|
18 |
}
|
19 |
|
|
|
|
|
|
|
|
|
20 |
wp_enqueue_script( 'cptui', plugins_url( 'js/cptui.js' , dirname(__FILE__) ) . '', array( 'jquery' ), '0.9', true );
|
21 |
}
|
22 |
add_action( 'admin_enqueue_scripts', 'cptui_support_enqueue_scripts' );
|
@@ -38,54 +42,72 @@ function cptui_support() {
|
|
38 |
*/
|
39 |
do_action( 'cptui_main_page_before_faq' ); ?>
|
40 |
|
41 |
-
<h1><?php _e( 'Custom Post Type UI Support', '
|
42 |
|
43 |
-
<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', '
|
44 |
-
'<a href="http://www.wordpress.org/support/plugin/custom-post-type-ui/">' . __( 'Support Forums', '
|
45 |
); ?></p>
|
46 |
|
47 |
<table id="support" class="form-table cptui-table">
|
48 |
<tr>
|
49 |
<td class="outter">
|
50 |
-
<h2><?php _e( 'General', '
|
51 |
<ol id="questions_general">
|
52 |
<li>
|
53 |
-
<span class="question"><?php _e( 'I
|
54 |
-
<div class="answer"><?php _e( '
|
|
|
|
|
|
|
|
|
|
|
55 |
<a href="http://wordpress.org/plugins/post-type-switcher/" target="_blank">http://wordpress.org/extend/plugins/post-type-switcher/</a>
|
56 |
</div>
|
57 |
</li>
|
58 |
<li>
|
59 |
-
<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?', '
|
60 |
-
<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.', '
|
61 |
</li>
|
62 |
<li>
|
63 |
-
<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.', '
|
64 |
-
<div class="answer"><?php _e( 'Make sure your theme has post "post-thumbnails" theme support enabled.', '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
</li>
|
66 |
</ol>
|
67 |
</td>
|
68 |
<td class="outter">
|
69 |
-
<h2><?php _e( 'Front-end Display', '
|
70 |
<ol id="questions_front">
|
71 |
<li>
|
72 |
-
<span class="question"><?php _e( 'What template files should I edit to alter my post type display?', '
|
73 |
-
<div class="answer"><?php printf( __( 'Please visit the %sTemplate Hierarchy%s page on the WordPress codex for details about available templates.', '
|
74 |
'<a href="http://codex.wordpress.org/Template_Hierarchy" target="_blank">',
|
75 |
'</a>'
|
76 |
); ?>
|
77 |
</div>
|
78 |
</li>
|
79 |
<li>
|
80 |
-
<span class="question"><?php _e( 'How do I display my custom post type on my site?', '
|
81 |
-
<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"', '
|
82 |
'<a href="http://codex.wordpress.org/Class_Reference/WP_Query" target="_blank">',
|
83 |
'</a>'
|
84 |
); ?></div>
|
85 |
</li>
|
86 |
<li>
|
87 |
-
<span class="question"><?php _e( 'I have added categories and tags to my custom post type, but they do not appear in the archives.', '
|
88 |
-
<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', '
|
89 |
'<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>'
|
90 |
); ?> </div>
|
91 |
</li>
|
@@ -94,27 +116,27 @@ function cptui_support() {
|
|
94 |
</tr>
|
95 |
<tr>
|
96 |
<td class="outter">
|
97 |
-
<h2><?php _e( 'Advanced', '
|
98 |
<ol id="questions_advanced">
|
99 |
<li>
|
100 |
-
<span class="question"><?php _e( 'How do I add custom metaboxes to my post type?', '
|
101 |
<div class="answer"><?php printf(
|
102 |
-
__( 'We recommend checking out %s, the latest iteration of "Custom Metaboxes and Fields for WordPress". Both are maintained by WebDevStudios.', '
|
103 |
'<a href="https://wordpress.org/plugins/cmb2/" target="_blank">CMB2</a>'
|
104 |
); ?>
|
105 |
</div>
|
106 |
</li>
|
107 |
<li>
|
108 |
-
<span class="question"><?php _e( 'How do I add a newly registered taxonomy to a post type that already exists?', '
|
109 |
<div class="answer"><?php printf(
|
110 |
-
__( 'Check out the %s function for documentation and usage examples.', '
|
111 |
'<a href="http://codex.wordpress.org/Function_Reference/register_taxonomy_for_object_type" target="_blank">register_taxonomy_for_object_type()</a>'
|
112 |
); ?>
|
113 |
</div>
|
114 |
</li>
|
115 |
<li>
|
116 |
-
<span class="question"><?php _e( 'Post relationships?', '
|
117 |
-
<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.', '
|
118 |
'Pippin Williamson',
|
119 |
'<a href="http://pippinsplugins.com/introduction-posts-2-posts-plugin/" target="_blank">',
|
120 |
'</a>',
|
@@ -123,13 +145,13 @@ function cptui_support() {
|
|
123 |
); ?></div>
|
124 |
</li>
|
125 |
<li>
|
126 |
-
<span class="question"><?php _e( 'Is there any function reference list?', '
|
127 |
-
<div class="answer"><?php printf( __( '%s has compiled a nice list of functions used by our plugin. Note not all will be useful as they are attached to hooks.', '
|
128 |
'<a href="http://hookr.io/plugins/custom-post-type-ui/1.0.5/all/#index=c" target="_blank">Hookr.io</a>' ); ?></div>
|
129 |
</li>
|
130 |
<li>
|
131 |
-
<span class="question"><?php _e( 'How do I filter the "enter title here" text in the post editor screen?', '
|
132 |
-
<div class="answer"><p><?php _e( 'Change text inside the post/page editor title field. Should be able to adapt as necessary.', '
|
133 |
<pre><code>function my_custom_title_text( $title ){
|
134 |
global $post;
|
135 |
if ( 'ENTER POST TYPE SLUG HERE' == $post->post_type )
|
17 |
return;
|
18 |
}
|
19 |
|
20 |
+
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
21 |
+
return;
|
22 |
+
}
|
23 |
+
|
24 |
wp_enqueue_script( 'cptui', plugins_url( 'js/cptui.js' , dirname(__FILE__) ) . '', array( 'jquery' ), '0.9', true );
|
25 |
}
|
26 |
add_action( 'admin_enqueue_scripts', 'cptui_support_enqueue_scripts' );
|
42 |
*/
|
43 |
do_action( 'cptui_main_page_before_faq' ); ?>
|
44 |
|
45 |
+
<h1><?php _e( 'Custom Post Type UI Support', 'custom-post-type-ui' ); ?></h1>
|
46 |
|
47 |
+
<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', 'custom-post-type-ui' ),
|
48 |
+
'<a href="http://www.wordpress.org/support/plugin/custom-post-type-ui/">' . __( 'Support Forums', 'custom-post-type-ui' ) . '</a>'
|
49 |
); ?></p>
|
50 |
|
51 |
<table id="support" class="form-table cptui-table">
|
52 |
<tr>
|
53 |
<td class="outter">
|
54 |
+
<h2><?php _e( 'General', 'custom-post-type-ui' ); ?></h2>
|
55 |
<ol id="questions_general">
|
56 |
<li>
|
57 |
+
<span class="question"><?php _e( 'I have post types with spaces in their slug and can not successfully delete them. How can I fix that?', 'custom-post-type-ui' ); ?></span>
|
58 |
+
<div class="answer"><?php _e( 'Visit the Import/Export page and copy the export code into the import side on the left. Replace the space with an underscore and then click "Import". You should be able to delete the individual post types afterwards.', 'custom-post-type-ui' ); ?>
|
59 |
+
</div>
|
60 |
+
</li>
|
61 |
+
<li>
|
62 |
+
<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?', 'custom-post-type-ui' ); ?></span>
|
63 |
+
<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', 'custom-post-type-ui' ); ?>
|
64 |
<a href="http://wordpress.org/plugins/post-type-switcher/" target="_blank">http://wordpress.org/extend/plugins/post-type-switcher/</a>
|
65 |
</div>
|
66 |
</li>
|
67 |
<li>
|
68 |
+
<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?', 'custom-post-type-ui' ); ?></span>
|
69 |
+
<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.', 'custom-post-type-ui' ); ?> <a href="http://wordpress.org/plugins/post-type-switcher/" target="_blank">http://wordpress.org/extend/plugins/post-type-switcher/</a></div>
|
70 |
</li>
|
71 |
<li>
|
72 |
+
<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.', 'custom-post-type-ui' ); ?></span>
|
73 |
+
<div class="answer"><?php _e( 'Make sure your theme has post "post-thumbnails" theme support enabled.', 'custom-post-type-ui' ); ?> <a href="http://codex.wordpress.org/Function_Reference/add_theme_support" target="_blank">http://codex.wordpress.org/Function_Reference/add_theme_support</a></div>
|
74 |
+
</li>
|
75 |
+
<li>
|
76 |
+
<span class="question"><?php _e( 'Do you have any recommendations for an alternative to Visual Composer?', 'custom-post-type-ui' ); ?></span>
|
77 |
+
<div class="answer"><?php _e( 'We recommend using VelocityPage.', 'custom-post-type-ui' ); ?>
|
78 |
+
<a href="https://velocitypage.com" target="_blank">https://velocitypage.com</a>
|
79 |
+
</div>
|
80 |
+
</li>
|
81 |
+
<li>
|
82 |
+
<span class="question"><?php _e( 'Is there any way to get CPTUI-registered post types working with Visual Composer Media Grid?', 'custom-post-type-ui' ); ?></span>
|
83 |
+
|
84 |
+
<div class="answer"><?php _e( 'Please see the solution from the following forum support thread.', 'custom-post-type-ui' ); ?>
|
85 |
+
<a href="https://wordpress.org/support/topic/custom-post-type-and-visual-composer-grid-block?replies=11#post-7111458" target="_blank">https://wordpress.org/support/topic/custom-post-type-and-visual-composer-grid-block?replies=11#post-7111458</a>
|
86 |
+
</div>
|
87 |
</li>
|
88 |
</ol>
|
89 |
</td>
|
90 |
<td class="outter">
|
91 |
+
<h2><?php _e( 'Front-end Display', 'custom-post-type-ui' ); ?></h2>
|
92 |
<ol id="questions_front">
|
93 |
<li>
|
94 |
+
<span class="question"><?php _e( 'What template files should I edit to alter my post type display?', 'custom-post-type-ui' ); ?></span>
|
95 |
+
<div class="answer"><?php printf( __( 'Please visit the %sTemplate Hierarchy%s page on the WordPress codex for details about available templates.', 'custom-post-type-ui' ),
|
96 |
'<a href="http://codex.wordpress.org/Template_Hierarchy" target="_blank">',
|
97 |
'</a>'
|
98 |
); ?>
|
99 |
</div>
|
100 |
</li>
|
101 |
<li>
|
102 |
+
<span class="question"><?php _e( 'How do I display my custom post type on my site?', 'custom-post-type-ui' ); ?></span>
|
103 |
+
<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"', 'custom-post-type-ui' ),
|
104 |
'<a href="http://codex.wordpress.org/Class_Reference/WP_Query" target="_blank">',
|
105 |
'</a>'
|
106 |
); ?></div>
|
107 |
</li>
|
108 |
<li>
|
109 |
+
<span class="question"><?php _e( 'I have added categories and tags to my custom post type, but they do not appear in the archives.', 'custom-post-type-ui' ); ?></span>
|
110 |
+
<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', 'custom-post-type-ui' ),
|
111 |
'<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>'
|
112 |
); ?> </div>
|
113 |
</li>
|
116 |
</tr>
|
117 |
<tr>
|
118 |
<td class="outter">
|
119 |
+
<h2><?php _e( 'Advanced', 'custom-post-type-ui' ); ?></h2>
|
120 |
<ol id="questions_advanced">
|
121 |
<li>
|
122 |
+
<span class="question"><?php _e( 'How do I add custom metaboxes to my post type?', 'custom-post-type-ui' ); ?></span>
|
123 |
<div class="answer"><?php printf(
|
124 |
+
__( 'We recommend checking out %s, the latest iteration of "Custom Metaboxes and Fields for WordPress". Both are maintained by WebDevStudios.', 'custom-post-type-ui' ),
|
125 |
'<a href="https://wordpress.org/plugins/cmb2/" target="_blank">CMB2</a>'
|
126 |
); ?>
|
127 |
</div>
|
128 |
</li>
|
129 |
<li>
|
130 |
+
<span class="question"><?php _e( 'How do I add a newly registered taxonomy to a post type that already exists?', 'custom-post-type-ui' ); ?></span>
|
131 |
<div class="answer"><?php printf(
|
132 |
+
__( 'Check out the %s function for documentation and usage examples.', 'custom-post-type-ui' ),
|
133 |
'<a href="http://codex.wordpress.org/Function_Reference/register_taxonomy_for_object_type" target="_blank">register_taxonomy_for_object_type()</a>'
|
134 |
); ?>
|
135 |
</div>
|
136 |
</li>
|
137 |
<li>
|
138 |
+
<span class="question"><?php _e( 'Post relationships?', 'custom-post-type-ui' ); ?></span>
|
139 |
+
<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.', 'custom-post-type-ui' ),
|
140 |
'Pippin Williamson',
|
141 |
'<a href="http://pippinsplugins.com/introduction-posts-2-posts-plugin/" target="_blank">',
|
142 |
'</a>',
|
145 |
); ?></div>
|
146 |
</li>
|
147 |
<li>
|
148 |
+
<span class="question"><?php _e( 'Is there any function reference list?', 'custom-post-type-ui' ); ?></span>
|
149 |
+
<div class="answer"><?php printf( __( '%s has compiled a nice list of functions used by our plugin. Note not all will be useful as they are attached to hooks.', 'custom-post-type-ui' ),
|
150 |
'<a href="http://hookr.io/plugins/custom-post-type-ui/1.0.5/all/#index=c" target="_blank">Hookr.io</a>' ); ?></div>
|
151 |
</li>
|
152 |
<li>
|
153 |
+
<span class="question"><?php _e( 'How do I filter the "enter title here" text in the post editor screen?', 'custom-post-type-ui' ); ?></span>
|
154 |
+
<div class="answer"><p><?php _e( 'Change text inside the post/page editor title field. Should be able to adapt as necessary.', 'custom-post-type-ui' ); ?></p>
|
155 |
<pre><code>function my_custom_title_text( $title ){
|
156 |
global $post;
|
157 |
if ( 'ENTER POST TYPE SLUG HERE' == $post->post_type )
|
inc/taxonomies.php
CHANGED
@@ -19,11 +19,15 @@ function cptui_taxonomies_enqueue_scripts() {
|
|
19 |
return;
|
20 |
}
|
21 |
|
|
|
|
|
|
|
|
|
22 |
wp_enqueue_script( 'cptui', plugins_url( 'js/cptui.js' , dirname(__FILE__) ) . '', array( 'jquery', 'jquery-ui-core', 'jquery-ui-accordion' ), CPT_VERSION, true );
|
23 |
wp_localize_script( 'cptui', 'cptui_tax_data',
|
24 |
array(
|
25 |
-
'confirm' => __( 'Are you sure you want to delete this?', '
|
26 |
-
#'tax_change_name' => '<div class="typetax-rename">' . __( 'Changing this will rename the taxonomy.', '
|
27 |
)
|
28 |
);
|
29 |
}
|
@@ -82,13 +86,20 @@ function cptui_manage_taxonomies() {
|
|
82 |
# Will only be set if we're already on the edit screen
|
83 |
if ( !empty( $taxonomies ) ) { ?>
|
84 |
<form id="cptui_select_taxonomy" method="post">
|
85 |
-
<p><?php _e( 'DO NOT EDIT the taxonomy slug unless necessary. Changing that value registers a new taxonomy entry for your install.', '
|
|
|
86 |
<?php
|
87 |
-
_e( 'Select: ', 'cpt-plugin' );
|
88 |
cptui_taxonomies_dropdown( $taxonomies );
|
89 |
-
?>
|
90 |
|
91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
</form>
|
93 |
<?php
|
94 |
|
@@ -115,9 +126,9 @@ function cptui_manage_taxonomies() {
|
|
115 |
'textvalue' => ( isset( $current['name'] ) ) ? esc_attr( $current['name'] ) : '',
|
116 |
'maxlength' => '32',
|
117 |
'onblur' => 'this.value=this.value.toLowerCase()',
|
118 |
-
'labeltext' => __( 'Taxonomy Slug', '
|
119 |
-
'aftertext' => __( '(e.g. actor)', '
|
120 |
-
'helptext' => esc_attr__( 'The taxonomy name. Used to retrieve custom taxonomy content. Should be short and unique', '
|
121 |
'required' => true,
|
122 |
) );
|
123 |
|
@@ -125,22 +136,39 @@ function cptui_manage_taxonomies() {
|
|
125 |
'namearray' => 'cpt_custom_tax',
|
126 |
'name' => 'label',
|
127 |
'textvalue' => ( isset( $current['label'] ) ) ? esc_attr( $current['label'] ) : '',
|
128 |
-
'aftertext' => __( '(e.g. Actors)', '
|
129 |
-
'labeltext' => __( 'Plural Label', '
|
130 |
-
'helptext' => esc_attr__( 'Taxonomy label. Used in the admin menu for displaying custom taxonomy.', '
|
131 |
) );
|
132 |
|
133 |
echo $ui->get_text_input( array(
|
134 |
'namearray' => 'cpt_custom_tax',
|
135 |
'name' => 'singular_label',
|
136 |
'textvalue' => ( isset( $current['singular_label'] ) ) ? esc_attr( $current['singular_label'] ) : '',
|
137 |
-
'aftertext' => __( '(e.g. Actor)', '
|
138 |
-
'labeltext' => __( 'Singular Label', '
|
139 |
-
'helptext' => esc_attr__( 'Taxonomy Singular label. Used in WordPress when a singular label is needed.', '
|
140 |
) );
|
141 |
|
142 |
-
|
143 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
|
145 |
/**
|
146 |
* Filters the arguments for post types to list for taxonomy association.
|
@@ -169,36 +197,67 @@ function cptui_manage_taxonomies() {
|
|
169 |
'namearray' => 'cpt_post_types',
|
170 |
'textvalue' => $post_type->name,
|
171 |
'labeltext' => $post_type->label,
|
172 |
-
'helptext' => sprintf( esc_attr__( 'Adds %s support', '
|
173 |
'wrap' => false
|
174 |
) );
|
175 |
}
|
176 |
-
|
|
|
177 |
</table>
|
178 |
<p class="submit">
|
179 |
<?php wp_nonce_field( 'cptui_addedit_taxonomy_nonce_action', 'cptui_addedit_taxonomy_nonce_field' );
|
180 |
if ( !empty( $_GET ) && !empty( $_GET['action'] ) && 'edit' == $_GET['action'] ) { ?>
|
181 |
-
|
182 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
<?php } else { ?>
|
184 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
<?php } ?>
|
186 |
<input type="hidden" name="cpt_tax_status" id="cpt_tax_status" value="<?php echo $tab; ?>" />
|
187 |
</p>
|
188 |
|
189 |
<?php if ( 'new' == $tab ) { ?>
|
190 |
-
<
|
191 |
<div><ol>
|
192 |
<?php
|
193 |
-
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.', '
|
194 |
-
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.', '
|
195 |
-
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.', '
|
196 |
</ol></div>
|
197 |
<?php } ?>
|
198 |
</td>
|
199 |
<td class="outter">
|
200 |
<div>
|
201 |
-
<
|
202 |
<div>
|
203 |
<table>
|
204 |
<?php
|
@@ -207,147 +266,147 @@ function cptui_manage_taxonomies() {
|
|
207 |
'namearray' => 'cpt_tax_labels',
|
208 |
'name' => 'menu_name',
|
209 |
'textvalue' => ( isset( $current['labels']['menu_name'] ) ) ? esc_attr( $current['labels']['menu_name'] ) : '',
|
210 |
-
'aftertext' => __( '(e.g. Actors)', '
|
211 |
-
'labeltext' => __( 'Menu Name', '
|
212 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', '
|
213 |
) );
|
214 |
|
215 |
echo $ui->get_text_input( array(
|
216 |
'namearray' => 'cpt_tax_labels',
|
217 |
'name' => 'all_items',
|
218 |
'textvalue' => ( isset( $current['labels']['all_items'] ) ) ? esc_attr( $current['labels']['all_items'] ) : '',
|
219 |
-
'aftertext' => __( '(e.g. All Actors)', '
|
220 |
-
'labeltext' => __( 'All Items', '
|
221 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', '
|
222 |
) );
|
223 |
|
224 |
echo $ui->get_text_input( array(
|
225 |
'namearray' => 'cpt_tax_labels',
|
226 |
'name' => 'edit_item',
|
227 |
'textvalue' => ( isset( $current['labels']['edit_item'] ) ) ? esc_attr( $current['labels']['edit_item'] ) : '',
|
228 |
-
'aftertext' => __( '(e.g. Edit Actor)', '
|
229 |
-
'labeltext' => __( 'Edit Item', '
|
230 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', '
|
231 |
) );
|
232 |
|
233 |
echo $ui->get_text_input( array(
|
234 |
'namearray' => 'cpt_tax_labels',
|
235 |
'name' => 'view_item',
|
236 |
'textvalue' => ( isset( $current['labels']['view_item'] ) ) ? esc_attr( $current['labels']['view_item'] ) : '',
|
237 |
-
'aftertext' => __( '(e.g. View Actor)', '
|
238 |
-
'labeltext' => __( 'View Item', '
|
239 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', '
|
240 |
) );
|
241 |
|
242 |
echo $ui->get_text_input( array(
|
243 |
'namearray' => 'cpt_tax_labels',
|
244 |
'name' => 'update_item',
|
245 |
'textvalue' => ( isset( $current['labels']['update_item'] ) ) ? esc_attr( $current['labels']['update_item'] ) : '',
|
246 |
-
'aftertext' => __( '(e.g. Update Actor Name)', '
|
247 |
-
'labeltext' => __( 'Update Item Name', '
|
248 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', '
|
249 |
) );
|
250 |
|
251 |
echo $ui->get_text_input( array(
|
252 |
'namearray' => 'cpt_tax_labels',
|
253 |
'name' => 'add_new_item',
|
254 |
'textvalue' => ( isset( $current['labels']['add_new_item'] ) ) ? esc_attr( $current['labels']['add_new_item'] ) : '',
|
255 |
-
'aftertext' => __( '(e.g. Add New Actor)', '
|
256 |
-
'labeltext' => __( 'Add New Item', '
|
257 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', '
|
258 |
) );
|
259 |
|
260 |
echo $ui->get_text_input( array(
|
261 |
'namearray' => 'cpt_tax_labels',
|
262 |
'name' => 'new_item_name',
|
263 |
'textvalue' => ( isset( $current['labels']['new_item_name'] ) ) ? esc_attr( $current['labels']['new_item_name'] ) : '',
|
264 |
-
'aftertext' => __( '(e.g. New Actor Name)', '
|
265 |
-
'labeltext' => __( 'New Item Name', '
|
266 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', '
|
267 |
) );
|
268 |
|
269 |
echo $ui->get_text_input( array(
|
270 |
'namearray' => 'cpt_tax_labels',
|
271 |
'name' => 'parent_item',
|
272 |
'textvalue' => ( isset( $current['labels']['parent_item'] ) ) ? esc_attr( $current['labels']['parent_item'] ) : '',
|
273 |
-
'aftertext' => __( '(e.g. Parent Actor)', '
|
274 |
-
'labeltext' => __( 'Parent Item', '
|
275 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', '
|
276 |
) );
|
277 |
|
278 |
echo $ui->get_text_input( array(
|
279 |
'namearray' => 'cpt_tax_labels',
|
280 |
'name' => 'parent_item_colon',
|
281 |
'textvalue' => ( isset( $current['labels']['parent_item_colon'] ) ) ? esc_attr( $current['labels']['parent_item_colon'] ) : '',
|
282 |
-
'aftertext' => __( '(e.g. Parent Actor:)', '
|
283 |
-
'labeltext' => __( 'Parent Item Colon', '
|
284 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', '
|
285 |
) );
|
286 |
|
287 |
echo $ui->get_text_input( array(
|
288 |
'namearray' => 'cpt_tax_labels',
|
289 |
'name' => 'search_items',
|
290 |
'textvalue' => ( isset( $current['labels']['search_items'] ) ) ? esc_attr( $current['labels']['search_items'] ) : '',
|
291 |
-
'aftertext' => __( '(e.g. Search Actors)', '
|
292 |
-
'labeltext' => __( 'Search Items', '
|
293 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', '
|
294 |
) );
|
295 |
|
296 |
echo $ui->get_text_input( array(
|
297 |
'namearray' => 'cpt_tax_labels',
|
298 |
'name' => 'popular_items',
|
299 |
'textvalue' => ( isset( $current['labels']['popular_items'] ) ) ? esc_attr( $current['labels']['popular_items'] ) : null,
|
300 |
-
'aftertext' => __( '(e.g. Popular Actors)', '
|
301 |
-
'labeltext' => __( 'Popular Items', '
|
302 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', '
|
303 |
) );
|
304 |
|
305 |
echo $ui->get_text_input( array(
|
306 |
'namearray' => 'cpt_tax_labels',
|
307 |
'name' => 'separate_items_with_commas',
|
308 |
'textvalue' => ( isset( $current['labels']['separate_items_with_commas'] ) ) ? esc_attr( $current['labels']['separate_items_with_commas'] ) : null,
|
309 |
-
'aftertext' => __( '(e.g. Separate
|
310 |
-
'labeltext' => __( 'Separate Items with Commas', '
|
311 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', '
|
312 |
) );
|
313 |
|
314 |
echo $ui->get_text_input( array(
|
315 |
'namearray' => 'cpt_tax_labels',
|
316 |
'name' => 'add_or_remove_items',
|
317 |
'textvalue' => ( isset( $current['labels']['add_or_remove_items'] ) ) ? esc_attr( $current['labels']['add_or_remove_items'] ) : null,
|
318 |
-
'aftertext' => __( '(e.g. Add or remove
|
319 |
-
'labeltext' => __( 'Add or Remove Items', '
|
320 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', '
|
321 |
) );
|
322 |
|
323 |
echo $ui->get_text_input( array(
|
324 |
'namearray' => 'cpt_tax_labels',
|
325 |
'name' => 'choose_from_most_used',
|
326 |
'textvalue' => ( isset( $current['labels']['choose_from_most_used'] ) ) ? esc_attr( $current['labels']['choose_from_most_used'] ) : null,
|
327 |
-
'aftertext' => __( '(e.g. Choose from the most used
|
328 |
-
'labeltext' => __( 'Choose From Most Used', '
|
329 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', '
|
330 |
) );
|
331 |
|
332 |
echo $ui->get_text_input( array(
|
333 |
'namearray' => 'cpt_tax_labels',
|
334 |
'name' => 'not_found',
|
335 |
'textvalue' => ( isset( $current['labels']['not_found'] ) ) ? esc_attr( $current['labels']['not_found'] ) : null,
|
336 |
-
'aftertext' => __( '(e.g. No
|
337 |
-
'labeltext' => __( 'Not found', '
|
338 |
-
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', '
|
339 |
) );
|
340 |
?>
|
341 |
</table>
|
342 |
</div>
|
343 |
-
<
|
344 |
<div>
|
345 |
<table>
|
346 |
<?php
|
347 |
$select = array(
|
348 |
'options' => array(
|
349 |
-
array( 'attr' => '0', 'text' => __( 'False', '
|
350 |
-
array( 'attr' => '1', 'text' => __( 'True', '
|
351 |
)
|
352 |
);
|
353 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['hierarchical'] ) : '';
|
@@ -355,16 +414,16 @@ function cptui_manage_taxonomies() {
|
|
355 |
echo $ui->get_select_input( array(
|
356 |
'namearray' => 'cpt_custom_tax',
|
357 |
'name' => 'hierarchical',
|
358 |
-
'labeltext' => __( 'Hierarchical', '
|
359 |
-
'aftertext' => __( '(default: False)', '
|
360 |
-
'helptext' => esc_attr__( 'Whether the taxonomy can have parent-child relationships', '
|
361 |
'selections' => $select
|
362 |
) );
|
363 |
|
364 |
$select = array(
|
365 |
'options' => array(
|
366 |
-
array( 'attr' => '0', 'text' => __( 'False', '
|
367 |
-
array( 'attr' => '1', 'text' => __( 'True', '
|
368 |
)
|
369 |
);
|
370 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['show_ui'] ) : '';
|
@@ -372,16 +431,16 @@ function cptui_manage_taxonomies() {
|
|
372 |
echo $ui->get_select_input( array(
|
373 |
'namearray' => 'cpt_custom_tax',
|
374 |
'name' => 'show_ui',
|
375 |
-
'labeltext' => __( 'Show UI', '
|
376 |
-
'aftertext' => __( '(default: True)', '
|
377 |
-
'helptext' => esc_attr__( 'Whether to generate a default UI for managing this custom taxonomy.', '
|
378 |
'selections' => $select
|
379 |
) );
|
380 |
|
381 |
$select = array(
|
382 |
'options' => array(
|
383 |
-
array( 'attr' => '0', 'text' => __( 'False', '
|
384 |
-
array( 'attr' => '1', 'text' => __( 'True', '
|
385 |
)
|
386 |
);
|
387 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['query_var'] ) : '';
|
@@ -389,9 +448,9 @@ function cptui_manage_taxonomies() {
|
|
389 |
echo $ui->get_select_input( array(
|
390 |
'namearray' => 'cpt_custom_tax',
|
391 |
'name' => 'query_var',
|
392 |
-
'labeltext' => __( 'Query Var', '
|
393 |
-
'aftertext' => __( '(default: True)', '
|
394 |
-
'helptext' => esc_attr__( 'Sets the query_var key for this taxonomy.', '
|
395 |
'selections' => $select
|
396 |
) );
|
397 |
|
@@ -399,15 +458,15 @@ function cptui_manage_taxonomies() {
|
|
399 |
'namearray' => 'cpt_custom_tax',
|
400 |
'name' => 'query_var_slug',
|
401 |
'textvalue' => ( isset( $current['query_var_slug'] ) ) ? esc_attr( $current['query_var_slug'] ) : '',
|
402 |
-
'aftertext' => __( '(default:
|
403 |
-
'labeltext' => __( 'Custom Query Var String', '
|
404 |
-
'helptext' => esc_attr__( 'Sets a custom query_var slug for this taxonomy.', '
|
405 |
) );
|
406 |
|
407 |
$select = array(
|
408 |
'options' => array(
|
409 |
-
array( 'attr' => '0', 'text' => __( 'False', '
|
410 |
-
array( 'attr' => '1', 'text' => __( 'True', '
|
411 |
)
|
412 |
);
|
413 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['rewrite'] ) : '';
|
@@ -415,9 +474,9 @@ function cptui_manage_taxonomies() {
|
|
415 |
echo $ui->get_select_input( array(
|
416 |
'namearray' => 'cpt_custom_tax',
|
417 |
'name' => 'rewrite',
|
418 |
-
'labeltext' => __( 'Rewrite', '
|
419 |
-
'aftertext' => __( '(default: True)', '
|
420 |
-
'helptext' => esc_attr__( 'Whether or not WordPress should use rewrites for this taxonomy.', '
|
421 |
'selections' => $select
|
422 |
) );
|
423 |
|
@@ -425,15 +484,15 @@ function cptui_manage_taxonomies() {
|
|
425 |
'namearray' => 'cpt_custom_tax',
|
426 |
'name' => 'rewrite_slug',
|
427 |
'textvalue' => ( isset( $current['rewrite_slug'] ) ) ? esc_attr( $current['rewrite_slug'] ) : '',
|
428 |
-
'aftertext' => __( '(default: taxonomy name)', '
|
429 |
-
'labeltext' => __( 'Custom Rewrite Slug', '
|
430 |
-
'helptext' => esc_attr__( 'Custom taxonomy rewrite slug.', '
|
431 |
) );
|
432 |
|
433 |
$select = array(
|
434 |
'options' => array(
|
435 |
-
array( 'attr' => '0', 'text' => __( 'False', '
|
436 |
-
array( 'attr' => '1', 'text' => __( 'True', '
|
437 |
)
|
438 |
);
|
439 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['rewrite_withfront'] ) : '';
|
@@ -441,16 +500,16 @@ function cptui_manage_taxonomies() {
|
|
441 |
echo $ui->get_select_input( array(
|
442 |
'namearray' => 'cpt_custom_tax',
|
443 |
'name' => 'rewrite_withfront',
|
444 |
-
'labeltext' => __( 'Rewrite With Front', '
|
445 |
-
'aftertext' => __( '(default: true)', '
|
446 |
-
'helptext' => esc_attr__( 'Should the permastruct be prepended with the front base.', '
|
447 |
'selections' => $select
|
448 |
) );
|
449 |
|
450 |
$select = array(
|
451 |
'options' => array(
|
452 |
-
array( 'attr' => '0', 'text' => __( 'False', '
|
453 |
-
array( 'attr' => '1', 'text' => __( 'True', '
|
454 |
)
|
455 |
);
|
456 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['rewrite_hierarchical'] ) : '';
|
@@ -458,16 +517,16 @@ function cptui_manage_taxonomies() {
|
|
458 |
echo $ui->get_select_input( array(
|
459 |
'namearray' => 'cpt_custom_tax',
|
460 |
'name' => 'rewrite_hierarchical',
|
461 |
-
'labeltext' => __( 'Rewrite Hierarchical', '
|
462 |
-
'aftertext' => __( '(default: false)', '
|
463 |
-
'helptext' => esc_attr__( 'Should the permastruct allow hierarchical urls.', '
|
464 |
'selections' => $select
|
465 |
) );
|
466 |
|
467 |
$select = array(
|
468 |
'options' => array(
|
469 |
-
array( 'attr' => '0', 'text' => __( 'False', '
|
470 |
-
array( 'attr' => '1', 'text' => __( 'True', '
|
471 |
)
|
472 |
);
|
473 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['show_admin_column'] ) : '';
|
@@ -475,11 +534,42 @@ function cptui_manage_taxonomies() {
|
|
475 |
echo $ui->get_select_input( array(
|
476 |
'namearray' => 'cpt_custom_tax',
|
477 |
'name' => 'show_admin_column',
|
478 |
-
'labeltext' => __( 'Show Admin Column', '
|
479 |
-
'aftertext' => __( '(default: False)', '
|
480 |
-
'helptext' => esc_attr__( 'Whether to allow automatic creation of taxonomy columns on associated post-types.', '
|
481 |
'selections' => $select
|
482 |
) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
483 |
?>
|
484 |
</table>
|
485 |
</div>
|
@@ -510,7 +600,8 @@ function cptui_taxonomies_dropdown( $taxonomies = array() ) {
|
|
510 |
$select['options'] = array();
|
511 |
|
512 |
foreach( $taxonomies as $tax ) {
|
513 |
-
$
|
|
|
514 |
}
|
515 |
|
516 |
$current = cptui_get_current_taxonomy();
|
@@ -582,7 +673,7 @@ function cptui_delete_taxonomy( $data = array() ) {
|
|
582 |
|
583 |
#Check if they selected one to delete
|
584 |
if ( empty( $data['cpt_custom_tax']['name'] ) ) {
|
585 |
-
return cptui_admin_notices( 'error', '', false, __( 'Please provide a taxonomy to delete', '
|
586 |
}
|
587 |
|
588 |
$taxonomies = get_option( 'cptui_taxonomies' );
|
@@ -633,7 +724,7 @@ function cptui_update_taxonomy( $data = array() ) {
|
|
633 |
|
634 |
# They need to provide a name
|
635 |
if ( empty( $data['cpt_custom_tax']['name'] ) ) {
|
636 |
-
return cptui_admin_notices( 'error', '', false, __( 'Please provide a taxonomy name', '
|
637 |
}
|
638 |
|
639 |
foreach( $data as $key => $value ) {
|
@@ -649,13 +740,13 @@ function cptui_update_taxonomy( $data = array() ) {
|
|
649 |
false !== strpos( $data['cpt_custom_tax']['rewrite_slug'], '\'' ) ||
|
650 |
false !== strpos( $data['cpt_custom_tax']['rewrite_slug'], '\"' ) ) {
|
651 |
|
652 |
-
return cptui_admin_notices( 'error', '', false, __( 'Please do not use quotes in taxonomy names or rewrite slugs', '
|
653 |
}
|
654 |
|
655 |
$taxonomies = get_option( 'cptui_taxonomies', array() );
|
656 |
|
657 |
if ( 'new' == $data['cpt_tax_status'] && array_key_exists( strtolower( $data['cpt_custom_tax']['name'] ), $taxonomies ) ) {
|
658 |
-
return cptui_admin_notices( 'error', '', false, sprintf( __( 'Please choose a different taxonomy name. %s is already used.', '
|
659 |
}
|
660 |
|
661 |
if ( empty( $data['cpt_post_types'] ) || !is_array( $data['cpt_post_types'] ) ) {
|
@@ -678,13 +769,16 @@ function cptui_update_taxonomy( $data = array() ) {
|
|
678 |
$name = trim( $data['cpt_custom_tax']['name'] );
|
679 |
$singular_label = str_replace( '"', '', htmlspecialchars_decode( $data['cpt_custom_tax']['singular_label'] ) );
|
680 |
$singular_label = htmlspecialchars( stripslashes( $singular_label ) );
|
|
|
681 |
$query_var_slug = trim( $data['cpt_custom_tax']['query_var_slug'] );
|
682 |
$rewrite_slug = trim( $data['cpt_custom_tax']['rewrite_slug'] );
|
|
|
683 |
|
684 |
$taxonomies[ $data['cpt_custom_tax']['name'] ] = array(
|
685 |
'name' => $name,
|
686 |
'label' => $label,
|
687 |
'singular_label' => $singular_label,
|
|
|
688 |
'hierarchical' => disp_boolean( $data['cpt_custom_tax']['hierarchical'] ),
|
689 |
'show_ui' => disp_boolean( $data['cpt_custom_tax']['show_ui'] ),
|
690 |
'query_var' => disp_boolean( $data['cpt_custom_tax']['query_var'] ),
|
@@ -694,6 +788,8 @@ function cptui_update_taxonomy( $data = array() ) {
|
|
694 |
'rewrite_withfront' => $data['cpt_custom_tax']['rewrite_withfront'],
|
695 |
'rewrite_hierarchical' => $data['cpt_custom_tax']['rewrite_hierarchical'],
|
696 |
'show_admin_column' => disp_boolean( $data['cpt_custom_tax']['show_admin_column'] ),
|
|
|
|
|
697 |
'labels' => $data['cpt_tax_labels']
|
698 |
);
|
699 |
|
19 |
return;
|
20 |
}
|
21 |
|
22 |
+
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
23 |
+
return;
|
24 |
+
}
|
25 |
+
|
26 |
wp_enqueue_script( 'cptui', plugins_url( 'js/cptui.js' , dirname(__FILE__) ) . '', array( 'jquery', 'jquery-ui-core', 'jquery-ui-accordion' ), CPT_VERSION, true );
|
27 |
wp_localize_script( 'cptui', 'cptui_tax_data',
|
28 |
array(
|
29 |
+
'confirm' => __( 'Are you sure you want to delete this?', 'custom-post-type-ui' ),
|
30 |
+
#'tax_change_name' => '<div class="typetax-rename">' . __( 'Changing this will rename the taxonomy.', 'custom-post-type-ui' ) . '</div>'
|
31 |
)
|
32 |
);
|
33 |
}
|
86 |
# Will only be set if we're already on the edit screen
|
87 |
if ( !empty( $taxonomies ) ) { ?>
|
88 |
<form id="cptui_select_taxonomy" method="post">
|
89 |
+
<p><?php _e( 'DO NOT EDIT the taxonomy slug unless necessary. Changing that value registers a new taxonomy entry for your install.', 'custom-post-type-ui' ); ?></p>
|
90 |
+
<label for="taxonomy"><?php _e( 'Select: ', 'custom-post-type-ui' ); ?></label>
|
91 |
<?php
|
|
|
92 |
cptui_taxonomies_dropdown( $taxonomies );
|
|
|
93 |
|
94 |
+
/**
|
95 |
+
* Filters the text value to use on the select taxonomy button.
|
96 |
+
*
|
97 |
+
* @since 1.0.0
|
98 |
+
*
|
99 |
+
* @param string $value Text to use for the button.
|
100 |
+
*/
|
101 |
+
?>
|
102 |
+
<input type="submit" class="button-secondary" name="cptui_select_taxonomy_submit" value="<?php echo esc_attr( apply_filters( 'cptui_taxonomy_submit_select', __( 'Select', 'custom-post-type-ui' ) ) ); ?>" />
|
103 |
</form>
|
104 |
<?php
|
105 |
|
126 |
'textvalue' => ( isset( $current['name'] ) ) ? esc_attr( $current['name'] ) : '',
|
127 |
'maxlength' => '32',
|
128 |
'onblur' => 'this.value=this.value.toLowerCase()',
|
129 |
+
'labeltext' => __( 'Taxonomy Slug', 'custom-post-type-ui' ),
|
130 |
+
'aftertext' => __( '(e.g. actor)', 'custom-post-type-ui' ),
|
131 |
+
'helptext' => esc_attr__( 'The taxonomy name. Used to retrieve custom taxonomy content. Should be short and unique', 'custom-post-type-ui'),
|
132 |
'required' => true,
|
133 |
) );
|
134 |
|
136 |
'namearray' => 'cpt_custom_tax',
|
137 |
'name' => 'label',
|
138 |
'textvalue' => ( isset( $current['label'] ) ) ? esc_attr( $current['label'] ) : '',
|
139 |
+
'aftertext' => __( '(e.g. Actors)', 'custom-post-type-ui' ),
|
140 |
+
'labeltext' => __( 'Plural Label', 'custom-post-type-ui' ),
|
141 |
+
'helptext' => esc_attr__( 'Taxonomy label. Used in the admin menu for displaying custom taxonomy.', 'custom-post-type-ui'),
|
142 |
) );
|
143 |
|
144 |
echo $ui->get_text_input( array(
|
145 |
'namearray' => 'cpt_custom_tax',
|
146 |
'name' => 'singular_label',
|
147 |
'textvalue' => ( isset( $current['singular_label'] ) ) ? esc_attr( $current['singular_label'] ) : '',
|
148 |
+
'aftertext' => __( '(e.g. Actor)', 'custom-post-type-ui' ),
|
149 |
+
'labeltext' => __( 'Singular Label', 'custom-post-type-ui' ),
|
150 |
+
'helptext' => esc_attr__( 'Taxonomy Singular label. Used in WordPress when a singular label is needed.', 'custom-post-type-ui'),
|
151 |
) );
|
152 |
|
153 |
+
/*
|
154 |
+
* Post Description
|
155 |
+
*/
|
156 |
+
if ( isset( $current['description'] ) ) {
|
157 |
+
$current['description'] = stripslashes_deep( $current['description'] );
|
158 |
+
}
|
159 |
+
|
160 |
+
echo $ui->get_textarea_input( array(
|
161 |
+
'namearray' => 'cpt_custom_tax',
|
162 |
+
'name' => 'description',
|
163 |
+
'rows' => '4',
|
164 |
+
'cols' => '40',
|
165 |
+
'textvalue' => ( isset( $current['description'] ) ) ? esc_textarea( $current['description'] ) : '',
|
166 |
+
'labeltext' => __( 'Description', 'custom-post-type-ui' ),
|
167 |
+
'helptext' => esc_attr__( 'Taxonomy Description. Describe what your taxonomy is used for.', 'custom-post-type-ui' )
|
168 |
+
) );
|
169 |
+
|
170 |
+
echo $ui->get_tr_start() . $ui->get_th_start() . __( 'Attach to Post Type', 'custom-post-type-ui' ) . $ui->get_required();
|
171 |
+
echo $ui->get_th_end() . $ui->get_td_start() . $ui->get_fieldset_start();
|
172 |
|
173 |
/**
|
174 |
* Filters the arguments for post types to list for taxonomy association.
|
197 |
'namearray' => 'cpt_post_types',
|
198 |
'textvalue' => $post_type->name,
|
199 |
'labeltext' => $post_type->label,
|
200 |
+
'helptext' => sprintf( esc_attr__( 'Adds %s support', 'custom-post-type-ui' ), $post_type->label ),
|
201 |
'wrap' => false
|
202 |
) );
|
203 |
}
|
204 |
+
|
205 |
+
echo $ui->get_fieldset_end() . $ui->get_td_end() . $ui->get_tr_end(); ?>
|
206 |
</table>
|
207 |
<p class="submit">
|
208 |
<?php wp_nonce_field( 'cptui_addedit_taxonomy_nonce_action', 'cptui_addedit_taxonomy_nonce_field' );
|
209 |
if ( !empty( $_GET ) && !empty( $_GET['action'] ) && 'edit' == $_GET['action'] ) { ?>
|
210 |
+
<?php
|
211 |
+
|
212 |
+
/**
|
213 |
+
* Filters the text value to use on the button when editing.
|
214 |
+
*
|
215 |
+
* @since 1.0.0
|
216 |
+
*
|
217 |
+
* @param string $value Text to use for the button.
|
218 |
+
*/
|
219 |
+
?>
|
220 |
+
<input type="submit" class="button-primary" name="cpt_submit" value="<?php echo esc_attr( apply_filters( 'cptui_taxonomy_submit_edit', __( 'Save Taxonomy', 'custom-post-type-ui' ) ) ); ?>" />
|
221 |
+
<?php
|
222 |
+
|
223 |
+
/**
|
224 |
+
* Filters the text value to use on the button when deleting.
|
225 |
+
*
|
226 |
+
* @since 1.0.0
|
227 |
+
*
|
228 |
+
* @param string $value Text to use for the button.
|
229 |
+
*/
|
230 |
+
?>
|
231 |
+
<input type="submit" class="button-secondary" name="cpt_delete" id="cpt_submit_delete" value="<?php echo apply_filters( 'cptui_taxonomy_submit_delete', __( 'Delete Taxonomy', 'custom-post-type-ui' ) ); ?>" />
|
232 |
<?php } else { ?>
|
233 |
+
<?php
|
234 |
+
|
235 |
+
/**
|
236 |
+
* Filters the text value to use on the button when adding.
|
237 |
+
*
|
238 |
+
* @since 1.0.0
|
239 |
+
*
|
240 |
+
* @param string $value Text to use for the button.
|
241 |
+
*/
|
242 |
+
?>
|
243 |
+
<input type="submit" class="button-primary" name="cpt_submit" value="<?php echo esc_attr( apply_filters( 'cptui_taxonomy_submit_add', __( 'Add Taxonomy', 'custom-post-type-ui' ) ) ); ?>" />
|
244 |
<?php } ?>
|
245 |
<input type="hidden" name="cpt_tax_status" id="cpt_tax_status" value="<?php echo $tab; ?>" />
|
246 |
</p>
|
247 |
|
248 |
<?php if ( 'new' == $tab ) { ?>
|
249 |
+
<h2><?php _e( 'Starter Notes', 'custom-post-type-ui' ); ?></h2>
|
250 |
<div><ol>
|
251 |
<?php
|
252 |
+
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.', 'custom-post-type-ui' ), '<strong class="wp-ui-highlight">', '</strong>' );
|
253 |
+
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.', 'custom-post-type-ui' ), '<strong class="wp-ui-highlight">', '</strong>', '<strong class="wp-ui-highlight">', '</strong>' ) ;
|
254 |
+
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.', 'custom-post-type-ui' ), '<strong class="wp-ui-highlight">', '</strong>' ); ?>
|
255 |
</ol></div>
|
256 |
<?php } ?>
|
257 |
</td>
|
258 |
<td class="outter">
|
259 |
<div>
|
260 |
+
<h2><?php _e( 'Labels', 'custom-post-type-ui' ); ?></h2>
|
261 |
<div>
|
262 |
<table>
|
263 |
<?php
|
266 |
'namearray' => 'cpt_tax_labels',
|
267 |
'name' => 'menu_name',
|
268 |
'textvalue' => ( isset( $current['labels']['menu_name'] ) ) ? esc_attr( $current['labels']['menu_name'] ) : '',
|
269 |
+
'aftertext' => __( '(e.g. Actors)', 'custom-post-type-ui' ),
|
270 |
+
'labeltext' => __( 'Menu Name', 'custom-post-type-ui' ),
|
271 |
+
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'custom-post-type-ui'),
|
272 |
) );
|
273 |
|
274 |
echo $ui->get_text_input( array(
|
275 |
'namearray' => 'cpt_tax_labels',
|
276 |
'name' => 'all_items',
|
277 |
'textvalue' => ( isset( $current['labels']['all_items'] ) ) ? esc_attr( $current['labels']['all_items'] ) : '',
|
278 |
+
'aftertext' => __( '(e.g. All Actors)', 'custom-post-type-ui' ),
|
279 |
+
'labeltext' => __( 'All Items', 'custom-post-type-ui' ),
|
280 |
+
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'custom-post-type-ui'),
|
281 |
) );
|
282 |
|
283 |
echo $ui->get_text_input( array(
|
284 |
'namearray' => 'cpt_tax_labels',
|
285 |
'name' => 'edit_item',
|
286 |
'textvalue' => ( isset( $current['labels']['edit_item'] ) ) ? esc_attr( $current['labels']['edit_item'] ) : '',
|
287 |
+
'aftertext' => __( '(e.g. Edit Actor)', 'custom-post-type-ui' ),
|
288 |
+
'labeltext' => __( 'Edit Item', 'custom-post-type-ui' ),
|
289 |
+
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'custom-post-type-ui'),
|
290 |
) );
|
291 |
|
292 |
echo $ui->get_text_input( array(
|
293 |
'namearray' => 'cpt_tax_labels',
|
294 |
'name' => 'view_item',
|
295 |
'textvalue' => ( isset( $current['labels']['view_item'] ) ) ? esc_attr( $current['labels']['view_item'] ) : '',
|
296 |
+
'aftertext' => __( '(e.g. View Actor)', 'custom-post-type-ui' ),
|
297 |
+
'labeltext' => __( 'View Item', 'custom-post-type-ui' ),
|
298 |
+
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'custom-post-type-ui'),
|
299 |
) );
|
300 |
|
301 |
echo $ui->get_text_input( array(
|
302 |
'namearray' => 'cpt_tax_labels',
|
303 |
'name' => 'update_item',
|
304 |
'textvalue' => ( isset( $current['labels']['update_item'] ) ) ? esc_attr( $current['labels']['update_item'] ) : '',
|
305 |
+
'aftertext' => __( '(e.g. Update Actor Name)', 'custom-post-type-ui' ),
|
306 |
+
'labeltext' => __( 'Update Item Name', 'custom-post-type-ui' ),
|
307 |
+
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'custom-post-type-ui'),
|
308 |
) );
|
309 |
|
310 |
echo $ui->get_text_input( array(
|
311 |
'namearray' => 'cpt_tax_labels',
|
312 |
'name' => 'add_new_item',
|
313 |
'textvalue' => ( isset( $current['labels']['add_new_item'] ) ) ? esc_attr( $current['labels']['add_new_item'] ) : '',
|
314 |
+
'aftertext' => __( '(e.g. Add New Actor)', 'custom-post-type-ui' ),
|
315 |
+
'labeltext' => __( 'Add New Item', 'custom-post-type-ui' ),
|
316 |
+
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'custom-post-type-ui'),
|
317 |
) );
|
318 |
|
319 |
echo $ui->get_text_input( array(
|
320 |
'namearray' => 'cpt_tax_labels',
|
321 |
'name' => 'new_item_name',
|
322 |
'textvalue' => ( isset( $current['labels']['new_item_name'] ) ) ? esc_attr( $current['labels']['new_item_name'] ) : '',
|
323 |
+
'aftertext' => __( '(e.g. New Actor Name)', 'custom-post-type-ui' ),
|
324 |
+
'labeltext' => __( 'New Item Name', 'custom-post-type-ui' ),
|
325 |
+
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'custom-post-type-ui'),
|
326 |
) );
|
327 |
|
328 |
echo $ui->get_text_input( array(
|
329 |
'namearray' => 'cpt_tax_labels',
|
330 |
'name' => 'parent_item',
|
331 |
'textvalue' => ( isset( $current['labels']['parent_item'] ) ) ? esc_attr( $current['labels']['parent_item'] ) : '',
|
332 |
+
'aftertext' => __( '(e.g. Parent Actor)', 'custom-post-type-ui' ),
|
333 |
+
'labeltext' => __( 'Parent Item', 'custom-post-type-ui' ),
|
334 |
+
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'custom-post-type-ui'),
|
335 |
) );
|
336 |
|
337 |
echo $ui->get_text_input( array(
|
338 |
'namearray' => 'cpt_tax_labels',
|
339 |
'name' => 'parent_item_colon',
|
340 |
'textvalue' => ( isset( $current['labels']['parent_item_colon'] ) ) ? esc_attr( $current['labels']['parent_item_colon'] ) : '',
|
341 |
+
'aftertext' => __( '(e.g. Parent Actor:)', 'custom-post-type-ui' ),
|
342 |
+
'labeltext' => __( 'Parent Item Colon', 'custom-post-type-ui' ),
|
343 |
+
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'custom-post-type-ui'),
|
344 |
) );
|
345 |
|
346 |
echo $ui->get_text_input( array(
|
347 |
'namearray' => 'cpt_tax_labels',
|
348 |
'name' => 'search_items',
|
349 |
'textvalue' => ( isset( $current['labels']['search_items'] ) ) ? esc_attr( $current['labels']['search_items'] ) : '',
|
350 |
+
'aftertext' => __( '(e.g. Search Actors)', 'custom-post-type-ui' ),
|
351 |
+
'labeltext' => __( 'Search Items', 'custom-post-type-ui' ),
|
352 |
+
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'custom-post-type-ui'),
|
353 |
) );
|
354 |
|
355 |
echo $ui->get_text_input( array(
|
356 |
'namearray' => 'cpt_tax_labels',
|
357 |
'name' => 'popular_items',
|
358 |
'textvalue' => ( isset( $current['labels']['popular_items'] ) ) ? esc_attr( $current['labels']['popular_items'] ) : null,
|
359 |
+
'aftertext' => __( '(e.g. Popular Actors)', 'custom-post-type-ui' ),
|
360 |
+
'labeltext' => __( 'Popular Items', 'custom-post-type-ui' ),
|
361 |
+
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'custom-post-type-ui'),
|
362 |
) );
|
363 |
|
364 |
echo $ui->get_text_input( array(
|
365 |
'namearray' => 'cpt_tax_labels',
|
366 |
'name' => 'separate_items_with_commas',
|
367 |
'textvalue' => ( isset( $current['labels']['separate_items_with_commas'] ) ) ? esc_attr( $current['labels']['separate_items_with_commas'] ) : null,
|
368 |
+
'aftertext' => __( '(e.g. Separate Actors with commas)', 'custom-post-type-ui' ),
|
369 |
+
'labeltext' => __( 'Separate Items with Commas', 'custom-post-type-ui' ),
|
370 |
+
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'custom-post-type-ui'),
|
371 |
) );
|
372 |
|
373 |
echo $ui->get_text_input( array(
|
374 |
'namearray' => 'cpt_tax_labels',
|
375 |
'name' => 'add_or_remove_items',
|
376 |
'textvalue' => ( isset( $current['labels']['add_or_remove_items'] ) ) ? esc_attr( $current['labels']['add_or_remove_items'] ) : null,
|
377 |
+
'aftertext' => __( '(e.g. Add or remove Actors)', 'custom-post-type-ui' ),
|
378 |
+
'labeltext' => __( 'Add or Remove Items', 'custom-post-type-ui' ),
|
379 |
+
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'custom-post-type-ui'),
|
380 |
) );
|
381 |
|
382 |
echo $ui->get_text_input( array(
|
383 |
'namearray' => 'cpt_tax_labels',
|
384 |
'name' => 'choose_from_most_used',
|
385 |
'textvalue' => ( isset( $current['labels']['choose_from_most_used'] ) ) ? esc_attr( $current['labels']['choose_from_most_used'] ) : null,
|
386 |
+
'aftertext' => __( '(e.g. Choose from the most used Actors)', 'custom-post-type-ui' ),
|
387 |
+
'labeltext' => __( 'Choose From Most Used', 'custom-post-type-ui' ),
|
388 |
+
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'custom-post-type-ui'),
|
389 |
) );
|
390 |
|
391 |
echo $ui->get_text_input( array(
|
392 |
'namearray' => 'cpt_tax_labels',
|
393 |
'name' => 'not_found',
|
394 |
'textvalue' => ( isset( $current['labels']['not_found'] ) ) ? esc_attr( $current['labels']['not_found'] ) : null,
|
395 |
+
'aftertext' => __( '(e.g. No Actors found)', 'custom-post-type-ui' ),
|
396 |
+
'labeltext' => __( 'Not found', 'custom-post-type-ui' ),
|
397 |
+
'helptext' => esc_attr__( 'Custom taxonomy label. Used in the admin menu for displaying taxonomies.', 'custom-post-type-ui'),
|
398 |
) );
|
399 |
?>
|
400 |
</table>
|
401 |
</div>
|
402 |
+
<h2><?php _e( 'Settings', 'custom-post-type-ui' ); ?></h2>
|
403 |
<div>
|
404 |
<table>
|
405 |
<?php
|
406 |
$select = array(
|
407 |
'options' => array(
|
408 |
+
array( 'attr' => '0', 'text' => __( 'False', 'custom-post-type-ui' ), 'default' => 'true' ),
|
409 |
+
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ) )
|
410 |
)
|
411 |
);
|
412 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['hierarchical'] ) : '';
|
414 |
echo $ui->get_select_input( array(
|
415 |
'namearray' => 'cpt_custom_tax',
|
416 |
'name' => 'hierarchical',
|
417 |
+
'labeltext' => __( 'Hierarchical', 'custom-post-type-ui' ),
|
418 |
+
'aftertext' => __( '(default: False)', 'custom-post-type-ui' ),
|
419 |
+
'helptext' => esc_attr__( 'Whether the taxonomy can have parent-child relationships', 'custom-post-type-ui' ),
|
420 |
'selections' => $select
|
421 |
) );
|
422 |
|
423 |
$select = array(
|
424 |
'options' => array(
|
425 |
+
array( 'attr' => '0', 'text' => __( 'False', 'custom-post-type-ui' ) ),
|
426 |
+
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ), 'default' => 'true' )
|
427 |
)
|
428 |
);
|
429 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['show_ui'] ) : '';
|
431 |
echo $ui->get_select_input( array(
|
432 |
'namearray' => 'cpt_custom_tax',
|
433 |
'name' => 'show_ui',
|
434 |
+
'labeltext' => __( 'Show UI', 'custom-post-type-ui' ),
|
435 |
+
'aftertext' => __( '(default: True)', 'custom-post-type-ui' ),
|
436 |
+
'helptext' => esc_attr__( 'Whether to generate a default UI for managing this custom taxonomy.', 'custom-post-type-ui' ),
|
437 |
'selections' => $select
|
438 |
) );
|
439 |
|
440 |
$select = array(
|
441 |
'options' => array(
|
442 |
+
array( 'attr' => '0', 'text' => __( 'False', 'custom-post-type-ui' ) ),
|
443 |
+
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ), 'default' => 'true' )
|
444 |
)
|
445 |
);
|
446 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['query_var'] ) : '';
|
448 |
echo $ui->get_select_input( array(
|
449 |
'namearray' => 'cpt_custom_tax',
|
450 |
'name' => 'query_var',
|
451 |
+
'labeltext' => __( 'Query Var', 'custom-post-type-ui' ),
|
452 |
+
'aftertext' => __( '(default: True)', 'custom-post-type-ui' ),
|
453 |
+
'helptext' => esc_attr__( 'Sets the query_var key for this taxonomy.', 'custom-post-type-ui' ),
|
454 |
'selections' => $select
|
455 |
) );
|
456 |
|
458 |
'namearray' => 'cpt_custom_tax',
|
459 |
'name' => 'query_var_slug',
|
460 |
'textvalue' => ( isset( $current['query_var_slug'] ) ) ? esc_attr( $current['query_var_slug'] ) : '',
|
461 |
+
'aftertext' => __( '(default: taxonomy slug). Query var needs to be true to use.', 'custom-post-type-ui' ),
|
462 |
+
'labeltext' => __( 'Custom Query Var String', 'custom-post-type-ui' ),
|
463 |
+
'helptext' => esc_attr__( 'Sets a custom query_var slug for this taxonomy.', 'custom-post-type-ui'),
|
464 |
) );
|
465 |
|
466 |
$select = array(
|
467 |
'options' => array(
|
468 |
+
array( 'attr' => '0', 'text' => __( 'False', 'custom-post-type-ui' ) ),
|
469 |
+
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ), 'default' => 'true' )
|
470 |
)
|
471 |
);
|
472 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['rewrite'] ) : '';
|
474 |
echo $ui->get_select_input( array(
|
475 |
'namearray' => 'cpt_custom_tax',
|
476 |
'name' => 'rewrite',
|
477 |
+
'labeltext' => __( 'Rewrite', 'custom-post-type-ui' ),
|
478 |
+
'aftertext' => __( '(default: True)', 'custom-post-type-ui' ),
|
479 |
+
'helptext' => esc_attr__( 'Whether or not WordPress should use rewrites for this taxonomy.', 'custom-post-type-ui' ),
|
480 |
'selections' => $select
|
481 |
) );
|
482 |
|
484 |
'namearray' => 'cpt_custom_tax',
|
485 |
'name' => 'rewrite_slug',
|
486 |
'textvalue' => ( isset( $current['rewrite_slug'] ) ) ? esc_attr( $current['rewrite_slug'] ) : '',
|
487 |
+
'aftertext' => __( '(default: taxonomy name)', 'custom-post-type-ui' ),
|
488 |
+
'labeltext' => __( 'Custom Rewrite Slug', 'custom-post-type-ui' ),
|
489 |
+
'helptext' => esc_attr__( 'Custom taxonomy rewrite slug.', 'custom-post-type-ui'),
|
490 |
) );
|
491 |
|
492 |
$select = array(
|
493 |
'options' => array(
|
494 |
+
array( 'attr' => '0', 'text' => __( 'False', 'custom-post-type-ui' ) ),
|
495 |
+
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ), 'default' => 'true' )
|
496 |
)
|
497 |
);
|
498 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['rewrite_withfront'] ) : '';
|
500 |
echo $ui->get_select_input( array(
|
501 |
'namearray' => 'cpt_custom_tax',
|
502 |
'name' => 'rewrite_withfront',
|
503 |
+
'labeltext' => __( 'Rewrite With Front', 'custom-post-type-ui' ),
|
504 |
+
'aftertext' => __( '(default: true)', 'custom-post-type-ui' ),
|
505 |
+
'helptext' => esc_attr__( 'Should the permastruct be prepended with the front base.', 'custom-post-type-ui' ),
|
506 |
'selections' => $select
|
507 |
) );
|
508 |
|
509 |
$select = array(
|
510 |
'options' => array(
|
511 |
+
array( 'attr' => '0', 'text' => __( 'False', 'custom-post-type-ui' ), 'default' => 'false' ),
|
512 |
+
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ) )
|
513 |
)
|
514 |
);
|
515 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['rewrite_hierarchical'] ) : '';
|
517 |
echo $ui->get_select_input( array(
|
518 |
'namearray' => 'cpt_custom_tax',
|
519 |
'name' => 'rewrite_hierarchical',
|
520 |
+
'labeltext' => __( 'Rewrite Hierarchical', 'custom-post-type-ui' ),
|
521 |
+
'aftertext' => __( '(default: false)', 'custom-post-type-ui' ),
|
522 |
+
'helptext' => esc_attr__( 'Should the permastruct allow hierarchical urls.', 'custom-post-type-ui' ),
|
523 |
'selections' => $select
|
524 |
) );
|
525 |
|
526 |
$select = array(
|
527 |
'options' => array(
|
528 |
+
array( 'attr' => '0', 'text' => __( 'False', 'custom-post-type-ui' ), 'default' => 'true' ),
|
529 |
+
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ) )
|
530 |
)
|
531 |
);
|
532 |
$selected = ( isset( $current ) ) ? disp_boolean( $current['show_admin_column'] ) : '';
|
534 |
echo $ui->get_select_input( array(
|
535 |
'namearray' => 'cpt_custom_tax',
|
536 |
'name' => 'show_admin_column',
|
537 |
+
'labeltext' => __( 'Show Admin Column', 'custom-post-type-ui' ),
|
538 |
+
'aftertext' => __( '(default: False)', 'custom-post-type-ui' ),
|
539 |
+
'helptext' => esc_attr__( 'Whether to allow automatic creation of taxonomy columns on associated post-types.', 'custom-post-type-ui' ),
|
540 |
'selections' => $select
|
541 |
) );
|
542 |
+
|
543 |
+
/*
|
544 |
+
* show_in_rest Boolean
|
545 |
+
*/
|
546 |
+
$select = array(
|
547 |
+
'options' => array(
|
548 |
+
array( 'attr' => '0', 'text' => __( 'False', 'custom-post-type-ui' ), 'default' => 'false' ),
|
549 |
+
array( 'attr' => '1', 'text' => __( 'True', 'custom-post-type-ui' ) )
|
550 |
+
)
|
551 |
+
);
|
552 |
+
$selected = ( isset( $current ) ) ? disp_boolean( $current['show_in_rest'] ) : '';
|
553 |
+
$select['selected'] = ( ! empty( $selected ) ) ? $current['show_in_rest'] : '';
|
554 |
+
echo $ui->get_select_input( array(
|
555 |
+
'namearray' => 'cpt_custom_tax',
|
556 |
+
'name' => 'show_in_rest',
|
557 |
+
'labeltext' => __( 'Show in REST API', 'custom-post-type-ui' ),
|
558 |
+
'aftertext' => __( '(default: False)', 'custom-post-type-ui' ),
|
559 |
+
'helptext' => esc_attr__( 'Whether to show this taxonomy data in the WP REST API.', 'custom-post-type-ui' ),
|
560 |
+
'selections' => $select
|
561 |
+
) );
|
562 |
+
|
563 |
+
/*
|
564 |
+
* rest_base slug.
|
565 |
+
*/
|
566 |
+
echo $ui->get_text_input( array(
|
567 |
+
'labeltext' => __( 'REST API base slug', 'custom-post-type-ui' ),
|
568 |
+
'helptext' => esc_attr__( 'Slug to use in REST API URLs.', 'custom-post-type-ui' ),
|
569 |
+
'namearray' => 'cpt_custom_tax',
|
570 |
+
'name' => 'rest_base',
|
571 |
+
'textvalue' => ( isset( $current['rest_base'] ) ) ? esc_attr( $current['rest_base'] ) : '',
|
572 |
+
) );
|
573 |
?>
|
574 |
</table>
|
575 |
</div>
|
600 |
$select['options'] = array();
|
601 |
|
602 |
foreach( $taxonomies as $tax ) {
|
603 |
+
$text = ( ! empty( $tax['label'] ) ) ? $tax['label'] : $tax['name'];
|
604 |
+
$select['options'][] = array( 'attr' => $tax['name'], 'text' => $text );
|
605 |
}
|
606 |
|
607 |
$current = cptui_get_current_taxonomy();
|
673 |
|
674 |
#Check if they selected one to delete
|
675 |
if ( empty( $data['cpt_custom_tax']['name'] ) ) {
|
676 |
+
return cptui_admin_notices( 'error', '', false, __( 'Please provide a taxonomy to delete', 'custom-post-type-ui' ) );
|
677 |
}
|
678 |
|
679 |
$taxonomies = get_option( 'cptui_taxonomies' );
|
724 |
|
725 |
# They need to provide a name
|
726 |
if ( empty( $data['cpt_custom_tax']['name'] ) ) {
|
727 |
+
return cptui_admin_notices( 'error', '', false, __( 'Please provide a taxonomy name', 'custom-post-type-ui' ) );
|
728 |
}
|
729 |
|
730 |
foreach( $data as $key => $value ) {
|
740 |
false !== strpos( $data['cpt_custom_tax']['rewrite_slug'], '\'' ) ||
|
741 |
false !== strpos( $data['cpt_custom_tax']['rewrite_slug'], '\"' ) ) {
|
742 |
|
743 |
+
return cptui_admin_notices( 'error', '', false, __( 'Please do not use quotes in taxonomy names or rewrite slugs', 'custom-post-type-ui' ) );
|
744 |
}
|
745 |
|
746 |
$taxonomies = get_option( 'cptui_taxonomies', array() );
|
747 |
|
748 |
if ( 'new' == $data['cpt_tax_status'] && array_key_exists( strtolower( $data['cpt_custom_tax']['name'] ), $taxonomies ) ) {
|
749 |
+
return cptui_admin_notices( 'error', '', false, sprintf( __( 'Please choose a different taxonomy name. %s is already used.', 'custom-post-type-ui' ), $data['cpt_custom_tax']['name'] ) );
|
750 |
}
|
751 |
|
752 |
if ( empty( $data['cpt_post_types'] ) || !is_array( $data['cpt_post_types'] ) ) {
|
769 |
$name = trim( $data['cpt_custom_tax']['name'] );
|
770 |
$singular_label = str_replace( '"', '', htmlspecialchars_decode( $data['cpt_custom_tax']['singular_label'] ) );
|
771 |
$singular_label = htmlspecialchars( stripslashes( $singular_label ) );
|
772 |
+
$description = stripslashes_deep( $data['cpt_custom_tax']['description'] );
|
773 |
$query_var_slug = trim( $data['cpt_custom_tax']['query_var_slug'] );
|
774 |
$rewrite_slug = trim( $data['cpt_custom_tax']['rewrite_slug'] );
|
775 |
+
$rest_base = trim( $data['cpt_custom_tax']['rest_base'] );
|
776 |
|
777 |
$taxonomies[ $data['cpt_custom_tax']['name'] ] = array(
|
778 |
'name' => $name,
|
779 |
'label' => $label,
|
780 |
'singular_label' => $singular_label,
|
781 |
+
'description' => $description,
|
782 |
'hierarchical' => disp_boolean( $data['cpt_custom_tax']['hierarchical'] ),
|
783 |
'show_ui' => disp_boolean( $data['cpt_custom_tax']['show_ui'] ),
|
784 |
'query_var' => disp_boolean( $data['cpt_custom_tax']['query_var'] ),
|
788 |
'rewrite_withfront' => $data['cpt_custom_tax']['rewrite_withfront'],
|
789 |
'rewrite_hierarchical' => $data['cpt_custom_tax']['rewrite_hierarchical'],
|
790 |
'show_admin_column' => disp_boolean( $data['cpt_custom_tax']['show_admin_column'] ),
|
791 |
+
'show_in_rest' => disp_boolean( $data['cpt_custom_tax']['show_in_rest'] ),
|
792 |
+
'rest_base' => $rest_base,
|
793 |
'labels' => $data['cpt_tax_labels']
|
794 |
);
|
795 |
|
js/cptui.js
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
//Toggles help/support accordions.
|
20 |
$('#support .question').each(function() {
|
21 |
var tis = $(this), state = false, answer = tis.next('div').slideUp();
|
22 |
-
tis.click
|
23 |
state = !state;
|
24 |
answer.slideToggle(state);
|
25 |
tis.toggleClass('active',state);
|
19 |
//Toggles help/support accordions.
|
20 |
$('#support .question').each(function() {
|
21 |
var tis = $(this), state = false, answer = tis.next('div').slideUp();
|
22 |
+
tis.on('click',function() {
|
23 |
state = !state;
|
24 |
answer.slideToggle(state);
|
25 |
tis.toggleClass('active',state);
|
languages/cpt-plugin-de_DE.mo
DELETED
Binary file
|
languages/cpt-plugin-pt_PT.mo
DELETED
Binary file
|
languages/cpt-plugin-pt_PT.po
DELETED
@@ -1,2029 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Custom Post Type UI\n"
|
4 |
-
"Report-Msgid-Bugs-To: https://wordpress.org/plugins/custom-post-type-ui\n"
|
5 |
-
"POT-Creation-Date: 2015-08-11 11:36-0500\n"
|
6 |
-
"PO-Revision-Date: 2015-08-11 11:36-0500\n"
|
7 |
-
"Last-Translator: Michael Beckwith <michael.d.beckwith@gmail.com>\n"
|
8 |
-
"Language-Team: WebDevStudios <contact@webdevstudios.com>\n"
|
9 |
-
"Language: pt_PT\n"
|
10 |
-
"MIME-Version: 1.0\n"
|
11 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
-
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Generator: Poedit 1.8.2\n"
|
14 |
-
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
15 |
-
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
16 |
-
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
17 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
-
"X-Poedit-Basepath: ..\n"
|
19 |
-
"X-Poedit-WPHeader: custom-post-type-ui.php\n"
|
20 |
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
21 |
-
"X-Poedit-SearchPath-0: .\n"
|
22 |
-
"X-Poedit-SearchPathExcluded-0: tests\n"
|
23 |
-
"X-Poedit-SearchPathExcluded-1: *.js\n"
|
24 |
-
|
25 |
-
#: custom-post-type-ui.php:60
|
26 |
-
msgid "Custom Post Types"
|
27 |
-
msgstr "Tipos de artigo personalizados"
|
28 |
-
|
29 |
-
#: custom-post-type-ui.php:60
|
30 |
-
msgid "CPT UI"
|
31 |
-
msgstr "CPT UI"
|
32 |
-
|
33 |
-
#: custom-post-type-ui.php:61
|
34 |
-
msgid "Add/Edit Post Types"
|
35 |
-
msgstr "Adicionar/editar tipos de artigo"
|
36 |
-
|
37 |
-
#: custom-post-type-ui.php:62
|
38 |
-
msgid "Add/Edit Taxonomies"
|
39 |
-
msgstr "Adicionar/editar taxonomias"
|
40 |
-
|
41 |
-
#: custom-post-type-ui.php:63
|
42 |
-
msgid "Registered Types and Taxes"
|
43 |
-
msgstr "Tipos e taxonomias registados"
|
44 |
-
|
45 |
-
#: custom-post-type-ui.php:63
|
46 |
-
msgid "Registered Types/Taxes"
|
47 |
-
msgstr "Tipos/taxonomias registados"
|
48 |
-
|
49 |
-
#: custom-post-type-ui.php:64 custom-post-type-ui.php:491
|
50 |
-
msgid "Import/Export"
|
51 |
-
msgstr "Importar/exportar"
|
52 |
-
|
53 |
-
#: custom-post-type-ui.php:65
|
54 |
-
msgid "Help/Support"
|
55 |
-
msgstr "Ajuda/suporte"
|
56 |
-
|
57 |
-
#: custom-post-type-ui.php:69
|
58 |
-
msgid "About CPT UI"
|
59 |
-
msgstr "Sobre o CPT UI"
|
60 |
-
|
61 |
-
#. Plugin Name of the plugin/theme
|
62 |
-
#: custom-post-type-ui.php:339 custom-post-type-ui.php:418
|
63 |
-
msgid "Custom Post Type UI"
|
64 |
-
msgstr "Custom Post Type UI"
|
65 |
-
|
66 |
-
#: custom-post-type-ui.php:342
|
67 |
-
msgid ""
|
68 |
-
"Thank you for choosing Custom Post Type UI. We hope that your experience "
|
69 |
-
"with our plugin provides efficiency and speed in creating post types and "
|
70 |
-
"taxonomies, to better organize your content, without having to touch code."
|
71 |
-
msgstr ""
|
72 |
-
"Obrigado por escolher o Custom Post Type UI. Esperamos que a sua experiência "
|
73 |
-
"com o nosso plugin proporcione eficiência e rapidez na criação de tipos de "
|
74 |
-
"artigo e de taxonomias, para melhor organizar os seus conteúdos sem ter que "
|
75 |
-
"mexer em código."
|
76 |
-
|
77 |
-
#: custom-post-type-ui.php:348
|
78 |
-
msgid "Post type migration"
|
79 |
-
msgstr "Migração de tipo de artigo"
|
80 |
-
|
81 |
-
#: custom-post-type-ui.php:349
|
82 |
-
msgid ""
|
83 |
-
"In the past, if you changed your post type slug, you would lose immediate "
|
84 |
-
"access to the posts in the post type and need to recover another way. We "
|
85 |
-
"have now added support for migrating all posts within the old post type to "
|
86 |
-
"the new post type you renamed it to."
|
87 |
-
msgstr ""
|
88 |
-
"No passado, se alterasse o URL do seu tipo de artigo, perderia de imediato o "
|
89 |
-
"acesso aos artigos desse tipo e precisaria de os recuperar de outro modo. "
|
90 |
-
"Actualmente adicionámos suporte para migrar todos os artigos do tipo de "
|
91 |
-
"artigo anterior para o recém nomeado tipo de artigo."
|
92 |
-
|
93 |
-
#: custom-post-type-ui.php:352
|
94 |
-
msgid "UI Refinement"
|
95 |
-
msgstr "Refinamento do interface do utilizador"
|
96 |
-
|
97 |
-
#: custom-post-type-ui.php:353
|
98 |
-
msgid ""
|
99 |
-
"After receiving feedback regarding the 1.0.x changes, we have further "
|
100 |
-
"simplified the UI to reduce the amount of clicking necessary to manage your "
|
101 |
-
"post types and taxonomies."
|
102 |
-
msgstr ""
|
103 |
-
"Depois de recebermos retorno sobre alterações nas versões 1.0.x, "
|
104 |
-
"simplificámos o interface do utilizador para reduzir a quantidade de cliques "
|
105 |
-
"necessários para gerir os tipos de artigos e taxonomias."
|
106 |
-
|
107 |
-
#: custom-post-type-ui.php:356
|
108 |
-
msgid "Registered Post Type and Taxonomy Listings"
|
109 |
-
msgstr "Listas de tipos de artigos e taxonomias registados"
|
110 |
-
|
111 |
-
#: custom-post-type-ui.php:357
|
112 |
-
msgid ""
|
113 |
-
"We are bringing back the listing of all CPTUI-registered post types and "
|
114 |
-
"taxonomies for easier quick view of what you have going."
|
115 |
-
msgstr ""
|
116 |
-
"Trouxémos de volta as listas de todos os tipos de artigos e taxonomias "
|
117 |
-
"registados pelo CPTUI para uma visualização facilitada do que tem em "
|
118 |
-
"funcionamento."
|
119 |
-
|
120 |
-
#: custom-post-type-ui.php:362
|
121 |
-
msgid "Help Support This Plugin!"
|
122 |
-
msgstr "Ajude a apoiar este plugin!"
|
123 |
-
|
124 |
-
#: custom-post-type-ui.php:366
|
125 |
-
msgid "Professional WordPress<br />Third Edition"
|
126 |
-
msgstr "Professional WordPress<br />Terceira edição"
|
127 |
-
|
128 |
-
#: custom-post-type-ui.php:371
|
129 |
-
msgid ""
|
130 |
-
"The leading book on WordPress design and development! Brand new third "
|
131 |
-
"edition!"
|
132 |
-
msgstr ""
|
133 |
-
"O principal livro sobre design e desenvolvimento em WordPress! Nova edição!"
|
134 |
-
|
135 |
-
#: custom-post-type-ui.php:374
|
136 |
-
msgid "Professional WordPress<br />Plugin Development"
|
137 |
-
msgstr "Professional WordPress<br />Plugin Development"
|
138 |
-
|
139 |
-
#: custom-post-type-ui.php:379
|
140 |
-
msgid "Highest rated WordPress development book on Amazon!"
|
141 |
-
msgstr "Livro de desenvolvimento WordPress mais votado na Amazon!"
|
142 |
-
|
143 |
-
#: custom-post-type-ui.php:382
|
144 |
-
msgid "PayPal Donation"
|
145 |
-
msgstr "Donativo PayPal"
|
146 |
-
|
147 |
-
#: custom-post-type-ui.php:386
|
148 |
-
msgid "PayPal - The safer, easier way to pay online!"
|
149 |
-
msgstr "Paypal - o modo mais fácil e seguro de fazer pagamentos online!"
|
150 |
-
|
151 |
-
#: custom-post-type-ui.php:389
|
152 |
-
msgid "Please donate to the development of Custom Post Type UI:"
|
153 |
-
msgstr ""
|
154 |
-
"Por favor faça um donativo para o desenvolvimento do Custom Port Type UI:"
|
155 |
-
|
156 |
-
#: custom-post-type-ui.php:415
|
157 |
-
#, php-format
|
158 |
-
msgid "%s version %s by %s"
|
159 |
-
msgstr "%s versão %s por %s"
|
160 |
-
|
161 |
-
#: custom-post-type-ui.php:426
|
162 |
-
msgid "Please Report Bugs"
|
163 |
-
msgstr "Por favor reporte erros"
|
164 |
-
|
165 |
-
#: custom-post-type-ui.php:429
|
166 |
-
msgid "Follow on Twitter:"
|
167 |
-
msgstr "Seguir no Twitter:"
|
168 |
-
|
169 |
-
#: custom-post-type-ui.php:493
|
170 |
-
msgid "Manage Taxonomies"
|
171 |
-
msgstr "Gerir taxonomias"
|
172 |
-
|
173 |
-
#: custom-post-type-ui.php:497
|
174 |
-
msgid "Manage Post Types"
|
175 |
-
msgstr "Gerir tipos de artigo"
|
176 |
-
|
177 |
-
#: custom-post-type-ui.php:523
|
178 |
-
msgid "Add New Post Type"
|
179 |
-
msgstr "Adicionar novo tipo de artigo"
|
180 |
-
|
181 |
-
#: custom-post-type-ui.php:526
|
182 |
-
msgid "Edit Post Types"
|
183 |
-
msgstr "Editar tipos de artigo"
|
184 |
-
|
185 |
-
#: custom-post-type-ui.php:530
|
186 |
-
msgid "Add New Taxonomy"
|
187 |
-
msgstr "Adicionar nova taxonomia"
|
188 |
-
|
189 |
-
#: custom-post-type-ui.php:533
|
190 |
-
msgid "Edit Taxonomies"
|
191 |
-
msgstr "Editar taxonomias"
|
192 |
-
|
193 |
-
#: custom-post-type-ui.php:537 inc/listings.php:16 inc/listings.php:149
|
194 |
-
#: inc/listings.php:224
|
195 |
-
msgid "Post Types"
|
196 |
-
msgstr "Tipos de Artigo"
|
197 |
-
|
198 |
-
#: custom-post-type-ui.php:538 inc/import_export.php:380 inc/listings.php:34
|
199 |
-
#: inc/listings.php:122 inc/listings.php:132
|
200 |
-
msgid "Taxonomies"
|
201 |
-
msgstr "Taxonomias"
|
202 |
-
|
203 |
-
#: custom-post-type-ui.php:539
|
204 |
-
msgid "Get Code"
|
205 |
-
msgstr "Obter código"
|
206 |
-
|
207 |
-
#: custom-post-type-ui.php:622 inc/listings.php:32 inc/listings.php:120
|
208 |
-
#: inc/listings.php:148 inc/listings.php:223 inc/post-types.php:377
|
209 |
-
#: inc/taxonomies.php:343
|
210 |
-
msgid "Settings"
|
211 |
-
msgstr "Definições"
|
212 |
-
|
213 |
-
#: custom-post-type-ui.php:622
|
214 |
-
msgid "Help"
|
215 |
-
msgstr "Ajuda"
|
216 |
-
|
217 |
-
#: custom-post-type-ui.php:651
|
218 |
-
#, php-format
|
219 |
-
msgid "%s has been successfully added"
|
220 |
-
msgstr "%s foi adicionado com sucesso"
|
221 |
-
|
222 |
-
#: custom-post-type-ui.php:653
|
223 |
-
#, php-format
|
224 |
-
msgid "%s has failed to be added"
|
225 |
-
msgstr "%s falhou ao ser adicionado"
|
226 |
-
|
227 |
-
#: custom-post-type-ui.php:657
|
228 |
-
#, php-format
|
229 |
-
msgid "%s has been successfully updated"
|
230 |
-
msgstr "%s foi actualizado com sucesso"
|
231 |
-
|
232 |
-
#: custom-post-type-ui.php:659
|
233 |
-
#, php-format
|
234 |
-
msgid "%s has failed to be updated"
|
235 |
-
msgstr "%s falhou ao ser actualizado"
|
236 |
-
|
237 |
-
#: custom-post-type-ui.php:663
|
238 |
-
#, php-format
|
239 |
-
msgid "%s has been successfully deleted"
|
240 |
-
msgstr "%s foi apagado com sucesso"
|
241 |
-
|
242 |
-
#: custom-post-type-ui.php:665
|
243 |
-
#, php-format
|
244 |
-
msgid "%s has failed to be deleted"
|
245 |
-
msgstr "%s falhou ao ser apagado"
|
246 |
-
|
247 |
-
#: custom-post-type-ui.php:669
|
248 |
-
#, php-format
|
249 |
-
msgid "%s has been successfully imported"
|
250 |
-
msgstr "%s foi importado com sucesso"
|
251 |
-
|
252 |
-
#: custom-post-type-ui.php:671
|
253 |
-
#, php-format
|
254 |
-
msgid "%s has failed to be imported"
|
255 |
-
msgstr "%s falhou ao ser importado"
|
256 |
-
|
257 |
-
#: custom-post-type-ui.php:754 custom-post-type-ui.php:771
|
258 |
-
#, php-format
|
259 |
-
msgid "Add new %s"
|
260 |
-
msgstr "Adicionar novo %s"
|
261 |
-
|
262 |
-
#: custom-post-type-ui.php:755 custom-post-type-ui.php:769
|
263 |
-
#, php-format
|
264 |
-
msgid "Edit %s"
|
265 |
-
msgstr "Editar %s"
|
266 |
-
|
267 |
-
#: custom-post-type-ui.php:756
|
268 |
-
#, php-format
|
269 |
-
msgid "New %s"
|
270 |
-
msgstr "Novo %s"
|
271 |
-
|
272 |
-
#: custom-post-type-ui.php:757
|
273 |
-
#, php-format
|
274 |
-
msgid "View %s"
|
275 |
-
msgstr "Ver %s"
|
276 |
-
|
277 |
-
#: custom-post-type-ui.php:758 custom-post-type-ui.php:766
|
278 |
-
#, php-format
|
279 |
-
msgid "All %s"
|
280 |
-
msgstr "Todos(as) os(as) %s"
|
281 |
-
|
282 |
-
#: custom-post-type-ui.php:759 custom-post-type-ui.php:764
|
283 |
-
#, php-format
|
284 |
-
msgid "Search %s"
|
285 |
-
msgstr "Pesquisar %s"
|
286 |
-
|
287 |
-
#: custom-post-type-ui.php:760
|
288 |
-
#, php-format
|
289 |
-
msgid "No %s found."
|
290 |
-
msgstr "%s não encontrados(as)."
|
291 |
-
|
292 |
-
#: custom-post-type-ui.php:761
|
293 |
-
#, php-format
|
294 |
-
msgid "No %s found in trash."
|
295 |
-
msgstr "%s não encontrados(as) no lixo."
|
296 |
-
|
297 |
-
#: custom-post-type-ui.php:765
|
298 |
-
#, php-format
|
299 |
-
msgid "Popular %s"
|
300 |
-
msgstr "%s mais populares"
|
301 |
-
|
302 |
-
#: custom-post-type-ui.php:767
|
303 |
-
#, php-format
|
304 |
-
msgid "Parent %s"
|
305 |
-
msgstr "%s superior"
|
306 |
-
|
307 |
-
#: custom-post-type-ui.php:768
|
308 |
-
#, php-format
|
309 |
-
msgid "Parent %s:"
|
310 |
-
msgstr "%s superior:"
|
311 |
-
|
312 |
-
#: custom-post-type-ui.php:770
|
313 |
-
#, php-format
|
314 |
-
msgid "Update %s"
|
315 |
-
msgstr "Actualizar %s"
|
316 |
-
|
317 |
-
#: custom-post-type-ui.php:772
|
318 |
-
#, php-format
|
319 |
-
msgid "New %s name"
|
320 |
-
msgstr "Novo nome de %s"
|
321 |
-
|
322 |
-
#: custom-post-type-ui.php:773
|
323 |
-
#, php-format
|
324 |
-
msgid "Separate %s with commas"
|
325 |
-
msgstr "Separar %s por vírgulas"
|
326 |
-
|
327 |
-
#: custom-post-type-ui.php:774
|
328 |
-
#, php-format
|
329 |
-
msgid "Add or remove %s"
|
330 |
-
msgstr "Adicionar ou remover %s"
|
331 |
-
|
332 |
-
#: custom-post-type-ui.php:775
|
333 |
-
#, php-format
|
334 |
-
msgid "Choose from the most used %s"
|
335 |
-
msgstr "Escolher entre os(as) %s mais utilizados(as)"
|
336 |
-
|
337 |
-
#: inc/import_export.php:42
|
338 |
-
msgid ""
|
339 |
-
"If you are wanting to migrate registered post types or taxonomies from this "
|
340 |
-
"site to another, that will also use Custom Post Type UI, use the import and "
|
341 |
-
"export functionality. If you are moving away from Custom Post Type UI, use "
|
342 |
-
"the information in the \"Get Code\" tab."
|
343 |
-
msgstr ""
|
344 |
-
"Se pretende migrar tipos de artigos ou taxonomias registados para outro site "
|
345 |
-
"que também tem o Custom Post Type UI, utilize as funcionalidades de importar "
|
346 |
-
"e exportar. Se está a abandonar o Custom Post Type UI, utilize a informação "
|
347 |
-
"do separador \"Obter código\"."
|
348 |
-
|
349 |
-
#: inc/import_export.php:45
|
350 |
-
msgid "NOTE"
|
351 |
-
msgstr "NOTA"
|
352 |
-
|
353 |
-
#: inc/import_export.php:46
|
354 |
-
msgid "This will not export the associated posts, just the settings."
|
355 |
-
msgstr "Isto não exporta os artigos associados, apenas as definições."
|
356 |
-
|
357 |
-
#: inc/import_export.php:53
|
358 |
-
msgid "Import Post Types"
|
359 |
-
msgstr "Importar tipos de artigo"
|
360 |
-
|
361 |
-
#: inc/import_export.php:55 inc/import_export.php:80
|
362 |
-
msgid "Paste content here."
|
363 |
-
msgstr "Colar o conteúdo aqui."
|
364 |
-
|
365 |
-
#: inc/import_export.php:56 inc/import_export.php:81
|
366 |
-
msgid "Note:"
|
367 |
-
msgstr "Nota:"
|
368 |
-
|
369 |
-
#: inc/import_export.php:56 inc/import_export.php:81
|
370 |
-
msgid "Importing will overwrite previous registered settings."
|
371 |
-
msgstr "Ao importar irá sobrepor as definições registadas anteriormente."
|
372 |
-
|
373 |
-
#: inc/import_export.php:57
|
374 |
-
msgid ""
|
375 |
-
"To import post types from a different WordPress site, paste the exported "
|
376 |
-
"content from that site and click the \"Import\" button."
|
377 |
-
msgstr ""
|
378 |
-
"Para importar tipos de artigo de outro site WordPress, cole o conteúdo "
|
379 |
-
"exportado desse site e clique no botão \"Importar\"."
|
380 |
-
|
381 |
-
#: inc/import_export.php:58 inc/import_export.php:83
|
382 |
-
msgid "Import"
|
383 |
-
msgstr "Importar"
|
384 |
-
|
385 |
-
#: inc/import_export.php:62
|
386 |
-
msgid "Export Post Types"
|
387 |
-
msgstr "Exportar tipos de artigo"
|
388 |
-
|
389 |
-
#: inc/import_export.php:68
|
390 |
-
msgid "No post types registered yet."
|
391 |
-
msgstr "Nenhum tipo de artigo registado ainda."
|
392 |
-
|
393 |
-
#: inc/import_export.php:71 inc/import_export.php:96
|
394 |
-
msgid ""
|
395 |
-
"To copy the system info, click below then press Ctrl + C (PC) or Cmd + C "
|
396 |
-
"(Mac)."
|
397 |
-
msgstr ""
|
398 |
-
"Para copiar a informação do sistema, clique abaixo e prima Ctrl + C (PC) ou "
|
399 |
-
"Cmd + C (Mac)."
|
400 |
-
|
401 |
-
#: inc/import_export.php:72
|
402 |
-
msgid ""
|
403 |
-
"Use the content above to import current post types into a different "
|
404 |
-
"WordPress site. You can also use this to simply back up your post type "
|
405 |
-
"settings."
|
406 |
-
msgstr ""
|
407 |
-
"Utilize o conteúdo acima para importar os actuais tipos de artigo "
|
408 |
-
"personalizados para outro site WordPress. Também pode utilizar isto "
|
409 |
-
"simplesmente para fazer um backup das definições dos seus tipos de artigo."
|
410 |
-
|
411 |
-
#: inc/import_export.php:78
|
412 |
-
msgid "Import Taxonomies"
|
413 |
-
msgstr "Importar taxonomias"
|
414 |
-
|
415 |
-
#: inc/import_export.php:82
|
416 |
-
msgid ""
|
417 |
-
"To import taxonomies from a different WordPress site, paste the exported "
|
418 |
-
"content from that site and click the \"Import\" button."
|
419 |
-
msgstr ""
|
420 |
-
"Para importar taxonomias de outro site WordPress, cole o conteúdo exportado "
|
421 |
-
"desse site e clique no botão \"Importar\"."
|
422 |
-
|
423 |
-
#: inc/import_export.php:87
|
424 |
-
msgid "Export Taxonomies"
|
425 |
-
msgstr "Exportar taxonomias"
|
426 |
-
|
427 |
-
#: inc/import_export.php:93
|
428 |
-
msgid "No taxonomies registered yet."
|
429 |
-
msgstr "Nenhuma taxonomia registada ainda."
|
430 |
-
|
431 |
-
#: inc/import_export.php:97
|
432 |
-
msgid ""
|
433 |
-
"Use the content above to import current taxonomies into a different "
|
434 |
-
"WordPress site. You can also use this to simply back up your taxonomy "
|
435 |
-
"settings."
|
436 |
-
msgstr ""
|
437 |
-
"Utilize o conteúdo acima para importar as actuais taxonomias para outro site "
|
438 |
-
"WordPress. Também pode utilizar isto simplesmente para fazer um backup das "
|
439 |
-
"definições das suas taxonomias."
|
440 |
-
|
441 |
-
#: inc/import_export.php:105
|
442 |
-
msgid "Get Post Type and Taxonomy Code"
|
443 |
-
msgstr "Obter código do tipo de artigo e da taxonomia"
|
444 |
-
|
445 |
-
#: inc/import_export.php:107
|
446 |
-
msgid "All CPT UI Post Types"
|
447 |
-
msgstr "Todos os tipos de artigos do CPT UI"
|
448 |
-
|
449 |
-
#: inc/import_export.php:108 inc/import_export.php:112
|
450 |
-
msgid "Copy/paste the code below into your functions.php file."
|
451 |
-
msgstr "Copie/cole o código abaixo no seu ficheiro functions.php."
|
452 |
-
|
453 |
-
#: inc/import_export.php:111
|
454 |
-
msgid "All CPT UI Taxonomies"
|
455 |
-
msgstr "Todas as taxonomias do CPT UI"
|
456 |
-
|
457 |
-
#: inc/import_export.php:142
|
458 |
-
msgid "No taxonomies to display at this time"
|
459 |
-
msgstr "Nenhuma taxonomia para mostrar neste momento"
|
460 |
-
|
461 |
-
#: inc/import_export.php:241
|
462 |
-
msgid "No post types to display at this time"
|
463 |
-
msgstr "Nenhum tipo de artigo para mostrar neste momento"
|
464 |
-
|
465 |
-
#: inc/import_export.php:367
|
466 |
-
msgid "Post types"
|
467 |
-
msgstr "Tipos de artigo"
|
468 |
-
|
469 |
-
#: inc/listings.php:10
|
470 |
-
msgid "Post Types and Taxonomies registered by Custom Post Type UI."
|
471 |
-
msgstr "Tipos de artigo e taxonomias registadas pelo Custom Post Type UI."
|
472 |
-
|
473 |
-
#: inc/listings.php:18 inc/listings.php:134
|
474 |
-
#, php-format
|
475 |
-
msgid "Total count: %d"
|
476 |
-
msgstr "Contagem total: %d"
|
477 |
-
|
478 |
-
#: inc/listings.php:31 inc/listings.php:119
|
479 |
-
msgid "Post Type"
|
480 |
-
msgstr "Tipo de artigo"
|
481 |
-
|
482 |
-
#: inc/listings.php:33 inc/listings.php:121 inc/post-types.php:648
|
483 |
-
msgid "Supports"
|
484 |
-
msgstr "Suporte"
|
485 |
-
|
486 |
-
#: inc/listings.php:35 inc/listings.php:123 inc/listings.php:150
|
487 |
-
#: inc/listings.php:225 inc/post-types.php:215 inc/taxonomies.php:201
|
488 |
-
msgid "Labels"
|
489 |
-
msgstr "Legendas"
|
490 |
-
|
491 |
-
#: inc/listings.php:72 inc/listings.php:182 inc/post-types.php:271
|
492 |
-
msgid "Edit"
|
493 |
-
msgstr "Editar"
|
494 |
-
|
495 |
-
#: inc/listings.php:75
|
496 |
-
msgid "View frontend archive"
|
497 |
-
msgstr "Ver arquivo na frente do site"
|
498 |
-
|
499 |
-
#: inc/listings.php:108 inc/listings.php:211
|
500 |
-
msgid "No custom labels to display"
|
501 |
-
msgstr "Nenhuma legenda personalizada para mostrar"
|
502 |
-
|
503 |
-
#: inc/listings.php:147 inc/listings.php:222
|
504 |
-
msgid "Taxonomy"
|
505 |
-
msgstr "Taxionomia"
|
506 |
-
|
507 |
-
#: inc/post-types.php:30 inc/taxonomies.php:25
|
508 |
-
msgid "Are you sure you want to delete this?"
|
509 |
-
msgstr "Tem a certeza que quer apagar isto?"
|
510 |
-
|
511 |
-
#: inc/post-types.php:89
|
512 |
-
msgid ""
|
513 |
-
"DO NOT EDIT the post type slug unless necessary. Changing that value "
|
514 |
-
"registers a new post type entry for your install."
|
515 |
-
msgstr ""
|
516 |
-
"NÃO EDITE o URL do tipo de artigo a não ser que estritamente necessário. "
|
517 |
-
"Alterar este valor regista um novo tipo de artigo na sua instalação."
|
518 |
-
|
519 |
-
#: inc/post-types.php:90
|
520 |
-
msgid ""
|
521 |
-
"Use appropriate checkbox above save/delete buttons if you wish to change "
|
522 |
-
"slugs and update post types for existing posts."
|
523 |
-
msgstr ""
|
524 |
-
"Utilize a caixa de selecção apropriada acima dos botões guardar/apagar se "
|
525 |
-
"quiser alterar o URL e actualizar os tipos de artigo existentes."
|
526 |
-
|
527 |
-
#: inc/post-types.php:91 inc/taxonomies.php:87
|
528 |
-
msgid "Select: "
|
529 |
-
msgstr "Selecionar:"
|
530 |
-
|
531 |
-
#: inc/post-types.php:94 inc/taxonomies.php:91
|
532 |
-
msgid "Select"
|
533 |
-
msgstr "Seleccionar"
|
534 |
-
|
535 |
-
#: inc/post-types.php:124
|
536 |
-
msgid "Post Type Slug"
|
537 |
-
msgstr "URL do tipo de artigo"
|
538 |
-
|
539 |
-
#: inc/post-types.php:125
|
540 |
-
msgid "(e.g. movie)"
|
541 |
-
msgstr "(p. ex. filme)"
|
542 |
-
|
543 |
-
#: inc/post-types.php:126
|
544 |
-
msgid ""
|
545 |
-
"The post type name. Used to retrieve custom post type content. Should be "
|
546 |
-
"short and unique"
|
547 |
-
msgstr ""
|
548 |
-
"O nome do tipo de artigo. Utilizado para obter o conteúdo do tipo de artigo "
|
549 |
-
"personalizado. Deverá ser curto e único."
|
550 |
-
|
551 |
-
#: inc/post-types.php:137 inc/taxonomies.php:129
|
552 |
-
msgid "Plural Label"
|
553 |
-
msgstr "Legenda no plural"
|
554 |
-
|
555 |
-
#: inc/post-types.php:138
|
556 |
-
msgid "(e.g. Movies)"
|
557 |
-
msgstr "(p. ex. Filmes)"
|
558 |
-
|
559 |
-
#: inc/post-types.php:139 inc/post-types.php:236 inc/post-types.php:248
|
560 |
-
#: inc/post-types.php:260 inc/post-types.php:272 inc/post-types.php:284
|
561 |
-
#: inc/post-types.php:296 inc/post-types.php:308 inc/post-types.php:320
|
562 |
-
#: inc/post-types.php:332 inc/post-types.php:344 inc/post-types.php:356
|
563 |
-
#: inc/post-types.php:368
|
564 |
-
msgid "Post type label. Used in the admin menu for displaying post types."
|
565 |
-
msgstr ""
|
566 |
-
"Legenda do tipo de artigo. Utilizada no menu de administração para mostrar "
|
567 |
-
"tipos de artigo."
|
568 |
-
|
569 |
-
#: inc/post-types.php:149 inc/taxonomies.php:138
|
570 |
-
msgid "Singular Label"
|
571 |
-
msgstr "Legenda no singular"
|
572 |
-
|
573 |
-
#: inc/post-types.php:150
|
574 |
-
msgid "(e.g. Movie)"
|
575 |
-
msgstr "(p. ex. Filme)"
|
576 |
-
|
577 |
-
#: inc/post-types.php:151
|
578 |
-
msgid ""
|
579 |
-
"Custom Post Type Singular label. Used in WordPress when a singular label is "
|
580 |
-
"needed."
|
581 |
-
msgstr ""
|
582 |
-
"Legenda no singular do tipo de artigo personalizado. Utilizada no WordPress "
|
583 |
-
"quando é necessária uma legenda no singular."
|
584 |
-
|
585 |
-
#: inc/post-types.php:167
|
586 |
-
msgid "Description"
|
587 |
-
msgstr "Descrição"
|
588 |
-
|
589 |
-
#: inc/post-types.php:168
|
590 |
-
msgid ""
|
591 |
-
"Custom Post Type Description. Describe what your custom post type is used "
|
592 |
-
"for."
|
593 |
-
msgstr ""
|
594 |
-
"Descrição do tipo de artigo personalizado. Descreva para que serve o seu "
|
595 |
-
"tipo de artigo personalizado."
|
596 |
-
|
597 |
-
#: inc/post-types.php:180
|
598 |
-
msgid "Migrate posts to newly renamed post type?"
|
599 |
-
msgstr "Migrar artigos para o recém renomeado tipo de artigo?"
|
600 |
-
|
601 |
-
#: inc/post-types.php:181
|
602 |
-
msgid "Check this to migrate posts if and when renaming your post type."
|
603 |
-
msgstr "Seleccione isto para migrar artigos ao renomear o seu tipo de artigo."
|
604 |
-
|
605 |
-
#: inc/post-types.php:190
|
606 |
-
msgid "Save Post Type"
|
607 |
-
msgstr "Guardar tipo de artigo"
|
608 |
-
|
609 |
-
#: inc/post-types.php:191
|
610 |
-
msgid "Delete Post Type"
|
611 |
-
msgstr "Apagar tipo de artigo"
|
612 |
-
|
613 |
-
#: inc/post-types.php:193
|
614 |
-
msgid "Add Post Type"
|
615 |
-
msgstr "Adicionar tipo de artigo"
|
616 |
-
|
617 |
-
#: inc/post-types.php:204 inc/taxonomies.php:190
|
618 |
-
msgid "Starter Notes"
|
619 |
-
msgstr "Notas para principiantes"
|
620 |
-
|
621 |
-
#: inc/post-types.php:207
|
622 |
-
#, php-format
|
623 |
-
msgid ""
|
624 |
-
"Post Type names should have %smax 20 characters%s, and only contain "
|
625 |
-
"alphanumeric, lowercase characters, underscores in place of spaces and "
|
626 |
-
"letters that do not have accents. Reserved names: post, page, attachment, "
|
627 |
-
"revision, nav_menu_item."
|
628 |
-
msgstr ""
|
629 |
-
"Os nomes dos tipos de artigo deverão ter %sno máximo 20 caracteres%s, "
|
630 |
-
"alfanuméricos, minúsculos, undserscores em vez de espaços e letras sem "
|
631 |
-
"acentos. Nomes reservados: post, page, attachment, revision, nav_menu_item."
|
632 |
-
|
633 |
-
#: inc/post-types.php:208
|
634 |
-
#, php-format
|
635 |
-
msgid ""
|
636 |
-
"If you are unfamiliar with the advanced post type settings, just fill in the "
|
637 |
-
"%sPost Type Name%s and %sLabel%s fields. Remaining settings will use default "
|
638 |
-
"values. Labels, if left blank, will be automatically created based on the "
|
639 |
-
"post type name. Hover over the question mark for more details."
|
640 |
-
msgstr ""
|
641 |
-
"Se não estiver familiarizado com as definições avançadas dos artigos, "
|
642 |
-
"preencha apenas os campos %sNome do tipo de artigo%s e %sLegenda%s. Para as "
|
643 |
-
"restantes definições serão atribuídas as opções padrão. Se deixadas em "
|
644 |
-
"branco, as legendas serão automaticamente criadas com base no nome do tipo "
|
645 |
-
"de artigo. Ver o ponto de interrogação para mais detalhes."
|
646 |
-
|
647 |
-
#: inc/post-types.php:209
|
648 |
-
#, php-format
|
649 |
-
msgid ""
|
650 |
-
"Deleting custom post types will %sNOT%s delete any content into the database "
|
651 |
-
"or added to those post types. You can easily recreate your post types and "
|
652 |
-
"the content will still exist."
|
653 |
-
msgstr ""
|
654 |
-
"Apagar tipos de artigo personalizados %sNÃO%s apagará quaisquer conteúdos da "
|
655 |
-
"base de dados ou adicionados a esses tipos de artigo. Pode facilmente "
|
656 |
-
"recriar os seus tipos de artigo e o conteúdo continuará a existir."
|
657 |
-
|
658 |
-
#: inc/post-types.php:223 inc/taxonomies.php:211
|
659 |
-
msgid "Menu Name"
|
660 |
-
msgstr "Nome do menu"
|
661 |
-
|
662 |
-
#: inc/post-types.php:224
|
663 |
-
msgid "Custom menu name for your custom post type."
|
664 |
-
msgstr "Nome de menu personalizado para o seu tipo de artigo personalizado."
|
665 |
-
|
666 |
-
#: inc/post-types.php:228
|
667 |
-
msgid "(e.g. My Movies)"
|
668 |
-
msgstr "(p. ex. Os meus filmes)"
|
669 |
-
|
670 |
-
#: inc/post-types.php:235 inc/taxonomies.php:220
|
671 |
-
msgid "All Items"
|
672 |
-
msgstr "Todos os itens"
|
673 |
-
|
674 |
-
#: inc/post-types.php:240
|
675 |
-
msgid "(e.g. All Movies)"
|
676 |
-
msgstr "(p. ex. Todos os filmes)"
|
677 |
-
|
678 |
-
#: inc/post-types.php:247
|
679 |
-
msgid "Add New"
|
680 |
-
msgstr "Adicionar novo"
|
681 |
-
|
682 |
-
#: inc/post-types.php:252
|
683 |
-
msgid "(e.g. Add New)"
|
684 |
-
msgstr "(p. ex. Adicionar novo)"
|
685 |
-
|
686 |
-
#: inc/post-types.php:259 inc/taxonomies.php:256
|
687 |
-
msgid "Add New Item"
|
688 |
-
msgstr "Adicionar novo item"
|
689 |
-
|
690 |
-
#: inc/post-types.php:264
|
691 |
-
msgid "(e.g. Add New Movie)"
|
692 |
-
msgstr "(p. ex. Adicionar novo filme)"
|
693 |
-
|
694 |
-
#: inc/post-types.php:276
|
695 |
-
msgid "(e.g. Edit)"
|
696 |
-
msgstr "(p. ex. Editar)"
|
697 |
-
|
698 |
-
#: inc/post-types.php:283 inc/taxonomies.php:229
|
699 |
-
msgid "Edit Item"
|
700 |
-
msgstr "Editar item"
|
701 |
-
|
702 |
-
#: inc/post-types.php:288
|
703 |
-
msgid "(e.g. Edit Movie)"
|
704 |
-
msgstr "(p. ex. Editar filme)"
|
705 |
-
|
706 |
-
#: inc/post-types.php:295
|
707 |
-
msgid "New Item"
|
708 |
-
msgstr "Novo item"
|
709 |
-
|
710 |
-
#: inc/post-types.php:300
|
711 |
-
msgid "(e.g. New Movie)"
|
712 |
-
msgstr "(p. ex. Novo filme)"
|
713 |
-
|
714 |
-
#: inc/post-types.php:307
|
715 |
-
msgid "View"
|
716 |
-
msgstr "Ver"
|
717 |
-
|
718 |
-
#: inc/post-types.php:312
|
719 |
-
msgid "(e.g. View)"
|
720 |
-
msgstr "(p. ex. Ver)"
|
721 |
-
|
722 |
-
#: inc/post-types.php:319 inc/taxonomies.php:238
|
723 |
-
msgid "View Item"
|
724 |
-
msgstr "Ver item"
|
725 |
-
|
726 |
-
#: inc/post-types.php:324
|
727 |
-
msgid "(e.g. View Movie)"
|
728 |
-
msgstr "(p. ex. Ver filme)"
|
729 |
-
|
730 |
-
#: inc/post-types.php:331
|
731 |
-
msgid "Search Item"
|
732 |
-
msgstr "Pesquisar item"
|
733 |
-
|
734 |
-
#: inc/post-types.php:336
|
735 |
-
msgid "(e.g. Search Movie)"
|
736 |
-
msgstr "(p. ex. Pesquisar filme)"
|
737 |
-
|
738 |
-
#: inc/post-types.php:343
|
739 |
-
msgid "Not Found"
|
740 |
-
msgstr "Não encontrado"
|
741 |
-
|
742 |
-
#: inc/post-types.php:348
|
743 |
-
msgid "(e.g. No Movies found)"
|
744 |
-
msgstr "(p. ex. Nenhum filme encontrado)"
|
745 |
-
|
746 |
-
#: inc/post-types.php:355
|
747 |
-
msgid "Not Found in Trash"
|
748 |
-
msgstr "Não encontrado no lixo"
|
749 |
-
|
750 |
-
#: inc/post-types.php:360
|
751 |
-
msgid "(e.g. No Movies found in Trash)"
|
752 |
-
msgstr "(p. ex. Nenhum fime encontrado no lixo)"
|
753 |
-
|
754 |
-
#: inc/post-types.php:367
|
755 |
-
msgid "Parent"
|
756 |
-
msgstr "Superior"
|
757 |
-
|
758 |
-
#: inc/post-types.php:372
|
759 |
-
msgid "(e.g. Parent Movie)"
|
760 |
-
msgstr "(p. ex. Filme superior)"
|
761 |
-
|
762 |
-
#: inc/post-types.php:386 inc/post-types.php:406 inc/post-types.php:432
|
763 |
-
#: inc/post-types.php:464 inc/post-types.php:495 inc/post-types.php:515
|
764 |
-
#: inc/post-types.php:547 inc/post-types.php:567 inc/post-types.php:610
|
765 |
-
#: inc/taxonomies.php:349 inc/taxonomies.php:366 inc/taxonomies.php:383
|
766 |
-
#: inc/taxonomies.php:409 inc/taxonomies.php:435 inc/taxonomies.php:452
|
767 |
-
#: inc/taxonomies.php:469
|
768 |
-
msgid "False"
|
769 |
-
msgstr "Falso"
|
770 |
-
|
771 |
-
#: inc/post-types.php:387 inc/post-types.php:407 inc/post-types.php:433
|
772 |
-
#: inc/post-types.php:465 inc/post-types.php:496 inc/post-types.php:516
|
773 |
-
#: inc/post-types.php:548 inc/post-types.php:568 inc/post-types.php:611
|
774 |
-
#: inc/taxonomies.php:350 inc/taxonomies.php:367 inc/taxonomies.php:384
|
775 |
-
#: inc/taxonomies.php:410 inc/taxonomies.php:436 inc/taxonomies.php:453
|
776 |
-
#: inc/taxonomies.php:470
|
777 |
-
msgid "True"
|
778 |
-
msgstr "Verdadeiro"
|
779 |
-
|
780 |
-
#: inc/post-types.php:395
|
781 |
-
msgid "Public"
|
782 |
-
msgstr "Público"
|
783 |
-
|
784 |
-
#: inc/post-types.php:396 inc/post-types.php:416 inc/post-types.php:525
|
785 |
-
#: inc/post-types.php:557 inc/post-types.php:577 inc/post-types.php:619
|
786 |
-
#: inc/taxonomies.php:376 inc/taxonomies.php:393 inc/taxonomies.php:419
|
787 |
-
msgid "(default: True)"
|
788 |
-
msgstr "(padrão: Verdadeiro)"
|
789 |
-
|
790 |
-
#: inc/post-types.php:397
|
791 |
-
msgid ""
|
792 |
-
"Whether posts of this type should be shown in the admin UI and is publicly "
|
793 |
-
"queryable."
|
794 |
-
msgstr ""
|
795 |
-
"Se artigos deste tipo deverão ser mostrados no interface do utilizador da "
|
796 |
-
"administração e pesquisáveis publicamente."
|
797 |
-
|
798 |
-
#: inc/post-types.php:415 inc/taxonomies.php:375
|
799 |
-
msgid "Show UI"
|
800 |
-
msgstr "Mostrar interface do utilizador"
|
801 |
-
|
802 |
-
#: inc/post-types.php:417
|
803 |
-
msgid "Whether to generate a default UI for managing this post type."
|
804 |
-
msgstr ""
|
805 |
-
"Se cria um interface de utilizador padrão para gerir este tipo de artigo."
|
806 |
-
|
807 |
-
#: inc/post-types.php:425
|
808 |
-
msgid "Has Archive"
|
809 |
-
msgstr "Tem arquivo"
|
810 |
-
|
811 |
-
#: inc/post-types.php:426
|
812 |
-
msgid "Whether the post type will have a post type archive URL."
|
813 |
-
msgstr "Se o tipo de artigo terá um URL para o arquivo deste tipo de artigo."
|
814 |
-
|
815 |
-
#: inc/post-types.php:427
|
816 |
-
msgid "If left blank, the archive slug will default to the post type slug."
|
817 |
-
msgstr ""
|
818 |
-
"Se deixar em branco, o URL do arquivo será o mesmo que o URL do tipo de "
|
819 |
-
"artigo."
|
820 |
-
|
821 |
-
#: inc/post-types.php:441 inc/post-types.php:474 inc/post-types.php:505
|
822 |
-
#: inc/taxonomies.php:359 inc/taxonomies.php:479
|
823 |
-
msgid "(default: False)"
|
824 |
-
msgstr "(padrão: Falso)"
|
825 |
-
|
826 |
-
#: inc/post-types.php:453
|
827 |
-
msgid "Slug to be used for archive URL."
|
828 |
-
msgstr "URL utilizado para a página de arquivo."
|
829 |
-
|
830 |
-
#: inc/post-types.php:473
|
831 |
-
msgid "Exclude From Search"
|
832 |
-
msgstr "Excluir da pesquisa"
|
833 |
-
|
834 |
-
#: inc/post-types.php:475
|
835 |
-
msgid ""
|
836 |
-
"Whether to exclude posts with this post type from front end search results."
|
837 |
-
msgstr ""
|
838 |
-
"Se exclui artigos deste tipo dos resultados de pesquisa na frente do site."
|
839 |
-
|
840 |
-
#: inc/post-types.php:486
|
841 |
-
msgid "Capability Type"
|
842 |
-
msgstr "Tipo de capacidade"
|
843 |
-
|
844 |
-
#: inc/post-types.php:487
|
845 |
-
msgid "The post type to use for checking read, edit, and delete capabilities"
|
846 |
-
msgstr ""
|
847 |
-
"O tipo de artigo a utilizar para verificar as capacidades de leitura, edição "
|
848 |
-
"e exclusão"
|
849 |
-
|
850 |
-
#: inc/post-types.php:504 inc/taxonomies.php:358
|
851 |
-
msgid "Hierarchical"
|
852 |
-
msgstr "Hierárquico"
|
853 |
-
|
854 |
-
#: inc/post-types.php:506
|
855 |
-
msgid "Whether the post type can have parent-child relationships"
|
856 |
-
msgstr "Se o tipo de artigo pode ter relações de superior/dependente"
|
857 |
-
|
858 |
-
#: inc/post-types.php:524 inc/taxonomies.php:418
|
859 |
-
msgid "Rewrite"
|
860 |
-
msgstr "Reescrever URL"
|
861 |
-
|
862 |
-
#: inc/post-types.php:526
|
863 |
-
msgid "Whether or not WordPress should use rewrites for this post type"
|
864 |
-
msgstr ""
|
865 |
-
"Se o WordPress deverão usar ou não a reescrita para este tipo de artigo"
|
866 |
-
|
867 |
-
#: inc/post-types.php:537 inc/taxonomies.php:429
|
868 |
-
msgid "Custom Rewrite Slug"
|
869 |
-
msgstr "Reescrever URL personalizado"
|
870 |
-
|
871 |
-
#: inc/post-types.php:538
|
872 |
-
msgid "(default: post type slug)"
|
873 |
-
msgstr "(padrão: URL do tipo de artigo)"
|
874 |
-
|
875 |
-
#: inc/post-types.php:539
|
876 |
-
msgid "Custom post type slug to use instead of the default."
|
877 |
-
msgstr "URL do tipo de artigo personalizado a utilizar em vez do valor padrão."
|
878 |
-
|
879 |
-
#: inc/post-types.php:556
|
880 |
-
msgid "With Front"
|
881 |
-
msgstr "Com superior"
|
882 |
-
|
883 |
-
#: inc/post-types.php:558 inc/taxonomies.php:446
|
884 |
-
msgid "Should the permastruct be prepended with the front base."
|
885 |
-
msgstr "Preceder as ligações permanentes com URL superior."
|
886 |
-
|
887 |
-
#: inc/post-types.php:576 inc/taxonomies.php:392
|
888 |
-
msgid "Query Var"
|
889 |
-
msgstr "Query Var"
|
890 |
-
|
891 |
-
#: inc/post-types.php:578
|
892 |
-
msgid "Sets the query_var key for this post type."
|
893 |
-
msgstr "Define a chave query_var para este tipo de artigo."
|
894 |
-
|
895 |
-
#: inc/post-types.php:586
|
896 |
-
msgid "Menu Position"
|
897 |
-
msgstr "Posição do menu"
|
898 |
-
|
899 |
-
#: inc/post-types.php:587
|
900 |
-
msgid ""
|
901 |
-
"The position in the menu order the post type should appear. show_in_menu "
|
902 |
-
"must be true."
|
903 |
-
msgstr ""
|
904 |
-
"A posição em que o tipo de artigo deverá aparecer no menu. \"Mostrar no menu"
|
905 |
-
"\" tem que ser \"Verdadeiro\"."
|
906 |
-
|
907 |
-
#: inc/post-types.php:588
|
908 |
-
#, fuzzy
|
909 |
-
msgid ""
|
910 |
-
"See <a href=\"http://codex.wordpress.org/Function_Reference/"
|
911 |
-
"register_post_type#Parameters\" target=\"_blank\">Available options</a> in "
|
912 |
-
"the \"menu_position\" section. Range of 5-100"
|
913 |
-
msgstr ""
|
914 |
-
"Veja as <a href=\"http://codex.wordpress.org/Function_Reference/"
|
915 |
-
"register_post_type#Parameters\">opções disponíveis</a> na secção "
|
916 |
-
"\"menu_position\". Ordem de 5-100"
|
917 |
-
|
918 |
-
#: inc/post-types.php:603
|
919 |
-
msgid "Show in Menu"
|
920 |
-
msgstr "Mostrar no menu"
|
921 |
-
|
922 |
-
#: inc/post-types.php:604
|
923 |
-
msgid ""
|
924 |
-
"Whether to show the post type in the admin menu and where to show that menu."
|
925 |
-
msgstr ""
|
926 |
-
"Se mostra o tipo de artigo no menu de administração e onde mostra esse menu."
|
927 |
-
|
928 |
-
#: inc/post-types.php:605
|
929 |
-
msgid ""
|
930 |
-
"\"Show UI\" must be \"true\". If an existing top level page such as \"tools."
|
931 |
-
"php\" is indicated for second input, post type will be sub menu of that."
|
932 |
-
msgstr ""
|
933 |
-
"\"Mostrar interface do utilizador\" tem que ser \"Verdadeiro\". Se uma "
|
934 |
-
"página de nível de topo como a \"tools.php\" for indicada no segundo campo, "
|
935 |
-
"o tipo de artigo será seu submenu."
|
936 |
-
|
937 |
-
#: inc/post-types.php:631
|
938 |
-
msgid "Top-level page file name to make post type a sub-menu of."
|
939 |
-
msgstr ""
|
940 |
-
"Nome da página de nível de topo para tornar o tipo de artigo seu submenu."
|
941 |
-
|
942 |
-
#: inc/post-types.php:643
|
943 |
-
msgid "Menu Icon"
|
944 |
-
msgstr "Ícone do menu"
|
945 |
-
|
946 |
-
#: inc/post-types.php:644
|
947 |
-
msgid "(Full URL for icon or Dashicon class)"
|
948 |
-
msgstr "(URL completo ou classe para o para o ícone do painel)"
|
949 |
-
|
950 |
-
#: inc/post-types.php:645
|
951 |
-
msgid "URL to image to be used as menu icon or Dashicon class to use instead."
|
952 |
-
msgstr "URL da imagem ou classe a utilizar para o ícone do menu no painel."
|
953 |
-
|
954 |
-
#: inc/post-types.php:658
|
955 |
-
msgid "Title"
|
956 |
-
msgstr "Título"
|
957 |
-
|
958 |
-
#: inc/post-types.php:659
|
959 |
-
msgid "Adds the title meta box when creating content for this custom post type"
|
960 |
-
msgstr ""
|
961 |
-
"Adiciona a caixa de título ao criar conteúdo para este tipo de artigo "
|
962 |
-
"personalizado"
|
963 |
-
|
964 |
-
#: inc/post-types.php:673
|
965 |
-
msgid "Editor"
|
966 |
-
msgstr "Editor"
|
967 |
-
|
968 |
-
#: inc/post-types.php:674
|
969 |
-
msgid ""
|
970 |
-
"Adds the content editor meta box when creating content for this custom post "
|
971 |
-
"type"
|
972 |
-
msgstr ""
|
973 |
-
"Adiciona a caixa de editor de conteúdo ao criar conteúdo para este tipo de "
|
974 |
-
"artigo personalizado"
|
975 |
-
|
976 |
-
#: inc/post-types.php:688
|
977 |
-
msgid "Excerpt"
|
978 |
-
msgstr "Excerto"
|
979 |
-
|
980 |
-
#: inc/post-types.php:689
|
981 |
-
msgid ""
|
982 |
-
"Adds the excerpt meta box when creating content for this custom post type"
|
983 |
-
msgstr ""
|
984 |
-
"Adiciona a caixa de excerto ao criar conteúdo para este tipo de artigo "
|
985 |
-
"personalizado"
|
986 |
-
|
987 |
-
#: inc/post-types.php:703
|
988 |
-
msgid "Trackbacks"
|
989 |
-
msgstr "Trackbacks"
|
990 |
-
|
991 |
-
#: inc/post-types.php:704
|
992 |
-
msgid ""
|
993 |
-
"Adds the trackbacks meta box when creating content for this custom post type"
|
994 |
-
msgstr ""
|
995 |
-
"Adiciona a caixa de trackbacks ao criar conteúdo para este tipo de artigo "
|
996 |
-
"personalizado"
|
997 |
-
|
998 |
-
#: inc/post-types.php:718
|
999 |
-
msgid "Custom Fields"
|
1000 |
-
msgstr "Campos personalizados"
|
1001 |
-
|
1002 |
-
#: inc/post-types.php:719
|
1003 |
-
msgid ""
|
1004 |
-
"Adds the custom fields meta box when creating content for this custom post "
|
1005 |
-
"type"
|
1006 |
-
msgstr ""
|
1007 |
-
"Adiciona a caixa de campos personalizados ao criar conteúdo para este tipo "
|
1008 |
-
"de artigo personalizado"
|
1009 |
-
|
1010 |
-
#: inc/post-types.php:733
|
1011 |
-
msgid "Comments"
|
1012 |
-
msgstr "Comentários"
|
1013 |
-
|
1014 |
-
#: inc/post-types.php:734
|
1015 |
-
msgid ""
|
1016 |
-
"Adds the comments meta box when creating content for this custom post type"
|
1017 |
-
msgstr ""
|
1018 |
-
"Adiciona a caixa de comentários ao criar conteúdo para este tipo de artigo "
|
1019 |
-
"personalizado"
|
1020 |
-
|
1021 |
-
#: inc/post-types.php:748
|
1022 |
-
msgid "Revisions"
|
1023 |
-
msgstr "Revisões"
|
1024 |
-
|
1025 |
-
#: inc/post-types.php:749
|
1026 |
-
msgid ""
|
1027 |
-
"Adds the revisions meta box when creating content for this custom post type"
|
1028 |
-
msgstr ""
|
1029 |
-
"Adiciona a caixa de revisões ao criar conteúdo para este tipo de artigo "
|
1030 |
-
"personalizado"
|
1031 |
-
|
1032 |
-
#: inc/post-types.php:763
|
1033 |
-
msgid "Featured Image"
|
1034 |
-
msgstr "Imagem de destaque"
|
1035 |
-
|
1036 |
-
#: inc/post-types.php:764
|
1037 |
-
msgid ""
|
1038 |
-
"Adds the featured image meta box when creating content for this custom post "
|
1039 |
-
"type"
|
1040 |
-
msgstr ""
|
1041 |
-
"Adiciona a caixa de imagem de destaque ao criar conteúdo para este tipo de "
|
1042 |
-
"artigo personalizado"
|
1043 |
-
|
1044 |
-
#: inc/post-types.php:778
|
1045 |
-
msgid "Author"
|
1046 |
-
msgstr "Autor"
|
1047 |
-
|
1048 |
-
#: inc/post-types.php:779
|
1049 |
-
msgid ""
|
1050 |
-
"Adds the author meta box when creating content for this custom post type"
|
1051 |
-
msgstr ""
|
1052 |
-
"Adiciona a caixa de autor ao criar conteúdo para este tipo de artigo "
|
1053 |
-
"personalizado"
|
1054 |
-
|
1055 |
-
#: inc/post-types.php:793
|
1056 |
-
msgid "Page Attributes"
|
1057 |
-
msgstr "Atributos da página"
|
1058 |
-
|
1059 |
-
#: inc/post-types.php:794
|
1060 |
-
msgid ""
|
1061 |
-
"Adds the page attribute meta box when creating content for this custom post "
|
1062 |
-
"type"
|
1063 |
-
msgstr ""
|
1064 |
-
"Adiciona a caixa de atributos da página ao criar conteúdo para este tipo de "
|
1065 |
-
"artigo personalizado"
|
1066 |
-
|
1067 |
-
#: inc/post-types.php:808
|
1068 |
-
msgid "Post Formats"
|
1069 |
-
msgstr "Formatos de artigo"
|
1070 |
-
|
1071 |
-
#: inc/post-types.php:809
|
1072 |
-
msgid "Adds post format support"
|
1073 |
-
msgstr "Adiciona suporte para formato de artigo"
|
1074 |
-
|
1075 |
-
#: inc/post-types.php:814
|
1076 |
-
msgid "Use the option below to explicitly set \"supports\" to false."
|
1077 |
-
msgstr ""
|
1078 |
-
"Utilize a opção abaixo para definir explicitamente o \"suporte\" como falso."
|
1079 |
-
|
1080 |
-
#: inc/post-types.php:822
|
1081 |
-
msgid "None"
|
1082 |
-
msgstr "Nenhum"
|
1083 |
-
|
1084 |
-
#: inc/post-types.php:823
|
1085 |
-
msgid "Remove all support features"
|
1086 |
-
msgstr "Remove suporte para todos os recursos"
|
1087 |
-
|
1088 |
-
#: inc/post-types.php:829
|
1089 |
-
msgid "Custom \"Supports\""
|
1090 |
-
msgstr "\"Suporte\" personalizado"
|
1091 |
-
|
1092 |
-
#: inc/post-types.php:830
|
1093 |
-
msgid ""
|
1094 |
-
"Use this input to register custom \"supports\" values, separated by commas."
|
1095 |
-
msgstr ""
|
1096 |
-
"Utilize este campo para registar \"suporte\" de valores personalizados, "
|
1097 |
-
"separados por vírgulas."
|
1098 |
-
|
1099 |
-
#: inc/post-types.php:836
|
1100 |
-
msgid "Provide custom support slugs here."
|
1101 |
-
msgstr "Insira aqui os valores personalizados a suportar."
|
1102 |
-
|
1103 |
-
#: inc/post-types.php:842
|
1104 |
-
msgid "Built-in Taxonomies"
|
1105 |
-
msgstr "Taxonomias incorporadas"
|
1106 |
-
|
1107 |
-
#: inc/post-types.php:871 inc/taxonomies.php:172
|
1108 |
-
#, php-format
|
1109 |
-
msgid "Adds %s support"
|
1110 |
-
msgstr "Adiciona suporte para %s"
|
1111 |
-
|
1112 |
-
#: inc/post-types.php:977
|
1113 |
-
msgid "Please provide a post type to delete"
|
1114 |
-
msgstr "Por favor introduza um tipo de artigo a apagar"
|
1115 |
-
|
1116 |
-
#: inc/post-types.php:1037
|
1117 |
-
msgid "Please provide a post type name"
|
1118 |
-
msgstr "Por favor introduza um nome de tipo de artigo"
|
1119 |
-
|
1120 |
-
#: inc/post-types.php:1061
|
1121 |
-
msgid "Please do not use quotes in post type names or rewrite slugs"
|
1122 |
-
msgstr ""
|
1123 |
-
"Por favor não utilize aspas nos nomes dos tipos de artigo ou nos URL "
|
1124 |
-
"reescritos"
|
1125 |
-
|
1126 |
-
#: inc/post-types.php:1068
|
1127 |
-
#, php-format
|
1128 |
-
msgid "Please choose a different post type name. %s is already registered."
|
1129 |
-
msgstr ""
|
1130 |
-
"Por favor escolha um nome de tipo de artigo diferente. %s já está registado."
|
1131 |
-
|
1132 |
-
#: inc/support.php:41
|
1133 |
-
msgid "Custom Post Type UI Support"
|
1134 |
-
msgstr "Suporte do Custom Post Type UI"
|
1135 |
-
|
1136 |
-
#: inc/support.php:43
|
1137 |
-
#, php-format
|
1138 |
-
msgid ""
|
1139 |
-
"Please note that this plugin will NOT handle display of registered post "
|
1140 |
-
"types or taxonomies in your current theme. It will simply register them for "
|
1141 |
-
"you. If all else fails, visit us on the %s"
|
1142 |
-
msgstr ""
|
1143 |
-
"Por favor note que este plugin NÃO controlará a exibição de tipos de artigo "
|
1144 |
-
"ou taxonomias registadas no seu tema actual. Simplesmente fará por si o "
|
1145 |
-
"respectivo registo. Se tudo o resto falhar, visite-nos no %s"
|
1146 |
-
|
1147 |
-
#: inc/support.php:44
|
1148 |
-
msgid "Support Forums"
|
1149 |
-
msgstr "Fórum de suporte"
|
1150 |
-
|
1151 |
-
#: inc/support.php:50
|
1152 |
-
msgid "General"
|
1153 |
-
msgstr "Geral"
|
1154 |
-
|
1155 |
-
#: inc/support.php:53
|
1156 |
-
msgid ""
|
1157 |
-
"I changed my custom post type name and now I can not get to my posts. How do "
|
1158 |
-
"I get them back?"
|
1159 |
-
msgstr ""
|
1160 |
-
"Modifiquei o nome do meu tipo de artigo personalizado e agora não consigo "
|
1161 |
-
"encontrar os meus artigos. Como faço para os recuperar?"
|
1162 |
-
|
1163 |
-
#: inc/support.php:54
|
1164 |
-
msgid ""
|
1165 |
-
"You can either change the custom post type name back to the original name or "
|
1166 |
-
"try the Post Type Switcher plugin"
|
1167 |
-
msgstr ""
|
1168 |
-
"Poderá voltar a alterar para o original o nome do tipo de artigo "
|
1169 |
-
"personalizado ou experimentar o plugin Post Type Switcher"
|
1170 |
-
|
1171 |
-
#: inc/support.php:59
|
1172 |
-
msgid ""
|
1173 |
-
"I changed my custom post type or taxonomy slug and now I have duplicates "
|
1174 |
-
"shown. How do I remove the duplicate?"
|
1175 |
-
msgstr ""
|
1176 |
-
"Modifiquei o meu tipo de artigo personalizado ou o URL da taxonomia e agora "
|
1177 |
-
"são mostrados em duplicado. Como removo os duplicados?"
|
1178 |
-
|
1179 |
-
#: inc/support.php:60
|
1180 |
-
msgid ""
|
1181 |
-
"Renaming the slug for a post type or taxonomy creates a new entry in our "
|
1182 |
-
"saved option which gets registered as its own post type or taxonomy. Since "
|
1183 |
-
"the settings will be mirrored from the previous slug, you will just need to "
|
1184 |
-
"delete the previous version's entry."
|
1185 |
-
msgstr ""
|
1186 |
-
"Renomear o URL de um tipo de artigo ou taxonomia cria uma nova entrada nas "
|
1187 |
-
"opções guardadas que será registada como um tipo de artigo ou taxonomia "
|
1188 |
-
"independente. Como as opções serão copiadas do URL anterior, apenas tem que "
|
1189 |
-
"apagar a entrada com a versão anterior."
|
1190 |
-
|
1191 |
-
#: inc/support.php:63
|
1192 |
-
msgid ""
|
1193 |
-
"I have added post thumbnail and/or post format support to my post type, but "
|
1194 |
-
"those do not appear when adding a post type post."
|
1195 |
-
msgstr ""
|
1196 |
-
"Eu adicionei suporte para imagem de destaque e/ou formato de artigo ao meu "
|
1197 |
-
"tipo de artigo, mas estes não aparecem quando adiciono um novo artigo."
|
1198 |
-
|
1199 |
-
#: inc/support.php:64
|
1200 |
-
msgid ""
|
1201 |
-
"Make sure your theme has post \"post-thumbnails\" theme support enabled."
|
1202 |
-
msgstr ""
|
1203 |
-
"Verifique se o seu tema tem o suporte para \"Imagens de destaque\" activado."
|
1204 |
-
|
1205 |
-
#: inc/support.php:69
|
1206 |
-
msgid "Front-end Display"
|
1207 |
-
msgstr "Frente do site"
|
1208 |
-
|
1209 |
-
#: inc/support.php:72
|
1210 |
-
msgid "What template files should I edit to alter my post type display?"
|
1211 |
-
msgstr ""
|
1212 |
-
"Que ficheiros de modelo deverei editar para alterar a exibição do meu tipo "
|
1213 |
-
"de artigo?"
|
1214 |
-
|
1215 |
-
#: inc/support.php:73
|
1216 |
-
#, php-format
|
1217 |
-
msgid ""
|
1218 |
-
"Please visit the %sTemplate Hierarchy%s page on the WordPress codex for "
|
1219 |
-
"details about available templates."
|
1220 |
-
msgstr ""
|
1221 |
-
"Por favor visite a página %sHierarquia de modelos WordPress%s do WordPress "
|
1222 |
-
"Codex para detalhes sobre os modelos disponíveis."
|
1223 |
-
|
1224 |
-
#: inc/support.php:80
|
1225 |
-
msgid "How do I display my custom post type on my site?"
|
1226 |
-
msgstr "Como posso mostrar o meu tipo de artigo personalizado no meu site?"
|
1227 |
-
|
1228 |
-
#: inc/support.php:81
|
1229 |
-
#, php-format
|
1230 |
-
msgid ""
|
1231 |
-
"You will need to utilize the %sWP_Query%s class to handle display in custom "
|
1232 |
-
"locations. If you have set the post type to have archives, the archive url "
|
1233 |
-
"should be something like \"http://www.mysite.com/post-type-slug\""
|
1234 |
-
msgstr ""
|
1235 |
-
"Terá que utilizar a classe %sWP_Query%s para controlar a exibição em locais "
|
1236 |
-
"personalizados. Se definiu que o tipo de artigo terá arquivos, o URL do "
|
1237 |
-
"arquivo deverá ser algo como \"http://www.meusite.com/slug-tipo-de-artigo\""
|
1238 |
-
|
1239 |
-
#: inc/support.php:87
|
1240 |
-
msgid ""
|
1241 |
-
"I have added categories and tags to my custom post type, but they do not "
|
1242 |
-
"appear in the archives."
|
1243 |
-
msgstr ""
|
1244 |
-
"Adicionei categorias e etiquetas ao meu tipo de artigo personalizado, mas "
|
1245 |
-
"não aparecem nos arquivos."
|
1246 |
-
|
1247 |
-
#: inc/support.php:88
|
1248 |
-
#, php-format
|
1249 |
-
msgid ""
|
1250 |
-
"You will need to add your newly created post type to the types that the "
|
1251 |
-
"category and tag archives query for. You can see a tutorial on how to do "
|
1252 |
-
"that at %s"
|
1253 |
-
msgstr ""
|
1254 |
-
"Terá que adicionar o seu tipo de artigo recém criado aos tipos incluídos na "
|
1255 |
-
"pesquisa dos arquivos de categorias e etiquetas. Pode ver um tutorial sobre "
|
1256 |
-
"como fazer isto em %s"
|
1257 |
-
|
1258 |
-
#: inc/support.php:97
|
1259 |
-
msgid "Advanced"
|
1260 |
-
msgstr "Avançado"
|
1261 |
-
|
1262 |
-
#: inc/support.php:100
|
1263 |
-
msgid "How do I add custom metaboxes to my post type?"
|
1264 |
-
msgstr ""
|
1265 |
-
"Como posso adicionar caixas personalizadas de metadados ao meu tipo de "
|
1266 |
-
"artigo?"
|
1267 |
-
|
1268 |
-
#: inc/support.php:102
|
1269 |
-
#, php-format
|
1270 |
-
msgid ""
|
1271 |
-
"We recommend checking out %s, the latest iteration of \"Custom Metaboxes and "
|
1272 |
-
"Fields for WordPress\". Both are maintained by WebDevStudios."
|
1273 |
-
msgstr ""
|
1274 |
-
"Recomendamos que conheça %s, a última iteração de \"Custom Metaboxes and "
|
1275 |
-
"Fields for WordPress\". Ambos são mantidos por WebDevStudios."
|
1276 |
-
|
1277 |
-
#: inc/support.php:108
|
1278 |
-
msgid ""
|
1279 |
-
"How do I add a newly registered taxonomy to a post type that already exists?"
|
1280 |
-
msgstr ""
|
1281 |
-
"Como posso adicionar uma nova taxonomia a um tipo de artigo já existente?"
|
1282 |
-
|
1283 |
-
#: inc/support.php:110
|
1284 |
-
#, php-format
|
1285 |
-
msgid "Check out the %s function for documentation and usage examples."
|
1286 |
-
msgstr "Veja a documentação e exemplos da função %s."
|
1287 |
-
|
1288 |
-
#: inc/support.php:116
|
1289 |
-
msgid "Post relationships?"
|
1290 |
-
msgstr "Relações de artigos?"
|
1291 |
-
|
1292 |
-
#: inc/support.php:117
|
1293 |
-
#, php-format
|
1294 |
-
msgid ""
|
1295 |
-
"%s has an excellent %spost%s introducing users to the %sPosts 2 Posts%s "
|
1296 |
-
"plugin that should be a good start."
|
1297 |
-
msgstr ""
|
1298 |
-
"%s tem um excelente %sartigo%s para introduzir utilizadores ao plugin "
|
1299 |
-
"%sPosts 2 Posts%s que deve ser um bom começo."
|
1300 |
-
|
1301 |
-
#: inc/support.php:126
|
1302 |
-
msgid "Is there any function reference list?"
|
1303 |
-
msgstr "Existe alguma lista de referência das funções?"
|
1304 |
-
|
1305 |
-
#: inc/support.php:127
|
1306 |
-
#, php-format
|
1307 |
-
msgid ""
|
1308 |
-
"%s has compiled a nice list of functions used by our plugin. Note not all "
|
1309 |
-
"will be useful as they are attached to hooks."
|
1310 |
-
msgstr ""
|
1311 |
-
"O %s compilou uma boa lista de funções utilizadas pelo nosso plugin. Note "
|
1312 |
-
"que nem todas serão úteis, uma vez que estão anexadas a hooks."
|
1313 |
-
|
1314 |
-
#: inc/support.php:131
|
1315 |
-
msgid ""
|
1316 |
-
"How do I filter the \"enter title here\" text in the post editor screen?"
|
1317 |
-
msgstr ""
|
1318 |
-
"Como posso filtrar o texto \"Introduza o título aqui\" no ecrã de edição?"
|
1319 |
-
|
1320 |
-
#: inc/support.php:132
|
1321 |
-
msgid ""
|
1322 |
-
"Change text inside the post/page editor title field. Should be able to adapt "
|
1323 |
-
"as necessary."
|
1324 |
-
msgstr ""
|
1325 |
-
"Modifique o texto dentro do campo do título no editor de artigo/página. "
|
1326 |
-
"Deverá adaptar-se conforme necessário."
|
1327 |
-
|
1328 |
-
#: inc/taxonomies.php:85
|
1329 |
-
msgid ""
|
1330 |
-
"DO NOT EDIT the taxonomy slug unless necessary. Changing that value "
|
1331 |
-
"registers a new taxonomy entry for your install."
|
1332 |
-
msgstr ""
|
1333 |
-
"NÃO EDITE o URL da taxonomia a não ser que estritamente necessário. Alterar "
|
1334 |
-
"este valor regista uma nova taxonomia na sua instalação."
|
1335 |
-
|
1336 |
-
#: inc/taxonomies.php:118
|
1337 |
-
msgid "Taxonomy Slug"
|
1338 |
-
msgstr "URL da taxonomia"
|
1339 |
-
|
1340 |
-
#: inc/taxonomies.php:119
|
1341 |
-
#, fuzzy
|
1342 |
-
msgid "(e.g. actor)"
|
1343 |
-
msgstr "(p. ex. Actor)"
|
1344 |
-
|
1345 |
-
#: inc/taxonomies.php:120
|
1346 |
-
msgid ""
|
1347 |
-
"The taxonomy name. Used to retrieve custom taxonomy content. Should be short "
|
1348 |
-
"and unique"
|
1349 |
-
msgstr ""
|
1350 |
-
"O nome da taxonomia. Utilizado para obter o conteúdo da taxonomia "
|
1351 |
-
"personalizada. Deverá ser curto e único."
|
1352 |
-
|
1353 |
-
#: inc/taxonomies.php:128 inc/taxonomies.php:210
|
1354 |
-
msgid "(e.g. Actors)"
|
1355 |
-
msgstr "(p. ex. Actores)"
|
1356 |
-
|
1357 |
-
#: inc/taxonomies.php:130
|
1358 |
-
msgid "Taxonomy label. Used in the admin menu for displaying custom taxonomy."
|
1359 |
-
msgstr ""
|
1360 |
-
"Legenda para a taxonomia. Utilizado no menu de administração para mostrar a "
|
1361 |
-
"taxonomia personalizada."
|
1362 |
-
|
1363 |
-
#: inc/taxonomies.php:137
|
1364 |
-
msgid "(e.g. Actor)"
|
1365 |
-
msgstr "(p. ex. Actor)"
|
1366 |
-
|
1367 |
-
#: inc/taxonomies.php:139
|
1368 |
-
msgid ""
|
1369 |
-
"Taxonomy Singular label. Used in WordPress when a singular label is needed."
|
1370 |
-
msgstr ""
|
1371 |
-
"Legenda no singular da taxonomia personalizada. Utilizada no WordPress "
|
1372 |
-
"quando é necessária uma legenda no singular."
|
1373 |
-
|
1374 |
-
#: inc/taxonomies.php:142
|
1375 |
-
msgid "Attach to Post Type"
|
1376 |
-
msgstr "Anexar ao tipo de artigo"
|
1377 |
-
|
1378 |
-
#: inc/taxonomies.php:181
|
1379 |
-
msgid "Save Taxonomy"
|
1380 |
-
msgstr "Guardar taxonomia"
|
1381 |
-
|
1382 |
-
#: inc/taxonomies.php:182
|
1383 |
-
msgid "Delete Taxonomy"
|
1384 |
-
msgstr "Apagar taxonomia"
|
1385 |
-
|
1386 |
-
#: inc/taxonomies.php:184
|
1387 |
-
msgid "Add Taxonomy"
|
1388 |
-
msgstr "Adicionar taxonomia"
|
1389 |
-
|
1390 |
-
#: inc/taxonomies.php:193
|
1391 |
-
#, php-format
|
1392 |
-
msgid ""
|
1393 |
-
"Taxonomy names should have %smax 32 characters%s, and only contain "
|
1394 |
-
"alphanumeric, lowercase, characters, underscores in place of spaces, and "
|
1395 |
-
"letters that do not have accents."
|
1396 |
-
msgstr ""
|
1397 |
-
"Nomes de taxonomias podem ter no %smáximo 32 caracteres%s, apenas pode "
|
1398 |
-
"conter caracteres alfanuméricos minúsculos, underscores em vez de espaços e "
|
1399 |
-
"letras sem acentos."
|
1400 |
-
|
1401 |
-
#: inc/taxonomies.php:194
|
1402 |
-
#, php-format
|
1403 |
-
msgid ""
|
1404 |
-
"If you are unfamiliar with the advanced taxonomy settings, just fill in the "
|
1405 |
-
"%sTaxonomy Name%s and choose an %sAttach to Post Type%s option. Remaining "
|
1406 |
-
"settings will use default values. Labels, if left blank, will be "
|
1407 |
-
"automatically created based on the taxonomy name. Hover over the question "
|
1408 |
-
"marks for more details."
|
1409 |
-
msgstr ""
|
1410 |
-
"Se não estiver familiarizado com as definições avançadas das taxonomias, "
|
1411 |
-
"preencha apenas os campos %sNome da taxonomia%s e %sAnexar ao tipo de artigo"
|
1412 |
-
"%s. Para as restantes definições serão atribuídas as opções padrão. Se "
|
1413 |
-
"deixadas em branco, as legendas serão automaticamente criadas com base no "
|
1414 |
-
"nome da taxonomia. Ver o ponto de interrogação para mais detalhes."
|
1415 |
-
|
1416 |
-
#: inc/taxonomies.php:195
|
1417 |
-
#, php-format
|
1418 |
-
msgid ""
|
1419 |
-
"Deleting custom taxonomies do %sNOT%s delete terms added to those "
|
1420 |
-
"taxonomies. You can recreate your taxonomies and the terms will return. "
|
1421 |
-
"Changing the name, after adding terms to the taxonomy, will not update the "
|
1422 |
-
"terms in the database."
|
1423 |
-
msgstr ""
|
1424 |
-
"Apagar taxonomias personalizadas %sNÃO%s apagará quaisquer termos "
|
1425 |
-
"adicionados a essas taxonomias. Pode recriar as suas taxonomias e os termos "
|
1426 |
-
"voltarão a existir. Mudar o nome depois de adicionar termos à taxonomia não "
|
1427 |
-
"actualizará os termos na base de dados."
|
1428 |
-
|
1429 |
-
#: inc/taxonomies.php:212 inc/taxonomies.php:221 inc/taxonomies.php:230
|
1430 |
-
#: inc/taxonomies.php:239 inc/taxonomies.php:248 inc/taxonomies.php:257
|
1431 |
-
#: inc/taxonomies.php:266 inc/taxonomies.php:275 inc/taxonomies.php:284
|
1432 |
-
#: inc/taxonomies.php:293 inc/taxonomies.php:302 inc/taxonomies.php:311
|
1433 |
-
#: inc/taxonomies.php:320 inc/taxonomies.php:329 inc/taxonomies.php:338
|
1434 |
-
msgid ""
|
1435 |
-
"Custom taxonomy label. Used in the admin menu for displaying taxonomies."
|
1436 |
-
msgstr ""
|
1437 |
-
"Legenda personalizada da taxonomia. Utilizada no menu de administração para "
|
1438 |
-
"mostrar taxonomias."
|
1439 |
-
|
1440 |
-
#: inc/taxonomies.php:219
|
1441 |
-
msgid "(e.g. All Actors)"
|
1442 |
-
msgstr "(p. ex. Todos os actores)"
|
1443 |
-
|
1444 |
-
#: inc/taxonomies.php:228
|
1445 |
-
msgid "(e.g. Edit Actor)"
|
1446 |
-
msgstr "(p. ex. Editar actor)"
|
1447 |
-
|
1448 |
-
#: inc/taxonomies.php:237
|
1449 |
-
msgid "(e.g. View Actor)"
|
1450 |
-
msgstr "(p. ex. Ver actor)"
|
1451 |
-
|
1452 |
-
#: inc/taxonomies.php:246
|
1453 |
-
msgid "(e.g. Update Actor Name)"
|
1454 |
-
msgstr "(p. ex. Actualizar nome de actor)"
|
1455 |
-
|
1456 |
-
#: inc/taxonomies.php:247
|
1457 |
-
msgid "Update Item Name"
|
1458 |
-
msgstr "Actualizar nome do item"
|
1459 |
-
|
1460 |
-
#: inc/taxonomies.php:255
|
1461 |
-
msgid "(e.g. Add New Actor)"
|
1462 |
-
msgstr "(p. ex. Adicionar novo actor)"
|
1463 |
-
|
1464 |
-
#: inc/taxonomies.php:264
|
1465 |
-
msgid "(e.g. New Actor Name)"
|
1466 |
-
msgstr "(p. ex. Nome do novo actor)"
|
1467 |
-
|
1468 |
-
#: inc/taxonomies.php:265
|
1469 |
-
msgid "New Item Name"
|
1470 |
-
msgstr "Nome do novo item"
|
1471 |
-
|
1472 |
-
#: inc/taxonomies.php:273
|
1473 |
-
msgid "(e.g. Parent Actor)"
|
1474 |
-
msgstr "(p. ex. Actor superior)"
|
1475 |
-
|
1476 |
-
#: inc/taxonomies.php:274
|
1477 |
-
msgid "Parent Item"
|
1478 |
-
msgstr "Item superior"
|
1479 |
-
|
1480 |
-
#: inc/taxonomies.php:282
|
1481 |
-
msgid "(e.g. Parent Actor:)"
|
1482 |
-
msgstr "(p. ex. Actor superior:)"
|
1483 |
-
|
1484 |
-
#: inc/taxonomies.php:283
|
1485 |
-
msgid "Parent Item Colon"
|
1486 |
-
msgstr "Item superior com pontuação"
|
1487 |
-
|
1488 |
-
#: inc/taxonomies.php:291
|
1489 |
-
msgid "(e.g. Search Actors)"
|
1490 |
-
msgstr "(p. ex. Pesquisar actores)"
|
1491 |
-
|
1492 |
-
#: inc/taxonomies.php:292
|
1493 |
-
msgid "Search Items"
|
1494 |
-
msgstr "Pesquisar itens"
|
1495 |
-
|
1496 |
-
#: inc/taxonomies.php:300
|
1497 |
-
msgid "(e.g. Popular Actors)"
|
1498 |
-
msgstr "(p. ex. Actores populares)"
|
1499 |
-
|
1500 |
-
#: inc/taxonomies.php:301
|
1501 |
-
msgid "Popular Items"
|
1502 |
-
msgstr "Itens populares"
|
1503 |
-
|
1504 |
-
#: inc/taxonomies.php:309
|
1505 |
-
msgid "(e.g. Separate actors with commas)"
|
1506 |
-
msgstr "(p. ex. Actores separados por vírgulas)"
|
1507 |
-
|
1508 |
-
#: inc/taxonomies.php:310
|
1509 |
-
msgid "Separate Items with Commas"
|
1510 |
-
msgstr "Itens separados por vírgulas"
|
1511 |
-
|
1512 |
-
#: inc/taxonomies.php:318
|
1513 |
-
msgid "(e.g. Add or remove actors)"
|
1514 |
-
msgstr "(p. ex. Adicionar ou remover actores)"
|
1515 |
-
|
1516 |
-
#: inc/taxonomies.php:319
|
1517 |
-
msgid "Add or Remove Items"
|
1518 |
-
msgstr "Adicionar ou remover itens"
|
1519 |
-
|
1520 |
-
#: inc/taxonomies.php:327
|
1521 |
-
msgid "(e.g. Choose from the most used actors)"
|
1522 |
-
msgstr "(p. ex. Escolher entre os actores mais utilizados)"
|
1523 |
-
|
1524 |
-
#: inc/taxonomies.php:328
|
1525 |
-
msgid "Choose From Most Used"
|
1526 |
-
msgstr "Escolher entre os mais utilizados"
|
1527 |
-
|
1528 |
-
#: inc/taxonomies.php:336
|
1529 |
-
msgid "(e.g. No actors found)"
|
1530 |
-
msgstr "(p. ex. Nenhum actor encontrado)"
|
1531 |
-
|
1532 |
-
#: inc/taxonomies.php:337
|
1533 |
-
msgid "Not found"
|
1534 |
-
msgstr "Não encontrado"
|
1535 |
-
|
1536 |
-
#: inc/taxonomies.php:360
|
1537 |
-
msgid "Whether the taxonomy can have parent-child relationships"
|
1538 |
-
msgstr "Se a taxonomia pode ter relações superior/dependente"
|
1539 |
-
|
1540 |
-
#: inc/taxonomies.php:377
|
1541 |
-
msgid "Whether to generate a default UI for managing this custom taxonomy."
|
1542 |
-
msgstr ""
|
1543 |
-
"Se cria um interface de utilizador padrão para gerir esta taxonomia "
|
1544 |
-
"personalizada."
|
1545 |
-
|
1546 |
-
#: inc/taxonomies.php:394
|
1547 |
-
msgid "Sets the query_var key for this taxonomy."
|
1548 |
-
msgstr "Define a chave query_var para esta taxonomia."
|
1549 |
-
|
1550 |
-
#: inc/taxonomies.php:402
|
1551 |
-
msgid "(default: none). Query Var needs to be true to use."
|
1552 |
-
msgstr ""
|
1553 |
-
"(padrão: nenhum). Na opção Query var tem que estar verdadeiro para ser "
|
1554 |
-
"utilizada."
|
1555 |
-
|
1556 |
-
#: inc/taxonomies.php:403
|
1557 |
-
msgid "Custom Query Var String"
|
1558 |
-
msgstr "Valor personalizado da Query Var"
|
1559 |
-
|
1560 |
-
#: inc/taxonomies.php:404
|
1561 |
-
msgid "Sets a custom query_var slug for this taxonomy."
|
1562 |
-
msgstr "Define um URL personalizado para a query_var desta taxonomia."
|
1563 |
-
|
1564 |
-
#: inc/taxonomies.php:420
|
1565 |
-
msgid "Whether or not WordPress should use rewrites for this taxonomy."
|
1566 |
-
msgstr "Se o WordPress deverão usar ou não a reescrita para esta taxonomia."
|
1567 |
-
|
1568 |
-
#: inc/taxonomies.php:428
|
1569 |
-
msgid "(default: taxonomy name)"
|
1570 |
-
msgstr "(padrão: nome da taxonomia)"
|
1571 |
-
|
1572 |
-
#: inc/taxonomies.php:430
|
1573 |
-
msgid "Custom taxonomy rewrite slug."
|
1574 |
-
msgstr "Reescrever URL da taxonomia personalizada."
|
1575 |
-
|
1576 |
-
#: inc/taxonomies.php:444
|
1577 |
-
msgid "Rewrite With Front"
|
1578 |
-
msgstr "Reescrever URL com base"
|
1579 |
-
|
1580 |
-
#: inc/taxonomies.php:445
|
1581 |
-
msgid "(default: true)"
|
1582 |
-
msgstr "(padrão: verdadeiro)"
|
1583 |
-
|
1584 |
-
#: inc/taxonomies.php:461
|
1585 |
-
msgid "Rewrite Hierarchical"
|
1586 |
-
msgstr "Reescrever URL hierarquicamente"
|
1587 |
-
|
1588 |
-
#: inc/taxonomies.php:462
|
1589 |
-
msgid "(default: false)"
|
1590 |
-
msgstr "(Default: false)"
|
1591 |
-
|
1592 |
-
#: inc/taxonomies.php:463
|
1593 |
-
msgid "Should the permastruct allow hierarchical urls."
|
1594 |
-
msgstr "Permitir URL hierárquicos nas ligações permanentes."
|
1595 |
-
|
1596 |
-
#: inc/taxonomies.php:478
|
1597 |
-
msgid "Show Admin Column"
|
1598 |
-
msgstr "Mostrar coluna de administração"
|
1599 |
-
|
1600 |
-
#: inc/taxonomies.php:480
|
1601 |
-
msgid ""
|
1602 |
-
"Whether to allow automatic creation of taxonomy columns on associated post-"
|
1603 |
-
"types."
|
1604 |
-
msgstr ""
|
1605 |
-
"Se permite a criação automática de colunas de taxonomias em tipos de artigos "
|
1606 |
-
"associados."
|
1607 |
-
|
1608 |
-
#: inc/taxonomies.php:585
|
1609 |
-
msgid "Please provide a taxonomy to delete"
|
1610 |
-
msgstr "Por favor introduza uma taxonomia a apagar"
|
1611 |
-
|
1612 |
-
#: inc/taxonomies.php:636
|
1613 |
-
msgid "Please provide a taxonomy name"
|
1614 |
-
msgstr "Por favor introduza um nome de taxonomia"
|
1615 |
-
|
1616 |
-
#: inc/taxonomies.php:652
|
1617 |
-
msgid "Please do not use quotes in taxonomy names or rewrite slugs"
|
1618 |
-
msgstr ""
|
1619 |
-
"Por favor não utilize aspas nos nomes das taxonomias ou nos URL reescritos"
|
1620 |
-
|
1621 |
-
#: inc/taxonomies.php:658
|
1622 |
-
#, php-format
|
1623 |
-
msgid "Please choose a different taxonomy name. %s is already used."
|
1624 |
-
msgstr "Por favor escolha um nome de taxonomia diferente. %s já é utilizado."
|
1625 |
-
|
1626 |
-
#. Plugin URI of the plugin/theme
|
1627 |
-
msgid "https://github.com/WebDevStudios/custom-post-type-ui/"
|
1628 |
-
msgstr ""
|
1629 |
-
|
1630 |
-
#. Description of the plugin/theme
|
1631 |
-
msgid ""
|
1632 |
-
"Admin panel for creating custom post types and custom taxonomies in WordPress"
|
1633 |
-
msgstr ""
|
1634 |
-
|
1635 |
-
#. Author of the plugin/theme
|
1636 |
-
msgid "WebDevStudios"
|
1637 |
-
msgstr ""
|
1638 |
-
|
1639 |
-
#. Author URI of the plugin/theme
|
1640 |
-
msgid "http://webdevstudios.com/"
|
1641 |
-
msgstr ""
|
1642 |
-
|
1643 |
-
#~ msgid "Whether posts of this type should be shown in the admin UI"
|
1644 |
-
#~ msgstr ""
|
1645 |
-
#~ "Se os artigos deste tipo deverão ser mostrados no painel de administração"
|
1646 |
-
|
1647 |
-
#~ msgid "Custom Post Type UI Registered Types and Taxonomies."
|
1648 |
-
#~ msgstr "Tipos e taxonomias registados pelo Custom Post Type UI"
|
1649 |
-
|
1650 |
-
#~ msgid "View on front"
|
1651 |
-
#~ msgstr "Ver na frente do site"
|
1652 |
-
|
1653 |
-
#~ msgid ""
|
1654 |
-
#~ "Select a post type to edit. DO NOT EDIT the post type slug unless "
|
1655 |
-
#~ "necessary. Changing that value registers a new post type entry for your "
|
1656 |
-
#~ "install."
|
1657 |
-
#~ msgstr ""
|
1658 |
-
#~ "Seleccione um tipo de artifo para editar. NÃO EDITE o URL do tipo de "
|
1659 |
-
#~ "artigo a não ser que seja mesmo necessário. Alterar este valor regista um "
|
1660 |
-
#~ "novo tipo de artigo na sua instalação."
|
1661 |
-
|
1662 |
-
#~ msgid "Click headings to reveal available options."
|
1663 |
-
#~ msgstr "Clique nos títulos para mostrar opções disponíveis."
|
1664 |
-
|
1665 |
-
#~ msgid "Click to expand"
|
1666 |
-
#~ msgstr "Clique para expandir"
|
1667 |
-
|
1668 |
-
#~ msgid "Whether posts of this type should be shown in the admin UI."
|
1669 |
-
#~ msgstr ""
|
1670 |
-
#~ "Se artigos deste tipo deverão ser mostrados no interface do utilizador da "
|
1671 |
-
#~ "administração."
|
1672 |
-
|
1673 |
-
#~ msgid "Whether the post type will have a post type archive page."
|
1674 |
-
#~ msgstr ""
|
1675 |
-
#~ "Se o tipo de artigo terá uma página de arquivo para o tipo de artigo."
|
1676 |
-
|
1677 |
-
#~ msgid "Slug to be used for archive page."
|
1678 |
-
#~ msgstr "URL utilizado para a página de arquivo."
|
1679 |
-
|
1680 |
-
#~ msgid "Whether the post type will be searchable"
|
1681 |
-
#~ msgstr "Se o tipo de artigo será pesquisável"
|
1682 |
-
|
1683 |
-
#~ msgid "Triggers the handling of rewrites for this post type"
|
1684 |
-
#~ msgstr "Acciona o controlo de reescrita do URL para este tipo de artigo"
|
1685 |
-
|
1686 |
-
#~ msgid "(default: post type name)"
|
1687 |
-
#~ msgstr "(padrão: nome do tipo de artigo)"
|
1688 |
-
|
1689 |
-
#~ msgid "Custom slug to use instead of the default."
|
1690 |
-
#~ msgstr "Utilizar URL personalizado em vez do padrão."
|
1691 |
-
|
1692 |
-
#~ msgid "URL to image to be used as menu icon."
|
1693 |
-
#~ msgstr "URL da imagem a ser utilizada como ícone do menu."
|
1694 |
-
|
1695 |
-
#~ msgid "Whether to generate a default UI for managing this custom taxonomy"
|
1696 |
-
#~ msgstr ""
|
1697 |
-
#~ "Se cria um interface de utilizador padrão para gerir esta taxonomia "
|
1698 |
-
#~ "personalizada"
|
1699 |
-
|
1700 |
-
#~ msgid "Triggers the handling of rewrites for this taxonomy"
|
1701 |
-
#~ msgstr "Acciona o controlo de reescrita do URL para esta taxonomia"
|
1702 |
-
|
1703 |
-
#, fuzzy
|
1704 |
-
#~ msgid "Custom Taxonomy Rewrite Slug"
|
1705 |
-
#~ msgstr "Reescrever URL personalizado"
|
1706 |
-
|
1707 |
-
#~ msgid ""
|
1708 |
-
#~ "To get started with creating some post types, please visit %s and for "
|
1709 |
-
#~ "taxonomies, visit %s. If you need some help, check the %s page. If "
|
1710 |
-
#~ "nothing there fits your issue, visit our %s and we will try to get to "
|
1711 |
-
#~ "your question as soon as possible."
|
1712 |
-
#~ msgstr ""
|
1713 |
-
#~ "Para começar a criar alguns tipos de artigo, por favor visite %s e para "
|
1714 |
-
#~ "as taxonomias visite %s. Se precisar de ajuda, veja a página de %s. Se "
|
1715 |
-
#~ "nada se ajuste à sua situação, visite o nosso %s e tentaremos responder à "
|
1716 |
-
#~ "sua questão o mais rápido possível."
|
1717 |
-
|
1718 |
-
#~ msgid "CPT UI Support Forum"
|
1719 |
-
#~ msgstr "Fórum de suporte de CPT UI"
|
1720 |
-
|
1721 |
-
#~ msgid "%s version %s by %s - %s %s %s · %s · %s"
|
1722 |
-
#~ msgstr "%s versão %s por %s - %s %s %s · %s · %s"
|
1723 |
-
|
1724 |
-
#~ msgid "Edit Post Type"
|
1725 |
-
#~ msgstr "Editar tipo de artigo"
|
1726 |
-
|
1727 |
-
#~ msgid "Edit Taxonomy"
|
1728 |
-
#~ msgstr "Editar taxonomia"
|
1729 |
-
|
1730 |
-
#~ msgid "About Custom Post Type UI"
|
1731 |
-
#~ msgstr "Sobre o Custom Post Type UI"
|
1732 |
-
|
1733 |
-
#~ msgid "Whether to generate a default UI for managing this post type"
|
1734 |
-
#~ msgstr ""
|
1735 |
-
#~ "Se cria um interface de utilizador padrão para gerir este tipo de artigo"
|
1736 |
-
|
1737 |
-
#~ msgid "Whether the post type will have a post type archive page"
|
1738 |
-
#~ msgstr "Se o tipo de artigo terá uma página de arquivo do tipo de artigo"
|
1739 |
-
|
1740 |
-
#~ msgid "Show In Menu"
|
1741 |
-
#~ msgstr "Mostrar no Menu"
|
1742 |
-
|
1743 |
-
#~ msgid ""
|
1744 |
-
#~ "Whether to show the post type in the admin menu and where to show that "
|
1745 |
-
#~ "menu. Note that show_ui must be true"
|
1746 |
-
#~ msgstr ""
|
1747 |
-
#~ "Se mostra o tipo de artigo no menu de administração e onde deverá ficar "
|
1748 |
-
#~ "esse menu. Note que \"Mostrar UI\" tem que ser \"Verdadeiro\""
|
1749 |
-
|
1750 |
-
#~ msgid "version"
|
1751 |
-
#~ msgstr "versão"
|
1752 |
-
|
1753 |
-
#~ msgid "Frequently Asked Questions"
|
1754 |
-
#~ msgstr "Perguntas frequentes"
|
1755 |
-
|
1756 |
-
#~ msgid ""
|
1757 |
-
#~ "Please note that this plugin will NOT handle display of registered post "
|
1758 |
-
#~ "types or taxonomies in your current theme. It will simply register them "
|
1759 |
-
#~ "for you."
|
1760 |
-
#~ msgstr ""
|
1761 |
-
#~ "Note que este plugin NÃO controla que tipos de artigos registados ou "
|
1762 |
-
#~ "taxonomias registadas serão mostrados no seu tema. Apenas efectuará o seu "
|
1763 |
-
#~ "registo por si."
|
1764 |
-
|
1765 |
-
#~ msgid ""
|
1766 |
-
#~ "Q: <strong>How can I display content from a custom post type on my "
|
1767 |
-
#~ "website?</strong>"
|
1768 |
-
#~ msgstr ""
|
1769 |
-
#~ "P: <strong>Como posso mostrar o conteúdo de um tipo de artigo "
|
1770 |
-
#~ "personalizado no meu site?</strong>"
|
1771 |
-
|
1772 |
-
#~ msgid "A: Justin Tadlock has written some great posts on the topic:"
|
1773 |
-
#~ msgstr ""
|
1774 |
-
#~ "R: Justin Tadlock escreveu alguns óptimos artigos sobre este tópico:"
|
1775 |
-
|
1776 |
-
#~ msgid "Showing Custom Post Types on your Home Page"
|
1777 |
-
#~ msgstr "Showing Custom Post Types on your Home Page"
|
1778 |
-
|
1779 |
-
#~ msgid "Custom Post Types in WordPress"
|
1780 |
-
#~ msgstr "Custom Post Types in WordPress"
|
1781 |
-
|
1782 |
-
#~ msgid ""
|
1783 |
-
#~ "A: You can either change the custom post type name back to the original "
|
1784 |
-
#~ "name or try the Post Type Switcher plugin: "
|
1785 |
-
#~ msgstr ""
|
1786 |
-
#~ "R: Pode mudar novamente o nome do tipo de artigo personalizado para o "
|
1787 |
-
#~ "original ou tentar o plugin Post Type Switcher:"
|
1788 |
-
|
1789 |
-
#~ msgid "Professional WordPress<br />Second Edition"
|
1790 |
-
#~ msgstr "Professional WordPress<br />Segunda edição"
|
1791 |
-
|
1792 |
-
#~ msgid "Please donate to the development<br />of Custom Post Type UI:"
|
1793 |
-
#~ msgstr ""
|
1794 |
-
#~ "Faça um donativo para o desenvolvimento <br />do Custom Post Type UI:"
|
1795 |
-
|
1796 |
-
#~ msgid ""
|
1797 |
-
#~ "The leading book on WordPress design and development!<br /><strong>Brand "
|
1798 |
-
#~ "new second edition!"
|
1799 |
-
#~ msgstr ""
|
1800 |
-
#~ "O principal livro de design e desenvolvimento em WordPress!<br /"
|
1801 |
-
#~ "><strong>Segunda edição!"
|
1802 |
-
|
1803 |
-
#~ msgid "WebDevStudios.com Recent News"
|
1804 |
-
#~ msgstr "Notícias recentes de WebDevStudios.com"
|
1805 |
-
|
1806 |
-
#~ msgid "WebDevStudios.com News"
|
1807 |
-
#~ msgstr "Notícias de WebDevStudios.com"
|
1808 |
-
|
1809 |
-
#~ msgid "Custom post type deleted successfully"
|
1810 |
-
#~ msgstr "Tipo de artigo personalizado apagado com sucesso"
|
1811 |
-
|
1812 |
-
#~ msgid "Manage Custom Post Types"
|
1813 |
-
#~ msgstr "Gerir tipos de artigo personalizados"
|
1814 |
-
|
1815 |
-
#~ msgid ""
|
1816 |
-
#~ "Deleting custom post types will <strong>NOT</strong> delete any content "
|
1817 |
-
#~ "into the database or added to those post types. You can easily recreate "
|
1818 |
-
#~ "your post types and the content will still exist."
|
1819 |
-
#~ msgstr ""
|
1820 |
-
#~ "Apagar tipos de artigo personalizados <strong>NÃO</strong> apagará "
|
1821 |
-
#~ "quaisquer conteúdos da base de dados ou adicionados a esses tipos de "
|
1822 |
-
#~ "artigo. Pode facilmente recriar os seus tipos de artigo e o conteúdo "
|
1823 |
-
#~ "continuará a existir."
|
1824 |
-
|
1825 |
-
#~ msgid "Action"
|
1826 |
-
#~ msgstr "Acção"
|
1827 |
-
|
1828 |
-
#~ msgid "Name"
|
1829 |
-
#~ msgstr "Nome"
|
1830 |
-
|
1831 |
-
#~ msgid "Label"
|
1832 |
-
#~ msgstr "Texto a mostrar"
|
1833 |
-
|
1834 |
-
#~ msgid "Rewrite Slug"
|
1835 |
-
#~ msgstr "Reescrever URL"
|
1836 |
-
|
1837 |
-
#, fuzzy
|
1838 |
-
#~ msgid "Total Published"
|
1839 |
-
#~ msgstr "Total de publicados"
|
1840 |
-
|
1841 |
-
#, fuzzy
|
1842 |
-
#~ msgid "Total Drafts"
|
1843 |
-
#~ msgstr "Total de rascunhos"
|
1844 |
-
|
1845 |
-
#~ msgid "Delete"
|
1846 |
-
#~ msgstr "Apagar"
|
1847 |
-
|
1848 |
-
#~ msgid ""
|
1849 |
-
#~ "Place the below code in your themes functions.php file to manually create "
|
1850 |
-
#~ "this custom post type."
|
1851 |
-
#~ msgstr ""
|
1852 |
-
#~ "Insira o código abaixo no ficheiro functions.php dos seus temas para "
|
1853 |
-
#~ "criar manualmente este tipo de artigo personalizado."
|
1854 |
-
|
1855 |
-
#~ msgid ""
|
1856 |
-
#~ "This is a <strong>BETA</strong> feature. Please <a href=\"https://github."
|
1857 |
-
#~ "com/WebDevStudios/custom-post-type-ui\">report bugs</a>."
|
1858 |
-
#~ msgstr ""
|
1859 |
-
#~ "Isto é um recurso <strong>BETA</strong>. Por favor <a href=\"https://"
|
1860 |
-
#~ "github.com/WebDevStudios/custom-post-type-ui\">reporte erros</a>."
|
1861 |
-
|
1862 |
-
#~ msgid "Additional Custom Post Types"
|
1863 |
-
#~ msgstr "Tipos de artigo personalizados adicionais"
|
1864 |
-
|
1865 |
-
#~ msgid "No additional post types found"
|
1866 |
-
#~ msgstr "Nenhum tipo de artigo adicional encontrado"
|
1867 |
-
|
1868 |
-
#~ msgid "Custom taxonomy deleted successfully"
|
1869 |
-
#~ msgstr "Taxonomia personalizada apagada com sucesso"
|
1870 |
-
|
1871 |
-
#~ msgid "Manage Custom Taxonomies"
|
1872 |
-
#~ msgstr "Gerir taxonomias personalizadas"
|
1873 |
-
|
1874 |
-
#~ msgid ""
|
1875 |
-
#~ "Deleting custom taxonomies does <strong>NOT</strong> delete any content "
|
1876 |
-
#~ "added to those taxonomies. You can easily recreate your taxonomies and "
|
1877 |
-
#~ "the content will still exist."
|
1878 |
-
#~ msgstr ""
|
1879 |
-
#~ "Apagar taxonomias personalizadas <strong>NÃO</strong> apagará quaisquer "
|
1880 |
-
#~ "conteúdos adicionados a essas taxonomias. Pode facilmente recriar as suas "
|
1881 |
-
#~ "taxonomias e o conteúdo continuará a existir."
|
1882 |
-
|
1883 |
-
#~ msgid "Attached Post Types"
|
1884 |
-
#~ msgstr "Tipos de artigos anexados"
|
1885 |
-
|
1886 |
-
#~ msgid ""
|
1887 |
-
#~ "Place the below code in your themes functions.php file to manually create "
|
1888 |
-
#~ "this custom taxonomy"
|
1889 |
-
#~ msgstr ""
|
1890 |
-
#~ "Insira o código abaixo no ficheiro functions.php dos seus temas para "
|
1891 |
-
#~ "criar manualmente esta taxonomia personalizada."
|
1892 |
-
|
1893 |
-
#~ msgid ""
|
1894 |
-
#~ "This is a <strong>BETA</strong> feature. Please <a href=\"http://"
|
1895 |
-
#~ "webdevstudios.com/support/forum/custom-post-type-ui/\">report bugs</a>."
|
1896 |
-
#~ msgstr ""
|
1897 |
-
#~ "Isto é um recurso <strong>BETA</strong>. Por favor <a href=\"http://"
|
1898 |
-
#~ "webdevstudios.com/support/forum/custom-post-type-ui/\">reporte erros</a>."
|
1899 |
-
|
1900 |
-
#~ msgid "Save Custom Post Type"
|
1901 |
-
#~ msgstr "Guardar tipo de artigo personalizado"
|
1902 |
-
|
1903 |
-
#~ msgid "Create Custom Post Type"
|
1904 |
-
#~ msgstr "Criar tipo de artigo personalizado"
|
1905 |
-
|
1906 |
-
#~ msgid "Save Custom Taxonomy"
|
1907 |
-
#~ msgstr "Guardar taxonomia personalizada"
|
1908 |
-
|
1909 |
-
#~ msgid "Create Custom Taxonomy"
|
1910 |
-
#~ msgstr "Criar taxonomia personalizada"
|
1911 |
-
|
1912 |
-
#~ msgid "Manage custom post types"
|
1913 |
-
#~ msgstr "Gerir tipos de artigo personalizados"
|
1914 |
-
|
1915 |
-
#~ msgid "Manage custom taxonomies"
|
1916 |
-
#~ msgstr "Gerir taxonomias personalizadas"
|
1917 |
-
|
1918 |
-
#~ msgid "Post type name is a required field."
|
1919 |
-
#~ msgstr "Nome do tipo de artigo é um campo obrigatório"
|
1920 |
-
|
1921 |
-
#~ msgid "Taxonomy name is a required field."
|
1922 |
-
#~ msgstr "Nome da taxonomia é um campo obrigatório."
|
1923 |
-
|
1924 |
-
#~ msgid "You must assign your custom taxonomy to at least one post type."
|
1925 |
-
#~ msgstr ""
|
1926 |
-
#~ "Tem que atribuir a sua taxonomia personalizada a pelo menos um tipo de "
|
1927 |
-
#~ "artigo."
|
1928 |
-
|
1929 |
-
#, fuzzy
|
1930 |
-
#~ msgid "Please doe not use quotes in your taxonomy slug or rewrite slug."
|
1931 |
-
#~ msgstr "Por favor não utilize aspas no URL da taxonomia ou "
|
1932 |
-
|
1933 |
-
#~ msgid "Edit Custom Post Type or Taxonomy"
|
1934 |
-
#~ msgstr "Editar tipo de artigo personalizado ou taxonomia"
|
1935 |
-
|
1936 |
-
#~ msgid "Reset"
|
1937 |
-
#~ msgstr "Repor"
|
1938 |
-
|
1939 |
-
#~ msgid "Create New Custom Post Type or Taxonomy"
|
1940 |
-
#~ msgstr "Criar novo tipo de artigo personalizado ou taxonomia"
|
1941 |
-
|
1942 |
-
#~ msgid ""
|
1943 |
-
#~ "If you are unfamiliar with the options below only fill out the "
|
1944 |
-
#~ "<strong>Post Type Name</strong> and <strong>Label</strong> fields and "
|
1945 |
-
#~ "check which meta boxes to support. The other settings are set to the "
|
1946 |
-
#~ "most common defaults for custom post types. Hover over the question mark "
|
1947 |
-
#~ "for more details."
|
1948 |
-
#~ msgstr ""
|
1949 |
-
#~ "Se não estiver familiarizado com as opções abaixo, preencha apenas os "
|
1950 |
-
#~ "campos <strong>Nome do tipo de artigo</strong> e <strong>Texto a mostrar</"
|
1951 |
-
#~ "strong> e seleccione as opções a suportar. Para as restantes definições "
|
1952 |
-
#~ "serão atribuídas as opções padrão para tipos de artigo personalizados. "
|
1953 |
-
#~ "Veja o ponto de interrogação para mais detalhes."
|
1954 |
-
|
1955 |
-
#~ msgid "Post Type Name"
|
1956 |
-
#~ msgstr "Nome do tipo de artigo"
|
1957 |
-
|
1958 |
-
#~ msgid ""
|
1959 |
-
#~ "Max 20 characters, can not contain capital letters or spaces. Reserved "
|
1960 |
-
#~ "post types: post, page, attachment, revision, nav_menu_item."
|
1961 |
-
#~ msgstr ""
|
1962 |
-
#~ "Máximo 20 caracteres, não pode conter maiúsculas ou espaços. Tipos de "
|
1963 |
-
#~ "artigos reservados: post, page, attachment, revision, nav_menu_item."
|
1964 |
-
|
1965 |
-
#~ msgid "Post type label. Used in the admin menu for displaying post types."
|
1966 |
-
#~ msgstr ""
|
1967 |
-
#~ "Texto a mostrar para o tipo de artigo. Utilizado no menu de administração "
|
1968 |
-
#~ "para mostrar os tipos de artigo."
|
1969 |
-
|
1970 |
-
#~ msgid "Advanced Label Options"
|
1971 |
-
#~ msgstr "Opções avançadas do texto a mostrar"
|
1972 |
-
|
1973 |
-
#~ msgid "Advanced Options"
|
1974 |
-
#~ msgstr "Opções avançadas"
|
1975 |
-
|
1976 |
-
#~ msgid "(e.g. Search Movies)"
|
1977 |
-
#~ msgstr "(p. ex. Pesquisar filmes)"
|
1978 |
-
|
1979 |
-
#~ msgid "(e.g. No Movies Found)"
|
1980 |
-
#~ msgstr "(p. ex. Nenhum fime encontrado)"
|
1981 |
-
|
1982 |
-
#~ msgid ""
|
1983 |
-
#~ "If you are unfamiliar with the options below only fill out the "
|
1984 |
-
#~ "<strong>Taxonomy Name</strong> and <strong>Post Type Name</strong> "
|
1985 |
-
#~ "fields. The other settings are set to the most common defaults for "
|
1986 |
-
#~ "custom taxonomies. Hover over the question mark for more details."
|
1987 |
-
#~ msgstr ""
|
1988 |
-
#~ "Se não estiver familiarizado com as opções abaixo, preencha apenas os "
|
1989 |
-
#~ "campos <strong>Nome da taxonomia</strong> e <strong>Nome do tipo de "
|
1990 |
-
#~ "artigo</strong>. Para as restantes definições serão atribuídas as opções "
|
1991 |
-
#~ "padrão para taxonomias personalizadas. Veja o ponto de interrogação para "
|
1992 |
-
#~ "mais detalhes."
|
1993 |
-
|
1994 |
-
#~ msgid "Taxonomy Name"
|
1995 |
-
#~ msgstr "Nome da taxonomia"
|
1996 |
-
|
1997 |
-
#~ msgid ""
|
1998 |
-
#~ "Note: Changing the name, after adding terms to the taxonomy, will not "
|
1999 |
-
#~ "update the terms in the database."
|
2000 |
-
#~ msgstr ""
|
2001 |
-
#~ "Nota: alterar o nome depois de adicionar termos à taxonomia, não "
|
2002 |
-
#~ "actualizará os termos na base de dados."
|
2003 |
-
|
2004 |
-
#~ msgid ""
|
2005 |
-
#~ "Max 32 characters, should only contain alphanumeric lowercase characters "
|
2006 |
-
#~ "and underscores in place of spaces."
|
2007 |
-
#~ msgstr ""
|
2008 |
-
#~ "Máximo 32 caracteres, apenas pode conter caracteres alfanuméricos "
|
2009 |
-
#~ "minúsculos e underscores em vez de espaços."
|
2010 |
-
|
2011 |
-
#~ msgid ""
|
2012 |
-
#~ "Taxonomy label. Used in the admin menu for displaying custom taxonomy."
|
2013 |
-
#~ msgstr ""
|
2014 |
-
#~ "Texto a mostrar para a taxonomia. Utilizado no menu de administração para "
|
2015 |
-
#~ "mostrar a taxonomia personalizada."
|
2016 |
-
|
2017 |
-
#~ msgid "(e.g. movies)"
|
2018 |
-
#~ msgstr "(p. ex. filmes)"
|
2019 |
-
|
2020 |
-
#~ msgid "Update Item"
|
2021 |
-
#~ msgstr "Actualizar item"
|
2022 |
-
|
2023 |
-
#~ msgid "(e.g. Update Actor)"
|
2024 |
-
#~ msgstr "(p. ex. Actualizar actor)"
|
2025 |
-
|
2026 |
-
#~ msgid "\"Use the option below to explicitly set \"supports\" to false."
|
2027 |
-
#~ msgstr ""
|
2028 |
-
#~ "\"Utilize a opção abaixo para explicitamente definir \"suporte\" como "
|
2029 |
-
#~ "falso."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/cpt-plugin-tr_TR.mo
DELETED
Binary file
|
languages/custom-post-type-ui-de_DE.mo
ADDED
Binary file
|
languages/{cpt-plugin-de_DE.po → custom-post-type-ui-de_DE.po}
RENAMED
@@ -1,10 +1,10 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: Custom Post Type UI 1.
|
4 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/custom-post-type-"
|
5 |
"ui\n"
|
6 |
-
"POT-Creation-Date: 2015-
|
7 |
-
"PO-Revision-Date: 2015-
|
8 |
"Last-Translator: Michael Beckwith <michael.d.beckwith@gmail.com>\n"
|
9 |
"Language-Team: Pascal Kläres & Ralf Koller <pascal.klaeres@gmail.com & r."
|
10 |
"koller@gmail.com>\n"
|
@@ -12,7 +12,7 @@ msgstr ""
|
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
-
"X-Generator: Poedit 1.8.
|
16 |
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
17 |
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
18 |
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
@@ -24,48 +24,61 @@ msgstr ""
|
|
24 |
"X-Poedit-SearchPathExcluded-0: tests\n"
|
25 |
"X-Poedit-SearchPathExcluded-1: *.js\n"
|
26 |
|
27 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
msgid "Custom Post Types"
|
29 |
msgstr "Custom Post Types"
|
30 |
|
31 |
-
#: custom-post-type-ui.php:
|
32 |
msgid "CPT UI"
|
33 |
msgstr "CPT UI"
|
34 |
|
35 |
-
#: custom-post-type-ui.php:
|
36 |
msgid "Add/Edit Post Types"
|
37 |
msgstr "Post Types hinzufügen/editieren"
|
38 |
|
39 |
-
#: custom-post-type-ui.php:
|
40 |
msgid "Add/Edit Taxonomies"
|
41 |
msgstr "Taxonomien hinzufügen/editieren"
|
42 |
|
43 |
-
#: custom-post-type-ui.php:
|
44 |
msgid "Registered Types and Taxes"
|
45 |
msgstr "Registrierte Post Types und Taxonomien"
|
46 |
|
47 |
-
#: custom-post-type-ui.php:
|
48 |
msgid "Registered Types/Taxes"
|
49 |
msgstr "Registrierte Post Types/Taxonomien"
|
50 |
|
51 |
-
#: custom-post-type-ui.php:
|
52 |
msgid "Import/Export"
|
53 |
msgstr "Import/Export"
|
54 |
|
55 |
-
#: custom-post-type-ui.php:
|
56 |
msgid "Help/Support"
|
57 |
msgstr "Hilfe/Support"
|
58 |
|
59 |
-
#: custom-post-type-ui.php:
|
60 |
msgid "About CPT UI"
|
61 |
msgstr "Über CPT UI"
|
62 |
|
63 |
#. Plugin Name of the plugin/theme
|
64 |
-
#: custom-post-type-ui.php:
|
65 |
msgid "Custom Post Type UI"
|
66 |
msgstr "Custom Post Type UI"
|
67 |
|
68 |
-
#: custom-post-type-ui.php:
|
69 |
msgid ""
|
70 |
"Thank you for choosing Custom Post Type UI. We hope that your experience "
|
71 |
"with our plugin provides efficiency and speed in creating post types and "
|
@@ -73,62 +86,102 @@ msgid ""
|
|
73 |
msgstr ""
|
74 |
"Danke dass Du Dich für Custom Post Type UI entschieden hast. Wir hoffen, "
|
75 |
"dass Du mit Hilfe unseres Plugins auf eine einfache und schnelle Weise neue "
|
76 |
-
"Post Types und Taxonomien erstellen kannst sowie
|
77 |
"organisieren, ohne dabei eine Zeile Code schreiben zu müssen."
|
78 |
|
79 |
-
#: custom-post-type-ui.php:
|
80 |
-
|
81 |
-
|
|
|
82 |
|
83 |
-
#: custom-post-type-ui.php:
|
|
|
|
|
|
|
|
|
84 |
msgid ""
|
85 |
-
"
|
86 |
-
"
|
87 |
-
"have now added support for migrating all posts within the old post type to "
|
88 |
-
"the new post type you renamed it to."
|
89 |
msgstr ""
|
90 |
-
"Bisher war es so, sobald Du den Kurzlink eines Post Types verändert hast, "
|
91 |
-
"verlorst Du den direkten Zugriff auf alle seine Beiträge und musstest diese "
|
92 |
-
"anderweitig wiederherstellen. Wir haben jetzt die Unterstützung für die "
|
93 |
-
"Migration von Beiträgen aus dem alten Post Type in den neu umbenannten "
|
94 |
-
"hinzugefügt."
|
95 |
|
96 |
-
#: custom-post-type-ui.php:
|
97 |
-
msgid "
|
98 |
-
msgstr "
|
99 |
|
100 |
-
#: custom-post-type-ui.php:
|
101 |
msgid ""
|
102 |
-
"
|
103 |
-
"
|
104 |
-
"post types and taxonomies."
|
105 |
msgstr ""
|
106 |
-
"Nach dem Feedback zu den Änderungen in 1.0.x, haben wir die "
|
107 |
-
"Benutzeroberfläche weiter vereinfacht um die Anzahl der notwendigen "
|
108 |
-
"Mausklicks zur Verwaltung Deiner Post Types und Taxonomien weiter zu "
|
109 |
-
"minimieren."
|
110 |
|
111 |
-
#: custom-post-type-ui.php:
|
112 |
-
msgid "
|
113 |
-
msgstr "
|
114 |
|
115 |
-
#: custom-post-type-ui.php:
|
116 |
msgid ""
|
117 |
-
"
|
118 |
-
"
|
|
|
119 |
msgstr ""
|
120 |
-
"Wir bringen die Listendarstellung aller durch CPT UI registrierten Post "
|
121 |
-
"Types und Taxonomien zurück, damit Du leichter den Überblick behältst."
|
122 |
|
123 |
-
#: custom-post-type-ui.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
msgid "Help Support This Plugin!"
|
125 |
msgstr "Unterstütze die Entwicklung dieses Plugins!"
|
126 |
|
127 |
-
#: custom-post-type-ui.php:
|
128 |
msgid "Professional WordPress<br />Third Edition"
|
129 |
msgstr "Professional WordPress<br />(Dritte Auflage)"
|
130 |
|
131 |
-
#: custom-post-type-ui.php:
|
|
|
|
|
|
|
|
|
|
|
132 |
msgid ""
|
133 |
"The leading book on WordPress design and development! Brand new third "
|
134 |
"edition!"
|
@@ -136,210 +189,230 @@ msgstr ""
|
|
136 |
"Das führende Buch zu WordPress Design und Entwicklung! Die brandneue dritte "
|
137 |
"Auflage!"
|
138 |
|
139 |
-
#: custom-post-type-ui.php:
|
140 |
msgid "Professional WordPress<br />Plugin Development"
|
141 |
msgstr "Professional WordPress<br />Plugin Development"
|
142 |
|
143 |
-
#: custom-post-type-ui.php:
|
|
|
|
|
|
|
|
|
|
|
144 |
msgid "Highest rated WordPress development book on Amazon!"
|
145 |
msgstr ""
|
146 |
"Das am besten bewertete Buch zum Thema<br /> WordPress-Entwicklung auf "
|
147 |
"Amazon!"
|
148 |
|
149 |
-
#: custom-post-type-ui.php:
|
150 |
msgid "PayPal Donation"
|
151 |
msgstr "PayPal Spende"
|
152 |
|
153 |
-
#: custom-post-type-ui.php:
|
154 |
msgid "PayPal - The safer, easier way to pay online!"
|
155 |
msgstr "PayPal - Der sichere und einfache Weg online zu bezahlen!"
|
156 |
|
157 |
-
#: custom-post-type-ui.php:
|
158 |
msgid "Please donate to the development of Custom Post Type UI:"
|
159 |
msgstr "Bitte unterstütze die Entwicklung <br />von Custom Post Type UI:"
|
160 |
|
161 |
-
#: custom-post-type-ui.php:
|
162 |
#, php-format
|
163 |
msgid "%s version %s by %s"
|
164 |
msgstr "%s Version %s von den %s"
|
165 |
|
166 |
-
#: custom-post-type-ui.php:
|
167 |
msgid "Please Report Bugs"
|
168 |
msgstr "Bitte Fehler melden"
|
169 |
|
170 |
-
#: custom-post-type-ui.php:
|
171 |
msgid "Follow on Twitter:"
|
172 |
msgstr "Auf Twitter folgen:"
|
173 |
|
174 |
-
#: custom-post-type-ui.php:
|
175 |
msgid "Manage Taxonomies"
|
176 |
msgstr "Verwalte Taxonomien"
|
177 |
|
178 |
-
#: custom-post-type-ui.php:
|
179 |
msgid "Manage Post Types"
|
180 |
msgstr "Verwalte Post Types"
|
181 |
|
182 |
-
#: custom-post-type-ui.php:
|
183 |
msgid "Add New Post Type"
|
184 |
msgstr "Neuen Post Type hinzufügen"
|
185 |
|
186 |
-
#: custom-post-type-ui.php:
|
187 |
msgid "Edit Post Types"
|
188 |
msgstr "Post Types bearbeiten"
|
189 |
|
190 |
-
#: custom-post-type-ui.php:
|
191 |
msgid "Add New Taxonomy"
|
192 |
msgstr "Neue Taxonomie hinzufügen"
|
193 |
|
194 |
-
#: custom-post-type-ui.php:
|
195 |
msgid "Edit Taxonomies"
|
196 |
msgstr "Taxonomien bearbeiten"
|
197 |
|
198 |
-
#: custom-post-type-ui.php:
|
199 |
-
#: inc/listings.php:224
|
200 |
msgid "Post Types"
|
201 |
msgstr "Post Types"
|
202 |
|
203 |
-
#: custom-post-type-ui.php:
|
204 |
-
#: inc/listings.php:
|
205 |
msgid "Taxonomies"
|
206 |
msgstr "Taxonomien"
|
207 |
|
208 |
-
#: custom-post-type-ui.php:
|
209 |
msgid "Get Code"
|
210 |
msgstr "Code erhalten"
|
211 |
|
212 |
-
#: custom-post-type-ui.php:
|
213 |
-
|
214 |
-
|
|
|
|
|
|
|
215 |
msgid "Settings"
|
216 |
msgstr "Einstellungen"
|
217 |
|
218 |
-
#: custom-post-type-ui.php:
|
219 |
msgid "Help"
|
220 |
msgstr "Hilfe"
|
221 |
|
222 |
-
#: custom-post-type-ui.php:
|
223 |
#, php-format
|
224 |
msgid "%s has been successfully added"
|
225 |
msgstr "%s wurde erfolgreich hinzugefügt"
|
226 |
|
227 |
-
#: custom-post-type-ui.php:
|
228 |
#, php-format
|
229 |
msgid "%s has failed to be added"
|
230 |
msgstr "%s konnte nicht hinzugefügt werden"
|
231 |
|
232 |
-
#: custom-post-type-ui.php:
|
233 |
#, php-format
|
234 |
msgid "%s has been successfully updated"
|
235 |
msgstr "%s wurde erfolgreich aktualisiert"
|
236 |
|
237 |
-
#: custom-post-type-ui.php:
|
238 |
#, php-format
|
239 |
msgid "%s has failed to be updated"
|
240 |
msgstr "%s konnte nicht aktualisiert werden"
|
241 |
|
242 |
-
#: custom-post-type-ui.php:
|
243 |
#, php-format
|
244 |
msgid "%s has been successfully deleted"
|
245 |
msgstr "%s wurde erfolgreich gelöscht"
|
246 |
|
247 |
-
#: custom-post-type-ui.php:
|
248 |
#, php-format
|
249 |
msgid "%s has failed to be deleted"
|
250 |
msgstr "%s konnte nicht gelöscht werden"
|
251 |
|
252 |
-
#: custom-post-type-ui.php:
|
253 |
#, php-format
|
254 |
msgid "%s has been successfully imported"
|
255 |
msgstr "%s wurde erfolgreich importiert"
|
256 |
|
257 |
-
#: custom-post-type-ui.php:
|
258 |
#, php-format
|
259 |
msgid "%s has failed to be imported"
|
260 |
msgstr "%s konnte nicht importiert werden"
|
261 |
|
262 |
-
#: custom-post-type-ui.php:
|
263 |
#, php-format
|
264 |
msgid "Add new %s"
|
265 |
msgstr "Neue %s hinzufügen"
|
266 |
|
267 |
-
#: custom-post-type-ui.php:
|
|
|
268 |
#, php-format
|
269 |
msgid "Edit %s"
|
270 |
msgstr "%s bearbeiten"
|
271 |
|
272 |
-
#: custom-post-type-ui.php:
|
273 |
#, php-format
|
274 |
msgid "New %s"
|
275 |
msgstr "%s hinzufügen"
|
276 |
|
277 |
-
#: custom-post-type-ui.php:
|
278 |
#, php-format
|
279 |
msgid "View %s"
|
280 |
msgstr "%s anzeigen"
|
281 |
|
282 |
-
#: custom-post-type-ui.php:
|
283 |
#, php-format
|
284 |
msgid "All %s"
|
285 |
msgstr "Alle %s"
|
286 |
|
287 |
-
#: custom-post-type-ui.php:
|
288 |
#, php-format
|
289 |
msgid "Search %s"
|
290 |
msgstr "%s durchsuchen"
|
291 |
|
292 |
-
#: custom-post-type-ui.php:
|
293 |
#, php-format
|
294 |
msgid "No %s found."
|
295 |
msgstr "Keine %s gefunden."
|
296 |
|
297 |
-
#: custom-post-type-ui.php:
|
298 |
#, php-format
|
299 |
msgid "No %s found in trash."
|
300 |
msgstr "Keine %s im Papierkorb gefunden."
|
301 |
|
302 |
-
#: custom-post-type-ui.php:
|
303 |
#, php-format
|
304 |
msgid "Popular %s"
|
305 |
msgstr "Beliebte %s"
|
306 |
|
307 |
-
#: custom-post-type-ui.php:
|
308 |
#, php-format
|
309 |
msgid "Parent %s"
|
310 |
msgstr "Übergeordnet %s"
|
311 |
|
312 |
-
#: custom-post-type-ui.php:
|
313 |
#, php-format
|
314 |
msgid "Parent %s:"
|
315 |
msgstr "Übergeordnet %s:"
|
316 |
|
317 |
-
#: custom-post-type-ui.php:
|
318 |
#, php-format
|
319 |
msgid "Update %s"
|
320 |
msgstr "%s aktualisieren"
|
321 |
|
322 |
-
#: custom-post-type-ui.php:
|
323 |
#, php-format
|
324 |
msgid "New %s name"
|
325 |
msgstr "Neuer %s Name"
|
326 |
|
327 |
-
#: custom-post-type-ui.php:
|
328 |
#, php-format
|
329 |
msgid "Separate %s with commas"
|
330 |
msgstr "%s mit Kommas trennen"
|
331 |
|
332 |
-
#: custom-post-type-ui.php:
|
333 |
#, php-format
|
334 |
msgid "Add or remove %s"
|
335 |
msgstr "%s hinzufügen oder entfernen"
|
336 |
|
337 |
-
#: custom-post-type-ui.php:
|
338 |
#, php-format
|
339 |
msgid "Choose from the most used %s"
|
340 |
msgstr "Aus den am häufigsten verwendeten %s auswählen"
|
341 |
|
342 |
-
#: inc/import_export.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
343 |
msgid ""
|
344 |
"If you are wanting to migrate registered post types or taxonomies from this "
|
345 |
"site to another, that will also use Custom Post Type UI, use the import and "
|
@@ -352,32 +425,35 @@ msgstr ""
|
|
352 |
"Rücken zukehren wollen dann folge bitte den Informationen im \"Code "
|
353 |
"erhalten“-Reiter."
|
354 |
|
355 |
-
#: inc/import_export.php:
|
356 |
msgid "NOTE"
|
357 |
msgstr "Anmerkung"
|
358 |
|
359 |
-
#: inc/import_export.php:
|
360 |
-
|
|
|
|
|
|
|
361 |
msgstr ""
|
362 |
"Es werden nur die Einstellungen exportiert, nicht die dazugehörigen Beiträge."
|
363 |
|
364 |
-
#: inc/import_export.php:
|
365 |
msgid "Import Post Types"
|
366 |
msgstr "Post Types importieren"
|
367 |
|
368 |
-
#: inc/import_export.php:
|
369 |
msgid "Paste content here."
|
370 |
msgstr "Inhalt hier einfügen."
|
371 |
|
372 |
-
#: inc/import_export.php:
|
373 |
msgid "Note:"
|
374 |
msgstr "Anmerkung:"
|
375 |
|
376 |
-
#: inc/import_export.php:
|
377 |
msgid "Importing will overwrite previous registered settings."
|
378 |
msgstr "Der Import wird die aktuell aktiven Einstellungen überschreiben."
|
379 |
|
380 |
-
#: inc/import_export.php:
|
381 |
msgid ""
|
382 |
"To import post types from a different WordPress site, paste the exported "
|
383 |
"content from that site and click the \"Import\" button."
|
@@ -385,19 +461,19 @@ msgstr ""
|
|
385 |
"Um die Post Types einer anderen WordPress-Seite zu importieren, füge deren "
|
386 |
"exportierte Inhalte ein und klicke den \"Importieren“-Button."
|
387 |
|
388 |
-
#: inc/import_export.php:
|
389 |
msgid "Import"
|
390 |
msgstr "Importieren"
|
391 |
|
392 |
-
#: inc/import_export.php:
|
393 |
msgid "Export Post Types"
|
394 |
msgstr "Post Types exportieren"
|
395 |
|
396 |
-
#: inc/import_export.php:
|
397 |
msgid "No post types registered yet."
|
398 |
msgstr "Es wurden noch keine Post Types erstellt."
|
399 |
|
400 |
-
#: inc/import_export.php:
|
401 |
msgid ""
|
402 |
"To copy the system info, click below then press Ctrl + C (PC) or Cmd + C "
|
403 |
"(Mac)."
|
@@ -405,7 +481,7 @@ msgstr ""
|
|
405 |
"Um die System-Informationen zu kopieren, klicke unten und drücken dann Ctrl "
|
406 |
"+ C am PC oder Cmd + C am Mac."
|
407 |
|
408 |
-
#: inc/import_export.php:
|
409 |
msgid ""
|
410 |
"Use the content above to import current post types into a different "
|
411 |
"WordPress site. You can also use this to simply back up your post type "
|
@@ -415,11 +491,11 @@ msgstr ""
|
|
415 |
"Post Types in eine andere WordPress Webseite zu importieren. Du kannst dies "
|
416 |
"ebenso einfach dazu benutzen um Deine Post Type-Einstellungen zu sichern."
|
417 |
|
418 |
-
#: inc/import_export.php:
|
419 |
msgid "Import Taxonomies"
|
420 |
msgstr "Taxonomien importieren"
|
421 |
|
422 |
-
#: inc/import_export.php:
|
423 |
msgid ""
|
424 |
"To import taxonomies from a different WordPress site, paste the exported "
|
425 |
"content from that site and click the \"Import\" button."
|
@@ -428,15 +504,15 @@ msgstr ""
|
|
428 |
"die Zwischenablage die exportierten Inhalte dieser Seite ein und klicke den "
|
429 |
"\"Importieren“-Button."
|
430 |
|
431 |
-
#: inc/import_export.php:
|
432 |
msgid "Export Taxonomies"
|
433 |
msgstr "Taxonomien exportieren"
|
434 |
|
435 |
-
#: inc/import_export.php:
|
436 |
msgid "No taxonomies registered yet."
|
437 |
msgstr "Es wurden noch keine Taxonomien definiert."
|
438 |
|
439 |
-
#: inc/import_export.php:
|
440 |
msgid ""
|
441 |
"Use the content above to import current taxonomies into a different "
|
442 |
"WordPress site. You can also use this to simply back up your taxonomy "
|
@@ -446,79 +522,125 @@ msgstr ""
|
|
446 |
"Taxonomien in eine andere WordPress Webseite zu importieren. Du kannst dies "
|
447 |
"ebenso einfach dazu benutzen um Deine Taxonomie-Einstellungen zu sichern."
|
448 |
|
449 |
-
#: inc/import_export.php:
|
450 |
msgid "Get Post Type and Taxonomy Code"
|
451 |
msgstr "Erhalte Post Type- und Taxonomie-Code"
|
452 |
|
453 |
-
#: inc/import_export.php:
|
454 |
msgid "All CPT UI Post Types"
|
455 |
msgstr "Alle CPT UI-Post Types"
|
456 |
|
457 |
-
#: inc/import_export.php:
|
|
|
458 |
msgid "Copy/paste the code below into your functions.php file."
|
459 |
msgstr ""
|
460 |
"Kopiere den Code in die Zwischenablage und füge ihn im Anschluss in Deine "
|
461 |
"functions.php-Datei ein."
|
462 |
|
463 |
-
#: inc/import_export.php:
|
|
|
|
|
|
|
|
|
|
|
464 |
msgid "All CPT UI Taxonomies"
|
465 |
msgstr "Alle CPT UI-Taxonomien"
|
466 |
|
467 |
-
#: inc/import_export.php:
|
468 |
-
|
469 |
-
|
|
|
470 |
|
471 |
-
#: inc/import_export.php:
|
472 |
-
msgid "
|
473 |
-
msgstr "
|
474 |
|
475 |
-
#: inc/import_export.php:
|
476 |
-
msgid "
|
477 |
-
msgstr "
|
478 |
|
479 |
#: inc/listings.php:10
|
480 |
msgid "Post Types and Taxonomies registered by Custom Post Type UI."
|
481 |
msgstr "In Custom Post Type UI registrierte Post Types und Taxonomien."
|
482 |
|
483 |
-
#: inc/listings.php:
|
484 |
#, php-format
|
485 |
msgid "Total count: %d"
|
486 |
msgstr "Anzahl: %d"
|
487 |
|
488 |
-
#: inc/listings.php:
|
489 |
msgid "Post Type"
|
490 |
msgstr "Post Type"
|
491 |
|
492 |
-
#: inc/listings.php:
|
493 |
msgid "Supports"
|
494 |
msgstr "Unterstützt"
|
495 |
|
496 |
-
#: inc/listings.php:
|
497 |
-
#: inc/
|
498 |
msgid "Labels"
|
499 |
msgstr "Beschriftungen"
|
500 |
|
501 |
-
#: inc/listings.php:
|
502 |
-
|
503 |
-
|
|
|
504 |
|
505 |
-
#: inc/listings.php:
|
506 |
msgid "View frontend archive"
|
507 |
msgstr "Frontend-Archiv anzeigen"
|
508 |
|
509 |
-
#: inc/listings.php:
|
510 |
msgid "No custom labels to display"
|
511 |
msgstr "Keine benutzerdefinierten Beschriftungen zum Anzeigen"
|
512 |
|
513 |
-
#: inc/listings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
514 |
msgid "Taxonomy"
|
515 |
msgstr "Taxonomie"
|
516 |
|
517 |
-
#: inc/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
518 |
msgid "Are you sure you want to delete this?"
|
519 |
msgstr "Bist Du sicher, dass Du dies löschen möchtest?"
|
520 |
|
521 |
-
#: inc/post-types.php:
|
522 |
msgid ""
|
523 |
"DO NOT EDIT the post type slug unless necessary. Changing that value "
|
524 |
"registers a new post type entry for your install."
|
@@ -527,7 +649,7 @@ msgstr ""
|
|
527 |
"notwendig ist. Die Änderung des Namens registriert einen neue Post Type "
|
528 |
"Eintrag für Deine Installation."
|
529 |
|
530 |
-
#: inc/post-types.php:
|
531 |
msgid ""
|
532 |
"Use appropriate checkbox above save/delete buttons if you wish to change "
|
533 |
"slugs and update post types for existing posts."
|
@@ -536,23 +658,23 @@ msgstr ""
|
|
536 |
"Kurzlink ändern willst und den Post Type für bereits existierende Beiträge "
|
537 |
"anpassen willst."
|
538 |
|
539 |
-
#: inc/post-types.php:
|
540 |
msgid "Select: "
|
541 |
-
msgstr "Auswählen"
|
542 |
|
543 |
-
#: inc/post-types.php:
|
544 |
msgid "Select"
|
545 |
msgstr "Auswählen"
|
546 |
|
547 |
-
#: inc/post-types.php:
|
548 |
msgid "Post Type Slug"
|
549 |
msgstr "Post Type-Kurzlink"
|
550 |
|
551 |
-
#: inc/post-types.php:
|
552 |
msgid "(e.g. movie)"
|
553 |
msgstr "(z. B. film)"
|
554 |
|
555 |
-
#: inc/post-types.php:
|
556 |
msgid ""
|
557 |
"The post type name. Used to retrieve custom post type content. Should be "
|
558 |
"short and unique"
|
@@ -560,33 +682,33 @@ msgstr ""
|
|
560 |
"Der Post Type-Name. Er wird zum Abrufen der Custom Post Type-Inhalte "
|
561 |
"verwendet. Er sollte kurz, prägnant und ein Unikat sein."
|
562 |
|
563 |
-
#: inc/post-types.php:
|
564 |
msgid "Plural Label"
|
565 |
msgstr "Beschriftung (Plural)"
|
566 |
|
567 |
-
#: inc/post-types.php:
|
568 |
msgid "(e.g. Movies)"
|
569 |
msgstr "(z. B. Filme)"
|
570 |
|
571 |
-
#: inc/post-types.php:
|
572 |
-
#: inc/post-types.php:
|
573 |
-
#: inc/post-types.php:
|
574 |
-
#: inc/post-types.php:
|
575 |
-
#: inc/post-types.php:
|
576 |
msgid "Post type label. Used in the admin menu for displaying post types."
|
577 |
msgstr ""
|
578 |
"Custom Post Type-Beschriftung (Plural). Sie wird im Admin-Menü dazu "
|
579 |
"verwendet den Post Type anzuzeigen."
|
580 |
|
581 |
-
#: inc/post-types.php:
|
582 |
msgid "Singular Label"
|
583 |
msgstr "Beschriftung (Singular)"
|
584 |
|
585 |
-
#: inc/post-types.php:
|
586 |
msgid "(e.g. Movie)"
|
587 |
msgstr "(z. B. Film)"
|
588 |
|
589 |
-
#: inc/post-types.php:
|
590 |
msgid ""
|
591 |
"Custom Post Type Singular label. Used in WordPress when a singular label is "
|
592 |
"needed."
|
@@ -594,11 +716,11 @@ msgstr ""
|
|
594 |
"Custom Post Type-Beschriftung (Singular). Wird in WordPress verwendet wenn "
|
595 |
"Beschriftungen in der Einzahl benötigt werden."
|
596 |
|
597 |
-
#: inc/post-types.php:
|
598 |
msgid "Description"
|
599 |
msgstr "Beschreibung"
|
600 |
|
601 |
-
#: inc/post-types.php:
|
602 |
msgid ""
|
603 |
"Custom Post Type Description. Describe what your custom post type is used "
|
604 |
"for."
|
@@ -606,34 +728,34 @@ msgstr ""
|
|
606 |
"Custom Post Type-Beschreibung. Beschreibt für was der Custom Post Type "
|
607 |
"verwendet wird."
|
608 |
|
609 |
-
#: inc/post-types.php:
|
610 |
msgid "Migrate posts to newly renamed post type?"
|
611 |
msgstr ""
|
612 |
"Sollen die Beiträge in den neuen umbenannten Post Type übertragen werden?"
|
613 |
|
614 |
-
#: inc/post-types.php:
|
615 |
msgid "Check this to migrate posts if and when renaming your post type."
|
616 |
msgstr ""
|
617 |
"Hake dies an um Beiträge zu übertragen im Falle dessen dass Du Deinen Post "
|
618 |
"Type umbenennen willst."
|
619 |
|
620 |
-
#: inc/post-types.php:
|
621 |
msgid "Save Post Type"
|
622 |
msgstr "Post Type speichern"
|
623 |
|
624 |
-
#: inc/post-types.php:
|
625 |
msgid "Delete Post Type"
|
626 |
msgstr "Post Type löschen"
|
627 |
|
628 |
-
#: inc/post-types.php:
|
629 |
msgid "Add Post Type"
|
630 |
msgstr "Post Type hinzufügen"
|
631 |
|
632 |
-
#: inc/post-types.php:
|
633 |
msgid "Starter Notes"
|
634 |
msgstr "Tips für Einsteiger"
|
635 |
|
636 |
-
#: inc/post-types.php:
|
637 |
#, php-format
|
638 |
msgid ""
|
639 |
"Post Type names should have %smax 20 characters%s, and only contain "
|
@@ -647,7 +769,7 @@ msgstr ""
|
|
647 |
"Reservierte und schon vergebene Post Type-Namen sind post, page, attachment, "
|
648 |
"revision, nav_menu_item."
|
649 |
|
650 |
-
#: inc/post-types.php:
|
651 |
#, php-format
|
652 |
msgid ""
|
653 |
"If you are unfamiliar with the advanced post type settings, just fill in the "
|
@@ -663,7 +785,7 @@ msgstr ""
|
|
663 |
"erstellt. Für weitergehende Informationen fahre mit dem Mauszeiger über die "
|
664 |
"roten Fragezeichen."
|
665 |
|
666 |
-
#: inc/post-types.php:
|
667 |
#, php-format
|
668 |
msgid ""
|
669 |
"Deleting custom post types will %sNOT%s delete any content into the database "
|
@@ -674,251 +796,313 @@ msgstr ""
|
|
674 |
"der Datenbank. Du kannst Deine Post Types leicht erneut erstellen und die "
|
675 |
"bereits eingegebenen Inhalte sind wieder sicht- und bearbeitbar."
|
676 |
|
677 |
-
#: inc/post-types.php:
|
678 |
msgid "Menu Name"
|
679 |
msgstr "Menü-Name"
|
680 |
|
681 |
-
#: inc/post-types.php:
|
682 |
msgid "Custom menu name for your custom post type."
|
683 |
msgstr "Benutzerdefinierter Menü-Name für Deinen Custom Post Type."
|
684 |
|
685 |
-
#: inc/post-types.php:
|
686 |
msgid "(e.g. My Movies)"
|
687 |
msgstr "(z. B. Mein Film)"
|
688 |
|
689 |
-
#: inc/post-types.php:
|
690 |
msgid "All Items"
|
691 |
msgstr "Alle Einträge"
|
692 |
|
693 |
-
#: inc/post-types.php:
|
694 |
msgid "(e.g. All Movies)"
|
695 |
msgstr "(z. B. Alle Filme)"
|
696 |
|
697 |
-
#: inc/post-types.php:
|
698 |
msgid "Add New"
|
699 |
msgstr "Neu"
|
700 |
|
701 |
-
#: inc/post-types.php:
|
702 |
msgid "(e.g. Add New)"
|
703 |
msgstr "(z. B. Neuen hinzufügen)"
|
704 |
|
705 |
-
#: inc/post-types.php:
|
706 |
msgid "Add New Item"
|
707 |
msgstr "Neuen Eintrag erstellen"
|
708 |
|
709 |
-
#: inc/post-types.php:
|
710 |
msgid "(e.g. Add New Movie)"
|
711 |
msgstr "(z. B. Neuen Film hinzufügen)"
|
712 |
|
713 |
-
#: inc/post-types.php:
|
|
|
|
|
|
|
|
|
714 |
msgid "(e.g. Edit)"
|
715 |
msgstr "(z. B. Bearbeiten)"
|
716 |
|
717 |
-
#: inc/post-types.php:
|
718 |
msgid "Edit Item"
|
719 |
msgstr "Eintrag bearbeiten"
|
720 |
|
721 |
-
#: inc/post-types.php:
|
722 |
msgid "(e.g. Edit Movie)"
|
723 |
msgstr "(z. B. Film bearbeiten)"
|
724 |
|
725 |
-
#: inc/post-types.php:
|
726 |
msgid "New Item"
|
727 |
msgstr "Neuer Eintrag"
|
728 |
|
729 |
-
#: inc/post-types.php:
|
730 |
msgid "(e.g. New Movie)"
|
731 |
msgstr "(z. B. Neuer Film)"
|
732 |
|
733 |
-
#: inc/post-types.php:
|
734 |
msgid "View"
|
735 |
msgstr "Anzeigen"
|
736 |
|
737 |
-
#: inc/post-types.php:
|
738 |
msgid "(e.g. View)"
|
739 |
msgstr "(z. B. Anzeigen)"
|
740 |
|
741 |
-
#: inc/post-types.php:
|
742 |
msgid "View Item"
|
743 |
msgstr "Eintrag anzeigen"
|
744 |
|
745 |
-
#: inc/post-types.php:
|
746 |
msgid "(e.g. View Movie)"
|
747 |
msgstr "(z. B. Film anzeigen)"
|
748 |
|
749 |
-
#: inc/post-types.php:
|
750 |
msgid "Search Item"
|
751 |
msgstr "Eintrag suchen"
|
752 |
|
753 |
-
#: inc/post-types.php:
|
754 |
msgid "(e.g. Search Movie)"
|
755 |
msgstr "(z. B. Film suchen)"
|
756 |
|
757 |
-
#: inc/post-types.php:
|
758 |
msgid "Not Found"
|
759 |
msgstr "Nicht gefunden"
|
760 |
|
761 |
-
#: inc/post-types.php:
|
762 |
msgid "(e.g. No Movies found)"
|
763 |
msgstr "(z. B. Keine Filme gefunden)"
|
764 |
|
765 |
-
#: inc/post-types.php:
|
766 |
msgid "Not Found in Trash"
|
767 |
msgstr "Es wurde kein Eintrag im Papierkorb gefunden"
|
768 |
|
769 |
-
#: inc/post-types.php:
|
770 |
msgid "(e.g. No Movies found in Trash)"
|
771 |
msgstr "(z. B. Keine Filme im Papierkorb gefunden)"
|
772 |
|
773 |
-
#: inc/post-types.php:
|
774 |
msgid "Parent"
|
775 |
msgstr "Übergeordnet"
|
776 |
|
777 |
-
#: inc/post-types.php:
|
778 |
msgid "(e.g. Parent Movie)"
|
779 |
msgstr "(z. B. Übergeordneter Film)"
|
780 |
|
781 |
-
#: inc/post-types.php:
|
782 |
-
#: inc/post-types.php:
|
783 |
-
#: inc/post-types.php:
|
784 |
-
#: inc/
|
785 |
-
#: inc/taxonomies.php:
|
786 |
-
#: inc/taxonomies.php:
|
|
|
787 |
msgid "False"
|
788 |
msgstr "deaktiviert"
|
789 |
|
790 |
-
#: inc/post-types.php:
|
791 |
-
#: inc/post-types.php:
|
792 |
-
#: inc/post-types.php:
|
793 |
-
#: inc/
|
794 |
-
#: inc/taxonomies.php:
|
795 |
-
#: inc/taxonomies.php:
|
|
|
796 |
msgid "True"
|
797 |
msgstr "aktiviert"
|
798 |
|
799 |
-
#: inc/post-types.php:
|
800 |
msgid "Public"
|
801 |
msgstr "Öffentlich"
|
802 |
|
803 |
-
#: inc/post-types.php:
|
804 |
-
|
805 |
-
|
806 |
-
msgid "(default: True)"
|
807 |
-
msgstr "(Voreinstellung: aktiviert)"
|
808 |
|
809 |
-
#: inc/post-types.php:
|
810 |
msgid ""
|
|
|
811 |
"Whether posts of this type should be shown in the admin UI and is publicly "
|
812 |
"queryable."
|
813 |
msgstr ""
|
814 |
"Ob Beiträge dieses Typs im Admin Interface angezeigt werden sollen und "
|
815 |
-
"öffentlich durchsuchbar sind."
|
|
|
|
|
816 |
|
817 |
-
#: inc/post-types.php:
|
818 |
msgid "Show UI"
|
819 |
msgstr "Benutzeroberfläche anzeigen"
|
820 |
|
821 |
-
#: inc/post-types.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
822 |
msgid "Whether to generate a default UI for managing this post type."
|
823 |
msgstr ""
|
824 |
"Soll für die Verwaltung dieses Post Types eine Standard-Benutzeroberfläche "
|
825 |
"angelegt werden."
|
826 |
|
827 |
-
#: inc/post-types.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
828 |
msgid "Has Archive"
|
829 |
msgstr "Hat ein Archiv"
|
830 |
|
831 |
-
#: inc/post-types.php:
|
832 |
msgid "Whether the post type will have a post type archive URL."
|
833 |
msgstr "Ob der Post Type eine Post Type-Archiv URL hat."
|
834 |
|
835 |
-
#: inc/post-types.php:
|
836 |
msgid "If left blank, the archive slug will default to the post type slug."
|
837 |
msgstr ""
|
838 |
"Wird das Feld leer gelassen wird der Archiv-Kurzlink standardmäßig auf den "
|
839 |
"Post Type-Kurzlink gesetzt."
|
840 |
|
841 |
-
#: inc/post-types.php:
|
842 |
-
#: inc/taxonomies.php:359 inc/taxonomies.php:479
|
843 |
-
msgid "(default: False)"
|
844 |
-
msgstr "(Voreinstellung: deaktiviert)"
|
845 |
-
|
846 |
-
#: inc/post-types.php:453
|
847 |
msgid "Slug to be used for archive URL."
|
848 |
msgstr "Der Kurzlink der für die Archiv URL verwendet wird."
|
849 |
|
850 |
-
#: inc/post-types.php:
|
851 |
msgid "Exclude From Search"
|
852 |
msgstr "Von der Suche ausschließen"
|
853 |
|
854 |
-
#: inc/post-types.php:
|
855 |
msgid ""
|
856 |
"Whether to exclude posts with this post type from front end search results."
|
857 |
msgstr ""
|
858 |
"Ob Beiträge dieses Post Types von den Suchergebnissen im Front End "
|
859 |
"ausgeschlossen werden sollen."
|
860 |
|
861 |
-
#: inc/post-types.php:
|
862 |
msgid "Capability Type"
|
863 |
msgstr "Fähigkeiten"
|
864 |
|
865 |
-
#: inc/post-types.php:
|
866 |
msgid "The post type to use for checking read, edit, and delete capabilities"
|
867 |
msgstr ""
|
868 |
"Der Post Type der herangezogen wird um auf die Befähigung zum Lesen, "
|
869 |
"Bearbeiten und Löschen zu prüfen"
|
870 |
|
871 |
-
#: inc/post-types.php:
|
872 |
msgid "Hierarchical"
|
873 |
msgstr "Hierarchisch"
|
874 |
|
875 |
-
#: inc/post-types.php:
|
876 |
msgid "Whether the post type can have parent-child relationships"
|
877 |
msgstr "Darf der Post Type hierarchische Beziehungen haben"
|
878 |
|
879 |
-
#: inc/post-types.php:
|
880 |
msgid "Rewrite"
|
881 |
msgstr "Rewrite"
|
882 |
|
883 |
-
#: inc/post-types.php:
|
884 |
msgid "Whether or not WordPress should use rewrites for this post type"
|
885 |
msgstr "Ob WordPress Rewrites für diesen Post Type verwenden soll oder nicht"
|
886 |
|
887 |
-
#: inc/post-types.php:
|
888 |
msgid "Custom Rewrite Slug"
|
889 |
msgstr "Benutzerdefinierter Rewrite-Kurzlink"
|
890 |
|
891 |
-
#: inc/post-types.php:
|
892 |
msgid "(default: post type slug)"
|
893 |
msgstr "(Voreinstellung: Post Type-Kurzlink)"
|
894 |
|
895 |
-
#: inc/post-types.php:
|
896 |
msgid "Custom post type slug to use instead of the default."
|
897 |
msgstr ""
|
898 |
"Benutzerdefinierter Post Type-Kurzlink welcher anstelle des standardmässigen "
|
899 |
"benutzt werden soll."
|
900 |
|
901 |
-
#: inc/post-types.php:
|
902 |
msgid "With Front"
|
903 |
msgstr "Front Base voranstellen"
|
904 |
|
905 |
-
#: inc/post-types.php:
|
906 |
msgid "Should the permastruct be prepended with the front base."
|
907 |
msgstr "Soll die Front Base der Permalink Struktur vorangestellt werden."
|
908 |
|
909 |
-
#: inc/post-types.php:
|
910 |
msgid "Query Var"
|
911 |
msgstr "Abfrage Variable"
|
912 |
|
913 |
-
#: inc/post-types.php:
|
914 |
msgid "Sets the query_var key for this post type."
|
915 |
msgstr "Definiere einen Abfrage Variablen-Kurzlink für diesen Post Type."
|
916 |
|
917 |
-
#: inc/post-types.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
918 |
msgid "Menu Position"
|
919 |
msgstr "Menü Position"
|
920 |
|
921 |
-
#: inc/post-types.php:
|
922 |
msgid ""
|
923 |
"The position in the menu order the post type should appear. show_in_menu "
|
924 |
"must be true."
|
@@ -926,28 +1110,27 @@ msgstr ""
|
|
926 |
"An welcher Position im Menü soll der Post Type angezeigt werden. \"Im Menü "
|
927 |
"anzeigen\" muss dafür aktiviert sein."
|
928 |
|
929 |
-
#: inc/post-types.php:
|
930 |
-
#, fuzzy
|
931 |
msgid ""
|
932 |
"See <a href=\"http://codex.wordpress.org/Function_Reference/"
|
933 |
"register_post_type#Parameters\" target=\"_blank\">Available options</a> in "
|
934 |
"the \"menu_position\" section. Range of 5-100"
|
935 |
msgstr ""
|
936 |
-
"<a href
|
937 |
-
"register_post_type#Parameters\">
|
938 |
-
"Einstellungsmöglichkeiten für die „Menü Position
|
939 |
-
"Werte reichen von 5 bis 100."
|
940 |
|
941 |
-
#: inc/post-types.php:
|
942 |
msgid "Show in Menu"
|
943 |
msgstr "Im Menü anzeigen"
|
944 |
|
945 |
-
#: inc/post-types.php:
|
946 |
msgid ""
|
947 |
"Whether to show the post type in the admin menu and where to show that menu."
|
948 |
msgstr "Ob der Post Type im Admin Menü angezeigt werden soll und wenn ja wo."
|
949 |
|
950 |
-
#: inc/post-types.php:
|
951 |
msgid ""
|
952 |
"\"Show UI\" must be \"true\". If an existing top level page such as \"tools."
|
953 |
"php\" is indicated for second input, post type will be sub menu of that."
|
@@ -956,40 +1139,40 @@ msgstr ""
|
|
956 |
"Level übergeordnete Seite wie z. B. \"tools.php\" im dazugehörigen Feld "
|
957 |
"angegeben sein wird der Post Type als Untermenü davon angezeigt."
|
958 |
|
959 |
-
#: inc/post-types.php:
|
960 |
msgid "Top-level page file name to make post type a sub-menu of."
|
961 |
msgstr ""
|
962 |
"Top-Level Seiten Dateiname bei dem der Post Type als Submenü eingefügt wird."
|
963 |
|
964 |
-
#: inc/post-types.php:
|
965 |
msgid "Menu Icon"
|
966 |
msgstr "Menü-Icon"
|
967 |
|
968 |
-
#: inc/post-types.php:
|
969 |
msgid "(Full URL for icon or Dashicon class)"
|
970 |
msgstr "(Komplette URL für das Icon oder die Dashicon-Klasse)"
|
971 |
|
972 |
-
#: inc/post-types.php:
|
973 |
msgid "URL to image to be used as menu icon or Dashicon class to use instead."
|
974 |
msgstr ""
|
975 |
"URL zum Bild das als Menü-Icon verwendet wird; oder anstelle dessen zur "
|
976 |
"Dashicon-Klasse."
|
977 |
|
978 |
-
#: inc/post-types.php:
|
979 |
msgid "Title"
|
980 |
msgstr "Titel"
|
981 |
|
982 |
-
#: inc/post-types.php:
|
983 |
msgid "Adds the title meta box when creating content for this custom post type"
|
984 |
msgstr ""
|
985 |
"Fügt die Titel-Meta Box hinzu sobald Inhalte für diesen Custom Post Type "
|
986 |
"erstellt werden"
|
987 |
|
988 |
-
#: inc/post-types.php:
|
989 |
msgid "Editor"
|
990 |
msgstr "Text-Editor"
|
991 |
|
992 |
-
#: inc/post-types.php:
|
993 |
msgid ""
|
994 |
"Adds the content editor meta box when creating content for this custom post "
|
995 |
"type"
|
@@ -997,33 +1180,33 @@ msgstr ""
|
|
997 |
"Fügt eine Text-Editor Meta Box hinzu sobald Inhalte für diesen Custom Post "
|
998 |
"Type erstellt werden"
|
999 |
|
1000 |
-
#: inc/post-types.php:
|
1001 |
msgid "Excerpt"
|
1002 |
msgstr "Auszug"
|
1003 |
|
1004 |
-
#: inc/post-types.php:
|
1005 |
msgid ""
|
1006 |
"Adds the excerpt meta box when creating content for this custom post type"
|
1007 |
msgstr ""
|
1008 |
"Fügt eine Auszugs-Meta Box hinzu sobald Inhalte für diesen Custom Post Type "
|
1009 |
"erstellt werden"
|
1010 |
|
1011 |
-
#: inc/post-types.php:
|
1012 |
msgid "Trackbacks"
|
1013 |
msgstr "Trackbacks"
|
1014 |
|
1015 |
-
#: inc/post-types.php:
|
1016 |
msgid ""
|
1017 |
"Adds the trackbacks meta box when creating content for this custom post type"
|
1018 |
msgstr ""
|
1019 |
"Fügt eine Trackback-Meta Box hinzu sobald Inhalte für diesen Custom Post "
|
1020 |
"Type erstellt werden"
|
1021 |
|
1022 |
-
#: inc/post-types.php:
|
1023 |
msgid "Custom Fields"
|
1024 |
msgstr "Eigene Felder"
|
1025 |
|
1026 |
-
#: inc/post-types.php:
|
1027 |
msgid ""
|
1028 |
"Adds the custom fields meta box when creating content for this custom post "
|
1029 |
"type"
|
@@ -1031,33 +1214,33 @@ msgstr ""
|
|
1031 |
"Fügt eine Eigene Felder-Meta Box hinzu sobald Inhalte für diesen Custom Post "
|
1032 |
"Type erstellt werden"
|
1033 |
|
1034 |
-
#: inc/post-types.php:
|
1035 |
msgid "Comments"
|
1036 |
msgstr "Kommentare"
|
1037 |
|
1038 |
-
#: inc/post-types.php:
|
1039 |
msgid ""
|
1040 |
"Adds the comments meta box when creating content for this custom post type"
|
1041 |
msgstr ""
|
1042 |
"Fügt eine Kommentare-Meta Box hinzu sobald Inhalte für diesen Custom Post "
|
1043 |
"Type erstellt werden"
|
1044 |
|
1045 |
-
#: inc/post-types.php:
|
1046 |
msgid "Revisions"
|
1047 |
msgstr "Revisionen"
|
1048 |
|
1049 |
-
#: inc/post-types.php:
|
1050 |
msgid ""
|
1051 |
"Adds the revisions meta box when creating content for this custom post type"
|
1052 |
msgstr ""
|
1053 |
"Fügt eine Revisions-Meta Box hinzu sobald Inhalte für diesen Custom Post "
|
1054 |
"Type erstellt werden"
|
1055 |
|
1056 |
-
#: inc/post-types.php:
|
1057 |
msgid "Featured Image"
|
1058 |
msgstr "Beitragsbild"
|
1059 |
|
1060 |
-
#: inc/post-types.php:
|
1061 |
msgid ""
|
1062 |
"Adds the featured image meta box when creating content for this custom post "
|
1063 |
"type"
|
@@ -1065,22 +1248,22 @@ msgstr ""
|
|
1065 |
"Fügt eine Beitragsbild-Meta Box hinzu sobald Inhalte für diesen Custom Post "
|
1066 |
"Type erstellt werden"
|
1067 |
|
1068 |
-
#: inc/post-types.php:
|
1069 |
msgid "Author"
|
1070 |
msgstr "Autor"
|
1071 |
|
1072 |
-
#: inc/post-types.php:
|
1073 |
msgid ""
|
1074 |
"Adds the author meta box when creating content for this custom post type"
|
1075 |
msgstr ""
|
1076 |
"Fügt eine Autoren-Meta Box hinzu sobald Inhalte für diesen Custom Post Type "
|
1077 |
"erstellt werden"
|
1078 |
|
1079 |
-
#: inc/post-types.php:
|
1080 |
msgid "Page Attributes"
|
1081 |
msgstr "Seiten Attribute"
|
1082 |
|
1083 |
-
#: inc/post-types.php:
|
1084 |
msgid ""
|
1085 |
"Adds the page attribute meta box when creating content for this custom post "
|
1086 |
"type"
|
@@ -1088,77 +1271,77 @@ msgstr ""
|
|
1088 |
"Fügt eine Seitenattribut-Meta Box hinzu sobald Inhalte für diesen Custom "
|
1089 |
"Post Type erstellt werden"
|
1090 |
|
1091 |
-
#: inc/post-types.php:
|
1092 |
msgid "Post Formats"
|
1093 |
msgstr "Format"
|
1094 |
|
1095 |
-
#: inc/post-types.php:
|
1096 |
msgid "Adds post format support"
|
1097 |
msgstr "Fügt die Unterstützung für Formate in Beiträgen hinzu"
|
1098 |
|
1099 |
-
#: inc/post-types.php:
|
1100 |
msgid "Use the option below to explicitly set \"supports\" to false."
|
1101 |
msgstr ""
|
1102 |
"Hake die Checkbox \"Keine\" an um alle \"Unterstützt\"-Funktionen explizit "
|
1103 |
"zu deaktivieren."
|
1104 |
|
1105 |
-
#: inc/post-types.php:
|
1106 |
msgid "None"
|
1107 |
msgstr "Keine"
|
1108 |
|
1109 |
-
#: inc/post-types.php:
|
1110 |
msgid "Remove all support features"
|
1111 |
msgstr "Entfernt alle „Unterstützt“-Features"
|
1112 |
|
1113 |
-
#: inc/post-types.php:
|
1114 |
msgid "Custom \"Supports\""
|
1115 |
msgstr "Benutzerdefinierte „Unterstützt“"
|
1116 |
|
1117 |
-
#: inc/post-types.php:
|
1118 |
msgid ""
|
1119 |
"Use this input to register custom \"supports\" values, separated by commas."
|
1120 |
msgstr ""
|
1121 |
"Benutze diesen Eintrag um benutzerdefinierte „Unterstützt“-Werte zu "
|
1122 |
"definieren welche durch Kommas getrennt sind."
|
1123 |
|
1124 |
-
#: inc/post-types.php:
|
1125 |
msgid "Provide custom support slugs here."
|
1126 |
msgstr "Stelle hier benutzerdefinierte „Unterstützt“-Kurzlinks zur Verfügung."
|
1127 |
|
1128 |
-
#: inc/post-types.php:
|
1129 |
msgid "Built-in Taxonomies"
|
1130 |
msgstr "Vorhandene Taxonomien"
|
1131 |
|
1132 |
-
#: inc/post-types.php:
|
1133 |
#, php-format
|
1134 |
msgid "Adds %s support"
|
1135 |
msgstr "Fügt %s Unterstützung hinzu"
|
1136 |
|
1137 |
-
#: inc/post-types.php:
|
1138 |
msgid "Please provide a post type to delete"
|
1139 |
msgstr "Bitte gib einen Post Type zum Löschen an"
|
1140 |
|
1141 |
-
#: inc/post-types.php:
|
1142 |
msgid "Please provide a post type name"
|
1143 |
msgstr "Bitte gib einen Namen für den Post Type an"
|
1144 |
|
1145 |
-
#: inc/post-types.php:
|
1146 |
msgid "Please do not use quotes in post type names or rewrite slugs"
|
1147 |
msgstr ""
|
1148 |
"Bitte verwende keine Anführungszeichen im Post Type-Namen oder den Rewrite-"
|
1149 |
"Kurzlinks"
|
1150 |
|
1151 |
-
#: inc/post-types.php:
|
1152 |
#, php-format
|
1153 |
msgid "Please choose a different post type name. %s is already registered."
|
1154 |
msgstr ""
|
1155 |
"Bitte wähle einen anderen Post Type-Namen. %s ist bereits in Verwendung."
|
1156 |
|
1157 |
-
#: inc/support.php:
|
1158 |
msgid "Custom Post Type UI Support"
|
1159 |
msgstr "Custom Post Type UI Support"
|
1160 |
|
1161 |
-
#: inc/support.php:
|
1162 |
#, php-format
|
1163 |
msgid ""
|
1164 |
"Please note that this plugin will NOT handle display of registered post "
|
@@ -1170,15 +1353,28 @@ msgstr ""
|
|
1170 |
"lediglich für Dich registrieren. Bei allen weiteren Problemen besuche bitte "
|
1171 |
"unsere %s"
|
1172 |
|
1173 |
-
#: inc/support.php:
|
1174 |
msgid "Support Forums"
|
1175 |
msgstr "Support Foren"
|
1176 |
|
1177 |
-
#: inc/support.php:
|
1178 |
msgid "General"
|
1179 |
msgstr "Allgemein"
|
1180 |
|
1181 |
-
#: inc/support.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1182 |
msgid ""
|
1183 |
"I changed my custom post type name and now I can not get to my posts. How do "
|
1184 |
"I get them back?"
|
@@ -1186,7 +1382,7 @@ msgstr ""
|
|
1186 |
"Ich habe den Namen meines Custom Post Types verändert und jetzt habe ich "
|
1187 |
"keinen Zugriff mehr auf meine Beiträge. Wie bekomme ich diese wieder zurück?"
|
1188 |
|
1189 |
-
#: inc/support.php:
|
1190 |
msgid ""
|
1191 |
"You can either change the custom post type name back to the original name or "
|
1192 |
"try the Post Type Switcher plugin"
|
@@ -1194,7 +1390,7 @@ msgstr ""
|
|
1194 |
"Du kannst entweder den Namen des Custom Post Types auf den ursprünglichen "
|
1195 |
"zurücksetzen oder aber Du verwendest das Post Type Switcher-Plugin"
|
1196 |
|
1197 |
-
#: inc/support.php:
|
1198 |
msgid ""
|
1199 |
"I changed my custom post type or taxonomy slug and now I have duplicates "
|
1200 |
"shown. How do I remove the duplicate?"
|
@@ -1202,7 +1398,7 @@ msgstr ""
|
|
1202 |
"Ich habe meinen Custom Post Type oder den Taxonomie-Kurzlink verändert und "
|
1203 |
"jetzt werden Duplikate angezeigt. Wie kann ich diese wieder entfernen?"
|
1204 |
|
1205 |
-
#: inc/support.php:
|
1206 |
msgid ""
|
1207 |
"Renaming the slug for a post type or taxonomy creates a new entry in our "
|
1208 |
"saved option which gets registered as its own post type or taxonomy. Since "
|
@@ -1214,7 +1410,7 @@ msgstr ""
|
|
1214 |
"dem vorherigen Kurzlink übernommen worden sind musst Du einfach den "
|
1215 |
"ursprünglichen Eintrag löschen."
|
1216 |
|
1217 |
-
#: inc/support.php:
|
1218 |
msgid ""
|
1219 |
"I have added post thumbnail and/or post format support to my post type, but "
|
1220 |
"those do not appear when adding a post type post."
|
@@ -1223,24 +1419,44 @@ msgstr ""
|
|
1223 |
"Type hinzugefügt. Diese werden aber nicht angezeigt wenn ich einen Beitrag "
|
1224 |
"mit diesem Post Type hinzufüge."
|
1225 |
|
1226 |
-
#: inc/support.php:
|
1227 |
msgid ""
|
1228 |
"Make sure your theme has post \"post-thumbnails\" theme support enabled."
|
1229 |
msgstr ""
|
1230 |
"Stell sicher, dass Dein Theme für Beiträge den Support von \"Beitrags-"
|
1231 |
"Thumbnails\" aktiviert hat"
|
1232 |
|
1233 |
-
#: inc/support.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1234 |
msgid "Front-end Display"
|
1235 |
msgstr "Front-End Anzeige"
|
1236 |
|
1237 |
-
#: inc/support.php:
|
1238 |
msgid "What template files should I edit to alter my post type display?"
|
1239 |
msgstr ""
|
1240 |
"Welche Template-Dateien sollte ich bearbeiten um die Anzeige meiner Post "
|
1241 |
"Types zu verändern?"
|
1242 |
|
1243 |
-
#: inc/support.php:
|
1244 |
#, php-format
|
1245 |
msgid ""
|
1246 |
"Please visit the %sTemplate Hierarchy%s page on the WordPress codex for "
|
@@ -1249,12 +1465,12 @@ msgstr ""
|
|
1249 |
"Besuche bitte die %sTemplate Hierarchie%s-Seite im WordPress-Codex um mehr "
|
1250 |
"über die verfügbaren verschiedenen Arten von Templates zu erfahren."
|
1251 |
|
1252 |
-
#: inc/support.php:
|
1253 |
msgid "How do I display my custom post type on my site?"
|
1254 |
msgstr ""
|
1255 |
"Wie kann ich meine Custom Post Types auf meiner Webseite anzeigen lassen?"
|
1256 |
|
1257 |
-
#: inc/support.php:
|
1258 |
#, php-format
|
1259 |
msgid ""
|
1260 |
"You will need to utilize the %sWP_Query%s class to handle display in custom "
|
@@ -1266,7 +1482,7 @@ msgstr ""
|
|
1266 |
"Archiv hat, sollte die Archiv-URL z.B. \"http://www.mysite.com/post-type-slug"
|
1267 |
"\" lauten."
|
1268 |
|
1269 |
-
#: inc/support.php:
|
1270 |
msgid ""
|
1271 |
"I have added categories and tags to my custom post type, but they do not "
|
1272 |
"appear in the archives."
|
@@ -1274,7 +1490,7 @@ msgstr ""
|
|
1274 |
"Ich habe Kategorien und Tags zu meinem Custom Post Type hinzugefügt, aber "
|
1275 |
"sie werden nicht in den Archiven angezeigt."
|
1276 |
|
1277 |
-
#: inc/support.php:
|
1278 |
#, php-format
|
1279 |
msgid ""
|
1280 |
"You will need to add your newly created post type to the types that the "
|
@@ -1285,15 +1501,15 @@ msgstr ""
|
|
1285 |
"die Kategorie- und Ettiketten-Archive durchsucht werden. Du findest ein "
|
1286 |
"Tutorial dazu unter %s"
|
1287 |
|
1288 |
-
#: inc/support.php:
|
1289 |
msgid "Advanced"
|
1290 |
msgstr "Erweitert"
|
1291 |
|
1292 |
-
#: inc/support.php:
|
1293 |
msgid "How do I add custom metaboxes to my post type?"
|
1294 |
msgstr "Wie füge ich benutzerdefinierte Metaboxen zu meinem Post Type hinzu?"
|
1295 |
|
1296 |
-
#: inc/support.php:
|
1297 |
#, php-format
|
1298 |
msgid ""
|
1299 |
"We recommend checking out %s, the latest iteration of \"Custom Metaboxes and "
|
@@ -1302,25 +1518,25 @@ msgstr ""
|
|
1302 |
"Wir empfehlen %s, die neueste Version von \"Custom Metaboxes and Fields for "
|
1303 |
"WordPress\". Beides wird von den WebDevStudios entwickelt."
|
1304 |
|
1305 |
-
#: inc/support.php:
|
1306 |
msgid ""
|
1307 |
"How do I add a newly registered taxonomy to a post type that already exists?"
|
1308 |
msgstr ""
|
1309 |
"Wie füge ich eine neu erstellte Taxonomie zu einem Post Type hinzu der "
|
1310 |
"bereits existiert?"
|
1311 |
|
1312 |
-
#: inc/support.php:
|
1313 |
#, php-format
|
1314 |
msgid "Check out the %s function for documentation and usage examples."
|
1315 |
msgstr ""
|
1316 |
"Wirf einen Blick auf die %s-Funktion hinsichtlich Dokumentation und "
|
1317 |
"Nutzungsbeispielen."
|
1318 |
|
1319 |
-
#: inc/support.php:
|
1320 |
msgid "Post relationships?"
|
1321 |
msgstr "Beitragsbeziehungen?"
|
1322 |
|
1323 |
-
#: inc/support.php:
|
1324 |
#, php-format
|
1325 |
msgid ""
|
1326 |
"%s has an excellent %spost%s introducing users to the %sPosts 2 Posts%s "
|
@@ -1329,11 +1545,11 @@ msgstr ""
|
|
1329 |
"%s hat eine ausgezeichnet %sEinführung%s in die Nutzung des %sPosts 2 Posts"
|
1330 |
"%s Plugins veröffentlicht."
|
1331 |
|
1332 |
-
#: inc/support.php:
|
1333 |
msgid "Is there any function reference list?"
|
1334 |
msgstr "Gibt es eine Funktion Referenz-Liste?"
|
1335 |
|
1336 |
-
#: inc/support.php:
|
1337 |
#, php-format
|
1338 |
msgid ""
|
1339 |
"%s has compiled a nice list of functions used by our plugin. Note not all "
|
@@ -1341,16 +1557,16 @@ msgid ""
|
|
1341 |
msgstr ""
|
1342 |
"%s hat eine schöne Liste an Funktionen zusammengestellt die von unserem "
|
1343 |
"Plugin benutzt werden. Merke, nicht alle genannten werden hilfreich sein da "
|
1344 |
-
"sie an
|
1345 |
|
1346 |
-
#: inc/support.php:
|
1347 |
msgid ""
|
1348 |
"How do I filter the \"enter title here\" text in the post editor screen?"
|
1349 |
msgstr ""
|
1350 |
"Wie kann ich den \"Titel hier eingeben\" Text im \"Neuen Beitrage erstellen"
|
1351 |
"\"-Fenster ändern?"
|
1352 |
|
1353 |
-
#: inc/support.php:
|
1354 |
msgid ""
|
1355 |
"Change text inside the post/page editor title field. Should be able to adapt "
|
1356 |
"as necessary."
|
@@ -1358,7 +1574,7 @@ msgstr ""
|
|
1358 |
"Ändere den Text innerhalb des Beitrag/Seiten-Editor Titel-Feldes. Es sollte "
|
1359 |
"möglich sein dies anzupassen falls notwendig."
|
1360 |
|
1361 |
-
#: inc/taxonomies.php:
|
1362 |
msgid ""
|
1363 |
"DO NOT EDIT the taxonomy slug unless necessary. Changing that value "
|
1364 |
"registers a new taxonomy entry for your install."
|
@@ -1367,15 +1583,15 @@ msgstr ""
|
|
1367 |
"notwendig ist. Die Änderung des Namens registriert einen neuen Taxonomie "
|
1368 |
"Eintrag für Deine Installation."
|
1369 |
|
1370 |
-
#: inc/taxonomies.php:
|
1371 |
msgid "Taxonomy Slug"
|
1372 |
msgstr "Taxonomie-Kurzlink"
|
1373 |
|
1374 |
-
#: inc/taxonomies.php:
|
1375 |
msgid "(e.g. actor)"
|
1376 |
msgstr "(z. B. regisseure)"
|
1377 |
|
1378 |
-
#: inc/taxonomies.php:
|
1379 |
msgid ""
|
1380 |
"The taxonomy name. Used to retrieve custom taxonomy content. Should be short "
|
1381 |
"and unique"
|
@@ -1383,44 +1599,51 @@ msgstr ""
|
|
1383 |
"Der Taxonomie-Name. Er wird zum Abrufen von benutzerdefinierten Taxonomie-"
|
1384 |
"Inhalten verwendet. Er sollte kurz, prägnant und ein Unikat sein."
|
1385 |
|
1386 |
-
#: inc/taxonomies.php:
|
1387 |
msgid "(e.g. Actors)"
|
1388 |
msgstr "(z. B. Regisseure)"
|
1389 |
|
1390 |
-
#: inc/taxonomies.php:
|
1391 |
msgid "Taxonomy label. Used in the admin menu for displaying custom taxonomy."
|
1392 |
msgstr ""
|
1393 |
"Taxonomie-Beschreibung. Sie wird im Admin-Menü dazu verwendet "
|
1394 |
"benutzerdefinierte Taxonomien anzuzeigen."
|
1395 |
|
1396 |
-
#: inc/taxonomies.php:
|
1397 |
msgid "(e.g. Actor)"
|
1398 |
msgstr "(z. B. Regisseur)"
|
1399 |
|
1400 |
-
#: inc/taxonomies.php:
|
1401 |
msgid ""
|
1402 |
"Taxonomy Singular label. Used in WordPress when a singular label is needed."
|
1403 |
msgstr ""
|
1404 |
"Taxonomie-Beschreibung (Singular). Wird in WordPress verwendet wenn "
|
1405 |
"Beschriftungen in der Einzahl benötigt werden."
|
1406 |
|
1407 |
-
#: inc/taxonomies.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1408 |
msgid "Attach to Post Type"
|
1409 |
msgstr "Mit Post Type verbinden"
|
1410 |
|
1411 |
-
#: inc/taxonomies.php:
|
1412 |
msgid "Save Taxonomy"
|
1413 |
msgstr "Taxonomie speichern"
|
1414 |
|
1415 |
-
#: inc/taxonomies.php:
|
1416 |
msgid "Delete Taxonomy"
|
1417 |
msgstr "Taxonomie löschen"
|
1418 |
|
1419 |
-
#: inc/taxonomies.php:
|
1420 |
msgid "Add Taxonomy"
|
1421 |
msgstr "Taxonomie hinzufügen"
|
1422 |
|
1423 |
-
#: inc/taxonomies.php:
|
1424 |
#, php-format
|
1425 |
msgid ""
|
1426 |
"Taxonomy names should have %smax 32 characters%s, and only contain "
|
@@ -1431,7 +1654,7 @@ msgstr ""
|
|
1431 |
"alphanumerische Zeichen sowie Kleinbuchstaben enthalten. Unterstriche "
|
1432 |
"sollten Leerzeichen ersetzen und es dürfen keine Akzente vorkommen."
|
1433 |
|
1434 |
-
#: inc/taxonomies.php:
|
1435 |
#, php-format
|
1436 |
msgid ""
|
1437 |
"If you are unfamiliar with the advanced taxonomy settings, just fill in the "
|
@@ -1448,7 +1671,7 @@ msgstr ""
|
|
1448 |
"erstellt. Für weitergehende Informationen fahre mit dem Mauszeiger über die "
|
1449 |
"roten Fragezeichen."
|
1450 |
|
1451 |
-
#: inc/taxonomies.php:
|
1452 |
#, php-format
|
1453 |
msgid ""
|
1454 |
"Deleting custom taxonomies do %sNOT%s delete terms added to those "
|
@@ -1463,180 +1686,184 @@ msgstr ""
|
|
1463 |
"Begriffe zu der Taxonomie hinzugefügt wurden, geändert werden, werden die "
|
1464 |
"Begriffe nicht in der Datenbank aktualisiert."
|
1465 |
|
1466 |
-
#: inc/taxonomies.php:
|
1467 |
-
#: inc/taxonomies.php:
|
1468 |
-
#: inc/taxonomies.php:
|
1469 |
-
#: inc/taxonomies.php:
|
1470 |
-
#: inc/taxonomies.php:
|
1471 |
msgid ""
|
1472 |
"Custom taxonomy label. Used in the admin menu for displaying taxonomies."
|
1473 |
msgstr ""
|
1474 |
"Benutzerdefinierte Taxonomie-Beschriftung. Sie wird im Admin-Menü für die "
|
1475 |
"Anzeige von Taxonomien verwendet."
|
1476 |
|
1477 |
-
#: inc/taxonomies.php:
|
1478 |
msgid "(e.g. All Actors)"
|
1479 |
msgstr "(z. B. Alle Regisseure)"
|
1480 |
|
1481 |
-
#: inc/taxonomies.php:
|
1482 |
msgid "(e.g. Edit Actor)"
|
1483 |
msgstr "(z. B. Regisseur bearbeiten)"
|
1484 |
|
1485 |
-
#: inc/taxonomies.php:
|
1486 |
msgid "(e.g. View Actor)"
|
1487 |
msgstr "(z. B. Regisseur anzeigen)"
|
1488 |
|
1489 |
-
#: inc/taxonomies.php:
|
1490 |
msgid "(e.g. Update Actor Name)"
|
1491 |
msgstr "(z. B. Namen des Regisseurs aktualisieren)"
|
1492 |
|
1493 |
-
#: inc/taxonomies.php:
|
1494 |
msgid "Update Item Name"
|
1495 |
msgstr "Eintragsname aktualisieren"
|
1496 |
|
1497 |
-
#: inc/taxonomies.php:
|
1498 |
msgid "(e.g. Add New Actor)"
|
1499 |
msgstr "(z. B. Neuen Regisseur hinzufügen)"
|
1500 |
|
1501 |
-
#: inc/taxonomies.php:
|
1502 |
msgid "(e.g. New Actor Name)"
|
1503 |
msgstr "(z. B. Neuer Regisseursname)"
|
1504 |
|
1505 |
-
#: inc/taxonomies.php:
|
1506 |
msgid "New Item Name"
|
1507 |
msgstr "Neuer Eintragsname"
|
1508 |
|
1509 |
-
#: inc/taxonomies.php:
|
1510 |
msgid "(e.g. Parent Actor)"
|
1511 |
msgstr "(z. B. Übergeordneter Regisseur)"
|
1512 |
|
1513 |
-
#: inc/taxonomies.php:
|
1514 |
msgid "Parent Item"
|
1515 |
msgstr "Übergeordneter Eintrag"
|
1516 |
|
1517 |
-
#: inc/taxonomies.php:
|
1518 |
msgid "(e.g. Parent Actor:)"
|
1519 |
msgstr "(z. B. Übergeordneter Regisseur:)"
|
1520 |
|
1521 |
-
#: inc/taxonomies.php:
|
1522 |
msgid "Parent Item Colon"
|
1523 |
msgstr "Übergeordneter Eintrag Komma"
|
1524 |
|
1525 |
-
#: inc/taxonomies.php:
|
1526 |
msgid "(e.g. Search Actors)"
|
1527 |
msgstr "(z. B. Regisseure durchsuchen)"
|
1528 |
|
1529 |
-
#: inc/taxonomies.php:
|
1530 |
msgid "Search Items"
|
1531 |
msgstr "Einträge durchsuchen"
|
1532 |
|
1533 |
-
#: inc/taxonomies.php:
|
1534 |
msgid "(e.g. Popular Actors)"
|
1535 |
msgstr "(z. B. beliebte Regisseure)"
|
1536 |
|
1537 |
-
#: inc/taxonomies.php:
|
1538 |
msgid "Popular Items"
|
1539 |
msgstr "Beliebte Einträge"
|
1540 |
|
1541 |
-
#: inc/taxonomies.php:
|
1542 |
-
|
|
|
1543 |
msgstr "(z. B. Trenne die Regisseure mittels Komma)"
|
1544 |
|
1545 |
-
#: inc/taxonomies.php:
|
1546 |
msgid "Separate Items with Commas"
|
1547 |
msgstr "Trenne Einträge mittels Komma"
|
1548 |
|
1549 |
-
#: inc/taxonomies.php:
|
1550 |
-
|
|
|
1551 |
msgstr "(z. B. Lösche oder füge Regisseure hinzu)"
|
1552 |
|
1553 |
-
#: inc/taxonomies.php:
|
1554 |
msgid "Add or Remove Items"
|
1555 |
msgstr "Lösche oder füge Einträge hinzu"
|
1556 |
|
1557 |
-
#: inc/taxonomies.php:
|
1558 |
-
|
|
|
1559 |
msgstr "(z. B. Wähle aus den meist genutzten Regisseuren)"
|
1560 |
|
1561 |
-
#: inc/taxonomies.php:
|
1562 |
msgid "Choose From Most Used"
|
1563 |
msgstr "Wähle aus den am meisten Verwendeten"
|
1564 |
|
1565 |
-
#: inc/taxonomies.php:
|
1566 |
-
|
|
|
1567 |
msgstr "(z. B. Keine Regisseure gefunden)"
|
1568 |
|
1569 |
-
#: inc/taxonomies.php:
|
1570 |
msgid "Not found"
|
1571 |
msgstr "Nicht gefunden"
|
1572 |
|
1573 |
-
#: inc/taxonomies.php:
|
1574 |
msgid "Whether the taxonomy can have parent-child relationships"
|
1575 |
msgstr "Soll die Taxonomie eine Parent-Child-Beziehung haben"
|
1576 |
|
1577 |
-
#: inc/taxonomies.php:
|
1578 |
msgid "Whether to generate a default UI for managing this custom taxonomy."
|
1579 |
msgstr ""
|
1580 |
"Ob eine standardmässige Benutzeroberfläche zur Verwaltung der "
|
1581 |
"benutzerdefinierten Taxonomie erstellt werden soll."
|
1582 |
|
1583 |
-
#: inc/taxonomies.php:
|
1584 |
msgid "Sets the query_var key for this taxonomy."
|
1585 |
msgstr "Lege den Abfrage Variablen-Schlüssel für diese Taxonomie fest."
|
1586 |
|
1587 |
-
#: inc/taxonomies.php:
|
1588 |
-
msgid "(default:
|
1589 |
msgstr ""
|
1590 |
-
"(Voreinstellung:
|
1591 |
-
"
|
1592 |
|
1593 |
-
#: inc/taxonomies.php:
|
1594 |
msgid "Custom Query Var String"
|
1595 |
msgstr "Benutzerdefinierte Abfrage Variablen-Zeile"
|
1596 |
|
1597 |
-
#: inc/taxonomies.php:
|
1598 |
msgid "Sets a custom query_var slug for this taxonomy."
|
1599 |
msgstr ""
|
1600 |
-
"Definiere einen benutzerdefinierten Abfrage
|
1601 |
"Taxonomie."
|
1602 |
|
1603 |
-
#: inc/taxonomies.php:
|
1604 |
msgid "Whether or not WordPress should use rewrites for this taxonomy."
|
1605 |
msgstr "Soll WordPress Rewrites für diese Taxonomie benutzen."
|
1606 |
|
1607 |
-
#: inc/taxonomies.php:
|
1608 |
msgid "(default: taxonomy name)"
|
1609 |
msgstr "(Voreinstellung: Taxanomie Name)"
|
1610 |
|
1611 |
-
#: inc/taxonomies.php:
|
1612 |
msgid "Custom taxonomy rewrite slug."
|
1613 |
msgstr "Rewrite-Kurzlink der benutzerdefinierten Taxonomie."
|
1614 |
|
1615 |
-
#: inc/taxonomies.php:
|
1616 |
msgid "Rewrite With Front"
|
1617 |
msgstr "Rewrite mit vorangestellter Front Base"
|
1618 |
|
1619 |
-
#: inc/taxonomies.php:
|
1620 |
msgid "(default: true)"
|
1621 |
msgstr "(Voreinstellung: aktiviert)"
|
1622 |
|
1623 |
-
#: inc/taxonomies.php:
|
1624 |
msgid "Rewrite Hierarchical"
|
1625 |
msgstr "Hierarchischer Rewrite"
|
1626 |
|
1627 |
-
#: inc/taxonomies.php:
|
1628 |
msgid "(default: false)"
|
1629 |
msgstr "(Voreinstellung: deaktiviert)"
|
1630 |
|
1631 |
-
#: inc/taxonomies.php:
|
1632 |
msgid "Should the permastruct allow hierarchical urls."
|
1633 |
msgstr "Darf die Permalink-Struktur hierarchische URLs erlauben."
|
1634 |
|
1635 |
-
#: inc/taxonomies.php:
|
1636 |
msgid "Show Admin Column"
|
1637 |
msgstr "Anzeige von Admin-Spalten"
|
1638 |
|
1639 |
-
#: inc/taxonomies.php:
|
1640 |
msgid ""
|
1641 |
"Whether to allow automatic creation of taxonomy columns on associated post-"
|
1642 |
"types."
|
@@ -1644,21 +1871,27 @@ msgstr ""
|
|
1644 |
"Soll die automatische Erstellung von Taxonomie-Spalten in den verbundenen "
|
1645 |
"Post Types erlaubt werden."
|
1646 |
|
1647 |
-
#: inc/taxonomies.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
1648 |
msgid "Please provide a taxonomy to delete"
|
1649 |
msgstr "Gib bitte eine Taxonomie zum Löschen an"
|
1650 |
|
1651 |
-
#: inc/taxonomies.php:
|
1652 |
msgid "Please provide a taxonomy name"
|
1653 |
msgstr "Gib bitte einen Taxonomie-Namen an"
|
1654 |
|
1655 |
-
#: inc/taxonomies.php:
|
1656 |
msgid "Please do not use quotes in taxonomy names or rewrite slugs"
|
1657 |
msgstr ""
|
1658 |
"Benutze bitte keine Anführungszeichen in Taxonomie-Namen oder Rewrite-"
|
1659 |
"Kurzlinks"
|
1660 |
|
1661 |
-
#: inc/taxonomies.php:
|
1662 |
#, php-format
|
1663 |
msgid "Please choose a different taxonomy name. %s is already used."
|
1664 |
msgstr ""
|
@@ -1683,6 +1916,49 @@ msgstr "WebDevStudios"
|
|
1683 |
msgid "http://webdevstudios.com/"
|
1684 |
msgstr "http://webdevstudios.com/"
|
1685 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1686 |
#~ msgid "Whether posts of this type should be shown in the admin UI"
|
1687 |
#~ msgstr ""
|
1688 |
#~ "Sollen Beiträge dieses Post Types im Admin Interface angezeigt werden"
|
@@ -1785,9 +2061,6 @@ msgstr "http://webdevstudios.com/"
|
|
1785 |
#~ "Soll eine Standard-Benutzeroberfläche für die Verwaltung der "
|
1786 |
#~ "benutzerdefinierten Taxonomien erstellt werden"
|
1787 |
|
1788 |
-
#~ msgid "Custom Query Var Slug"
|
1789 |
-
#~ msgstr "Benutzerdefinierter Query Var-Kurzlink"
|
1790 |
-
|
1791 |
#~ msgid "Triggers the handling of rewrites for this taxonomy"
|
1792 |
#~ msgstr "Veranlasst die Durchführung von Rewrites für diese Taxonomie"
|
1793 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: Custom Post Type UI 1.2\n"
|
4 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/custom-post-type-"
|
5 |
"ui\n"
|
6 |
+
"POT-Creation-Date: 2015-12-13 00:08-0600\n"
|
7 |
+
"PO-Revision-Date: 2015-12-13 00:09-0600\n"
|
8 |
"Last-Translator: Michael Beckwith <michael.d.beckwith@gmail.com>\n"
|
9 |
"Language-Team: Pascal Kläres & Ralf Koller <pascal.klaeres@gmail.com & r."
|
10 |
"koller@gmail.com>\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
+
"X-Generator: Poedit 1.8.6\n"
|
16 |
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
17 |
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
18 |
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
24 |
"X-Poedit-SearchPathExcluded-0: tests\n"
|
25 |
"X-Poedit-SearchPathExcluded-1: *.js\n"
|
26 |
|
27 |
+
#: classes/class.cptui_debug_info.php:7
|
28 |
+
msgid ""
|
29 |
+
"If you have sought support for Custom Post Type UI on the forums, you may be "
|
30 |
+
"requested to send the information below to the plugin developer. Simply "
|
31 |
+
"insert the email they provided in the input field at the bottom and click "
|
32 |
+
"the \"Send debug info\" button. Only the data below will be sent to them."
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: classes/class.cptui_debug_info.php:186
|
36 |
+
#, php-format
|
37 |
+
msgid "CPTUI debug information for %s"
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#: custom-post-type-ui.php:61
|
41 |
msgid "Custom Post Types"
|
42 |
msgstr "Custom Post Types"
|
43 |
|
44 |
+
#: custom-post-type-ui.php:61
|
45 |
msgid "CPT UI"
|
46 |
msgstr "CPT UI"
|
47 |
|
48 |
+
#: custom-post-type-ui.php:62 inc/listings.php:155
|
49 |
msgid "Add/Edit Post Types"
|
50 |
msgstr "Post Types hinzufügen/editieren"
|
51 |
|
52 |
+
#: custom-post-type-ui.php:63 inc/listings.php:287
|
53 |
msgid "Add/Edit Taxonomies"
|
54 |
msgstr "Taxonomien hinzufügen/editieren"
|
55 |
|
56 |
+
#: custom-post-type-ui.php:64
|
57 |
msgid "Registered Types and Taxes"
|
58 |
msgstr "Registrierte Post Types und Taxonomien"
|
59 |
|
60 |
+
#: custom-post-type-ui.php:64
|
61 |
msgid "Registered Types/Taxes"
|
62 |
msgstr "Registrierte Post Types/Taxonomien"
|
63 |
|
64 |
+
#: custom-post-type-ui.php:65 custom-post-type-ui.php:551
|
65 |
msgid "Import/Export"
|
66 |
msgstr "Import/Export"
|
67 |
|
68 |
+
#: custom-post-type-ui.php:66
|
69 |
msgid "Help/Support"
|
70 |
msgstr "Hilfe/Support"
|
71 |
|
72 |
+
#: custom-post-type-ui.php:70
|
73 |
msgid "About CPT UI"
|
74 |
msgstr "Über CPT UI"
|
75 |
|
76 |
#. Plugin Name of the plugin/theme
|
77 |
+
#: custom-post-type-ui.php:382 custom-post-type-ui.php:478
|
78 |
msgid "Custom Post Type UI"
|
79 |
msgstr "Custom Post Type UI"
|
80 |
|
81 |
+
#: custom-post-type-ui.php:385
|
82 |
msgid ""
|
83 |
"Thank you for choosing Custom Post Type UI. We hope that your experience "
|
84 |
"with our plugin provides efficiency and speed in creating post types and "
|
86 |
msgstr ""
|
87 |
"Danke dass Du Dich für Custom Post Type UI entschieden hast. Wir hoffen, "
|
88 |
"dass Du mit Hilfe unseres Plugins auf eine einfache und schnelle Weise neue "
|
89 |
+
"Post Types und Taxonomien erstellen kannst sowie Deine Inhalte besser "
|
90 |
"organisieren, ohne dabei eine Zeile Code schreiben zu müssen."
|
91 |
|
92 |
+
#: custom-post-type-ui.php:387
|
93 |
+
#, php-format
|
94 |
+
msgid "What's new in version %s"
|
95 |
+
msgstr ""
|
96 |
|
97 |
+
#: custom-post-type-ui.php:392
|
98 |
+
msgid "Updated internationalization"
|
99 |
+
msgstr ""
|
100 |
+
|
101 |
+
#: custom-post-type-ui.php:393
|
102 |
msgid ""
|
103 |
+
"Our textdomain now matches the plugin slug from our WordPress.org repository "
|
104 |
+
"to help aid in translating Custom Post Type UI"
|
|
|
|
|
105 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
106 |
|
107 |
+
#: custom-post-type-ui.php:396
|
108 |
+
msgid "Debugging information"
|
109 |
+
msgstr ""
|
110 |
|
111 |
+
#: custom-post-type-ui.php:397
|
112 |
msgid ""
|
113 |
+
"We have added a new \"Debug Info\" tab to the Import/Export area to aid in "
|
114 |
+
"debugging issues with Custom Post Type UI."
|
|
|
115 |
msgstr ""
|
|
|
|
|
|
|
|
|
116 |
|
117 |
+
#: custom-post-type-ui.php:400
|
118 |
+
msgid "Improved accessibility"
|
119 |
+
msgstr ""
|
120 |
|
121 |
+
#: custom-post-type-ui.php:401
|
122 |
msgid ""
|
123 |
+
"A lot of work was done in the areas of accessibility to help aid users who "
|
124 |
+
"need it. If you have feedback on where it could be further improved, let us "
|
125 |
+
"know."
|
126 |
msgstr ""
|
|
|
|
|
127 |
|
128 |
+
#: custom-post-type-ui.php:404
|
129 |
+
msgid "WP REST API support"
|
130 |
+
msgstr ""
|
131 |
+
|
132 |
+
#: custom-post-type-ui.php:405
|
133 |
+
msgid ""
|
134 |
+
"We now have support for the required fields for the WP REST API. Now you can "
|
135 |
+
"add your Custom Post Type UI post types and taxonomies to the available REST "
|
136 |
+
"API lists."
|
137 |
+
msgstr ""
|
138 |
+
|
139 |
+
#: custom-post-type-ui.php:408
|
140 |
+
msgid "More parameter support"
|
141 |
+
msgstr ""
|
142 |
+
|
143 |
+
#: custom-post-type-ui.php:409
|
144 |
+
msgid ""
|
145 |
+
"We have added more parameters for greater customization of your post type "
|
146 |
+
"and taxonomy settings."
|
147 |
+
msgstr ""
|
148 |
+
|
149 |
+
#: custom-post-type-ui.php:412
|
150 |
+
msgid "New individual \"Get Code\" sections"
|
151 |
+
msgstr ""
|
152 |
+
|
153 |
+
#: custom-post-type-ui.php:413
|
154 |
+
msgid ""
|
155 |
+
"The \"Get Code\" area now has support for copy/paste of individual post "
|
156 |
+
"types and taxonomies."
|
157 |
+
msgstr ""
|
158 |
+
|
159 |
+
#: custom-post-type-ui.php:416
|
160 |
+
#, fuzzy
|
161 |
+
msgid "Template hierarchy reference"
|
162 |
+
msgstr "Hierarchischer Rewrite"
|
163 |
+
|
164 |
+
#: custom-post-type-ui.php:417
|
165 |
+
msgid ""
|
166 |
+
"To help aid your development with post types and taxonomies, we have added a "
|
167 |
+
"quick reference list of common template files you can use in your theme. "
|
168 |
+
"They will be listed on the \"Registered Types/Taxes\" screen."
|
169 |
+
msgstr ""
|
170 |
+
|
171 |
+
#: custom-post-type-ui.php:422
|
172 |
msgid "Help Support This Plugin!"
|
173 |
msgstr "Unterstütze die Entwicklung dieses Plugins!"
|
174 |
|
175 |
+
#: custom-post-type-ui.php:426
|
176 |
msgid "Professional WordPress<br />Third Edition"
|
177 |
msgstr "Professional WordPress<br />(Dritte Auflage)"
|
178 |
|
179 |
+
#: custom-post-type-ui.php:428
|
180 |
+
#, fuzzy
|
181 |
+
msgid "Professional WordPress Design and Development book cover."
|
182 |
+
msgstr "Professional WordPress<br />Plugin Development"
|
183 |
+
|
184 |
+
#: custom-post-type-ui.php:431
|
185 |
msgid ""
|
186 |
"The leading book on WordPress design and development! Brand new third "
|
187 |
"edition!"
|
189 |
"Das führende Buch zu WordPress Design und Entwicklung! Die brandneue dritte "
|
190 |
"Auflage!"
|
191 |
|
192 |
+
#: custom-post-type-ui.php:434
|
193 |
msgid "Professional WordPress<br />Plugin Development"
|
194 |
msgstr "Professional WordPress<br />Plugin Development"
|
195 |
|
196 |
+
#: custom-post-type-ui.php:436
|
197 |
+
#, fuzzy
|
198 |
+
msgid "Professional WordPress Pluing Development book cover."
|
199 |
+
msgstr "Professional WordPress<br />Plugin Development"
|
200 |
+
|
201 |
+
#: custom-post-type-ui.php:439
|
202 |
msgid "Highest rated WordPress development book on Amazon!"
|
203 |
msgstr ""
|
204 |
"Das am besten bewertete Buch zum Thema<br /> WordPress-Entwicklung auf "
|
205 |
"Amazon!"
|
206 |
|
207 |
+
#: custom-post-type-ui.php:442
|
208 |
msgid "PayPal Donation"
|
209 |
msgstr "PayPal Spende"
|
210 |
|
211 |
+
#: custom-post-type-ui.php:446
|
212 |
msgid "PayPal - The safer, easier way to pay online!"
|
213 |
msgstr "PayPal - Der sichere und einfache Weg online zu bezahlen!"
|
214 |
|
215 |
+
#: custom-post-type-ui.php:449
|
216 |
msgid "Please donate to the development of Custom Post Type UI:"
|
217 |
msgstr "Bitte unterstütze die Entwicklung <br />von Custom Post Type UI:"
|
218 |
|
219 |
+
#: custom-post-type-ui.php:475
|
220 |
#, php-format
|
221 |
msgid "%s version %s by %s"
|
222 |
msgstr "%s Version %s von den %s"
|
223 |
|
224 |
+
#: custom-post-type-ui.php:486
|
225 |
msgid "Please Report Bugs"
|
226 |
msgstr "Bitte Fehler melden"
|
227 |
|
228 |
+
#: custom-post-type-ui.php:489
|
229 |
msgid "Follow on Twitter:"
|
230 |
msgstr "Auf Twitter folgen:"
|
231 |
|
232 |
+
#: custom-post-type-ui.php:553
|
233 |
msgid "Manage Taxonomies"
|
234 |
msgstr "Verwalte Taxonomien"
|
235 |
|
236 |
+
#: custom-post-type-ui.php:557
|
237 |
msgid "Manage Post Types"
|
238 |
msgstr "Verwalte Post Types"
|
239 |
|
240 |
+
#: custom-post-type-ui.php:585
|
241 |
msgid "Add New Post Type"
|
242 |
msgstr "Neuen Post Type hinzufügen"
|
243 |
|
244 |
+
#: custom-post-type-ui.php:588
|
245 |
msgid "Edit Post Types"
|
246 |
msgstr "Post Types bearbeiten"
|
247 |
|
248 |
+
#: custom-post-type-ui.php:592
|
249 |
msgid "Add New Taxonomy"
|
250 |
msgstr "Neue Taxonomie hinzufügen"
|
251 |
|
252 |
+
#: custom-post-type-ui.php:595
|
253 |
msgid "Edit Taxonomies"
|
254 |
msgstr "Taxonomien bearbeiten"
|
255 |
|
256 |
+
#: custom-post-type-ui.php:599 inc/listings.php:13 inc/listings.php:171
|
|
|
257 |
msgid "Post Types"
|
258 |
msgstr "Post Types"
|
259 |
|
260 |
+
#: custom-post-type-ui.php:600 inc/import_export.php:393 inc/listings.php:24
|
261 |
+
#: inc/listings.php:161
|
262 |
msgid "Taxonomies"
|
263 |
msgstr "Taxonomien"
|
264 |
|
265 |
+
#: custom-post-type-ui.php:601
|
266 |
msgid "Get Code"
|
267 |
msgstr "Code erhalten"
|
268 |
|
269 |
+
#: custom-post-type-ui.php:602
|
270 |
+
msgid "Debug Info"
|
271 |
+
msgstr ""
|
272 |
+
|
273 |
+
#: custom-post-type-ui.php:685 inc/listings.php:22 inc/listings.php:170
|
274 |
+
#: inc/post-types.php:420 inc/taxonomies.php:402
|
275 |
msgid "Settings"
|
276 |
msgstr "Einstellungen"
|
277 |
|
278 |
+
#: custom-post-type-ui.php:685
|
279 |
msgid "Help"
|
280 |
msgstr "Hilfe"
|
281 |
|
282 |
+
#: custom-post-type-ui.php:714
|
283 |
#, php-format
|
284 |
msgid "%s has been successfully added"
|
285 |
msgstr "%s wurde erfolgreich hinzugefügt"
|
286 |
|
287 |
+
#: custom-post-type-ui.php:716
|
288 |
#, php-format
|
289 |
msgid "%s has failed to be added"
|
290 |
msgstr "%s konnte nicht hinzugefügt werden"
|
291 |
|
292 |
+
#: custom-post-type-ui.php:720
|
293 |
#, php-format
|
294 |
msgid "%s has been successfully updated"
|
295 |
msgstr "%s wurde erfolgreich aktualisiert"
|
296 |
|
297 |
+
#: custom-post-type-ui.php:722
|
298 |
#, php-format
|
299 |
msgid "%s has failed to be updated"
|
300 |
msgstr "%s konnte nicht aktualisiert werden"
|
301 |
|
302 |
+
#: custom-post-type-ui.php:726
|
303 |
#, php-format
|
304 |
msgid "%s has been successfully deleted"
|
305 |
msgstr "%s wurde erfolgreich gelöscht"
|
306 |
|
307 |
+
#: custom-post-type-ui.php:728
|
308 |
#, php-format
|
309 |
msgid "%s has failed to be deleted"
|
310 |
msgstr "%s konnte nicht gelöscht werden"
|
311 |
|
312 |
+
#: custom-post-type-ui.php:732
|
313 |
#, php-format
|
314 |
msgid "%s has been successfully imported"
|
315 |
msgstr "%s wurde erfolgreich importiert"
|
316 |
|
317 |
+
#: custom-post-type-ui.php:734
|
318 |
#, php-format
|
319 |
msgid "%s has failed to be imported"
|
320 |
msgstr "%s konnte nicht importiert werden"
|
321 |
|
322 |
+
#: custom-post-type-ui.php:817 custom-post-type-ui.php:834
|
323 |
#, php-format
|
324 |
msgid "Add new %s"
|
325 |
msgstr "Neue %s hinzufügen"
|
326 |
|
327 |
+
#: custom-post-type-ui.php:818 custom-post-type-ui.php:832 inc/listings.php:78
|
328 |
+
#: inc/listings.php:220
|
329 |
#, php-format
|
330 |
msgid "Edit %s"
|
331 |
msgstr "%s bearbeiten"
|
332 |
|
333 |
+
#: custom-post-type-ui.php:819
|
334 |
#, php-format
|
335 |
msgid "New %s"
|
336 |
msgstr "%s hinzufügen"
|
337 |
|
338 |
+
#: custom-post-type-ui.php:820
|
339 |
#, php-format
|
340 |
msgid "View %s"
|
341 |
msgstr "%s anzeigen"
|
342 |
|
343 |
+
#: custom-post-type-ui.php:821 custom-post-type-ui.php:829
|
344 |
#, php-format
|
345 |
msgid "All %s"
|
346 |
msgstr "Alle %s"
|
347 |
|
348 |
+
#: custom-post-type-ui.php:822 custom-post-type-ui.php:827
|
349 |
#, php-format
|
350 |
msgid "Search %s"
|
351 |
msgstr "%s durchsuchen"
|
352 |
|
353 |
+
#: custom-post-type-ui.php:823
|
354 |
#, php-format
|
355 |
msgid "No %s found."
|
356 |
msgstr "Keine %s gefunden."
|
357 |
|
358 |
+
#: custom-post-type-ui.php:824
|
359 |
#, php-format
|
360 |
msgid "No %s found in trash."
|
361 |
msgstr "Keine %s im Papierkorb gefunden."
|
362 |
|
363 |
+
#: custom-post-type-ui.php:828
|
364 |
#, php-format
|
365 |
msgid "Popular %s"
|
366 |
msgstr "Beliebte %s"
|
367 |
|
368 |
+
#: custom-post-type-ui.php:830
|
369 |
#, php-format
|
370 |
msgid "Parent %s"
|
371 |
msgstr "Übergeordnet %s"
|
372 |
|
373 |
+
#: custom-post-type-ui.php:831
|
374 |
#, php-format
|
375 |
msgid "Parent %s:"
|
376 |
msgstr "Übergeordnet %s:"
|
377 |
|
378 |
+
#: custom-post-type-ui.php:833
|
379 |
#, php-format
|
380 |
msgid "Update %s"
|
381 |
msgstr "%s aktualisieren"
|
382 |
|
383 |
+
#: custom-post-type-ui.php:835
|
384 |
#, php-format
|
385 |
msgid "New %s name"
|
386 |
msgstr "Neuer %s Name"
|
387 |
|
388 |
+
#: custom-post-type-ui.php:836
|
389 |
#, php-format
|
390 |
msgid "Separate %s with commas"
|
391 |
msgstr "%s mit Kommas trennen"
|
392 |
|
393 |
+
#: custom-post-type-ui.php:837
|
394 |
#, php-format
|
395 |
msgid "Add or remove %s"
|
396 |
msgstr "%s hinzufügen oder entfernen"
|
397 |
|
398 |
+
#: custom-post-type-ui.php:838
|
399 |
#, php-format
|
400 |
msgid "Choose from the most used %s"
|
401 |
msgstr "Aus den am häufigsten verwendeten %s auswählen"
|
402 |
|
403 |
+
#: inc/import_export.php:77
|
404 |
+
msgid "No taxonomies to display at this time"
|
405 |
+
msgstr "Es gibt keine Taxonomien zum Anzeigen."
|
406 |
+
|
407 |
+
#: inc/import_export.php:184
|
408 |
+
msgid "No post types to display at this time"
|
409 |
+
msgstr "Es gibt keine Post Types zum Anzeigen."
|
410 |
+
|
411 |
+
#: inc/import_export.php:372
|
412 |
+
msgid "Post types"
|
413 |
+
msgstr "Post Types"
|
414 |
+
|
415 |
+
#: inc/import_export.php:404
|
416 |
msgid ""
|
417 |
"If you are wanting to migrate registered post types or taxonomies from this "
|
418 |
"site to another, that will also use Custom Post Type UI, use the import and "
|
425 |
"Rücken zukehren wollen dann folge bitte den Informationen im \"Code "
|
426 |
"erhalten“-Reiter."
|
427 |
|
428 |
+
#: inc/import_export.php:407
|
429 |
msgid "NOTE"
|
430 |
msgstr "Anmerkung"
|
431 |
|
432 |
+
#: inc/import_export.php:408
|
433 |
+
#, fuzzy
|
434 |
+
msgid ""
|
435 |
+
"This will not export the associated posts or taxonomy terms, just the "
|
436 |
+
"settings."
|
437 |
msgstr ""
|
438 |
"Es werden nur die Einstellungen exportiert, nicht die dazugehörigen Beiträge."
|
439 |
|
440 |
+
#: inc/import_export.php:415
|
441 |
msgid "Import Post Types"
|
442 |
msgstr "Post Types importieren"
|
443 |
|
444 |
+
#: inc/import_export.php:419 inc/import_export.php:459
|
445 |
msgid "Paste content here."
|
446 |
msgstr "Inhalt hier einfügen."
|
447 |
|
448 |
+
#: inc/import_export.php:422 inc/import_export.php:462
|
449 |
msgid "Note:"
|
450 |
msgstr "Anmerkung:"
|
451 |
|
452 |
+
#: inc/import_export.php:422 inc/import_export.php:462
|
453 |
msgid "Importing will overwrite previous registered settings."
|
454 |
msgstr "Der Import wird die aktuell aktiven Einstellungen überschreiben."
|
455 |
|
456 |
+
#: inc/import_export.php:426
|
457 |
msgid ""
|
458 |
"To import post types from a different WordPress site, paste the exported "
|
459 |
"content from that site and click the \"Import\" button."
|
461 |
"Um die Post Types einer anderen WordPress-Seite zu importieren, füge deren "
|
462 |
"exportierte Inhalte ein und klicke den \"Importieren“-Button."
|
463 |
|
464 |
+
#: inc/import_export.php:430 inc/import_export.php:470
|
465 |
msgid "Import"
|
466 |
msgstr "Importieren"
|
467 |
|
468 |
+
#: inc/import_export.php:435
|
469 |
msgid "Export Post Types"
|
470 |
msgstr "Post Types exportieren"
|
471 |
|
472 |
+
#: inc/import_export.php:442
|
473 |
msgid "No post types registered yet."
|
474 |
msgstr "Es wurden noch keine Post Types erstellt."
|
475 |
|
476 |
+
#: inc/import_export.php:445 inc/import_export.php:485
|
477 |
msgid ""
|
478 |
"To copy the system info, click below then press Ctrl + C (PC) or Cmd + C "
|
479 |
"(Mac)."
|
481 |
"Um die System-Informationen zu kopieren, klicke unten und drücken dann Ctrl "
|
482 |
"+ C am PC oder Cmd + C am Mac."
|
483 |
|
484 |
+
#: inc/import_export.php:448
|
485 |
msgid ""
|
486 |
"Use the content above to import current post types into a different "
|
487 |
"WordPress site. You can also use this to simply back up your post type "
|
491 |
"Post Types in eine andere WordPress Webseite zu importieren. Du kannst dies "
|
492 |
"ebenso einfach dazu benutzen um Deine Post Type-Einstellungen zu sichern."
|
493 |
|
494 |
+
#: inc/import_export.php:455
|
495 |
msgid "Import Taxonomies"
|
496 |
msgstr "Taxonomien importieren"
|
497 |
|
498 |
+
#: inc/import_export.php:466
|
499 |
msgid ""
|
500 |
"To import taxonomies from a different WordPress site, paste the exported "
|
501 |
"content from that site and click the \"Import\" button."
|
504 |
"die Zwischenablage die exportierten Inhalte dieser Seite ein und klicke den "
|
505 |
"\"Importieren“-Button."
|
506 |
|
507 |
+
#: inc/import_export.php:475
|
508 |
msgid "Export Taxonomies"
|
509 |
msgstr "Taxonomien exportieren"
|
510 |
|
511 |
+
#: inc/import_export.php:482
|
512 |
msgid "No taxonomies registered yet."
|
513 |
msgstr "Es wurden noch keine Taxonomien definiert."
|
514 |
|
515 |
+
#: inc/import_export.php:488
|
516 |
msgid ""
|
517 |
"Use the content above to import current taxonomies into a different "
|
518 |
"WordPress site. You can also use this to simply back up your taxonomy "
|
522 |
"Taxonomien in eine andere WordPress Webseite zu importieren. Du kannst dies "
|
523 |
"ebenso einfach dazu benutzen um Deine Taxonomie-Einstellungen zu sichern."
|
524 |
|
525 |
+
#: inc/import_export.php:499
|
526 |
msgid "Get Post Type and Taxonomy Code"
|
527 |
msgstr "Erhalte Post Type- und Taxonomie-Code"
|
528 |
|
529 |
+
#: inc/import_export.php:501
|
530 |
msgid "All CPT UI Post Types"
|
531 |
msgstr "Alle CPT UI-Post Types"
|
532 |
|
533 |
+
#: inc/import_export.php:504 inc/import_export.php:513
|
534 |
+
#: inc/import_export.php:521 inc/import_export.php:530
|
535 |
msgid "Copy/paste the code below into your functions.php file."
|
536 |
msgstr ""
|
537 |
"Kopiere den Code in die Zwischenablage und füge ihn im Anschluss in Deine "
|
538 |
"functions.php-Datei ein."
|
539 |
|
540 |
+
#: inc/import_export.php:512
|
541 |
+
#, php-format
|
542 |
+
msgid "%s Post Type"
|
543 |
+
msgstr "%s Post Type"
|
544 |
+
|
545 |
+
#: inc/import_export.php:518
|
546 |
msgid "All CPT UI Taxonomies"
|
547 |
msgstr "Alle CPT UI-Taxonomien"
|
548 |
|
549 |
+
#: inc/import_export.php:529
|
550 |
+
#, php-format
|
551 |
+
msgid "%s Taxonomy"
|
552 |
+
msgstr "%s Taxonomie"
|
553 |
|
554 |
+
#: inc/import_export.php:549
|
555 |
+
msgid "Please provide an email address to send debug information to: "
|
556 |
+
msgstr ""
|
557 |
|
558 |
+
#: inc/import_export.php:551
|
559 |
+
msgid "Send debug info"
|
560 |
+
msgstr ""
|
561 |
|
562 |
#: inc/listings.php:10
|
563 |
msgid "Post Types and Taxonomies registered by Custom Post Type UI."
|
564 |
msgstr "In Custom Post Type UI registrierte Post Types und Taxonomien."
|
565 |
|
566 |
+
#: inc/listings.php:16 inc/listings.php:164
|
567 |
#, php-format
|
568 |
msgid "Total count: %d"
|
569 |
msgstr "Anzahl: %d"
|
570 |
|
571 |
+
#: inc/listings.php:21
|
572 |
msgid "Post Type"
|
573 |
msgstr "Post Type"
|
574 |
|
575 |
+
#: inc/listings.php:23 inc/post-types.php:754
|
576 |
msgid "Supports"
|
577 |
msgstr "Unterstützt"
|
578 |
|
579 |
+
#: inc/listings.php:25 inc/listings.php:172 inc/post-types.php:258
|
580 |
+
#: inc/taxonomies.php:260
|
581 |
msgid "Labels"
|
582 |
msgstr "Beschriftungen"
|
583 |
|
584 |
+
#: inc/listings.php:26 inc/listings.php:173
|
585 |
+
#, fuzzy
|
586 |
+
msgid "Template Hierarchy"
|
587 |
+
msgstr "Hierarchischer Rewrite"
|
588 |
|
589 |
+
#: inc/listings.php:81
|
590 |
msgid "View frontend archive"
|
591 |
msgstr "Frontend-Archiv anzeigen"
|
592 |
|
593 |
+
#: inc/listings.php:114 inc/listings.php:249
|
594 |
msgid "No custom labels to display"
|
595 |
msgstr "Keine benutzerdefinierten Beschriftungen zum Anzeigen"
|
596 |
|
597 |
+
#: inc/listings.php:119
|
598 |
+
msgid "Archives file name examples."
|
599 |
+
msgstr ""
|
600 |
+
|
601 |
+
#: inc/listings.php:125
|
602 |
+
msgid "Single Posts file name examples."
|
603 |
+
msgstr ""
|
604 |
+
|
605 |
+
#: inc/listings.php:134 inc/listings.php:267
|
606 |
+
msgid "Template hierarchy Theme Handbook"
|
607 |
+
msgstr ""
|
608 |
+
|
609 |
+
#: inc/listings.php:152
|
610 |
+
#, php-format
|
611 |
+
msgid "No post types registered for display. Visit %s to get started."
|
612 |
+
msgstr ""
|
613 |
+
"Es wurden noch keine Post Types für die Darstellung erstellt. Besuche %s um "
|
614 |
+
"jetzt damit zu beginnen."
|
615 |
+
|
616 |
+
#: inc/listings.php:169
|
617 |
msgid "Taxonomy"
|
618 |
msgstr "Taxonomie"
|
619 |
|
620 |
+
#: inc/listings.php:254
|
621 |
+
#, fuzzy
|
622 |
+
msgid "Archives"
|
623 |
+
msgstr ""
|
624 |
+
"Sie müssen Ihren neu erstellten Post Type zu der Gruppe hinzufügen nach der "
|
625 |
+
"die Kategorie- und Ettiketten-Archive durchsucht werden. Sie finden ein "
|
626 |
+
"Tutorial dazu unter %s"
|
627 |
+
|
628 |
+
#: inc/listings.php:263
|
629 |
+
msgid "*Replace \"term_slug\" with the slug of the actual taxonomy term."
|
630 |
+
msgstr ""
|
631 |
+
|
632 |
+
#: inc/listings.php:284
|
633 |
+
#, php-format
|
634 |
+
msgid "No taxonomies registered for display. Visit %s to get started."
|
635 |
+
msgstr ""
|
636 |
+
"Es wurden noch keine Taxonomien für die Darstellung erstellt. Besuche %s um "
|
637 |
+
"jetzt damit zu beginnen."
|
638 |
+
|
639 |
+
#: inc/post-types.php:34 inc/taxonomies.php:29
|
640 |
msgid "Are you sure you want to delete this?"
|
641 |
msgstr "Bist Du sicher, dass Du dies löschen möchtest?"
|
642 |
|
643 |
+
#: inc/post-types.php:93
|
644 |
msgid ""
|
645 |
"DO NOT EDIT the post type slug unless necessary. Changing that value "
|
646 |
"registers a new post type entry for your install."
|
649 |
"notwendig ist. Die Änderung des Namens registriert einen neue Post Type "
|
650 |
"Eintrag für Deine Installation."
|
651 |
|
652 |
+
#: inc/post-types.php:94
|
653 |
msgid ""
|
654 |
"Use appropriate checkbox above save/delete buttons if you wish to change "
|
655 |
"slugs and update post types for existing posts."
|
658 |
"Kurzlink ändern willst und den Post Type für bereits existierende Beiträge "
|
659 |
"anpassen willst."
|
660 |
|
661 |
+
#: inc/post-types.php:95 inc/taxonomies.php:90
|
662 |
msgid "Select: "
|
663 |
+
msgstr "Auswählen: "
|
664 |
|
665 |
+
#: inc/post-types.php:107 inc/taxonomies.php:102
|
666 |
msgid "Select"
|
667 |
msgstr "Auswählen"
|
668 |
|
669 |
+
#: inc/post-types.php:137
|
670 |
msgid "Post Type Slug"
|
671 |
msgstr "Post Type-Kurzlink"
|
672 |
|
673 |
+
#: inc/post-types.php:138
|
674 |
msgid "(e.g. movie)"
|
675 |
msgstr "(z. B. film)"
|
676 |
|
677 |
+
#: inc/post-types.php:139
|
678 |
msgid ""
|
679 |
"The post type name. Used to retrieve custom post type content. Should be "
|
680 |
"short and unique"
|
682 |
"Der Post Type-Name. Er wird zum Abrufen der Custom Post Type-Inhalte "
|
683 |
"verwendet. Er sollte kurz, prägnant und ein Unikat sein."
|
684 |
|
685 |
+
#: inc/post-types.php:150 inc/taxonomies.php:140
|
686 |
msgid "Plural Label"
|
687 |
msgstr "Beschriftung (Plural)"
|
688 |
|
689 |
+
#: inc/post-types.php:151
|
690 |
msgid "(e.g. Movies)"
|
691 |
msgstr "(z. B. Filme)"
|
692 |
|
693 |
+
#: inc/post-types.php:152 inc/post-types.php:279 inc/post-types.php:291
|
694 |
+
#: inc/post-types.php:303 inc/post-types.php:315 inc/post-types.php:327
|
695 |
+
#: inc/post-types.php:339 inc/post-types.php:351 inc/post-types.php:363
|
696 |
+
#: inc/post-types.php:375 inc/post-types.php:387 inc/post-types.php:399
|
697 |
+
#: inc/post-types.php:411
|
698 |
msgid "Post type label. Used in the admin menu for displaying post types."
|
699 |
msgstr ""
|
700 |
"Custom Post Type-Beschriftung (Plural). Sie wird im Admin-Menü dazu "
|
701 |
"verwendet den Post Type anzuzeigen."
|
702 |
|
703 |
+
#: inc/post-types.php:162 inc/taxonomies.php:149
|
704 |
msgid "Singular Label"
|
705 |
msgstr "Beschriftung (Singular)"
|
706 |
|
707 |
+
#: inc/post-types.php:163
|
708 |
msgid "(e.g. Movie)"
|
709 |
msgstr "(z. B. Film)"
|
710 |
|
711 |
+
#: inc/post-types.php:164
|
712 |
msgid ""
|
713 |
"Custom Post Type Singular label. Used in WordPress when a singular label is "
|
714 |
"needed."
|
716 |
"Custom Post Type-Beschriftung (Singular). Wird in WordPress verwendet wenn "
|
717 |
"Beschriftungen in der Einzahl benötigt werden."
|
718 |
|
719 |
+
#: inc/post-types.php:180 inc/taxonomies.php:166
|
720 |
msgid "Description"
|
721 |
msgstr "Beschreibung"
|
722 |
|
723 |
+
#: inc/post-types.php:181
|
724 |
msgid ""
|
725 |
"Custom Post Type Description. Describe what your custom post type is used "
|
726 |
"for."
|
728 |
"Custom Post Type-Beschreibung. Beschreibt für was der Custom Post Type "
|
729 |
"verwendet wird."
|
730 |
|
731 |
+
#: inc/post-types.php:193
|
732 |
msgid "Migrate posts to newly renamed post type?"
|
733 |
msgstr ""
|
734 |
"Sollen die Beiträge in den neuen umbenannten Post Type übertragen werden?"
|
735 |
|
736 |
+
#: inc/post-types.php:194
|
737 |
msgid "Check this to migrate posts if and when renaming your post type."
|
738 |
msgstr ""
|
739 |
"Hake dies an um Beiträge zu übertragen im Falle dessen dass Du Deinen Post "
|
740 |
"Type umbenennen willst."
|
741 |
|
742 |
+
#: inc/post-types.php:213
|
743 |
msgid "Save Post Type"
|
744 |
msgstr "Post Type speichern"
|
745 |
|
746 |
+
#: inc/post-types.php:224
|
747 |
msgid "Delete Post Type"
|
748 |
msgstr "Post Type löschen"
|
749 |
|
750 |
+
#: inc/post-types.php:236
|
751 |
msgid "Add Post Type"
|
752 |
msgstr "Post Type hinzufügen"
|
753 |
|
754 |
+
#: inc/post-types.php:247 inc/taxonomies.php:249
|
755 |
msgid "Starter Notes"
|
756 |
msgstr "Tips für Einsteiger"
|
757 |
|
758 |
+
#: inc/post-types.php:250
|
759 |
#, php-format
|
760 |
msgid ""
|
761 |
"Post Type names should have %smax 20 characters%s, and only contain "
|
769 |
"Reservierte und schon vergebene Post Type-Namen sind post, page, attachment, "
|
770 |
"revision, nav_menu_item."
|
771 |
|
772 |
+
#: inc/post-types.php:251
|
773 |
#, php-format
|
774 |
msgid ""
|
775 |
"If you are unfamiliar with the advanced post type settings, just fill in the "
|
785 |
"erstellt. Für weitergehende Informationen fahre mit dem Mauszeiger über die "
|
786 |
"roten Fragezeichen."
|
787 |
|
788 |
+
#: inc/post-types.php:252
|
789 |
#, php-format
|
790 |
msgid ""
|
791 |
"Deleting custom post types will %sNOT%s delete any content into the database "
|
796 |
"der Datenbank. Du kannst Deine Post Types leicht erneut erstellen und die "
|
797 |
"bereits eingegebenen Inhalte sind wieder sicht- und bearbeitbar."
|
798 |
|
799 |
+
#: inc/post-types.php:266 inc/taxonomies.php:270
|
800 |
msgid "Menu Name"
|
801 |
msgstr "Menü-Name"
|
802 |
|
803 |
+
#: inc/post-types.php:267
|
804 |
msgid "Custom menu name for your custom post type."
|
805 |
msgstr "Benutzerdefinierter Menü-Name für Deinen Custom Post Type."
|
806 |
|
807 |
+
#: inc/post-types.php:271
|
808 |
msgid "(e.g. My Movies)"
|
809 |
msgstr "(z. B. Mein Film)"
|
810 |
|
811 |
+
#: inc/post-types.php:278 inc/taxonomies.php:279
|
812 |
msgid "All Items"
|
813 |
msgstr "Alle Einträge"
|
814 |
|
815 |
+
#: inc/post-types.php:283
|
816 |
msgid "(e.g. All Movies)"
|
817 |
msgstr "(z. B. Alle Filme)"
|
818 |
|
819 |
+
#: inc/post-types.php:290
|
820 |
msgid "Add New"
|
821 |
msgstr "Neu"
|
822 |
|
823 |
+
#: inc/post-types.php:295
|
824 |
msgid "(e.g. Add New)"
|
825 |
msgstr "(z. B. Neuen hinzufügen)"
|
826 |
|
827 |
+
#: inc/post-types.php:302 inc/taxonomies.php:315
|
828 |
msgid "Add New Item"
|
829 |
msgstr "Neuen Eintrag erstellen"
|
830 |
|
831 |
+
#: inc/post-types.php:307
|
832 |
msgid "(e.g. Add New Movie)"
|
833 |
msgstr "(z. B. Neuen Film hinzufügen)"
|
834 |
|
835 |
+
#: inc/post-types.php:314
|
836 |
+
msgid "Edit"
|
837 |
+
msgstr "Bearbeiten"
|
838 |
+
|
839 |
+
#: inc/post-types.php:319
|
840 |
msgid "(e.g. Edit)"
|
841 |
msgstr "(z. B. Bearbeiten)"
|
842 |
|
843 |
+
#: inc/post-types.php:326 inc/taxonomies.php:288
|
844 |
msgid "Edit Item"
|
845 |
msgstr "Eintrag bearbeiten"
|
846 |
|
847 |
+
#: inc/post-types.php:331
|
848 |
msgid "(e.g. Edit Movie)"
|
849 |
msgstr "(z. B. Film bearbeiten)"
|
850 |
|
851 |
+
#: inc/post-types.php:338
|
852 |
msgid "New Item"
|
853 |
msgstr "Neuer Eintrag"
|
854 |
|
855 |
+
#: inc/post-types.php:343
|
856 |
msgid "(e.g. New Movie)"
|
857 |
msgstr "(z. B. Neuer Film)"
|
858 |
|
859 |
+
#: inc/post-types.php:350
|
860 |
msgid "View"
|
861 |
msgstr "Anzeigen"
|
862 |
|
863 |
+
#: inc/post-types.php:355
|
864 |
msgid "(e.g. View)"
|
865 |
msgstr "(z. B. Anzeigen)"
|
866 |
|
867 |
+
#: inc/post-types.php:362 inc/taxonomies.php:297
|
868 |
msgid "View Item"
|
869 |
msgstr "Eintrag anzeigen"
|
870 |
|
871 |
+
#: inc/post-types.php:367
|
872 |
msgid "(e.g. View Movie)"
|
873 |
msgstr "(z. B. Film anzeigen)"
|
874 |
|
875 |
+
#: inc/post-types.php:374
|
876 |
msgid "Search Item"
|
877 |
msgstr "Eintrag suchen"
|
878 |
|
879 |
+
#: inc/post-types.php:379
|
880 |
msgid "(e.g. Search Movie)"
|
881 |
msgstr "(z. B. Film suchen)"
|
882 |
|
883 |
+
#: inc/post-types.php:386
|
884 |
msgid "Not Found"
|
885 |
msgstr "Nicht gefunden"
|
886 |
|
887 |
+
#: inc/post-types.php:391
|
888 |
msgid "(e.g. No Movies found)"
|
889 |
msgstr "(z. B. Keine Filme gefunden)"
|
890 |
|
891 |
+
#: inc/post-types.php:398
|
892 |
msgid "Not Found in Trash"
|
893 |
msgstr "Es wurde kein Eintrag im Papierkorb gefunden"
|
894 |
|
895 |
+
#: inc/post-types.php:403
|
896 |
msgid "(e.g. No Movies found in Trash)"
|
897 |
msgstr "(z. B. Keine Filme im Papierkorb gefunden)"
|
898 |
|
899 |
+
#: inc/post-types.php:410
|
900 |
msgid "Parent"
|
901 |
msgstr "Übergeordnet"
|
902 |
|
903 |
+
#: inc/post-types.php:415
|
904 |
msgid "(e.g. Parent Movie)"
|
905 |
msgstr "(z. B. Übergeordneter Film)"
|
906 |
|
907 |
+
#: inc/post-types.php:429 inc/post-types.php:449 inc/post-types.php:469
|
908 |
+
#: inc/post-types.php:489 inc/post-types.php:526 inc/post-types.php:558
|
909 |
+
#: inc/post-types.php:589 inc/post-types.php:609 inc/post-types.php:641
|
910 |
+
#: inc/post-types.php:661 inc/post-types.php:716 inc/taxonomies.php:408
|
911 |
+
#: inc/taxonomies.php:425 inc/taxonomies.php:442 inc/taxonomies.php:468
|
912 |
+
#: inc/taxonomies.php:494 inc/taxonomies.php:511 inc/taxonomies.php:528
|
913 |
+
#: inc/taxonomies.php:548
|
914 |
msgid "False"
|
915 |
msgstr "deaktiviert"
|
916 |
|
917 |
+
#: inc/post-types.php:430 inc/post-types.php:450 inc/post-types.php:470
|
918 |
+
#: inc/post-types.php:490 inc/post-types.php:527 inc/post-types.php:559
|
919 |
+
#: inc/post-types.php:590 inc/post-types.php:610 inc/post-types.php:642
|
920 |
+
#: inc/post-types.php:662 inc/post-types.php:717 inc/taxonomies.php:409
|
921 |
+
#: inc/taxonomies.php:426 inc/taxonomies.php:443 inc/taxonomies.php:469
|
922 |
+
#: inc/taxonomies.php:495 inc/taxonomies.php:512 inc/taxonomies.php:529
|
923 |
+
#: inc/taxonomies.php:549
|
924 |
msgid "True"
|
925 |
msgstr "aktiviert"
|
926 |
|
927 |
+
#: inc/post-types.php:438
|
928 |
msgid "Public"
|
929 |
msgstr "Öffentlich"
|
930 |
|
931 |
+
#: inc/post-types.php:439
|
932 |
+
msgid "(CPTUI default: True.)"
|
933 |
+
msgstr "(CPTUI Voreinstellung: aktiviert)"
|
|
|
|
|
934 |
|
935 |
+
#: inc/post-types.php:440
|
936 |
msgid ""
|
937 |
+
"WordPress core defaults to false. CPTUI defaults to true for user sake. "
|
938 |
"Whether posts of this type should be shown in the admin UI and is publicly "
|
939 |
"queryable."
|
940 |
msgstr ""
|
941 |
"Ob Beiträge dieses Typs im Admin Interface angezeigt werden sollen und "
|
942 |
+
"öffentlich durchsuchbar sind. Standardmäßig ist dies im WordPress Core "
|
943 |
+
"deaktiviert. Zur besseren Benutzbarkeit ist dies in CPTUI dagegen "
|
944 |
+
"standardmäßig aktiviert."
|
945 |
|
946 |
+
#: inc/post-types.php:458 inc/taxonomies.php:434
|
947 |
msgid "Show UI"
|
948 |
msgstr "Benutzeroberfläche anzeigen"
|
949 |
|
950 |
+
#: inc/post-types.php:459 inc/post-types.php:619 inc/post-types.php:651
|
951 |
+
#: inc/post-types.php:671 inc/post-types.php:725 inc/taxonomies.php:435
|
952 |
+
#: inc/taxonomies.php:452 inc/taxonomies.php:478
|
953 |
+
msgid "(default: True)"
|
954 |
+
msgstr "(Voreinstellung: aktiviert)"
|
955 |
+
|
956 |
+
#: inc/post-types.php:460
|
957 |
msgid "Whether to generate a default UI for managing this post type."
|
958 |
msgstr ""
|
959 |
"Soll für die Verwaltung dieses Post Types eine Standard-Benutzeroberfläche "
|
960 |
"angelegt werden."
|
961 |
|
962 |
+
#: inc/post-types.php:478
|
963 |
+
#, fuzzy
|
964 |
+
msgid "Show in Nav Menus"
|
965 |
+
msgstr "Im Menü anzeigen"
|
966 |
+
|
967 |
+
#: inc/post-types.php:479
|
968 |
+
#, fuzzy
|
969 |
+
msgid "(CPTUI default: true)"
|
970 |
+
msgstr "(CPTUI Voreinstellung: aktiviert)"
|
971 |
+
|
972 |
+
#: inc/post-types.php:480
|
973 |
+
msgid "Whether post type is available for selection in navigation menus."
|
974 |
+
msgstr ""
|
975 |
+
|
976 |
+
#: inc/post-types.php:498 inc/taxonomies.php:557
|
977 |
+
msgid "Show in REST API"
|
978 |
+
msgstr "In der REST API anzeigen"
|
979 |
+
|
980 |
+
#: inc/post-types.php:499 inc/post-types.php:535 inc/post-types.php:568
|
981 |
+
#: inc/post-types.php:599 inc/taxonomies.php:418 inc/taxonomies.php:538
|
982 |
+
#: inc/taxonomies.php:558
|
983 |
+
msgid "(default: False)"
|
984 |
+
msgstr "(Voreinstellung: deaktiviert)"
|
985 |
+
|
986 |
+
#: inc/post-types.php:500
|
987 |
+
msgid "Whether to show this post type data in the WP REST API."
|
988 |
+
msgstr ""
|
989 |
+
"Ob die Daten des Post Types in der WP REST API angezeigt werden sollen."
|
990 |
+
|
991 |
+
#: inc/post-types.php:508 inc/taxonomies.php:567
|
992 |
+
msgid "REST API base slug"
|
993 |
+
msgstr ""
|
994 |
+
|
995 |
+
#: inc/post-types.php:509 inc/taxonomies.php:568
|
996 |
+
#, fuzzy
|
997 |
+
msgid "Slug to use in REST API URLs."
|
998 |
+
msgstr "In der REST API anzeigen"
|
999 |
+
|
1000 |
+
#: inc/post-types.php:519
|
1001 |
msgid "Has Archive"
|
1002 |
msgstr "Hat ein Archiv"
|
1003 |
|
1004 |
+
#: inc/post-types.php:520
|
1005 |
msgid "Whether the post type will have a post type archive URL."
|
1006 |
msgstr "Ob der Post Type eine Post Type-Archiv URL hat."
|
1007 |
|
1008 |
+
#: inc/post-types.php:521
|
1009 |
msgid "If left blank, the archive slug will default to the post type slug."
|
1010 |
msgstr ""
|
1011 |
"Wird das Feld leer gelassen wird der Archiv-Kurzlink standardmäßig auf den "
|
1012 |
"Post Type-Kurzlink gesetzt."
|
1013 |
|
1014 |
+
#: inc/post-types.php:547
|
|
|
|
|
|
|
|
|
|
|
1015 |
msgid "Slug to be used for archive URL."
|
1016 |
msgstr "Der Kurzlink der für die Archiv URL verwendet wird."
|
1017 |
|
1018 |
+
#: inc/post-types.php:567
|
1019 |
msgid "Exclude From Search"
|
1020 |
msgstr "Von der Suche ausschließen"
|
1021 |
|
1022 |
+
#: inc/post-types.php:569
|
1023 |
msgid ""
|
1024 |
"Whether to exclude posts with this post type from front end search results."
|
1025 |
msgstr ""
|
1026 |
"Ob Beiträge dieses Post Types von den Suchergebnissen im Front End "
|
1027 |
"ausgeschlossen werden sollen."
|
1028 |
|
1029 |
+
#: inc/post-types.php:580
|
1030 |
msgid "Capability Type"
|
1031 |
msgstr "Fähigkeiten"
|
1032 |
|
1033 |
+
#: inc/post-types.php:581
|
1034 |
msgid "The post type to use for checking read, edit, and delete capabilities"
|
1035 |
msgstr ""
|
1036 |
"Der Post Type der herangezogen wird um auf die Befähigung zum Lesen, "
|
1037 |
"Bearbeiten und Löschen zu prüfen"
|
1038 |
|
1039 |
+
#: inc/post-types.php:598 inc/taxonomies.php:417
|
1040 |
msgid "Hierarchical"
|
1041 |
msgstr "Hierarchisch"
|
1042 |
|
1043 |
+
#: inc/post-types.php:600
|
1044 |
msgid "Whether the post type can have parent-child relationships"
|
1045 |
msgstr "Darf der Post Type hierarchische Beziehungen haben"
|
1046 |
|
1047 |
+
#: inc/post-types.php:618 inc/taxonomies.php:477
|
1048 |
msgid "Rewrite"
|
1049 |
msgstr "Rewrite"
|
1050 |
|
1051 |
+
#: inc/post-types.php:620
|
1052 |
msgid "Whether or not WordPress should use rewrites for this post type"
|
1053 |
msgstr "Ob WordPress Rewrites für diesen Post Type verwenden soll oder nicht"
|
1054 |
|
1055 |
+
#: inc/post-types.php:631 inc/taxonomies.php:488
|
1056 |
msgid "Custom Rewrite Slug"
|
1057 |
msgstr "Benutzerdefinierter Rewrite-Kurzlink"
|
1058 |
|
1059 |
+
#: inc/post-types.php:632
|
1060 |
msgid "(default: post type slug)"
|
1061 |
msgstr "(Voreinstellung: Post Type-Kurzlink)"
|
1062 |
|
1063 |
+
#: inc/post-types.php:633
|
1064 |
msgid "Custom post type slug to use instead of the default."
|
1065 |
msgstr ""
|
1066 |
"Benutzerdefinierter Post Type-Kurzlink welcher anstelle des standardmässigen "
|
1067 |
"benutzt werden soll."
|
1068 |
|
1069 |
+
#: inc/post-types.php:650
|
1070 |
msgid "With Front"
|
1071 |
msgstr "Front Base voranstellen"
|
1072 |
|
1073 |
+
#: inc/post-types.php:652 inc/taxonomies.php:505
|
1074 |
msgid "Should the permastruct be prepended with the front base."
|
1075 |
msgstr "Soll die Front Base der Permalink Struktur vorangestellt werden."
|
1076 |
|
1077 |
+
#: inc/post-types.php:670 inc/taxonomies.php:451
|
1078 |
msgid "Query Var"
|
1079 |
msgstr "Abfrage Variable"
|
1080 |
|
1081 |
+
#: inc/post-types.php:672
|
1082 |
msgid "Sets the query_var key for this post type."
|
1083 |
msgstr "Definiere einen Abfrage Variablen-Kurzlink für diesen Post Type."
|
1084 |
|
1085 |
+
#: inc/post-types.php:683
|
1086 |
+
msgid "Custom Query Var Slug"
|
1087 |
+
msgstr "Benutzerdefinierter Query Var-Kurzlink"
|
1088 |
+
|
1089 |
+
#: inc/post-types.php:684
|
1090 |
+
msgid "(default: post type slug) Query var needs to be true to use."
|
1091 |
+
msgstr ""
|
1092 |
+
"(Voreinstellung: Post Type Kurzlink) Die Abfrage-Variable muss zur Nutzung "
|
1093 |
+
"aktiviert sein."
|
1094 |
+
|
1095 |
+
#: inc/post-types.php:685
|
1096 |
+
msgid "Custom query var slug to use instead of the default."
|
1097 |
+
msgstr ""
|
1098 |
+
"Verwende einen benutzerdefinierten Abfrage-Variable-Kurzlink anstelle des "
|
1099 |
+
"standardmäßigen."
|
1100 |
+
|
1101 |
+
#: inc/post-types.php:692
|
1102 |
msgid "Menu Position"
|
1103 |
msgstr "Menü Position"
|
1104 |
|
1105 |
+
#: inc/post-types.php:693
|
1106 |
msgid ""
|
1107 |
"The position in the menu order the post type should appear. show_in_menu "
|
1108 |
"must be true."
|
1110 |
"An welcher Position im Menü soll der Post Type angezeigt werden. \"Im Menü "
|
1111 |
"anzeigen\" muss dafür aktiviert sein."
|
1112 |
|
1113 |
+
#: inc/post-types.php:694
|
|
|
1114 |
msgid ""
|
1115 |
"See <a href=\"http://codex.wordpress.org/Function_Reference/"
|
1116 |
"register_post_type#Parameters\" target=\"_blank\">Available options</a> in "
|
1117 |
"the \"menu_position\" section. Range of 5-100"
|
1118 |
msgstr ""
|
1119 |
+
"Lies mehr zu den <a href=„http://codex.wordpress.org/Function_Reference/"
|
1120 |
+
"register_post_type#Parameters“ target=\"_blank\">verfügbaren "
|
1121 |
+
"Einstellungsmöglichkeiten</a> für die „Menü Position“ Funktion. Die "
|
1122 |
+
"möglichen Werte reichen von 5 bis 100."
|
1123 |
|
1124 |
+
#: inc/post-types.php:709
|
1125 |
msgid "Show in Menu"
|
1126 |
msgstr "Im Menü anzeigen"
|
1127 |
|
1128 |
+
#: inc/post-types.php:710
|
1129 |
msgid ""
|
1130 |
"Whether to show the post type in the admin menu and where to show that menu."
|
1131 |
msgstr "Ob der Post Type im Admin Menü angezeigt werden soll und wenn ja wo."
|
1132 |
|
1133 |
+
#: inc/post-types.php:711
|
1134 |
msgid ""
|
1135 |
"\"Show UI\" must be \"true\". If an existing top level page such as \"tools."
|
1136 |
"php\" is indicated for second input, post type will be sub menu of that."
|
1139 |
"Level übergeordnete Seite wie z. B. \"tools.php\" im dazugehörigen Feld "
|
1140 |
"angegeben sein wird der Post Type als Untermenü davon angezeigt."
|
1141 |
|
1142 |
+
#: inc/post-types.php:737
|
1143 |
msgid "Top-level page file name to make post type a sub-menu of."
|
1144 |
msgstr ""
|
1145 |
"Top-Level Seiten Dateiname bei dem der Post Type als Submenü eingefügt wird."
|
1146 |
|
1147 |
+
#: inc/post-types.php:749
|
1148 |
msgid "Menu Icon"
|
1149 |
msgstr "Menü-Icon"
|
1150 |
|
1151 |
+
#: inc/post-types.php:750
|
1152 |
msgid "(Full URL for icon or Dashicon class)"
|
1153 |
msgstr "(Komplette URL für das Icon oder die Dashicon-Klasse)"
|
1154 |
|
1155 |
+
#: inc/post-types.php:751
|
1156 |
msgid "URL to image to be used as menu icon or Dashicon class to use instead."
|
1157 |
msgstr ""
|
1158 |
"URL zum Bild das als Menü-Icon verwendet wird; oder anstelle dessen zur "
|
1159 |
"Dashicon-Klasse."
|
1160 |
|
1161 |
+
#: inc/post-types.php:764
|
1162 |
msgid "Title"
|
1163 |
msgstr "Titel"
|
1164 |
|
1165 |
+
#: inc/post-types.php:765
|
1166 |
msgid "Adds the title meta box when creating content for this custom post type"
|
1167 |
msgstr ""
|
1168 |
"Fügt die Titel-Meta Box hinzu sobald Inhalte für diesen Custom Post Type "
|
1169 |
"erstellt werden"
|
1170 |
|
1171 |
+
#: inc/post-types.php:779
|
1172 |
msgid "Editor"
|
1173 |
msgstr "Text-Editor"
|
1174 |
|
1175 |
+
#: inc/post-types.php:780
|
1176 |
msgid ""
|
1177 |
"Adds the content editor meta box when creating content for this custom post "
|
1178 |
"type"
|
1180 |
"Fügt eine Text-Editor Meta Box hinzu sobald Inhalte für diesen Custom Post "
|
1181 |
"Type erstellt werden"
|
1182 |
|
1183 |
+
#: inc/post-types.php:794
|
1184 |
msgid "Excerpt"
|
1185 |
msgstr "Auszug"
|
1186 |
|
1187 |
+
#: inc/post-types.php:795
|
1188 |
msgid ""
|
1189 |
"Adds the excerpt meta box when creating content for this custom post type"
|
1190 |
msgstr ""
|
1191 |
"Fügt eine Auszugs-Meta Box hinzu sobald Inhalte für diesen Custom Post Type "
|
1192 |
"erstellt werden"
|
1193 |
|
1194 |
+
#: inc/post-types.php:809
|
1195 |
msgid "Trackbacks"
|
1196 |
msgstr "Trackbacks"
|
1197 |
|
1198 |
+
#: inc/post-types.php:810
|
1199 |
msgid ""
|
1200 |
"Adds the trackbacks meta box when creating content for this custom post type"
|
1201 |
msgstr ""
|
1202 |
"Fügt eine Trackback-Meta Box hinzu sobald Inhalte für diesen Custom Post "
|
1203 |
"Type erstellt werden"
|
1204 |
|
1205 |
+
#: inc/post-types.php:824
|
1206 |
msgid "Custom Fields"
|
1207 |
msgstr "Eigene Felder"
|
1208 |
|
1209 |
+
#: inc/post-types.php:825
|
1210 |
msgid ""
|
1211 |
"Adds the custom fields meta box when creating content for this custom post "
|
1212 |
"type"
|
1214 |
"Fügt eine Eigene Felder-Meta Box hinzu sobald Inhalte für diesen Custom Post "
|
1215 |
"Type erstellt werden"
|
1216 |
|
1217 |
+
#: inc/post-types.php:839
|
1218 |
msgid "Comments"
|
1219 |
msgstr "Kommentare"
|
1220 |
|
1221 |
+
#: inc/post-types.php:840
|
1222 |
msgid ""
|
1223 |
"Adds the comments meta box when creating content for this custom post type"
|
1224 |
msgstr ""
|
1225 |
"Fügt eine Kommentare-Meta Box hinzu sobald Inhalte für diesen Custom Post "
|
1226 |
"Type erstellt werden"
|
1227 |
|
1228 |
+
#: inc/post-types.php:854
|
1229 |
msgid "Revisions"
|
1230 |
msgstr "Revisionen"
|
1231 |
|
1232 |
+
#: inc/post-types.php:855
|
1233 |
msgid ""
|
1234 |
"Adds the revisions meta box when creating content for this custom post type"
|
1235 |
msgstr ""
|
1236 |
"Fügt eine Revisions-Meta Box hinzu sobald Inhalte für diesen Custom Post "
|
1237 |
"Type erstellt werden"
|
1238 |
|
1239 |
+
#: inc/post-types.php:869
|
1240 |
msgid "Featured Image"
|
1241 |
msgstr "Beitragsbild"
|
1242 |
|
1243 |
+
#: inc/post-types.php:870
|
1244 |
msgid ""
|
1245 |
"Adds the featured image meta box when creating content for this custom post "
|
1246 |
"type"
|
1248 |
"Fügt eine Beitragsbild-Meta Box hinzu sobald Inhalte für diesen Custom Post "
|
1249 |
"Type erstellt werden"
|
1250 |
|
1251 |
+
#: inc/post-types.php:884
|
1252 |
msgid "Author"
|
1253 |
msgstr "Autor"
|
1254 |
|
1255 |
+
#: inc/post-types.php:885
|
1256 |
msgid ""
|
1257 |
"Adds the author meta box when creating content for this custom post type"
|
1258 |
msgstr ""
|
1259 |
"Fügt eine Autoren-Meta Box hinzu sobald Inhalte für diesen Custom Post Type "
|
1260 |
"erstellt werden"
|
1261 |
|
1262 |
+
#: inc/post-types.php:899
|
1263 |
msgid "Page Attributes"
|
1264 |
msgstr "Seiten Attribute"
|
1265 |
|
1266 |
+
#: inc/post-types.php:900
|
1267 |
msgid ""
|
1268 |
"Adds the page attribute meta box when creating content for this custom post "
|
1269 |
"type"
|
1271 |
"Fügt eine Seitenattribut-Meta Box hinzu sobald Inhalte für diesen Custom "
|
1272 |
"Post Type erstellt werden"
|
1273 |
|
1274 |
+
#: inc/post-types.php:914
|
1275 |
msgid "Post Formats"
|
1276 |
msgstr "Format"
|
1277 |
|
1278 |
+
#: inc/post-types.php:915
|
1279 |
msgid "Adds post format support"
|
1280 |
msgstr "Fügt die Unterstützung für Formate in Beiträgen hinzu"
|
1281 |
|
1282 |
+
#: inc/post-types.php:920
|
1283 |
msgid "Use the option below to explicitly set \"supports\" to false."
|
1284 |
msgstr ""
|
1285 |
"Hake die Checkbox \"Keine\" an um alle \"Unterstützt\"-Funktionen explizit "
|
1286 |
"zu deaktivieren."
|
1287 |
|
1288 |
+
#: inc/post-types.php:928
|
1289 |
msgid "None"
|
1290 |
msgstr "Keine"
|
1291 |
|
1292 |
+
#: inc/post-types.php:929
|
1293 |
msgid "Remove all support features"
|
1294 |
msgstr "Entfernt alle „Unterstützt“-Features"
|
1295 |
|
1296 |
+
#: inc/post-types.php:936
|
1297 |
msgid "Custom \"Supports\""
|
1298 |
msgstr "Benutzerdefinierte „Unterstützt“"
|
1299 |
|
1300 |
+
#: inc/post-types.php:937
|
1301 |
msgid ""
|
1302 |
"Use this input to register custom \"supports\" values, separated by commas."
|
1303 |
msgstr ""
|
1304 |
"Benutze diesen Eintrag um benutzerdefinierte „Unterstützt“-Werte zu "
|
1305 |
"definieren welche durch Kommas getrennt sind."
|
1306 |
|
1307 |
+
#: inc/post-types.php:943
|
1308 |
msgid "Provide custom support slugs here."
|
1309 |
msgstr "Stelle hier benutzerdefinierte „Unterstützt“-Kurzlinks zur Verfügung."
|
1310 |
|
1311 |
+
#: inc/post-types.php:949
|
1312 |
msgid "Built-in Taxonomies"
|
1313 |
msgstr "Vorhandene Taxonomien"
|
1314 |
|
1315 |
+
#: inc/post-types.php:978 inc/taxonomies.php:200
|
1316 |
#, php-format
|
1317 |
msgid "Adds %s support"
|
1318 |
msgstr "Fügt %s Unterstützung hinzu"
|
1319 |
|
1320 |
+
#: inc/post-types.php:1085
|
1321 |
msgid "Please provide a post type to delete"
|
1322 |
msgstr "Bitte gib einen Post Type zum Löschen an"
|
1323 |
|
1324 |
+
#: inc/post-types.php:1145
|
1325 |
msgid "Please provide a post type name"
|
1326 |
msgstr "Bitte gib einen Namen für den Post Type an"
|
1327 |
|
1328 |
+
#: inc/post-types.php:1169
|
1329 |
msgid "Please do not use quotes in post type names or rewrite slugs"
|
1330 |
msgstr ""
|
1331 |
"Bitte verwende keine Anführungszeichen im Post Type-Namen oder den Rewrite-"
|
1332 |
"Kurzlinks"
|
1333 |
|
1334 |
+
#: inc/post-types.php:1176
|
1335 |
#, php-format
|
1336 |
msgid "Please choose a different post type name. %s is already registered."
|
1337 |
msgstr ""
|
1338 |
"Bitte wähle einen anderen Post Type-Namen. %s ist bereits in Verwendung."
|
1339 |
|
1340 |
+
#: inc/support.php:45
|
1341 |
msgid "Custom Post Type UI Support"
|
1342 |
msgstr "Custom Post Type UI Support"
|
1343 |
|
1344 |
+
#: inc/support.php:47
|
1345 |
#, php-format
|
1346 |
msgid ""
|
1347 |
"Please note that this plugin will NOT handle display of registered post "
|
1353 |
"lediglich für Dich registrieren. Bei allen weiteren Problemen besuche bitte "
|
1354 |
"unsere %s"
|
1355 |
|
1356 |
+
#: inc/support.php:48
|
1357 |
msgid "Support Forums"
|
1358 |
msgstr "Support Foren"
|
1359 |
|
1360 |
+
#: inc/support.php:54
|
1361 |
msgid "General"
|
1362 |
msgstr "Allgemein"
|
1363 |
|
1364 |
+
#: inc/support.php:57
|
1365 |
+
msgid ""
|
1366 |
+
"I have post types with spaces in their slug and can not successfully delete "
|
1367 |
+
"them. How can I fix that?"
|
1368 |
+
msgstr ""
|
1369 |
+
|
1370 |
+
#: inc/support.php:58
|
1371 |
+
msgid ""
|
1372 |
+
"Visit the Import/Export page and copy the export code into the import side "
|
1373 |
+
"on the left. Replace the space with an underscore and then click \"Import\". "
|
1374 |
+
"You should be able to delete the individual post types afterwards."
|
1375 |
+
msgstr ""
|
1376 |
+
|
1377 |
+
#: inc/support.php:62
|
1378 |
msgid ""
|
1379 |
"I changed my custom post type name and now I can not get to my posts. How do "
|
1380 |
"I get them back?"
|
1382 |
"Ich habe den Namen meines Custom Post Types verändert und jetzt habe ich "
|
1383 |
"keinen Zugriff mehr auf meine Beiträge. Wie bekomme ich diese wieder zurück?"
|
1384 |
|
1385 |
+
#: inc/support.php:63
|
1386 |
msgid ""
|
1387 |
"You can either change the custom post type name back to the original name or "
|
1388 |
"try the Post Type Switcher plugin"
|
1390 |
"Du kannst entweder den Namen des Custom Post Types auf den ursprünglichen "
|
1391 |
"zurücksetzen oder aber Du verwendest das Post Type Switcher-Plugin"
|
1392 |
|
1393 |
+
#: inc/support.php:68
|
1394 |
msgid ""
|
1395 |
"I changed my custom post type or taxonomy slug and now I have duplicates "
|
1396 |
"shown. How do I remove the duplicate?"
|
1398 |
"Ich habe meinen Custom Post Type oder den Taxonomie-Kurzlink verändert und "
|
1399 |
"jetzt werden Duplikate angezeigt. Wie kann ich diese wieder entfernen?"
|
1400 |
|
1401 |
+
#: inc/support.php:69
|
1402 |
msgid ""
|
1403 |
"Renaming the slug for a post type or taxonomy creates a new entry in our "
|
1404 |
"saved option which gets registered as its own post type or taxonomy. Since "
|
1410 |
"dem vorherigen Kurzlink übernommen worden sind musst Du einfach den "
|
1411 |
"ursprünglichen Eintrag löschen."
|
1412 |
|
1413 |
+
#: inc/support.php:72
|
1414 |
msgid ""
|
1415 |
"I have added post thumbnail and/or post format support to my post type, but "
|
1416 |
"those do not appear when adding a post type post."
|
1419 |
"Type hinzugefügt. Diese werden aber nicht angezeigt wenn ich einen Beitrag "
|
1420 |
"mit diesem Post Type hinzufüge."
|
1421 |
|
1422 |
+
#: inc/support.php:73
|
1423 |
msgid ""
|
1424 |
"Make sure your theme has post \"post-thumbnails\" theme support enabled."
|
1425 |
msgstr ""
|
1426 |
"Stell sicher, dass Dein Theme für Beiträge den Support von \"Beitrags-"
|
1427 |
"Thumbnails\" aktiviert hat"
|
1428 |
|
1429 |
+
#: inc/support.php:76
|
1430 |
+
msgid "Do you have any recommendations for an alternative to Visual Composer."
|
1431 |
+
msgstr "Habt Ihr eine Empfehlung für eine Alternative zu Visual Composer."
|
1432 |
+
|
1433 |
+
#: inc/support.php:77
|
1434 |
+
msgid "We recommend using VelocityPage."
|
1435 |
+
msgstr "Wir empfehlen die Benutzung von VelocityPage."
|
1436 |
+
|
1437 |
+
#: inc/support.php:82
|
1438 |
+
msgid ""
|
1439 |
+
"Is there any way to get CPTUI-registered post types working with Visual "
|
1440 |
+
"Composer Media Grid?"
|
1441 |
+
msgstr ""
|
1442 |
+
"Gibt es eine Möglichkeit mit CPTUI registrierte Post Types unter Visual "
|
1443 |
+
"Composer Media Grid zum Laufen zu bekommen?"
|
1444 |
+
|
1445 |
+
#: inc/support.php:84
|
1446 |
+
msgid "Please see the solution from the following forum support thread."
|
1447 |
+
msgstr "Gehe bitte zur Lösung in folgendem Foren-Support-Thread."
|
1448 |
+
|
1449 |
+
#: inc/support.php:91
|
1450 |
msgid "Front-end Display"
|
1451 |
msgstr "Front-End Anzeige"
|
1452 |
|
1453 |
+
#: inc/support.php:94
|
1454 |
msgid "What template files should I edit to alter my post type display?"
|
1455 |
msgstr ""
|
1456 |
"Welche Template-Dateien sollte ich bearbeiten um die Anzeige meiner Post "
|
1457 |
"Types zu verändern?"
|
1458 |
|
1459 |
+
#: inc/support.php:95
|
1460 |
#, php-format
|
1461 |
msgid ""
|
1462 |
"Please visit the %sTemplate Hierarchy%s page on the WordPress codex for "
|
1465 |
"Besuche bitte die %sTemplate Hierarchie%s-Seite im WordPress-Codex um mehr "
|
1466 |
"über die verfügbaren verschiedenen Arten von Templates zu erfahren."
|
1467 |
|
1468 |
+
#: inc/support.php:102
|
1469 |
msgid "How do I display my custom post type on my site?"
|
1470 |
msgstr ""
|
1471 |
"Wie kann ich meine Custom Post Types auf meiner Webseite anzeigen lassen?"
|
1472 |
|
1473 |
+
#: inc/support.php:103
|
1474 |
#, php-format
|
1475 |
msgid ""
|
1476 |
"You will need to utilize the %sWP_Query%s class to handle display in custom "
|
1482 |
"Archiv hat, sollte die Archiv-URL z.B. \"http://www.mysite.com/post-type-slug"
|
1483 |
"\" lauten."
|
1484 |
|
1485 |
+
#: inc/support.php:109
|
1486 |
msgid ""
|
1487 |
"I have added categories and tags to my custom post type, but they do not "
|
1488 |
"appear in the archives."
|
1490 |
"Ich habe Kategorien und Tags zu meinem Custom Post Type hinzugefügt, aber "
|
1491 |
"sie werden nicht in den Archiven angezeigt."
|
1492 |
|
1493 |
+
#: inc/support.php:110
|
1494 |
#, php-format
|
1495 |
msgid ""
|
1496 |
"You will need to add your newly created post type to the types that the "
|
1501 |
"die Kategorie- und Ettiketten-Archive durchsucht werden. Du findest ein "
|
1502 |
"Tutorial dazu unter %s"
|
1503 |
|
1504 |
+
#: inc/support.php:119
|
1505 |
msgid "Advanced"
|
1506 |
msgstr "Erweitert"
|
1507 |
|
1508 |
+
#: inc/support.php:122
|
1509 |
msgid "How do I add custom metaboxes to my post type?"
|
1510 |
msgstr "Wie füge ich benutzerdefinierte Metaboxen zu meinem Post Type hinzu?"
|
1511 |
|
1512 |
+
#: inc/support.php:124
|
1513 |
#, php-format
|
1514 |
msgid ""
|
1515 |
"We recommend checking out %s, the latest iteration of \"Custom Metaboxes and "
|
1518 |
"Wir empfehlen %s, die neueste Version von \"Custom Metaboxes and Fields for "
|
1519 |
"WordPress\". Beides wird von den WebDevStudios entwickelt."
|
1520 |
|
1521 |
+
#: inc/support.php:130
|
1522 |
msgid ""
|
1523 |
"How do I add a newly registered taxonomy to a post type that already exists?"
|
1524 |
msgstr ""
|
1525 |
"Wie füge ich eine neu erstellte Taxonomie zu einem Post Type hinzu der "
|
1526 |
"bereits existiert?"
|
1527 |
|
1528 |
+
#: inc/support.php:132
|
1529 |
#, php-format
|
1530 |
msgid "Check out the %s function for documentation and usage examples."
|
1531 |
msgstr ""
|
1532 |
"Wirf einen Blick auf die %s-Funktion hinsichtlich Dokumentation und "
|
1533 |
"Nutzungsbeispielen."
|
1534 |
|
1535 |
+
#: inc/support.php:138
|
1536 |
msgid "Post relationships?"
|
1537 |
msgstr "Beitragsbeziehungen?"
|
1538 |
|
1539 |
+
#: inc/support.php:139
|
1540 |
#, php-format
|
1541 |
msgid ""
|
1542 |
"%s has an excellent %spost%s introducing users to the %sPosts 2 Posts%s "
|
1545 |
"%s hat eine ausgezeichnet %sEinführung%s in die Nutzung des %sPosts 2 Posts"
|
1546 |
"%s Plugins veröffentlicht."
|
1547 |
|
1548 |
+
#: inc/support.php:148
|
1549 |
msgid "Is there any function reference list?"
|
1550 |
msgstr "Gibt es eine Funktion Referenz-Liste?"
|
1551 |
|
1552 |
+
#: inc/support.php:149
|
1553 |
#, php-format
|
1554 |
msgid ""
|
1555 |
"%s has compiled a nice list of functions used by our plugin. Note not all "
|
1557 |
msgstr ""
|
1558 |
"%s hat eine schöne Liste an Funktionen zusammengestellt die von unserem "
|
1559 |
"Plugin benutzt werden. Merke, nicht alle genannten werden hilfreich sein da "
|
1560 |
+
"sie an Hooks gekoppelt sind."
|
1561 |
|
1562 |
+
#: inc/support.php:153
|
1563 |
msgid ""
|
1564 |
"How do I filter the \"enter title here\" text in the post editor screen?"
|
1565 |
msgstr ""
|
1566 |
"Wie kann ich den \"Titel hier eingeben\" Text im \"Neuen Beitrage erstellen"
|
1567 |
"\"-Fenster ändern?"
|
1568 |
|
1569 |
+
#: inc/support.php:154
|
1570 |
msgid ""
|
1571 |
"Change text inside the post/page editor title field. Should be able to adapt "
|
1572 |
"as necessary."
|
1574 |
"Ändere den Text innerhalb des Beitrag/Seiten-Editor Titel-Feldes. Es sollte "
|
1575 |
"möglich sein dies anzupassen falls notwendig."
|
1576 |
|
1577 |
+
#: inc/taxonomies.php:89
|
1578 |
msgid ""
|
1579 |
"DO NOT EDIT the taxonomy slug unless necessary. Changing that value "
|
1580 |
"registers a new taxonomy entry for your install."
|
1583 |
"notwendig ist. Die Änderung des Namens registriert einen neuen Taxonomie "
|
1584 |
"Eintrag für Deine Installation."
|
1585 |
|
1586 |
+
#: inc/taxonomies.php:129
|
1587 |
msgid "Taxonomy Slug"
|
1588 |
msgstr "Taxonomie-Kurzlink"
|
1589 |
|
1590 |
+
#: inc/taxonomies.php:130
|
1591 |
msgid "(e.g. actor)"
|
1592 |
msgstr "(z. B. regisseure)"
|
1593 |
|
1594 |
+
#: inc/taxonomies.php:131
|
1595 |
msgid ""
|
1596 |
"The taxonomy name. Used to retrieve custom taxonomy content. Should be short "
|
1597 |
"and unique"
|
1599 |
"Der Taxonomie-Name. Er wird zum Abrufen von benutzerdefinierten Taxonomie-"
|
1600 |
"Inhalten verwendet. Er sollte kurz, prägnant und ein Unikat sein."
|
1601 |
|
1602 |
+
#: inc/taxonomies.php:139 inc/taxonomies.php:269
|
1603 |
msgid "(e.g. Actors)"
|
1604 |
msgstr "(z. B. Regisseure)"
|
1605 |
|
1606 |
+
#: inc/taxonomies.php:141
|
1607 |
msgid "Taxonomy label. Used in the admin menu for displaying custom taxonomy."
|
1608 |
msgstr ""
|
1609 |
"Taxonomie-Beschreibung. Sie wird im Admin-Menü dazu verwendet "
|
1610 |
"benutzerdefinierte Taxonomien anzuzeigen."
|
1611 |
|
1612 |
+
#: inc/taxonomies.php:148
|
1613 |
msgid "(e.g. Actor)"
|
1614 |
msgstr "(z. B. Regisseur)"
|
1615 |
|
1616 |
+
#: inc/taxonomies.php:150
|
1617 |
msgid ""
|
1618 |
"Taxonomy Singular label. Used in WordPress when a singular label is needed."
|
1619 |
msgstr ""
|
1620 |
"Taxonomie-Beschreibung (Singular). Wird in WordPress verwendet wenn "
|
1621 |
"Beschriftungen in der Einzahl benötigt werden."
|
1622 |
|
1623 |
+
#: inc/taxonomies.php:167
|
1624 |
+
#, fuzzy
|
1625 |
+
msgid "Taxonomy Description. Describe what your taxonomy is used for."
|
1626 |
+
msgstr ""
|
1627 |
+
"Custom Post Type-Beschreibung. Beschreibt für was der Custom Post Type "
|
1628 |
+
"verwendet wird."
|
1629 |
+
|
1630 |
+
#: inc/taxonomies.php:170
|
1631 |
msgid "Attach to Post Type"
|
1632 |
msgstr "Mit Post Type verbinden"
|
1633 |
|
1634 |
+
#: inc/taxonomies.php:220
|
1635 |
msgid "Save Taxonomy"
|
1636 |
msgstr "Taxonomie speichern"
|
1637 |
|
1638 |
+
#: inc/taxonomies.php:231
|
1639 |
msgid "Delete Taxonomy"
|
1640 |
msgstr "Taxonomie löschen"
|
1641 |
|
1642 |
+
#: inc/taxonomies.php:243
|
1643 |
msgid "Add Taxonomy"
|
1644 |
msgstr "Taxonomie hinzufügen"
|
1645 |
|
1646 |
+
#: inc/taxonomies.php:252
|
1647 |
#, php-format
|
1648 |
msgid ""
|
1649 |
"Taxonomy names should have %smax 32 characters%s, and only contain "
|
1654 |
"alphanumerische Zeichen sowie Kleinbuchstaben enthalten. Unterstriche "
|
1655 |
"sollten Leerzeichen ersetzen und es dürfen keine Akzente vorkommen."
|
1656 |
|
1657 |
+
#: inc/taxonomies.php:253
|
1658 |
#, php-format
|
1659 |
msgid ""
|
1660 |
"If you are unfamiliar with the advanced taxonomy settings, just fill in the "
|
1671 |
"erstellt. Für weitergehende Informationen fahre mit dem Mauszeiger über die "
|
1672 |
"roten Fragezeichen."
|
1673 |
|
1674 |
+
#: inc/taxonomies.php:254
|
1675 |
#, php-format
|
1676 |
msgid ""
|
1677 |
"Deleting custom taxonomies do %sNOT%s delete terms added to those "
|
1686 |
"Begriffe zu der Taxonomie hinzugefügt wurden, geändert werden, werden die "
|
1687 |
"Begriffe nicht in der Datenbank aktualisiert."
|
1688 |
|
1689 |
+
#: inc/taxonomies.php:271 inc/taxonomies.php:280 inc/taxonomies.php:289
|
1690 |
+
#: inc/taxonomies.php:298 inc/taxonomies.php:307 inc/taxonomies.php:316
|
1691 |
+
#: inc/taxonomies.php:325 inc/taxonomies.php:334 inc/taxonomies.php:343
|
1692 |
+
#: inc/taxonomies.php:352 inc/taxonomies.php:361 inc/taxonomies.php:370
|
1693 |
+
#: inc/taxonomies.php:379 inc/taxonomies.php:388 inc/taxonomies.php:397
|
1694 |
msgid ""
|
1695 |
"Custom taxonomy label. Used in the admin menu for displaying taxonomies."
|
1696 |
msgstr ""
|
1697 |
"Benutzerdefinierte Taxonomie-Beschriftung. Sie wird im Admin-Menü für die "
|
1698 |
"Anzeige von Taxonomien verwendet."
|
1699 |
|
1700 |
+
#: inc/taxonomies.php:278
|
1701 |
msgid "(e.g. All Actors)"
|
1702 |
msgstr "(z. B. Alle Regisseure)"
|
1703 |
|
1704 |
+
#: inc/taxonomies.php:287
|
1705 |
msgid "(e.g. Edit Actor)"
|
1706 |
msgstr "(z. B. Regisseur bearbeiten)"
|
1707 |
|
1708 |
+
#: inc/taxonomies.php:296
|
1709 |
msgid "(e.g. View Actor)"
|
1710 |
msgstr "(z. B. Regisseur anzeigen)"
|
1711 |
|
1712 |
+
#: inc/taxonomies.php:305
|
1713 |
msgid "(e.g. Update Actor Name)"
|
1714 |
msgstr "(z. B. Namen des Regisseurs aktualisieren)"
|
1715 |
|
1716 |
+
#: inc/taxonomies.php:306
|
1717 |
msgid "Update Item Name"
|
1718 |
msgstr "Eintragsname aktualisieren"
|
1719 |
|
1720 |
+
#: inc/taxonomies.php:314
|
1721 |
msgid "(e.g. Add New Actor)"
|
1722 |
msgstr "(z. B. Neuen Regisseur hinzufügen)"
|
1723 |
|
1724 |
+
#: inc/taxonomies.php:323
|
1725 |
msgid "(e.g. New Actor Name)"
|
1726 |
msgstr "(z. B. Neuer Regisseursname)"
|
1727 |
|
1728 |
+
#: inc/taxonomies.php:324
|
1729 |
msgid "New Item Name"
|
1730 |
msgstr "Neuer Eintragsname"
|
1731 |
|
1732 |
+
#: inc/taxonomies.php:332
|
1733 |
msgid "(e.g. Parent Actor)"
|
1734 |
msgstr "(z. B. Übergeordneter Regisseur)"
|
1735 |
|
1736 |
+
#: inc/taxonomies.php:333
|
1737 |
msgid "Parent Item"
|
1738 |
msgstr "Übergeordneter Eintrag"
|
1739 |
|
1740 |
+
#: inc/taxonomies.php:341
|
1741 |
msgid "(e.g. Parent Actor:)"
|
1742 |
msgstr "(z. B. Übergeordneter Regisseur:)"
|
1743 |
|
1744 |
+
#: inc/taxonomies.php:342
|
1745 |
msgid "Parent Item Colon"
|
1746 |
msgstr "Übergeordneter Eintrag Komma"
|
1747 |
|
1748 |
+
#: inc/taxonomies.php:350
|
1749 |
msgid "(e.g. Search Actors)"
|
1750 |
msgstr "(z. B. Regisseure durchsuchen)"
|
1751 |
|
1752 |
+
#: inc/taxonomies.php:351
|
1753 |
msgid "Search Items"
|
1754 |
msgstr "Einträge durchsuchen"
|
1755 |
|
1756 |
+
#: inc/taxonomies.php:359
|
1757 |
msgid "(e.g. Popular Actors)"
|
1758 |
msgstr "(z. B. beliebte Regisseure)"
|
1759 |
|
1760 |
+
#: inc/taxonomies.php:360
|
1761 |
msgid "Popular Items"
|
1762 |
msgstr "Beliebte Einträge"
|
1763 |
|
1764 |
+
#: inc/taxonomies.php:368
|
1765 |
+
#, fuzzy
|
1766 |
+
msgid "(e.g. Separate Actors with commas)"
|
1767 |
msgstr "(z. B. Trenne die Regisseure mittels Komma)"
|
1768 |
|
1769 |
+
#: inc/taxonomies.php:369
|
1770 |
msgid "Separate Items with Commas"
|
1771 |
msgstr "Trenne Einträge mittels Komma"
|
1772 |
|
1773 |
+
#: inc/taxonomies.php:377
|
1774 |
+
#, fuzzy
|
1775 |
+
msgid "(e.g. Add or remove Actors)"
|
1776 |
msgstr "(z. B. Lösche oder füge Regisseure hinzu)"
|
1777 |
|
1778 |
+
#: inc/taxonomies.php:378
|
1779 |
msgid "Add or Remove Items"
|
1780 |
msgstr "Lösche oder füge Einträge hinzu"
|
1781 |
|
1782 |
+
#: inc/taxonomies.php:386
|
1783 |
+
#, fuzzy
|
1784 |
+
msgid "(e.g. Choose from the most used Actors)"
|
1785 |
msgstr "(z. B. Wähle aus den meist genutzten Regisseuren)"
|
1786 |
|
1787 |
+
#: inc/taxonomies.php:387
|
1788 |
msgid "Choose From Most Used"
|
1789 |
msgstr "Wähle aus den am meisten Verwendeten"
|
1790 |
|
1791 |
+
#: inc/taxonomies.php:395
|
1792 |
+
#, fuzzy
|
1793 |
+
msgid "(e.g. No Actors found)"
|
1794 |
msgstr "(z. B. Keine Regisseure gefunden)"
|
1795 |
|
1796 |
+
#: inc/taxonomies.php:396
|
1797 |
msgid "Not found"
|
1798 |
msgstr "Nicht gefunden"
|
1799 |
|
1800 |
+
#: inc/taxonomies.php:419
|
1801 |
msgid "Whether the taxonomy can have parent-child relationships"
|
1802 |
msgstr "Soll die Taxonomie eine Parent-Child-Beziehung haben"
|
1803 |
|
1804 |
+
#: inc/taxonomies.php:436
|
1805 |
msgid "Whether to generate a default UI for managing this custom taxonomy."
|
1806 |
msgstr ""
|
1807 |
"Ob eine standardmässige Benutzeroberfläche zur Verwaltung der "
|
1808 |
"benutzerdefinierten Taxonomie erstellt werden soll."
|
1809 |
|
1810 |
+
#: inc/taxonomies.php:453
|
1811 |
msgid "Sets the query_var key for this taxonomy."
|
1812 |
msgstr "Lege den Abfrage Variablen-Schlüssel für diese Taxonomie fest."
|
1813 |
|
1814 |
+
#: inc/taxonomies.php:461
|
1815 |
+
msgid "(default: taxonomy slug). Query var needs to be true to use."
|
1816 |
msgstr ""
|
1817 |
+
"(Voreinstellung: Taxonomie Kurzlink) Die Abfrage-Variable muss zur Nutzung "
|
1818 |
+
"aktiviert sein."
|
1819 |
|
1820 |
+
#: inc/taxonomies.php:462
|
1821 |
msgid "Custom Query Var String"
|
1822 |
msgstr "Benutzerdefinierte Abfrage Variablen-Zeile"
|
1823 |
|
1824 |
+
#: inc/taxonomies.php:463
|
1825 |
msgid "Sets a custom query_var slug for this taxonomy."
|
1826 |
msgstr ""
|
1827 |
+
"Definiere einen benutzerdefinierten Abfrage-Variablen-Kurzlink für diese "
|
1828 |
"Taxonomie."
|
1829 |
|
1830 |
+
#: inc/taxonomies.php:479
|
1831 |
msgid "Whether or not WordPress should use rewrites for this taxonomy."
|
1832 |
msgstr "Soll WordPress Rewrites für diese Taxonomie benutzen."
|
1833 |
|
1834 |
+
#: inc/taxonomies.php:487
|
1835 |
msgid "(default: taxonomy name)"
|
1836 |
msgstr "(Voreinstellung: Taxanomie Name)"
|
1837 |
|
1838 |
+
#: inc/taxonomies.php:489
|
1839 |
msgid "Custom taxonomy rewrite slug."
|
1840 |
msgstr "Rewrite-Kurzlink der benutzerdefinierten Taxonomie."
|
1841 |
|
1842 |
+
#: inc/taxonomies.php:503
|
1843 |
msgid "Rewrite With Front"
|
1844 |
msgstr "Rewrite mit vorangestellter Front Base"
|
1845 |
|
1846 |
+
#: inc/taxonomies.php:504
|
1847 |
msgid "(default: true)"
|
1848 |
msgstr "(Voreinstellung: aktiviert)"
|
1849 |
|
1850 |
+
#: inc/taxonomies.php:520
|
1851 |
msgid "Rewrite Hierarchical"
|
1852 |
msgstr "Hierarchischer Rewrite"
|
1853 |
|
1854 |
+
#: inc/taxonomies.php:521
|
1855 |
msgid "(default: false)"
|
1856 |
msgstr "(Voreinstellung: deaktiviert)"
|
1857 |
|
1858 |
+
#: inc/taxonomies.php:522
|
1859 |
msgid "Should the permastruct allow hierarchical urls."
|
1860 |
msgstr "Darf die Permalink-Struktur hierarchische URLs erlauben."
|
1861 |
|
1862 |
+
#: inc/taxonomies.php:537
|
1863 |
msgid "Show Admin Column"
|
1864 |
msgstr "Anzeige von Admin-Spalten"
|
1865 |
|
1866 |
+
#: inc/taxonomies.php:539
|
1867 |
msgid ""
|
1868 |
"Whether to allow automatic creation of taxonomy columns on associated post-"
|
1869 |
"types."
|
1871 |
"Soll die automatische Erstellung von Taxonomie-Spalten in den verbundenen "
|
1872 |
"Post Types erlaubt werden."
|
1873 |
|
1874 |
+
#: inc/taxonomies.php:559
|
1875 |
+
#, fuzzy
|
1876 |
+
msgid "Whether to show this taxonomy data in the WP REST API."
|
1877 |
+
msgstr ""
|
1878 |
+
"Ob die Daten des Post Types in der WP REST API angezeigt werden sollen."
|
1879 |
+
|
1880 |
+
#: inc/taxonomies.php:676
|
1881 |
msgid "Please provide a taxonomy to delete"
|
1882 |
msgstr "Gib bitte eine Taxonomie zum Löschen an"
|
1883 |
|
1884 |
+
#: inc/taxonomies.php:727
|
1885 |
msgid "Please provide a taxonomy name"
|
1886 |
msgstr "Gib bitte einen Taxonomie-Namen an"
|
1887 |
|
1888 |
+
#: inc/taxonomies.php:743
|
1889 |
msgid "Please do not use quotes in taxonomy names or rewrite slugs"
|
1890 |
msgstr ""
|
1891 |
"Benutze bitte keine Anführungszeichen in Taxonomie-Namen oder Rewrite-"
|
1892 |
"Kurzlinks"
|
1893 |
|
1894 |
+
#: inc/taxonomies.php:749
|
1895 |
#, php-format
|
1896 |
msgid "Please choose a different taxonomy name. %s is already used."
|
1897 |
msgstr ""
|
1916 |
msgid "http://webdevstudios.com/"
|
1917 |
msgstr "http://webdevstudios.com/"
|
1918 |
|
1919 |
+
#~ msgid "Post type migration"
|
1920 |
+
#~ msgstr "Post Type Migrierung"
|
1921 |
+
|
1922 |
+
#~ msgid ""
|
1923 |
+
#~ "In the past, if you changed your post type slug, you would lose immediate "
|
1924 |
+
#~ "access to the posts in the post type and need to recover another way. We "
|
1925 |
+
#~ "have now added support for migrating all posts within the old post type "
|
1926 |
+
#~ "to the new post type you renamed it to."
|
1927 |
+
#~ msgstr ""
|
1928 |
+
#~ "Bisher war es so, sobald Du den Kurzlink eines Post Types verändert hast, "
|
1929 |
+
#~ "verlorst Du den direkten Zugriff auf alle seine Beiträge und musstest "
|
1930 |
+
#~ "diese anderweitig wiederherstellen. Wir haben jetzt die Unterstützung für "
|
1931 |
+
#~ "die Migration von Beiträgen aus dem alten Post Type in den neu "
|
1932 |
+
#~ "umbenannten hinzugefügt."
|
1933 |
+
|
1934 |
+
#~ msgid "UI Refinement"
|
1935 |
+
#~ msgstr "Verbesserte Benutzeroberfläche"
|
1936 |
+
|
1937 |
+
#~ msgid ""
|
1938 |
+
#~ "After receiving feedback regarding the 1.0.x changes, we have further "
|
1939 |
+
#~ "simplified the UI to reduce the amount of clicking necessary to manage "
|
1940 |
+
#~ "your post types and taxonomies."
|
1941 |
+
#~ msgstr ""
|
1942 |
+
#~ "Nach dem Feedback zu den Änderungen in 1.0.x, haben wir die "
|
1943 |
+
#~ "Benutzeroberfläche weiter vereinfacht um die Anzahl der notwendigen "
|
1944 |
+
#~ "Mausklicks zur Verwaltung Deiner Post Types und Taxonomien weiter zu "
|
1945 |
+
#~ "minimieren."
|
1946 |
+
|
1947 |
+
#~ msgid "Registered Post Type and Taxonomy Listings"
|
1948 |
+
#~ msgstr "Listen der registrierten Post Types und Taxonomien"
|
1949 |
+
|
1950 |
+
#~ msgid ""
|
1951 |
+
#~ "We are bringing back the listing of all CPTUI-registered post types and "
|
1952 |
+
#~ "taxonomies for easier quick view of what you have going."
|
1953 |
+
#~ msgstr ""
|
1954 |
+
#~ "Wir bringen die Listendarstellung aller durch CPT UI registrierten Post "
|
1955 |
+
#~ "Types und Taxonomien zurück, damit Du leichter den Überblick behältst."
|
1956 |
+
|
1957 |
+
#~ msgid "(default: none). Query Var needs to be true to use."
|
1958 |
+
#~ msgstr ""
|
1959 |
+
#~ "(Voreinstellung: Keine - Abfrage-Variable muss aktiviert sein um es "
|
1960 |
+
#~ "benutzen zu können)"
|
1961 |
+
|
1962 |
#~ msgid "Whether posts of this type should be shown in the admin UI"
|
1963 |
#~ msgstr ""
|
1964 |
#~ "Sollen Beiträge dieses Post Types im Admin Interface angezeigt werden"
|
2061 |
#~ "Soll eine Standard-Benutzeroberfläche für die Verwaltung der "
|
2062 |
#~ "benutzerdefinierten Taxonomien erstellt werden"
|
2063 |
|
|
|
|
|
|
|
2064 |
#~ msgid "Triggers the handling of rewrites for this taxonomy"
|
2065 |
#~ msgstr "Veranlasst die Durchführung von Rewrites für diese Taxonomie"
|
2066 |
|
languages/custom-post-type-ui-de_DE_formal.mo
ADDED
Binary file
|
languages/custom-post-type-ui-de_DE_formal.po
ADDED
@@ -0,0 +1,2225 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|