Hotel Raxa - Advanced Booking System Implementation
🏨 Hotel Booking Enhancements: - Implemented Eagle Booking Advanced Pricing add-on - Added Booking.com-style rate management system - Created professional calendar interface for pricing - Integrated deals and discounts functionality 💰 Advanced Pricing Features: - Dynamic pricing models (per room, per person, per adult) - Base rates, adult rates, and child rates management - Length of stay discounts and early bird deals - Mobile rates and secret deals implementation - Seasonal promotions and flash sales 📅 Availability Management: - Real-time availability tracking - Stop sell and restriction controls - Closed to arrival/departure functionality - Minimum/maximum stay requirements - Automatic sold-out management 💳 Payment Integration: - Maintained Redsys payment gateway integration - Seamless integration with existing Eagle Booking - No modifications to core Eagle Booking plugin 🛠️ Technical Implementation: - Custom database tables for advanced pricing - WordPress hooks and filters integration - AJAX-powered admin interface - Data migration from existing Eagle Booking - Professional calendar view for revenue management 📊 Admin Interface: - Booking.com-style management dashboard - Visual rate and availability calendar - Bulk operations for date ranges - Statistics and analytics dashboard - Modal dialogs for quick editing 🔧 Code Quality: - WordPress coding standards compliance - Secure database operations with prepared statements - Proper input validation and sanitization - Error handling and logging - Responsive admin interface 🤖 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
/* CORE CSS */
|
||||
.elementor-control-type-number .elementor-control-input-wrapper {
|
||||
width: 100%;
|
||||
}
|
||||
187
wp-content/plugins/eagle-core/eagle-elementor/assets/js/core.js
Normal file
187
wp-content/plugins/eagle-core/eagle-elementor/assets/js/core.js
Normal file
@@ -0,0 +1,187 @@
|
||||
/*=============================================================
|
||||
Theme Name: Hotel Himara - Hotel WordPress Theme
|
||||
Author: Eagle-Themes (Jomin Muskaj)
|
||||
Author URI: http://eagle-themes.com
|
||||
Version: 1.0.0
|
||||
=============================================================*/
|
||||
|
||||
(function($) {
|
||||
"use strict";
|
||||
|
||||
|
||||
/*Document is Ready */
|
||||
$(document).ready(function() {
|
||||
|
||||
// =============================================
|
||||
// MAGNIFIC POPUP
|
||||
// =============================================
|
||||
$(".magnific-popup, a[data-rel^='magnific-popup']").magnificPopup({
|
||||
type: 'image',
|
||||
mainClass: 'mfp-with-zoom',
|
||||
zoom: {
|
||||
enabled: true,
|
||||
duration: 300,
|
||||
easing: 'ease-in-out',
|
||||
opener: function(openerElement) {
|
||||
return openerElement.is('img') ? openerElement : openerElement.find('img');
|
||||
}
|
||||
},
|
||||
retina: {
|
||||
ratio: 1,
|
||||
replaceSrc: function(item, ratio) {
|
||||
return item.src.replace(/\.\w+$/, function(m) {
|
||||
return '@2x' + m;
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$('.lightbox-gallery').each(function() {
|
||||
|
||||
$(this).magnificPopup({
|
||||
delegate: '.owl-item:not(.cloned) a, .gallery-item a',
|
||||
type: 'image',
|
||||
mainClass: 'mfp-with-zoom',
|
||||
zoom: {
|
||||
enabled: true,
|
||||
duration: 300,
|
||||
easing: 'ease-in-out',
|
||||
fixedContentPos: true,
|
||||
opener: function(openerElement) {
|
||||
return openerElement.is('img') ? openerElement : openerElement.find('img');
|
||||
}
|
||||
},
|
||||
fixedContentPos: true,
|
||||
gallery: {
|
||||
enabled: true
|
||||
},
|
||||
removalDelay: 300,
|
||||
retina: {
|
||||
ratio: 1,
|
||||
replaceSrc: function(item, ratio) {
|
||||
return item.src.replace(/\.\w+$/, function(m) {
|
||||
return '@2x' + m;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
$('.popup-video').magnificPopup({
|
||||
type: 'iframe',
|
||||
mainClass: 'mfp-fade',
|
||||
removalDelay: 160,
|
||||
preloader: false,
|
||||
});
|
||||
|
||||
|
||||
// =============================================
|
||||
// ISOTOPE
|
||||
// =============================================
|
||||
$(function() {
|
||||
var grid = $('.grid').isotope({
|
||||
itemSelector: '.isotope-item'
|
||||
});
|
||||
|
||||
// filters
|
||||
$('.gallery-filters').on('click', 'a', function(e) {
|
||||
e.preventDefault();
|
||||
var filterValue = $(this).attr('data-filter');
|
||||
grid.isotope({
|
||||
filter: filterValue
|
||||
});
|
||||
});
|
||||
|
||||
// active class
|
||||
$('.gallery-filters').each(function(i, buttonGroup) {
|
||||
var $buttonGroup = $(buttonGroup);
|
||||
$buttonGroup.on('click', 'a', function() {
|
||||
$buttonGroup.find('.active').removeClass('active');
|
||||
$(this).addClass('active');
|
||||
});
|
||||
});
|
||||
|
||||
// fix for isotope overlapping images imagesloaded.pkgd.js required
|
||||
if ($(".grid").length) {
|
||||
// layout Isotope after each image loads
|
||||
grid.imagesLoaded().progress(function() {
|
||||
grid.isotope('layout');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// Gallery Counter
|
||||
function Gallery_Counter() {
|
||||
|
||||
// get filtered item elements
|
||||
var itemElems = grid.isotope('getFilteredItemElements');
|
||||
var $itemElems = $( itemElems );
|
||||
|
||||
$('.filter').each( function( i, button ) {
|
||||
|
||||
var button = $(this);
|
||||
|
||||
var filterValue = button.attr('data-filter');
|
||||
|
||||
if ( !filterValue ) {
|
||||
// do not update 'any' buttons
|
||||
return;
|
||||
}
|
||||
var count = $itemElems.filter( filterValue ).length;
|
||||
|
||||
if ( count == 0 ) {
|
||||
|
||||
button.hide();
|
||||
|
||||
} else if ( count < 10 ) {
|
||||
|
||||
count = '0'+count;
|
||||
|
||||
}
|
||||
|
||||
// if ( count != 0 || count < 10 ) {
|
||||
|
||||
// count = '0'+count;
|
||||
// }
|
||||
|
||||
button.find('.filter-count').text(count);
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Gallery_Counter();
|
||||
|
||||
});
|
||||
|
||||
// =============================================
|
||||
// MASONRY
|
||||
// =============================================
|
||||
var masonry_container = $('.masonry-grid');
|
||||
masonry_container.masonry({
|
||||
itemSelector: '.masonry-grid-item'
|
||||
});
|
||||
|
||||
|
||||
|
||||
// =============================================
|
||||
// COUNT UP
|
||||
// =============================================
|
||||
$('.countup-box').on('inview', function(event, visible) {
|
||||
if (visible) {
|
||||
|
||||
$.each($('.number'), function() {
|
||||
var count = $(this).data('count'),
|
||||
numAnim = new CountUp(this, 0, count);
|
||||
numAnim.start();
|
||||
});
|
||||
|
||||
$(this).unbind('inview');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
})(jQuery);
|
||||
Reference in New Issue
Block a user