Files
Hotel Raxa Dev 5b1e2453c7 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>
2025-07-11 07:43:22 +02:00

58 lines
1.7 KiB
PHP

<?php
/**
* Get Font Awesome font classes.
*
* Used with Gulp compiler to pull Font Awesome font class names
* and compile them into a function to be used with icon_Select field.
*
* @package Redux
* @author Kevin Provance <kevin.provance@gmail.com>
*
* @version 4.4.2
*/
$output = '<?php' . "\r";
$output .= '/**' . "\r";
$output .= ' * Redux Icon Select Font Awesome 6 Free icon array.' . "\r";
$output .= ' *' . "\r";
$output .= ' * @package Redux' . "\r";
$output .= ' * @author Kevin Provance <kevin.provance@gmail.com>' . "\r";
$output .= ' */' . "\r\r";
$output .= "defined( 'ABSPATH' ) || exit;\r\r";
$output .= '';
$output .= "if ( ! function_exists( 'redux_icon_select_fa_6_free' ) ) {\r\r";
$output .= "\t" . '/**' . "\r";
$output .= "\t" . ' * Array of free Font Awesome 6 icons.' . "\r";
$output .= "\t" . ' *' . "\r";
$output .= "\t" . ' * @return array' . "\r";
$output .= "\t" . ' */' . "\r";
$output .= "\t" . 'function redux_icon_select_fa_6_free(): array {' . "\r";
$output .= "\t\t" . 'return array( ' . fa_icons() . ' );' . "\r";
$output .= "\t" . '}' . "\r";
$output .= '}' . "\r";
file_put_contents( dirname( __DIR__ ) . '/lib/font-awesome-6-free.php', $output );
// print_r ( fa_icons() );
/**
* Get Font Awesome metadata.
*
* @return false|string
*/
function fa_icons() {
$content = file_get_contents( 'https://raw.githubusercontent.com/FortAwesome/Font-Awesome/6.x/metadata/icons.json' );
$json = json_decode( $content );
$icons = '';
foreach ( $json as $icon => $value ) {
foreach ( $value->styles as $style ) {
$icon = 'fa' . substr( $style, 0, 1 ) . ' fa-' . $icon;
$icons .= "'" . $icon . "', ";
}
}
return substr( $icons, 0, -2 );
}