__('Showcase List', 'easel'),
'singular_name' => __('Showcase', 'easel'),
'add_new' => __('Add New', 'easel'),
'add_new_item' => __('Add New Showcase', 'easel'),
'edit_item' => __('Edit Showcase','easel'),
'edit' => __('Edit', 'easel'),
'new_item' => __('New Showcase', 'easel'),
'view_item' => __('View Showcase', 'easel'),
'search_items' => __('Search Showcases','easel'),
'not_found' => __('No Showcases found', 'easel'),
'not_found_in_trash' => __('No howcases found in Trash', 'easel'),
'view' => __('View Showcase', 'easel'),
'parent_item_colon' => ''
);
register_post_type(
'showcase',
array(
'labels' => $labels,
'public' => true,
'public_queryable' => true,
'show_ui' => true,
'query_var' => true,
'_edit_link' => 'post.php?post=%d',
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'showcase', 'with_front' => true ),
'hierarchical' => false,
'menu_position' => 5,
'supports' => array( 'title', 'editor', 'excerpt', 'custom-fields', 'author', 'trackbacks', 'comments', 'thumbnail' )
));
$labels = array(
'name' => __( 'Genres', 'easel' ),
'singular_name' => __( 'Genre', 'easel' ),
'search_items' => __( 'Search Genres', 'easel' ),
'popular_items' => __( 'Popular Genres', 'easel' ),
'all_items' => __( 'All Genres', 'easel' ),
'parent_item' => __( 'Parent Genre', 'easel'),
'parent_item_colon' => __( 'Parent Genre:', 'easel' ),
'edit_item' => __( 'Edit Genre', 'easel'),
'update_item' => __( 'Update Genre', 'easel'),
'add_new_item' => __( 'Add New Genre', 'easel'),
'new_item_name' => __( 'New Genre Name', 'easel' ),
);
register_taxonomy('genre',array('showcase'), array(
'hierarchical' => false,
'public' => true,
'labels' => $labels,
'show_ui' => true,
'query_var' => true,
'show_tagcloud' => true,
'rewrite' => array( 'slug' => 'genre' ),
));
$labels = array(
'name' => __( 'Styles', 'easel' ),
'singular_name' => __( 'Style', 'easel' ),
'search_items' => __( 'Search Styles', 'easel' ),
'popular_items' => __( 'Popular Styles', 'easel' ),
'all_items' => __( 'All Styles', 'easel' ),
'parent_item' => __( 'Parent Style', 'easel' ),
'parent_item_colon' => __( 'Parent Style:', 'easel' ),
'edit_item' => __( 'Edit Style', 'easel' ),
'update_item' => __( 'Update Style', 'easel' ),
'add_new_item' => __( 'Add New Style', 'easel' ),
'new_item_name' => __( 'New Style Name', 'easel' ),
);
register_taxonomy('style',array('showcase'), array(
'hierarchical' => false,
'public' => true,
'labels' => $labels,
'show_ui' => true,
'query_var' => true,
'show_tagcloud' => true,
'rewrite' => array( 'slug' => 'style' ),
));
$labels = array(
'name' => __( 'Authors', 'easel' ),
'singular_name' => __( 'Author', 'easel' ),
'search_items' => __( 'Search Authors', 'easel' ),
'popular_items' => __( 'Popular Authors', 'easel' ),
'all_items' => __( 'All Authors', 'easel' ),
'parent_item' => __( 'Parent Author', 'easel' ),
'parent_item_colon' => __( 'Parent Author:', 'easel' ),
'edit_item' => __( 'Edit Author', 'easel' ),
'update_item' => __( 'Update Author', 'easel' ),
'add_new_item' => __( 'Add New Author', 'easel' ),
'new_item_name' => __( 'New Author Name', 'easel' ),
);
register_taxonomy('authors',array('showcase'), array(
'hierarchical' => false,
'public' => true,
'labels' => $labels,
'show_ui' => true,
'query_var' => true,
'show_tagcloud' => true,
'rewrite' => array( 'slug' => 'authors' ),
));
$labels = array(
'name' => __( 'Languages', 'easel' ),
'singular_name' => __( 'Language', 'easel' ),
'search_items' => __( 'Search Languages', 'easel' ),
'popular_items' => __( 'Popular Languages', 'easel' ),
'all_items' => __( 'All Languages', 'easel' ),
'parent_item' => __( 'Parent Language', 'easel' ),
'parent_item_colon' => __( 'Parent Language:', 'easel' ),
'edit_item' => __( 'Edit Language', 'easel' ),
'update_item' => __( 'Update Language', 'easel' ),
'add_new_item' => __( 'Add New Language', 'easel' ),
'new_item_name' => __( 'New Language', 'easel' ),
);
register_taxonomy('language',array('showcase'), array(
'hierarchical' => false,
'public' => true,
'labels' => $labels,
'show_ui' => true,
'query_var' => true,
'show_tagcloud' => true,
'rewrite' => array( 'slug' => 'language' ),
));
$labels = array(
'name' => __( 'Designers', 'easel' ),
'singular_name' => __( 'Designer', 'easel' ),
'search_items' => __( 'Search Designers', 'easel' ),
'popular_items' => __( 'Popular Designers', 'easel' ),
'all_items' => __( 'All Designers', 'easel' ),
'parent_item' => __( 'Parent Designer', 'easel' ),
'parent_item_colon' => __( 'Parent Designer:', 'easel' ),
'edit_item' => __( 'Edit Designer', 'easel' ),
'update_item' => __( 'Update Designer', 'easel' ),
'add_new_item' => __( 'Add New Designer', 'easel' ),
'new_item_name' => __( 'New Designer Name', 'easel' ),
);
register_taxonomy('designer',array('showcase'), array(
'hierarchical' => false,
'public' => true,
'labels' => $labels,
'show_ui' => true,
'query_var' => true,
'show_tagcloud' => true,
'rewrite' => array( 'slug' => 'designer' ),
));
$labels = array(
'name' => __( 'CMS Used', 'easel' ),
'singular_name' => __( 'CMS', 'easel' ),
'search_items' => __( 'Search CMS\'s', 'easel' ),
'popular_items' => __( 'Popular CMS\'s', 'easel' ),
'all_items' => __( 'All CMS\'s', 'easel' ),
'parent_item' => __( 'Parent CMS', 'easel' ),
'parent_item_colon' => __( 'Parent CMS:', 'easel' ),
'edit_item' => __( 'Edit CMS', 'easel' ),
'update_item' => __( 'Update CMS', 'easel' ),
'add_new_item' => __( 'Add New CMS', 'easel' ),
'new_item_name' => __( 'New CMS Name', 'easel' ),
);
register_taxonomy('cms',array('showcase'), array(
'hierarchical' => false,
'public' => true,
'labels' => $labels,
'show_ui' => true,
'query_var' => true,
'show_tagcloud' => true,
'rewrite' => array( 'slug' => 'cms' ),
));
$labels = array(
'name' => __( 'Twitter Names', 'easel' ),
'singular_name' => __( 'Twitter User', 'easel' ),
'search_items' => __( 'Search Twitter Users', 'easel' ),
'popular_items' => __( 'Popular Twitter Users', 'easel' ),
'all_items' => __( 'All Twitter Users', 'easel' ),
'parent_item' => __( 'Parent Twitter', 'easel' ),
'parent_item_colon' => __( 'Parent Twitter:', 'easel' ),
'edit_item' => __( 'Edit Twitter Name', 'easel' ),
'update_item' => __( 'Update Twitter Name', 'easel' ),
'add_new_item' => __( 'Add New Twitter Name', 'easel' ),
'new_item_name' => __( 'New Twitter Name', 'easel' ),
);
register_taxonomy('twitter',array('showcase'), array(
'hierarchical' => false,
'public' => true,
'labels' => $labels,
'show_ui' => true,
'query_var' => true,
'show_tagcloud' => true,
'rewrite' => array( 'slug' => 'twitter' ),
));
register_taxonomy_for_object_type('genre', 'showcase');
register_taxonomy_for_object_type('style', 'showcase');
register_taxonomy_for_object_type('authors', 'showcase');
register_taxonomy_for_object_type('language', 'showcase');
register_taxonomy_for_object_type('designer', 'showcase');
register_taxonomy_for_object_type('cms', 'showcase');
register_taxonomy_for_object_type('twitter', 'showcase');
if (easel_themeinfo('enable_addon_showcase_slider')) {
wp_enqueue_script( 'slider', easel_themeinfo('themeurl') . '/js/jquery.cycle.js', array( 'jquery' ), 0.1, true );
// wp_enqueue_style('jQuery-Slider', easel_themeinfo('themeurl') . '/js/slide.css');
}
}
add_action('init', 'comic_list_init');
add_action('easel-post-info', 'showcase_display_post_text');
function showcase_display_post_text() {
global $post;
if ($post->post_type == 'showcase') {
echo showcase_display_authors();
echo showcase_display_showcase_link();
}
}
add_action('easel-post-extras', 'showcase_display_post_extras');
function showcase_display_post_extras() {
global $post;
if ($post->post_type == 'showcase' && !is_archive() && !is_search()) {
echo showcase_display_styles();
echo showcase_display_genres();
echo showcase_display_language();
echo showcase_display_designer();
echo showcase_display_cms();
echo showcase_display_twitter();
}
}
add_action('easel-post-foot', 'showcase_display_edit_link');
function showcase_display_edit_link() {
global $post;
if ($post->post_type == 'showcase') {
edit_post_link(__('
Edit this showcase.','easel'), '', '');
}
}
function showcase_display_authors() {
global $post;
$before = '