説明なし

interim.php 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. if (!defined('ABSPATH')) {
  3. exit;
  4. }
  5. global $interim_login;
  6. $customize_login = isset($_REQUEST['customize-login']);
  7. if ($customize_login) {
  8. wp_enqueue_script('customize-base');
  9. }
  10. $message = '<p class="message">' . __('You have logged in successfully.') . '</p>';
  11. $interim_login = 'success';
  12. ?><!DOCTYPE html>
  13. <!--[if IE 8]>
  14. <html xmlns="http://www.w3.org/1999/xhtml" class="ie8" <?php language_attributes(); ?>>
  15. <![endif]-->
  16. <!--[if !(IE 8) ]><!-->
  17. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  18. <!--<![endif]-->
  19. <head>
  20. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>"/>
  21. <title><?php __('You have logged in successfully.'); ?></title>
  22. </head>
  23. <body class="login interim-login interim-login-success">
  24. <?php
  25. echo $message;
  26. /** This action is documented in wp-login.php */
  27. do_action('login_footer'); ?>
  28. <?php if ($customize_login) : ?>
  29. <script type="text/javascript">setTimeout(function () {
  30. new wp.customize.Messenger({url: '<?php echo wp_customize_url(); ?>', channel: 'login'}).send(
  31. 'login');
  32. }, 1000);</script>
  33. <?php endif; ?>
  34. </body>
  35. </html>
  36. <?php exit;