Update title
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 26 Sep 2017 13:50:00 +0000 (09:50 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 26 Sep 2017 13:50:00 +0000 (09:50 -0400)
For the event detail page pull event name.

sections/interior-page.php
style.css

index 7e4c78c..00f7d07 100644 (file)
@@ -3,7 +3,13 @@
                             <div class="page-title">
                                 <div class="row medium-uncollapse large-collapse">
                                     <div class="small-12 columns">
-                                        <h1><?php the_title();?></h1>
+                <?php
+                    if ( glm_is_event_detail() ) {
+                        echo '<h1>'.glm_get_event_name().'</h1>';
+                    } else {
+                        echo "<h1>" . get_the_title() . "</h1>";
+                    }
+                ?>
                                     </div>
                                 </div>
                             </div>
@@ -12,7 +18,7 @@
                                 {
                                     echo "<div class='breadcrumbs small-6 columns'>";
                                     bcn_display();
-                  
+
                                     echo "</div>";
                                 }
                                 ?>
                                     </div><!--/#addthis_wrapper-->
                                 </div>
                             </div>
-                                 
+
                             <div class="row medium-uncollapse">
-                                
+
                                     <?php get_template_part('parts/main-content');?>
-                                
+
                                 <div class="sidebar-container show-for-large-up small-12 large-4 columns small-text-center medium-text-left">
                                     <?php get_sidebar(); ?>
                                 </div>
                             </div>
-                            
+
                             <?php if (!is_page_template('no-bottom-sections.php')) { ?>
                                 <?php if (get_field('glm-acf-first-text')) { ?>
                                     <div id="glm-acf-first" class="glm-acf-field row">
@@ -59,5 +65,5 @@
                                 <?php get_template_part('mobile-sidebar') ?>
                            </div>
                         </div>
-                           
-                    </main>
\ No newline at end of file
+
+                    </main>
index 3e715b0..1462654 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: UniversityCenter
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for UniversityCenter
-Version: 1.0.2
+Version: 1.0.3
 */