Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dkuzelka2
PlanetRed
Commits
a5eeff1b
Commit
a5eeff1b
authored
Sep 30, 2010
by
Seth Meranda
Browse files
check if user is on the elgg login page, and if so don't display the action bar.
parent
7bdcd385
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/unl_theme/views/default/page_elements/unl_nav.php
View file @
a5eeff1b
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment