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

add markup for mobile only view.

parent 94b0ad85
No related branches found
No related tags found
No related merge requests found
...@@ -11,11 +11,18 @@ ...@@ -11,11 +11,18 @@
if ($vars['config']->input['view'] == 'mobile') { if ($vars['config']->input['view'] == 'mobile') {
$viewmobile = '?view=mobile'; $viewmobile = '?view=mobile';
$mobile = true;
} else { } else {
$viewmobile = ''; $viewmobile = '';
$mobile = false;
} }
$ts = time(); $ts = time();
$token = generate_action_token($ts); $token = generate_action_token($ts);
?>
<?php
if ($mobile) {
echo '<div id="actionBar">';
}
?> ?>
<div id="casOption"> <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> <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>
...@@ -43,3 +50,8 @@ ...@@ -43,3 +50,8 @@
?> ?>
</div> </div>
</div> </div>
<?php
if ($mobile) {
echo '</div>';
}
?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment