removing extra line space after closing php tag in the menu-walker.php
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 16 Dec 2016 18:16:28 +0000 (13:16 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 16 Dec 2016 18:16:28 +0000 (13:16 -0500)
file, it was causing the extra space above html tag

functions.php
lib/menu-walker.php
sections/top-bar.php

index bc62bc2..2e98908 100644 (file)
@@ -143,26 +143,4 @@ function is_post_type($type){
 }
 
 add_action('thematic_searchloop', 'mytheme_search_loop');
-// End of the Contextual/Highlight Search functions
-
-//$theme_locations = get_nav_menu_locations();
-//$menu_obj = get_term( $theme_locations['top-bar'], 'nav_menu' );
-//$menu_name = $menu_obj->slug;
-//
-//$topbar = wp_get_nav_menu_items($menu_name);
-////nice_print($topbar);
-//foreach($topbar as $tb=>$data){
-//    if($data->menu_item_parent === '0'){
-//        $post_ids['menu-item-'.$data->ID] = get_post_meta( $data->ID, '_menu_item_object_id', true );
-//    }
-//}
-//
-//foreach($post_ids as $post=>$value){
-//    $post_data[$post] = get_post($value);
-//}
-//foreach($post_data as $pd){
-//    if( has_excerpt($pd->ID ) ){
-//       
-//    }
-//}
-//nice_print($post_data);
\ No newline at end of file
+// End of the Contextual/Highlight Search functions
\ No newline at end of file
index 5dcb369..ac25a5b 100644 (file)
@@ -53,7 +53,6 @@ class Glm_Theme_Top_Bar_Walker extends Walker_Nav_Menu {
         if ($item_style)
             $output .= $item_style;
         $output .= $item_html;
-      
     }
     function start_lvl( &$output, $depth = 0, $args = array() ) {
         $output .= "\n<ul class=\"sub-menu dropdown\">\n";
@@ -93,5 +92,4 @@ class Glm_Theme_Off_Canvas_Walker extends Walker_Nav_Menu {
     }
 }
 endif;
-?>
-
+?>
\ No newline at end of file
index 0609691..8691783 100644 (file)
@@ -43,7 +43,6 @@ foreach($post_data as $pd=>$value){
     $dropdown[$value->ID]['menu'] = $pd;
     
 }
-
 $dropdown = json_encode($dropdown);
 ?>
 <script>
@@ -67,4 +66,4 @@ $dropdown = json_encode($dropdown);
             }
         });
     });
-</script>
+</script>
\ No newline at end of file