Update for count of trip planner items
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 11 Dec 2018 18:39:01 +0000 (13:39 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 11 Dec 2018 18:39:01 +0000 (13:39 -0500)
Get count for the trip planner items.

sidebar.php

index e41f362..f30d678 100644 (file)
@@ -41,7 +41,7 @@ switch($template){
                         </li>
                         <li id="trip_wrapper">
                             <a id="trip_link_text" href="<?php echo get_permalink( 236 ); ?>/">Plan Your Trip</a>
-                            <span class="trip-list-count">0 item(s) in your trip planner</span>
+                            <span class="trip-list-count"><?php echo isset( $_SESSION['travel-list'] ) ? count( $_SESSION['travel-list'] ) : 0;?> item(s) in your trip planner</span>
                             <a id="trip_link_text2" href="<?php echo get_permalink( 236 ); ?>">How does the planner work?</a>
                         </li>
                         <li id="deals_wrapper">