Commit 26b74179 authored by Seth Meranda's avatar Seth Meranda
Browse files

add markup for mobile only view.

parent 94b0ad85
......@@ -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&amp;__elgg_ts=<?php echo $ts; ?>&amp;__elgg_token=<?php echo $token; ?><?php echo str_replace('?', '&amp;', $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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment