🏨 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>
118 lines
3.6 KiB
PHP
118 lines
3.6 KiB
PHP
<?php
|
|
/**
|
|
* Redux ThirdParty Fixes Class
|
|
*
|
|
* @class Redux_ThirdParty_Fixes
|
|
* @version 3.0.0
|
|
* @package Redux Framework/Classes
|
|
*/
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
if ( ! class_exists( 'Redux_ThirdParty_Fixes', false ) ) {
|
|
|
|
/**
|
|
* Class Redux_ThirdParty_Fixes
|
|
*/
|
|
class Redux_ThirdParty_Fixes extends Redux_Class {
|
|
|
|
/**
|
|
* Redux_ThirdParty_Fixes constructor.
|
|
*
|
|
* @param object $redux ReduxFramework pointer.
|
|
*/
|
|
public function __construct( $redux ) {
|
|
parent::__construct( $redux );
|
|
|
|
$this->gt3_page_builder();
|
|
|
|
// These are necessary to override an outdated extension embedded in themes
|
|
// that are loaded via the antiquated 'loader.php' method.
|
|
add_filter( 'redux/extension/' . $this->parent->args['opt_name'] . '/repeater', array( $this, 'repeater_extension_override' ) );
|
|
add_filter( 'redux/extension/' . $this->parent->args['opt_name'] . '/metaboxes', array( $this, 'metaboxes_extension_override' ) );
|
|
add_filter( 'redux/extension/' . $this->parent->args['opt_name'] . '/social_profiles', array( $this, 'social_profiles_extension_override' ) );
|
|
add_filter( 'redux/extension/' . $this->parent->args['opt_name'] . '/widget_areas', array( $this, 'widget_areas_extension_override' ) );
|
|
add_filter( 'redux/extension/' . $this->parent->args['opt_name'] . '/custom_fonts', array( $this, 'custom_fonts_extension_override' ) );
|
|
add_filter( 'redux/extension/' . $this->parent->args['opt_name'] . '/icon_select', array( $this, 'icon_select_extension_override' ) );
|
|
add_filter( 'redux/extension/' . $this->parent->args['opt_name'] . '/color_scheme', array( $this, 'color_scheme_extension_override' ) );
|
|
}
|
|
|
|
/**
|
|
* Color Scheme extension override.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function color_scheme_extension_override(): string {
|
|
return Redux_core::$dir . 'inc/extensions/color_scheme/class-redux-extension-color-scheme.php';
|
|
}
|
|
|
|
/**
|
|
* Icon Select extension override.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function icon_select_extension_override(): string {
|
|
return Redux_core::$dir . 'inc/extensions/icon_select/class-redux-extension-icon-select.php';
|
|
}
|
|
|
|
/**
|
|
* Widget Area extension override.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function custom_fonts_extension_override(): string {
|
|
return Redux_core::$dir . 'inc/extensions/custom_fonts/class-redux-extension-custom-fonts.php';
|
|
}
|
|
|
|
/**
|
|
* Widget Area extension override.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function widget_areas_extension_override(): string {
|
|
return Redux_core::$dir . 'inc/extensions/widget_areas/class-redux-extension-widget-areas.php';
|
|
}
|
|
|
|
/**
|
|
* Repeater extension override.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function repeater_extension_override(): string {
|
|
return Redux_core::$dir . 'inc/extensions/repeater/class-redux-extension-repeater.php';
|
|
}
|
|
|
|
/**
|
|
* Metaboxes extension override.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function metaboxes_extension_override(): string {
|
|
return Redux_core::$dir . 'inc/extensions/metaboxes/class-redux-extension-metaboxes.php';
|
|
}
|
|
|
|
/**
|
|
* Social Profiles extension override.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function social_profiles_extension_override(): string {
|
|
return Redux_core::$dir . 'inc/extensions/social_profiles/class-redux-extension-social-profiles.php';
|
|
}
|
|
|
|
/**
|
|
* GT3 Page Builder fix.
|
|
*/
|
|
private function gt3_page_builder() {
|
|
// Fix for the GT3 page builder: http://www.gt3themes.com/wordpress-gt3-page-builder-plugin/.
|
|
if ( has_action( 'ecpt_field_options_' ) ) {
|
|
global $pagenow;
|
|
|
|
if ( 'admin.php' === $pagenow ) {
|
|
remove_action( 'admin_init', 'pb_admin_init' );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|