<div class="text-center">
<ul id="quick-links">
<li id="travel"><a href="<?php echo get_permalink(752); ?>"></a></li>
- <li id="guide"><a href="http://www.bluetoad.com/publication/?m=36331&l=1/"></a></li>
- <li id="chamber"><a href="<?php echo get_permalink(142); ?>"></a target="_blank"></li>
+ <li id="guide"><a href="<?php echo get_permalink(802); ?>"></a></li>
+ <li id="chamber" ><a target="_blank" href="<?php echo get_permalink(142); ?>"></a ></li>
<li id="news"><a href="<?php echo get_permalink(145); ?>"></a></li>
<li id="play"><a href="<?php echo get_permalink(143); ?>"></a></li>
</ul>
register_nav_menus(array(
'top-bar' => 'Site Navigation',
'footer' => 'Footer Navigation',
- 'chamber' => 'Chamber Navigation'
+ 'chamber' => 'Chamber Navigation',
+ 'community' => 'Community Navigation'
));
/**
));
}
}
+/*
+ * Community & Service Menu
+ */
+if ( ! function_exists( 'glm_theme_community' ) ) {
+ function glm_theme_community() {
+ wp_nav_menu(array(
+ 'container' => false, // remove nav container
+ 'container_class' => '', // class of container
+ 'menu' => '', // menu name
+ 'menu_class' => '', // adding custom nav class
+ 'theme_location' => 'community', // where it's located in the theme
+ 'before' => '', // before each link <a>
+ 'after' => '', // after each link </a>
+ 'link_before' => '', // before each link text
+ 'link_after' => '', // after each link text
+ 'depth' => 3, // limit the depth of the nav
+ 'fallback_cb' => false, // fallback function (see below)
+ 'walker' => new Glm_Theme_Top_Bar_Walker()
+ ));
+ }
+}
/*
* Chamber Menu
*/
global $post;
$sideMenu = $allMenu = $pageMenuId = array();
+
+ if(is_page(239) || 239== $post->post_parent || is_tree(239)){
+ if (($locations = get_nav_menu_locations()) && isset($locations['chamber'])){
+ $menu = wp_get_nav_menu_object($locations['chamber']);
+ }
+ }
+ if(is_page(137) || 137 == $post->post_parent || is_tree(137)){
+ if (($locations = get_nav_menu_locations()) && isset($locations['community'])){
+ $menu = wp_get_nav_menu_object($locations['community']);
+ }
+ }
- if (($locations = get_nav_menu_locations()) && isset($locations['chamber'])) {
- $menu = wp_get_nav_menu_object($locations['chamber']);
- }
+// if (($locations = get_nav_menu_locations()) && isset($locations['chamber'])) {
+// $menu = wp_get_nav_menu_object($locations['chamber']);
+// }
$menu_items = wp_get_nav_menu_items($menu->term_id);
foreach ((array) $menu_items as $key => $menu_item) {
echo '>'.$pageHead->title.'</a><ul>';
} else {
echo '<h1><a href="'. get_permalink(142).'"';
-
- echo '> CHAMBER </a></h1>';
+ if(is_page(239) || 239== $post->post_parent || is_tree(239)){
+ echo '> CHAMBER </a></h1>';
+ } else if(is_page(137) || 137 == $post->post_parent || is_tree(137)){
+ echo '> COMMUNITY </a></h1>';
+ }
echo '<ul>';
}
foreach ($subs as $menu_item) {