public function render($post) { $issue = new BuggyPress_Issue($post->ID); $projects = get_posts(array('post_type' => BuggyPress_Project::POST_TYPE, 'posts_per_page' => -1, 'orderby' => 'title', 'order' => 'ASC')); $current_project = $issue->get_project_id(); include BuggyPress::plugin_path('views/admin/meta-box-issue-project.php'); }
public function render($post) { $issue = new BuggyPress_Issue($post->ID); $users = get_users(); $assignee = $issue->get_assignee_id(); include BuggyPress::plugin_path('views/admin/meta-box-assignee.php'); }
public function render($post) { $users = get_users(); $members = $this->get_members($post->ID); $admins = $this->get_administrators($post->ID); include BuggyPress::plugin_path('views/admin/meta-box-members.php'); }
public function select_post_template($template) { if (is_single() && get_query_var('post_type') == $this->post_type) { // check in the theme's buggypress directory if ($found = locate_template(array('buggypress/' . $this->post_type . '.php'), FALSE)) { return $found; } // check in the main theme directory if ($found = locate_template(array('single-' . $this->post_type . '.php'), FALSE)) { return $found; } if (file_exists(BuggyPress::plugin_path('views/page-templates/single-' . $this->post_type . '.php'))) { return BuggyPress::plugin_path('views/page-templates/single-' . $this->post_type . '.php'); } } return $template; }
public function render($post) { $visibility = $this->get_visibility($post->ID); $commenting = $this->get_commenting($post->ID); include BuggyPress::plugin_path('views/admin/meta-box-permissions.php'); }
/** * Print the HTML for the buggypress menu metabox */ public function populate_menu_metabox() { global $nav_menu_selected_id; $projects = get_post_type_object('project'); $issues = get_post_type_object('issue'); $items = array('project' => $projects->label, 'newissue' => $issues->labels->new_item); include BuggyPress::plugin_path('views/admin/menu-meta-box.php'); }
public function select_template($template) { if (is_archive() && get_query_var('post_type') == BuggyPress_Issue::POST_TYPE) { // check in the theme's buggypress directory if ($found = locate_template(array('buggypress/archive-' . BuggyPress_Issue::POST_TYPE . '.php'), FALSE)) { return $found; } // check in the main theme directory if ($found = locate_template(array('archive-' . BuggyPress_Issue::POST_TYPE . '.php'), FALSE)) { return $found; } if (file_exists(BuggyPress::plugin_path('views/page-templates/archive-' . BuggyPress_Issue::POST_TYPE . '.php'))) { return BuggyPress::plugin_path('views/page-templates/archive-' . BuggyPress_Issue::POST_TYPE . '.php'); } } return $template; }