testing javascript on dev53 with a console log
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 22 Mar 2017 16:16:34 +0000 (12:16 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 22 Mar 2017 16:16:34 +0000 (12:16 -0400)
js/app.js
js/custom/pageSetup.js
lib/menu-walker.php

index 8e3b05d..8a441dc 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -45,7 +45,7 @@ $(document).ready(function () {
     var oc_menu             = page.find( $('.left-off-canvas-list') ).children('ul');
     var oc_menu_items       = oc_menu.children('li');
     var schedules, tickets;
-    
+    console.log("test");
     oc_menu_items.each(function(index, value) {
         var title = $(this).children('a').text(); 
         if( title === 'Buy Tickets' || title === 'Schedules'){
@@ -86,6 +86,4 @@ $(document).ready(function () {
     });
     schedules_widget.fadeIn(300);
     ticket_form.fadeIn(300);
-    
-    
 });
index 33ebe48..85664f5 100644 (file)
@@ -34,7 +34,7 @@ $(document).ready(function () {
     var oc_menu             = page.find( $('.left-off-canvas-list') ).children('ul');
     var oc_menu_items       = oc_menu.children('li');
     var schedules, tickets;
-    
+    console.log("test");
     oc_menu_items.each(function(index, value) {
         var title = $(this).children('a').text(); 
         if( title === 'Buy Tickets' || title === 'Schedules'){
@@ -75,6 +75,4 @@ $(document).ready(function () {
     });
     schedules_widget.fadeIn(300);
     ticket_form.fadeIn(300);
-    
-    
 });
index 56fd350..266a2bd 100644 (file)
@@ -27,8 +27,11 @@ class Glm_Theme_Top_Bar_Walker extends Walker_Nav_Menu {
 
         // Insert style to display page's thumbnail $depth == 0 && has_post_thumbnail((int)$object->object_id
         $item_style = '';
-    
-//        echo "<pre>", print_r($object), "</pre>";
+//        echo '<pre>', print_r($object), '</pre>';
+//        if($object->ID == 330 && $object->has_children == 1){
+//            $item_html .= "<ul class='sub-menu dropdown medium-block-grid-9'><li>test</li></ul>";
+//        }
+//////        echo "<pre>", print_r($object), "</pre>";
         if ( $depth !== 0 && has_post_thumbnail( (int)$object->object_id ) ) {
           
              $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( (int)$object->object_id ), 'large' );