connecting enews form to news sign up footer icon, testing depth for dropdown menu...
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 27 Jun 2016 19:49:49 +0000 (15:49 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 27 Jun 2016 19:49:49 +0000 (15:49 -0400)
footer.php
js/app.js
js/custom/pageSetup.js
lib/menu-walker.php

index 1d46943..71fb142 100644 (file)
@@ -18,7 +18,7 @@
                                     </ul>
                                 </div>
                                 <div id="sign-up" class="small-10 small-centered medium-uncentered medium-6 large-3 columns small-text-center large-text-left">
-                                    <a href="<?php echo get_permalink(142); ?>"><img src="<?php bloginfo('template_url'); ?>/assets/signup.png"></a>
+                                    <a href="<?php echo get_permalink(464); ?>"><img src="<?php bloginfo('template_url'); ?>/assets/signup.png"></a>
                                 </div>
                             </div>
                         </footer>
index 0950d46..396cf9f 100644 (file)
--- 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');
index 0ea9ded..470eb3d 100644 (file)
@@ -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');
index fcdf09f..9e7ff8e 100644 (file)
@@ -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 .= "<style>#menu-item-".$object->ID." > .dropdown:before { background-image: url('".$thumbnail[0]."');</style>";
         }