Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 35 |
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 | |
| 8 | namespace Private_Site; |
| 9 | |
| 10 | nocache_headers(); |
| 11 | header( '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 | wp_enqueue_style( 'recoleta-font', '//s1.wp.com/i/fonts/recoleta/css/400.min.css', array(), WPCOMSH_VERSION ); |
| 27 | wp_enqueue_style( 'wpcomsh-coming-soon-style', plugins_url( 'style.css', __FILE__ ), array(), WPCOMSH_VERSION ); |
| 28 | do_action( 'login_enqueue_scripts' ); |
| 29 | do_action( 'login_head' ); |
| 30 | |
| 31 | $classes = array( 'wp-core-ui' ); |
| 32 | if ( is_rtl() ) { |
| 33 | $classes[] = 'rtl'; |
| 34 | } |
| 35 | $classes[] = ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) ); |
| 36 | |
| 37 | $login_link = site_url() . '/wp-login.php?redirect_to=' . set_url_scheme( original_request_url() ); |
| 38 | ?> |
| 39 | </head> |
| 40 | <body class="body wpcom-coming-soon-private-default-body"> |
| 41 | <div class="inner"> |
| 42 | <div class="main"> |
| 43 | <div class="name"><?php echo esc_html( get_bloginfo( 'name' ) ); ?></div> |
| 44 | <div class="description"><?php esc_html_e( 'Coming Soon', 'wpcomsh' ); ?></div> |
| 45 | </div> |
| 46 | <div class="marketing"> |
| 47 | <?php if ( ! is_user_logged_in() ) : ?> |
| 48 | <div class="marketing-copy"> |
| 49 | <img src="https://s2.wp.com/wp-content/themes/a8c/domain-landing-page/wpcom-wmark-white.svg" alt="WordPress.com" class="logo" /> |
| 50 | <p class="copy"><?php esc_html_e( 'Build a website. Sell your stuff. Write a blog. And so much more.', 'wpcomsh' ); ?></p> |
| 51 | </div> |
| 52 | <div class="marketing-buttons"> |
| 53 | <p><a class="button button-secondary" href="<?php echo esc_url( $login_link ); ?>"><?php esc_html_e( 'Log in', 'wpcomsh' ); ?></a></p> |
| 54 | <p><a class="button button-primary " href="https://wordpress.com/start/?ref=coming_soon"><?php esc_html_e( 'Start your website', 'wpcomsh' ); ?></a></p> |
| 55 | </div> |
| 56 | <?php endif; ?> |
| 57 | </div> |
| 58 | </div> |
| 59 | </div> |
| 60 | <?php wp_footer(); ?> |
| 61 | </body> |
| 62 | </html> |