adding default featured image that is being used by the about page for pages that...
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 24 Mar 2017 16:34:56 +0000 (12:34 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 24 Mar 2017 16:34:56 +0000 (12:34 -0400)
featured images and aren't in the topbar hierarchy

assets/Ticket-Featured.png [new file with mode: 0644]
functions.php
js/app.js
js/custom/pageSetup.js

diff --git a/assets/Ticket-Featured.png b/assets/Ticket-Featured.png
new file mode 100644 (file)
index 0000000..6fecfa4
Binary files /dev/null and b/assets/Ticket-Featured.png differ
index 1658e5e..39583c9 100644 (file)
@@ -114,7 +114,7 @@ function glm_get_header() {
     } else if ( !is_post_type('page') ){        
         echo ' class="no-featured"';
     } else {
-        echo ' style="background-image: url('.get_template_directory_uri().'/assets/interior-pg-header-image.jpg);padding:0;padding-bottom:16%;background-position:center bottom;background-size:cover;background-repeat:no-repeat;max-height: 250px; "';
+        echo ' style="background-image: url('.get_template_directory_uri().'/assets/Ticket-Featured.png);padding:0;padding-bottom:16%;background-position:center bottom;background-size:cover;background-repeat:no-repeat;max-height: 250px; "';
     }
     echo '>';
     echo '</div>';
index 04f7eb1..d9dc022 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -76,6 +76,7 @@ $(document).ready(function () {
     var total = 0,adult_total = 0,kid_total = 0,kid_5_total = 0,bikes_total = 0, nights_total = 0, valet_total = 0, guides_total = 0;
     var oc_total = 0,oc_adult_total = 0,oc_kid_total = 0,oc_kid_5_total = 0,oc_bikes_total = 0, oc_nights_total = 0, oc_valet_total = 0, oc_guides_total = 0;
     
+    // DROPDOWN TICKETS CALC /////////////////////////////////
     adults.on('change', function(){
         adult_total = 0;
         adult_total = parseInt($(this).val()) * 24;
@@ -116,7 +117,7 @@ $(document).ready(function () {
         ticket_total.text("$" + total);
     });
     
-    // OC TICKETS CALC EVENTS
+    // OC TICKETS CALC EVENTS ////////////////////////////////
     oc_adults.on('change', function(){
         oc_adult_total = 0;
         oc_adult_total = parseInt($(this).val()) * 24;
@@ -152,12 +153,11 @@ $(document).ready(function () {
         oc_nights_total = parseInt($(this).val());
     });
     oc_submit_form.find('select').on("change", function(){
-        console.log("test");
         oc_total = oc_adult_total + oc_kid_5_total + oc_kid_total + oc_bikes_total + oc_guides_total + (oc_valet_total * oc_nights_total);
         oc_ticket_total.text("$" + oc_total);
     });
     
-    // end ticket form calculations and validation
+    // end ticket form calculations and validation ///////////
  
     address_1.on("click", function(){
         var address = $(this).children('.address_1_street').text().replace(/ /g,'') + $(this).children(".address_1_region").text().replace(/ /g,'');
index cb47e6c..bd3f261 100644 (file)
@@ -65,6 +65,7 @@ $(document).ready(function () {
     var total = 0,adult_total = 0,kid_total = 0,kid_5_total = 0,bikes_total = 0, nights_total = 0, valet_total = 0, guides_total = 0;
     var oc_total = 0,oc_adult_total = 0,oc_kid_total = 0,oc_kid_5_total = 0,oc_bikes_total = 0, oc_nights_total = 0, oc_valet_total = 0, oc_guides_total = 0;
     
+    // DROPDOWN TICKETS CALC /////////////////////////////////
     adults.on('change', function(){
         adult_total = 0;
         adult_total = parseInt($(this).val()) * 24;
@@ -105,7 +106,7 @@ $(document).ready(function () {
         ticket_total.text("$" + total);
     });
     
-    // OC TICKETS CALC EVENTS
+    // OC TICKETS CALC EVENTS ////////////////////////////////
     oc_adults.on('change', function(){
         oc_adult_total = 0;
         oc_adult_total = parseInt($(this).val()) * 24;
@@ -141,12 +142,11 @@ $(document).ready(function () {
         oc_nights_total = parseInt($(this).val());
     });
     oc_submit_form.find('select').on("change", function(){
-        console.log("test");
         oc_total = oc_adult_total + oc_kid_5_total + oc_kid_total + oc_bikes_total + oc_guides_total + (oc_valet_total * oc_nights_total);
         oc_ticket_total.text("$" + oc_total);
     });
     
-    // end ticket form calculations and validation
+    // end ticket form calculations and validation ///////////
  
     address_1.on("click", function(){
         var address = $(this).children('.address_1_street').text().replace(/ /g,'') + $(this).children(".address_1_region").text().replace(/ /g,'');