From: Anthony Talarico Date: Wed, 22 Mar 2017 16:16:34 +0000 (-0400) Subject: testing javascript on dev53 with a console log X-Git-Tag: v1.0.0^2~88 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=20f4112b94ffa0544451ad868b3fdcb675fc66ac;p=WP-Themes%2Fmackinawferry.git testing javascript on dev53 with a console log --- diff --git a/js/app.js b/js/app.js index 8e3b05d..8a441dc 100644 --- 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); - - }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 33ebe48..85664f5 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -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); - - }); diff --git a/lib/menu-walker.php b/lib/menu-walker.php index 56fd350..266a2bd 100644 --- a/lib/menu-walker.php +++ b/lib/menu-walker.php @@ -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 "
", print_r($object), "
"; +// echo '
', print_r($object), '
'; +// if($object->ID == 330 && $object->has_children == 1){ +// $item_html .= ""; +// } +////// echo "
", print_r($object), "
"; 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' );