Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 36
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2/**
3 * WordPress.com Site Helper Private Site Template.
4 *
5 * @package private-site
6 */
7
8namespace Private_Site;
9
10nocache_headers();
11header( 'Content-Type: ' . get_bloginfo( 'html_type' ) . '; charset=' . get_bloginfo( 'charset' ) );
12
13?><!DOCTYPE html>
14<!--[if IE 8]>
15<html xmlns="http://www.w3.org/1999/xhtml" class="ie8" <?php language_attributes(); ?>>
16<![endif]-->
17<!--[if !(IE 8) ]><!-->
18<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
19<!--<![endif]-->
20<head>
21    <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
22    <meta name="viewport" content="width=device-width, initial-scale=1">
23    <title><?php bloginfo( 'name' ); ?></title>
24
25    <?php
26    print_rest_api_discovery_link();
27
28    wp_enqueue_style( 'recoleta-font', '//s1.wp.com/i/fonts/recoleta/css/400.min.css', array(), WPCOMSH_VERSION );
29    wp_enqueue_style( 'wpcomsh-coming-soon-style', plugins_url( 'style.css', __FILE__ ), array(), WPCOMSH_VERSION );
30    do_action( 'login_enqueue_scripts' );
31    do_action( 'login_head' );
32
33    $classes = array( 'wp-core-ui' );
34    if ( is_rtl() ) {
35        $classes[] = 'rtl';
36    }
37    $classes[] = ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
38
39    $login_link = site_url() . '/wp-login.php?redirect_to=' . set_url_scheme( original_request_url() );
40    ?>
41</head>
42<body class="body wpcom-coming-soon-private-default-body">
43    <div class="inner">
44        <div class="main">
45            <div class="name"><?php echo esc_html( get_bloginfo( 'name' ) ); ?></div>
46            <div class="description"><?php esc_html_e( 'Coming Soon', 'wpcomsh' ); ?></div>
47        </div>
48        <div class="marketing">
49            <?php if ( ! is_user_logged_in() ) : ?>
50                <div class="marketing-copy">
51                    <img src="https://s2.wp.com/wp-content/themes/a8c/domain-landing-page/wpcom-wmark-white.svg" alt="WordPress.com" class="logo" />
52                    <p class="copy"><?php esc_html_e( 'Build a website. Sell your stuff. Write a blog. And so much more.', 'wpcomsh' ); ?></p>
53                </div>
54                <div class="marketing-buttons">
55                    <p><a class="button button-secondary" href="<?php echo esc_url( $login_link ); ?>"><?php esc_html_e( 'Log in', 'wpcomsh' ); ?></a></p>
56                    <p><a class="button button-primary " href="https://wordpress.com/start/?ref=coming_soon"><?php esc_html_e( 'Start your website', 'wpcomsh' ); ?></a></p>
57                </div>
58            <?php endif; ?>
59        </div>
60    </div>
61</div>
62<?php wp_footer(); ?>
63</body>
64</html>