Make WordPress Core

Ticket #25478: 25478.1.diff

File 25478.1.diff, 8.3 KB (added by cuvelier, 12 years ago)

added 2013 styles

  • wp-signup.php

     
    7676do_action( 'before_signup_form' );
    7777?>
    7878<div id="content" class="widecolumn">
    79 <div class="mu_register">
     79<div class="mu_register ms-signup-container">
    8080<?php
    8181/**
    8282 * Generates and displays the Signup and Create Site forms
  • wp-content/themes/twentythirteen/style.css

     
    23512351 * ----------------------------------------------------------------------------
    23522352 */
    23532353
    2354 .site-main .mu_register {
     2354.site-main .mu_register,
     2355.ms-activate-container {
    23552356        margin: 0 auto;
    23562357        max-width: 604px;
    23572358        width: 100%;
     
    23612362        margin-top: 25px;
    23622363}
    23632364
     2365.site-main .ms-activate-container input[type="submit"],
    23642366.site-main .mu_register input[type="submit"],
    23652367.site-main .mu_register #blog_title,
    23662368.site-main .mu_register #user_email,
     
    23702372        width: 270px;
    23712373}
    23722374
    2373 .site-main .mu_register input[type="submit"] {
     2375.site-main .mu_register input[type="submit"],
     2376.site-main .ms-activate-container input[type="submit"] {
    23742377        width: auto;
    23752378}
    23762379
  • wp-activate.php

     
    5454function wpmu_activate_stylesheet() {
    5555        ?>
    5656        <style type="text/css">
    57                 form { margin-top: 2em; }
    58                 #submit, #key { width: 90%; font-size: 24px; }
     57                .ms-activate-container form { margin-top: 2em; }
    5958                #language { margin-top: .5em; }
    6059                .error { background: #f66; }
    6160                span.h3 { padding: 0 8px; font-size: 1.3em; font-family: "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif; font-weight: bold; color: #333; }
     
    6867?>
    6968
    7069<div id="content" class="widecolumn">
    71         <?php if ( empty($_GET['key']) && empty($_POST['key']) ) { ?>
     70        <div class="ms-activate-container">
     71                <?php if ( empty($_GET['key']) && empty($_POST['key']) ) { ?>
    7272
    73                 <h2><?php _e('Activation Key Required') ?></h2>
    74                 <form name="activateform" id="activateform" method="post" action="<?php echo network_site_url('wp-activate.php'); ?>">
    75                         <p>
    76                             <label for="key"><?php _e('Activation Key:') ?></label>
    77                             <br /><input type="text" name="key" id="key" value="" size="50" />
    78                         </p>
    79                         <p class="submit">
    80                             <input id="submit" type="submit" name="Submit" class="submit" value="<?php esc_attr_e('Activate') ?>" />
    81                         </p>
    82                 </form>
     73                        <h2><?php _e('Activation Key Required') ?></h2>
     74                        <form name="activateform" id="activateform" method="post" action="<?php echo network_site_url('wp-activate.php'); ?>">
     75                                <p>
     76                                    <label for="key"><?php _e('Activation Key:') ?></label>
     77                                    <br /><input type="text" name="key" id="key" value="" size="50" />
     78                                </p>
     79                                <p class="submit">
     80                                    <input id="submit" type="submit" name="Submit" class="submit" value="<?php esc_attr_e('Activate') ?>" />
     81                                </p>
     82                        </form>
    8383
    84         <?php } else {
     84                <?php } else {
    8585
    86                 $key = !empty($_GET['key']) ? $_GET['key'] : $_POST['key'];
    87                 $result = wpmu_activate_signup($key);
    88                 if ( is_wp_error($result) ) {
    89                         if ( 'already_active' == $result->get_error_code() || 'blog_taken' == $result->get_error_code() ) {
    90                             $signup = $result->get_error_data();
    91                                 ?>
    92                                 <h2><?php _e('Your account is now active!'); ?></h2>
    93                                 <?php
    94                                 echo '<p class="lead-in">';
    95                                 if ( $signup->domain . $signup->path == '' ) {
    96                                         printf( __('Your account has been activated. You may now <a href="%1$s">log in</a> to the site using your chosen username of &#8220;%2$s&#8221;. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.'), network_site_url( 'wp-login.php', 'login' ), $signup->user_login, $signup->user_email, wp_lostpassword_url() );
     86                        $key = !empty($_GET['key']) ? $_GET['key'] : $_POST['key'];
     87                        $result = wpmu_activate_signup($key);
     88                        if ( is_wp_error($result) ) {
     89                                if ( 'already_active' == $result->get_error_code() || 'blog_taken' == $result->get_error_code() ) {
     90                                    $signup = $result->get_error_data();
     91                                        ?>
     92                                        <h2><?php _e('Your account is now active!'); ?></h2>
     93                                        <?php
     94                                        echo '<p class="lead-in">';
     95                                        if ( $signup->domain . $signup->path == '' ) {
     96                                                printf( __('Your account has been activated. You may now <a href="%1$s">log in</a> to the site using your chosen username of &#8220;%2$s&#8221;. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.'), network_site_url( 'wp-login.php', 'login' ), $signup->user_login, $signup->user_email, wp_lostpassword_url() );
     97                                        } else {
     98                                                printf( __('Your site at <a href="%1$s">%2$s</a> is active. You may now log in to your site using your chosen username of &#8220;%3$s&#8221;. Please check your email inbox at %4$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%5$s">reset your password</a>.'), 'http://' . $signup->domain, $signup->domain, $signup->user_login, $signup->user_email, wp_lostpassword_url() );
     99                                        }
     100                                        echo '</p>';
    97101                                } else {
    98                                         printf( __('Your site at <a href="%1$s">%2$s</a> is active. You may now log in to your site using your chosen username of &#8220;%3$s&#8221;. Please check your email inbox at %4$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%5$s">reset your password</a>.'), 'http://' . $signup->domain, $signup->domain, $signup->user_login, $signup->user_email, wp_lostpassword_url() );
     102                                        ?>
     103                                        <h2><?php _e('An error occurred during the activation'); ?></h2>
     104                                        <?php
     105                                    echo '<p>'.$result->get_error_message().'</p>';
    99106                                }
    100                                 echo '</p>';
    101107                        } else {
     108                                extract($result);
     109                                $url = get_blogaddress_by_id( (int) $blog_id);
     110                                $user = get_userdata( (int) $user_id);
    102111                                ?>
    103                                 <h2><?php _e('An error occurred during the activation'); ?></h2>
    104                                 <?php
    105                             echo '<p>'.$result->get_error_message().'</p>';
    106                         }
    107                 } else {
    108                         extract($result);
    109                         $url = get_blogaddress_by_id( (int) $blog_id);
    110                         $user = get_userdata( (int) $user_id);
    111                         ?>
    112                         <h2><?php _e('Your account is now active!'); ?></h2>
     112                                <h2><?php _e('Your account is now active!'); ?></h2>
    113113
    114                         <div id="signup-welcome">
    115                                 <p><span class="h3"><?php _e('Username:'); ?></span> <?php echo $user->user_login ?></p>
    116                                 <p><span class="h3"><?php _e('Password:'); ?></span> <?php echo $password; ?></p>
    117                         </div>
     114                                <div id="signup-welcome">
     115                                        <p><span class="h3"><?php _e('Username:'); ?></span> <?php echo $user->user_login ?></p>
     116                                        <p><span class="h3"><?php _e('Password:'); ?></span> <?php echo $password; ?></p>
     117                                </div>
    118118
    119                         <?php if ( $url != network_home_url('', 'http') ) : ?>
    120                                 <p class="view"><?php printf( __('Your account is now activated. <a href="%1$s">View your site</a> or <a href="%2$s">Log in</a>'), $url, $url . 'wp-login.php' ); ?></p>
    121                         <?php else: ?>
    122                                 <p class="view"><?php printf( __('Your account is now activated. <a href="%1$s">Log in</a> or go back to the <a href="%2$s">homepage</a>.' ), network_site_url('wp-login.php', 'login'), network_home_url() ); ?></p>
    123                         <?php endif;
     119                                <?php if ( $url != network_home_url('', 'http') ) : ?>
     120                                        <p class="view"><?php printf( __('Your account is now activated. <a href="%1$s">View your site</a> or <a href="%2$s">Log in</a>'), $url, $url . 'wp-login.php' ); ?></p>
     121                                <?php else: ?>
     122                                        <p class="view"><?php printf( __('Your account is now activated. <a href="%1$s">Log in</a> or go back to the <a href="%2$s">homepage</a>.' ), network_site_url('wp-login.php', 'login'), network_home_url() ); ?></p>
     123                                <?php endif;
     124                        }
    124125                }
    125         }
    126         ?>
     126                ?>
     127        </div>
    127128</div>
    128129<script type="text/javascript">
    129130        var key_input = document.getElementById('key');