} 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>';
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;
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;
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,'');
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;
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;
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,'');