🏨 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>
59 lines
2.1 KiB
PHP
59 lines
2.1 KiB
PHP
<?php
|
|
/**
|
|
* The template for the panel header area.
|
|
* Override this template by specifying the path where it is stored (templates_path) in your Redux config.
|
|
*
|
|
* @author Redux Framework
|
|
* @package ReduxFramework/Templates
|
|
* @version: 4.0.0
|
|
*/
|
|
|
|
$tip_title = esc_html__( 'Developer Mode Enabled', 'redux-framework' );
|
|
|
|
if ( $this->parent->args_class->dev_mode_forced ) {
|
|
$is_debug = false;
|
|
$is_localhost = false;
|
|
$debug_bit = '';
|
|
|
|
if ( Redux_Helpers::is_wp_debug() ) {
|
|
$is_debug = true;
|
|
$debug_bit = esc_html__( 'WP_DEBUG is enabled', 'redux-framework' );
|
|
}
|
|
|
|
$localhost_bit = '';
|
|
if ( Redux_Helpers::is_local_host() ) {
|
|
$is_localhost = true;
|
|
$localhost_bit = esc_html__( 'you are working in a localhost environment', 'redux-framework' );
|
|
}
|
|
|
|
$conjunction_bit = '';
|
|
if ( $is_localhost && $is_debug ) {
|
|
$conjunction_bit = ' ' . esc_html__( 'and', 'redux-framework' ) . ' ';
|
|
}
|
|
|
|
$tip_msg = esc_html__( 'This has been automatically enabled because', 'redux-framework' ) . ' ' . $debug_bit . $conjunction_bit . $localhost_bit . '.';
|
|
} else {
|
|
$tip_msg = esc_html__( 'If you are not a developer, your theme/plugin author shipped with developer mode enabled. Contact them directly to fix it.', 'redux-framework' );
|
|
}
|
|
|
|
?>
|
|
<div id="redux-header">
|
|
<?php if ( ! empty( $this->parent->args['display_name'] ) ) { ?>
|
|
<div class="display_header">
|
|
<?php if ( isset( $this->parent->args['dev_mode'] ) && $this->parent->args['dev_mode'] ) { ?>
|
|
<div
|
|
class="redux-dev-mode-notice-container redux-dev-qtip"
|
|
qtip-title="<?php echo esc_attr( $tip_title ); ?>"
|
|
qtip-content="<?php echo esc_attr( $tip_msg ); ?>">
|
|
<span class="redux-dev-mode-notice"><?php esc_html_e( 'Developer Mode Enabled', 'redux-framework' ); ?></span>
|
|
</div>
|
|
<?php } ?>
|
|
<h2><?php echo wp_kses_post( $this->parent->args['display_name'] ); ?></h2>
|
|
<?php if ( ! empty( $this->parent->args['display_version'] ) ) { ?>
|
|
<span><?php echo wp_kses_post( $this->parent->args['display_version'] ); ?></span>
|
|
<?php } ?>
|
|
</div>
|
|
<?php } ?>
|
|
<div class="clear"></div>
|
|
</div>
|