83 lines
2.5 KiB
PHP
Raw Normal View History

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
<?php
namespace Elementor\Modules\EditorAppBar;
use Elementor\Core\Base\Module as BaseModule;
use Elementor\Core\Experiments\Manager as Experiments_Manager;
use Elementor\Plugin;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Module extends BaseModule {
const EXPERIMENT_NAME = 'editor_v2'; // Kept as `editor_v2` for backward compatibility.
const PACKAGES = [
'editor-app-bar',
'editor-documents',
'editor-panels',
'editor-site-navigation',
];
const STYLES = [
'editor-v2-app-bar-overrides',
];
public function get_name() {
return 'editor-app-bar';
}
public function __construct() {
parent::__construct();
$this->register_experiment();
if ( Plugin::$instance->experiments->is_feature_active( self::EXPERIMENT_NAME ) ) {
add_filter( 'elementor/editor/v2/packages', fn( $packages ) => $this->add_packages( $packages ) );
add_filter( 'elementor/editor/v2/styles', fn( $styles ) => $this->add_styles( $styles ) );
add_filter( 'elementor/editor/templates', fn( $templates ) => $this->remove_templates( $templates ) );
add_action( 'elementor/editor/v2/scripts/enqueue', fn() => $this->dequeue_scripts() );
add_action( 'elementor/editor/v2/styles/enqueue', fn() => $this->dequeue_styles() );
}
}
private function register_experiment() {
Plugin::$instance->experiments->add_feature( [
'name' => self::EXPERIMENT_NAME,
'title' => esc_html__( 'Editor Top Bar', 'elementor' ),
'description' => sprintf(
'%1$s <a href="https://go.elementor.com/wp-dash-elementor-top-bar/" target="_blank">%2$s</a>',
esc_html__( 'Get a sneak peek of the new Editor powered by React. The beautiful design and experimental layout of the Top bar are just some of the exciting tools on their way.', 'elementor' ),
esc_html__( 'Learn more', 'elementor' )
),
'default' => Experiments_Manager::STATE_INACTIVE,
'release_status' => Experiments_Manager::RELEASE_STATUS_STABLE,
'new_site' => [
'default_active' => true,
'minimum_installation_version' => '3.23.0',
],
] );
}
private function add_packages( $packages ) {
return array_merge( $packages, self::PACKAGES );
}
private function add_styles( $styles ) {
return array_merge( $styles, self::STYLES );
}
private function remove_templates( $templates ) {
return array_diff( $templates, [ 'responsive-bar' ] );
}
private function dequeue_scripts() {
wp_dequeue_script( 'elementor-responsive-bar' );
}
private function dequeue_styles() {
wp_dequeue_style( 'elementor-responsive-bar' );
}
}