File tree Expand file tree Collapse file tree 1 file changed +61
-10
lines changed Expand file tree Collapse file tree 1 file changed +61
-10
lines changed Original file line number Diff line number Diff line change 8
8
$ current_user = wp_get_current_user ();
9
9
10
10
$ url = site_url ( 'wp-login.php?action=oauth1_authorize ' , 'login_post ' );
11
+
11
12
?>
12
13
14
+ <style>
15
+
16
+ .login-title {
17
+ margin-bottom: 15px;
18
+ }
19
+
20
+ .login-info .avatar {
21
+ margin-right: 15px;
22
+ margin-bottom: 15px;
23
+ float: left;
24
+ }
25
+
26
+ #login form .login-info p {
27
+ margin-bottom: 15px;
28
+ }
29
+
30
+ /** Note - login scope has not yet been implemented. **/
31
+ .login-scope {
32
+ clear: both;
33
+ margin-bottom: 15px;
34
+ }
35
+
36
+ .login-scope h4 {
37
+ margin-bottom: 10px;
38
+ }
39
+
40
+ .login-scope ul {
41
+ margin-left: 1.5em;
42
+ }
43
+
44
+ .submit {
45
+ clear: both;
46
+ }
47
+
48
+ .submit .button {
49
+ margin-right: 10px;
50
+ float: left;
51
+ }
52
+
53
+ </style>
54
+
13
55
<form name="oauth1_authorize_form" id="oauth1_authorize_form" action="<?php echo esc_url ( $ url ); ?> " method="post">
14
56
15
- <h2><?php echo esc_html ( sprintf ( __ ('Connect %1$s ' ), $ consumer ->post_title ) ) ?> </h2>
16
- <p><?php
17
- printf (
18
- __ ( 'Howdy <strong>%1$s</strong>, "%2$s" would like to connect to %3$s. ' ),
19
- $ current_user ->user_login ,
20
- $ consumer ->post_title ,
21
- get_bloginfo ( 'name ' )
22
- )
23
- ?> </p>
57
+ <h2 class="login-title"><?php echo esc_html ( sprintf ( __ ('Connect %1$s ' ), $ consumer ->post_title ) ) ?> </h2>
58
+
59
+ <div class="login-info">
60
+
61
+ <?php echo get_avatar ( $ current_user ->ID , '78 ' ); ?>
62
+
63
+ <p><?php
64
+ printf (
65
+ __ ( 'Howdy <strong>%1$s</strong>,<br/> "%2$s" would like to connect to %3$s. ' ),
66
+ $ current_user ->user_login ,
67
+ $ consumer ->post_title ,
68
+ get_bloginfo ( 'name ' )
69
+ )
70
+ ?> </p>
71
+
72
+ </div>
73
+
24
74
<?php
25
75
/**
26
76
* Fires inside the lostpassword <form> tags, before the hidden fields.
29
79
*/
30
80
do_action ( 'oauth1_authorize_form ' , $ consumer ); ?>
31
81
<p class="submit">
32
- <button type="submit" name="wp-submit" value="cancel" class="button button-primary button-large"><?php _e ('Cancel ' ); ?> </button>
33
82
<button type="submit" name="wp-submit" value="authorize" class="button button-primary button-large"><?php _e ('Authorize ' ); ?> </button>
83
+ <button type="submit" name="wp-submit" value="cancel" class="button button-large"><?php _e ('Cancel ' ); ?> </button>
34
84
</p>
85
+
35
86
</form>
36
87
37
88
<p id="nav">
You can’t perform that action at this time.
0 commit comments