| @@ -1,33 +1,31 @@ | ||
| 1 | 1 | <!DOCTYPE html> |
| 2 | 2 | <html <?php language_attributes(); ?>> |
| 3 | - <head> | |
| 4 | - <meta charset="<?php bloginfo( 'charset' ); ?>"> | |
| 5 | - <meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
| 6 | - <title><?php echo esc_html__( 'Coming Soon', 'hostinger' ); ?></title> | |
| 7 | - <style> | |
| 8 | - html *:not(body):not(.hsr-coming-soon-body > *) { | |
| 9 | - display: none; | |
| 10 | - } | |
| 3 | +<head> | |
| 4 | + <meta charset="<?php bloginfo( 'charset' ); ?>"> | |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
| 6 | + <title><?php echo esc_html__( 'Coming Soon', 'hostinger' ); ?></title> | |
| 7 | + <?php if ( ( get_option( 'hostinger_maintenance_mode', 0 ) ) ) : ?> | |
| 8 | + <style> | |
| 9 | + html *:not(body):not(.hsr-coming-soon-body > *) { | |
| 10 | + display: none; | |
| 11 | + } | |
| 11 | 12 | |
| 12 | - .hsr-coming-soon-body { | |
| 13 | - display: flex !important; | |
| 14 | - } | |
| 15 | - </style> | |
| 16 | - </head> | |
| 17 | - <body class="hostinger"> | |
| 18 | - <div class="hsr-coming-soon-body"> | |
| 19 | - <img alt="logo" class="hsr-logo" | |
| 20 | - src="<?php echo esc_url( HOSTINGER_PLUGIN_URL . 'assets/images/logo-black.svg' ); ?>"> | |
| 21 | - <img alt="illustration" class="hsr-coming-soon-illustration" | |
| 22 | - src="<?php echo esc_url( HOSTINGER_PLUGIN_URL . 'assets/images/illustration.png' ); ?>"> | |
| 23 | - <h3> | |
| 24 | - <?php echo esc_html__( 'Coming Soon', 'hostinger' ); ?> | |
| 25 | - </h3> | |
| 26 | - <p> | |
| 27 | - <?php echo esc_html__( 'New WordPress website is being built and will be published soon', 'hostinger' ); ?> | |
| 28 | - </p> | |
| 29 | - </div> | |
| 13 | + .hsr-coming-soon-body { | |
| 14 | + display: flex !important; | |
| 15 | + } | |
| 16 | + </style> | |
| 17 | + <?php endif; ?> | |
| 18 | +</head> | |
| 19 | +<body class="hostinger"> | |
| 20 | +<div class="hsr-coming-soon-body"> | |
| 21 | + <img alt="logo" class="hsr-logo" | |
| 22 | + src="<?php echo esc_url( HOSTINGER_PLUGIN_URL . 'assets/images/logo-black.svg' ); ?>"> | |
| 23 | + <img alt="illustration" class="hsr-coming-soon-illustration" | |
| 24 | + src="<?php echo esc_url( HOSTINGER_PLUGIN_URL . 'assets/images/illustration.png' ); ?>"> | |
| 25 | + <h3><?php echo esc_html__( 'Coming Soon', 'hostinger' ); ?></h3> | |
| 26 | + <p><?php echo esc_html__( 'New WordPress website is being built and will be published soon', 'hostinger' ); ?></p> | |
| 27 | +</div> | |
| 30 | 28 | |
| 31 | - <?php wp_footer(); ?> | |
| 32 | - </body> | |
| 29 | +<?php wp_footer(); ?> | |
| 30 | +</body> | |
| 33 | 31 | </html> |