From: Anthony Talarico Date: Fri, 24 Mar 2017 16:34:56 +0000 (-0400) Subject: adding default featured image that is being used by the about page for pages that... X-Git-Tag: v1.0.0^2~38 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=5928e061a43eff366d38c5c88ef16093e3ce43bf;p=WP-Themes%2Fmackinawferry.git adding default featured image that is being used by the about page for pages that don't have featured images and aren't in the topbar hierarchy --- diff --git a/assets/Ticket-Featured.png b/assets/Ticket-Featured.png new file mode 100644 index 0000000..6fecfa4 Binary files /dev/null and b/assets/Ticket-Featured.png differ diff --git a/functions.php b/functions.php index 1658e5e..39583c9 100644 --- a/functions.php +++ b/functions.php @@ -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 ''; diff --git a/js/app.js b/js/app.js index 04f7eb1..d9dc022 100644 --- 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,''); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index cb47e6c..bd3f261 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -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,'');