From: Ian Weller Date: Fri, 19 Aug 2016 15:36:53 +0000 (-0400) Subject: updating glmThemeV6 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=161bd5dd228ad79d87c8ab153370667e0a8ac05d;p=web%2FGruntInit%2FglmThemeV6.git updating glmThemeV6 I took some code I have place in the Camp Petosega Rebuild with Foundation 6 and placed them into the glmTheme. The files with the most general changes in the Petosega Rebuild have been altered in the glmThemeV6. Things should go a bit smoother with the next project. --- diff --git a/root/index.php b/root/index.php index 5b418fc..92fe074 100644 --- a/root/index.php +++ b/root/index.php @@ -41,9 +41,9 @@ -
-
-
+
+
+
- - - - - - - - +
+ + + + + + + -
- + +
+
diff --git a/root/lib/menu-walker.php b/root/lib/menu-walker.php index 64b5a96..541d5f8 100644 --- a/root/lib/menu-walker.php +++ b/root/lib/menu-walker.php @@ -11,7 +11,7 @@ class Glm_Theme_Top_Bar_Walker extends Walker_Nav_Menu { } $element->has_children = ! empty( $children_elements[ $element->ID ] ); $element->classes[] = ( $element->current || $element->current_item_ancestor ) ? 'active' : ''; - $element->classes[] = ( $element->has_children && 1 !== $max_depth ) ? 'has-dropdown' : ''; + $element->classes[] = ( $element->has_children && 1 !== $max_depth ) ? '' : ''; $element->classes[] = ( $element->post_parent == 0 && $mainLevelCounter < 6 ) ? '' : 'drop-left'; parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output ); } @@ -24,7 +24,7 @@ class Glm_Theme_Top_Bar_Walker extends Walker_Nav_Menu { $item_style = ''; if ($depth == 0 && has_post_thumbnail((int)$object->object_id)) { $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id((int)$object->object_id), 'large'); - $item_style .= ""; + $item_style .= ""; } //$output .= ( 0 == $depth ) ? '
  • ' : ''; $classes = empty( $object->classes ) ? array() : (array) $object->classes; @@ -41,7 +41,7 @@ class Glm_Theme_Top_Bar_Walker extends Walker_Nav_Menu { } function start_lvl( &$output, $depth = 0, $args = array() ) { - $output .= "\n