🏨 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>
60 lines
2.3 KiB
PHP
60 lines
2.3 KiB
PHP
<?php
|
||
namespace Elementor;
|
||
|
||
if ( ! defined( 'ABSPATH' ) ) {
|
||
exit; // Exit if accessed directly
|
||
}
|
||
$user = wp_get_current_user();
|
||
|
||
$ajax = Plugin::$instance->common->get_component( 'ajax' );
|
||
|
||
$beta_tester_email = $user->user_email;
|
||
|
||
/**
|
||
* Print beta tester dialog.
|
||
*
|
||
* Display a dialog box to suggest the user to opt-in to the beta testers newsletter.
|
||
*
|
||
* Fired by `admin_footer` filter.
|
||
*
|
||
* @since 2.6.0
|
||
* @access public
|
||
*/
|
||
?>
|
||
<script type="text/template" id="tmpl-elementor-beta-tester">
|
||
<form id="elementor-beta-tester-form" method="post">
|
||
<?php // PHPCS - This is a nonce, doesn't need to be escaped. ?>
|
||
<input type="hidden" name="_nonce" value="<?php echo $ajax->create_nonce(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>">
|
||
<input type="hidden" name="action" value="elementor_beta_tester_signup" />
|
||
<div id="elementor-beta-tester-form__caption"><?php echo esc_html__( 'Get Beta Updates', 'elementor' ); ?></div>
|
||
<div id="elementor-beta-tester-form__description"><?php echo esc_html__( 'As a beta tester, you’ll receive an update that includes a testing version of Elementor and its content directly to your Email', 'elementor' ); ?></div>
|
||
<div id="elementor-beta-tester-form__input-wrapper">
|
||
<input id="elementor-beta-tester-form__email" name="beta_tester_email" type="email" placeholder="<?php echo esc_attr__( 'Your Email', 'elementor' ); ?>" required value="<?php echo esc_attr( $beta_tester_email ); ?>" />
|
||
<button id="elementor-beta-tester-form__submit" class="elementor-button">
|
||
<span class="elementor-state-icon">
|
||
<i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i>
|
||
</span>
|
||
<?php echo esc_html__( 'Sign Up', 'elementor' ); ?>
|
||
</button>
|
||
</div>
|
||
<div id="elementor-beta-tester-form__terms">
|
||
<?php
|
||
echo sprintf(
|
||
/* translators: 1. "Terms of service" link, 2. "Privacy policy" link */
|
||
esc_html__( 'By clicking Sign Up, you agree to Elementor\'s %1$s and %2$s', 'elementor' ),
|
||
sprintf(
|
||
'<a href="%1$s" target="_blank">%2$s</a>',
|
||
esc_url( Beta_Testers::NEWSLETTER_TERMS_URL ),
|
||
esc_html__( 'Terms of Service', 'elementor' )
|
||
),
|
||
sprintf(
|
||
'<a href="%1$s" target="_blank">%2$s</a>',
|
||
esc_url( Beta_Testers::NEWSLETTER_PRIVACY_URL ),
|
||
esc_html__( 'Privacy Policy', 'elementor' )
|
||
)
|
||
)
|
||
?>
|
||
</div>
|
||
</form>
|
||
</script>
|