update for the title of the page.
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 25 Sep 2017 15:33:01 +0000 (11:33 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 25 Sep 2017 15:33:01 +0000 (11:33 -0400)
Pull in event name for title.
Pull in member name for title.

index.php

index 8762b09..b7669c0 100644 (file)
--- a/index.php
+++ b/index.php
@@ -6,7 +6,15 @@
         <div id="content-wrapper">
             <div id="page-title">
                 <div class="row">
-                    <h1><?php the_title() ;?></h1>
+                <?php
+                    if (is_member()) {
+                        echo "<h1>" . get_member_name() . "</h1>";
+                    } else if ( glm_is_event_detail() ) {
+                        echo glm_get_event_name();
+                    } else {
+                        echo "<h1>" . get_the_title() . "</h1>";
+                    }
+                ?>
                 </div>
             </div>
 
@@ -35,4 +43,4 @@
                 </div>
             </div>
         </div>
-<?php get_footer(); ?>
\ No newline at end of file
+<?php get_footer(); ?>