/** * Loads needed Rendez-vous template parts * * @package Rendez Vous * @subpackage Groups * * @since Rendez Vous (1.1.0) * * @uses rendez_vous_edit_title() to output the title in edit context * @uses rendez_vous_edit_content() to output the form to edit the rendez-vous * @uses rendez_vous_single_title() to output the title in display context * @uses rendez_vous_single_content() to output the rendez-vous content * @uses rendez_vous_editor() to load the rendez-vous BackBone editor * @uses bp_get_current_group_id() to get the current group id * @uses rendez_vous_loop() to output the rendez-vous for the group * @return string html output */ public function display($group_id = null) { if (!empty($this->screen)) { if ('edit' == $this->screen) { ?> <h1><?php rendez_vous_edit_title(); ?> </h1> <?php rendez_vous_edit_content(); } else { if ('single' == $this->screen) { ?> <h1><?php rendez_vous_single_title(); ?> </h1> <?php rendez_vous_single_content(); } } } else { if (empty($group_id)) { $group_id = bp_get_current_group_id(); } ?> <h3> <ul id="rendez-vous-nav"> <li><?php rendez_vous_editor('new-rendez-vous', array('group_id' => $group_id)); ?> </li> <li class="last"><?php render_vous_type_filter(); ?> </li> </ul> </h3> <?php rendez_vous_loop(); } }
/** * Attend screen content * * @package Rendez Vous * @subpackage Parts * * @since Rendez Vous (1.0.0) */ function rendez_vous_attend_content() { rendez_vous_loop(); }