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:
Hotel Raxa Dev
2025-07-11 07:43:22 +02:00
commit 5b1e2453c7
9816 changed files with 2784509 additions and 0 deletions

View File

@@ -0,0 +1,118 @@
<?php
/**
* Password Field.
*
* @package ReduxFramework/Fields
* @author Dovy Paukstys & Kevin Provance (kprovance)
* @version 4.0.0
*/
defined( 'ABSPATH' ) || exit;
if ( ! class_exists( 'Redux_Password', false ) ) {
/**
* Class Redux_Password
*/
class Redux_Password extends Redux_Field {
/**
* Field Render Function.
* Takes the vars and outputs the HTML for the field in the settings
*
* @since ReduxFramework 1.0.1
*/
public function render() {
if ( ! empty( $this->field['username'] ) && true === $this->field['username'] ) {
$this->render_combined_field();
} else {
$this->render_single_field();
}
}
/**
* This will render a combined User/Password field
*
* @since ReduxFramework 3.0.9
* @example
* <code>
* array(
* 'id' => 'smtp_account',
* 'type' => 'password',
* 'username' => true,
* 'title' => 'SMTP Account',
* 'placeholder' => array('username' => 'Username')
* )
* </code>
*/
private function render_combined_field() {
$defaults = array(
'username' => '',
'password' => '',
'placeholder' => array(
'password' => esc_html__( 'Password', 'redux-framework' ),
'username' => esc_html__( 'Username', 'redux-framework' ),
),
);
$this->value = wp_parse_args( $this->value, $defaults );
if ( ! empty( $this->field['placeholder'] ) ) {
if ( is_array( $this->field['placeholder'] ) ) {
if ( ! empty( $this->field['placeholder']['password'] ) ) {
$this->value['placeholder']['password'] = $this->field['placeholder']['password'];
}
if ( ! empty( $this->field['placeholder']['username'] ) ) {
$this->value['placeholder']['username'] = $this->field['placeholder']['username'];
}
} else {
$this->value['placeholder']['password'] = $this->field['placeholder'];
}
}
// Username field.
echo '<input
type="text"
autocomplete="off"
placeholder="' . esc_attr( $this->value['placeholder']['username'] ) . '"
id="' . esc_attr( $this->field['id'] ) . '[username]"
name="' . esc_attr( $this->field['name'] . $this->field['name_suffix'] ) . '[username]"
value="' . esc_attr( $this->value['username'] ) . '"
class="' . esc_attr( $this->field['class'] ) . '" />&nbsp;';
// Password field.
echo '<input
type="password"
autocomplete="off"
placeholder="' . esc_attr( $this->value['placeholder']['password'] ) . '"
id="' . esc_attr( $this->field['id'] ) . '[password]"
name="' . esc_attr( $this->field['name'] . $this->field['name_suffix'] ) . '[password]"
value="' . esc_attr( $this->value['password'] ) . '"
class="' . esc_attr( $this->field['class'] ) . '" />';
}
/**
* This will render a single Password field
*
* @since ReduxFramework 3.0.9
* @example
* <code>
* array(
* 'id' => 'smtp_password',
* 'type' => 'password',
* 'title' => 'SMTP Password'
* )
* </code>
*/
private function render_single_field() {
echo '<input
type="password"
id="' . esc_attr( $this->field['id'] ) . '"
name="' . esc_attr( $this->field['name'] . $this->field['name_suffix'] ) . '"
value="' . esc_attr( $this->value ) . '"
class="' . esc_attr( $this->field['class'] ) . '" />';
}
}
}
class_alias( 'Redux_Password', 'ReduxFramework_Password' );

View File

@@ -0,0 +1,8 @@
<?php
/**
* Silence is golden.
*
* @package Redux Framework
*/
_deprecated_file( 'field_password.php', '4.3', 'class-redux-password.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );

View File

@@ -0,0 +1,8 @@
<?php
/**
* Silence is golden.
*
* @package Redux Framework
*/
echo null;