Update for title
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 26 Sep 2017 16:56:35 +0000 (12:56 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 26 Sep 2017 16:56:35 +0000 (12:56 -0400)
Use event name for title on detail page.

index.php
style.css

index be0549c..7f22764 100644 (file)
--- a/index.php
+++ b/index.php
                         <!--                                        <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>-->
                         <!-- AddThis Button END -->
                     </div><!--/#addthis_wrapper-->
-                        <?php echo "<h1>" . get_the_title() . "</h1>"; ?>
-                    </div> 
+                <?php
+                    if ( glm_is_event_detail() ) {
+                        echo '<h1>'.glm_get_event_name().'</h1>';
+                    } else {
+                        echo "<h1>" . get_the_title() . "</h1>";
+                    }
+                ?>
+                    </div>
                     <?php if(have_posts()) : while(have_posts()): the_post();?>
                     <?php the_content();?>
                     <?php endwhile; else:?>
                     <p><?php _e('Sorry, no results found.');?></p>
                     <?php endif;?>
                 </div>
-                
-                
+
+
             </div>
         </div>
 <?php get_footer(); ?>
index 19a3e36..1633d28 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: MackinacBridgeAuthority
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for MackinacBridgeAuthority
-Version: 1.0.25
+Version: 1.0.26
 */