/**
         * Loads the calendar markup
         *
         * @package CollabPress
         * @subpackage CP BP
         * @since 1.2
         */
        function calendar_display()
        {
            // Render the project dropdown
            ?>
		<form action="<?php 
            bp_group_permalink(groups_get_current_group());
            ?>
calendar" method="get">
			<label for="show_cp_project"><?php 
            _e('Show tasks from: ', 'collabpress');
            ?>
</label>
			<?php 
            $this->render_project_selector();
            ?>
			<input type="submit" value="<?php 
            _e('Go', 'collabpress');
            ?>
" />
		</form>
		<?php 
            add_filter('cp_calendar_tasks_args', array($this, 'calendar_filter_task_query'));
            cp_draw_calendar();
            // Just in case it's run more than once on a page.
            remove_filter('cp_calendar_tasks_args', array($this, 'calendar_filter_task_query'));
        }
<div class="collabpress">

	<div class="tabbed-list">

		<?php 
cp_project_links();
?>

	</div>

	<div class="project-breadcrumb">
		<h3 class="project-title"><?php 
cp_project_title();
?>
</h3>
		<h3>&nbsp;»&nbsp;<?php 
_e('Calendar', 'collabpress');
?>
</h3>
	</div>
	<div class="calendar">
		<?php 
global $cp;
$month = !empty($_REQUEST['month']) ? $_REQUEST['month'] : NULL;
$year = !empty($_REQUEST['year']) ? $_REQUEST['year'] : NULL;
cp_draw_calendar(array('project' => $cp->project->ID, 'month' => $month, 'year' => $year));
?>
	</div>
</div>
            do_meta_boxes($this->pagehook, 'collabpress-main', NULL);
            do_meta_boxes($this->pagehook, 'collabpress-task', NULL);
            do_meta_boxes($this->pagehook, 'collabpress-task-query', NULL);
        } else {
            do_meta_boxes($this->pagehook, 'collabpress-task-list-edit', NULL);
        }
        // Project Page
    } else {
        if (!isset($_GET['view'])) {
            do_meta_boxes($this->pagehook, 'collabpress-main', NULL);
            do_meta_boxes($this->pagehook, 'collabpress-task-list', NULL);
            do_meta_boxes($this->pagehook, 'collabpress-task-list-query', NULL);
        } else {
            do_meta_boxes($this->pagehook, 'collabpress-project-edit', NULL);
        }
    }
    // User Page
} elseif ($cp_user_page) {
    cp_user_page();
    // Calendar Page
} elseif ($cp_calendar_page) {
    cp_draw_calendar();
    // View All Projects Page
} elseif ($cp_view_projects) {
    cp_view_all_projects();
    // Dashboard Page
} else {
    do_meta_boxes($this->pagehook, 'collabpress-main', NULL);
    do_meta_boxes($this->pagehook, 'collabpress-project', NULL);
}
do_meta_boxes($this->pagehook, 'collabpress-footer', NULL);
<div class="collabpress">

	<div class="tabbed-list">

		<?php 
cp_overview_nav();
?>

	</div>
	<div class="clear"></div>
	<div class="calendar">
		<h3><?php 
_e('Calendar', 'collabpress');
?>
</h3>
		<?php 
$month = !empty($_REQUEST['month']) ? $_REQUEST['month'] : NULL;
$year = !empty($_REQUEST['year']) ? $_REQUEST['year'] : NULL;
cp_draw_calendar(array('month' => $month, 'year' => $year));
?>
	</div>
</div>