-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.php
52 lines (49 loc) · 2.34 KB
/
index.php
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
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* The base (and only) template
*
* @package WordPress
* @subpackage intentionally-blank
*/
$blank_show_footer = get_theme_mod( 'blank_show_copyright', true );
$blank_show_header = get_theme_mod( 'header_text', false );
$blank_description = get_bloginfo( 'description', 'display' );
?><!DOCTYPE html>
<html <?php language_attributes(); ?>><head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
html,body{min-height:100%;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4em;margin:0}
body{background-color: #f5f5f5; background-size:cover}
<?php if ( $blank_show_header ) : ?>
.site-title-bg{background:rgba(0,0,0,0.5);color:#fff;padding:5px;text-align:center}
.site-title h1,.site-title p{font-size:16px;display:inline-block;padding:5px 0 5px 5px;margin:0}
.site-title h1 a{color:#fff;font-weight:700;text-decoration:none}
<?php endif; ?>
<?php if ( has_custom_logo() ) : ?>
.custom-logo{display:block;position:absolute;left:50%;top:50%;-ms-transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);max-width:100%;height:auto}
<?php endif; ?>
<?php if ( $blank_show_footer ) : ?>
#colophon{position:absolute;width:100%;left:0;bottom:0;padding:10px 0;text-align:center;color:#333;background-color:rgba(241,241,241,0.4)}
#colophon a{text-decoration:none; color: #333;}
<?php endif; ?></style>
<?php wp_head(); ?>
</head><body <?php body_class(); ?>><?php wp_body_open(); ?><div id="page">
<?php if ( $blank_show_header ) : ?>
<div class="site-title"><div class="site-title-bg">
<h1><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<?php if ( $blank_description || is_customize_preview() ) : ?>
<p class="site-description"><?php echo esc_html( $blank_description ); ?></p>
<?php endif; ?>
</div></div>
<?php endif; ?>
<?php the_custom_logo(); ?>
<?php if ( $blank_show_footer ) : ?>
<footer id="colophon" class="site-footer">
<div class="site-info">
<?php echo wp_kses_post( get_theme_mod( 'blank_copyright', __( 'Intentionally Blank - Proudly powered by WordPress', 'intentionally-blank' ) ) ); ?>
</div>
</footer>
<?php endif; ?>
</div><!-- #page -->
<?php wp_footer(); ?></body></html>