Update for navigation
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 31 Mar 2015 16:57:04 +0000 (12:57 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 31 Mar 2015 16:57:04 +0000 (12:57 -0400)
Adding the links for the main level sub navigation

functions.php

index 4c84fbb..828143b 100644 (file)
@@ -72,7 +72,7 @@ function glm_page_menu($parent = 0, $class = '')
             case 5:
                 if (!$mainLevelPageCount[5]) {
                     echo '
-                    <li class="nav_img-container"><img src="'.get_bloginfo('template_url').'/assets/museum-drop-img.png"></li>
+                    <li class="nav_img-container"><a href="'.get_permalink($page->post_parent).'"><img src="'.get_bloginfo('template_url').'/assets/museum-drop-img.png"></a></li>
                     <li class="brief-d"><h3>Museum Ship Valley Camp</h3><a class="state">Explore an actual Great Lakes freighter!</a><p>The Museum Ship Valley Camp offers more than just a tour of her deck. Housed inside her massive cargo holds is a 20,000 square foot museum with over 100 exhibits!</p></li>
                     <li class="divde"><img src="'.get_bloginfo('template_url').'/assets/drop-rope.png"></li>
                         ';
@@ -82,7 +82,7 @@ function glm_page_menu($parent = 0, $class = '')
             case 11:
                 if (!$mainLevelPageCount[11]) {
                     echo '
-                    <li class="nav_img-container"><img src="'.get_bloginfo('template_url').'/assets/tower-drop.png"></li>
+                    <li class="nav_img-container"><a href="'.get_permalink($page->post_parent).'"><img src="'.get_bloginfo('template_url').'/assets/tower-drop.png"></a></li>
                     <li class="brief-d"><h3>Tower of History</h3><p>Soaring 210 feet above Sault Ste. Marie and the Soo Locks, the tower has observation platforms for visitors to get spectacular views and photos of the world\'s busiest inland shipping channel.</p></li>
                     <li class="divde"><img src="'.get_bloginfo('template_url').'/assets/drop-rope.png"></li>
                         ';
@@ -92,7 +92,7 @@ function glm_page_menu($parent = 0, $class = '')
             case 13:
                 if (!$mainLevelPageCount[13]) {
                     echo '
-                    <li class="nav_img-container"><img src="'.get_bloginfo('template_url').'/assets/river-drop.png"></li>
+                    <li class="nav_img-container"><a href="'.get_permalink($page->post_parent).'"><img src="'.get_bloginfo('template_url').'/assets/river-drop.png"></a></li>
                     <li class="brief-d"><h3>River of History Museum</h3><p>The River of History Museum was opened by <a class="state">The Sault Ste. Marie Foundation for Culture and History</a> in 1992, with the mission of preserving and promoting the history of the St. Mary’s River system.</p></li>
                     <li class="divde"><img src="'.get_bloginfo('template_url').'/assets/drop-rope.png"></li>
                         ';
@@ -102,7 +102,7 @@ function glm_page_menu($parent = 0, $class = '')
             case 15:
                 if (!$mainLevelPageCount[15]) {
                     echo '
-                    <li class="nav_img-container"><img src="'.get_bloginfo('template_url').'/assets/kemp-drop.png"></li>
+                    <li class="nav_img-container"><a href="'.get_permalink($page->post_parent).'"><img src="'.get_bloginfo('template_url').'/assets/kemp-drop.png"></a></li>
                     <li class="brief-d"><h3>Kemp Marina</h3><p>The George Kemp Downtown Marina boasts modern facilities within walking distance to downtown restaurants and attractions.</p></li>
                     <li class="divde"><img src="'.get_bloginfo('template_url').'/assets/drop-rope.png"></li>
                         ';
@@ -112,7 +112,7 @@ function glm_page_menu($parent = 0, $class = '')
             case 17:
                 if (!$mainLevelPageCount[17]) {
                     echo '
-                    <li class="nav_img-container"><img src="'.get_bloginfo('template_url').'/assets/water-street-drop.png"></li>
+                    <li class="nav_img-container"><a href="'.get_permalink($page->post_parent).'"><img src="'.get_bloginfo('template_url').'/assets/water-street-drop.png"></a></li>
                     <li class="brief-d"><h3>Water Street Historic Block</h3><p>The historic homes of the Historic Water Street Homes are operated through a cooperative effort between the Chippewa County Historical Society, the Sault Historic Sites, and the City of Sault Ste. Marie, Michigan. </p></li>
                     <li class="divde"><img src="'.get_bloginfo('template_url').'/assets/drop-rope.png"></li>
                         ';