From 48f2eaa2e2c622d8d5dfbcee6108c6563ac5bf84 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 27 Jun 2016 15:49:49 -0400 Subject: [PATCH] connecting enews form to news sign up footer icon, testing depth for dropdown menu images --- footer.php | 2 +- js/app.js | 1 + js/custom/pageSetup.js | 1 + lib/menu-walker.php | 4 ++-- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/footer.php b/footer.php index 1d46943..71fb142 100644 --- a/footer.php +++ b/footer.php @@ -18,7 +18,7 @@
- +
diff --git a/js/app.js b/js/app.js index 0950d46..396cf9f 100644 --- a/js/app.js +++ b/js/app.js @@ -84,6 +84,7 @@ $(document).ready(function () { $("#carousel_ul").css("left", "-210px"); } + // changing the img tag for category view from a source to having a background to make the sizes uniform $(".attachment-shop_catalog").each( function () { var img_src = $(this).attr("src"); $(this).css("height", 175).css("width", 'auto'); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 0ea9ded..470eb3d 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -75,6 +75,7 @@ $(document).ready(function () { $("#carousel_ul").css("left", "-210px"); } + // changing the img tag for category view from a source to having a background to make the sizes uniform $(".attachment-shop_catalog").each( function () { var img_src = $(this).attr("src"); $(this).css("height", 175).css("width", 'auto'); diff --git a/lib/menu-walker.php b/lib/menu-walker.php index fcdf09f..9e7ff8e 100644 --- a/lib/menu-walker.php +++ b/lib/menu-walker.php @@ -20,9 +20,9 @@ class Glm_Theme_Top_Bar_Walker extends Walker_Nav_Menu { $item_html = ''; parent::start_el( $item_html, $object, $depth, $args ); - // Insert style to display page's thumbnail + // Insert style to display page's thumbnail $depth == 0 && $item_style = ''; - if ($depth == 0 && has_post_thumbnail((int)$object->object_id)) { + if ( has_post_thumbnail((int)$object->object_id)) { $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id((int)$object->object_id), 'large'); $item_style .= ""; } -- 2.17.1