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

check if user is on the elgg login page, and if so don't display the action bar.

parent 7bdcd385
No related branches found
No related tags found
No related merge requests found
......@@ -12,13 +12,27 @@
return ' class="selected"';
}
}
function inURL($needle)
{
if (stristr($_SERVER['REQUEST_URI'], $needle)) {
return true;
} else {
return false;
}
}
?>
<?php
?>
<?php
if (!isloggedin()) :
echo '<div id="actionBar" class="casLogin">';
echo elgg_view('account/forms/login');
echo '</div>';
if (!inURL('pg/login')) :
echo '<div id="actionBar" class="casLogin">';
echo elgg_view('account/forms/login');
echo '</div>';
endif;
else :
?>
<ul class="wdn_tabs disableSwitching">
......@@ -83,8 +97,4 @@
</form>
</div>
<?php endif; ?>
<div class="clear"></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