Permalink
Browse files

ログイン画面のフッタ作成

  • Loading branch information...
ma-ito
ma-ito committed Nov 18, 2012
1 parent 840d74e commit 2c9bb9f54a50654c005548b27eab8cffaf4482f3
Showing with 77 additions and 10 deletions.
  1. BIN login/16_email.png
  2. +53 −5 login/login.css
  3. +24 −5 wp-login.php
View
Binary file not shown.
View
@@ -3,22 +3,31 @@
padding: 0;
border: 0;
}
+html {
+ height: 100%;
+}
body {
background: #fff;
text-align:center;
-webkit-text-size-adjust: none;
margin: 0;
padding: 0;
+ height: 100%;
+}
+#container {
+ position: relative;
+ height: 100%;
+ min-height: 700px;
}
-.container {
- background: url(main.jpg);
+#main{
position: relative;
display: inline-block;
- height: 643px;
+ height: 100%;
+ min-height: 643px;
font-size: 0;
line-height: 0;
}
-.container:after {
+#main:after {
position: absolute;
left: 0; top: 0; right: 0; bottom: 0;
-moz-box-shadow: inset 0px 0px 15px 15px #fff;
@@ -27,9 +36,11 @@ body {
content: " ";
}
-#widget {
+#content {
+ background: url(main.jpg) no-repeat;
margin: 0 auto;
width: 979px;
+ height: 643px;
}
.login {
font-size: 10pt;
@@ -93,6 +104,43 @@ body {
z-index: 1;
}
+#footer {
+ position: absolute;
+ color: #fff;
+ background: #3c6094;
+ margin: 0 auto;
+ width: 100%;
+ height: 50px;
+ bottom: 0;
+ font-family: Arial, Tahoma, Verdana, sans-serif;
+ font-size: 14px;
+ line-height: 170%;
+}
+#footer .padder {
+ margin: 15px auto;
+ width: 900px;
+}
+#footer .copyright {
+ float: left;
+}
+#footer .contact-us {
+ float: right;
+}
+#footer img {
+ vertical-align: -3px;
+}
+#footer a {
+ color: #fff;
+ text-decoration: none;
+}
+#footer a p {
+ display: inline;
+ margin-left: 5px;
+}
+#footer a:hover {
+ text-decoration: underline;
+}
+
#login_error {
display: block;
position: absolute;
View
@@ -11,6 +11,22 @@
/** Make sure that the WordPress bootstrap has run before continuing. */
require( dirname(__FILE__) . '/wp-load.php' );
+function cc_login_footer() {
+ ?>
+ <div id="footer">
+ <div class="padder">
+ <div class="copyright">
+ <p>&copy; <?php echo date('Y') ?> Clover Cafe. All rights reserved.</p>
+ </div>
+ <div class="contact-us">
+ <a href="mailto:<?php echo get_option('admin_email'); ?>"><img src="<?php echo $root_dir.'login/16_email.png'?>" alt="Email" /><p>お問い合わせ</p></a>
+ </div>
+ </div><!-- .padder -->
+ </div><!-- #footer -->
+ <?php
+}
+add_action( 'login_footer', 'cc_login_footer' );
+
// Redirect to https login if forced to use SSL
if ( force_ssl_admin() && !is_ssl() ) {
if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) {
@@ -128,7 +144,10 @@ function login_header($title = 'Log In', $message = '', $wp_error = '') {
echo '<p class="message">' . apply_filters('login_messages', $messages) . "</p>\n";
}
- ?><div class="container"><?php
+ ?>
+ <div id="container">
+ <div id="main">
+<?php
} // End of login_header()
/**
@@ -140,7 +159,6 @@ function login_footer($input_id = '') {
global $interim_login;
?>
- </div>
<?php if ( !empty($input_id) ) : ?>
<script type="text/javascript">
@@ -151,6 +169,7 @@ function login_footer($input_id = '') {
<?php do_action('login_footer'); ?>
<div class="clear"></div>
+ </div><!-- #container -->
</body>
</html>
<?php
@@ -670,7 +689,7 @@ function register_new_user( $user_login, $user_email ) {
$rememberme = ! empty( $_POST['rememberme'] );
?>
-<div id="widget">
+<div id="content">
<form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
<p>
<?php if ( wp_is_mobile() ) : ?>
@@ -721,8 +740,8 @@ function register_new_user( $user_login, $user_email ) {
<?php endif; ?>
</p>
<?php } ?>
-</div>
-</div>
+</div><!-- #content -->
+</div><!-- #main -->
<script type="text/javascript">
function wp_attempt_focus(){

0 comments on commit 2c9bb9f

Please sign in to comment.