Skip to content
Snippets Groups Projects
Commit ee11573b authored by Seth Meranda's avatar Seth Meranda
Browse files

adjust login form markup for new functionality.

parent 6de80fb7
No related branches found
No related tags found
No related merge requests found
...@@ -14,27 +14,35 @@ ...@@ -14,27 +14,35 @@
else else
$viewmobile = ''; $viewmobile = '';
?> ?>
<div id="actionBar" class="casLogin">
<div id="casOption">
<div id="login"> <a href="<?php echo $vars['url'] ?>action/login?usecas=yes&__elgg_ts=<?php echo $ts; ?>&__elgg_token=<?php echo $token; ?>&<?php echo $viewmobile;?>" id="casLogin">Login</a>
<div class="two_col left"> <?php
<h2 class="sec_main">Students, Faculty, Staff</h2> $ts = time();
<p>Use your my.UNL Single Sign-on account to begin.</p> $token = generate_action_token($ts);
<?php ?>
$ts = time(); <div class="loginMessage">
$token = generate_action_token($ts); with your My.UNL Account<br />
?> <span>for Faculty, Staff and Students</span>
<a href="<?php echo $vars['url'] ?>action/login?usecas=yes&__elgg_ts=<?php echo $ts; ?>&__elgg_token=<?php echo $token; ?>&<?php echo $viewmobile;?>" class="wdn_loginLink"><span>UNL Login</span></a> </div>
<p style="clear:both;padding-top:15px"><a href="https://login.unl.edu/faq/account-resetpw.shtml" title="Find your my.UNL password">Lost your my.UNL password?</a></p> </div>
</div> <div id="elggOption">
<div class="two_col right"> <a href="#" class="switchAction"></a>
<h2 class="sec_main">Huskers Worldwide</h2> <div class="optionMessage">
<?php Don't have a My.UNL Account?
$form_body = '<p class="login-box"><label>' . elgg_echo('username') . '<br />' . elgg_view('input/text', array('internalname' => 'username', 'class' => 'login-textarea')) . '</label><br />'; <ul>
$form_body .= '<label>' . elgg_echo('password') . '<br />' . elgg_view('input/password', array('internalname' => 'password', 'class' => 'login-textarea')) . '</label><br />'; <li><a href="#" class="switchAction">Login</a></li>
$form_body .= elgg_view('input/submit', array('value' => elgg_echo('login'))) . '</p>'; <li><a href="#">Register</a></li>
$form_body .= '<p><a href="'. $vars['url'] .'account/register.php?'.$viewmobile.'">' . elgg_echo('register') . '</a> | <a href="'. $vars['url'] .'account/forgotten_password.php?'.$viewmobile.'">' . elgg_echo('user:password:lost') . '</a></p>'; </ul>
echo elgg_view('input/form', array('body' => $form_body, 'action' => "". $vars['url'] ."action/login")); </div>
?> <div class="elggLoginForm">
</div> <?php
</div> $form_body = '<div class="element"><label>' . elgg_echo('username') .'</label>'. elgg_view('input/text', array('internalname' => 'username', 'class' => 'login-textarea')) . '</div>';
\ No newline at end of file $form_body .= '<div class="element"><label>' . elgg_echo('password') .'</label>'. elgg_view('input/password', array('internalname' => 'password', 'class' => 'login-textarea')) . '</div>';
$form_body .= elgg_view('input/submit', array('value' => elgg_echo('login')));
$form_body .= '<ul><li><a href="'. $vars['url'] .'account/register.php?'.$viewmobile.'">' . elgg_echo('register') . '</a></li> <li><a href="'. $vars['url'] .'account/forgotten_password.php?'.$viewmobile.'">' . elgg_echo('user:password:lost') . '</a></li></ul>';
echo elgg_view('input/form', array('body' => $form_body, 'action' => "". $vars['url'] ."action/login"));
?>
</div>
</div>
</div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment