diff --git a/plugins/cas_auth_unl/views/default/account/forms/login.php b/plugins/cas_auth_unl/views/default/account/forms/login.php index 3b43ee2fa6f95fdce340ef145e67b41f03fb53c5..29410d62751e2cc1450e51abd27d5f66318f83b8 100644 --- a/plugins/cas_auth_unl/views/default/account/forms/login.php +++ b/plugins/cas_auth_unl/views/default/account/forms/login.php @@ -11,11 +11,18 @@ if ($vars['config']->input['view'] == 'mobile') { $viewmobile = '?view=mobile'; + $mobile = true; } else { $viewmobile = ''; + $mobile = false; } $ts = time(); $token = generate_action_token($ts); +?> +<?php +if ($mobile) { + echo '<div id="actionBar">'; +} ?> <div id="casOption"> <a href="<?php echo $vars['url'] ?>action/login?usecas=yes&__elgg_ts=<?php echo $ts; ?>&__elgg_token=<?php echo $token; ?><?php echo str_replace('?', '&', $viewmobile);?>" id="casLogin">Login</a> @@ -42,4 +49,9 @@ echo elgg_view('input/form', array('body' => $form_body, 'action' => "". $vars['url'] ."action/login")); ?> </div> - </div> \ No newline at end of file + </div> +<?php +if ($mobile) { + echo '</div>'; +} +?> \ No newline at end of file