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,101 @@
|
||||
<?php
|
||||
namespace Elementor\Modules\AtomicWidgets\Widgets;
|
||||
|
||||
use Elementor\Modules\AtomicWidgets\Controls\Section;
|
||||
use Elementor\Modules\AtomicWidgets\Controls\Types\Select_Control;
|
||||
use Elementor\Modules\AtomicWidgets\Controls\Types\Textarea_Control;
|
||||
use Elementor\Modules\AtomicWidgets\Base\Atomic_Widget_Base;
|
||||
use Elementor\Modules\AtomicWidgets\Schema\Atomic_Prop;
|
||||
use Elementor\Utils;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly.
|
||||
}
|
||||
|
||||
class Atomic_Heading extends Atomic_Widget_Base {
|
||||
public function get_icon() {
|
||||
return 'eicon-t-letter';
|
||||
}
|
||||
|
||||
public function get_title() {
|
||||
return esc_html__( 'Atomic Heading', 'elementor' );
|
||||
}
|
||||
|
||||
public function get_name() {
|
||||
return 'a-heading';
|
||||
}
|
||||
|
||||
protected function render() {
|
||||
$settings = $this->get_atomic_settings();
|
||||
|
||||
// TODO: Move the validation/sanitization to the props schema constraints.
|
||||
$escaped_tag = Utils::validate_html_tag( $settings['tag'] );
|
||||
$escaped_title = esc_html( $settings['title'] );
|
||||
|
||||
$class = '';
|
||||
if ( ! empty( $settings['classes'] ) ) {
|
||||
$class = "class='" . esc_attr( $settings['classes'] ) . "'";
|
||||
}
|
||||
|
||||
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
echo "<$escaped_tag $class>$escaped_title</$escaped_tag>";
|
||||
}
|
||||
|
||||
protected function define_atomic_controls(): array {
|
||||
$tag_control = Select_Control::bind_to( 'tag' )
|
||||
->set_label( esc_html__( 'Tag', 'elementor' ) )
|
||||
->set_options( [
|
||||
[
|
||||
'value' => 'h1',
|
||||
'label' => 'H1',
|
||||
],
|
||||
[
|
||||
'value' => 'h2',
|
||||
'label' => 'H2',
|
||||
],
|
||||
[
|
||||
'value' => 'h3',
|
||||
'label' => 'H3',
|
||||
],
|
||||
[
|
||||
'value' => 'h4',
|
||||
'label' => 'H4',
|
||||
],
|
||||
[
|
||||
'value' => 'h5',
|
||||
'label' => 'H5',
|
||||
],
|
||||
[
|
||||
'value' => 'h6',
|
||||
'label' => 'H6',
|
||||
],
|
||||
]);
|
||||
|
||||
$title_control = Textarea_Control::bind_to( 'title' )
|
||||
->set_label( __( 'Title', 'elementor' ) )
|
||||
->set_placeholder( __( 'Type your title here', 'elementor' ) );
|
||||
|
||||
$tag_and_title_section = Section::make()
|
||||
->set_label( __( 'Content', 'elementor' ) )
|
||||
->set_items( [
|
||||
$tag_control,
|
||||
$title_control,
|
||||
]);
|
||||
|
||||
return [
|
||||
$tag_and_title_section,
|
||||
];
|
||||
}
|
||||
|
||||
protected static function define_props_schema(): array {
|
||||
return [
|
||||
'classes' => Atomic_Prop::make(),
|
||||
|
||||
'tag' => Atomic_Prop::make()
|
||||
->default( 'h2' ),
|
||||
|
||||
'title' => Atomic_Prop::make()
|
||||
->default( __( 'Your Title Here', 'elementor' ) ),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user