removing the blog posts from the dropdowns
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 1 Feb 2019 20:10:44 +0000 (15:10 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 1 Feb 2019 20:10:44 +0000 (15:10 -0500)
commenting out the markup that generated the blog posts in the dropdowns

sections/blog-dropdown.php

index f60d073..029489d 100644 (file)
@@ -1,35 +1,35 @@
 <?php 
 
-$categories     = array("places-to-stay", "attractions", "recreation","things-to-do");
+//$categories     = array("places-to-stay", "attractions", "recreation","things-to-do");
 $action_items   = array("Lighthouses", "Waterfalls", "UP's Finest");
 $travel_tools   = array("Order"=>get_permalink(2), "View"=>"https://www.bluetoad.com/publication/?i=490297#{%22issue_id%22:490297,%22page%22:0}");
 
-foreach($categories as $category){
-    $args = array( 'numberposts' => 1, 'category_name' => $category );
-    $posts = get_posts( $args ); ?>
-    <div id="<?php echo $category; ?>-dropdown" class="blog-dropdowns dropdown-wrapped cell small-6">
+//foreach($categories as $category){
+   // $args = array( 'numberposts' => 1, 'category_name' => $category );
+   // $posts = get_posts( $args ); ?>
+    <!-- <div id="<?php //echo $category; ?>-dropdown" class="blog-dropdowns dropdown-wrapped cell small-6">
         <div class="blog-dropdown-container">
-            <?php foreach($posts as $post){ ?>
+            <?php //foreach($posts as $post){ ?>
                 <div class="blog-dropdown blog-cell">
-                    <a class="blog-dropdown-link" href="<?php echo get_permalink($post->ID); ?>">
+                    <a class="blog-dropdown-link" href="<?php //echo get_permalink($post->ID); ?>">
                         <?php 
                
-                        if( !empty(wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ) ) ) ){
-                            $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'medium')[0];
-                        }else{ 
-                            $thumbnail = get_template_directory_uri() . '/assets/default-header.png';
-                       } ?>
+                        //if( !empty(wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ) ) ) ){
+                            //$thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'medium')[0];
+                       // }else{ 
+                       //     $thumbnail = get_template_directory_uri() . '/assets/default-header.png';
+                      // } ?>
                         
                         <div class="blog-image-frame">
-                            <div class='blog-dropdown-image' style='background: url(<?php echo $thumbnail; ?>) no-repeat center center;background-size: cover;' alt='' ></div>
+                            <div class='blog-dropdown-image' style='background: url(<?php //echo $thumbnail; ?>) no-repeat center center;background-size: cover;' alt='' ></div>
                         </div>
-                        <h6 class="blog-dropdown-title"><?php echo $post->post_title; ?> </h6>
+                        <h6 class="blog-dropdown-title"><?php //echo $post->post_title; ?> </h6>
                     </a>
                 </div>
-            <?php } ?>
+            <?php //} ?>
         </div>
-    </div>
-<?php } ?>
+    </div> -->
+<?php // } ?>
 <div id="county-action-items">
     <?php
     foreach($action_items as $item){ ?>