Preview: footer.php
Size: 40.42 KB
/home/nshryvcy/blissfulnepal.com/wp-content/themes/traveltour/footer.php
<div class="footer-top">
<!-- <a href="<?php //echo home_url('/');?>">
<span><i class="fa-solid fa-housed"></i></span>
</a> -->
</div>
<?php
if ( get_post_type( get_the_ID() ) == 'tour' ) {?>
<div class="lightbox traveltour-body">
<div class="popup-container">
<div class="close-btn"><i class="fa fa-times" aria-hidden="true"></i></div>
<form id="send_inquiry_fom" method="POST">
<input type="hidden" name="action" value="inquiry_form">
<input type="hidden" name="trip_name" value="<?php the_title();?>">
<?php
$duration=get_post_meta(get_the_ID(), 'tourmaster-tour-duration', true);
if($duration){
$trip_duration=get_post_meta(get_the_ID(), 'tourmaster-tour-duration', true);
} else {
$days=get_post_meta(get_the_ID(), 'tourmaster-tour-option', true);
$trip_duration=$days['multiple-duration'];
}?>
<input type="hidden" name="duration" value="<?php echo $trip_duration;?>">
<h2 style="text-align: center; font-size:25px;margin-bottom: -2px;">Tell us about your adventure </h2>
<h3 style="text-align: center; font-size:15px; font-weight: 400; margin-bottom: 1px;"> You are interested in </h3>
<h2 style="color: #1c965e;font-size:17px; margin-bottom: 4px; text-align: center;"><?php the_title();?></h2>
<div class="form-group">
<label for="message">Customization Request: </label>
<textarea id="message" name="message" placeholder="Looking to Customize? Tell us your requirements." rows="4" required></textarea>
</div>
<div class="form-group">
<label for="full-name">Full Name*:</label>
<input type="text" id="full-name" name="full_name" required>
</div>
<div class="form-group">
<label for="email">Email Address*:</label>
<input type="email" id="email" name="email_id" required>
</div>
<div class="form-group">
<label for="number">Contact Number:</label>
<input type="tel" id="number" name="contact_no">
</div>
<div class="contact-checkbox">
<label for="toc" class="checkbox-custom checkbox-custom-alt checkbox-custom-square-alt">
<input type="checkbox" required="">
<span class="checkbox-custom_">
I authorize blissfulnepal.com to contact me.
</span>
</label>
</div>
<button type="submit" class="gdlr-core-button gdlr-core-button-no-border w-100" style="margin-top: 5px;"id="load">
Submit
</button>
</form>
<div id="result"></div>
</div>
</div>
<?php }?>
<?php
/**
* The template for displaying the footer
*/
$post_option = traveltour_get_post_option(get_the_ID());
if( empty($post_option['enable-footer']) || $post_option['enable-footer'] == 'default' ){
$enable_footer = traveltour_get_option('general', 'enable-footer', 'enable');
}else{
$enable_footer = $post_option['enable-footer'];
}
if( empty($post_option['enable-copyright']) || $post_option['enable-copyright'] == 'default' ){
$enable_copyright = traveltour_get_option('general', 'enable-copyright', 'enable');
}else{
$enable_copyright = $post_option['enable-footer'];
}
$copyright_style = traveltour_get_option('general', 'copyright-style', 'center');
if( in_array($copyright_style, array('center-tb', 'left-right-tb')) ){
$copyright_bg = false;
$copyright_style = str_replace('-tb', '', $copyright_style);
}else{
$copyright_bg = true;
}
$fixed_footer = traveltour_get_option('general', 'fixed-footer', 'disable');
echo '</div>'; // traveltour-page-wrapper
if( $enable_footer == 'enable' || $enable_copyright == 'enable' ){
if( $fixed_footer == 'enable' ){
echo '</div>'; // traveltour-body-wrapper
echo '<footer class="traveltour-fixed-footer" id="traveltour-fixed-footer" >';
}else{
echo '<footer>';
}
if( $enable_footer == 'enable' ){
$footer_column_divider = traveltour_get_option('general', 'enable-footer-column-divider', 'enable');
$extra_class = ($footer_column_divider == 'enable')? ' traveltour-with-column-divider': '';
echo '<div class="traveltour-footer-wrapper ' . esc_attr($extra_class) . '" >';
echo '<div class="traveltour-footer-container traveltour-container clearfix" >';
$traveltour_footer_layout = array(
'footer-1'=>array('traveltour-column-60'),
'footer-2'=>array('traveltour-column-15', 'traveltour-column-15', 'traveltour-column-15', 'traveltour-column-15'),
'footer-3'=>array('traveltour-column-15', 'traveltour-column-15', 'traveltour-column-30',),
'footer-4'=>array('traveltour-column-20', 'traveltour-column-20', 'traveltour-column-20'),
'footer-5'=>array('traveltour-column-20', 'traveltour-column-40'),
'footer-6'=>array('traveltour-column-40', 'traveltour-column-20'),
);
$count = 0;
$footer_style = traveltour_get_option('general', 'footer-style');
$footer_style = empty($footer_style)? 'footer-2': $footer_style;
foreach( $traveltour_footer_layout[$footer_style] as $layout ){ $count++;
echo '<div class="traveltour-footer-column traveltour-item-pdlr ' . esc_attr($layout) . '" >';
if( is_active_sidebar('footer-' . $count) ){
dynamic_sidebar('footer-' . $count);
}
echo '</div>';
}
echo '</div>'; // traveltour-footer-container
if( $copyright_bg ){
echo '</div>'; // traveltour-footer-wrapper
}
} // enable footer
if( $enable_copyright == 'enable' ){
if( !$copyright_bg ){
echo '<div class="traveltour-copyright-divider-container traveltour-container">';
echo '<div class="traveltour-copyright-divider traveltour-item-mglr" ></div>';
echo '</div>';
}
if( $copyright_style == 'center' ){
$copyright_text = traveltour_get_option('general', 'copyright-text');
if( !empty($copyright_text) ){
echo '<div class="traveltour-copyright-wrapper" >';
echo '<div class="traveltour-copyright-container traveltour-container">';
echo '<div class="traveltour-copyright-text traveltour-item-pdlr">';
echo gdlr_core_text_filter($copyright_text);
echo '</div>';
echo '</div>';
echo '</div>'; // traveltour-copyright-wrapper
}
}else{
$copyright_left = traveltour_get_option('general', 'copyright-left');
$copyright_right = traveltour_get_option('general', 'copyright-right');
if( !empty($copyright_left) || !empty($copyright_right) ){
echo '<div class="traveltour-copyright-wrapper ' . ($copyright_bg? '': 'traveltour-transparent') . '" >';
echo '<div class="traveltour-copyright-container traveltour-container clearfix">';
if( !empty($copyright_left) ){
echo '<div class="traveltour-copyright-left traveltour-item-pdlr">';
echo gdlr_core_escape_content(gdlr_core_text_filter($copyright_left));
echo '</div>';
}
if( !empty($copyright_right) ){
echo '<div class="traveltour-copyright-right traveltour-item-pdlr">';
echo gdlr_core_escape_content(gdlr_core_text_filter($copyright_right));
echo '</div>';
}
echo '</div>';
echo '</div>'; // traveltour-copyright-wrapper
}
}
}
if( !$copyright_bg ){
echo '</div>'; // traveltour-footer-wrapper
}
echo '</footer>';
if( $fixed_footer == 'disable' ){
echo '</div>'; // traveltour-body-wrapper
}
echo '</div>'; // traveltour-body-outer-wrapper
// disable footer
}else{
echo '</div>'; // traveltour-body-wrapper
echo '</div>'; // traveltour-body-outer-wrapper
}
$header_style = traveltour_get_option('general', 'header-style', 'plain');
if( $header_style == 'side' || $header_style == 'side-toggle' ){
echo '</div>'; // traveltour-header-side-nav-content
}
$back_to_top = traveltour_get_option('general', 'enable-back-to-top', 'disable');
if( $back_to_top == 'enable' ){
echo '<a href="#traveltour-top-anchor" class="traveltour-footer-back-to-top-button" id="traveltour-footer-back-to-top-button"><i class="fa fa-angle-up" ></i></a>';
}
?>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
<link rel="stylesheet" type="text/css"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.0.0/css/font-awesome.css">
<script type="text/javascript">
jQuery(document).ready(function($) {
//$('.sidebar-block__card--pattern').addClass('sidebar-top');
if (window.matchMedia("(max-width: 767px)").matches) {
//
} else {
var lastScrollTop = 0;
jQuery(window).scroll(function(event) {
var st = $(this).scrollTop();
if (st > lastScrollTop) {
if (st >= 2400) {
$(".pax-section").fadeOut("slow");
$(".booktrip-btn a").addClass("btn-top-mg");
}
if (st >= 700) {
$("#sidebar").removeClass("booktrip-btn-1");
$("#sidebar").addClass("sidebar-sticky");
$(".booktrip-btn").show();
}
//
if (st >= 600) {
$(".your-booking").addClass("ttt");
}
} else {
if (st < 2400) {
$(".pax-section").fadeIn("slow");
//$(".booktrip-btn a").addClass("btn-top-mg");
}
if (st < 600) {
$(".your-booking").removeClass("ttt");
}
//
//$("#sidebar").removeClass("booktrip-btn-1");
if (st < 1000) {
$("#sidebar").addClass("booktrip-btn-1");
$("#sidebar").removeClass("sidebar-sticky");
//$(".booktrip-btn").hide();
}
}
lastScrollTop = st;
});
}
});
</script>
<?php
$altitude_chart=get_field('altitude_chart');
if($altitude_chart){?>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script>
jQuery(document).ready(function($) {
$("<div class='gdlr-core-pbf-wrapper map' id='chat'><div class='gdlr-core-pbf-background-wrap'></div><div class='gdlr-core-pbf-wrapper-content gdlr-core-js '><div class='gdlr-core-pbf-wrapper-container clearfix gdlr-core-container'><div class='gdlr-core-pbf-element'><div class='gdlr-core-title-item gdlr-core-item-pdb clearfix gdlr-core-left-align gdlr-core-title-item-caption-bottom gdlr-core-item-pdlr' style='padding-bottom: 35px ;'><div class='gdlr-core-title-item-title-wrap'><h6 class='gdlr-core-title-item-title gdlr-core-skin-title' style='font-size: 24px ;font-weight: 600 ;letter-spacing: 0px ;text-transform: none ;'><span class='gdlr-core-title-item-left-icon' style='font-size: 18px ;'><i class='fa fa-map-o'></i></span>Altitude Chart<span class='gdlr-core-title-item-title-divider gdlr-core-skin-divider'></span></h6></div></div></div><div class='gdlr-core-pbf-element'><div class='gdlr-core-image-item gdlr-core-item-pdb gdlr-core-center-align gdlr-core-item-pdlr'><div class='gdlr-core-image-item-wrap gdlr-core-media-image gdlr-core-image-item-style-rectangle' style='border-width: 0px;'> <figure class='highcharts-figure'> <div id='container'></div></figure></div></div></div></div></div></div>")
.insertAfter("#map");
//
$('<h6 class="gdlr-core-title-item-title gdlr-core-skin-title" style="font-size: 24px ;font-weight: 600 ;letter-spacing: 0px ;text-transform: none ;float:right;"><span class="expand-btn">Expand all <span><label class="switch"><input type="checkbox" class="iti-switch-check"><span class="slider round"></span></label></h6>')
.insertAfter($("#itinerary").find(".gdlr-core-title-item-title.gdlr-core-skin-title"));
//
jQuery(".gdlr-core-toggle-box-item-tab").removeClass("gdlr-core-active");
$('.iti-switch-check').click(function($) {
if (jQuery(this).is(':checked')) {
jQuery(".gdlr-core-toggle-box-item-tab").addClass("gdlr-core-active");
} else {
jQuery(".gdlr-core-toggle-box-item-tab").removeClass("gdlr-core-active");
}
});
//
$('<h6 class="gdlr-core-title-item-title gdlr-core-skin-title" style="font-size: 24px ;font-weight: 600 ;letter-spacing: 0px ;text-transform: none ;float:right;"><span class="expand-btn">Expand all <span><label class="switch"><input type="checkbox" class="faqs-switch-check"><span class="slider round"></span></label></h6>')
.insertAfter($("#faqs").find(".gdlr-core-title-item-title.gdlr-core-skin-title"));
//
jQuery(".gdlr-core-accordion-item-tab").removeClass("gdlr-core-active");
$('.faqs-switch-check').click(function($) {
if (jQuery(this).is(':checked')) {
jQuery(".gdlr-core-accordion-item-tab").addClass("gdlr-core-active");
} else {
jQuery(".gdlr-core-accordion-item-tab").removeClass("gdlr-core-active");
}
});
//
Highcharts.chart('container', {
chart: {
type: 'spline'
},
title: {
text: '<?php the_title();?> Altitude Chart'
},
subtitle: {
text: 'Enjoy Trekking'
},
xAxis: {
categories: [<?php
foreach($altitude_chart as $c){?> '<?php echo $c['day_by_day_destinations'];?>',
<?php } ?>
]
},
yAxis: {
title: {
text: 'Height'
},
labels: {
formatter: function() {
return this.value + 'meter';
// return this.value / 1000 + 'k';
}
}
},
tooltip: {
pointFormat: 'Approx Altitude: <b>{point.y} meters</b>'
},
plotOptions: {
area: {
marker: {
enabled: false,
symbol: 'circle',
radius: 1,
states: {
hover: {
enabled: true
}
}
}
}
},
series: [{
name: 'Detail about <?php the_title();?>',
data: [
<?php
foreach($altitude_chart as $c){?>
<?php echo $c['height_in_meters'];?>,
<?php } ?>
]
}]
});
});
jQuery(document).ready(function($) {
$('#access-ask-qestion').on('click', function() {
$('.lightbox').fadeIn(200);
});
$('.lightbox').on('click', function(event) {
if ("lightbox" == event.target.className) {
$('.lightbox').fadeOut(200);
}
});
$('.close-btn').on('click', function() {
$('.lightbox').fadeOut(200);
});
})(jQuery);
</script>
<?php }?>
<script async src="https://www.google.com/recaptcha/api.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('#send_inquiry_fom').submit(function(event) {
var formData = new FormData(this);
var btn = $("#load").html();
$.ajax({
url: '<?php echo admin_url( 'admin-ajax.php' );?>',
type: 'post',
data: formData,
contentType: false,
cache: false,
processData: false,
beforeSend: function() {
$("#load").html("loading...");
$("#load").attr("disabled", true);
},
complete: function() {
$("#load").html(btn);
$("#load").attr("disabled", false);
},
success: function(response) {
$('#send_inquiry_fom')[0].reset();
$('#result').append(
'<div class="alert"><strong>Thanks for your message.We will contact you soon as possible!!</strong> </div>'
);
}
});
event.preventDefault();
});
//
});
</script>
<style type="text/css">
.lightbox .close-btn {
background: #000;
color: #fff;
position: absolute;
right: -20px;
font-size: 18px;
top: -20px;
cursor: pointer;
border-radius: 100%;
border: 2px solid #fff;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 8px 0 rgb(0 0 0 / 35%);
}
.lightbox .form-group {
display: flex;
gap: 10px;
}
.lightbox .form-group>label {
max-width: 30%;
flex: 0 0 30%;
color: #000;
font-weight: 500;
font-size: 17px;
}
.lightbox .form-group-checkbox {
display: flex;
align-items: center;
gap: 10px;
}
.lightbox .form-group-footer {
display: flex;
justify-content: space-between;
}
.lightbox .form-group-footer button {
font-size: 15px;
font-style: normal;
font-weight: 700;
background: #ef5b72;
}
.lightbox .form-group-footer button>i {
color: #fff;
}
.lightbox .form-group-footer label {
margin-bottom: 0;
font-size: 16px;
}
.lightbox {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1050;
background-color: rgba(0, 0, 0, 0.5);
display: none;
}
.lightbox .contact-title {
margin-bottom: 15px;
}
.lightbox h2 {
text-align: center;
font-size: 35px;
margin: 0;
}
.lightbox h3 {
text-align: center;
font-size: 20px;
font-weight: 400;
margin: 0;
}
.popup-container {
width: 100%;
padding: 40px;
border: 1px solid black;
background-color: white;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 2;
border-radius: 5px;
max-width: 700px;
margin-top:17px;
}
@media (max-width: 768px) {
.popup-container {
max-width: 350px;
padding: 20px;
}
.lightbox .form-group-footer {
display: block;
}
}
@media (max-width: 391px) {
.popup-container {
max-width: 300px;
padding: 10px;
}
.lightbox h2 {
font-size: 24px;
}
.lightbox h3 {
font-size: 16px;
}
}
.form-group {
margin-bottom: 20px;
}
.lightbox .lightbox-flex .form-group {
width: 50%;
}
label {
display: block;
margin-bottom: 5px;
color: #666;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
textarea {
resize: none;
}
/* mycss close */
#tourmaster-tour-booking-bar-wrap .tourmaster-tour-booking-bar-outer,
.traveltour-sidebar-area .traveltour-widget {
display: none;
}
.departure-table tr th {
background-color: #425a96;
padding: 25px;
}
.departure-table tr {
line-height: 15px;
}
.t-pp p {
line-height: 0.7;
}
#departuredate {
padding-bottom: 5px !important;
}
#month,
#year {
height: 30px;
}
.day {
color: #425a96;
}
.filter-sec {
float: right;
margin-right: 32px;
}
/*ul.fix-departure-table li{
display: inline-block;
}*/
.fix-25 {
width: 25%;
}
.bg {
background-color: #425a96;
color: #fff;
padding: 10px 10px 10px 18px;
}
.border-hr-line {
border: 1px solid #e1e1e1;
}
.border-box {
margin: 7px;
border: 1px solid #000;
width: 100%;
}
.seat-box {
height: calc(1.5em + 0.75rem + 2px);
padding: 0.375rem 0.75rem;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #495057;
background-color: #fff;
background-clip: padding-box;
border: 1px solid #ced4da;
border-radius: 0.25rem;
transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.btn-book {
text-align: center;
}
.mob-departures li {
list-style: none;
padding: 1px;
}
ul.mob-departures {
margin-left: 16px;
margin-top: 8px;
}
.single-tour .tourmaster-with-sidebar .tourmaster-tour-info-outer .tourmaster-tour-info-wrap,
.single-tour .tourmaster-with-sidebar .tourmaster-single-main-content,
.single-tour .tourmaster-with-sidebar .tourmaster-single-review {
padding-right: 332px;
}
.tourmaster-content-navigation-item-outer .tourmaster-content-navigation-tab {
padding: 20px 17px 25px !important;
}
/*#additionalinfo .gdlr-core-pbf-wrapper-content {
padding-right: 186px!important;
}*/
.tourmaster-tour-booking-bar-wrap .tourmaster-enquiry-field {
margin-bottom: 6px;
}
.mob-section {
display: none;
}
.mob-sectiond {
/*margin-bottom: 150px;*/
}
.left-section {
width: 50%;
margin-top: 10px;
/*float: left;*/
display: inline-block;
}
.left-section p,
.right-section p {
margin-bottom: 30px;
font-size: 17px;
}
.right-section {
/*width: 50%;*/
float: right;
margin-top: 10px;
}
.right-section {
margin-bottom: 2px;
}
.mob-section {
background: #f5f5f5;
/*background: #f5f5f5;*/
}
.date-year {
/*margin-left: 25%;*/
font-size: 21px;
color: #133a67;
font-weight: bold;
padding: 20px;
}
.dep-section {
padding: 10px 5px 5px 5px;
background: #f9f9f9;
}
.m-day {
color: #559ef8;
}
.gap {
background: #fff;
height: 18px;
}
.tourmaster-single-header {
height: 100%;
}
.departureitem form {
display: contents;
}
table.fix-departure td span,
table.fix-departure td a {
float: left;
}
.mob-device {
display: none;
}
.footer-top {
display: none;
}
.traveltour-content-area {
padding-top: 142px;
padding-bottom: 40px;
}
.switch {
position: relative;
display: inline-block;
width: 53px;
height: 27px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 23px;
width: 22px;
left: 4px;
bottom: 2px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked+.slider {
background-color: #2196F3;
}
input:focus+.slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked+.slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}
.expand-btn {
font-size: 21px;
}
.tripdays {
color: #ffffff;
background-color: #467be7;
float: right;
margin-top: -49px;
padding: 6px 17px;
font-weight: bold;
}
#blogrightbar h3.gdlr-core-blog-title.gdlr-core-skin-title {
font-size: 14px !important;
}
.tourmaster-page-content {
padding-top: 155px;
padding-bottom: 30px;
}
.box-form {
height: 47px;
background:#fff;
color: #000;
}
.traveltour-page-title-wrap.traveltour-style-custom .traveltour-page-title-content {
padding-bottom: 50px;
}
.creditcard {
display: none;
}
.extra-bk-info {
margin-top: 20px;
text-align: center;
font-weight: bold;
}
.save {
background: #ef5b72;
padding: 3px 5px 3px 5px;
color: #fff;
}
ul.pax_price {
margin-left: 0px;
}
.pax_price li {
list-style: none;
font-size: 19px;
}
.pax_price li i {
margin-right: 12px;
}
/*incrment adn decrement btn*/
.quantity {
display: flex;
align-items: center;
padding: 0;
}
.quantity_minus,
.quantity_plus {
display: block;
width: 37px;
height: 38px;
margin: 0;
background: #dee0ee;
text-decoration: none;
text-align: center;
line-height: 23px;
padding-top: 9px;
color: #000;
font-size: 18px;
}
.quantity_minus {
border-radius: 3px 0 0 3px;
}
.quantity_plus {
border-radius: 0 3px 3px 0;
}
.quantity_input {
width: 39px;
height: 37px;
margin: 0;
padding: 0;
text-align: center;
border-top: 2px solid #dee0ee;
border-bottom: 2px solid #dee0ee;
border-left: 1px solid #dee0ee;
border-right: 2px solid #dee0ee;
background: #fff;
color: #8184a1;
}
.form-group-package-price {
margin-bottom: 25px;
}
.form-group-package-price>span {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
font-size: 1.25rem;
border-bottom: 1px solid rgba(27, 41, 58, .4);
padding-bottom: 8px;
}
.form-group-package-price>span span {
display: inline-block;
vertical-align: top;
margin-left: auto;
font-size: 1.25rem;
}
.form-group_grid-two {
font-size: 20px;
}
.form-group-alt span {
font-size: 1.5rem;
}
.checkbox-custom-alt .checkbox-custom_holder {
padding-left: 28px;
margin-right: 25px;
}
.checkbox-custom_holder {
font-size: 1rem;
text-transform: capitalize;
position: relative;
display: inline-block;
vertical-align: top;
color: #1b2930;
}
.btn-top-mg {
margin: -16px 0px 10px !important;
}
.booktrip-btn-1 {
margin-top: 41px;
}
.sidebar-sticky {
position: fixed;
top: 0;
margin-top: 0px;
width: 360px;
/*right: 0;*/
}
.tourmaster-content-navigation-item-outer .tourmaster-content-navigation-tab {
padding: 11px 17px 13px !important;
}
.whatsapp {
height: 47px;
}
.ctc-analytics {
display: none;
}
.dep-table tr th {
padding: 20px 0;
font-size: 16px;
font-weight: 400;
}
.dep-filter {
width: 20%;
float: right;
}
.pax-section table {
width: 100%;
}
.book-trip-btn {
font-size: 15px;
font-style: normal;
font-weight: 700;
background: #ef5b72;
padding: 7px 11px 9px 12px;
}
.traveltour-page-title-wrap.traveltour-style-custom .traveltour-page-title-content {
padding-top: 50px;
}
#select_year,
#select_month {
float: right;
width: 13%;
}
.tourmaster-thumbnail-ribbon {
line-height: 1;
z-index: 2;
position: absolute;
top: 0;
font-size: 14px;
font-weight: 600;
padding: 14px 20px 14px 30px;
left: -10px;
}
.dep-form-submit-sm {
text-align: center;
margin-top: 5px;
}
.cat-image img {
width: 100%;
}
.traveltour-footer-back-to-top-button {
position: fixed;
z-index: 9;
right: 0;
left: 0;
bottom: 0px;
font-size: 18px;
line-height: 20px;
width: 30px;
height: 30px;
text-align: center;
padding: 6px;
cursor: pointer;
}
@media (max-width: 576px) {
.sidebar-sticky {
display: none;
}
.fix-menu {
position: fixed;
left: 0;
right: 0;
top: 0;
}
.lg-screen {
display: none;
}
}
/*.sidebar-sticky{
display: none;
}*/
/*.single-tour .tourmaster-with-sidebar .gdlr-core-container {
padding-right: 0px!important;
}*/
@media (max-width: 767px) {
.sidebar-sticky {
display: none;
}
.single-tour .tourmaster-with-sidebar .gdlr-core-container {
padding-right: 0px !important;
}
.tourmaster-content-navigation-item-outer .tourmaster-content-navigation-tab {
padding: 6px 6px 6px 7px !important;
}
.single-tour .tourmaster-with-sidebar .tourmaster-tour-info-outer .tourmaster-tour-info-wrap,
.single-tour .tourmaster-with-sidebar .tourmaster-single-main-content,
.single-tour .tourmaster-with-sidebar .tourmaster-single-review {
padding-right: 150px;
}
.single-tour .tourmaster-tour-info-outer {
margin-top: 53px;
}
.mob-section {
display: none;
}
.mob-device {
display: block;
}
.footer-top {
display: block;
}
.lg-screen {
display: none;
}
.single-tour .tourmaster-with-sidebar .tourmaster-single-related-tour-container {
padding-right: 0px !important;
}
}
@media only screen and (max-width: 900px) {
table {
width: 160%;
}
.lg-screen {
display: block;
}
.single-tour .tourmaster-with-sidebar .gdlr-core-container {
padding-right: 0px !important;
}
.sidebar-sticky {
display: none;
}
}
@media only screen and (max-width: 999px) {
.tourmaster-content-navigation-item-wrap {
display: inline-block !important;
}
.t-pp p {
line-height: 1.7;
text-align: left;
}
.lg-screen {
display: none;
}
}
</style>
<?php
$postid=get_the_ID();
$post_slug = $post->post_name;
$trip_duration = get_post_meta(get_the_ID(), 'tourmaster-duration', true);
$departure=get_field('select_fix_departure_months');
//$trip_duration=parseInt($tripduration)-parseInt(1);
$post_meta = tourmaster_get_post_meta(get_the_ID(), 'tourmaster-tour-option');
if( !empty($post_meta['tour-price-text'])){
$price=$post_meta['tour-price-text'];
$regular_price=$post_meta['tour-price-text'];
$selling_price=$post_meta['tour-price-discount-text'];
$discount_price=$regular_price-$selling_price;
}
$current_month=date('m');
if($departure){?>
<script>
jQuery(document).ready(function($) {
$("<div class='gdlr-core-pbf-element lg-screen'><div class='gdlr-core-image-item gdlr-core-item-pdb gdlr-core-center-align gdlr-core-item-pdlr'><div class='row departureitem lg-screen'><select name='monthrange' id='select_month' class='form-control box-form select_month_lg'><?php for ($x =1; $x <=12; $x++) { $n_month=date('m', mktime(0, 0, 0, $x, 1)); $F_month=date('F', mktime(0, 0, 0, $x, 1));$c_month=date('m');?><?php $departure=get_field('select_fix_departure_months'); foreach($departure as $key=>$d){
if($d==$x){?> <option value='<?php echo $n_month;?>' <?php if($n_month==$c_month){echo 'selected';}?>><?php echo $F_month;?></option> <?php }}}?> </select><select name='select_year' id='select_year' class='form-control box-form select_year_lg'> <?php $current_year=date('Y');$current_month=date('m'); $current_date=date('Y'); for ($x =0; $x <=1; $x+=1) { $year=$current_year+$x;?> <option value='<?php echo $year;?>' <?php if($current_date==$year){echo 'selected';}?>><?php echo $year;?></option><?php }?> </select><div class='table-append'> <table class='dep-table' style='width:100%'> <tr> <th>Trip Dates</th> <th>Price</th> <th>Space Left</th> <th>Action</th> </tr><?php $departure=get_field('select_fix_departure_months'); foreach($departure as $key=>$d){
if($d==$current_month){ $number_of_days = cal_days_in_month(CAL_GREGORIAN,$current_month, $current_year); for($x = 1; $x <= $number_of_days; $x++) { $day=date("l", strtotime($x . "-" . $current_month . "-" . $current_year)); if($day=='Sunday'){$start_date=date("F", strtotime($x . "-" . $current_month . "-" . $current_year)) . " " . $x . "," . $current_year; $start_month=date("m", strtotime($start_date)); $startdate1=date("d-m-Y", strtotime($start_date)); $start_year=date("m", strtotime($start_date)); $total_pax=15;global $wpdb; $table=$wpdb->prefix.'space_left'; $list=$wpdb->get_row("select * from $table where dep_date='$startdate1' AND post_id='$postid'"); $booked=$list->booked ? $list->booked : '0'; ?> <tr> <td style='text-align: center;'> <img src='https://www.himalayanwonders.com/assets/rblue/images/icons/trip-calendar.png' width='16' border='0' alt='calendar'> <?php echo $start_date.' - '.date('F d, Y', strtotime($start_date. ' + '.$trip_duration.''.'- 1 days'));?></td> <td><img src='https://www.himalayanwonders.com/assets/rblue/images/icons/tag.png' alt='tag'> <span class='reg_price'>$<?php echo $regular_price;?></span>$<?php echo $selling_price;?><span class='save'>Save $<?php echo $discount_price;?></span></td> <td><img src='https://www.himalayanwonders.com/assets/rblue/images/icons/member.png' alt='member'><?php echo $booked;?> Booked - <img src='https://www.himalayanwonders.com/assets/rblue/images/icons/member.png' alt='member'><?php echo $total_pax-$booked;?> Left</td> <td><form class='dep-form-submit-lg' action='<?php echo home_url('/fixed-departure-booking');?>' method='POST' ><input type='hidden' name='tour_id' value='<?php echo get_the_ID();?>'> <input type='hidden' name='start_date' class='tourmaster-datepicker-alt' value='<?php echo $start_date;?>'> <input type='hidden' name='end_date' class='tourmaster-datepicker-alt' value='<?php echo date('F d, Y', strtotime($start_date. ' + '.$trip_duration.''.'- 1 day'));?>'><input type='hidden' name='price' value='<?php echo $price;?>'> <input type='hidden' name='no_of_booking' value='<?php echo $booked;?>'> <input type='hidden' name='table_row' value='<?php echo $list->id;?>'> <input class='tourmaster-button' type='submit' value='Book Now' style='background:#559ef8;padding: 10px;'></form> </td> </tr> <?php }}}}?> </table></div> </div> </div></div>")
.insertAfter("#departuredate");
//
//tour detail page fix departure mobile
$("<div class='mob-device'><div class='gdlr-core-pbf-element'><div class='gdlr-core-image-item gdlr-core-item-pdb gdlr-core-center-align gdlr-core-item-pdlr'> <select name='monthrange' class='form-control box-form select_month_year_sm'><?php $current_date=date('Y-m'); for ($x =0; $x <=8; $x+=1) { $date_y = date('Y', strtotime($current_date. ' + '.$x.' months'));$date_m = date('m', strtotime($current_date. ' + '.$x.' months'));$date1 = date('F,Y', strtotime($current_date. ' + '.$x.' months'));?><option value='<?php echo $date_y;?>' data-month='<?php echo $date_m;?>'><?php echo $date1;?></option><?php }?></select></div> <?php $departure=get_field('select_fix_departure_months');foreach($departure as $key=>$d){ if($d==$current_month){$number_of_days = cal_days_in_month(CAL_GREGORIAN,$current_month, $current_year); for ($x = 1; $x <= $number_of_days; $x++) { $day=date('l', strtotime($x . '-' . $current_month . '-' . $current_year)); if($day=='Sunday'){ $start_date=date('F', strtotime($x . '-' . $current_month . '-' . $current_year)) . ' ' . $x . ',' . $current_year; $start_month=date('m', strtotime($start_date)); $startdate1=date('d-m-Y', strtotime($start_date)); $start_year=date('m', strtotime($start_date)); $total_pax=15;?><div class='table-append-sm'><div class='border-box'> <ul class='mob-departures'> <li><strong>Trip Dates</strong> <img src='https://www.himalayanwonders.com/assets/rblue/images/icons/trip-calendar.png' width='16' border='0' alt='calendar'> <?php echo $start_date.' - '.date('F d, Y', strtotime($start_date. ' + '.$trip_duration.''.'- 1 days'));?> </li><hr> <li><strong>Price</strong> <img src='https://www.himalayanwonders.com/assets/rblue/images/icons/tag.png' alt='tag'><span class='reg_price'>$<?php echo $regular_price;?></span>$<?php echo $selling_price;?><span class='save'>Save <?php echo $discount_price;?></span> </li> <hr><li><strong>Space Left</strong> <img src='https://www.himalayanwonders.com/assets/rblue/images/icons/member.png' alt='member'><?php echo $booked;?> Booked - <img src='https://www.himalayanwonders.com/assets/rblue/images/icons/member.png' alt='member'><?php echo $total_pax-$booked;?> Left <form class='dep-form-submit-sm' method='POST' action='<?php echo home_url('/fix-departure');?>'><input type='hidden' name='tour_id' value='<?php echo $post_id;?>'><input type='hidden' name='start_date' class='tourmaster-datepicker-alt' value='<?php echo $start_date;?>'><input type='hidden' name='end_date' class='tourmaster-datepicker-alt' value='<?php echo date('F d, Y', strtotime($start_date. ' + '.$trip_duration.''.'- 1 days'));?>'><input type='hidden' name='price' value='<?php echo $price;?>'><input type='hidden' name='no_of_booking' value='<?php echo $booked;?>'><input type='hidden' name='table_row' value='<?php echo $list->id;?>'> <input class='tourmaster-button' type='submit' value='Book Now' style='background:#559ef8;padding: 10px;'></form> </li> </ul> </div></div><?php }}}}?></div></div>")
.insertAfter("#departuredate");
});
</script>
<?php }?>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('body').on('click', '.tourmaster-button', function() {
var price = $(".tourmaster-tour-booking-bar-total-price").text().replace("$", "").replace(",",
"");
//var price1= $(".tourmaster-tour-booking-bar-deposit-price").text().replace("$", "").replace(",", "");
$.ajax({
url: '<?php echo admin_url( 'admin-ajax.php' );?>',
type: 'POST',
dataType: 'json',
data: {
'action': 'total_price_ajax',
'price': price,
},
});
});
//filter delas and discount
$('body').on('change', '#year_month', function() {
var year = $(this).val();
//var year=$(this).find(':selected').data('year');
window.location.href = 'https://accessnepaltour.com/fix-departure/deals-and-discount/?y=' +
year;
});
//tour fix departure mobile
// $('.select_month_year_smxx').change(function() {
// var date=$(this).val();
// window.location.href = 'https://accessnepaltour.com/tour/<?php //echo $post_slug;?>/?q='+date;
// });
//
$('.select_month_lg').on('change', function() {
//alert('hi');
var month = $(this).val();
var year = $('.select_year_lg').val();
var post_id = '<?php echo get_the_ID();?>';
var duration = '<?php echo $trip_duration;?>';
// alert(post_id);
// return false;
var data = {
'action': 'autocomplete_departure',
'month': month,
'year': year,
'post_id': post_id,
'duration': duration,
};
$.ajax({
url: '<?php echo admin_url( 'admin-ajax.php' )?>',
type: 'POST',
dataType: 'html',
data: data,
success: function(response) {
//console.log(response)
$('.table-append').html(response);
},
error: function() {
alert('error');
}
});
});
//
$('.select_year_lg').on('change', function() {
//alert('hi');
var year = $(this).val();
var month = $('.select_month_lg').val();
var post_id = '<?php echo get_the_ID();?>';
var duration = '<?php echo $trip_duration;?>';
//alert(duration);
//return false;
var data = {
'action': 'autocomplete_departure',
'month': month,
'year': year,
'post_id': post_id,
'duration': duration,
};
$.ajax({
url: '<?php echo admin_url( 'admin-ajax.php' )?>',
type: 'POST',
dataType: 'html',
data: data,
success: function(response) {
//console.log(response)
$('.table-append').html(response);
},
error: function() {
alert('error');
}
});
});
//
$('.select_month_year_sm').on('change', function() {
//alert('hi');
var year = $(this).val();
var month = $(this).find(':selected').data('month');
var post_id = '<?php echo get_the_ID();?>';
// alert(month);
// return false;
var data = {
'action': 'autocomplete_departure_sm',
'year': year,
'month': month,
'post_id': post_id,
};
$.ajax({
url: '<?php echo admin_url( 'admin-ajax.php' )?>',
type: 'POST',
dataType: 'html',
data: data,
success: function(response) {
//console.log(response)
$('.table-append-sm').html(response);
},
error: function() {
alert('error');
}
});
});
//
$(window).scroll(function() {
if ($(this).scrollTop() > 2000) {
$('#scroll-to-top').fadeIn(2000);
$('.tourmaster-content-navigation-item-container').addClass('fix-menu');
} else {
$('#scroll-to-top').fadeOut(2000);
$('.tourmaster-content-navigation-item-container').removeClass('fix-menu');
}
});
//
if (window.matchMedia("(max-width: 767px)").matches) {
$(window).scroll(function() {
if ($(this).scrollTop() > 2000) {
$('.footer-top').fadeIn(2000);
} else {
$('.footer-top').fadeOut(2000);
}
});
}
//
$(".whatsapp-icon").click(function() {
jQuery(".ctc-analytics").trigger("click");
});
});
</script>
<?php
echo get_post_type(get_the_ID());?>
<?php
if(get_post_type(get_the_ID())=='tour' && (is_single())){
session_unset();?>
<style type="text/css">
.tourmaster-price-right-title .tripdays {
color: #ffffff;
background-color: #467be7;
margin-top: 1px;
position: absolute;
padding: 6px 17px;
right: 8px;
z-index: 2;
font-weight: bold;
}
@media only screen and (min-width: 1000px) {
.gdlr-core-flexslider.flexslider[data-type="slider"] ul.slides>li {
width: 898px !important;
}
}
@media only screen and (min-width: 1400px) {
.gdlr-core-flexslider.flexslider[data-type="slider"] ul.slides>li {
width: 937px !important;
}
}
</style>
<?php }?>
<?php wp_footer(); ?>
Directory Contents
Dirs: 10 × Files: 18