-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaintenance.php
More file actions
39 lines (33 loc) · 1.33 KB
/
maintenance.php
File metadata and controls
39 lines (33 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/*
Template Name: Maintenance
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body class="bg-black relative">
<?php $img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full', false, '' ); ?>
<?php if ( has_post_thumbnail() ) : ?>
<div class="absolute inset-0">
<img class="h-full w-full object-cover" src="<?php echo $img[0]; ?>" alt="">
<div class="absolute inset-0 opacity-20 bg-black"></div>
</div>
<?php endif; ?>
<div class="text-center min-h-screen w-full md:w-1/2 md:mx-auto flex items-center justify-center text-white relative z-50">
<div>
<div class="logo mb-10">
<span class="sr-only"><?php echo get_bloginfo( 'name' );?></span>
<img class="h-5 w-auto mx-auto" src="<?php bloginfo("template_directory"); ?>/img/logo.svg" alt="<?php echo get_bloginfo( 'name' );?>" />
</div>
<article class="text-center">
<?php the_content(); ?>
</article>
</div>
</div>
<?php get_footer(); ?>