From: Anthony Talarico Date: Tue, 4 Oct 2016 17:17:17 +0000 (-0400) Subject: adding featured image capability for main nav pages only, added excerpt support for... X-Git-Tag: v1.0.0^2~195 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=173214209bbe1b2b1460ff4d4c3aadec1fa7f1fc;p=WP-Themes%2Fbaragacounty.git adding featured image capability for main nav pages only, added excerpt support for the dropdown map content --- diff --git a/functions.php b/functions.php index deb01b4..5e25ff7 100644 --- a/functions.php +++ b/functions.php @@ -58,6 +58,7 @@ if (!function_exists('glm_get_clientinfo_option')) { add_theme_support('custom-fieldss'); add_theme_support('post-thumbnails'); set_post_thumbnail_size(120, 100, true); +add_post_type_support("page", 'excerpt'); /** * glm_site_scripts * @@ -85,8 +86,7 @@ function glm_site_scripts() /* Header for posts*/ function glm_get_header() { echo ' - post_content),0, 300) . "..."; ?> - + post_content),0, 300) . "..."; ?> + +
@@ -109,7 +110,6 @@ foreach ($nav_posts as $p){ // set the default data next to the dropdown community map function set_default_data(){ - regionData.find(page_title).html('post_title; ?>'); regionData.find(image_container).css("height","125px").css("width", "125px").css("background", "url(' ')no-repeat center center").css("background-size", "cover"); regionData.find(page_content).html(default_content); @@ -140,7 +140,7 @@ foreach ($nav_posts as $p){ image_container.css("display", "none"); } - regionData.find(page_content).html(site_array[id]['content'] + "..."); + regionData.find(page_content).html(site_array[id]['excerpt'] + "..."); regionData.find(more_link).attr("href", site_array[id]['url']); }, function () { @@ -149,14 +149,12 @@ foreach ($nav_posts as $p){ $(region).on("click", function (){ window.location.href = site_array[id]['url']; - console.log("test"); }); $(".map-text").on("click", function(){ id = $(this).attr("data-id"); window.location.href = site_array[id]['url']; }); - }); \ No newline at end of file