cleaning up code, making sure all unwanted code is properly commented out
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 23 Aug 2016 20:33:39 +0000 (16:33 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 23 Aug 2016 20:33:39 +0000 (16:33 -0400)
parts/community-map.php

index c6f8674..e16ae37 100644 (file)
@@ -35,7 +35,7 @@
                         <area shape="rect" coords="106,517,218,537" data-id="985" alt="bay-view-link"  nohref="nohref" onclick="get_id(this);" />
                         <area shape="rect" coords="101,542,252,560" data-id="981" alt="walloon-lake-link"  nohref="nohref" onclick="get_id(this);" />
                         </map>
-                  <img src="<?php echo get_template_directory_uri();?>/assets/map-fpo-nav.png" usemap="#community-map-nav">-->
+                  <img src="<?php //echo get_template_directory_uri();?>/assets/map-fpo-nav.png" usemap="#community-map-nav">-->
             </div>
         </ul>
     </li>
 
 $nav_posts = get_posts($nav_args);
 
-//echo '<pre>', print_r($nav_posts) , '</pre>';
-
 foreach ($nav_posts as $p){
     $page_object = get_page( $p->ID );
 
     $sites[$p->ID]['url'] = get_permalink($p->ID);
     $sites[$p->ID]['title'] = get_the_title($p->ID);
     $sites[$p->ID]['image'] = wp_get_attachment_url( get_post_thumbnail_id($p->ID));
-//    $sites[$p->ID]['content'] = substr(strip_tags($page_object->post_content),0, 300) . "...";
     $filter_content = substr(strip_tags($page_object->post_content),0, 300) . "...";
     $filter_content = strip_shortcodes($filter_content);
     $sites[$p->ID]['content'] = $filter_content;
-
-
 }
     $js_sites = json_encode($sites);
 //echo '<pre>', print_r($sites) , '</pre>';
@@ -115,7 +110,6 @@ foreach ($nav_posts as $p){
             regionData.find(".map-page-content").html(site_array[id]['content']);
 
         }, function () {
-//            $('.' + target_class).attr("fill", fill);
             $("." + target_class + ".text-container").attr("opacity", "1");
             $('.' + target_class).css("stroke-width", "0px");
         });
@@ -124,8 +118,6 @@ foreach ($nav_posts as $p){
             window.location.href = site_array[id]['url'];
 
         });
-
-
     });
 
 </script>