Version Description
= 0.7 = * WordPress 3.1 support * Added has_archive and show_in_menu support * Added label for custom menu name * Updated plugin UI to be consistent with WordPress styles * Added "Get Code" feature to easily copy code used for post types and taxonomies (BETA)
= 0.6.2 = * Added support for assigning custom taxonomies to post types when creating/editing * Fixed bug when setting hierarchy on a post type (props @JohnPBloch) * Fixed an error when registering a post type with no supported meta boxes * Fixed "Undefined index" error when determining return URLs * Added Chinese translation
= 0.6.1 = * Added translation functionality and .pot file * Added Japanese translation * Reworked entire path structure fixing "page not found" errors * Fixed "First argument is expected to be a valid callback" error * Random bug fixes
= 0.6 = * Added support for custom labels with custom post types and taxonomies * Added ability to assign built-in taxonomies to custom post types * Added ability to assign custom taxonomies to multiple post types * Fixed jQuery conflict with other plugins (props shadyvb) * Managing post types now displays total published/draft per type * Code optimization and cleanup
= 0.5.2 = * Updated excerpts to excerpt in CPT Support field (props vlad27aug)
= 0.5.1 = * Added flush_rewrite_rules() to reset rules when using custom rewrite slugs
= 0.5 = * Fixed multiple bugs * If upgrading from pre 0.5 version you will need to recreate your custom post types
= 0.4.1 = * Fixed bug with REWRITE and QUERY_VAR values not executing correctly
= 0.4 = * Default view now hides advanced options * Get Code link to easily copy/paste code used to create custom post types and taxonomies * Added support for 'author' and 'page-attributes' in CPT Supports field
= 0.3.1 = * Fixed multiple warnings and errors
= 0.3 = * added new menu/submenus for individual sections * added support for 'title' and 'editor' in CPT Supports field * added Singular Label for custom taxonomies (props sleary)
= 0.2.1 = * Set default Query Var setting to False
= 0.2 = * Fixed the siteurl bug * Added support for creating custom taxonomies
= 0.1.2 = * Fixed a bug where default values were incorrect
= 0.1.1 = * Fixed a bunch of warnings
= 0.1 = * First beta release
Release Info
Developer | williamsba1 |
Plugin | Custom Post Type UI |
Version | 0.7.0.0 |
Comparing to | |
See all releases |
Version 0.7.0.0
- custom-post-type-ui.php +1484 -0
- images/professional-wordpress-plugin-development.png +0 -0
- images/professional-wordpress.jpg +0 -0
- languages/cpt-plugin-ja.mo +0 -0
- languages/cpt-plugin-ja.po +345 -0
- languages/cpt-plugin-zh_CN.mo +0 -0
- languages/cpt-plugin-zh_CN.po +495 -0
- languages/custom-post-type-ui.mo +0 -0
- languages/custom-post-type-ui.pot +484 -0
- readme.txt +213 -0
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
- screenshot-5.png +0 -0
@@ -0,0 +1,1484 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Custom Post Type UI
|
4 |
+
Plugin URI: http://webdevstudios.com/support/wordpress-plugins/
|
5 |
+
Description: Admin panel for creating custom post types and custom taxonomies in WordPress
|
6 |
+
Author: WebDevStudios.com
|
7 |
+
Version: 0.7
|
8 |
+
Author URI: http://webdevstudios.com/
|
9 |
+
*/
|
10 |
+
|
11 |
+
// Define current version constant
|
12 |
+
define( 'CPT_VERSION', '0.7' );
|
13 |
+
|
14 |
+
// Define plugin URL constant
|
15 |
+
$CPT_URL = cpt_check_return( 'add' );
|
16 |
+
|
17 |
+
//load translated strings
|
18 |
+
load_plugin_textdomain( 'cpt-plugin', false, 'custom-post-type-ui/languages' );
|
19 |
+
|
20 |
+
// create custom plugin settings menu
|
21 |
+
add_action('admin_menu', 'cpt_plugin_menu');
|
22 |
+
|
23 |
+
//call delete post function
|
24 |
+
add_action( 'admin_init', 'cpt_delete_post_type' );
|
25 |
+
|
26 |
+
//call register settings function
|
27 |
+
add_action( 'admin_init', 'cpt_register_settings' );
|
28 |
+
|
29 |
+
//process custom taxonomies if they exist
|
30 |
+
add_action( 'init', 'cpt_create_custom_taxonomies', 0 );
|
31 |
+
|
32 |
+
//process custom taxonomies if they exist
|
33 |
+
add_action( 'init', 'cpt_create_custom_post_types', 0 );
|
34 |
+
|
35 |
+
function cpt_plugin_menu() {
|
36 |
+
//create custom post type menu
|
37 |
+
add_menu_page('Custom Post Types', 'Custom Post Types', 'administrator', 'cpt_main_menu', 'cpt_settings');
|
38 |
+
|
39 |
+
//create submenu items
|
40 |
+
add_submenu_page('cpt_main_menu', 'Add New', 'Add New', 'administrator', 'cpt_sub_add_new', 'cpt_add_new');
|
41 |
+
add_submenu_page('cpt_main_menu', 'Manage Post Types', 'Manage Post Types', 'administrator', 'cpt_sub_manage_cpt', 'cpt_manage_cpt');
|
42 |
+
add_submenu_page('cpt_main_menu', 'Manage Taxonomies', 'Manage Taxonomies', 'administrator', 'cpt_sub_manage_taxonomies', 'cpt_manage_taxonomies');
|
43 |
+
}
|
44 |
+
|
45 |
+
//temp fix, should do: http://planetozh.com/blog/2008/04/how-to-load-javascript-with-your-wordpress-plugin/
|
46 |
+
//only load JS if on a CPT page
|
47 |
+
If ( strpos($_SERVER['REQUEST_URI'], 'cpt')>0 ) {
|
48 |
+
add_action( 'admin_head', 'cpt_wp_add_styles' );
|
49 |
+
}
|
50 |
+
// Add JS Scripts
|
51 |
+
function cpt_wp_add_styles() {
|
52 |
+
?>
|
53 |
+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js">
|
54 |
+
</script>
|
55 |
+
<script type="text/javascript" >
|
56 |
+
jQuery(document).ready(function()
|
57 |
+
{
|
58 |
+
jQuery(".comment_button").click(function(){
|
59 |
+
|
60 |
+
var element = jQuery(this);
|
61 |
+
var I = element.attr("id");
|
62 |
+
|
63 |
+
jQuery("#slidepanel"+I).slideToggle(300);
|
64 |
+
jQuery(this).toggleClass("active");
|
65 |
+
|
66 |
+
return false;
|
67 |
+
});
|
68 |
+
});
|
69 |
+
</script>
|
70 |
+
<?php
|
71 |
+
}
|
72 |
+
|
73 |
+
function cpt_create_custom_post_types() {
|
74 |
+
//register custom post types
|
75 |
+
$cpt_post_types = get_option('cpt_custom_post_types');
|
76 |
+
|
77 |
+
//check if option value is an Array before proceeding
|
78 |
+
if ( is_array( $cpt_post_types ) ) {
|
79 |
+
foreach ($cpt_post_types as $cpt_post_type) {
|
80 |
+
|
81 |
+
//set post type values
|
82 |
+
$cpt_label = ( !$cpt_post_type["label"] ) ? esc_html($cpt_post_type["name"]) : esc_html($cpt_post_type["label"]);
|
83 |
+
$cpt_singular = ( !$cpt_post_type["singular_label"] ) ? $cpt_label : esc_html($cpt_post_type["singular_label"]);
|
84 |
+
$cpt_rewrite_slug = ( !$cpt_post_type["rewrite_slug"] ) ? esc_html($cpt_post_type["name"]) : esc_html($cpt_post_type["rewrite_slug"]);
|
85 |
+
$cpt_menu_position = ( !$cpt_post_type["menu_position"] ) ? null : intval($cpt_post_type["menu_position"]);
|
86 |
+
$cpt_taxonomies = ( !$cpt_post_type[1] ) ? array() : $cpt_post_type[1];
|
87 |
+
$cpt_supports = ( !$cpt_post_type[0] ) ? array() : $cpt_post_type[0];
|
88 |
+
//$cpt_show_in_menu = ( !$cpt_post_type["show_in_menu_string"] ) ? null : $cpt_post_type["show_in_menu_string"];
|
89 |
+
|
90 |
+
$cpt_show_in_menu = ( $cpt_post_type["show_in_menu"] == 1 ) ? true : false;
|
91 |
+
$cpt_show_in_menu = ( $cpt_post_type["show_in_menu_string"] ) ? $cpt_post_type["show_in_menu_string"] : $cpt_show_in_menu;
|
92 |
+
|
93 |
+
//set custom label values
|
94 |
+
$cpt_labels['name'] = $cpt_label;
|
95 |
+
$cpt_labels['singular_name'] = $cpt_post_type["singular_label"];
|
96 |
+
$cpt_labels['menu_name'] = ( $cpt_post_type[2]["menu_name"] ) ? $cpt_post_type[2]["menu_name"] : $cpt_label;
|
97 |
+
$cpt_labels['add_new'] = ( $cpt_post_type[2]["add_new"] ) ? $cpt_post_type[2]["add_new"] : 'Add ' .$cpt_singular;
|
98 |
+
$cpt_labels['add_new_item'] = ( $cpt_post_type[2]["add_new_item"] ) ? $cpt_post_type[2]["add_new_item"] : 'Add New ' .$cpt_singular;
|
99 |
+
$cpt_labels['edit'] = ( $cpt_post_type[2]["edit"] ) ? $cpt_post_type[2]["edit"] : 'Edit';
|
100 |
+
$cpt_labels['edit_item'] = ( $cpt_post_type[2]["edit_item"] ) ? $cpt_post_type[2]["edit_item"] : 'Edit ' .$cpt_singular;
|
101 |
+
$cpt_labels['new_item'] = ( $cpt_post_type[2]["new_item"] ) ? $cpt_post_type[2]["new_item"] : 'New ' .$cpt_singular;
|
102 |
+
$cpt_labels['view'] = ( $cpt_post_type[2]["view"] ) ? $cpt_post_type[2]["view"] : 'View ' .$cpt_singular;
|
103 |
+
$cpt_labels['view_item'] = ( $cpt_post_type[2]["view_item"] ) ? $cpt_post_type[2]["view_item"] : 'View ' .$cpt_singular;
|
104 |
+
$cpt_labels['search_items'] = ( $cpt_post_type[2]["search_items"] ) ? $cpt_post_type[2]["search_items"] : 'Search ' .$cpt_label;
|
105 |
+
$cpt_labels['not_found'] = ( $cpt_post_type[2]["not_found"] ) ? $cpt_post_type[2]["not_found"] : 'No ' .$cpt_label. ' Found';
|
106 |
+
$cpt_labels['not_found_in_trash'] = ( $cpt_post_type[2]["not_found_in_trash"] ) ? $cpt_post_type[2]["not_found_in_trash"] : 'No ' .$cpt_label. ' Found in Trash';
|
107 |
+
$cpt_labels['parent'] = ( $cpt_post_type[2]["parent"] ) ? $cpt_post_type[2]["parent"] : 'Parent ' .$cpt_singular;
|
108 |
+
|
109 |
+
register_post_type( $cpt_post_type["name"], array( 'label' => __($cpt_label),
|
110 |
+
'public' => get_disp_boolean($cpt_post_type["public"]),
|
111 |
+
'singular_label' => $cpt_post_type["singular_label"],
|
112 |
+
'show_ui' => get_disp_boolean($cpt_post_type["show_ui"]),
|
113 |
+
'has_archive' => get_disp_boolean($cpt_post_type["has_archive"]),
|
114 |
+
'show_in_menu' => $cpt_show_in_menu,
|
115 |
+
'capability_type' => $cpt_post_type["capability_type"],
|
116 |
+
'hierarchical' => get_disp_boolean($cpt_post_type["hierarchical"]),
|
117 |
+
'rewrite' => array('slug' => $cpt_rewrite_slug),
|
118 |
+
'query_var' => get_disp_boolean($cpt_post_type["query_var"]),
|
119 |
+
'description' => esc_html($cpt_post_type["description"]),
|
120 |
+
'menu_position' => $cpt_menu_position,
|
121 |
+
'supports' => $cpt_supports,
|
122 |
+
'taxonomies' => $cpt_taxonomies,
|
123 |
+
'labels' => $cpt_labels
|
124 |
+
) );
|
125 |
+
}
|
126 |
+
}
|
127 |
+
}
|
128 |
+
|
129 |
+
|
130 |
+
function cpt_create_custom_taxonomies() {
|
131 |
+
//register custom taxonomies
|
132 |
+
$cpt_tax_types = get_option('cpt_custom_tax_types');
|
133 |
+
|
134 |
+
//check if option value is an array before proceeding
|
135 |
+
if ( is_array( $cpt_tax_types ) ) {
|
136 |
+
foreach ($cpt_tax_types as $cpt_tax_type) {
|
137 |
+
|
138 |
+
//set custom taxonomy values
|
139 |
+
$cpt_label = ( !$cpt_tax_type["label"] ) ? esc_html($cpt_tax_type["name"]) : esc_html($cpt_tax_type["label"]);
|
140 |
+
$cpt_singular_label = ( !$cpt_tax_type["singular_label"] ) ? esc_html($cpt_tax_type["name"]) : esc_html($cpt_tax_type["singular_label"]);
|
141 |
+
$cpt_rewrite_slug = ( !$cpt_tax_type["rewrite_slug"] ) ? esc_html($cpt_tax_type["name"]) : esc_html($cpt_tax_type["rewrite_slug"]);
|
142 |
+
$cpt_post_types = ( !$cpt_tax_type[1] ) ? $cpt_tax_type["cpt_name"] : $cpt_tax_type[1];
|
143 |
+
|
144 |
+
//set custom label values
|
145 |
+
$cpt_labels['name'] = $cpt_label;
|
146 |
+
$cpt_labels['singular_name'] = $cpt_tax_type["singular_label"];
|
147 |
+
$cpt_labels['search_items'] = ( $cpt_tax_type[0]["search_items"] ) ? $cpt_tax_type[0]["search_items"] : 'Search ' .$cpt_label;
|
148 |
+
$cpt_labels['popular_items'] = ( $cpt_tax_type[0]["popular_items"] ) ? $cpt_tax_type[0]["popular_items"] : 'Popular ' .$cpt_label;
|
149 |
+
$cpt_labels['all_items'] = ( $cpt_tax_type[0]["all_items"] ) ? $cpt_tax_type[0]["all_items"] : 'All ' .$cpt_label;
|
150 |
+
$cpt_labels['parent_item'] = ( $cpt_tax_type[0]["parent_item"] ) ? $cpt_tax_type[0]["parent_item"] : 'Parent ' .$cpt_singular_label;
|
151 |
+
$cpt_labels['parent_item_colon'] = ( $cpt_tax_type[0]["parent_item_colon"] ) ? $cpt_tax_type[0]["parent_item_colon"] : 'Parent ' .$cpt_singular_label. ':';
|
152 |
+
$cpt_labels['edit_item'] = ( $cpt_tax_type[0]["edit_item"] ) ? $cpt_tax_type[0]["edit_item"] : 'Edit ' .$cpt_singular_label;
|
153 |
+
$cpt_labels['update_item'] = ( $cpt_tax_type[0]["update_item"] ) ? $cpt_tax_type[0]["update_item"] : 'Update ' .$cpt_singular_label;
|
154 |
+
$cpt_labels['add_new_item'] = ( $cpt_tax_type[0]["add_new_item"] ) ? $cpt_tax_type[0]["add_new_item"] : 'Add New ' .$cpt_singular_label;
|
155 |
+
$cpt_labels['new_item_name'] = ( $cpt_tax_type[0]["new_item_name"] ) ? $cpt_tax_type[0]["new_item_name"] : 'New ' .$cpt_singular_label. ' Name';
|
156 |
+
$cpt_labels['separate_items_with_commas'] = ( $cpt_tax_type[0]["separate_items_with_commas"] ) ? $cpt_tax_type[0]["separate_items_with_commas"] : 'Separate ' .$cpt_label. ' with commas';
|
157 |
+
$cpt_labels['add_or_remove_items'] = ( $cpt_tax_type[0]["add_or_remove_items"] ) ? $cpt_tax_type[0]["add_or_remove_items"] : 'Add or remove ' .$cpt_label;
|
158 |
+
$cpt_labels['choose_from_most_used'] = ( $cpt_tax_type[0]["choose_from_most_used"] ) ? $cpt_tax_type[0]["choose_from_most_used"] : 'Choose from the most used ' .$cpt_label;
|
159 |
+
|
160 |
+
//register our custom taxonomies
|
161 |
+
register_taxonomy( $cpt_tax_type["name"],
|
162 |
+
$cpt_post_types,
|
163 |
+
array( 'hierarchical' => get_disp_boolean($cpt_tax_type["hierarchical"]),
|
164 |
+
'label' => $cpt_label,
|
165 |
+
'show_ui' => get_disp_boolean($cpt_tax_type["show_ui"]),
|
166 |
+
'query_var' => get_disp_boolean($cpt_tax_type["query_var"]),
|
167 |
+
'rewrite' => array('slug' => $cpt_rewrite_slug),
|
168 |
+
'singular_label' => $cpt_singular_label,
|
169 |
+
'labels' => $cpt_labels
|
170 |
+
) );
|
171 |
+
|
172 |
+
}
|
173 |
+
}
|
174 |
+
}
|
175 |
+
|
176 |
+
//delete custom post type or custom taxonomy
|
177 |
+
function cpt_delete_post_type() {
|
178 |
+
global $CPT_URL;
|
179 |
+
|
180 |
+
//check if we are deleting a custom post type
|
181 |
+
If(isset($_GET['deltype'])) {
|
182 |
+
check_admin_referer('cpt_delete_post_type');
|
183 |
+
$delType = intval($_GET['deltype']);
|
184 |
+
$cpt_post_types = get_option('cpt_custom_post_types');
|
185 |
+
|
186 |
+
unset($cpt_post_types[$delType]);
|
187 |
+
|
188 |
+
$cpt_post_types = array_values($cpt_post_types);
|
189 |
+
|
190 |
+
update_option('cpt_custom_post_types', $cpt_post_types);
|
191 |
+
|
192 |
+
If (isset($_GET['return'])) {
|
193 |
+
$RETURN_URL = cpt_check_return(esc_attr($_GET['return']));
|
194 |
+
}Else{
|
195 |
+
$RETURN_URL = $CPT_URL;
|
196 |
+
}
|
197 |
+
|
198 |
+
wp_redirect($RETURN_URL .'&cpt_msg=del');
|
199 |
+
}
|
200 |
+
|
201 |
+
//check if we are deleting a custom taxonomy
|
202 |
+
If(isset($_GET['deltax'])) {
|
203 |
+
check_admin_referer('cpt_delete_tax');
|
204 |
+
|
205 |
+
$delType = intval($_GET['deltax']);
|
206 |
+
$cpt_taxonomies = get_option('cpt_custom_tax_types');
|
207 |
+
|
208 |
+
unset($cpt_taxonomies[$delType]);
|
209 |
+
|
210 |
+
$cpt_taxonomies = array_values($cpt_taxonomies);
|
211 |
+
|
212 |
+
update_option('cpt_custom_tax_types', $cpt_taxonomies);
|
213 |
+
|
214 |
+
If (isset($_GET['return'])) {
|
215 |
+
$RETURN_URL = cpt_check_return(esc_attr($_GET['return']));
|
216 |
+
}Else{
|
217 |
+
$RETURN_URL = $CPT_URL;
|
218 |
+
}
|
219 |
+
|
220 |
+
wp_redirect($RETURN_URL .'&cpt_msg=del');
|
221 |
+
}
|
222 |
+
|
223 |
+
}
|
224 |
+
|
225 |
+
function cpt_register_settings() {
|
226 |
+
global $cpt_error, $CPT_URL;
|
227 |
+
|
228 |
+
If (isset($_POST['cpt_edit'])) {
|
229 |
+
//edit a custom post type
|
230 |
+
check_admin_referer('cpt_add_custom_post_type');
|
231 |
+
|
232 |
+
//custom post type to edit
|
233 |
+
$cpt_edit = intval($_POST['cpt_edit']);
|
234 |
+
|
235 |
+
//edit the custom post type
|
236 |
+
$cpt_form_fields = $_POST['cpt_custom_post_type'];
|
237 |
+
|
238 |
+
//add support checkbox values to array
|
239 |
+
$cpt_supports = ( isset( $_POST['cpt_supports'] ) ) ? $_POST['cpt_supports'] : null;
|
240 |
+
array_push($cpt_form_fields, $cpt_supports);
|
241 |
+
|
242 |
+
//add taxonomies support checkbox values to array
|
243 |
+
$cpt_addon_taxes = ( isset( $_POST['cpt_addon_taxes'] ) ) ? $_POST['cpt_addon_taxes'] : null;
|
244 |
+
array_push($cpt_form_fields, $cpt_addon_taxes);
|
245 |
+
|
246 |
+
//add label values to array
|
247 |
+
array_push($cpt_form_fields, $_POST['cpt_labels']);
|
248 |
+
|
249 |
+
//load custom posts saved in WP
|
250 |
+
$cpt_options = get_option('cpt_custom_post_types');
|
251 |
+
|
252 |
+
If (is_array($cpt_options)) {
|
253 |
+
|
254 |
+
unset($cpt_options[$cpt_edit]);
|
255 |
+
|
256 |
+
//insert new custom post type into the array
|
257 |
+
array_push($cpt_options, $cpt_form_fields);
|
258 |
+
|
259 |
+
$cpt_options = array_values($cpt_options);
|
260 |
+
|
261 |
+
//save custom post types
|
262 |
+
update_option('cpt_custom_post_types', $cpt_options);
|
263 |
+
|
264 |
+
If (isset($_GET['return'])) {
|
265 |
+
$RETURN_URL = cpt_check_return(esc_attr($_GET['return']));
|
266 |
+
}Else{
|
267 |
+
$RETURN_URL = $CPT_URL;
|
268 |
+
}
|
269 |
+
|
270 |
+
wp_redirect($RETURN_URL);
|
271 |
+
|
272 |
+
}
|
273 |
+
|
274 |
+
}ElseIf(isset($_POST['cpt_submit'])) {
|
275 |
+
//create a new custom post type
|
276 |
+
check_admin_referer('cpt_add_custom_post_type');
|
277 |
+
|
278 |
+
//retrieve new custom post type values
|
279 |
+
$cpt_form_fields = $_POST['cpt_custom_post_type'];
|
280 |
+
|
281 |
+
If (empty($cpt_form_fields["name"])) {
|
282 |
+
If (isset($_GET['return'])) {
|
283 |
+
$RETURN_URL = cpt_check_return(esc_attr($_GET['return']));
|
284 |
+
}Else{
|
285 |
+
$RETURN_URL = $CPT_URL;
|
286 |
+
}
|
287 |
+
|
288 |
+
wp_redirect($RETURN_URL .'&cpt_error=1');
|
289 |
+
exit();
|
290 |
+
}
|
291 |
+
|
292 |
+
//add support checkbox values to array
|
293 |
+
$cpt_supports = ( isset( $_POST['cpt_supports'] ) ) ? $_POST['cpt_supports'] : null;
|
294 |
+
array_push($cpt_form_fields, $cpt_supports);
|
295 |
+
|
296 |
+
//add taxonomies support checkbox values to array
|
297 |
+
$cpt_addon_taxes = ( isset( $_POST['cpt_addon_taxes'] ) ) ? $_POST['cpt_addon_taxes'] : null;
|
298 |
+
array_push($cpt_form_fields, $cpt_addon_taxes);
|
299 |
+
|
300 |
+
//add label values to array
|
301 |
+
array_push($cpt_form_fields, $_POST['cpt_labels']);
|
302 |
+
|
303 |
+
//load custom posts saved in WP
|
304 |
+
$cpt_options = get_option('cpt_custom_post_types');
|
305 |
+
|
306 |
+
//check if option exists, if not create an array for it
|
307 |
+
If (!is_array($cpt_options)) {
|
308 |
+
$cpt_options = array();
|
309 |
+
}
|
310 |
+
|
311 |
+
//insert new custom post type into the array
|
312 |
+
array_push($cpt_options, $cpt_form_fields);
|
313 |
+
|
314 |
+
//save new custom post type array in the CPT option
|
315 |
+
update_option('cpt_custom_post_types', $cpt_options);
|
316 |
+
|
317 |
+
If (isset($_GET['return'])) {
|
318 |
+
$RETURN_URL = cpt_check_return(esc_attr($_GET['return']));
|
319 |
+
}Else{
|
320 |
+
$RETURN_URL = $CPT_URL;
|
321 |
+
}
|
322 |
+
|
323 |
+
wp_redirect($RETURN_URL .'&cpt_msg=1');
|
324 |
+
}
|
325 |
+
|
326 |
+
If (isset($_POST['cpt_edit_tax'])) {
|
327 |
+
//edit a custom taxonomy
|
328 |
+
check_admin_referer('cpt_add_custom_taxonomy');
|
329 |
+
|
330 |
+
//custom taxonomy to edit
|
331 |
+
$cpt_edit = intval($_POST['cpt_edit_tax']);
|
332 |
+
|
333 |
+
//edit the custom taxonomy
|
334 |
+
$cpt_form_fields = $_POST['cpt_custom_tax'];
|
335 |
+
|
336 |
+
//add label values to array
|
337 |
+
array_push($cpt_form_fields, $_POST['cpt_tax_labels']);
|
338 |
+
|
339 |
+
//add attached post type values to array
|
340 |
+
array_push($cpt_form_fields, $_POST['cpt_post_types']);
|
341 |
+
|
342 |
+
//load custom posts saved in WP
|
343 |
+
$cpt_options = get_option('cpt_custom_tax_types');
|
344 |
+
|
345 |
+
If (is_array($cpt_options)) {
|
346 |
+
|
347 |
+
unset($cpt_options[$cpt_edit]);
|
348 |
+
|
349 |
+
//insert new custom post type into the array
|
350 |
+
array_push($cpt_options, $cpt_form_fields);
|
351 |
+
|
352 |
+
$cpt_options = array_values($cpt_options);
|
353 |
+
|
354 |
+
//save custom post types
|
355 |
+
update_option('cpt_custom_tax_types', $cpt_options);
|
356 |
+
|
357 |
+
If (isset($_GET['return'])) {
|
358 |
+
$RETURN_URL = cpt_check_return(esc_attr($_GET['return']));
|
359 |
+
}Else{
|
360 |
+
$RETURN_URL = $CPT_URL;
|
361 |
+
}
|
362 |
+
|
363 |
+
wp_redirect($RETURN_URL);
|
364 |
+
|
365 |
+
}
|
366 |
+
|
367 |
+
}ElseIf(isset($_POST['cpt_add_tax'])) {
|
368 |
+
//create new custom taxonomy
|
369 |
+
check_admin_referer('cpt_add_custom_taxonomy');
|
370 |
+
|
371 |
+
//retrieve new custom taxonomy values
|
372 |
+
$cpt_form_fields = $_POST['cpt_custom_tax'];
|
373 |
+
|
374 |
+
//verify required fields are filled out
|
375 |
+
If (empty($cpt_form_fields["name"])) {
|
376 |
+
If (isset($_GET['return'])) {
|
377 |
+
$RETURN_URL = cpt_check_return(esc_attr($_GET['return']));
|
378 |
+
}Else{
|
379 |
+
$RETURN_URL = $CPT_URL;
|
380 |
+
}
|
381 |
+
|
382 |
+
wp_redirect($RETURN_URL .'&cpt_error=2');
|
383 |
+
exit();
|
384 |
+
}elseif ( empty( $_POST['cpt_post_types'] ) ) {
|
385 |
+
If (isset($_GET['return'])) {
|
386 |
+
$RETURN_URL = cpt_check_return(esc_attr($_GET['return']));
|
387 |
+
}Else{
|
388 |
+
$RETURN_URL = $CPT_URL;
|
389 |
+
}
|
390 |
+
|
391 |
+
wp_redirect($RETURN_URL .'&cpt_error=3');
|
392 |
+
exit();
|
393 |
+
}
|
394 |
+
|
395 |
+
//add label values to array
|
396 |
+
array_push($cpt_form_fields, $_POST['cpt_tax_labels']);
|
397 |
+
|
398 |
+
//add attached post type values to array
|
399 |
+
array_push($cpt_form_fields, $_POST['cpt_post_types']);
|
400 |
+
|
401 |
+
//load custom taxonomies saved in WP
|
402 |
+
$cpt_options = get_option('cpt_custom_tax_types');
|
403 |
+
|
404 |
+
//check if option exists, if not create an array for it
|
405 |
+
If (!is_array($cpt_options)) {
|
406 |
+
$cpt_options = array();
|
407 |
+
}
|
408 |
+
|
409 |
+
//insert new custom taxonomy into the array
|
410 |
+
array_push($cpt_options, $cpt_form_fields);
|
411 |
+
|
412 |
+
//save new custom taxonomy array in the CPT option
|
413 |
+
update_option('cpt_custom_tax_types', $cpt_options);
|
414 |
+
|
415 |
+
If (isset($_GET['return'])) {
|
416 |
+
$RETURN_URL = cpt_check_return(esc_attr($_GET['return']));
|
417 |
+
}Else{
|
418 |
+
$RETURN_URL = $CPT_URL;
|
419 |
+
}
|
420 |
+
|
421 |
+
wp_redirect($RETURN_URL .'&cpt_msg=2');
|
422 |
+
|
423 |
+
}
|
424 |
+
}
|
425 |
+
|
426 |
+
//main welcome/settings page
|
427 |
+
function cpt_settings() {
|
428 |
+
global $CPT_URL, $wp_post_types;
|
429 |
+
|
430 |
+
//flush rewrite rules
|
431 |
+
flush_rewrite_rules();
|
432 |
+
?>
|
433 |
+
<div class="wrap">
|
434 |
+
<?php screen_icon( 'plugins' ); ?>
|
435 |
+
<h2><?php _e('Custom Post Type UI', 'cpt-plugin'); ?></h2>
|
436 |
+
<p><?php _e('Plugin version', 'cpt-plugin'); ?>: <?php echo CPT_VERSION; ?></p>
|
437 |
+
<p><?php _e('WordPress version', 'cpt-plugin'); ?>: <?php echo get_bloginfo('version'); ?></p>
|
438 |
+
<table border="0" width="60%">
|
439 |
+
<tr>
|
440 |
+
<td colspan="3"><h2><?php _e( 'Help Support This Plugin!', 'cpt-plugin' ); ?></h2></td>
|
441 |
+
</tr>
|
442 |
+
<tr>
|
443 |
+
<td width="33%"><h3><?php _e( 'PayPal Donation', 'cpt-plugin' ); ?></h3></td>
|
444 |
+
<td width="33%"><h3><?php _e( 'Professional WordPress', 'cpt-plugin' ); ?></h3></td>
|
445 |
+
<td width="33%"><h3><?php _e( 'Professional WordPress<br />Plugin Development', 'cpt-plugin' ); ?></h3></td>
|
446 |
+
</tr>
|
447 |
+
<tr>
|
448 |
+
<td valign="top" width="33%">
|
449 |
+
<p>Please donate to the development<br />of Custom Post Type UI:
|
450 |
+
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
451 |
+
<input type="hidden" name="cmd" value="_s-xclick">
|
452 |
+
<input type="hidden" name="hosted_button_id" value="YJEDXPHE49Q3U">
|
453 |
+
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
|
454 |
+
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
455 |
+
</form>
|
456 |
+
</p>
|
457 |
+
</td>
|
458 |
+
<td valign="top" width="33%"><a href="http://bit.ly/pro-wp" target="_blank"><img src="<?php echo plugins_url( '/images/professional-wordpress.jpg', __FILE__ ); ?>" width="200"></a><br />The leading book on WordPress design and development!</td>
|
459 |
+
<td valign="top" width="33%"><a href="http://amzn.to/plugindevbook" target="_blank"><img src="<?php echo plugins_url( '/images/professional-wordpress-plugin-development.png', __FILE__ ); ?>" width="200"></a><br />Check out my new book all about plugin development!</td>
|
460 |
+
</tr>
|
461 |
+
</table>
|
462 |
+
|
463 |
+
<h3><?php _e('Frequently Asked Questions', 'cpt-plugin'); ?></h3>
|
464 |
+
<p>Q: <strong>How can I display content from a custom post type on my website?</strong></p>
|
465 |
+
<p>
|
466 |
+
A: Justin Tadlock has written some great posts on the topic:<br />
|
467 |
+
<a href="http://justintadlock.com/archives/2010/02/02/showing-custom-post-types-on-your-home-blog-page" target="_blank">Showing Custom Post Types on your Home Page</a><br />
|
468 |
+
<a href="http://justintadlock.com/archives/2010/04/29/custom-post-types-in-wordpress" target="_blank">Custom Post Types in WordPress</a>
|
469 |
+
</p>
|
470 |
+
<p>Q: <strong>How can I add custom meta boxes to my custom post types?</strong></p>
|
471 |
+
<p>A: The Custom Field Template plugin does a great job at creating custom meta boxes and fully supports custom post types: <a href="http://wordpress.org/extend/plugins/custom-field-template/" target="_blank">http://wordpress.org/extend/plugins/custom-field-template/</a></p>
|
472 |
+
<p>Q: <strong>I changed my custom post type name and now I can't get to my posts</strong></p>
|
473 |
+
<p>A: You can either change the custom post type name back to the original name or try the Post Type Switcher plugin: <a href="http://wordpress.org/extend/plugins/post-type-switcher/" target="_blank">http://wordpress.org/extend/plugins/post-type-switcher/</a></p>
|
474 |
+
<h3><?php _e('Slightly Outdated Demo Video', 'cpt-plugin'); ?></h3>
|
475 |
+
<object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=10187055&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=ff9933&fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=10187055&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=ff9933&fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object>
|
476 |
+
<h3><?php _e( 'Latest WebDevStudios.com News', 'cpt-plugin' ); ?></h3>
|
477 |
+
<?php
|
478 |
+
echo '<div class="cp-rss-widget">';
|
479 |
+
|
480 |
+
wp_widget_rss_output( array(
|
481 |
+
'url' => esc_url( 'http://webdevstudios.com/feed/' ),
|
482 |
+
'title' => __( 'WebDevStudios.com News', 'cpt-plugin' ),
|
483 |
+
'items' => 5,
|
484 |
+
'show_summary' => 1,
|
485 |
+
'show_author' => 0,
|
486 |
+
'show_date' => 1
|
487 |
+
) );
|
488 |
+
|
489 |
+
echo '</div>';
|
490 |
+
?>
|
491 |
+
</div>
|
492 |
+
<?php
|
493 |
+
//load footer
|
494 |
+
cpt_footer();
|
495 |
+
}
|
496 |
+
|
497 |
+
//manage custom post types page
|
498 |
+
function cpt_manage_cpt() {
|
499 |
+
global $CPT_URL;
|
500 |
+
|
501 |
+
$MANAGE_URL = cpt_check_return( 'add' );
|
502 |
+
|
503 |
+
?>
|
504 |
+
<div class="wrap">
|
505 |
+
<?php
|
506 |
+
//check for success/error messages
|
507 |
+
If (isset($_GET['cpt_msg']) && $_GET['cpt_msg']=='del') { ?>
|
508 |
+
<div id="message" class="updated">
|
509 |
+
<?php _e('Custom post type deleted successfully', 'cpt-plugin'); ?>
|
510 |
+
</div>
|
511 |
+
<?php
|
512 |
+
}
|
513 |
+
?>
|
514 |
+
<?php screen_icon( 'plugins' ); ?>
|
515 |
+
<h2><?php _e('Manage Custom Post Types', 'cpt-plugin') ?></h2>
|
516 |
+
<p><?php _e('Deleting custom post types does <strong>NOT</strong> delete any content added to those post types. You can easily recreate your post types and the content will still exist.', 'cpt-plugin') ?></p>
|
517 |
+
<?php
|
518 |
+
$cpt_post_types = get_option('cpt_custom_post_types');
|
519 |
+
If (is_array($cpt_post_types)) {
|
520 |
+
?>
|
521 |
+
<table width="100%" class="widefat">
|
522 |
+
<thead>
|
523 |
+
<tr>
|
524 |
+
<th><?php _e('Action', 'cpt-plugin');?></th>
|
525 |
+
<th><?php _e('Name', 'cpt-plugin');?></th>
|
526 |
+
<th><?php _e('Label', 'cpt-plugin');?></th>
|
527 |
+
<th><?php _e('Public', 'cpt-plugin');?></th>
|
528 |
+
<th><?php _e('Show UI', 'cpt-plugin');?></th>
|
529 |
+
<th><?php _e('Hierarchical', 'cpt-plugin');?></th>
|
530 |
+
<th><?php _e('Rewrite', 'cpt-plugin');?></th>
|
531 |
+
<th><?php _e('Rewrite Slug', 'cpt-plugin');?></th>
|
532 |
+
<th><?php _e('Total Published', 'cpt-plugin');?></th>
|
533 |
+
<th><?php _e('Total Drafts', 'cpt-plugin');?></th>
|
534 |
+
<th><?php _e('Supports', 'cpt-plugin');?></th>
|
535 |
+
</tr>
|
536 |
+
</thead>
|
537 |
+
<tfoot>
|
538 |
+
<tr>
|
539 |
+
<th><?php _e('Action', 'cpt-plugin');?></th>
|
540 |
+
<th><?php _e('Name', 'cpt-plugin');?></th>
|
541 |
+
<th><?php _e('Label', 'cpt-plugin');?></th>
|
542 |
+
<th><?php _e('Public', 'cpt-plugin');?></th>
|
543 |
+
<th><?php _e('Show UI', 'cpt-plugin');?></th>
|
544 |
+
<th><?php _e('Hierarchical', 'cpt-plugin');?></th>
|
545 |
+
<th><?php _e('Rewrite', 'cpt-plugin');?></th>
|
546 |
+
<th><?php _e('Rewrite Slug', 'cpt-plugin');?></th>
|
547 |
+
<th><?php _e('Total Published', 'cpt-plugin');?></th>
|
548 |
+
<th><?php _e('Total Drafts', 'cpt-plugin');?></th>
|
549 |
+
<th><?php _e('Supports', 'cpt-plugin');?></th>
|
550 |
+
</tr>
|
551 |
+
</tfoot>
|
552 |
+
<?php
|
553 |
+
$thecounter=0;
|
554 |
+
$cpt_names = array();
|
555 |
+
foreach ($cpt_post_types as $cpt_post_type) {
|
556 |
+
|
557 |
+
$del_url = cpt_check_return( 'cpt' ) .'&deltype=' .$thecounter .'&return=cpt';
|
558 |
+
$del_url = ( function_exists('wp_nonce_url') ) ? wp_nonce_url($del_url, 'cpt_delete_post_type') : $del_url;
|
559 |
+
|
560 |
+
$edit_url = $MANAGE_URL .'&edittype=' .$thecounter .'&return=cpt';
|
561 |
+
$edit_url = ( function_exists('wp_nonce_url') ) ? wp_nonce_url($edit_url, 'cpt_edit_post_type') : $edit_url;
|
562 |
+
|
563 |
+
$cpt_counts = wp_count_posts($cpt_post_type["name"]);
|
564 |
+
|
565 |
+
$rewrite_slug = ( $cpt_post_type["rewrite_slug"] ) ? $cpt_post_type["rewrite_slug"] : $cpt_post_type["name"];
|
566 |
+
?>
|
567 |
+
<tr>
|
568 |
+
<td valign="top"><a href="<?php echo $del_url; ?>">Delete</a> / <a href="<?php echo $edit_url; ?>">Edit</a> / <a href="#" class="comment_button" id="<?php echo $thecounter; ?>">Get Code</a></td>
|
569 |
+
<td valign="top"><?php echo stripslashes($cpt_post_type["name"]); ?></td>
|
570 |
+
<td valign="top"><?php echo stripslashes($cpt_post_type["label"]); ?></td>
|
571 |
+
<td valign="top"><?php echo disp_boolean($cpt_post_type["public"]); ?></td>
|
572 |
+
<td valign="top"><?php echo disp_boolean($cpt_post_type["show_ui"]); ?></td>
|
573 |
+
<td valign="top"><?php echo disp_boolean($cpt_post_type["hierarchical"]); ?></td>
|
574 |
+
<td valign="top"><?php echo disp_boolean($cpt_post_type["rewrite"]); ?></td>
|
575 |
+
<td valign="top"><?php echo $rewrite_slug; ?></td>
|
576 |
+
<td valign="top"><?php echo $cpt_counts->publish; ?></td>
|
577 |
+
<td valign="top"><?php echo $cpt_counts->draft; ?></td>
|
578 |
+
<td>
|
579 |
+
<?php
|
580 |
+
If (is_array($cpt_post_type[0])) {
|
581 |
+
foreach ($cpt_post_type[0] as $cpt_supports) {
|
582 |
+
echo $cpt_supports .'<br />';
|
583 |
+
}
|
584 |
+
}
|
585 |
+
?>
|
586 |
+
</td>
|
587 |
+
</tr>
|
588 |
+
<tr>
|
589 |
+
<td colspan="12">
|
590 |
+
<div style="display:none;" id="slidepanel<?php echo $thecounter; ?>">
|
591 |
+
<?php
|
592 |
+
//display register_post_type code
|
593 |
+
$custom_post_type='';
|
594 |
+
$cpt_support_array='';
|
595 |
+
$cpt_tax_array='';
|
596 |
+
|
597 |
+
$cpt_label = ( !$cpt_post_type["label"] ) ? esc_html($cpt_post_type["name"]) : esc_html($cpt_post_type["label"]);
|
598 |
+
$cpt_singular = ( !$cpt_post_type["singular_label"] ) ? $cpt_label : esc_html($cpt_post_type["singular_label"]);
|
599 |
+
$cpt_rewrite_slug = ( !$cpt_post_type["rewrite_slug"] ) ? esc_html($cpt_post_type["name"]) : esc_html($cpt_post_type["rewrite_slug"]);
|
600 |
+
$cpt_menu_position = ( !$cpt_post_type["menu_position"] ) ? null : intval($cpt_post_type["menu_position"]);
|
601 |
+
$cpt_show_in_menu = ( $cpt_post_type["show_in_menu"] == 1 ) ? 'true' : 'false';
|
602 |
+
$cpt_show_in_menu = ( $cpt_post_type["show_in_menu_string"] ) ? '\''.$cpt_post_type["show_in_menu_string"].'\'' : $cpt_show_in_menu;
|
603 |
+
|
604 |
+
//set custom label values
|
605 |
+
$cpt_labels['name'] = $cpt_label;
|
606 |
+
$cpt_labels['singular_name'] = $cpt_post_type["singular_label"];
|
607 |
+
$cpt_labels['menu_name'] = ( $cpt_post_type[2]["menu_name"] ) ? $cpt_post_type[2]["menu_name"] : $cpt_label;
|
608 |
+
$cpt_labels['add_new'] = ( $cpt_post_type[2]["add_new"] ) ? $cpt_post_type[2]["add_new"] : 'Add ' .$cpt_singular;
|
609 |
+
$cpt_labels['add_new_item'] = ( $cpt_post_type[2]["add_new_item"] ) ? $cpt_post_type[2]["add_new_item"] : 'Add New ' .$cpt_singular;
|
610 |
+
$cpt_labels['edit'] = ( $cpt_post_type[2]["edit"] ) ? $cpt_post_type[2]["edit"] : 'Edit';
|
611 |
+
$cpt_labels['edit_item'] = ( $cpt_post_type[2]["edit_item"] ) ? $cpt_post_type[2]["edit_item"] : 'Edit ' .$cpt_singular;
|
612 |
+
$cpt_labels['new_item'] = ( $cpt_post_type[2]["new_item"] ) ? $cpt_post_type[2]["new_item"] : 'New ' .$cpt_singular;
|
613 |
+
$cpt_labels['view'] = ( $cpt_post_type[2]["view"] ) ? $cpt_post_type[2]["view"] : 'View ' .$cpt_singular;
|
614 |
+
$cpt_labels['view_item'] = ( $cpt_post_type[2]["view_item"] ) ? $cpt_post_type[2]["view_item"] : 'View ' .$cpt_singular;
|
615 |
+
$cpt_labels['search_items'] = ( $cpt_post_type[2]["search_items"] ) ? $cpt_post_type[2]["search_items"] : 'Search ' .$cpt_label;
|
616 |
+
$cpt_labels['not_found'] = ( $cpt_post_type[2]["not_found"] ) ? $cpt_post_type[2]["not_found"] : 'No ' .$cpt_label. ' Found';
|
617 |
+
$cpt_labels['not_found_in_trash'] = ( $cpt_post_type[2]["not_found_in_trash"] ) ? $cpt_post_type[2]["not_found_in_trash"] : 'No ' .$cpt_label. ' Found in Trash';
|
618 |
+
$cpt_labels['parent'] = ( $cpt_post_type[2]["parent"] ) ? $cpt_post_type[2]["parent"] : 'Parent ' .$cpt_singular;
|
619 |
+
|
620 |
+
if( is_array( $cpt_post_type[0] ) ) {
|
621 |
+
foreach ( $cpt_post_type[0] as $cpt_supports ) {
|
622 |
+
//build supports variable
|
623 |
+
$cpt_support_array .= '\''.$cpt_supports.'\',';
|
624 |
+
}
|
625 |
+
}
|
626 |
+
|
627 |
+
if( is_array( $cpt_post_type[1] ) ) {
|
628 |
+
foreach ( $cpt_post_type[1] as $cpt_taxes ) {
|
629 |
+
//build taxonomies variable
|
630 |
+
$cpt_tax_array .= '\''.$cpt_taxes.'\',';
|
631 |
+
}
|
632 |
+
}
|
633 |
+
|
634 |
+
$custom_post_type = 'register_post_type(\'' .$cpt_post_type["name"]. '\', array( \'label\' => \''.__($cpt_label).'\',';
|
635 |
+
$custom_post_type .= '\'description\' => \''. $cpt_post_type["description"].'\',';
|
636 |
+
$custom_post_type .= '\'public\' => '.disp_boolean($cpt_post_type["public"]).',';
|
637 |
+
$custom_post_type .= '\'show_ui\' => '.disp_boolean($cpt_post_type["show_ui"]).',';
|
638 |
+
$custom_post_type .= '\'show_in_menu\' => ' .$cpt_show_in_menu .',';
|
639 |
+
$custom_post_type .= '\'capability_type\' => \''.$cpt_post_type["capability_type"].'\',';
|
640 |
+
$custom_post_type .= '\'hierarchical\' => '.disp_boolean($cpt_post_type["hierarchical"]).',';
|
641 |
+
$custom_post_type .= '\'rewrite\' => array(\'slug\' => \'' .$cpt_post_type["rewrite_slug"]. '\'),';
|
642 |
+
$custom_post_type .= '\'query_var\' => '. disp_boolean($cpt_post_type["query_var"]).',';
|
643 |
+
|
644 |
+
if ( $cpt_post_type["has_archive"] ) {
|
645 |
+
$custom_post_type .= '\'has_archive\' => '. disp_boolean( $cpt_post_type["has_archive"] ).',';
|
646 |
+
}
|
647 |
+
|
648 |
+
if ( $cpt_post_type["menu_position"] ) {
|
649 |
+
$custom_post_type .= '\'menu_position\' => '. $cpt_post_type["menu_position"].',';
|
650 |
+
}
|
651 |
+
|
652 |
+
$custom_post_type .= '\'supports\' => array(' .$cpt_support_array.'),';
|
653 |
+
|
654 |
+
if ( $cpt_tax_array ) {
|
655 |
+
$custom_post_type .= '\'taxonomies\' => array(' .$cpt_tax_array.'),';
|
656 |
+
}
|
657 |
+
|
658 |
+
if ( $cpt_labels ) {
|
659 |
+
$custom_post_type .= '\'labels\' => '.var_export( $cpt_labels, true ).',';
|
660 |
+
}
|
661 |
+
|
662 |
+
$custom_post_type .= ') );';
|
663 |
+
|
664 |
+
echo _e('Place the below code in your themes functions.php file to manually create this custom post type','cpt-plugin').'<br>';
|
665 |
+
echo _e('This is a <strong>BETA</strong> feature. Please <a href="http://webdevstudios.com/support/forum/custom-post-type-ui/">report bugs</a>.','cpt-plugin').'<br>';
|
666 |
+
echo '<textarea rows="5" cols="100">' .$custom_post_type .'</textarea>';
|
667 |
+
|
668 |
+
?>
|
669 |
+
</div>
|
670 |
+
</td>
|
671 |
+
</tr>
|
672 |
+
<?php
|
673 |
+
$thecounter++;
|
674 |
+
$cpt_names[] = strtolower( $cpt_post_type["name"] );
|
675 |
+
}
|
676 |
+
|
677 |
+
$args=array(
|
678 |
+
'public' => true,
|
679 |
+
'_builtin' => false
|
680 |
+
);
|
681 |
+
$output = 'objects'; // or objects
|
682 |
+
$post_types=get_post_types($args,$output);
|
683 |
+
if ( $post_types ) {
|
684 |
+
|
685 |
+
?></table>
|
686 |
+
<?php screen_icon( 'plugins' ); ?>
|
687 |
+
<h2><?php _e('Additional Custom Post Types', 'cpt-plugin') ?></h2>
|
688 |
+
<p><?php _e('The custom post types below are registered in WordPress but were not created by the Custom Post Type UI Plugin.', 'cpt-plugin') ?></p>
|
689 |
+
<?php
|
690 |
+
foreach ($post_types as $post_type ) {
|
691 |
+
|
692 |
+
if ( !in_array( strtolower( $post_type->name ), $cpt_names ) ) {
|
693 |
+
if ( isset( $cpt_first ) && !$cpt_first ) {
|
694 |
+
?>
|
695 |
+
<table width="100%" class="widefat">
|
696 |
+
<thead>
|
697 |
+
<tr>
|
698 |
+
<th><?php _e('Name', 'cpt-plugin');?></th>
|
699 |
+
<th><?php _e('Label', 'cpt-plugin');?></th>
|
700 |
+
<th><?php _e('Singular Label', 'cpt-plugin');?></th>
|
701 |
+
<th><?php _e('Public', 'cpt-plugin');?></th>
|
702 |
+
<th><?php _e('Show UI', 'cpt-plugin');?></th>
|
703 |
+
<th><?php _e('Capability Type', 'cpt-plugin');?></th>
|
704 |
+
<th><?php _e('Hierarchical', 'cpt-plugin');?></th>
|
705 |
+
<th><?php _e('Rewrite Slug', 'cpt-plugin');?></th>
|
706 |
+
<th><?php _e('Rewrite Slug', 'cpt-plugin');?></th>
|
707 |
+
<th><?php _e('Query Var', 'cpt-plugin');?></th>
|
708 |
+
</tr>
|
709 |
+
</thead>
|
710 |
+
<tfoot>
|
711 |
+
<tr>
|
712 |
+
<th><?php _e('Name', 'cpt-plugin');?></th>
|
713 |
+
<th><?php _e('Label', 'cpt-plugin');?></th>
|
714 |
+
<th><?php _e('Singular Label', 'cpt-plugin');?></th>
|
715 |
+
<th><?php _e('Public', 'cpt-plugin');?></th>
|
716 |
+
<th><?php _e('Show UI', 'cpt-plugin');?></th>
|
717 |
+
<th><?php _e('Capability Type', 'cpt-plugin');?></th>
|
718 |
+
<th><?php _e('Hierarchical', 'cpt-plugin');?></th>
|
719 |
+
<th><?php _e('Rewrite Slug', 'cpt-plugin');?></th>
|
720 |
+
<th><?php _e('Rewrite Slug', 'cpt-plugin');?></th>
|
721 |
+
<th><?php _e('Query Var', 'cpt-plugin');?></th>
|
722 |
+
</tr>
|
723 |
+
</tfoot>
|
724 |
+
<?php
|
725 |
+
$cpt_first = true;
|
726 |
+
}
|
727 |
+
$rewrite_slug = ( isset( $post_type->rewrite_slug ) ) ? $post_type->rewrite_slug : $post_type->name;
|
728 |
+
?>
|
729 |
+
<tr>
|
730 |
+
<td valign="top"><?php echo $post_type->name; ?></td>
|
731 |
+
<td valign="top"><?php echo $post_type->label; ?></td>
|
732 |
+
<td valign="top"><?php echo $post_type->singular_label; ?></td>
|
733 |
+
<td valign="top"><?php echo disp_boolean($post_type->public); ?></td>
|
734 |
+
<td valign="top"><?php echo disp_boolean($post_type->show_ui); ?></td>
|
735 |
+
<td valign="top"><?php echo $post_type->capability_type; ?></td>
|
736 |
+
<td valign="top"><?php echo disp_boolean($post_type->hierarchical); ?></td>
|
737 |
+
<td valign="top"><?php echo disp_boolean($post_type->rewrite); ?></td>
|
738 |
+
<td valign="top"><?php echo $rewrite_slug; ?></td>
|
739 |
+
<td valign="top"><?php echo disp_boolean($post_type->query_var); ?></td>
|
740 |
+
</tr>
|
741 |
+
<?php
|
742 |
+
}
|
743 |
+
}
|
744 |
+
}
|
745 |
+
|
746 |
+
if ( isset($cpt_first) && !$cpt_first ) {
|
747 |
+
echo '<tr><td><strong>';
|
748 |
+
_e( 'No additional post types found', 'cpt-plugin' );
|
749 |
+
echo '</strong></td></tr>';
|
750 |
+
}
|
751 |
+
?>
|
752 |
+
</table>
|
753 |
+
|
754 |
+
</div><?php
|
755 |
+
//load footer
|
756 |
+
cpt_footer();
|
757 |
+
}
|
758 |
+
}
|
759 |
+
|
760 |
+
//manage custom taxonomies page
|
761 |
+
function cpt_manage_taxonomies() {
|
762 |
+
global $CPT_URL;
|
763 |
+
|
764 |
+
$MANAGE_URL = cpt_check_return( 'add' );
|
765 |
+
|
766 |
+
?>
|
767 |
+
<div class="wrap">
|
768 |
+
<?php
|
769 |
+
//check for success/error messages
|
770 |
+
If (isset($_GET['cpt_msg']) && $_GET['cpt_msg']=='del') { ?>
|
771 |
+
<div id="message" class="updated">
|
772 |
+
<?php _e('Custom taxonomy deleted successfully', 'cpt-plugin'); ?>
|
773 |
+
</div>
|
774 |
+
<?php
|
775 |
+
}
|
776 |
+
?>
|
777 |
+
<?php screen_icon( 'plugins' ); ?>
|
778 |
+
<h2><?php _e('Manage Custom Taxonomies', 'cpt-plugin') ?></h2>
|
779 |
+
<p><?php _e('Deleting custom taxonomies does <strong>NOT</strong> delete any content added to those taxonomies. You can easily recreate your taxonomies and the content will still exist.', 'cpt-plugin') ?></p>
|
780 |
+
<?php
|
781 |
+
$cpt_tax_types = get_option('cpt_custom_tax_types');
|
782 |
+
|
783 |
+
If (is_array($cpt_tax_types)) {
|
784 |
+
?>
|
785 |
+
<table width="100%" class="widefat">
|
786 |
+
<thead>
|
787 |
+
<tr>
|
788 |
+
<th><?php _e('Action', 'cpt-plugin');?></th>
|
789 |
+
<th><?php _e('Name', 'cpt-plugin');?></th>
|
790 |
+
<th><?php _e('Label', 'cpt-plugin');?></th>
|
791 |
+
<th><?php _e('Singular Label', 'cpt-plugin');?></th>
|
792 |
+
<th><?php _e('Attached Post Types', 'cpt-plugin');?></th>
|
793 |
+
<th><?php _e('Hierarchical', 'cpt-plugin');?></th>
|
794 |
+
<th><?php _e('Show UI', 'cpt-plugin');?></th>
|
795 |
+
<th><?php _e('Rewrite', 'cpt-plugin');?></th>
|
796 |
+
<th><?php _e('Rewrite Slug', 'cpt-plugin');?></th>
|
797 |
+
</tr>
|
798 |
+
</thead>
|
799 |
+
<tfoot>
|
800 |
+
<tr>
|
801 |
+
<th><?php _e('Action', 'cpt-plugin');?></th>
|
802 |
+
<th><?php _e('Name', 'cpt-plugin');?></th>
|
803 |
+
<th><?php _e('Label', 'cpt-plugin');?></th>
|
804 |
+
<th><?php _e('Singular Label', 'cpt-plugin');?></th>
|
805 |
+
<th><?php _e('Attached Post Types', 'cpt-plugin');?></th>
|
806 |
+
<th><?php _e('Hierarchical', 'cpt-plugin');?></th>
|
807 |
+
<th><?php _e('Show UI', 'cpt-plugin');?></th>
|
808 |
+
<th><?php _e('Rewrite', 'cpt-plugin');?></th>
|
809 |
+
<th><?php _e('Rewrite Slug', 'cpt-plugin');?></th>
|
810 |
+
</tr>
|
811 |
+
</tfoot>
|
812 |
+
<?php
|
813 |
+
$thecounter=0;
|
814 |
+
foreach ($cpt_tax_types as $cpt_tax_type) {
|
815 |
+
|
816 |
+
$del_url = cpt_check_return( 'cpt' ) .'&deltax=' .$thecounter .'&return=tax';
|
817 |
+
$del_url = ( function_exists('wp_nonce_url') ) ? wp_nonce_url($del_url, 'cpt_delete_tax') : $del_url;
|
818 |
+
|
819 |
+
$edit_url = $MANAGE_URL .'&edittax=' .$thecounter .'&return=tax';
|
820 |
+
$edit_url = ( function_exists('wp_nonce_url') ) ? wp_nonce_url($edit_url, 'cpt_edit_tax') : $edit_url;
|
821 |
+
|
822 |
+
$rewrite_slug = ( $cpt_tax_type["rewrite_slug"] ) ? $cpt_tax_type["rewrite_slug"] : $cpt_tax_type["name"];
|
823 |
+
?>
|
824 |
+
<tr>
|
825 |
+
<td valign="top"><a href="<?php echo $del_url; ?>">Delete</a> / <a href="<?php echo $edit_url; ?>">Edit</a> / <a href="#" class="comment_button" id="<?php echo $thecounter; ?>">Get Code</a></td>
|
826 |
+
<td valign="top"><?php echo stripslashes($cpt_tax_type["name"]); ?></td>
|
827 |
+
<td valign="top"><?php echo stripslashes($cpt_tax_type["label"]); ?></td>
|
828 |
+
<td valign="top"><?php echo stripslashes($cpt_tax_type["singular_label"]); ?></td>
|
829 |
+
<td valign="top">
|
830 |
+
<?php
|
831 |
+
if ( isset( $cpt_tax_type["cpt_name"] ) ) {
|
832 |
+
echo stripslashes($cpt_tax_type["cpt_name"]);
|
833 |
+
}elseif ( is_array( $cpt_tax_type[1] ) ) {
|
834 |
+
foreach ($cpt_tax_type[1] as $cpt_post_types) {
|
835 |
+
echo $cpt_post_types .'<br />';
|
836 |
+
}
|
837 |
+
}
|
838 |
+
?>
|
839 |
+
</td>
|
840 |
+
<td valign="top"><?php echo disp_boolean($cpt_tax_type["hierarchical"]); ?></td>
|
841 |
+
<td valign="top"><?php echo disp_boolean($cpt_tax_type["show_ui"]); ?></td>
|
842 |
+
<td valign="top"><?php echo disp_boolean($cpt_tax_type["rewrite"]); ?></td>
|
843 |
+
<td valign="top"><?php echo $rewrite_slug; ?></td>
|
844 |
+
</tr>
|
845 |
+
<tr>
|
846 |
+
<td colspan="10">
|
847 |
+
<div style="display:none;" id="slidepanel<?php echo $thecounter; ?>">
|
848 |
+
<?php
|
849 |
+
//display register_taxonomy code
|
850 |
+
$cpt_tax_types = get_option('cpt_custom_tax_types');
|
851 |
+
$custom_tax = '';
|
852 |
+
|
853 |
+
//check if option value is an Array before proceeding
|
854 |
+
If (is_array($cpt_tax_types)) {
|
855 |
+
//foreach ($cpt_tax_types as $cpt_tax_type) {
|
856 |
+
|
857 |
+
If (!$cpt_tax_type["label"]) {
|
858 |
+
$cpt_label = esc_html($cpt_tax_type["name"]);
|
859 |
+
}Else{
|
860 |
+
$cpt_label = esc_html($cpt_tax_type["label"]);
|
861 |
+
}
|
862 |
+
|
863 |
+
//check if singular label was filled out
|
864 |
+
If (!$cpt_tax_type["singular_label"]) {
|
865 |
+
$cpt_singular_label = esc_html($cpt_tax_type["name"]);
|
866 |
+
}Else{
|
867 |
+
$cpt_singular_label = esc_html($cpt_tax_type["singular_label"]);
|
868 |
+
}
|
869 |
+
|
870 |
+
$cpt_post_types = ( !$cpt_tax_type[1] ) ? $cpt_tax_type["cpt_name"] : var_export( $cpt_tax_type[1], true );
|
871 |
+
|
872 |
+
//register our custom taxonomies
|
873 |
+
$custom_tax = 'register_taxonomy(\'' .$cpt_tax_type["name"]. '\',';
|
874 |
+
$custom_tax .= $cpt_post_types .',';
|
875 |
+
$custom_tax .= 'array( \'hierarchical\' => '.disp_boolean($cpt_tax_type["hierarchical"]).', ';
|
876 |
+
$custom_tax .= '\'label\' => \''.$cpt_label.'\',';
|
877 |
+
$custom_tax .= '\'show_ui\' => '.disp_boolean($cpt_tax_type["show_ui"]).',';
|
878 |
+
$custom_tax .= '\'query_var\' => '. disp_boolean($cpt_tax_type["query_var"]).',';
|
879 |
+
$custom_tax .= '\'rewrite\' => array(\'slug\' => \'' .$cpt_tax_type["rewrite_slug"]. '\'),';
|
880 |
+
$custom_tax .= '\'singular_label\' => \''.$cpt_singular_label.'\'';
|
881 |
+
$custom_tax .= ') );';
|
882 |
+
|
883 |
+
echo '<br>';
|
884 |
+
echo _e('Place the below code in your themes functions.php file to manually create this custom taxonomy','cpt-plugin').'<br>';
|
885 |
+
echo _e('This is a <strong>BETA</strong> feature. Please <a href="http://webdevstudios.com/support/forum/custom-post-type-ui/">report bugs</a>.','cpt-plugin').'<br>';
|
886 |
+
echo '<textarea rows="5" cols="100">' .$custom_tax .'</textarea>';
|
887 |
+
|
888 |
+
//}
|
889 |
+
}
|
890 |
+
?>
|
891 |
+
</div>
|
892 |
+
</td>
|
893 |
+
</tr>
|
894 |
+
<?php
|
895 |
+
$thecounter++;
|
896 |
+
}
|
897 |
+
?></table>
|
898 |
+
</div>
|
899 |
+
<?php
|
900 |
+
//load footer
|
901 |
+
cpt_footer();
|
902 |
+
}
|
903 |
+
}
|
904 |
+
|
905 |
+
//add new custom post type / taxonomy page
|
906 |
+
function cpt_add_new() {
|
907 |
+
global $cpt_error, $CPT_URL;
|
908 |
+
|
909 |
+
If (isset($_GET['return'])) {
|
910 |
+
$RETURN_URL = 'action="' .cpt_check_return(esc_attr($_GET['return'])). '"';
|
911 |
+
}Else{
|
912 |
+
$RETURN_URL = '';
|
913 |
+
}
|
914 |
+
|
915 |
+
|
916 |
+
//check if we are editing a custom post type or creating a new one
|
917 |
+
If (isset($_GET['edittype']) && !isset($_GET['cpt_edit'])) {
|
918 |
+
check_admin_referer('cpt_edit_post_type');
|
919 |
+
|
920 |
+
//get post type to edit
|
921 |
+
$editType = intval($_GET['edittype']);
|
922 |
+
|
923 |
+
//load custom posts saved in WP
|
924 |
+
$cpt_options = get_option('cpt_custom_post_types');
|
925 |
+
|
926 |
+
//load custom post type values to edit
|
927 |
+
$cpt_post_type_name = $cpt_options[$editType]["name"];
|
928 |
+
$cpt_label = $cpt_options[$editType]["label"];
|
929 |
+
$cpt_singular_label = $cpt_options[$editType]["singular_label"];
|
930 |
+
$cpt_public = $cpt_options[$editType]["public"];
|
931 |
+
$cpt_showui = $cpt_options[$editType]["show_ui"];
|
932 |
+
$cpt_capability = $cpt_options[$editType]["capability_type"];
|
933 |
+
$cpt_hierarchical = $cpt_options[$editType]["hierarchical"];
|
934 |
+
$cpt_rewrite = $cpt_options[$editType]["rewrite"];
|
935 |
+
$cpt_rewrite_slug = $cpt_options[$editType]["rewrite_slug"];
|
936 |
+
$cpt_query_var = $cpt_options[$editType]["query_var"];
|
937 |
+
$cpt_description = $cpt_options[$editType]["description"];
|
938 |
+
$cpt_menu_position = $cpt_options[$editType]["menu_position"];
|
939 |
+
$cpt_supports = $cpt_options[$editType][0];
|
940 |
+
$cpt_taxes = $cpt_options[$editType][1];
|
941 |
+
$cpt_labels = $cpt_options[$editType][2];
|
942 |
+
$cpt_has_archive = $cpt_options[$editType]["has_archive"];
|
943 |
+
$cpt_show_in_menu = $cpt_options[$editType]["show_in_menu"];
|
944 |
+
$cpt_show_in_menu_string = $cpt_options[$editType]["show_in_menu_string"];
|
945 |
+
|
946 |
+
$cpt_submit_name = 'Save Custom Post Type';
|
947 |
+
}Else{
|
948 |
+
$cpt_submit_name = 'Create Custom Post Type';
|
949 |
+
}
|
950 |
+
|
951 |
+
If (isset($_GET['edittax']) && !isset($_GET['cpt_edit'])) {
|
952 |
+
check_admin_referer('cpt_edit_tax');
|
953 |
+
|
954 |
+
//get post type to edit
|
955 |
+
$editTax = intval($_GET['edittax']);
|
956 |
+
|
957 |
+
//load custom posts saved in WP
|
958 |
+
$cpt_options = get_option('cpt_custom_tax_types');
|
959 |
+
|
960 |
+
//load custom post type values to edit
|
961 |
+
$cpt_tax_name = $cpt_options[$editTax]["name"];
|
962 |
+
$cpt_tax_label = $cpt_options[$editTax]["label"];
|
963 |
+
$cpt_singular_label = $cpt_options[$editTax]["singular_label"];
|
964 |
+
$cpt_tax_object_type = ( isset( $cpt_options[$editTax]["cpt_name"] ) ) ? $cpt_options[$editTax]["cpt_name"] : null;
|
965 |
+
$cpt_tax_hierarchical = $cpt_options[$editTax]["hierarchical"];
|
966 |
+
$cpt_tax_showui = $cpt_options[$editTax]["show_ui"];
|
967 |
+
$cpt_tax_query_var = $cpt_options[$editTax]["query_var"];
|
968 |
+
$cpt_tax_rewrite = $cpt_options[$editTax]["rewrite"];
|
969 |
+
$cpt_tax_rewrite_slug = $cpt_options[$editTax]["rewrite_slug"];
|
970 |
+
$cpt_tax_labels = $cpt_options[$editTax][0];
|
971 |
+
$cpt_post_types = $cpt_options[$editTax][1];
|
972 |
+
|
973 |
+
$cpt_tax_submit_name = 'Save Custom Taxonomy';
|
974 |
+
}Else{
|
975 |
+
$cpt_tax_submit_name = 'Create Custom Taxonomy';
|
976 |
+
}
|
977 |
+
|
978 |
+
//flush rewrite rules
|
979 |
+
flush_rewrite_rules();
|
980 |
+
|
981 |
+
?><div class="wrap"><?php
|
982 |
+
//check for success/error messages
|
983 |
+
If (isset($_GET['cpt_msg']) && $_GET['cpt_msg']==1) { ?>
|
984 |
+
<div id="message" class="updated">
|
985 |
+
<?php _e('Custom post type created successfully. You may need to refresh to view the new post type. <a href="' .cpt_check_return( 'cpt' ) .'">Manage custom post types</a>', 'cpt-plugin'); ?>
|
986 |
+
</div>
|
987 |
+
<?php
|
988 |
+
}elseIf (isset($_GET['cpt_msg']) && $_GET['cpt_msg']==2) { ?>
|
989 |
+
<div id="message" class="updated">
|
990 |
+
<?php _e('Custom taxonomy created successfully. You may need to refresh to view the new taxonomy. <a href="' .cpt_check_return( 'tax' ) .'">Manage custom taxonomies</a>', 'cpt-plugin'); ?>
|
991 |
+
</div>
|
992 |
+
<?php
|
993 |
+
}else{
|
994 |
+
If (isset($_GET['cpt_error']) && $_GET['cpt_error']==1) { ?>
|
995 |
+
<div class="error">
|
996 |
+
<?php _e('Post type name is a required field.', 'cpt-plugin'); ?>
|
997 |
+
</div>
|
998 |
+
<?php }ElseIf (isset($_GET['cpt_error']) && $_GET['cpt_error']==2) { ?>
|
999 |
+
<div class="error">
|
1000 |
+
<?php _e('Taxonomy name is a required field.', 'cpt-plugin'); ?>
|
1001 |
+
</div>
|
1002 |
+
<?php }ElseIf (isset($_GET['cpt_error']) && $_GET['cpt_error']==3) { ?>
|
1003 |
+
<div class="error">
|
1004 |
+
<?php _e('You must assign your custom taxonomy to at least one post type.', 'cpt-plugin'); ?>
|
1005 |
+
</div>
|
1006 |
+
<?php }
|
1007 |
+
}
|
1008 |
+
?>
|
1009 |
+
<?php screen_icon( 'plugins' ); ?>
|
1010 |
+
<?php If ( isset( $_GET['edittype'] ) || isset( $_GET['edittax'] ) ) { ?>
|
1011 |
+
<h2><?php _e('Edit Custom Post Type or Taxonomy', 'cpt-plugin') ?> · <a href="<?php echo cpt_check_return( 'add' ); ?>"><?php _e('Reset', 'cpt-plugin');?></a></h2>
|
1012 |
+
<?php }Else{ ?>
|
1013 |
+
<h2><?php _e('Create New Custom Post Type or Taxonomy', 'cpt-plugin') ?> · <a href="<?php echo cpt_check_return( 'add' ); ?>"><?php _e('Reset', 'cpt-plugin');?></a></h2>
|
1014 |
+
<?php } ?>
|
1015 |
+
<table border="0" cellspacing="10" class="widefat">
|
1016 |
+
<tr>
|
1017 |
+
<td width="50%" valign="top">
|
1018 |
+
<p><?php _e('If you are unfamiliar with the options below only fill out the <strong>Post Type Name</strong> and <strong>Label</strong> fields and check which meta boxes to support. The other settings are set to the most common defaults for custom post types.', 'cpt-plugin'); ?></p>
|
1019 |
+
<form method="post" <?php echo $RETURN_URL; ?>>
|
1020 |
+
<?php if ( function_exists('wp_nonce_field') )
|
1021 |
+
wp_nonce_field('cpt_add_custom_post_type'); ?>
|
1022 |
+
<?php If (isset($_GET['edittype'])) { ?>
|
1023 |
+
<input type="hidden" name="cpt_edit" value="<?php echo $editType; ?>" />
|
1024 |
+
<?php } ?>
|
1025 |
+
<table class="form-table">
|
1026 |
+
<tr valign="top">
|
1027 |
+
<th scope="row"><?php _e('Post Type Name', 'cpt-plugin') ?> <span style="color:red;">*</span></th>
|
1028 |
+
<td><input type="text" name="cpt_custom_post_type[name]" tabindex="1" value="<?php If (isset($cpt_post_type_name)) { echo esc_attr($cpt_post_type_name); } ?>" /> <a href="#" title="The post type name. Used to retrieve custom post type content. Should be short and sweet" style="cursor: help;">?</a> (e.g. movies)</td>
|
1029 |
+
</tr>
|
1030 |
+
|
1031 |
+
<tr valign="top">
|
1032 |
+
<th scope="row"><?php _e('Label', 'cpt-plugin') ?></th>
|
1033 |
+
<td><input type="text" name="cpt_custom_post_type[label]" tabindex="2" value="<?php If (isset($cpt_label)) { echo esc_attr($cpt_label); } ?>" /> <a href="#" title="Post type label. Used in the admin menu for displaying post types." style="cursor: help;">?</a> (e.g. Movies)</td>
|
1034 |
+
</tr>
|
1035 |
+
|
1036 |
+
<tr valign="top">
|
1037 |
+
<th scope="row"><?php _e('Singular Label', 'cpt-plugin') ?></th>
|
1038 |
+
<td><input type="text" name="cpt_custom_post_type[singular_label]" tabindex="3" value="<?php If (isset($cpt_singular_label)) { echo esc_attr($cpt_singular_label); } ?>" /> <a href="#" title="Custom Post Type Singular label. Used in WordPress when a singular label is needed." style="cursor: help;">?</a> (e.g. Movie)</td>
|
1039 |
+
|
1040 |
+
</tr>
|
1041 |
+
|
1042 |
+
<tr valign="top">
|
1043 |
+
<th scope="row"><?php _e('Description', 'cpt-plugin') ?></th>
|
1044 |
+
<td><textarea name="cpt_custom_post_type[description]" tabindex="4" rows="4" cols="40"><?php If (isset($cpt_description)) { echo esc_attr($cpt_description); } ?></textarea><a href="#" title="Custom Post Type Description. Describe what your custom post type is used for." style="cursor: help;">?</a></td>
|
1045 |
+
</tr>
|
1046 |
+
|
1047 |
+
<tr valign="top">
|
1048 |
+
<td colspan="2">
|
1049 |
+
<p align="center">
|
1050 |
+
<?php echo '<a href="#" class="comment_button" id="1">' . __('Advanced Label Options', 'cpt-plugin') . '</a>'; ?> ·
|
1051 |
+
<?php echo '<a href="#" class="comment_button" id="2">' . __('Advanced Options', 'cpt-plugin') . '</a>'; ?>
|
1052 |
+
</p>
|
1053 |
+
</td>
|
1054 |
+
</tr>
|
1055 |
+
|
1056 |
+
</table>
|
1057 |
+
|
1058 |
+
<div style="display:none;" id="slidepanel1">
|
1059 |
+
<p><?php _e('Below are the advanced label options for custom post types. If you are unfamiliar with these labels the plugin will automatically create labels based off of your custom post type name', 'cpt-plugin'); ?></p>
|
1060 |
+
<table class="form-table">
|
1061 |
+
|
1062 |
+
<tr valign="top">
|
1063 |
+
<th scope="row"><?php _e('Menu Name', 'cpt-plugin') ?></th>
|
1064 |
+
<td><input type="text" name="cpt_labels[menu_name]" tabindex="2" value="<?php If (isset($cpt_labels["menu_name"])) { echo esc_attr($cpt_labels["menu_name"]); } ?>" /> <a href="#" title="Custom menu name for your custom post type." style="cursor: help;">?</a> (e.g. My Movies)</td>
|
1065 |
+
</tr>
|
1066 |
+
|
1067 |
+
<tr valign="top">
|
1068 |
+
<th scope="row"><?php _e('Add New', 'cpt-plugin') ?></th>
|
1069 |
+
<td><input type="text" name="cpt_labels[add_new]" tabindex="2" value="<?php If (isset($cpt_labels["add_new"])) { echo esc_attr($cpt_labels["add_new"]); } ?>" /> <a href="#" title="Post type label. Used in the admin menu for displaying post types." style="cursor: help;">?</a> (e.g. Add New)</td>
|
1070 |
+
</tr>
|
1071 |
+
|
1072 |
+
<tr valign="top">
|
1073 |
+
<th scope="row"><?php _e('Add New Item', 'cpt-plugin') ?></th>
|
1074 |
+
<td><input type="text" name="cpt_labels[add_new_item]" tabindex="2" value="<?php If (isset($cpt_labels["add_new_item"])) { echo esc_attr($cpt_labels["add_new_item"]); } ?>" /> <a href="#" title="Post type label. Used in the admin menu for displaying post types." style="cursor: help;">?</a> (e.g. Add New Movie)</td>
|
1075 |
+
</tr>
|
1076 |
+
|
1077 |
+
<tr valign="top">
|
1078 |
+
<th scope="row"><?php _e('Edit', 'cpt-plugin') ?></th>
|
1079 |
+
<td><input type="text" name="cpt_labels[edit]" tabindex="2" value="<?php If (isset($cpt_labels["edit"])) { echo esc_attr($cpt_labels["edit"]); } ?>" /> <a href="#" title="Post type label. Used in the admin menu for displaying post types." style="cursor: help;">?</a> (e.g. Edit)</td>
|
1080 |
+
</tr>
|
1081 |
+
|
1082 |
+
<tr valign="top">
|
1083 |
+
<th scope="row"><?php _e('Edit Item', 'cpt-plugin') ?></th>
|
1084 |
+
<td><input type="text" name="cpt_labels[edit_item]" tabindex="2" value="<?php If (isset($cpt_labels["edit_item"])) { echo esc_attr($cpt_labels["edit_item"]); } ?>" /> <a href="#" title="Post type label. Used in the admin menu for displaying post types." style="cursor: help;">?</a> (e.g. Edit Movie)</td>
|
1085 |
+
</tr>
|
1086 |
+
|
1087 |
+
<tr valign="top">
|
1088 |
+
<th scope="row"><?php _e('New Item', 'cpt-plugin') ?></th>
|
1089 |
+
<td><input type="text" name="cpt_labels[new_item]" tabindex="2" value="<?php If (isset($cpt_labels["new_item"])) { echo esc_attr($cpt_labels["new_item"]); } ?>" /> <a href="#" title="Post type label. Used in the admin menu for displaying post types." style="cursor: help;">?</a> (e.g. New Movie)</td>
|
1090 |
+
</tr>
|
1091 |
+
|
1092 |
+
<tr valign="top">
|
1093 |
+
<th scope="row"><?php _e('View', 'cpt-plugin') ?></th>
|
1094 |
+
<td><input type="text" name="cpt_labels[view]" tabindex="2" value="<?php If (isset($cpt_labels["view"])) { echo esc_attr($cpt_labels["view"]); } ?>" /> <a href="#" title="Post type label. Used in the admin menu for displaying post types." style="cursor: help;">?</a> (e.g. View Movie)</td>
|
1095 |
+
</tr>
|
1096 |
+
|
1097 |
+
<tr valign="top">
|
1098 |
+
<th scope="row"><?php _e('View Item', 'cpt-plugin') ?></th>
|
1099 |
+
<td><input type="text" name="cpt_labels[view_item]" tabindex="2" value="<?php If (isset($cpt_labels["view_item"])) { echo esc_attr($cpt_labels["view_item"]); } ?>" /> <a href="#" title="Post type label. Used in the admin menu for displaying post types." style="cursor: help;">?</a> (e.g. View Movie)</td>
|
1100 |
+
</tr>
|
1101 |
+
|
1102 |
+
<tr valign="top">
|
1103 |
+
<th scope="row"><?php _e('Search Items', 'cpt-plugin') ?></th>
|
1104 |
+
<td><input type="text" name="cpt_labels[search_items]" tabindex="2" value="<?php If (isset($cpt_labels["search_items"])) { echo esc_attr($cpt_labels["search_items"]); } ?>" /> <a href="#" title="Post type label. Used in the admin menu for displaying post types." style="cursor: help;">?</a> (e.g. Search Movies)</td>
|
1105 |
+
</tr>
|
1106 |
+
|
1107 |
+
<tr valign="top">
|
1108 |
+
<th scope="row"><?php _e('Not Found', 'cpt-plugin') ?></th>
|
1109 |
+
<td><input type="text" name="cpt_labels[not_found]" tabindex="2" value="<?php If (isset($cpt_labels["not_found"])) { echo esc_attr($cpt_labels["not_found"]); } ?>" /> <a href="#" title="Post type label. Used in the admin menu for displaying post types." style="cursor: help;">?</a> (e.g. No Movies Found)</td>
|
1110 |
+
</tr>
|
1111 |
+
|
1112 |
+
<tr valign="top">
|
1113 |
+
<th scope="row"><?php _e('Not Found in Trash', 'cpt-plugin') ?></th>
|
1114 |
+
<td><input type="text" name="cpt_labels[not_found_in_trash]" tabindex="2" value="<?php If (isset($cpt_labels["not_found_in_trash"])) { echo esc_attr($cpt_labels["not_found_in_trash"]); } ?>" /> <a href="#" title="Post type label. Used in the admin menu for displaying post types." style="cursor: help;">?</a> (e.g. No Movies found in Trash)</td>
|
1115 |
+
</tr>
|
1116 |
+
|
1117 |
+
<tr valign="top">
|
1118 |
+
<th scope="row"><?php _e('Parent', 'cpt-plugin') ?></th>
|
1119 |
+
<td><input type="text" name="cpt_labels[parent]" tabindex="2" value="<?php If (isset($cpt_labels["parent"])) { echo esc_attr($cpt_labels["parent"]); } ?>" /> <a href="#" title="Post type label. Used in the admin menu for displaying post types." style="cursor: help;">?</a> (e.g. Parent Movie)</td>
|
1120 |
+
</tr>
|
1121 |
+
|
1122 |
+
</table>
|
1123 |
+
</div>
|
1124 |
+
|
1125 |
+
<div style="display:none;" id="slidepanel2">
|
1126 |
+
<table class="form-table">
|
1127 |
+
<tr valign="top">
|
1128 |
+
<th scope="row"><?php _e('Public', 'cpt-plugin') ?></th>
|
1129 |
+
<td>
|
1130 |
+
<SELECT name="cpt_custom_post_type[public]" tabindex="4">
|
1131 |
+
<OPTION value="0" <?php If (isset($cpt_public)) { If ($cpt_public == 0 && $cpt_public != '') { echo 'selected="selected"'; } } ?>>False</OPTION>
|
1132 |
+
<OPTION value="1" <?php If (isset($cpt_public)) { If ($cpt_public == 1 || is_null($cpt_public)) { echo 'selected="selected"'; } }Else{ echo 'selected="selected"'; } ?>>True</OPTION>
|
1133 |
+
</SELECT> <a href="#" title="Whether posts of this type should be shown in the admin UI" style="cursor: help;">?</a> (default: True)
|
1134 |
+
</td>
|
1135 |
+
</tr>
|
1136 |
+
|
1137 |
+
<tr valign="top">
|
1138 |
+
<th scope="row"><?php _e('Show UI', 'cpt-plugin') ?></th>
|
1139 |
+
<td>
|
1140 |
+
<SELECT name="cpt_custom_post_type[show_ui]" tabindex="5">
|
1141 |
+
<OPTION value="0" <?php If (isset($cpt_showui)) { If ($cpt_showui == 0 && $cpt_showui != '') { echo 'selected="selected"'; } } ?>>False</OPTION>
|
1142 |
+
<OPTION value="1" <?php If (isset($cpt_showui)) { If ($cpt_showui == 1 || is_null($cpt_showui)) { echo 'selected="selected"'; } }Else{ echo 'selected="selected"'; } ?>>True</OPTION>
|
1143 |
+
</SELECT> <a href="#" title="Whether to generate a default UI for managing this post type" style="cursor: help;">?</a> (default: True)
|
1144 |
+
</td>
|
1145 |
+
</tr>
|
1146 |
+
|
1147 |
+
<tr valign="top">
|
1148 |
+
<th scope="row"><?php _e('Has Archive', 'cpt-plugin') ?></th>
|
1149 |
+
<td>
|
1150 |
+
<SELECT name="cpt_custom_post_type[has_archive]" tabindex="6">
|
1151 |
+
<OPTION value="0" <?php If (isset($cpt_has_archive)) { If ($cpt_has_archive == 0) { echo 'selected="selected"'; } }Else{ echo 'selected="selected"'; } ?>>False</OPTION>
|
1152 |
+
<OPTION value="1" <?php If (isset($cpt_has_archive)) { If ($cpt_has_archive == 1) { echo 'selected="selected"'; } } ?>>True</OPTION>
|
1153 |
+
</SELECT> <a href="#" title="Whether the post type will have a post type archive page" style="cursor: help;">?</a> (default: False)
|
1154 |
+
</td>
|
1155 |
+
</tr>
|
1156 |
+
|
1157 |
+
<tr valign="top">
|
1158 |
+
<th scope="row"><?php _e('Capability Type', 'cpt-plugin') ?></th>
|
1159 |
+
<td><input type="text" name="cpt_custom_post_type[capability_type]" tabindex="6" value="post" value="<?php echo esc_attr($cpt_capability); ?>" /> <a href="#" title="The post type to use for checking read, edit, and delete capabilities" style="cursor: help;">?</a></td>
|
1160 |
+
</tr>
|
1161 |
+
|
1162 |
+
<tr valign="top">
|
1163 |
+
<th scope="row"><?php _e('Hierarchical', 'cpt-plugin') ?></th>
|
1164 |
+
<td>
|
1165 |
+
<SELECT name="cpt_custom_post_type[hierarchical]" tabindex="7">
|
1166 |
+
<OPTION value="0" <?php If (isset($cpt_hierarchical)) { If ($cpt_hierarchical == 0) { echo 'selected="selected"'; } }Else{ echo 'selected="selected"'; } ?>>False</OPTION>
|
1167 |
+
<OPTION value="1" <?php If (isset($cpt_hierarchical)) { If ($cpt_hierarchical == 1) { echo 'selected="selected"'; } } ?>>True</OPTION>
|
1168 |
+
</SELECT> <a href="#" title="Whether the post type is hierarchical" style="cursor: help;">?</a> (default: False)
|
1169 |
+
</td>
|
1170 |
+
</tr>
|
1171 |
+
|
1172 |
+
<tr valign="top">
|
1173 |
+
<th scope="row"><?php _e('Rewrite', 'cpt-plugin') ?></th>
|
1174 |
+
<td>
|
1175 |
+
<SELECT name="cpt_custom_post_type[rewrite]" tabindex="8">
|
1176 |
+
<OPTION value="0" <?php If (isset($cpt_rewrite)) { If ($cpt_rewrite == 0 && $cpt_rewrite != '') { echo 'selected="selected"'; } } ?>>False</OPTION>
|
1177 |
+
<OPTION value="1" <?php If (isset($cpt_rewrite)) { If ($cpt_rewrite == 1 || is_null($cpt_rewrite)) { echo 'selected="selected"'; } }Else{ echo 'selected="selected"'; } ?>>True</OPTION>
|
1178 |
+
</SELECT> <a href="#" title="" style="cursor: help;">?</a> (default: True)
|
1179 |
+
</td>
|
1180 |
+
</tr>
|
1181 |
+
|
1182 |
+
<tr valign="top">
|
1183 |
+
<th scope="row"><?php _e('Custom Rewrite Slug', 'cpt-plugin') ?></th>
|
1184 |
+
<td><input type="text" name="cpt_custom_post_type[rewrite_slug]" tabindex="9" value="<?php If (isset($cpt_rewrite_slug)) { echo esc_attr($cpt_rewrite_slug); } ?>" /> <a href="#" title="Custom Post Type Rewrite Slug" style="cursor: help;">?</a> (default: post type name)</td>
|
1185 |
+
</tr>
|
1186 |
+
|
1187 |
+
<tr valign="top">
|
1188 |
+
<th scope="row"><?php _e('Query Var', 'cpt-plugin') ?></th>
|
1189 |
+
<td>
|
1190 |
+
<SELECT name="cpt_custom_post_type[query_var]" tabindex="10">
|
1191 |
+
<OPTION value="0" <?php If (isset($cpt_query_var)) { If ($cpt_query_var == 0 && $cpt_query_var != '') { echo 'selected="selected"'; } } ?>>False</OPTION>
|
1192 |
+
<OPTION value="1" <?php If (isset($cpt_query_var)) { If ($cpt_query_var == 1 || is_null($cpt_query_var)) { echo 'selected="selected"'; } }Else{ echo 'selected="selected"'; } ?>>True</OPTION>
|
1193 |
+
</SELECT> <a href="#" title="" style="cursor: help;">?</a> (default: True)
|
1194 |
+
</td>
|
1195 |
+
</tr>
|
1196 |
+
|
1197 |
+
<tr valign="top">
|
1198 |
+
<th scope="row"><?php _e('Menu Position', 'cpt-plugin') ?></th>
|
1199 |
+
<td><input type="text" name="cpt_custom_post_type[menu_position]" tabindex="11" size="5" value="<?php If (isset($cpt_menu_position)) { echo esc_attr($cpt_menu_position); } ?>" /> <a href="#" title="The menu position of the custom post type" style="cursor: help;">?</a></td>
|
1200 |
+
</tr>
|
1201 |
+
|
1202 |
+
<tr valign="top">
|
1203 |
+
<th scope="row"><?php _e('Show in Menu', 'cpt-plugin') ?></th>
|
1204 |
+
<td>
|
1205 |
+
<SELECT name="cpt_custom_post_type[show_in_menu]" tabindex="10">
|
1206 |
+
<OPTION value="0" <?php If (isset($cpt_show_in_menu)) { If ($cpt_show_in_menu == 0 && $cpt_show_in_menu != '') { echo 'selected="selected"'; } } ?>>False</OPTION>
|
1207 |
+
<OPTION value="1" <?php If (isset($cpt_show_in_menu)) { If ($cpt_show_in_menu == 1 || is_null($cpt_show_in_menu)) { echo 'selected="selected"'; } }Else{ echo 'selected="selected"'; } ?>>True</OPTION>
|
1208 |
+
</SELECT> <a href="#" title="" style="cursor: help;">?</a> Top level page (e.g. 'plugins.php')
|
1209 |
+
<input type="text" name="cpt_custom_post_type[show_in_menu_string]" tabindex="12" size="5" value="<?php If (isset($cpt_show_in_menu_string)) { echo esc_attr($cpt_show_in_menu_string); } ?>" /> <a href="#" title="Whether to show the post type in the admin menu and where to show that menu. Note that show_ui must be true" style="cursor: help;">?</a></td>
|
1210 |
+
</tr>
|
1211 |
+
|
1212 |
+
<tr valign="top">
|
1213 |
+
<th scope="row"><?php _e('Supports', 'cpt-plugin') ?></th>
|
1214 |
+
<td>
|
1215 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="11" value="title" <?php If (isset($cpt_supports) && is_array($cpt_supports)) { If (in_array('title', $cpt_supports)) { echo 'checked="checked"'; } }Elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> Title <a href="#" title="Adds the title meta box when creating content for this custom post type" style="cursor: help;">?</a> <br/ >
|
1216 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="12" value="editor" <?php If (isset($cpt_supports) && is_array($cpt_supports)) { If (in_array('editor', $cpt_supports)) { echo 'checked="checked"'; } }Elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> Editor <a href="#" title="Adds the content editor meta box when creating content for this custom post type" style="cursor: help;">?</a> <br/ >
|
1217 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="13" value="excerpt" <?php If (isset($cpt_supports) && is_array($cpt_supports)) { If (in_array('excerpt', $cpt_supports)) { echo 'checked="checked"'; } }Elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> Excerpt <a href="#" title="Adds the excerpt meta box when creating content for this custom post type" style="cursor: help;">?</a> <br/ >
|
1218 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="14" value="trackbacks" <?php If (isset($cpt_supports) && is_array($cpt_supports)) { If (in_array('trackbacks', $cpt_supports)) { echo 'checked="checked"'; } }Elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> Trackbacks <a href="#" title="Adds the trackbacks meta box when creating content for this custom post type" style="cursor: help;">?</a> <br/ >
|
1219 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="15" value="custom-fields" <?php If (isset($cpt_supports) && is_array($cpt_supports)) { If (in_array('custom-fields', $cpt_supports)) { echo 'checked="checked"'; } }Elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> Custom Fields <a href="#" title="Adds the custom fields meta box when creating content for this custom post type" style="cursor: help;">?</a> <br/ >
|
1220 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="16" value="comments" <?php If (isset($cpt_supports) && is_array($cpt_supports)) { If (in_array('comments', $cpt_supports)) { echo 'checked="checked"'; } }Elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> Comments <a href="#" title="Adds the comments meta box when creating content for this custom post type" style="cursor: help;">?</a> <br/ >
|
1221 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="17" value="revisions" <?php If (isset($cpt_supports) && is_array($cpt_supports)) { If (in_array('revisions', $cpt_supports)) { echo 'checked="checked"'; } }Elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> Revisions <a href="#" title="Adds the revisions meta box when creating content for this custom post type" style="cursor: help;">?</a> <br/ >
|
1222 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="18" value="thumbnail" <?php If (isset($cpt_supports) && is_array($cpt_supports)) { If (in_array('thumbnail', $cpt_supports)) { echo 'checked="checked"'; } }Elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> Featured Image <a href="#" title="Adds the featured image meta box when creating content for this custom post type" style="cursor: help;">?</a> <br/ >
|
1223 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="19" value="author" <?php If (isset($cpt_supports) && is_array($cpt_supports)) { If (in_array('author', $cpt_supports)) { echo 'checked="checked"'; } }Elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> Author <a href="#" title="Adds the author meta box when creating content for this custom post type" style="cursor: help;">?</a> <br/ >
|
1224 |
+
<input type="checkbox" name="cpt_supports[]" tabindex="20" value="page-attributes" <?php If (isset($cpt_supports) && is_array($cpt_supports)) { If (in_array('page-attributes', $cpt_supports)) { echo 'checked="checked"'; } }Elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> Page Attributes <a href="#" title="Adds the page attribute meta box when creating content for this custom post type" style="cursor: help;">?</a> <br/ >
|
1225 |
+
</td>
|
1226 |
+
</tr>
|
1227 |
+
|
1228 |
+
<tr valign="top">
|
1229 |
+
<th scope="row"><?php _e('Built-in Taxonomies', 'cpt-plugin') ?></th>
|
1230 |
+
<td>
|
1231 |
+
<?php
|
1232 |
+
//load built-in WP Taxonomies
|
1233 |
+
$args=array( 'public' => true );
|
1234 |
+
$output = 'objects';
|
1235 |
+
$add_taxes = get_taxonomies($args,$output);
|
1236 |
+
foreach ($add_taxes as $add_tax ) {
|
1237 |
+
if ( $add_tax->name != 'nav_menu' && $add_tax->name != 'post_format') {
|
1238 |
+
?>
|
1239 |
+
<input type="checkbox" name="cpt_addon_taxes[]" tabindex="20" value="<?php echo $add_tax->name; ?>" <?php If (isset($cpt_taxes) && is_array($cpt_taxes)) { If (in_array($add_tax->name, $cpt_taxes)) { echo 'checked="checked"'; } } ?> /> <?php echo $add_tax->label; ?><br />
|
1240 |
+
<?php
|
1241 |
+
}
|
1242 |
+
}
|
1243 |
+
?>
|
1244 |
+
</td>
|
1245 |
+
</tr>
|
1246 |
+
|
1247 |
+
</table>
|
1248 |
+
</div>
|
1249 |
+
|
1250 |
+
<p class="submit">
|
1251 |
+
<input type="submit" class="button-primary" tabindex="21" name="cpt_submit" value="<?php _e($cpt_submit_name, 'cpt-plugin') ?>" />
|
1252 |
+
</p>
|
1253 |
+
|
1254 |
+
</form>
|
1255 |
+
</td>
|
1256 |
+
<td width="50%" valign="top">
|
1257 |
+
<?php
|
1258 |
+
//debug area
|
1259 |
+
$cpt_options = get_option('cpt_custom_tax_types');
|
1260 |
+
?>
|
1261 |
+
<p><?php _e('If you are unfamiliar with the options below only fill out the <strong>Taxonomy Name</strong> and <strong>Post Type Name</strong> fields. The other settings are set to the most common defaults for custom taxonomies.', 'cpt-plugin');?></p>
|
1262 |
+
<form method="post" <?php echo $RETURN_URL; ?>>
|
1263 |
+
<?php if ( function_exists('wp_nonce_field') )
|
1264 |
+
wp_nonce_field('cpt_add_custom_taxonomy'); ?>
|
1265 |
+
<?php If (isset($_GET['edittax'])) { ?>
|
1266 |
+
<input type="hidden" name="cpt_edit_tax" value="<?php echo $editTax; ?>" />
|
1267 |
+
<?php } ?>
|
1268 |
+
<table class="form-table">
|
1269 |
+
<tr valign="top">
|
1270 |
+
<th scope="row"><?php _e('Taxonomy Name', 'cpt-plugin') ?> <span style="color:red;">*</span></th>
|
1271 |
+
<td><input type="text" name="cpt_custom_tax[name]" tabindex="21" value="<?php If (isset($cpt_tax_name)) { echo esc_attr($cpt_tax_name); } ?>" /> <a href="#" title="The taxonomy name. Used to retrieve custom taxonomy content. Should be short and sweet" style="cursor: help;">?</a> (e.g. actors)</td>
|
1272 |
+
</tr>
|
1273 |
+
|
1274 |
+
<tr valign="top">
|
1275 |
+
<th scope="row"><?php _e('Label', 'cpt-plugin') ?></th>
|
1276 |
+
<td><input type="text" name="cpt_custom_tax[label]" tabindex="22" value="<?php If (isset($cpt_tax_label)) { echo esc_attr($cpt_tax_label); } ?>" /> <a href="#" title="Taxonomy label. Used in the admin menu for displaying custom taxonomy." style="cursor: help;">?</a> (e.g. Actors)</td>
|
1277 |
+
</tr>
|
1278 |
+
|
1279 |
+
<tr valign="top">
|
1280 |
+
<th scope="row"><?php _e('Singular Label', 'cpt-plugin') ?></th>
|
1281 |
+
<td><input type="text" name="cpt_custom_tax[singular_label]" tabindex="23" value="<?php If (isset($cpt_singular_label)) { echo esc_attr($cpt_singular_label); } ?>" /> <a href="#" title="Taxonomy Singular label. Used in WordPress when a singular label is needed." style="cursor: help;">?</a> (e.g. Actor)</td>
|
1282 |
+
</tr>
|
1283 |
+
|
1284 |
+
<tr valign="top">
|
1285 |
+
<th scope="row"><?php _e('Attach to Post Type', 'cpt-plugin') ?> <span style="color:red;">*</span></th>
|
1286 |
+
<td>
|
1287 |
+
<?php if ( isset( $cpt_tax_object_type ) ) { ?>
|
1288 |
+
<strong>This is the old method. Delete the post type from the textbox and check which post type to attach this taxonomy to</strong>
|
1289 |
+
<input type="text" name="cpt_custom_tax[cpt_name]" tabindex="24" value="<?php If (isset($cpt_tax_object_type)) { echo esc_attr($cpt_tax_object_type); } ?>" /> <a href="#" title="What object to attach the custom taxonomy to. Can be post, page, or link by default. Can also be any custom post type name." style="cursor: help;">?</a> (e.g. movies)
|
1290 |
+
<?php } ?>
|
1291 |
+
<?php
|
1292 |
+
$args=array(
|
1293 |
+
'public' => true
|
1294 |
+
);
|
1295 |
+
$output = 'objects'; // or objects
|
1296 |
+
$post_types=get_post_types($args,$output);
|
1297 |
+
foreach ($post_types as $post_type ) {
|
1298 |
+
if ( $post_type->name != 'attachment' ) {
|
1299 |
+
?>
|
1300 |
+
<input type="checkbox" name="cpt_post_types[]" tabindex="20" value="<?php echo $post_type->name; ?>" <?php If (isset($cpt_post_types) && is_array($cpt_post_types)) { If (in_array($post_type->name, $cpt_post_types)) { echo 'checked="checked"'; } } ?> /> <?php echo $post_type->label; ?><br />
|
1301 |
+
<?php
|
1302 |
+
}
|
1303 |
+
}
|
1304 |
+
?>
|
1305 |
+
</td>
|
1306 |
+
</tr>
|
1307 |
+
|
1308 |
+
<tr valign="top">
|
1309 |
+
<td colspan="2">
|
1310 |
+
<p align="center">
|
1311 |
+
<?php echo '<a href="#" class="comment_button" id="3">' . __('Advanced Label Options', 'cpt-plugin') . '</a>'; ?> ·
|
1312 |
+
<?php echo '<a href="#" class="comment_button" id="4">' . __('Advanced Options', 'cpt-plugin') . '</a>'; ?>
|
1313 |
+
</p>
|
1314 |
+
</td>
|
1315 |
+
</tr>
|
1316 |
+
|
1317 |
+
</table>
|
1318 |
+
|
1319 |
+
<div style="display:none;" id="slidepanel3">
|
1320 |
+
<p><?php _e('Below are the advanced label options for custom taxonomies. If you are unfamiliar with these labels the plugin will automatically create labels based off of your custom taxonomy name', 'cpt-plugin'); ?></p>
|
1321 |
+
<table class="form-table">
|
1322 |
+
<tr valign="top">
|
1323 |
+
<th scope="row"><?php _e('Search Items', 'cpt-plugin') ?></th>
|
1324 |
+
<td><input type="text" name="cpt_tax_labels[search_items]" tabindex="2" value="<?php If (isset($cpt_tax_labels["search_items"])) { echo esc_attr($cpt_tax_labels["search_items"]); } ?>" /> <a href="#" title="Custom taxonomy label. Used in the admin menu for displaying taxonomies." style="cursor: help;">?</a> (e.g. Search Actors)</td>
|
1325 |
+
</tr>
|
1326 |
+
|
1327 |
+
<tr valign="top">
|
1328 |
+
<th scope="row"><?php _e('Popular Items', 'cpt-plugin') ?></th>
|
1329 |
+
<td><input type="text" name="cpt_tax_labels[popular_items]" tabindex="2" value="<?php If (isset($cpt_tax_labels["popular_items"])) { echo esc_attr($cpt_tax_labels["popular_items"]); } ?>" /> <a href="#" title="Custom taxonomy label. Used in the admin menu for displaying taxonomies." style="cursor: help;">?</a> (e.g. Popular Actors)</td>
|
1330 |
+
</tr>
|
1331 |
+
|
1332 |
+
<tr valign="top">
|
1333 |
+
<th scope="row"><?php _e('All Items', 'cpt-plugin') ?></th>
|
1334 |
+
<td><input type="text" name="cpt_tax_labels[all_items]" tabindex="2" value="<?php If (isset($cpt_tax_labels["all_items"])) { echo esc_attr($cpt_tax_labels["all_items"]); } ?>" /> <a href="#" title="Custom taxonomy label. Used in the admin menu for displaying taxonomies." style="cursor: help;">?</a> (e.g. All Actors)</td>
|
1335 |
+
</tr>
|
1336 |
+
|
1337 |
+
<tr valign="top">
|
1338 |
+
<th scope="row"><?php _e('Parent Item', 'cpt-plugin') ?></th>
|
1339 |
+
<td><input type="text" name="cpt_tax_labels[parent_item]" tabindex="2" value="<?php If (isset($cpt_tax_labels["parent_item"])) { echo esc_attr($cpt_tax_labels["parent_item"]); } ?>" /> <a href="#" title="Custom taxonomy label. Used in the admin menu for displaying taxonomies." style="cursor: help;">?</a> (e.g. Parent Actor)</td>
|
1340 |
+
</tr>
|
1341 |
+
|
1342 |
+
<tr valign="top">
|
1343 |
+
<th scope="row"><?php _e('Parent Item Colon', 'cpt-plugin') ?></th>
|
1344 |
+
<td><input type="text" name="cpt_tax_labels[parent_item_colon]" tabindex="2" value="<?php If (isset($cpt_tax_labels["parent_item_colon"])) { echo esc_attr($cpt_tax_labels["parent_item_colon"]); } ?>" /> <a href="#" title="Custom taxonomy label. Used in the admin menu for displaying taxonomies." style="cursor: help;">?</a> (e.g. Parent Actor:)</td>
|
1345 |
+
</tr>
|
1346 |
+
|
1347 |
+
<tr valign="top">
|
1348 |
+
<th scope="row"><?php _e('Edit Item', 'cpt-plugin') ?></th>
|
1349 |
+
<td><input type="text" name="cpt_tax_labels[edit_item]" tabindex="2" value="<?php If (isset($cpt_tax_labels["edit_item"])) { echo esc_attr($cpt_tax_labels["edit_item"]); } ?>" /> <a href="#" title="Custom taxonomy label. Used in the admin menu for displaying taxonomies." style="cursor: help;">?</a> (e.g. Edit Actor)</td>
|
1350 |
+
</tr>
|
1351 |
+
|
1352 |
+
<tr valign="top">
|
1353 |
+
<th scope="row"><?php _e('Update Item', 'cpt-plugin') ?></th>
|
1354 |
+
<td><input type="text" name="cpt_tax_labels[update_item]" tabindex="2" value="<?php If (isset($cpt_tax_labels["update_item"])) { echo esc_attr($cpt_tax_labels["update_item"]); } ?>" /> <a href="#" title="Custom taxonomy label. Used in the admin menu for displaying taxonomies." style="cursor: help;">?</a> (e.g. Update Actor)</td>
|
1355 |
+
</tr>
|
1356 |
+
|
1357 |
+
<tr valign="top">
|
1358 |
+
<th scope="row"><?php _e('Add New Item', 'cpt-plugin') ?></th>
|
1359 |
+
<td><input type="text" name="cpt_tax_labels[add_new_item]" tabindex="2" value="<?php If (isset($cpt_tax_labels["add_new_item"])) { echo esc_attr($cpt_tax_labels["add_new_item"]); } ?>" /> <a href="#" title="Custom taxonomy label. Used in the admin menu for displaying taxonomies." style="cursor: help;">?</a> (e.g. Add New Actor)</td>
|
1360 |
+
</tr>
|
1361 |
+
|
1362 |
+
<tr valign="top">
|
1363 |
+
<th scope="row"><?php _e('New Item Name', 'cpt-plugin') ?></th>
|
1364 |
+
<td><input type="text" name="cpt_tax_labels[new_item_name]" tabindex="2" value="<?php If (isset($cpt_tax_labels["new_item_name"])) { echo esc_attr($cpt_tax_labels["new_item_name"]); } ?>" /> <a href="#" title="Custom taxonomy label. Used in the admin menu for displaying taxonomies." style="cursor: help;">?</a> (e.g. New Actor Name)</td>
|
1365 |
+
</tr>
|
1366 |
+
|
1367 |
+
<tr valign="top">
|
1368 |
+
<th scope="row"><?php _e('Separate Items with Commas', 'cpt-plugin') ?></th>
|
1369 |
+
<td><input type="text" name="cpt_tax_labels[separate_items_with_commas]" tabindex="2" value="<?php If (isset($cpt_tax_labels["separate_items_with_commas"])) { echo esc_attr($cpt_tax_labels["separate_items_with_commas"]); } ?>" /> <a href="#" title="Custom taxonomy label. Used in the admin menu for displaying taxonomies." style="cursor: help;">?</a> (e.g. Separate actors with commas)</td>
|
1370 |
+
</tr>
|
1371 |
+
|
1372 |
+
<tr valign="top">
|
1373 |
+
<th scope="row"><?php _e('Add or Remove Items', 'cpt-plugin') ?></th>
|
1374 |
+
<td><input type="text" name="cpt_tax_labels[add_or_remove_items]" tabindex="2" value="<?php If (isset($cpt_tax_labels["add_or_remove_items"])) { echo esc_attr($cpt_tax_labels["add_or_remove_items"]); } ?>" /> <a href="#" title="Custom taxonomy label. Used in the admin menu for displaying taxonomies." style="cursor: help;">?</a> (e.g. Add or remove actors)</td>
|
1375 |
+
</tr>
|
1376 |
+
|
1377 |
+
<tr valign="top">
|
1378 |
+
<th scope="row"><?php _e('Choose From Most Used', 'cpt-plugin') ?></th>
|
1379 |
+
<td><input type="text" name="cpt_tax_labels[choose_from_most_used]" tabindex="2" value="<?php If (isset($cpt_tax_labels["choose_from_most_used"])) { echo esc_attr($cpt_tax_labels["choose_from_most_used"]); } ?>" /> <a href="#" title="Custom taxonomy label. Used in the admin menu for displaying taxonomies." style="cursor: help;">?</a> (e.g. Choose from the most used actors)</td>
|
1380 |
+
</tr>
|
1381 |
+
</table>
|
1382 |
+
</div>
|
1383 |
+
|
1384 |
+
<div style="display:none;" id="slidepanel4">
|
1385 |
+
<table class="form-table">
|
1386 |
+
<tr valign="top">
|
1387 |
+
<th scope="row"><?php _e('Hierarchical', 'cpt-plugin') ?></th>
|
1388 |
+
<td>
|
1389 |
+
<SELECT name="cpt_custom_tax[hierarchical]" tabindex="25">
|
1390 |
+
<OPTION value="0" <?php If (isset($cpt_tax_hierarchical)) { If ($cpt_tax_hierarchical == 0) { echo 'selected="selected"'; } }Else{ echo 'selected="selected"'; } ?>>False</OPTION>
|
1391 |
+
<OPTION value="1" <?php If (isset($cpt_tax_hierarchical)) { If ($cpt_tax_hierarchical == 1) { echo 'selected="selected"'; } } ?>>True</OPTION>
|
1392 |
+
</SELECT> <a href="#" title="Whether the taxonomy is hierarchical" style="cursor: help;">?</a> (default: False)
|
1393 |
+
</td>
|
1394 |
+
</tr>
|
1395 |
+
|
1396 |
+
<tr valign="top">
|
1397 |
+
<th scope="row"><?php _e('Show UI', 'cpt-plugin') ?></th>
|
1398 |
+
<td>
|
1399 |
+
<SELECT name="cpt_custom_tax[show_ui]" tabindex="26">
|
1400 |
+
<OPTION value="0" <?php If (isset($cpt_tax_showui)) { If ($cpt_tax_showui == 0 && $cpt_tax_showui != '') { echo 'selected="selected"'; } } ?>>False</OPTION>
|
1401 |
+
<OPTION value="1" <?php If (isset($cpt_tax_showui)) { If ($cpt_tax_showui == 1 || is_null($cpt_tax_showui)) { echo 'selected="selected"'; } }Else{ echo 'selected="selected"'; } ?>>True</OPTION>
|
1402 |
+
</SELECT> <a href="#" title="Whether to generate a default UI for managing this custom taxonomy" style="cursor: help;">?</a> (default: True)
|
1403 |
+
</td>
|
1404 |
+
</tr>
|
1405 |
+
|
1406 |
+
<tr valign="top">
|
1407 |
+
<th scope="row"><?php _e('Query Var', 'cpt-plugin') ?></th>
|
1408 |
+
<td>
|
1409 |
+
<SELECT name="cpt_custom_tax[query_var]" tabindex="27">
|
1410 |
+
<OPTION value="0" <?php If (isset($cpt_tax_query_var)) { If ($cpt_tax_query_var == 0 && $cpt_tax_query_var != '') { echo 'selected="selected"'; } } ?>>False</OPTION>
|
1411 |
+
<OPTION value="1" <?php If (isset($cpt_tax_query_var)) { If ($cpt_tax_query_var == 1 || is_null($cpt_tax_query_var)) { echo 'selected="selected"'; } }Else{ echo 'selected="selected"'; } ?>>True</OPTION>
|
1412 |
+
</SELECT> <a href="#" title="" style="cursor: help;">?</a> (default: True)
|
1413 |
+
</td>
|
1414 |
+
</tr>
|
1415 |
+
|
1416 |
+
<tr valign="top">
|
1417 |
+
<th scope="row"><?php _e('Rewrite', 'cpt-plugin') ?></th>
|
1418 |
+
<td>
|
1419 |
+
<SELECT name="cpt_custom_tax[rewrite]" tabindex="28">
|
1420 |
+
<OPTION value="0" <?php If (isset($cpt_tax_rewrite)) { If ($cpt_tax_rewrite == 0 && $cpt_tax_rewrite != '') { echo 'selected="selected"'; } } ?>>False</OPTION>
|
1421 |
+
<OPTION value="1" <?php If (isset($cpt_tax_rewrite)) { If ($cpt_tax_rewrite == 1 || is_null($cpt_tax_rewrite)) { echo 'selected="selected"'; } }Else{ echo 'selected="selected"'; } ?>>True</OPTION>
|
1422 |
+
</SELECT> <a href="#" title="" style="cursor: help;">?</a> (default: True)
|
1423 |
+
</td>
|
1424 |
+
</tr>
|
1425 |
+
|
1426 |
+
<tr valign="top">
|
1427 |
+
<th scope="row"><?php _e('Custom Rewrite Slug', 'cpt-plugin') ?></th>
|
1428 |
+
<td><input type="text" name="cpt_custom_tax[rewrite_slug]" tabindex="9" value="<?php If (isset($cpt_tax_rewrite_slug)) { echo esc_attr($cpt_tax_rewrite_slug); } ?>" /> <a href="#" title="Custom Taxonomy Rewrite Slug" style="cursor: help;">?</a> (default: taxonomy name)</td>
|
1429 |
+
</tr>
|
1430 |
+
|
1431 |
+
</table>
|
1432 |
+
</div>
|
1433 |
+
|
1434 |
+
<p class="submit">
|
1435 |
+
<input type="submit" class="button-primary" tabindex="29" name="cpt_add_tax" value="<?php _e($cpt_tax_submit_name, 'cpt-plugin') ?>" />
|
1436 |
+
</p>
|
1437 |
+
</form>
|
1438 |
+
</td>
|
1439 |
+
</tr>
|
1440 |
+
</table>
|
1441 |
+
</div>
|
1442 |
+
<?php
|
1443 |
+
//load footer
|
1444 |
+
cpt_footer();
|
1445 |
+
|
1446 |
+
}
|
1447 |
+
|
1448 |
+
function cpt_footer() {
|
1449 |
+
?>
|
1450 |
+
<hr />
|
1451 |
+
<p class="cp_about"><a target="_blank" href="http://webdevstudios.com/support/forum/custom-post-type-ui/">Custom Post Type UI</a> v<?php echo CPT_VERSION; ?> - <a href="http://webdevstudios.com/support/forum/custom-post-type-ui/" target="_blank">Please Report Bugs</a> · Follow on Twitter: <a href="http://twitter.com/williamsba" target="_blank">Brad</a> · <a href="http://twitter.com/pluginize" target="_blank">Pluginize</a> · <a href="http://twitter.com/webdevstudios" target="_blank">WDS</a></p>
|
1452 |
+
<?php
|
1453 |
+
}
|
1454 |
+
|
1455 |
+
function cpt_check_return($return) {
|
1456 |
+
global $CPT_URL;
|
1457 |
+
|
1458 |
+
If($return=='cpt') {
|
1459 |
+
return ( isset( $_GET['return'] ) ) ? admin_url('admin.php?page=cpt_sub_manage_cpt&return='.$_GET['return']) : admin_url('admin.php?page=cpt_sub_manage_cpt');
|
1460 |
+
}Elseif($return=='tax'){
|
1461 |
+
return ( isset( $_GET['return'] ) ) ? admin_url('admin.php?page=cpt_sub_manage_taxonomies&return='.$_GET['return']) : admin_url('admin.php?page=cpt_sub_manage_taxonomies');
|
1462 |
+
}Elseif($return=='add') {
|
1463 |
+
return admin_url('admin.php?page=cpt_sub_add_new');
|
1464 |
+
}Else{
|
1465 |
+
return admin_url('admin.php?page=cpt_sub_add_new');
|
1466 |
+
}
|
1467 |
+
}
|
1468 |
+
|
1469 |
+
function get_disp_boolean($booText) {
|
1470 |
+
If ($booText == '0') {
|
1471 |
+
return false;
|
1472 |
+
}Else{
|
1473 |
+
return true;
|
1474 |
+
}
|
1475 |
+
}
|
1476 |
+
|
1477 |
+
function disp_boolean($booText) {
|
1478 |
+
If ($booText == '0') {
|
1479 |
+
return 'false';
|
1480 |
+
}Else{
|
1481 |
+
return 'true';
|
1482 |
+
}
|
1483 |
+
}
|
1484 |
+
?>
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,345 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: cus\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2010-06-28 21:48+0900\n"
|
6 |
+
"PO-Revision-Date: 2010-06-28 21:49+0900\n"
|
7 |
+
"Last-Translator: Tai <tekapo@gmail.com>\n"
|
8 |
+
"Language-Team: ja <jotaki@digitalcube.jp>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"X-Poedit-Basepath: /Users/digitalcubeimac/www/wp_300_ja/wp-content/plugins\n"
|
14 |
+
"X-Poedit-Language: Japanese\n"
|
15 |
+
"X-Poedit-Country: JAPAN\n"
|
16 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
+
"X-Poedit-SearchPath-0: custom-post-type-ui\n"
|
18 |
+
|
19 |
+
#: custom-post-type-ui/custom-post-type-ui.php:422
|
20 |
+
msgid "Custom Post Types UI"
|
21 |
+
msgstr "Custom Post Types UI"
|
22 |
+
|
23 |
+
#: custom-post-type-ui/custom-post-type-ui.php:423
|
24 |
+
msgid "Plugin version"
|
25 |
+
msgstr "プラグインバージョン"
|
26 |
+
|
27 |
+
#: custom-post-type-ui/custom-post-type-ui.php:424
|
28 |
+
msgid "WordPress version"
|
29 |
+
msgstr "WordPress のバージョン"
|
30 |
+
|
31 |
+
#: custom-post-type-ui/custom-post-type-ui.php:425
|
32 |
+
msgid "Slightly Outdated Demo Video"
|
33 |
+
msgstr "ちょっと古いデモビデオ"
|
34 |
+
|
35 |
+
#: custom-post-type-ui/custom-post-type-ui.php:447
|
36 |
+
msgid "Custom post type deleted successfully"
|
37 |
+
msgstr "カスタム投稿タイプの削除に成功しました。"
|
38 |
+
|
39 |
+
#: custom-post-type-ui/custom-post-type-ui.php:452
|
40 |
+
msgid "Manage Custom Post Types"
|
41 |
+
msgstr "カスタム投稿タイプの管理"
|
42 |
+
|
43 |
+
#: custom-post-type-ui/custom-post-type-ui.php:453
|
44 |
+
msgid "Deleting custom post types does <strong>NOT</strong> delete any content added to those post types. You can easily recreate your post types and the content will still exist."
|
45 |
+
msgstr "カスタム投稿タイプを削除してもその投稿タイプに追加されている<strong>コンテンツは削除されません</strong>。投稿タイプの再作成は簡単で、コンテンツもなくなりません。"
|
46 |
+
|
47 |
+
#: custom-post-type-ui/custom-post-type-ui.php:460
|
48 |
+
#: custom-post-type-ui/custom-post-type-ui.php:672
|
49 |
+
msgid "Action"
|
50 |
+
msgstr "操作"
|
51 |
+
|
52 |
+
#: custom-post-type-ui/custom-post-type-ui.php:461
|
53 |
+
#: custom-post-type-ui/custom-post-type-ui.php:594
|
54 |
+
#: custom-post-type-ui/custom-post-type-ui.php:673
|
55 |
+
msgid "Name"
|
56 |
+
msgstr "名前"
|
57 |
+
|
58 |
+
#: custom-post-type-ui/custom-post-type-ui.php:462
|
59 |
+
#: custom-post-type-ui/custom-post-type-ui.php:595
|
60 |
+
#: custom-post-type-ui/custom-post-type-ui.php:674
|
61 |
+
#: custom-post-type-ui/custom-post-type-ui.php:898
|
62 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1115
|
63 |
+
msgid "Label"
|
64 |
+
msgstr "ラベル"
|
65 |
+
|
66 |
+
#: custom-post-type-ui/custom-post-type-ui.php:463
|
67 |
+
#: custom-post-type-ui/custom-post-type-ui.php:597
|
68 |
+
#: custom-post-type-ui/custom-post-type-ui.php:983
|
69 |
+
msgid "Public"
|
70 |
+
msgstr "一般公開"
|
71 |
+
|
72 |
+
#: custom-post-type-ui/custom-post-type-ui.php:464
|
73 |
+
#: custom-post-type-ui/custom-post-type-ui.php:598
|
74 |
+
#: custom-post-type-ui/custom-post-type-ui.php:678
|
75 |
+
#: custom-post-type-ui/custom-post-type-ui.php:993
|
76 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1233
|
77 |
+
msgid "Show UI"
|
78 |
+
msgstr "UI を表示"
|
79 |
+
|
80 |
+
#: custom-post-type-ui/custom-post-type-ui.php:465
|
81 |
+
#: custom-post-type-ui/custom-post-type-ui.php:600
|
82 |
+
#: custom-post-type-ui/custom-post-type-ui.php:677
|
83 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1008
|
84 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1223
|
85 |
+
msgid "Hierarchical"
|
86 |
+
msgstr "階層"
|
87 |
+
|
88 |
+
#: custom-post-type-ui/custom-post-type-ui.php:466
|
89 |
+
#: custom-post-type-ui/custom-post-type-ui.php:601
|
90 |
+
#: custom-post-type-ui/custom-post-type-ui.php:679
|
91 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1018
|
92 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1253
|
93 |
+
msgid "Rewrite"
|
94 |
+
msgstr "リライト"
|
95 |
+
|
96 |
+
#: custom-post-type-ui/custom-post-type-ui.php:467
|
97 |
+
#: custom-post-type-ui/custom-post-type-ui.php:602
|
98 |
+
#: custom-post-type-ui/custom-post-type-ui.php:680
|
99 |
+
msgid "Rewrite Slug"
|
100 |
+
msgstr "Rewrite スラッグ"
|
101 |
+
|
102 |
+
#: custom-post-type-ui/custom-post-type-ui.php:468
|
103 |
+
msgid "Total Published"
|
104 |
+
msgstr "公開数"
|
105 |
+
|
106 |
+
#: custom-post-type-ui/custom-post-type-ui.php:469
|
107 |
+
msgid "Total Drafts"
|
108 |
+
msgstr "下書き数"
|
109 |
+
|
110 |
+
#: custom-post-type-ui/custom-post-type-ui.php:470
|
111 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1048
|
112 |
+
msgid "Supports"
|
113 |
+
msgstr "サポート"
|
114 |
+
|
115 |
+
#: custom-post-type-ui/custom-post-type-ui.php:574
|
116 |
+
msgid "Place the below code in your themes functions.php file to manually create this custom post type"
|
117 |
+
msgstr "以下のコードを functions.php ファイルに追記すれば、手動でこのカスタム投稿タイプを作成できます。"
|
118 |
+
|
119 |
+
#: custom-post-type-ui/custom-post-type-ui.php:590
|
120 |
+
msgid "Additional Custom Post Types"
|
121 |
+
msgstr "追加されているカスタム投稿タイプ"
|
122 |
+
|
123 |
+
#: custom-post-type-ui/custom-post-type-ui.php:591
|
124 |
+
msgid "The custom post types below are registered in WordPress but were not created by the Custom Post Type UI Plugin."
|
125 |
+
msgstr "以下のカスタム投稿タイプは WordPress に登録されていますが Custom Post Type UI で作成されてものではありません。"
|
126 |
+
|
127 |
+
#: custom-post-type-ui/custom-post-type-ui.php:596
|
128 |
+
#: custom-post-type-ui/custom-post-type-ui.php:675
|
129 |
+
#: custom-post-type-ui/custom-post-type-ui.php:903
|
130 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1120
|
131 |
+
msgid "Singular Label"
|
132 |
+
msgstr "単数形のラベル"
|
133 |
+
|
134 |
+
#: custom-post-type-ui/custom-post-type-ui.php:599
|
135 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1003
|
136 |
+
msgid "Capability Type"
|
137 |
+
msgstr "利用タイプ"
|
138 |
+
|
139 |
+
#: custom-post-type-ui/custom-post-type-ui.php:603
|
140 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1033
|
141 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1243
|
142 |
+
msgid "Query Var"
|
143 |
+
msgstr "クエリーバージョン"
|
144 |
+
|
145 |
+
#: custom-post-type-ui/custom-post-type-ui.php:658
|
146 |
+
msgid "Custom taxonomy deleted successfully"
|
147 |
+
msgstr "カスタム分類を削除しました。"
|
148 |
+
|
149 |
+
#: custom-post-type-ui/custom-post-type-ui.php:663
|
150 |
+
msgid "Manage Custom Taxonomies"
|
151 |
+
msgstr "カスタム分類の管理"
|
152 |
+
|
153 |
+
#: custom-post-type-ui/custom-post-type-ui.php:664
|
154 |
+
msgid "Deleting custom taxonomies does <strong>NOT</strong> delete any content added to those taxonomies. You can easily recreate your taxonomies and the content will still exist."
|
155 |
+
msgstr "カスタム分類を削除してもその分類に追加されている<strong>コンテンツは削除されません</strong>。カスタム分類の再作成は簡単で、コンテンツもなくなりません。"
|
156 |
+
|
157 |
+
#: custom-post-type-ui/custom-post-type-ui.php:676
|
158 |
+
msgid "Attached Post Types"
|
159 |
+
msgstr "利用する投稿タイプ"
|
160 |
+
|
161 |
+
#: custom-post-type-ui/custom-post-type-ui.php:751
|
162 |
+
msgid "Place the below code in your themes functions.php file to manually create this custom taxonomy"
|
163 |
+
msgstr "以下のコードを functions.php ファイルに追記すれば、手動でこのカスタム分類を作成できます。"
|
164 |
+
|
165 |
+
#: custom-post-type-ui/custom-post-type-ui.php:852
|
166 |
+
msgid "Custom post type created successfully. You may need to refresh to view the new post type."
|
167 |
+
msgstr "カスタム投稿タイプを作成しました。新しい投稿タイプを表示するには画面を再読み込みする必要があるかもしれません。"
|
168 |
+
|
169 |
+
#: custom-post-type-ui/custom-post-type-ui.php:857
|
170 |
+
msgid "Custom taxonomy created successfully. You may need to refresh to view the new taxonomy."
|
171 |
+
msgstr "カスタム分類を作成しました。新しい分類を表示するには画面を再読み込みする必要があるかもしれません。"
|
172 |
+
|
173 |
+
#: custom-post-type-ui/custom-post-type-ui.php:863
|
174 |
+
msgid "Post type name is a required field."
|
175 |
+
msgstr "投稿タイプ名は必須項目です。"
|
176 |
+
|
177 |
+
#: custom-post-type-ui/custom-post-type-ui.php:867
|
178 |
+
msgid "Taxonomy name is a required field."
|
179 |
+
msgstr "分類名は必須です。"
|
180 |
+
|
181 |
+
#: custom-post-type-ui/custom-post-type-ui.php:871
|
182 |
+
msgid "You must assign your custom taxonomy to at least one post type."
|
183 |
+
msgstr "カスタム分類は最低ひとつのカスタム投稿タイプに割り当てる必要があります。"
|
184 |
+
|
185 |
+
#: custom-post-type-ui/custom-post-type-ui.php:880
|
186 |
+
msgid "Edit Custom Post Type"
|
187 |
+
msgstr "カスタム投稿タイプを編集"
|
188 |
+
|
189 |
+
#: custom-post-type-ui/custom-post-type-ui.php:880
|
190 |
+
#: custom-post-type-ui/custom-post-type-ui.php:882
|
191 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1097
|
192 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1099
|
193 |
+
msgid "Reset"
|
194 |
+
msgstr "リセット"
|
195 |
+
|
196 |
+
#: custom-post-type-ui/custom-post-type-ui.php:882
|
197 |
+
msgid "Create New Custom Post Type"
|
198 |
+
msgstr "カスタム投稿タイプの作成"
|
199 |
+
|
200 |
+
#: custom-post-type-ui/custom-post-type-ui.php:884
|
201 |
+
msgid "If you are unfamiliar with the options below only fill out the <strong>Post Type Name</strong> and <strong>Label</strong> fields and check which meta boxes to support. The other settings are set to the most common defaults for custom post types."
|
202 |
+
msgstr "以下のオプションについてよく分からなければ、<strong>投稿タイプ名</strong>と<strong>ラベル</strong>の欄だけ入力し、サポートするメタボックスをチェックしてください。他の設定はカスタム投稿タイプにもっとも一般的な初期設定値が設定されます。"
|
203 |
+
|
204 |
+
#: custom-post-type-ui/custom-post-type-ui.php:893
|
205 |
+
msgid "Post Type Name"
|
206 |
+
msgstr "投稿タイプ名"
|
207 |
+
|
208 |
+
#: custom-post-type-ui/custom-post-type-ui.php:908
|
209 |
+
msgid "Description"
|
210 |
+
msgstr "説明"
|
211 |
+
|
212 |
+
#: custom-post-type-ui/custom-post-type-ui.php:913
|
213 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1149
|
214 |
+
msgid "View Advanced Label Options"
|
215 |
+
msgstr "詳細ラベル設定を表示する"
|
216 |
+
|
217 |
+
#: custom-post-type-ui/custom-post-type-ui.php:914
|
218 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1150
|
219 |
+
msgid "View Advanced Options"
|
220 |
+
msgstr "詳細設定を表示する"
|
221 |
+
|
222 |
+
#: custom-post-type-ui/custom-post-type-ui.php:920
|
223 |
+
msgid "Below are the advanced label options for custom post types. If you are unfamiliar with these labels the plugin will automatically create labels based off of your custom post type name"
|
224 |
+
msgstr "以下はカスタム投稿タイプの詳細ラベルオプションです。こうしたラベルについてよく分からなければ、入力したカスタム投稿タイプ名をもとに自動的にラベルを作成します。"
|
225 |
+
|
226 |
+
#: custom-post-type-ui/custom-post-type-ui.php:923
|
227 |
+
msgid "Add New"
|
228 |
+
msgstr "新規追加"
|
229 |
+
|
230 |
+
#: custom-post-type-ui/custom-post-type-ui.php:928
|
231 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1194
|
232 |
+
msgid "Add New Item"
|
233 |
+
msgstr "新規項目追加"
|
234 |
+
|
235 |
+
#: custom-post-type-ui/custom-post-type-ui.php:933
|
236 |
+
msgid "Edit"
|
237 |
+
msgstr "編集"
|
238 |
+
|
239 |
+
#: custom-post-type-ui/custom-post-type-ui.php:938
|
240 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1184
|
241 |
+
msgid "Edit Item"
|
242 |
+
msgstr "項目を編集"
|
243 |
+
|
244 |
+
#: custom-post-type-ui/custom-post-type-ui.php:943
|
245 |
+
msgid "New Item"
|
246 |
+
msgstr "新規項目"
|
247 |
+
|
248 |
+
#: custom-post-type-ui/custom-post-type-ui.php:948
|
249 |
+
msgid "View"
|
250 |
+
msgstr "表示"
|
251 |
+
|
252 |
+
#: custom-post-type-ui/custom-post-type-ui.php:953
|
253 |
+
msgid "View Item"
|
254 |
+
msgstr "項目を表示"
|
255 |
+
|
256 |
+
#: custom-post-type-ui/custom-post-type-ui.php:958
|
257 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1159
|
258 |
+
msgid "Search Items"
|
259 |
+
msgstr "項目検索"
|
260 |
+
|
261 |
+
#: custom-post-type-ui/custom-post-type-ui.php:963
|
262 |
+
msgid "Not Found"
|
263 |
+
msgstr "見つかりません"
|
264 |
+
|
265 |
+
#: custom-post-type-ui/custom-post-type-ui.php:968
|
266 |
+
msgid "Not Found in Trash"
|
267 |
+
msgstr "ゴミ箱にはありません。"
|
268 |
+
|
269 |
+
#: custom-post-type-ui/custom-post-type-ui.php:973
|
270 |
+
msgid "Parent"
|
271 |
+
msgstr "親"
|
272 |
+
|
273 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1028
|
274 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1263
|
275 |
+
msgid "Custom Rewrite Slug"
|
276 |
+
msgstr "カスタムリライトスラッグ"
|
277 |
+
|
278 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1043
|
279 |
+
msgid "Menu Position"
|
280 |
+
msgstr "メニューの位置"
|
281 |
+
|
282 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1064
|
283 |
+
msgid "Built-in Taxonomies"
|
284 |
+
msgstr "ビルトイン分類"
|
285 |
+
|
286 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1097
|
287 |
+
msgid "Edit Custom Taxonomy"
|
288 |
+
msgstr "カスタム分類の編集"
|
289 |
+
|
290 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1099
|
291 |
+
msgid "Create Custom Taxonomy"
|
292 |
+
msgstr "カスタム分類作成"
|
293 |
+
|
294 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1101
|
295 |
+
msgid "If you are unfamiliar with the options below only fill out the <strong>Taxonomy Name</strong> and <strong>Post Type Name</strong> fields. The other settings are set to the most common defaults for custom taxonomies."
|
296 |
+
msgstr "以下のオプションについてよく分からなければ、<strong>分類名</strong>と<strong>投稿タイプ名</strong>の欄だけ入力してください。他の設定はカスタム分類にもっとも一般的な初期設定値が設定されます。"
|
297 |
+
|
298 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1110
|
299 |
+
msgid "Taxonomy Name"
|
300 |
+
msgstr "分類名"
|
301 |
+
|
302 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1125
|
303 |
+
msgid "Attach to Post Type"
|
304 |
+
msgstr "利用する投稿タイプ"
|
305 |
+
|
306 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1156
|
307 |
+
msgid "Below are the advanced label options for custom taxonomies. If you are unfamiliar with these labels the plugin will automatically create labels based off of your custom taxonomy name"
|
308 |
+
msgstr "以下はカスタム分類の詳細ラベルオプションです。こうしたラベルについてよく分からなければ、入力したカスタム分類名をもとに自動的にラベルを作成します。"
|
309 |
+
|
310 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1164
|
311 |
+
msgid "Popular Items"
|
312 |
+
msgstr "よく利用されている項目"
|
313 |
+
|
314 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1169
|
315 |
+
msgid "All Items"
|
316 |
+
msgstr "すべての項目"
|
317 |
+
|
318 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1174
|
319 |
+
msgid "Parent Item"
|
320 |
+
msgstr "親項目"
|
321 |
+
|
322 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1179
|
323 |
+
msgid "Parent Item Colon"
|
324 |
+
msgstr "親項目コロン"
|
325 |
+
|
326 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1189
|
327 |
+
msgid "Update Item"
|
328 |
+
msgstr "項目をアップデート"
|
329 |
+
|
330 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1199
|
331 |
+
msgid "New Item Name"
|
332 |
+
msgstr "新規項目名"
|
333 |
+
|
334 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1204
|
335 |
+
msgid "Separate Items with Commas"
|
336 |
+
msgstr "項目が複数ある場合はコンマで区切ってください。"
|
337 |
+
|
338 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1209
|
339 |
+
msgid "Add or Remove Items"
|
340 |
+
msgstr "項目の追加もしくは削除"
|
341 |
+
|
342 |
+
#: custom-post-type-ui/custom-post-type-ui.php:1214
|
343 |
+
msgid "Choose From Most Used"
|
344 |
+
msgstr "最もよく使われているものから選択"
|
345 |
+
|
Binary file
|
@@ -0,0 +1,495 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Custom Post Type UI 简体中文语言包\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2010-06-30 12:19-0500\n"
|
6 |
+
"PO-Revision-Date: 2010-07-01 13:49+0800\n"
|
7 |
+
"Last-Translator: Dreamcolor <dreamcolor@gmail.com>\n"
|
8 |
+
"Language-Team: Dreamcolor <dreamcolor@gmail.com>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-KeywordsList: \n"
|
13 |
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
14 |
+
"X-Poedit-Language: Chinese\n"
|
15 |
+
"X-Poedit-Country: China\n"
|
16 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
+
|
18 |
+
#: C:\WDS\Project
|
19 |
+
#: Files\Plugins\Custom Post Type
|
20 |
+
#: UI\trunk/custom-post-type-ui.php:420
|
21 |
+
msgid "Custom Post Types UI"
|
22 |
+
msgstr "Custom Post Types UI"
|
23 |
+
|
24 |
+
#: C:\WDS\Project
|
25 |
+
#: Files\Plugins\Custom Post Type
|
26 |
+
#: UI\trunk/custom-post-type-ui.php:421
|
27 |
+
msgid "Plugin version"
|
28 |
+
msgstr "插件版本"
|
29 |
+
|
30 |
+
#: C:\WDS\Project
|
31 |
+
#: Files\Plugins\Custom Post Type
|
32 |
+
#: UI\trunk/custom-post-type-ui.php:422
|
33 |
+
msgid "WordPress version"
|
34 |
+
msgstr "WordPress 版本"
|
35 |
+
|
36 |
+
#: C:\WDS\Project
|
37 |
+
#: Files\Plugins\Custom Post Type
|
38 |
+
#: UI\trunk/custom-post-type-ui.php:423
|
39 |
+
msgid "Slightly Outdated Demo Video"
|
40 |
+
msgstr "早期制作的演示视频"
|
41 |
+
|
42 |
+
#: C:\WDS\Project
|
43 |
+
#: Files\Plugins\Custom Post Type
|
44 |
+
#: UI\trunk/custom-post-type-ui.php:445
|
45 |
+
msgid "Custom post type deleted successfully"
|
46 |
+
msgstr "自定义文章类型被成功删除"
|
47 |
+
|
48 |
+
#: C:\WDS\Project
|
49 |
+
#: Files\Plugins\Custom Post Type
|
50 |
+
#: UI\trunk/custom-post-type-ui.php:450
|
51 |
+
msgid "Manage Custom Post Types"
|
52 |
+
msgstr "管理自定义文章类型"
|
53 |
+
|
54 |
+
#: C:\WDS\Project
|
55 |
+
#: Files\Plugins\Custom Post Type
|
56 |
+
#: UI\trunk/custom-post-type-ui.php:451
|
57 |
+
msgid "Deleting custom post types does <strong>NOT</strong> delete any content added to those post types. You can easily recreate your post types and the content will still exist."
|
58 |
+
msgstr "删除自定义文章类型<strong>不会</strong>删除被添加到该文章类型中的任何内容。您可以简单的重新创建您的文章类型,并且这些内容依旧存在。"
|
59 |
+
|
60 |
+
#: C:\WDS\Project
|
61 |
+
#: Files\Plugins\Custom Post Type
|
62 |
+
#: UI\trunk/custom-post-type-ui.php:458
|
63 |
+
#: UI\trunk/custom-post-type-ui.php:670
|
64 |
+
msgid "Action"
|
65 |
+
msgstr "操作"
|
66 |
+
|
67 |
+
#: C:\WDS\Project
|
68 |
+
#: Files\Plugins\Custom Post Type
|
69 |
+
#: UI\trunk/custom-post-type-ui.php:459
|
70 |
+
#: UI\trunk/custom-post-type-ui.php:592
|
71 |
+
#: UI\trunk/custom-post-type-ui.php:671
|
72 |
+
msgid "Name"
|
73 |
+
msgstr "名称"
|
74 |
+
|
75 |
+
#: C:\WDS\Project
|
76 |
+
#: Files\Plugins\Custom Post Type
|
77 |
+
#: UI\trunk/custom-post-type-ui.php:460
|
78 |
+
#: UI\trunk/custom-post-type-ui.php:593
|
79 |
+
#: UI\trunk/custom-post-type-ui.php:672
|
80 |
+
#: UI\trunk/custom-post-type-ui.php:896
|
81 |
+
#: UI\trunk/custom-post-type-ui.php:1113
|
82 |
+
msgid "Label"
|
83 |
+
msgstr "标签"
|
84 |
+
|
85 |
+
#: C:\WDS\Project
|
86 |
+
#: Files\Plugins\Custom Post Type
|
87 |
+
#: UI\trunk/custom-post-type-ui.php:461
|
88 |
+
#: UI\trunk/custom-post-type-ui.php:595
|
89 |
+
#: UI\trunk/custom-post-type-ui.php:981
|
90 |
+
msgid "Public"
|
91 |
+
msgstr "公开"
|
92 |
+
|
93 |
+
#: C:\WDS\Project
|
94 |
+
#: Files\Plugins\Custom Post Type
|
95 |
+
#: UI\trunk/custom-post-type-ui.php:462
|
96 |
+
#: UI\trunk/custom-post-type-ui.php:596
|
97 |
+
#: UI\trunk/custom-post-type-ui.php:676
|
98 |
+
#: UI\trunk/custom-post-type-ui.php:991
|
99 |
+
#: UI\trunk/custom-post-type-ui.php:1231
|
100 |
+
msgid "Show UI"
|
101 |
+
msgstr "显示用户界面"
|
102 |
+
|
103 |
+
#: C:\WDS\Project
|
104 |
+
#: Files\Plugins\Custom Post Type
|
105 |
+
#: UI\trunk/custom-post-type-ui.php:463
|
106 |
+
#: UI\trunk/custom-post-type-ui.php:598
|
107 |
+
#: UI\trunk/custom-post-type-ui.php:675
|
108 |
+
#: UI\trunk/custom-post-type-ui.php:1006
|
109 |
+
#: UI\trunk/custom-post-type-ui.php:1221
|
110 |
+
msgid "Hierarchical"
|
111 |
+
msgstr "层级"
|
112 |
+
|
113 |
+
#: C:\WDS\Project
|
114 |
+
#: Files\Plugins\Custom Post Type
|
115 |
+
#: UI\trunk/custom-post-type-ui.php:464
|
116 |
+
#: UI\trunk/custom-post-type-ui.php:599
|
117 |
+
#: UI\trunk/custom-post-type-ui.php:677
|
118 |
+
#: UI\trunk/custom-post-type-ui.php:1016
|
119 |
+
#: UI\trunk/custom-post-type-ui.php:1251
|
120 |
+
msgid "Rewrite"
|
121 |
+
msgstr "重写"
|
122 |
+
|
123 |
+
#: C:\WDS\Project
|
124 |
+
#: Files\Plugins\Custom Post Type
|
125 |
+
#: UI\trunk/custom-post-type-ui.php:465
|
126 |
+
#: UI\trunk/custom-post-type-ui.php:600
|
127 |
+
#: UI\trunk/custom-post-type-ui.php:678
|
128 |
+
msgid "Rewrite Slug"
|
129 |
+
msgstr "重写缩略名"
|
130 |
+
|
131 |
+
#: C:\WDS\Project
|
132 |
+
#: Files\Plugins\Custom Post Type
|
133 |
+
#: UI\trunk/custom-post-type-ui.php:466
|
134 |
+
msgid "Total Published"
|
135 |
+
msgstr "已发布总数"
|
136 |
+
|
137 |
+
#: C:\WDS\Project
|
138 |
+
#: Files\Plugins\Custom Post Type
|
139 |
+
#: UI\trunk/custom-post-type-ui.php:467
|
140 |
+
msgid "Total Drafts"
|
141 |
+
msgstr "草稿总数"
|
142 |
+
|
143 |
+
#: C:\WDS\Project
|
144 |
+
#: Files\Plugins\Custom Post Type
|
145 |
+
#: UI\trunk/custom-post-type-ui.php:468
|
146 |
+
#: UI\trunk/custom-post-type-ui.php:1046
|
147 |
+
msgid "Supports"
|
148 |
+
msgstr "支持"
|
149 |
+
|
150 |
+
#: C:\WDS\Project
|
151 |
+
#: Files\Plugins\Custom Post Type
|
152 |
+
#: UI\trunk/custom-post-type-ui.php:572
|
153 |
+
msgid "Place the below code in your themes functions.php file to manually create this custom post type"
|
154 |
+
msgstr "请将下面的代码放入您主题的 functions.php 文件中,用来手动创建自定义文章类型"
|
155 |
+
|
156 |
+
#: C:\WDS\Project
|
157 |
+
#: Files\Plugins\Custom Post Type
|
158 |
+
#: UI\trunk/custom-post-type-ui.php:588
|
159 |
+
msgid "Additional Custom Post Types"
|
160 |
+
msgstr "其它自定义文章类型"
|
161 |
+
|
162 |
+
#: C:\WDS\Project
|
163 |
+
#: Files\Plugins\Custom Post Type
|
164 |
+
#: UI\trunk/custom-post-type-ui.php:589
|
165 |
+
msgid "The custom post types below are registered in WordPress but were not created by the Custom Post Type UI Plugin."
|
166 |
+
msgstr "以下自定义文章类别已在 WordPress 中注册,但是它们并不是由 Custom Post Type UI 插件创建的。"
|
167 |
+
|
168 |
+
#: C:\WDS\Project
|
169 |
+
#: Files\Plugins\Custom Post Type
|
170 |
+
#: UI\trunk/custom-post-type-ui.php:594
|
171 |
+
#: UI\trunk/custom-post-type-ui.php:673
|
172 |
+
#: UI\trunk/custom-post-type-ui.php:901
|
173 |
+
#: UI\trunk/custom-post-type-ui.php:1118
|
174 |
+
msgid "Singular Label"
|
175 |
+
msgstr "单数标签"
|
176 |
+
|
177 |
+
#: C:\WDS\Project
|
178 |
+
#: Files\Plugins\Custom Post Type
|
179 |
+
#: UI\trunk/custom-post-type-ui.php:597
|
180 |
+
#: UI\trunk/custom-post-type-ui.php:1001
|
181 |
+
msgid "Capability Type"
|
182 |
+
msgstr "权限类型"
|
183 |
+
|
184 |
+
#: C:\WDS\Project
|
185 |
+
#: Files\Plugins\Custom Post Type
|
186 |
+
#: UI\trunk/custom-post-type-ui.php:601
|
187 |
+
#: UI\trunk/custom-post-type-ui.php:1031
|
188 |
+
#: UI\trunk/custom-post-type-ui.php:1241
|
189 |
+
msgid "Query Var"
|
190 |
+
msgstr "查询变量"
|
191 |
+
|
192 |
+
#: C:\WDS\Project
|
193 |
+
#: Files\Plugins\Custom Post Type
|
194 |
+
#: UI\trunk/custom-post-type-ui.php:656
|
195 |
+
msgid "Custom taxonomy deleted successfully"
|
196 |
+
msgstr "自定义类别被成功删除"
|
197 |
+
|
198 |
+
#: C:\WDS\Project
|
199 |
+
#: Files\Plugins\Custom Post Type
|
200 |
+
#: UI\trunk/custom-post-type-ui.php:661
|
201 |
+
msgid "Manage Custom Taxonomies"
|
202 |
+
msgstr "管理自定义类别"
|
203 |
+
|
204 |
+
#: C:\WDS\Project
|
205 |
+
#: Files\Plugins\Custom Post Type
|
206 |
+
#: UI\trunk/custom-post-type-ui.php:662
|
207 |
+
msgid "Deleting custom taxonomies does <strong>NOT</strong> delete any content added to those taxonomies. You can easily recreate your taxonomies and the content will still exist."
|
208 |
+
msgstr "删除自定义类别<strong>不会</strong>删除被添加到该类别中的任何内容。您可以简单的重新创建您的类别,并且这些内容依旧存在。"
|
209 |
+
|
210 |
+
#: C:\WDS\Project
|
211 |
+
#: Files\Plugins\Custom Post Type
|
212 |
+
#: UI\trunk/custom-post-type-ui.php:674
|
213 |
+
msgid "Attached Post Types"
|
214 |
+
msgstr "已附属文章类型"
|
215 |
+
|
216 |
+
#: C:\WDS\Project
|
217 |
+
#: Files\Plugins\Custom Post Type
|
218 |
+
#: UI\trunk/custom-post-type-ui.php:749
|
219 |
+
msgid "Place the below code in your themes functions.php file to manually create this custom taxonomy"
|
220 |
+
msgstr "请将下面的代码放入您主题的 functions.php 文件中,用来手动创建自定义类别"
|
221 |
+
|
222 |
+
#: C:\WDS\Project
|
223 |
+
#: Files\Plugins\Custom Post Type
|
224 |
+
#: UI\trunk/custom-post-type-ui.php:850
|
225 |
+
msgid "Custom post type created successfully. You may need to refresh to view the new post type."
|
226 |
+
msgstr "自定义文章类型创建成功。您需要刷新才能查看到新文章类型。"
|
227 |
+
|
228 |
+
#: C:\WDS\Project
|
229 |
+
#: Files\Plugins\Custom Post Type
|
230 |
+
#: UI\trunk/custom-post-type-ui.php:855
|
231 |
+
msgid "Custom taxonomy created successfully. You may need to refresh to view the new taxonomy."
|
232 |
+
msgstr "自定义类别创建成功。您需要刷新才能查看到新类别。"
|
233 |
+
|
234 |
+
#: C:\WDS\Project
|
235 |
+
#: Files\Plugins\Custom Post Type
|
236 |
+
#: UI\trunk/custom-post-type-ui.php:861
|
237 |
+
msgid "Post type name is a required field."
|
238 |
+
msgstr "日志类型名称区域必须填写。"
|
239 |
+
|
240 |
+
#: C:\WDS\Project
|
241 |
+
#: Files\Plugins\Custom Post Type
|
242 |
+
#: UI\trunk/custom-post-type-ui.php:865
|
243 |
+
msgid "Taxonomy name is a required field."
|
244 |
+
msgstr "类别名称区域必须填写。"
|
245 |
+
|
246 |
+
#: C:\WDS\Project
|
247 |
+
#: Files\Plugins\Custom Post Type
|
248 |
+
#: UI\trunk/custom-post-type-ui.php:869
|
249 |
+
msgid "You must assign your custom taxonomy to at least one post type."
|
250 |
+
msgstr "您必须为您的自定义类别分配至少一个文章类型。"
|
251 |
+
|
252 |
+
#: C:\WDS\Project
|
253 |
+
#: Files\Plugins\Custom Post Type
|
254 |
+
#: UI\trunk/custom-post-type-ui.php:878
|
255 |
+
msgid "Edit Custom Post Type"
|
256 |
+
msgstr "编辑自定义文章类型"
|
257 |
+
|
258 |
+
#: C:\WDS\Project
|
259 |
+
#: Files\Plugins\Custom Post Type
|
260 |
+
#: UI\trunk/custom-post-type-ui.php:878
|
261 |
+
#: UI\trunk/custom-post-type-ui.php:880
|
262 |
+
#: UI\trunk/custom-post-type-ui.php:1095
|
263 |
+
#: UI\trunk/custom-post-type-ui.php:1097
|
264 |
+
msgid "Reset"
|
265 |
+
msgstr "复位"
|
266 |
+
|
267 |
+
#: C:\WDS\Project
|
268 |
+
#: Files\Plugins\Custom Post Type
|
269 |
+
#: UI\trunk/custom-post-type-ui.php:880
|
270 |
+
msgid "Create New Custom Post Type"
|
271 |
+
msgstr "创建新自定义文章类型"
|
272 |
+
|
273 |
+
#: C:\WDS\Project
|
274 |
+
#: Files\Plugins\Custom Post Type
|
275 |
+
#: UI\trunk/custom-post-type-ui.php:882
|
276 |
+
msgid "If you are unfamiliar with the options below only fill out the <strong>Post Type Name</strong> and <strong>Label</strong> fields and check which meta boxes to support. The other settings are set to the most common defaults for custom post types."
|
277 |
+
msgstr "如果您对下面的选项感到陌生,那么您只需要填写<strong>文章类型名称</strong>和<strong>标签</strong>区域并查看一下支持哪些信息即可。其它的设置将被设置为自定义文章类型最常用的默认值。"
|
278 |
+
|
279 |
+
#: C:\WDS\Project
|
280 |
+
#: Files\Plugins\Custom Post Type
|
281 |
+
#: UI\trunk/custom-post-type-ui.php:891
|
282 |
+
msgid "Post Type Name"
|
283 |
+
msgstr "文章类型名称"
|
284 |
+
|
285 |
+
#: C:\WDS\Project
|
286 |
+
#: Files\Plugins\Custom Post Type
|
287 |
+
#: UI\trunk/custom-post-type-ui.php:906
|
288 |
+
msgid "Description"
|
289 |
+
msgstr "描述"
|
290 |
+
|
291 |
+
#: C:\WDS\Project
|
292 |
+
#: Files\Plugins\Custom Post Type
|
293 |
+
#: UI\trunk/custom-post-type-ui.php:911
|
294 |
+
#: UI\trunk/custom-post-type-ui.php:1147
|
295 |
+
msgid "View Advanced Label Options"
|
296 |
+
msgstr "查看标签高级选项"
|
297 |
+
|
298 |
+
#: C:\WDS\Project
|
299 |
+
#: Files\Plugins\Custom Post Type
|
300 |
+
#: UI\trunk/custom-post-type-ui.php:912
|
301 |
+
#: UI\trunk/custom-post-type-ui.php:1148
|
302 |
+
msgid "View Advanced Options"
|
303 |
+
msgstr "查看高级选项"
|
304 |
+
|
305 |
+
#: C:\WDS\Project
|
306 |
+
#: Files\Plugins\Custom Post Type
|
307 |
+
#: UI\trunk/custom-post-type-ui.php:918
|
308 |
+
msgid "Below are the advanced label options for custom post types. If you are unfamiliar with these labels the plugin will automatically create labels based off of your custom post type name"
|
309 |
+
msgstr "下面是自定义文章类型的标签高级选项。如果您对这些标签感到陌生,插件将自动根据您的自定义文章类型名称为您创建标签"
|
310 |
+
|
311 |
+
#: C:\WDS\Project
|
312 |
+
#: Files\Plugins\Custom Post Type
|
313 |
+
#: UI\trunk/custom-post-type-ui.php:921
|
314 |
+
msgid "Add New"
|
315 |
+
msgstr "添加"
|
316 |
+
|
317 |
+
#: C:\WDS\Project
|
318 |
+
#: Files\Plugins\Custom Post Type
|
319 |
+
#: UI\trunk/custom-post-type-ui.php:926
|
320 |
+
#: UI\trunk/custom-post-type-ui.php:1192
|
321 |
+
msgid "Add New Item"
|
322 |
+
msgstr "添加新条目"
|
323 |
+
|
324 |
+
#: C:\WDS\Project
|
325 |
+
#: Files\Plugins\Custom Post Type
|
326 |
+
#: UI\trunk/custom-post-type-ui.php:931
|
327 |
+
msgid "Edit"
|
328 |
+
msgstr "编辑"
|
329 |
+
|
330 |
+
#: C:\WDS\Project
|
331 |
+
#: Files\Plugins\Custom Post Type
|
332 |
+
#: UI\trunk/custom-post-type-ui.php:936
|
333 |
+
#: UI\trunk/custom-post-type-ui.php:1182
|
334 |
+
msgid "Edit Item"
|
335 |
+
msgstr "编辑条目"
|
336 |
+
|
337 |
+
#: C:\WDS\Project
|
338 |
+
#: Files\Plugins\Custom Post Type
|
339 |
+
#: UI\trunk/custom-post-type-ui.php:941
|
340 |
+
msgid "New Item"
|
341 |
+
msgstr "新条目"
|
342 |
+
|
343 |
+
#: C:\WDS\Project
|
344 |
+
#: Files\Plugins\Custom Post Type
|
345 |
+
#: UI\trunk/custom-post-type-ui.php:946
|
346 |
+
msgid "View"
|
347 |
+
msgstr "查看"
|
348 |
+
|
349 |
+
#: C:\WDS\Project
|
350 |
+
#: Files\Plugins\Custom Post Type
|
351 |
+
#: UI\trunk/custom-post-type-ui.php:951
|
352 |
+
msgid "View Item"
|
353 |
+
msgstr "查看条目"
|
354 |
+
|
355 |
+
#: C:\WDS\Project
|
356 |
+
#: Files\Plugins\Custom Post Type
|
357 |
+
#: UI\trunk/custom-post-type-ui.php:956
|
358 |
+
#: UI\trunk/custom-post-type-ui.php:1157
|
359 |
+
msgid "Search Items"
|
360 |
+
msgstr "搜索条目"
|
361 |
+
|
362 |
+
#: C:\WDS\Project
|
363 |
+
#: Files\Plugins\Custom Post Type
|
364 |
+
#: UI\trunk/custom-post-type-ui.php:961
|
365 |
+
msgid "Not Found"
|
366 |
+
msgstr "未找到"
|
367 |
+
|
368 |
+
#: C:\WDS\Project
|
369 |
+
#: Files\Plugins\Custom Post Type
|
370 |
+
#: UI\trunk/custom-post-type-ui.php:966
|
371 |
+
msgid "Not Found in Trash"
|
372 |
+
msgstr "在回收站中没有找到"
|
373 |
+
|
374 |
+
#: C:\WDS\Project
|
375 |
+
#: Files\Plugins\Custom Post Type
|
376 |
+
#: UI\trunk/custom-post-type-ui.php:971
|
377 |
+
msgid "Parent"
|
378 |
+
msgstr "上级"
|
379 |
+
|
380 |
+
#: C:\WDS\Project
|
381 |
+
#: Files\Plugins\Custom Post Type
|
382 |
+
#: UI\trunk/custom-post-type-ui.php:1026
|
383 |
+
#: UI\trunk/custom-post-type-ui.php:1261
|
384 |
+
msgid "Custom Rewrite Slug"
|
385 |
+
msgstr "自定义重写缩略名"
|
386 |
+
|
387 |
+
#: C:\WDS\Project
|
388 |
+
#: Files\Plugins\Custom Post Type
|
389 |
+
#: UI\trunk/custom-post-type-ui.php:1041
|
390 |
+
msgid "Menu Position"
|
391 |
+
msgstr "菜单位置"
|
392 |
+
|
393 |
+
#: C:\WDS\Project
|
394 |
+
#: Files\Plugins\Custom Post Type
|
395 |
+
#: UI\trunk/custom-post-type-ui.php:1062
|
396 |
+
msgid "Built-in Taxonomies"
|
397 |
+
msgstr "内置类别"
|
398 |
+
|
399 |
+
#: C:\WDS\Project
|
400 |
+
#: Files\Plugins\Custom Post Type
|
401 |
+
#: UI\trunk/custom-post-type-ui.php:1095
|
402 |
+
msgid "Edit Custom Taxonomy"
|
403 |
+
msgstr "编辑自定义类别"
|
404 |
+
|
405 |
+
#: C:\WDS\Project
|
406 |
+
#: Files\Plugins\Custom Post Type
|
407 |
+
#: UI\trunk/custom-post-type-ui.php:1097
|
408 |
+
msgid "Create Custom Taxonomy"
|
409 |
+
msgstr "创建自定义类别"
|
410 |
+
|
411 |
+
#: C:\WDS\Project
|
412 |
+
#: Files\Plugins\Custom Post Type
|
413 |
+
#: UI\trunk/custom-post-type-ui.php:1099
|
414 |
+
msgid "If you are unfamiliar with the options below only fill out the <strong>Taxonomy Name</strong> and <strong>Post Type Name</strong> fields. The other settings are set to the most common defaults for custom taxonomies."
|
415 |
+
msgstr "如果您对下面的选项感到陌生,那么您只需要填写<strong>类别名称</strong>和<strong>文章类型名称</strong>区域即可。其它的设置将被设置为自定义类别最常用的默认值。"
|
416 |
+
|
417 |
+
#: C:\WDS\Project
|
418 |
+
#: Files\Plugins\Custom Post Type
|
419 |
+
#: UI\trunk/custom-post-type-ui.php:1108
|
420 |
+
msgid "Taxonomy Name"
|
421 |
+
msgstr "类别名称"
|
422 |
+
|
423 |
+
#: C:\WDS\Project
|
424 |
+
#: Files\Plugins\Custom Post Type
|
425 |
+
#: UI\trunk/custom-post-type-ui.php:1123
|
426 |
+
msgid "Attach to Post Type"
|
427 |
+
msgstr "附属到文章类型"
|
428 |
+
|
429 |
+
#: C:\WDS\Project
|
430 |
+
#: Files\Plugins\Custom Post Type
|
431 |
+
#: UI\trunk/custom-post-type-ui.php:1154
|
432 |
+
msgid "Below are the advanced label options for custom taxonomies. If you are unfamiliar with these labels the plugin will automatically create labels based off of your custom taxonomy name"
|
433 |
+
msgstr "下面是自定义类别的标签高级选项。如果您对这些标签感到陌生,插件将自动根据您的自定义类别名称为您创建标签"
|
434 |
+
|
435 |
+
#: C:\WDS\Project
|
436 |
+
#: Files\Plugins\Custom Post Type
|
437 |
+
#: UI\trunk/custom-post-type-ui.php:1162
|
438 |
+
msgid "Popular Items"
|
439 |
+
msgstr "热门条目"
|
440 |
+
|
441 |
+
#: C:\WDS\Project
|
442 |
+
#: Files\Plugins\Custom Post Type
|
443 |
+
#: UI\trunk/custom-post-type-ui.php:1167
|
444 |
+
msgid "All Items"
|
445 |
+
msgstr "所有条目"
|
446 |
+
|
447 |
+
#: C:\WDS\Project
|
448 |
+
#: Files\Plugins\Custom Post Type
|
449 |
+
#: UI\trunk/custom-post-type-ui.php:1172
|
450 |
+
msgid "Parent Item"
|
451 |
+
msgstr "上级条目"
|
452 |
+
|
453 |
+
#: C:\WDS\Project
|
454 |
+
#: Files\Plugins\Custom Post Type
|
455 |
+
#: UI\trunk/custom-post-type-ui.php:1177
|
456 |
+
msgid "Parent Item Colon"
|
457 |
+
msgstr "上级条目:"
|
458 |
+
|
459 |
+
#: C:\WDS\Project
|
460 |
+
#: Files\Plugins\Custom Post Type
|
461 |
+
#: UI\trunk/custom-post-type-ui.php:1187
|
462 |
+
msgid "Update Item"
|
463 |
+
msgstr "更新条目"
|
464 |
+
|
465 |
+
#: C:\WDS\Project
|
466 |
+
#: Files\Plugins\Custom Post Type
|
467 |
+
#: UI\trunk/custom-post-type-ui.php:1197
|
468 |
+
msgid "New Item Name"
|
469 |
+
msgstr "新条目名称"
|
470 |
+
|
471 |
+
#: C:\WDS\Project
|
472 |
+
#: Files\Plugins\Custom Post Type
|
473 |
+
#: UI\trunk/custom-post-type-ui.php:1202
|
474 |
+
msgid "Separate Items with Commas"
|
475 |
+
msgstr "使用英文逗号隔开多个标签条目"
|
476 |
+
|
477 |
+
#: C:\WDS\Project
|
478 |
+
#: Files\Plugins\Custom Post Type
|
479 |
+
#: UI\trunk/custom-post-type-ui.php:1207
|
480 |
+
msgid "Add or Remove Items"
|
481 |
+
msgstr "添加或删除条目"
|
482 |
+
|
483 |
+
#: C:\WDS\Project
|
484 |
+
#: Files\Plugins\Custom Post Type
|
485 |
+
#: UI\trunk/custom-post-type-ui.php:1212
|
486 |
+
msgid "Choose From Most Used"
|
487 |
+
msgstr "使用次数最多"
|
488 |
+
|
489 |
+
#, fuzzy
|
490 |
+
#~ msgid "Custom post type created successfully"
|
491 |
+
#~ msgstr "新自定义文章类型已被添加。"
|
492 |
+
|
493 |
+
#, fuzzy
|
494 |
+
#~ msgid "Custom taxonomy created successfully"
|
495 |
+
#~ msgstr "帖子已被成功发布"
|
Binary file
|
@@ -0,0 +1,484 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Custom Post Type UI\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2010-06-30 12:19-0500\n"
|
6 |
+
"PO-Revision-Date: 2010-06-30 12:19-0500\n"
|
7 |
+
"Last-Translator: Brad Williams <brad@webdevstudios.com>\n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
|
13 |
+
|
14 |
+
#: C:\WDS\Project
|
15 |
+
#: Files\Plugins\Custom Post Type
|
16 |
+
#: UI\trunk/custom-post-type-ui.php:420
|
17 |
+
msgid "Custom Post Types UI"
|
18 |
+
msgstr ""
|
19 |
+
|
20 |
+
#: C:\WDS\Project
|
21 |
+
#: Files\Plugins\Custom Post Type
|
22 |
+
#: UI\trunk/custom-post-type-ui.php:421
|
23 |
+
msgid "Plugin version"
|
24 |
+
msgstr ""
|
25 |
+
|
26 |
+
#: C:\WDS\Project
|
27 |
+
#: Files\Plugins\Custom Post Type
|
28 |
+
#: UI\trunk/custom-post-type-ui.php:422
|
29 |
+
msgid "WordPress version"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
+
#: C:\WDS\Project
|
33 |
+
#: Files\Plugins\Custom Post Type
|
34 |
+
#: UI\trunk/custom-post-type-ui.php:423
|
35 |
+
msgid "Slightly Outdated Demo Video"
|
36 |
+
msgstr ""
|
37 |
+
|
38 |
+
#: C:\WDS\Project
|
39 |
+
#: Files\Plugins\Custom Post Type
|
40 |
+
#: UI\trunk/custom-post-type-ui.php:445
|
41 |
+
msgid "Custom post type deleted successfully"
|
42 |
+
msgstr ""
|
43 |
+
|
44 |
+
#: C:\WDS\Project
|
45 |
+
#: Files\Plugins\Custom Post Type
|
46 |
+
#: UI\trunk/custom-post-type-ui.php:450
|
47 |
+
msgid "Manage Custom Post Types"
|
48 |
+
msgstr ""
|
49 |
+
|
50 |
+
#: C:\WDS\Project
|
51 |
+
#: Files\Plugins\Custom Post Type
|
52 |
+
#: UI\trunk/custom-post-type-ui.php:451
|
53 |
+
msgid "Deleting custom post types does <strong>NOT</strong> delete any content added to those post types. You can easily recreate your post types and the content will still exist."
|
54 |
+
msgstr ""
|
55 |
+
|
56 |
+
#: C:\WDS\Project
|
57 |
+
#: Files\Plugins\Custom Post Type
|
58 |
+
#: UI\trunk/custom-post-type-ui.php:458
|
59 |
+
#: UI\trunk/custom-post-type-ui.php:670
|
60 |
+
msgid "Action"
|
61 |
+
msgstr ""
|
62 |
+
|
63 |
+
#: C:\WDS\Project
|
64 |
+
#: Files\Plugins\Custom Post Type
|
65 |
+
#: UI\trunk/custom-post-type-ui.php:459
|
66 |
+
#: UI\trunk/custom-post-type-ui.php:592
|
67 |
+
#: UI\trunk/custom-post-type-ui.php:671
|
68 |
+
msgid "Name"
|
69 |
+
msgstr ""
|
70 |
+
|
71 |
+
#: C:\WDS\Project
|
72 |
+
#: Files\Plugins\Custom Post Type
|
73 |
+
#: UI\trunk/custom-post-type-ui.php:460
|
74 |
+
#: UI\trunk/custom-post-type-ui.php:593
|
75 |
+
#: UI\trunk/custom-post-type-ui.php:672
|
76 |
+
#: UI\trunk/custom-post-type-ui.php:896
|
77 |
+
#: UI\trunk/custom-post-type-ui.php:1113
|
78 |
+
msgid "Label"
|
79 |
+
msgstr ""
|
80 |
+
|
81 |
+
#: C:\WDS\Project
|
82 |
+
#: Files\Plugins\Custom Post Type
|
83 |
+
#: UI\trunk/custom-post-type-ui.php:461
|
84 |
+
#: UI\trunk/custom-post-type-ui.php:595
|
85 |
+
#: UI\trunk/custom-post-type-ui.php:981
|
86 |
+
msgid "Public"
|
87 |
+
msgstr ""
|
88 |
+
|
89 |
+
#: C:\WDS\Project
|
90 |
+
#: Files\Plugins\Custom Post Type
|
91 |
+
#: UI\trunk/custom-post-type-ui.php:462
|
92 |
+
#: UI\trunk/custom-post-type-ui.php:596
|
93 |
+
#: UI\trunk/custom-post-type-ui.php:676
|
94 |
+
#: UI\trunk/custom-post-type-ui.php:991
|
95 |
+
#: UI\trunk/custom-post-type-ui.php:1231
|
96 |
+
msgid "Show UI"
|
97 |
+
msgstr ""
|
98 |
+
|
99 |
+
#: C:\WDS\Project
|
100 |
+
#: Files\Plugins\Custom Post Type
|
101 |
+
#: UI\trunk/custom-post-type-ui.php:463
|
102 |
+
#: UI\trunk/custom-post-type-ui.php:598
|
103 |
+
#: UI\trunk/custom-post-type-ui.php:675
|
104 |
+
#: UI\trunk/custom-post-type-ui.php:1006
|
105 |
+
#: UI\trunk/custom-post-type-ui.php:1221
|
106 |
+
msgid "Hierarchical"
|
107 |
+
msgstr ""
|
108 |
+
|
109 |
+
#: C:\WDS\Project
|
110 |
+
#: Files\Plugins\Custom Post Type
|
111 |
+
#: UI\trunk/custom-post-type-ui.php:464
|
112 |
+
#: UI\trunk/custom-post-type-ui.php:599
|
113 |
+
#: UI\trunk/custom-post-type-ui.php:677
|
114 |
+
#: UI\trunk/custom-post-type-ui.php:1016
|
115 |
+
#: UI\trunk/custom-post-type-ui.php:1251
|
116 |
+
msgid "Rewrite"
|
117 |
+
msgstr ""
|
118 |
+
|
119 |
+
#: C:\WDS\Project
|
120 |
+
#: Files\Plugins\Custom Post Type
|
121 |
+
#: UI\trunk/custom-post-type-ui.php:465
|
122 |
+
#: UI\trunk/custom-post-type-ui.php:600
|
123 |
+
#: UI\trunk/custom-post-type-ui.php:678
|
124 |
+
msgid "Rewrite Slug"
|
125 |
+
msgstr ""
|
126 |
+
|
127 |
+
#: C:\WDS\Project
|
128 |
+
#: Files\Plugins\Custom Post Type
|
129 |
+
#: UI\trunk/custom-post-type-ui.php:466
|
130 |
+
msgid "Total Published"
|
131 |
+
msgstr ""
|
132 |
+
|
133 |
+
#: C:\WDS\Project
|
134 |
+
#: Files\Plugins\Custom Post Type
|
135 |
+
#: UI\trunk/custom-post-type-ui.php:467
|
136 |
+
msgid "Total Drafts"
|
137 |
+
msgstr ""
|
138 |
+
|
139 |
+
#: C:\WDS\Project
|
140 |
+
#: Files\Plugins\Custom Post Type
|
141 |
+
#: UI\trunk/custom-post-type-ui.php:468
|
142 |
+
#: UI\trunk/custom-post-type-ui.php:1046
|
143 |
+
msgid "Supports"
|
144 |
+
msgstr ""
|
145 |
+
|
146 |
+
#: C:\WDS\Project
|
147 |
+
#: Files\Plugins\Custom Post Type
|
148 |
+
#: UI\trunk/custom-post-type-ui.php:572
|
149 |
+
msgid "Place the below code in your themes functions.php file to manually create this custom post type"
|
150 |
+
msgstr ""
|
151 |
+
|
152 |
+
#: C:\WDS\Project
|
153 |
+
#: Files\Plugins\Custom Post Type
|
154 |
+
#: UI\trunk/custom-post-type-ui.php:588
|
155 |
+
msgid "Additional Custom Post Types"
|
156 |
+
msgstr ""
|
157 |
+
|
158 |
+
#: C:\WDS\Project
|
159 |
+
#: Files\Plugins\Custom Post Type
|
160 |
+
#: UI\trunk/custom-post-type-ui.php:589
|
161 |
+
msgid "The custom post types below are registered in WordPress but were not created by the Custom Post Type UI Plugin."
|
162 |
+
msgstr ""
|
163 |
+
|
164 |
+
#: C:\WDS\Project
|
165 |
+
#: Files\Plugins\Custom Post Type
|
166 |
+
#: UI\trunk/custom-post-type-ui.php:594
|
167 |
+
#: UI\trunk/custom-post-type-ui.php:673
|
168 |
+
#: UI\trunk/custom-post-type-ui.php:901
|
169 |
+
#: UI\trunk/custom-post-type-ui.php:1118
|
170 |
+
msgid "Singular Label"
|
171 |
+
msgstr ""
|
172 |
+
|
173 |
+
#: C:\WDS\Project
|
174 |
+
#: Files\Plugins\Custom Post Type
|
175 |
+
#: UI\trunk/custom-post-type-ui.php:597
|
176 |
+
#: UI\trunk/custom-post-type-ui.php:1001
|
177 |
+
msgid "Capability Type"
|
178 |
+
msgstr ""
|
179 |
+
|
180 |
+
#: C:\WDS\Project
|
181 |
+
#: Files\Plugins\Custom Post Type
|
182 |
+
#: UI\trunk/custom-post-type-ui.php:601
|
183 |
+
#: UI\trunk/custom-post-type-ui.php:1031
|
184 |
+
#: UI\trunk/custom-post-type-ui.php:1241
|
185 |
+
msgid "Query Var"
|
186 |
+
msgstr ""
|
187 |
+
|
188 |
+
#: C:\WDS\Project
|
189 |
+
#: Files\Plugins\Custom Post Type
|
190 |
+
#: UI\trunk/custom-post-type-ui.php:656
|
191 |
+
msgid "Custom taxonomy deleted successfully"
|
192 |
+
msgstr ""
|
193 |
+
|
194 |
+
#: C:\WDS\Project
|
195 |
+
#: Files\Plugins\Custom Post Type
|
196 |
+
#: UI\trunk/custom-post-type-ui.php:661
|
197 |
+
msgid "Manage Custom Taxonomies"
|
198 |
+
msgstr ""
|
199 |
+
|
200 |
+
#: C:\WDS\Project
|
201 |
+
#: Files\Plugins\Custom Post Type
|
202 |
+
#: UI\trunk/custom-post-type-ui.php:662
|
203 |
+
msgid "Deleting custom taxonomies does <strong>NOT</strong> delete any content added to those taxonomies. You can easily recreate your taxonomies and the content will still exist."
|
204 |
+
msgstr ""
|
205 |
+
|
206 |
+
#: C:\WDS\Project
|
207 |
+
#: Files\Plugins\Custom Post Type
|
208 |
+
#: UI\trunk/custom-post-type-ui.php:674
|
209 |
+
msgid "Attached Post Types"
|
210 |
+
msgstr ""
|
211 |
+
|
212 |
+
#: C:\WDS\Project
|
213 |
+
#: Files\Plugins\Custom Post Type
|
214 |
+
#: UI\trunk/custom-post-type-ui.php:749
|
215 |
+
msgid "Place the below code in your themes functions.php file to manually create this custom taxonomy"
|
216 |
+
msgstr ""
|
217 |
+
|
218 |
+
#: C:\WDS\Project
|
219 |
+
#: Files\Plugins\Custom Post Type
|
220 |
+
#: UI\trunk/custom-post-type-ui.php:850
|
221 |
+
msgid "Custom post type created successfully. You may need to refresh to view the new post type."
|
222 |
+
msgstr ""
|
223 |
+
|
224 |
+
#: C:\WDS\Project
|
225 |
+
#: Files\Plugins\Custom Post Type
|
226 |
+
#: UI\trunk/custom-post-type-ui.php:855
|
227 |
+
msgid "Custom taxonomy created successfully. You may need to refresh to view the new taxonomy."
|
228 |
+
msgstr ""
|
229 |
+
|
230 |
+
#: C:\WDS\Project
|
231 |
+
#: Files\Plugins\Custom Post Type
|
232 |
+
#: UI\trunk/custom-post-type-ui.php:861
|
233 |
+
msgid "Post type name is a required field."
|
234 |
+
msgstr ""
|
235 |
+
|
236 |
+
#: C:\WDS\Project
|
237 |
+
#: Files\Plugins\Custom Post Type
|
238 |
+
#: UI\trunk/custom-post-type-ui.php:865
|
239 |
+
msgid "Taxonomy name is a required field."
|
240 |
+
msgstr ""
|
241 |
+
|
242 |
+
#: C:\WDS\Project
|
243 |
+
#: Files\Plugins\Custom Post Type
|
244 |
+
#: UI\trunk/custom-post-type-ui.php:869
|
245 |
+
msgid "You must assign your custom taxonomy to at least one post type."
|
246 |
+
msgstr ""
|
247 |
+
|
248 |
+
#: C:\WDS\Project
|
249 |
+
#: Files\Plugins\Custom Post Type
|
250 |
+
#: UI\trunk/custom-post-type-ui.php:878
|
251 |
+
msgid "Edit Custom Post Type"
|
252 |
+
msgstr ""
|
253 |
+
|
254 |
+
#: C:\WDS\Project
|
255 |
+
#: Files\Plugins\Custom Post Type
|
256 |
+
#: UI\trunk/custom-post-type-ui.php:878
|
257 |
+
#: UI\trunk/custom-post-type-ui.php:880
|
258 |
+
#: UI\trunk/custom-post-type-ui.php:1095
|
259 |
+
#: UI\trunk/custom-post-type-ui.php:1097
|
260 |
+
msgid "Reset"
|
261 |
+
msgstr ""
|
262 |
+
|
263 |
+
#: C:\WDS\Project
|
264 |
+
#: Files\Plugins\Custom Post Type
|
265 |
+
#: UI\trunk/custom-post-type-ui.php:880
|
266 |
+
msgid "Create New Custom Post Type"
|
267 |
+
msgstr ""
|
268 |
+
|
269 |
+
#: C:\WDS\Project
|
270 |
+
#: Files\Plugins\Custom Post Type
|
271 |
+
#: UI\trunk/custom-post-type-ui.php:882
|
272 |
+
msgid "If you are unfamiliar with the options below only fill out the <strong>Post Type Name</strong> and <strong>Label</strong> fields and check which meta boxes to support. The other settings are set to the most common defaults for custom post types."
|
273 |
+
msgstr ""
|
274 |
+
|
275 |
+
#: C:\WDS\Project
|
276 |
+
#: Files\Plugins\Custom Post Type
|
277 |
+
#: UI\trunk/custom-post-type-ui.php:891
|
278 |
+
msgid "Post Type Name"
|
279 |
+
msgstr ""
|
280 |
+
|
281 |
+
#: C:\WDS\Project
|
282 |
+
#: Files\Plugins\Custom Post Type
|
283 |
+
#: UI\trunk/custom-post-type-ui.php:906
|
284 |
+
msgid "Description"
|
285 |
+
msgstr ""
|
286 |
+
|
287 |
+
#: C:\WDS\Project
|
288 |
+
#: Files\Plugins\Custom Post Type
|
289 |
+
#: UI\trunk/custom-post-type-ui.php:911
|
290 |
+
#: UI\trunk/custom-post-type-ui.php:1147
|
291 |
+
msgid "View Advanced Label Options"
|
292 |
+
msgstr ""
|
293 |
+
|
294 |
+
#: C:\WDS\Project
|
295 |
+
#: Files\Plugins\Custom Post Type
|
296 |
+
#: UI\trunk/custom-post-type-ui.php:912
|
297 |
+
#: UI\trunk/custom-post-type-ui.php:1148
|
298 |
+
msgid "View Advanced Options"
|
299 |
+
msgstr ""
|
300 |
+
|
301 |
+
#: C:\WDS\Project
|
302 |
+
#: Files\Plugins\Custom Post Type
|
303 |
+
#: UI\trunk/custom-post-type-ui.php:918
|
304 |
+
msgid "Below are the advanced label options for custom post types. If you are unfamiliar with these labels the plugin will automatically create labels based off of your custom post type name"
|
305 |
+
msgstr ""
|
306 |
+
|
307 |
+
#: C:\WDS\Project
|
308 |
+
#: Files\Plugins\Custom Post Type
|
309 |
+
#: UI\trunk/custom-post-type-ui.php:921
|
310 |
+
msgid "Add New"
|
311 |
+
msgstr ""
|
312 |
+
|
313 |
+
#: C:\WDS\Project
|
314 |
+
#: Files\Plugins\Custom Post Type
|
315 |
+
#: UI\trunk/custom-post-type-ui.php:926
|
316 |
+
#: UI\trunk/custom-post-type-ui.php:1192
|
317 |
+
msgid "Add New Item"
|
318 |
+
msgstr ""
|
319 |
+
|
320 |
+
#: C:\WDS\Project
|
321 |
+
#: Files\Plugins\Custom Post Type
|
322 |
+
#: UI\trunk/custom-post-type-ui.php:931
|
323 |
+
msgid "Edit"
|
324 |
+
msgstr ""
|
325 |
+
|
326 |
+
#: C:\WDS\Project
|
327 |
+
#: Files\Plugins\Custom Post Type
|
328 |
+
#: UI\trunk/custom-post-type-ui.php:936
|
329 |
+
#: UI\trunk/custom-post-type-ui.php:1182
|
330 |
+
msgid "Edit Item"
|
331 |
+
msgstr ""
|
332 |
+
|
333 |
+
#: C:\WDS\Project
|
334 |
+
#: Files\Plugins\Custom Post Type
|
335 |
+
#: UI\trunk/custom-post-type-ui.php:941
|
336 |
+
msgid "New Item"
|
337 |
+
msgstr ""
|
338 |
+
|
339 |
+
#: C:\WDS\Project
|
340 |
+
#: Files\Plugins\Custom Post Type
|
341 |
+
#: UI\trunk/custom-post-type-ui.php:946
|
342 |
+
msgid "View"
|
343 |
+
msgstr ""
|
344 |
+
|
345 |
+
#: C:\WDS\Project
|
346 |
+
#: Files\Plugins\Custom Post Type
|
347 |
+
#: UI\trunk/custom-post-type-ui.php:951
|
348 |
+
msgid "View Item"
|
349 |
+
msgstr ""
|
350 |
+
|
351 |
+
#: C:\WDS\Project
|
352 |
+
#: Files\Plugins\Custom Post Type
|
353 |
+
#: UI\trunk/custom-post-type-ui.php:956
|
354 |
+
#: UI\trunk/custom-post-type-ui.php:1157
|
355 |
+
msgid "Search Items"
|
356 |
+
msgstr ""
|
357 |
+
|
358 |
+
#: C:\WDS\Project
|
359 |
+
#: Files\Plugins\Custom Post Type
|
360 |
+
#: UI\trunk/custom-post-type-ui.php:961
|
361 |
+
msgid "Not Found"
|
362 |
+
msgstr ""
|
363 |
+
|
364 |
+
#: C:\WDS\Project
|
365 |
+
#: Files\Plugins\Custom Post Type
|
366 |
+
#: UI\trunk/custom-post-type-ui.php:966
|
367 |
+
msgid "Not Found in Trash"
|
368 |
+
msgstr ""
|
369 |
+
|
370 |
+
#: C:\WDS\Project
|
371 |
+
#: Files\Plugins\Custom Post Type
|
372 |
+
#: UI\trunk/custom-post-type-ui.php:971
|
373 |
+
msgid "Parent"
|
374 |
+
msgstr ""
|
375 |
+
|
376 |
+
#: C:\WDS\Project
|
377 |
+
#: Files\Plugins\Custom Post Type
|
378 |
+
#: UI\trunk/custom-post-type-ui.php:1026
|
379 |
+
#: UI\trunk/custom-post-type-ui.php:1261
|
380 |
+
msgid "Custom Rewrite Slug"
|
381 |
+
msgstr ""
|
382 |
+
|
383 |
+
#: C:\WDS\Project
|
384 |
+
#: Files\Plugins\Custom Post Type
|
385 |
+
#: UI\trunk/custom-post-type-ui.php:1041
|
386 |
+
msgid "Menu Position"
|
387 |
+
msgstr ""
|
388 |
+
|
389 |
+
#: C:\WDS\Project
|
390 |
+
#: Files\Plugins\Custom Post Type
|
391 |
+
#: UI\trunk/custom-post-type-ui.php:1062
|
392 |
+
msgid "Built-in Taxonomies"
|
393 |
+
msgstr ""
|
394 |
+
|
395 |
+
#: C:\WDS\Project
|
396 |
+
#: Files\Plugins\Custom Post Type
|
397 |
+
#: UI\trunk/custom-post-type-ui.php:1095
|
398 |
+
msgid "Edit Custom Taxonomy"
|
399 |
+
msgstr ""
|
400 |
+
|
401 |
+
#: C:\WDS\Project
|
402 |
+
#: Files\Plugins\Custom Post Type
|
403 |
+
#: UI\trunk/custom-post-type-ui.php:1097
|
404 |
+
msgid "Create Custom Taxonomy"
|
405 |
+
msgstr ""
|
406 |
+
|
407 |
+
#: C:\WDS\Project
|
408 |
+
#: Files\Plugins\Custom Post Type
|
409 |
+
#: UI\trunk/custom-post-type-ui.php:1099
|
410 |
+
msgid "If you are unfamiliar with the options below only fill out the <strong>Taxonomy Name</strong> and <strong>Post Type Name</strong> fields. The other settings are set to the most common defaults for custom taxonomies."
|
411 |
+
msgstr ""
|
412 |
+
|
413 |
+
#: C:\WDS\Project
|
414 |
+
#: Files\Plugins\Custom Post Type
|
415 |
+
#: UI\trunk/custom-post-type-ui.php:1108
|
416 |
+
msgid "Taxonomy Name"
|
417 |
+
msgstr ""
|
418 |
+
|
419 |
+
#: C:\WDS\Project
|
420 |
+
#: Files\Plugins\Custom Post Type
|
421 |
+
#: UI\trunk/custom-post-type-ui.php:1123
|
422 |
+
msgid "Attach to Post Type"
|
423 |
+
msgstr ""
|
424 |
+
|
425 |
+
#: C:\WDS\Project
|
426 |
+
#: Files\Plugins\Custom Post Type
|
427 |
+
#: UI\trunk/custom-post-type-ui.php:1154
|
428 |
+
msgid "Below are the advanced label options for custom taxonomies. If you are unfamiliar with these labels the plugin will automatically create labels based off of your custom taxonomy name"
|
429 |
+
msgstr ""
|
430 |
+
|
431 |
+
#: C:\WDS\Project
|
432 |
+
#: Files\Plugins\Custom Post Type
|
433 |
+
#: UI\trunk/custom-post-type-ui.php:1162
|
434 |
+
msgid "Popular Items"
|
435 |
+
msgstr ""
|
436 |
+
|
437 |
+
#: C:\WDS\Project
|
438 |
+
#: Files\Plugins\Custom Post Type
|
439 |
+
#: UI\trunk/custom-post-type-ui.php:1167
|
440 |
+
msgid "All Items"
|
441 |
+
msgstr ""
|
442 |
+
|
443 |
+
#: C:\WDS\Project
|
444 |
+
#: Files\Plugins\Custom Post Type
|
445 |
+
#: UI\trunk/custom-post-type-ui.php:1172
|
446 |
+
msgid "Parent Item"
|
447 |
+
msgstr ""
|
448 |
+
|
449 |
+
#: C:\WDS\Project
|
450 |
+
#: Files\Plugins\Custom Post Type
|
451 |
+
#: UI\trunk/custom-post-type-ui.php:1177
|
452 |
+
msgid "Parent Item Colon"
|
453 |
+
msgstr ""
|
454 |
+
|
455 |
+
#: C:\WDS\Project
|
456 |
+
#: Files\Plugins\Custom Post Type
|
457 |
+
#: UI\trunk/custom-post-type-ui.php:1187
|
458 |
+
msgid "Update Item"
|
459 |
+
msgstr ""
|
460 |
+
|
461 |
+
#: C:\WDS\Project
|
462 |
+
#: Files\Plugins\Custom Post Type
|
463 |
+
#: UI\trunk/custom-post-type-ui.php:1197
|
464 |
+
msgid "New Item Name"
|
465 |
+
msgstr ""
|
466 |
+
|
467 |
+
#: C:\WDS\Project
|
468 |
+
#: Files\Plugins\Custom Post Type
|
469 |
+
#: UI\trunk/custom-post-type-ui.php:1202
|
470 |
+
msgid "Separate Items with Commas"
|
471 |
+
msgstr ""
|
472 |
+
|
473 |
+
#: C:\WDS\Project
|
474 |
+
#: Files\Plugins\Custom Post Type
|
475 |
+
#: UI\trunk/custom-post-type-ui.php:1207
|
476 |
+
msgid "Add or Remove Items"
|
477 |
+
msgstr ""
|
478 |
+
|
479 |
+
#: C:\WDS\Project
|
480 |
+
#: Files\Plugins\Custom Post Type
|
481 |
+
#: UI\trunk/custom-post-type-ui.php:1212
|
482 |
+
msgid "Choose From Most Used"
|
483 |
+
msgstr ""
|
484 |
+
|
@@ -0,0 +1,213 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Custom Post Type UI ===
|
2 |
+
Contributors: williamsba1
|
3 |
+
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3084056
|
4 |
+
Tags: custom post types, CMS, post, types, post type, cck, taxonomy, tax
|
5 |
+
Requires at least: 3.0
|
6 |
+
Tested up to: 3.1
|
7 |
+
Stable tag: 0.7
|
8 |
+
|
9 |
+
Admin UI for creating custom post types and custom taxonomies in WordPress
|
10 |
+
|
11 |
+
== Description ==
|
12 |
+
|
13 |
+
This plugin provides an easy to use interface to create and administer custom post types and taxonomies in WordPress. This plugin is created for WordPress 3.x.
|
14 |
+
|
15 |
+
Below is a slightly outdated example video showing Custom Post Type UI in action!
|
16 |
+
[vimeo http://vimeo.com/10187055]
|
17 |
+
|
18 |
+
== Screenshots ==
|
19 |
+
|
20 |
+
1. Create a custom post type
|
21 |
+
2. Create a custom taxonomy
|
22 |
+
3. Custom post type and taxonomies are automatically added to your admin menus
|
23 |
+
4. Easily view and edit existing custom post types. Even "Get Code" generated by the plugin
|
24 |
+
5. Custom taxonomies are automatically added to your content type screens
|
25 |
+
|
26 |
+
== Changelog ==
|
27 |
+
|
28 |
+
= 0.7 =
|
29 |
+
* WordPress 3.1 support
|
30 |
+
* Added has_archive and show_in_menu support
|
31 |
+
* Added label for custom menu name
|
32 |
+
* Updated plugin UI to be consistent with WordPress styles
|
33 |
+
* Added "Get Code" feature to easily copy code used for post types and taxonomies (BETA)
|
34 |
+
|
35 |
+
= 0.6.2 =
|
36 |
+
* Added support for assigning custom taxonomies to post types when creating/editing
|
37 |
+
* Fixed bug when setting hierarchy on a post type (props @JohnPBloch)
|
38 |
+
* Fixed an error when registering a post type with no supported meta boxes
|
39 |
+
* Fixed "Undefined index" error when determining return URLs
|
40 |
+
* Added Chinese translation
|
41 |
+
|
42 |
+
= 0.6.1 =
|
43 |
+
* Added translation functionality and .pot file
|
44 |
+
* Added Japanese translation
|
45 |
+
* Reworked entire path structure fixing "page not found" errors
|
46 |
+
* Fixed "First argument is expected to be a valid callback" error
|
47 |
+
* Random bug fixes
|
48 |
+
|
49 |
+
= 0.6 =
|
50 |
+
* Added support for custom labels with custom post types and taxonomies
|
51 |
+
* Added ability to assign built-in taxonomies to custom post types
|
52 |
+
* Added ability to assign custom taxonomies to multiple post types
|
53 |
+
* Fixed jQuery conflict with other plugins (props shadyvb)
|
54 |
+
* Managing post types now displays total published/draft per type
|
55 |
+
* Code optimization and cleanup
|
56 |
+
|
57 |
+
= 0.5.2 =
|
58 |
+
* Updated excerpts to excerpt in CPT Support field (props vlad27aug)
|
59 |
+
|
60 |
+
= 0.5.1 =
|
61 |
+
* Added flush_rewrite_rules() to reset rules when using custom rewrite slugs
|
62 |
+
|
63 |
+
= 0.5 =
|
64 |
+
* Updated post-thumbnails to thumbnail in CPT Support field
|
65 |
+
* Added singular_label option for custom post types
|
66 |
+
* Added support for custom Rewrite slugs for post types and taxonomies
|
67 |
+
* Reworked entire array structure for easier additions down the road
|
68 |
+
* Fixed Get Code bug in Custom Post Types and Custom Taxonomies
|
69 |
+
* View additional custom post types registered in WordPress
|
70 |
+
|
71 |
+
= 0.4.1 =
|
72 |
+
* Fixed bug with REWRITE and QUERY_VAR values not executing correctly
|
73 |
+
* Set REWRITE and QUERY_VAR values to True by default
|
74 |
+
|
75 |
+
= 0.4 =
|
76 |
+
* Default view now hides advanced options
|
77 |
+
* Get Code link to easily copy/paste code used to create custom post types and taxonomies
|
78 |
+
* Added support for 'author' and 'page-attributes' in CPT Supports field
|
79 |
+
|
80 |
+
= 0.3.1 =
|
81 |
+
* Fixed multiple warnings and errors
|
82 |
+
|
83 |
+
= 0.3 =
|
84 |
+
* added new menu/submenus for individual sections
|
85 |
+
* added support for 'title' and 'editor' in CPT Supports field
|
86 |
+
* added Singular Label for custom taxonomies (props sleary)
|
87 |
+
|
88 |
+
= 0.2.1 =
|
89 |
+
* Set default Query Var setting to False
|
90 |
+
|
91 |
+
= 0.2 =
|
92 |
+
* Added support for creating custom taxonomies
|
93 |
+
* Increased internationalization support
|
94 |
+
* Fixed siteurl bug
|
95 |
+
|
96 |
+
= 0.1.2 =
|
97 |
+
* Fixed a bug where default values were incorrect
|
98 |
+
|
99 |
+
= 0.1.1 =
|
100 |
+
* Fixed a bunch of warnings
|
101 |
+
|
102 |
+
= 0.1 =
|
103 |
+
* First beta release
|
104 |
+
|
105 |
+
== Upgrade Notice ==
|
106 |
+
|
107 |
+
= 0.7 =
|
108 |
+
* WordPress 3.1 support
|
109 |
+
* Added has_archive and show_in_menu support
|
110 |
+
* Added label for custom menu name
|
111 |
+
* Updated plugin UI to be consistent with WordPress styles
|
112 |
+
* Added "Get Code" feature to easily copy code used for post types and taxonomies (BETA)
|
113 |
+
|
114 |
+
= 0.6.2 =
|
115 |
+
* Added support for assigning custom taxonomies to post types when creating/editing
|
116 |
+
* Fixed bug when setting hierarchy on a post type (props @JohnPBloch)
|
117 |
+
* Fixed an error when registering a post type with no supported meta boxes
|
118 |
+
* Fixed "Undefined index" error when determining return URLs
|
119 |
+
* Added Chinese translation
|
120 |
+
|
121 |
+
= 0.6.1 =
|
122 |
+
* Added translation functionality and .pot file
|
123 |
+
* Added Japanese translation
|
124 |
+
* Reworked entire path structure fixing "page not found" errors
|
125 |
+
* Fixed "First argument is expected to be a valid callback" error
|
126 |
+
* Random bug fixes
|
127 |
+
|
128 |
+
= 0.6 =
|
129 |
+
* Added support for custom labels with custom post types and taxonomies
|
130 |
+
* Added ability to assign built-in taxonomies to custom post types
|
131 |
+
* Added ability to assign custom taxonomies to multiple post types
|
132 |
+
* Fixed jQuery conflict with other plugins (props shadyvb)
|
133 |
+
* Managing post types now displays total published/draft per type
|
134 |
+
* Code optimization and cleanup
|
135 |
+
|
136 |
+
= 0.5.2 =
|
137 |
+
* Updated excerpts to excerpt in CPT Support field (props vlad27aug)
|
138 |
+
|
139 |
+
= 0.5.1 =
|
140 |
+
* Added flush_rewrite_rules() to reset rules when using custom rewrite slugs
|
141 |
+
|
142 |
+
= 0.5 =
|
143 |
+
* Fixed multiple bugs
|
144 |
+
* If upgrading from pre 0.5 version you will need to recreate your custom post types
|
145 |
+
|
146 |
+
= 0.4.1 =
|
147 |
+
* Fixed bug with REWRITE and QUERY_VAR values not executing correctly
|
148 |
+
|
149 |
+
= 0.4 =
|
150 |
+
* Default view now hides advanced options
|
151 |
+
* Get Code link to easily copy/paste code used to create custom post types and taxonomies
|
152 |
+
* Added support for 'author' and 'page-attributes' in CPT Supports field
|
153 |
+
|
154 |
+
= 0.3.1 =
|
155 |
+
* Fixed multiple warnings and errors
|
156 |
+
|
157 |
+
= 0.3 =
|
158 |
+
* added new menu/submenus for individual sections
|
159 |
+
* added support for 'title' and 'editor' in CPT Supports field
|
160 |
+
* added Singular Label for custom taxonomies (props sleary)
|
161 |
+
|
162 |
+
= 0.2.1 =
|
163 |
+
* Set default Query Var setting to False
|
164 |
+
|
165 |
+
= 0.2 =
|
166 |
+
* Fixed the siteurl bug
|
167 |
+
* Added support for creating custom taxonomies
|
168 |
+
|
169 |
+
= 0.1.2 =
|
170 |
+
* Fixed a bug where default values were incorrect
|
171 |
+
|
172 |
+
= 0.1.1 =
|
173 |
+
* Fixed a bunch of warnings
|
174 |
+
|
175 |
+
= 0.1 =
|
176 |
+
* First beta release
|
177 |
+
|
178 |
+
== Installation ==
|
179 |
+
|
180 |
+
1. Upload the Custom Post Type UI folder to the plugins directory in your WordPress installation
|
181 |
+
2. Activate the plugin
|
182 |
+
3. Navigate to the Custom Post Type UI Menu
|
183 |
+
|
184 |
+
That's it! Now you can easily start creating custom post types and taxonomies in WordPress
|
185 |
+
|
186 |
+
== Frequently Asked Questions ==
|
187 |
+
|
188 |
+
= How can I add custom meta boxes to my custom post types? =
|
189 |
+
|
190 |
+
The Custom Field Template plugin does a great job at creating custom meta boxes and fully supports custom post types: http://wordpress.org/extend/plugins/custom-field-template/
|
191 |
+
|
192 |
+
= I changed my custom post type name and now I can't get to my posts =
|
193 |
+
|
194 |
+
You can either change the custom post type name back to the original name or try the Post Type Switcher plugin here: http://wordpress.org/extend/plugins/post-type-switcher/
|
195 |
+
|
196 |
+
= I upgraded the plugin and all of my custom post types broke =
|
197 |
+
|
198 |
+
v0.5 reworked how custom post types are stored. You need to delete and recreate your post types. You will NOT lose any content by doing this.
|
199 |
+
|
200 |
+
= I receive a 404 error when viewing custom post type content =
|
201 |
+
|
202 |
+
This is usually caused if the rewrite slug was changed. To fix this issue simply visit Settings > Permalinks to flush the rewrite rules in WordPress
|
203 |
+
|
204 |
+
= Will this work in previous version of WordPress =
|
205 |
+
|
206 |
+
The register_post_type function was added in WordPress 2.9 so technically it should work in 2.9, but there is no admin menu UI so all post types are created and used behind the scenes.
|
207 |
+
|
208 |
+
= I'm getting an error: Undefined offset =
|
209 |
+
|
210 |
+
v0.3 reworked how custom taxonomies are stored. You need to delete your current taxonomies and recreate them in the new version for this error to go away.
|
211 |
+
|
212 |
+
== Plugin Support ==
|
213 |
+
[Custom Post Type UI Support](http://webdevstudios.com/support/forum/custom-post-type-ui/ "WordPress Plugins and Support Services")
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|