<main class="page-inside">
<div id="page-title-container">
<span class="page-title">
- <?php echo $post->post_title; ?>
+ <?php
+ if ( is_member() ) {
+ echo get_member_name();
+ } else if ( glm_is_event_detail() ) {
+ echo glm_get_event_name();
+ } else {
+ echo get_the_title();
+ }
+ ?>
</span>
</div>
<div id="content-wrapper">
<?php if (is_user_logged_in()) { ?>
<!-- If user is logged in as a member, display top bar, bread crumbs, & content -->
<?php get_template_part('parts/glm-members-only-top-bar');
- get_template_part('parts/main-content');
+ get_template_part('parts/main-content');
} else {
get_template_part('parts/glm-members-only-login-form');
} ?>
<div class="small-12 columns">
<?php if(function_exists('bcn_display') && !is_front_page())
{
- echo "<div class=\"breadcrumbs small-12 columns\">";
+ echo "<div class=\"breadcrumbs small-12 columns\">";
bcn_display();
echo "</div>";
}
</main>
<div class="row action-item-section">
<?php get_template_part('parts/action-items');?>
-</div>
\ No newline at end of file
+</div>