diff options
| author | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-22 17:27:16 -0400 |
|---|---|---|
| committer | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-22 17:27:56 -0400 |
| commit | 5578b7a578cd9b2e8045d65c883a355f7a9f5394 (patch) | |
| tree | aaa3e7af76b4c074c1d349c3de2daf03f0556a88 /phpBB | |
| parent | 0be81468e7f61b8c2fc1c9729ff5d217c7424026 (diff) | |
| download | forums-5578b7a578cd9b2e8045d65c883a355f7a9f5394.tar forums-5578b7a578cd9b2e8045d65c883a355f7a9f5394.tar.gz forums-5578b7a578cd9b2e8045d65c883a355f7a9f5394.tar.bz2 forums-5578b7a578cd9b2e8045d65c883a355f7a9f5394.tar.xz forums-5578b7a578cd9b2e8045d65c883a355f7a9f5394.zip | |
[feature/oauth] Initial UI element added, this is non-final
At this point, all UI changes are purely for testing and should not
be considered final.
PHPBB3-11673
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/includes/functions.php | 7 | ||||
| -rw-r--r-- | phpBB/styles/prosilver/template/login_body.html | 7 |
2 files changed, 13 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 1bb9cc8299..bbe3033fb5 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -3373,6 +3373,13 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa { $auth_provider = $phpbb_container->get('auth.provider.oauth'); $oauth_box_data = $auth_provider->get_login_data(); + foreach ($oauth_box_data as $service_name => $data) + { + $template->assign_block_vars('oauth', array( + 'SERVICE_NAME' => $service_name, + 'REDIRECT_URL' => $data['url'], + )); + } } $s_hidden_fields = build_hidden_fields($s_hidden_fields); diff --git a/phpBB/styles/prosilver/template/login_body.html b/phpBB/styles/prosilver/template/login_body.html index 85a47be4ad..64b3915a1b 100644 --- a/phpBB/styles/prosilver/template/login_body.html +++ b/phpBB/styles/prosilver/template/login_body.html @@ -49,7 +49,12 @@ </div><!-- IF OAUTH_LOGIN --> <div class="content"> - + <!-- BEGIN oauth --> + <dl> + <dt> </dt> + <dd><a href="{oauth.REDIRECT_URL}" class="button2">{oauth.SERVICE_NAME}</a></dd> + </dl> + <!-- END oauth --> </div><!-- ENDIF --> </div> </div> |
