From: Anthony Talarico Date: Tue, 23 Aug 2016 20:33:39 +0000 (-0400) Subject: cleaning up code, making sure all unwanted code is properly commented out X-Git-Tag: v1.0.0^2~90 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e58bb7e4e12bffe99f21f34a6e0a18c88e39252a;p=WP-Themes%2Fpetoskeyarea.git cleaning up code, making sure all unwanted code is properly commented out --- diff --git a/parts/community-map.php b/parts/community-map.php index c6f8674..e16ae37 100644 --- a/parts/community-map.php +++ b/parts/community-map.php @@ -35,7 +35,7 @@ bay-view-link walloon-lake-link - --> + --> @@ -51,20 +51,15 @@ $nav_posts = get_posts($nav_args); -//echo '
', print_r($nav_posts) , '
'; - 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 '
', print_r($sites) , '
'; @@ -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']; }); - - });