<?php if (comments_open() && is_user_logged_in()) { ?> <?php if (bp_checkins_places_was_posted_in_group() && !bp_checkins_places_can_publish_in_group()) { ?> <p class="must-register-in-groupe"><?php printf(__('You must be a member of %s to check in this place or post a comment.', 'bp-checkins'), bp_get_checkins_places_group_permalink()); ?> </p> <?php } else { ?> <?php if (bp_checkins_places_is_live() && 'live' != bp_checkins_places_live_status(0)) { ?> <p class="bpci-live-unavailable"><?php bp_checkins_places_live_status(); ?> </p> <?php } else { ?>
function bp_checkins_places_group_permalink() { echo bp_get_checkins_places_group_permalink(); }