array( 'class' => true, 'data-diag-goto' => true, 'title' => true, ), ); $page_mode = $settings['page_mode'] ?? 'maintenance'; $status_text = $settings['maintenance_enabled'] ? ( $page_mode === 'coming_soon' ? __('COMING SOON', '1001web-maintenance-launch-pages') : _x('ON', 'maintenance status', '1001web-maintenance-launch-pages') ) : _x('OFF', 'maintenance status', '1001web-maintenance-launch-pages'); $status_class = $settings['maintenance_enabled'] ? 'active' : 'inactive'; $access_duration = $settings['visitor_access_duration'] ?? 86400; $bg1_opacity = $settings['bg_color_1_opacity'] ?? 100; $bg2_opacity = $settings['bg_color_2_opacity'] ?? 100; $title_opacity = $settings['title_opacity'] ?? 100; $message_opacity = $settings['message_opacity'] ?? 100; $button_opacity = $settings['button_opacity'] ?? 100; $bg_overlay = $settings['bg_overlay_opacity'] ?? 50; $container_bg = $settings['container_bg_color'] ?? '#ffffff'; $container_opacity = $settings['container_bg_opacity'] ?? 95; $container_shadow = $settings['container_shadow_enabled'] ?? true; $container_shadow_intensity = $settings['container_shadow_intensity'] ?? 30; $title_font = $settings['title_font'] ?? 'Poppins'; $message_font = $settings['message_font'] ?? 'Open Sans'; $container_max_width = $settings['container_max_width'] ?? 600; $container_padding = $settings['container_padding'] ?? 60; $container_border_radius = $settings['container_border_radius'] ?? 20; $animation_enabled = $settings['animation_enabled'] ?? true; $logo_animation = $settings['logo_animation'] ?? 'pulse'; $text_animation = $settings['text_animation'] ?? 'fadeIn'; $button_animation = $settings['button_animation'] ?? 'slideUp'; $animation_duration = $settings['animation_duration'] ?? 1000; $presets = MGENIUS_Settings::get_presets(); // v2.9.176 — même liste et même ordre pour l'assistant et l'onglet Apparence. $mgenius_style_keys = array( 'default', 'genius', 'dark', 'light', 'corporate', 'zen', 'nature', 'tech', 'christmas' ); $mgenius_themes = MGENIUS_Settings::get_themes(); if ( ( $settings['page_mode'] ?? 'maintenance' ) === 'coming_soon' && isset( $mgenius_themes['horizon'] ) ) { $mgenius_themes = [ 'horizon' => $mgenius_themes['horizon'] ] + array_diff_key( $mgenius_themes, [ 'horizon' => null ] ); } $mgenius_active_theme = MGENIUS_Settings::get_active_theme(); $mgenius_has_snapshot = MGENIUS_Settings::has_theme_snapshot(); $roles = MGENIUS_Settings::get_roles(); $has_visitor_password = !empty($settings['visitor_password']); $wizard_completed = get_option('mgenius_wizard_completed', false); $wizard_needed = !$wizard_completed; ?>

v
✅
0) : $mgenius_lock_text = $mgenius_lock_all > time() ? sprintf( /* translators: 1: number of failed attempts, 2: time of day */ __('The visitor password form is locked for all visitors until %2$s: %1$d wrong passwords were entered within 15 minutes. It unlocks by itself. Access links, the IP whitelist and logged-in users are not affected.', '1001web-maintenance-launch-pages'), (int) MGENIUS_Ajax::VISITOR_LOGIN_MAX_ALL, wp_date(get_option('time_format'), $mgenius_lock_all) ) : sprintf( /* translators: %d: number of failed attempts */ __('The visitor password form is locked for all visitors for up to 15 minutes: %d wrong passwords were entered within 15 minutes. It unlocks by itself. Access links, the IP whitelist and logged-in users are not affected.', '1001web-maintenance-launch-pages'), (int) MGENIUS_Ajax::VISITOR_LOGIN_MAX_ALL ); ?>
0, 'warns' => 0, 'never' => true]; ?>
__('Email notifications', '1001web-maintenance-launch-pages'), 'turnstile_enabled' => __('Turnstile CAPTCHA', '1001web-maintenance-launch-pages'), 'stats_enabled' => __('Visitor statistics', '1001web-maintenance-launch-pages'), 'whitelist_enabled' => __('Whitelist', '1001web-maintenance-launch-pages'), 'blacklist_enabled' => __('Blacklist', '1001web-maintenance-launch-pages'), 'sidebar_enabled' => __('Side panel', '1001web-maintenance-launch-pages'), 'parallax_enabled' => __('Parallax effect', '1001web-maintenance-launch-pages'), 'show_powered_by' => __('Credit on the page', '1001web-maintenance-launch-pages'), 'purge_data_on_uninstall' => __('Delete data on uninstall', '1001web-maintenance-launch-pages'), ]; foreach ($mgenius_expert_flags as $mgenius_flag => $mgenius_flag_label) { if (!empty($settings[$mgenius_flag])) { $mgenius_expert_active[] = $mgenius_flag_label; } } if (empty($settings['seo_503_enabled'])) { $mgenius_expert_active[] = __('HTTP 503 turned off', '1001web-maintenance-launch-pages'); } if (empty($settings['noindex_enabled'])) { $mgenius_expert_active[] = __('Noindex turned off', '1001web-maintenance-launch-pages'); } if (!empty($mgenius_expert_active)) : ?>

▶

📝

? ✓
▶

🗓️

? ✓

🗓️ ?

📊
🟢 getTimestamp()) : __('Not set', '1001web-maintenance-launch-pages') ); ?>
🔴 getTimestamp()) : __('Not set', '1001web-maintenance-launch-pages') ); ?>
🕐

💡

⚠️

▶

📧

? ✓ ○

📊 0): ?>

▶

⏰

? ✓
getOffset( $now ) / 3600; $tz_label = $wp_tz_string . ' (UTC' . ( $offset_hours >= 0 ? '+' : '' ) . $offset_hours . ')'; } catch ( Exception $e ) { $tz_label = $wp_tz_string; } $is_suspect = false; } else { $tz_label = 'UTC' . ( $wp_tz_offset >= 0 ? '+' : '' ) . $wp_tz_offset; // Détection suspecte : UTC sans offset = défaut WordPress jamais changé $is_suspect = ( $wp_tz_offset == 0 ); } ?>

00
00
00
00

✅
>✅
✅

💡

💡

'' !== $mgenius_site_name ? $mgenius_site_name : __('Our website', '1001web-maintenance-launch-pages'), 'tones' => array( 'pro' => array( array( /* translators: %s: site name */ 'title' => __('%s will be back shortly', '1001web-maintenance-launch-pages'), 'base' => __('We are updating our website.', '1001web-maintenance-launch-pages'), /* translators: %s: when the site is back, as typed by the user (e.g. "Monday at 9 a.m.") */ 'ret' => __('We will be back %s.', '1001web-maintenance-launch-pages'), 'noret' => __('We will be back very soon.', '1001web-maintenance-launch-pages'), /* translators: %s: phone number or email typed by the user */ 'contact' => __('In the meantime, you can reach us at %s.', '1001web-maintenance-launch-pages'), ) ), 'warm' => array( array( /* translators: %s: site name */ 'title' => __('%s is getting a makeover', '1001web-maintenance-launch-pages'), 'base' => __('We are polishing a few details to serve you better.', '1001web-maintenance-launch-pages'), /* translators: %s: when the site is back, as typed by the user */ 'ret' => __('See you %s!', '1001web-maintenance-launch-pages'), 'noret' => __('See you very soon!', '1001web-maintenance-launch-pages'), /* translators: %s: phone number or email typed by the user */ 'contact' => __('Need us right now? Reach us at %s.', '1001web-maintenance-launch-pages'), ) ), 'fun' => array( array( 'title' => __('Something good is in the oven', '1001web-maintenance-launch-pages'), /* translators: %s: site name */ 'base' => __('%s is baking.', '1001web-maintenance-launch-pages'), /* translators: %s: when the site is back, as typed by the user */ 'ret' => __('It will smell great %s!', '1001web-maintenance-launch-pages'), 'noret' => __('It will be ready very soon!', '1001web-maintenance-launch-pages'), /* translators: %s: phone number or email typed by the user */ 'contact' => __('Hungry already? Reach us at %s.', '1001web-maintenance-launch-pages'), ), array( /* translators: %s: site name */ 'title' => __('Coffee break for %s', '1001web-maintenance-launch-pages'), 'base' => __('We are recharging and coming back stronger.', '1001web-maintenance-launch-pages'), /* translators: %s: when the site is back, as typed by the user */ 'ret' => __('Back %s, fully caffeinated.', '1001web-maintenance-launch-pages'), 'noret' => __('Back in two sips.', '1001web-maintenance-launch-pages'), /* translators: %s: phone number or email typed by the user */ 'contact' => __('Can\'t wait? Reach us at %s.', '1001web-maintenance-launch-pages'), ), array( /* translators: %s: site name */ 'title' => __('%s is at the hairdresser', '1001web-maintenance-launch-pages'), 'base' => __('Cut, blow-dry and update.', '1001web-maintenance-launch-pages'), /* translators: %s: when the site is back, as typed by the user */ 'ret' => __('Back %s, looking sharp.', '1001web-maintenance-launch-pages'), 'noret' => __('Back very soon, looking sharp.', '1001web-maintenance-launch-pages'), /* translators: %s: phone number or email typed by the user */ 'contact' => __('Need us meanwhile? Reach us at %s.', '1001web-maintenance-launch-pages'), ), ), ), /* translators: %s: a time typed by the user (e.g. "9 am"); gives "We will be back at 9 am." */ 'at' => __('at %s', '1001web-maintenance-launch-pages'), 'hasPassword' => ! empty( $settings['visitor_password'] ), 'defaultTitle' => $settings['title'], 'defaultMessage' => $settings['message'], 'presets' => array_intersect_key( $presets, array_flip( $wizard_presets ) ), 'i18n' => array( 'launchingHtml' => esc_html__( 'Launching...', '1001web-maintenance-launch-pages' ), 'launchHtml' => esc_html__( 'Launch maintenance!', '1001web-maintenance-launch-pages' ), 'saveError' => __( 'The settings could not be saved. Please try again.', '1001web-maintenance-launch-pages' ), 'connError' => __( 'Connection error. Check your connection and try again.', '1001web-maintenance-launch-pages' ), ), ); wp_enqueue_script( 'mgenius-admin-wizard', MGENIUS_PLUGIN_URL . 'assets/js/admin-wizard.js', array( 'mgenius-admin-js' ), MGENIUS_VERSION, true ); wp_add_inline_script( 'mgenius-admin-wizard', 'var mgeniusWizard = ' . wp_json_encode( $mgenius_wizard_data ) . ';', 'before' ); ?>