<div class="large-8 columns">
<ul>
<li><a href="<?php bloginfo('url')?>">Home</a></li>
- <li><a>Meetings & Events</a></li>
- <li><a>Sports Planning</a></li>
- <li><a>Travel Partners</a></li>
- <li><a>Media</a></li>
+ <li><a href="<?php echo get_permalink(3200);?>">Meetings & Events</a></li>
+ <li><a href="<?php echo get_permalink(3201);?>"> Sports Planning</a></li>
+ <li><a href="<?php echo get_permalink(3202);?>">Travel Partners</a></li>
+ <li><a href="<?php echo get_permalink(3203);?>">Media</a></li>
<li><a href="<?php echo get_permalink(2839); ?>">Blog</a></li>
<li id="searchIcon"><a><img src="<?php bloginfo('template_url'); ?>/assets/search-icon.jpg"></a></li>
<li><?php get_template_part("parts/search"); ?></li>
$("#block-4").wrap('<div id="med-block" class="row collapse">');
$("#small-blocks, #med-block").wrapAll('<div class="small-12 large-6 columns">');
- $("#menu-side").children("h1").replaceWith(function () {
- return $('<h2/>', {
- html: $(this).html()
- });
- });
- $("#menu-side").children("ul").addClass("sidebar");
+// $("#menu-side").children("h1").replaceWith(function () {
+// return $('<h2/>', {
+// html: $(this).html()
+// });
+// });
+// $("#menu-side").children("ul").addClass("sidebar");
// remove drop down arrow icons from sub menu items
$("#menu-menu-1").find(".dropdown").children("li").removeClass("has-dropdown");
$("#block-4").wrap('<div id="med-block" class="row collapse">');
$("#small-blocks, #med-block").wrapAll('<div class="small-12 large-6 columns">');
- $("#menu-side").children("h1").replaceWith(function () {
- return $('<h2/>', {
- html: $(this).html()
- });
- });
- $("#menu-side").children("ul").addClass("sidebar");
+// $("#menu-side").children("h1").replaceWith(function () {
+// return $('<h2/>', {
+// html: $(this).html()
+// });
+// });
+// $("#menu-side").children("ul").addClass("sidebar");
// remove drop down arrow icons from sub menu items
$("#menu-menu-1").find(".dropdown").children("li").removeClass("has-dropdown");
<?php foreach($images as $image){
$imageSrc = $image['full'];
}?>
- <li class="small-text-center medium-text-left landing-item"><a href="<?php echo get_permalink($child->ID); ?>"><img src="<?php echo $imageSrc; ?>"><h5><?php echo $child->post_title ?></h5></a></li>
+ <li class="small-text-center medium-text-left landing-item"><a href="<?php echo get_permalink($child->ID); ?>"><img src="<?php echo $imageSrc; ?>" alt="featured-image"><h5><?php echo $child->post_title ?></h5></a></li>
<?php $imageSrc = null; ?>
<?php } ?>
<!--
}
return $menu_options;
}
+
//function glm_side_menu() {
// global $post;
// $parents = get_post_ancestors($post->ID);
//}
function glm_side_menu($mobile = false) {
global $post;
-
+ if( !is_page(array(3200, 3201,3202,3203))){
+
$sideMenu = $allMenu = $pageMenuId = array();
if (($locations = get_nav_menu_locations()) && isset($locations['top-bar'])) {
$menu = wp_get_nav_menu_object($locations['top-bar']);
}
echo '>'.$pageHead->title.'</a><ul>';
} else {
- echo '<h1><a href="'.$pageHead->url.'"';
+ echo '<h2><a href="'.$pageHead->url.'"';
if ($pageHead->target) {
echo ' target="'.$pageHead->target.'"';
}
- echo '>'.$pageHead->title.'</a></h1>';
- echo '<ul>';
+ echo '>'.$pageHead->title.'</a></h2>';
+ echo '<ul class="sidebar">';
}
foreach ($subs as $menu_item) {
echo '<li><a href="'.$menu_item->url.'"';
echo '</ul>';
}
echo '</ul>';
+} else {
+ global $post;
+ $parents = get_post_ancestors($post->ID);
+ $id = ($parents) ? $parents[count($parents)-1]: $post->ID;
+ $parent = get_page( $id );
+ if ($id == 0) {
+ $ID = $post->ID;
+ } else {
+ $ID = $parent->ID;
+ }
+ echo '<h2>'.get_the_title($ID).'</h2>';
+ echo '<ul class="sidebar"><!-- begin -->'."\n";
+ echo wp_list_pages( 'child_of='.$ID.'&title_li=&depth=1&echo=0');
+ echo '</ul><!-- end -->'."\n";
+ }
}
+
+