Files

98 lines
3.4 KiB
PHP
Raw Permalink 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
#-----------------------------------------------------------------#
# Default theme constants
#-----------------------------------------------------------------#
define('HIMARA_THEME_NAME', 'Himara');
define('HIMARA_THEME_VERSION', '1.0.2');
define('THEME_VERSION', '1.0.2');
#-----------------------------------------------------------------#
# Localization
#-----------------------------------------------------------------#
load_theme_textdomain( 'himara', get_template_directory() . '/languages' );
#-----------------------------------------------------------------#
# After Theme Setup
#-----------------------------------------------------------------#
add_action( 'after_setup_theme', 'himara_theme_setup' );
function himara_theme_setup() {
#-----------------------------------------------------------------#
# Add thumbnails support
#-----------------------------------------------------------------#
add_theme_support( 'post-thumbnails' );
#-----------------------------------------------------------------#
# Add image sizes
#-----------------------------------------------------------------#
$image_sizes = himara_get_image_sizes();
if ( !empty( $image_sizes ) ) {
foreach ( $image_sizes as $id => $size ) {
add_image_size( $id, $size['w'], $size['h'], $size['crop'] );
}
}
#-----------------------------------------------------------------#
# Add theme support for title tag
#-----------------------------------------------------------------#
add_theme_support( 'title-tag' );
#-----------------------------------------------------------------#
# Support for HTML5
#-----------------------------------------------------------------#
add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) );
#-----------------------------------------------------------------#
# Automatic Feed Links
#-----------------------------------------------------------------#
add_theme_support( 'automatic-feed-links' );
// Redirect to dashboard after theme activation
add_action('after_switch_theme', 'himara_after_activation_redirect');
function himara_after_activation_redirect () {
wp_redirect( admin_url( '/admin.php?page=himara_dashboard' ) );
}
}
/* Load frontend scripts */
include_once get_template_directory() . '/core/enqueue.php';
/* Load helpers scripts */
include_once get_template_directory() . '/core/helpers.php';
/* Sidebars */
include_once get_template_directory() . '/core/sidebars.php';
/* Menus */
include_once get_template_directory() . '/core/menus.php';
#-----------------------------------------------------------------#
# Load admin scripts
#-----------------------------------------------------------------#
if ( is_admin() ) {
//
include_once get_template_directory() . '/core/admin/enqueue.php';
/* Dashboard */
include_once get_template_directory() . '/core/admin/dashboard.php';
// /* Theme Options */
include_once get_template_directory() . '/core/admin/theme-options.php';
//
// /* Load Metaboxes */
include_once get_template_directory() . '/core/admin/metaboxes.php';
//
// /* Include plugins - TGM */
include_once get_template_directory() . '/core/admin/install-plugins.php';
//
/* Demo importer Panel */
include_once ( get_template_directory() . '/core/admin/demo-importer.php' );
//
// /* Include AJAX action handlers */
include_once get_template_directory() . '/core/admin/ajax.php';
}