/**
 * Returns the labels for the project post type.
 *
 * @since  1.0.0
 * @access public
 * @return array
 */
function ccp_get_project_labels()
{
    $labels = array('name' => __('Projects', 'custom-content-portfolio'), 'singular_name' => __('Project', 'custom-content-portfolio'), 'menu_name' => __('Portfolio', 'custom-content-portfolio'), 'name_admin_bar' => __('Project', 'custom-content-portfolio'), 'add_new' => __('New Project', 'custom-content-portfolio'), 'add_new_item' => __('Add New Project', 'custom-content-portfolio'), 'edit_item' => __('Edit Project', 'custom-content-portfolio'), 'new_item' => __('New Project', 'custom-content-portfolio'), 'view_item' => __('View Project', 'custom-content-portfolio'), 'search_items' => __('Search Projects', 'custom-content-portfolio'), 'not_found' => __('No projects found', 'custom-content-portfolio'), 'not_found_in_trash' => __('No projects found in trash', 'custom-content-portfolio'), 'all_items' => __('Projects', 'custom-content-portfolio'), 'featured_image' => __('Project Image', 'custom-content-portfolio'), 'set_featured_image' => __('Set project image', 'custom-content-portfolio'), 'remove_featured_image' => __('Remove project image', 'custom-content-portfolio'), 'use_featured_image' => __('Use as project image', 'custom-content-portfolio'), 'insert_into_item' => __('Insert into project', 'custom-content-portfolio'), 'uploaded_to_this_item' => __('Uploaded to this project', 'custom-content-portfolio'), 'views' => __('Filter projects list', 'custom-content-portfolio'), 'pagination' => __('Projects list navigation', 'custom-content-portfolio'), 'list' => __('Projects list', 'custom-content-portfolio'), 'archive_title' => ccp_get_portfolio_title());
    return apply_filters('ccp_get_project_labels', $labels);
}
예제 #2
0
    /**
     * Portfolio title field callback.
     *
     * @since  1.0.0
     * @access public
     * @return void
     */
    public function field_portfolio_title()
    {
        ?>

		<label>
			<input type="text" class="regular-text" name="ccp_settings[portfolio_title]" value="<?php 
        echo esc_attr(ccp_get_portfolio_title());
        ?>
" />
			<br />
			<span class="description"><?php 
        esc_html_e('The name of your portfolio. May be used for the portfolio page title and other places, depending on your theme.', 'custom-content-portfolio');
        ?>
</span>
		</label>
	<?php 
    }