🏨 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>
85 lines
2.8 KiB
PHP
85 lines
2.8 KiB
PHP
<?php
|
|
/**
|
|
* Multisite administration panel.
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Multisite
|
|
* @since 3.0.0
|
|
*/
|
|
|
|
/** Load WordPress Administration Bootstrap */
|
|
require_once __DIR__ . '/admin.php';
|
|
|
|
/** Load WordPress dashboard API */
|
|
require_once ABSPATH . 'wp-admin/includes/dashboard.php';
|
|
|
|
if ( ! current_user_can( 'manage_network' ) ) {
|
|
wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
|
|
}
|
|
|
|
// Used in the HTML title tag.
|
|
$title = __( 'Dashboard' );
|
|
$parent_file = 'index.php';
|
|
|
|
$overview = '<p>' . __( 'Welcome to your Network Admin. This area of the Administration Screens is used for managing all aspects of your Multisite Network.' ) . '</p>';
|
|
$overview .= '<p>' . __( 'From here you can:' ) . '</p>';
|
|
$overview .= '<ul><li>' . __( 'Add and manage sites or users' ) . '</li>';
|
|
$overview .= '<li>' . __( 'Install and activate themes or plugins' ) . '</li>';
|
|
$overview .= '<li>' . __( 'Update your network' ) . '</li>';
|
|
$overview .= '<li>' . __( 'Modify global network settings' ) . '</li></ul>';
|
|
|
|
get_current_screen()->add_help_tab(
|
|
array(
|
|
'id' => 'overview',
|
|
'title' => __( 'Overview' ),
|
|
'content' => $overview,
|
|
)
|
|
);
|
|
|
|
$quick_tasks = '<p>' . __( 'The Right Now widget on this screen provides current user and site counts on your network.' ) . '</p>';
|
|
$quick_tasks .= '<ul><li>' . __( 'To add a new user, <strong>click Create a New User</strong>.' ) . '</li>';
|
|
$quick_tasks .= '<li>' . __( 'To add a new site, <strong>click Create a New Site</strong>.' ) . '</li></ul>';
|
|
$quick_tasks .= '<p>' . __( 'To search for a user or site, use the search boxes.' ) . '</p>';
|
|
$quick_tasks .= '<ul><li>' . __( 'To search for a user, <strong>enter an email address or username</strong>. Use a wildcard to search for a partial username, such as user*.' ) . '</li>';
|
|
$quick_tasks .= '<li>' . __( 'To search for a site, <strong>enter the path or domain</strong>.' ) . '</li></ul>';
|
|
|
|
get_current_screen()->add_help_tab(
|
|
array(
|
|
'id' => 'quick-tasks',
|
|
'title' => __( 'Quick Tasks' ),
|
|
'content' => $quick_tasks,
|
|
)
|
|
);
|
|
|
|
get_current_screen()->set_help_sidebar(
|
|
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
|
'<p>' . __( '<a href="https://developer.wordpress.org/advanced-administration/multisite/admin/">Documentation on the Network Admin</a>' ) . '</p>' .
|
|
'<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support forums</a>' ) . '</p>'
|
|
);
|
|
|
|
wp_dashboard_setup();
|
|
|
|
wp_enqueue_script( 'dashboard' );
|
|
wp_enqueue_script( 'plugin-install' );
|
|
add_thickbox();
|
|
|
|
require_once ABSPATH . 'wp-admin/admin-header.php';
|
|
|
|
?>
|
|
|
|
<div class="wrap">
|
|
<h1><?php echo esc_html( $title ); ?></h1>
|
|
|
|
<div id="dashboard-widgets-wrap">
|
|
|
|
<?php wp_dashboard(); ?>
|
|
|
|
<div class="clear"></div>
|
|
</div><!-- dashboard-widgets-wrap -->
|
|
|
|
</div><!-- wrap -->
|
|
|
|
<?php
|
|
wp_print_community_events_templates();
|
|
require_once ABSPATH . 'wp-admin/admin-footer.php';
|