adding category to the county dropdown action items
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 19 Feb 2019 15:15:53 +0000 (10:15 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 19 Feb 2019 15:15:53 +0000 (10:15 -0500)
css/app.css
scss/plugins/_countyMap.scss
sections/blog-dropdown.php

index afb7ee2..35ad9f7 100644 (file)
@@ -8085,11 +8085,11 @@ body .leaflet-bottom.leaflet-right {
 #county-action-items {
   background: #65C6F4;
   position: absolute;
-  width: 104%;
+  width: 105%;
   right: 0;
   text-align: center;
-  padding: 5px 0;
-  bottom: -140px; }
+  padding: 20px 0;
+  bottom: -155px; }
 
 .glm-theme-map-label {
   font-family: 'Posterizer';
index 98b5210..59e4c1c 100644 (file)
@@ -119,11 +119,11 @@ body{
 #county-action-items{
     background: #65C6F4;
    position: absolute;
-   width: 104%;
+   width: 105%;
    right: 0;
    text-align: center;
-   padding: 5px 0;
-   bottom: -140px;
+   padding: 20px 0;
+   bottom: -155px;
 }
 .glm-theme-map-label{
     font-family: 'Posterizer';
index 87f618c..c578d22 100644 (file)
@@ -34,12 +34,14 @@ $travel_tools   = array("Order"=>get_permalink(2), "View"=>"https://www.bluetoad
     <?php
     foreach($action_items as $item){
          if ( strpos( $item, 'Water' ) !== false ) {
-                    $icon = "Waterfalls";
-            } else if ( strpos( $item, 'Light' ) !== false ) {
-                $icon = 'Lighthouses';
-            } 
-        ?>
-        <a class="action-item-dropdown-link" href="">
+            $icon = "Waterfalls";
+            $category = 25;
+        } else if ( strpos( $item, 'Light' ) !== false ) {
+             $icon = 'Lighthouses';
+             $category = 21;
+        } 
+    ?>
+        <a class="action-item-dropdown-link" href="<?php echo get_site_url(); ?>/members-list?category=<?php echo $category; ?>">
             <img class="action-item-dropdown" src="<?php echo get_template_directory_uri();?>/assets/county-navigation/<?php echo $icon; ?>.png">
         </a>
     <?php } ?>