Exemplo n.º 1
0
</h2>
	<?php 
} elseif (dbem_is_category_page()) {
    ?>
		<?php 
    $cat = dbem_get_category($_REQUEST['category']);
    ?>
			<h2><a href="/events" title="Events">Events</a> &rsaquo; <a href="/?category=<?php 
    echo $cat['category_id'];
    ?>
"><?php 
    echo $cat['category_name'];
    ?>
</a></h2>
	<?php 
} elseif (dbem_is_single_event_page()) {
    ?>
		<h2><a href="/events" title="Events">Events</a> &rsaquo; <?php 
    the_title();
    ?>
</h2>
	<?php 
} elseif (dbem_is_multiple_events_page()) {
    ?>
		<h2><a href="/events" title="Events">Events</a></h2>
	<?php 
} elseif (is_404()) {
    ?>
		<h2>Oops...</h2>
	<?php 
} else {
function dbem_is_event_rsvpable()
{
    if (dbem_is_single_event_page()) {
        $event = dbem_get_event($_GET['event_id']);
        if ($event) {
            return $event['event_rsvp'];
        }
    }
    return 0;
}