MF_PostTypePages::AddPosttype PHP Method

AddPosttype() public method

Display the form for add a new type of custom type
public AddPosttype ( )
    function AddPosttype()
    {
        global $mf_domain;
        print "<div class='wrap'>" . "<div id='icon-edit-pages' class='icon32'></div>" . "<h2>" . __('Add New Post Type', $mf_domain) . "</h2>" . "<form method='POST' action='?page=mf_posttypes&action=save'>" . "<div class='mf_form'>" . "<div class='form-field'>" . "<label for='post_type_name'>" . __('Name', $mf_domain) . "<span>*</span>:</label>" . "<input type='text' id='post_type_name' maxlength='20' size='23' name='post_type_name' value=''/>" . "<p>" . __('Put the name of your Post Type') . "</p>" . "</div>" . "<div class='form-field'>" . "<label for='description'>" . __('Description', $mf_domain) . ":<span>*</span></label>" . "<textarea name='description'></textarea>" . "<p>" . __('description about for what is your custom post type', $mf_domain) . "</p>" . "</div>" . "<div class='form-field'>" . "<input type='checkbox' name='is_public' /><label for='is_public' class='label_checkbox'>" . __('Is Public', $mf_domain) . "</label>" . "<p>" . __('This post type is public?', $mf_domain) . "</p>" . "<div class='sub-options is_public_options'>" . "<input type='checkbox' name='display_ui' /><label for='display_ui' class='label_checkbox'>" . __('Show UI', $mf_domain) . "</label>" . "<p>" . __('This type will be displayed into the Administration menu?', $mf_domain) . "</p>" . "<input type='checkbox' name='exclude_search' /><label for='exclude_search' class='label_checkbox'>" . __('Exclude Search', $mf_domain) . "</label>" . "<p>" . __('This element will be exclude in the search page', $mf_domain) . "</p>" . "</div>" . "</div>" . "<div class='form-field'>" . "<input type='checkbox' name='supports' /><label class='label_checkbox' for='supports'>" . __('Customize which Fields will be displayed in this post type', $mf_domain) . "</label>" . "<p></p>" . "<div class='sub-options supports_options'>" . "<input type='checkbox' name='title'><label class='label_checkbox' for='title'>" . __('Title', $mf_domain) . "</label>" . "<p>" . __('Title', $mf_domain) . "</p>" . "<input type='checkbox' name='editor'><label class='label_checkbox' for='editor'>" . __('Editor', $mf_domain) . "</label>" . "<p>" . __('The user put here the content of the post', $mf_domain) . "</p>" . "<input type='checkbox' name='comments'><label class='label_checkbox' for='comments'>" . __('Comments', $mf_domain) . "</label>" . "<p>" . __('This post type have comments', $mf_domain) . "</p>" . "<input type='checkbox' name='trackbacks'><label class='label_checkbox' for='trackbacks'>" . __('Trackbacks', $mf_domain) . "</label>" . "<p>" . __('This post type have trackbacks', $mf_domain) . "</p>" . "<input type='checkbox' name='revisions'><label class='label_checkbox' for='revisions'>" . __('Revisions', $mf_domain) . "</label>" . "<p>" . __('This post type have revisions', $mf_domain) . "</p>" . "<input type='checkbox' name='author'><label class='label_checkbox' for='author'>" . __('Author', $mf_domain) . "</label>" . "<p>" . __('Author', $mf_domain) . "</p>" . "<input type='checkbox' name='excerpt'><label class='label_checkbox' for='excerpt'>" . __('Excerpt', $mf_domain) . "</label>" . "<p>" . __('This post type have Excerpt', $mf_domain) . "</p>" . "<input type='checkbox' name='thumbnail'><label class='label_checkbox' for='thumbnail'>" . __('Thumbnail', $mf_domain) . "</label>" . "<p>" . __('This post type have Thumbnail', $mf_domain) . "</p>" . "<input type='checkbox' name='page_attributes'><label class='label_checkbox' for='thumbnail'>" . __('Page Attributes', $mf_domain) . "</label>" . "<p>" . __('Page Attributes', $mf_domain) . "</p>" . "</div>" . "</div>" . "<p class='submit'>" . "<input name='save_post_type' type='submit' value='Create post Type'/>" . "</p>" . "</div>" . "</form>" . "</div>";
    }