Fixed some link paths
authorLaury GvR <laury@gaslightmedia.com>
Wed, 6 May 2015 21:18:51 +0000 (17:18 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 6 May 2015 21:18:51 +0000 (17:18 -0400)
footer.php
front-page.php
header.php

index 383440a..00dc474 100644 (file)
@@ -2,14 +2,14 @@
                 <div id="bottom_nav" class="row">
                     <div class="large-12 columns show-for-large-up text-center">
                         <ul>
-                            <li><a href="<?php echo esc_url( get_permalink( get_page_by_path('radio-broadcasts'))); ?>">Photos</a></li>
+                            <li><a href="<?php echo esc_url( get_permalink( get_page_by_path('resourcesfaqs/photos'))); ?>">Photos</a></li>
                             <li class="weather-widget-popup">
                                 <a href="#">Weather</a>
                             </li>
-                            <li><a href="<?php echo esc_url( get_permalink( get_page_by_path('location')));?>">Location</a></li>
-                            <li><a href="<?php echo esc_url( get_permalink( get_page_by_path('contact'))); ?>">Contact</a></li>
+                            <li><a href="<?php echo esc_url( get_permalink( get_page_by_path('about/location')));?>">Location</a></li>
+                            <li><a href="<?php echo esc_url( get_permalink( get_page_by_path('about/contact'))); ?>">Contact</a></li>
                             <li><a class="nf-modal-link" rel="nf-modal:open" href="#ninja-forms-modal-6">eNews Signup</a></li>
-                            <li><a href="<?php echo esc_url( get_permalink( get_page_by_path('radio-broadcasts'))); ?>">Radio Broadcasts</a></li>
+                            <li><a href="<?php echo esc_url( get_permalink( get_page_by_path('resourcesfaqs/radio-broadcasts'))); ?>">Radio Broadcasts</a></li>
                         </ul>
                     </div>
                 </div>
@@ -21,7 +21,7 @@
                         <ul>
                             <li>15675 Headlands Rd, Mackinaw City, MI 49701</li>
                             <li>231-348-1704</li>
-                            <li><a href="<?php echo esc_url( get_permalink( get_page_by_path('contact'))); ?>">darksky@emmetcounty.org</a></li>
+                            <li><a href="<?php echo esc_url( get_permalink( get_page_by_path('about/contact'))); ?>">darksky@emmetcounty.org</a></li>
                         </ul>
                     </div>
                     <div id="copy" class="small-12 columns text-center">
index 36f4343..3bdcabe 100644 (file)
                 <h2>Headlands International Dark Sky Park!</h2>
             </div>
             <div class="small-12 medium-6 large-3 columns text-center blocks" style="background: url(<?php echo get_template_directory_uri(); ?>/assets/images/lights-night.png) no-repeat center">
-                <a href="<?php echo esc_url( get_permalink( get_page_by_path('northern-lights'))); ?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/northern_lights.png"></a>
+                <a href="<?php echo esc_url( get_permalink( get_page_by_path('stargazing/northern-lights'))); ?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/northern_lights.png"></a>
             </div>
             <div class="small-12 medium-6 large-3 columns text-center blocks" style="background: url(<?php echo get_template_directory_uri(); ?>/assets/images/gazing.jpg) no-repeat center">
-                <a href="<?php echo esc_url( get_permalink( get_page_by_path('videos'))); ?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/eye-sky.png"></a>
+                <a href="<?php echo esc_url( get_permalink( get_page_by_path('stargazing/videos'))); ?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/eye-sky.png"></a>
             </div>
             <div class="small-12 medium-6 large-3 columns text-center blocks" style="background: url(<?php echo get_template_directory_uri(); ?>/assets/images/star.jpg) no-repeat center">
-                <a href="<?php echo esc_url( get_permalink( get_page_by_path('skymap-updated-daily'))); ?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/star_map.png"></a>
+                <a href="<?php echo esc_url( get_permalink( get_page_by_title('Skymap'))); ?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/star_map.png"></a>
             </div>
             <div class="small-12 medium-6 large-3 columns text-center blocks" style="background: url(<?php echo get_template_directory_uri(); ?>/assets/images/locate.jpg) no-repeat center">
-                <a href="<?php echo esc_url( get_permalink( get_page_by_path('location'))); ?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/locate-frame.png"></a>
+                <a href="<?php echo esc_url( get_permalink( get_page_by_path('about/location'))); ?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/locate-frame.png"></a>
             </div>
         </div>
         <div class="row">
@@ -57,7 +57,7 @@
         </div>
         <div class="row">
             <div class="small-12 text-center large-4 columns blocks"style="background: url(<?php echo get_template_directory_uri(); ?>/assets/images/ni_sky.jpg) no-repeat center">
-                <a href="<?php echo esc_url( get_permalink( get_page_by_path('pardon-our-dust'))); ?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/star-dust.png"></a>
+                <a href="<?php echo esc_url( get_permalink( get_page_by_path('about/pardon-our-dust'))); ?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/star-dust.png"></a>
             </div>
             <div class="small-12 text-center large-4 columns blocks" style="background: url(<?php echo get_template_directory_uri(); ?>/assets/images/donate.jpg) no-repeat center">
                 <a href="<?php echo esc_url( get_permalink( get_page_by_path('donate'))); ?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/donate.png"></a>
index ab418f6..9fb5671 100644 (file)
@@ -24,7 +24,7 @@
                                 <a class="social" href="https://www.youtube.com/channel/UCmIF4hrFs8MjHDg3kjTjqHQ"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/youtube.png"></a>
                                 <a class="social" href="https://twitter.com/headlandsstars"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/twitter.png"></a>
                                 <a class="social" href="https://www.facebook.com/pages/Headlands-International-Dark-Sky-Park/167758500017817"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/facebook.png"></a>
-                                <a class="social" href="<?php echo esc_url( get_permalink( get_page_by_path('contact'))); ?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/signup.png"></a>
+                                <a class="social" href="<?php echo esc_url( get_permalink( get_page_by_path('about/contact'))); ?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/images/signup.png"></a>
                             </div>
                             <div class="medium-6 show-for-medium-up columns right search">
                                 <div class="search-top">