Sidebar links not showing up twice when on page. Footer text edit
authorLaury GvR <laury@gaslightmedia.com>
Mon, 2 Mar 2015 21:10:58 +0000 (16:10 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 2 Mar 2015 21:10:58 +0000 (16:10 -0500)
footer.php
sidebar.php

index f9861a1..0d6f05f 100644 (file)
@@ -45,8 +45,9 @@
             </div>
             <div class="row">    
                 <div id="copyright" class="small-12 text-center">
-                    <p>The Gilmore Car Museum is a public, 501(c)3 non-profit educational institution, dedicated to preserving the history and heritage of the American automobile.</p>
-                    <p>&copy;  &#8226; All Rights Reserved &#8226; Produced by Gaslight Media</p>
+                    <p>The Gilmore Car Museum is a public, 501(c)3 non-profit educational institution, 
+                        dedicated to preserving the history and heritage of the American automobile.</p><br>
+                    <p>&copy; All Rights Reserved &#8226; Produced by Gaslight Media</p>
                     <span>&copy; <?php echo date('Y');?> Gilmore Car Museum</span>
                     <span class="bullet"> &#8226; </span>
                     <span> All Rights Reserved</span>
@@ -60,7 +61,6 @@
     <script charset="utf-8" type="text/javascript">var switchTo5x=true;</script>
     <script charset="utf-8" type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
     <script charset="utf-8" type="text/javascript">stLight.options({"publisher":"wp.9d9e548a-5d0d-4ad3-a4fe-b70af79a0d5f"});var st_type="wordpress4.1.1";</script>
-
     <?php wp_footer();?>
   </body>
 </html>
index c9eb391..64fdb87 100644 (file)
@@ -1,7 +1,15 @@
                 <div class="medium-3 columns show-for-medium-up sidebar">
                     <?php glm_side_menu(); ?>
-                    <a class="tab" href="#"><h3>Upcoming Events</h3></a>
-                    <a class="tab" href="#"><h3>News</h3></a>
-                    <a class="tab" href="#"><h3>The Collections</h3></a>
-                    <a class="tab" href="#"><h3>Sponsors</h3></a>
+                    <?php if (!is_page('upcoming-events')) {
+                        echo '<a class="tab" href="' . esc_url( get_permalink( get_page_by_title( 'upcoming-events' ) ) ).'"><h3>Upcoming Events</h3></a>';
+                    }
+                    if (!is_page('news')) {
+                        echo '<a class="tab" href="' . esc_url( get_permalink( get_page_by_title( 'news' ) ) ).'"><h3>News</h3></a>';
+                    }
+                    if (!is_page('collections')) {
+                        echo '<a class="tab" href="' . esc_url( get_permalink( get_page_by_title( 'collections' ) ) ).'"><h3>The Collections</h3></a>';
+                    }
+                    if (!is_page('sponsors')) {
+                        echo '<a class="tab" href="' . esc_url( get_permalink( get_page_by_title( 'sponsors' ) ) ).'"><h3>Sponsors</h3></a>';
+                    }?>
                 </div>