Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PlanetRed
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Experience Group
PlanetRed
Commits
0a02b7ff
Commit
0a02b7ff
authored
14 years ago
by
Matthew Juhl
Browse files
Options
Downloads
Patches
Plain Diff
Remove unl_nav...it turns out it's unnecessary
parent
5f17a230
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/mobile_unl/views/mobile/page_elements/unl_nav.php
+0
-134
0 additions, 134 deletions
plugins/mobile_unl/views/mobile/page_elements/unl_nav.php
with
0 additions
and
134 deletions
plugins/mobile_unl/views/mobile/page_elements/unl_nav.php
deleted
100644 → 0
+
0
−
134
View file @
5f17a230
<?php
/**
* Elgg navigtion for UNL template college nav
* The standard elgg top toolbar
*
*/
?>
<?php
//set the current page tab
function
setSelectedTab
(
$linkPath
)
{
if
(
stristr
(
$_SERVER
[
'REQUEST_URI'
],
$linkPath
)){
return
' class="selected"'
;
}
}
?>
<?php
if
(
!
isloggedin
())
{
?>
<div
class=
"wdn_notice"
id=
"officialMessage"
>
<div
class=
"message"
>
<div
class=
"message_sale"
>
<h4>
Planet Red is
<strong>
your
</strong>
UNL Social Network.
</h4>
<h6>
Put Yourself on the Map
</h6>
</div>
<div
class=
"message_action"
>
<a
href=
"
<?php
echo
$vars
[
'url'
];
?>
account/register.php"
title=
"Register to join Planet Red"
><span>
Join now
</span></a>
</div>
<div
class=
"message_action"
style=
"margin-left:28px;font-size:1.3em;width:97px;"
>
or
<a
href=
"
<?php
echo
$vars
[
'url'
];
?>
pg/login"
id=
"loginLink"
><strong>
Login
</strong></a>
</div>
</div>
</div>
<?php
//This is the login details hidden with CSS and displayed in the colorbox. With CAS enabled this comes from cas_auth_unl views folder?>
<
div
class
=
"hidden"
>
<?
php
echo
elgg_view
(
'account/forms/login'
);
?>
</div>
<?php
}
?>
<?php
if
(
isloggedin
())
{
?>
<ul
class=
"wdn_tabs disableSwitching"
>
<li>
<a
href=
"
<?php
echo
$_SESSION
[
'user'
]
->
getURL
();
?>
"
><span
style=
"background:url('
<?php
echo
$_SESSION
[
'user'
]
->
getIcon
(
'topbar'
);
?>
') no-repeat; padding-left:20px;"
>
Profile
</span></a>
</li>
<li
<?php
echo
setSelectedTab
(
'pg/dashboard/'
);
?>
>
<a
href=
"
<?php
echo
$vars
[
'url'
];
?>
pg/dashboard/"
><span>
<?php
echo
elgg_echo
(
'dashboard'
);
?>
</span></a>
</li>
<?php
// recreate tools menu compatible with UNL template
$menu
=
get_register
(
'menu'
);
if
(
is_array
(
$menu
)
&&
sizeof
(
$menu
)
>
0
)
{
$alphamenu
=
array
();
foreach
(
$menu
as
$item
)
{
$alphamenu
[
$item
->
name
]
=
$item
;
}
ksort
(
$alphamenu
);
foreach
(
$alphamenu
as
$item
)
{
$requestURI
=
explode
(
$vars
[
'url'
],
$item
->
value
);
$selectedTab
=
setSelectedTab
(
$requestURI
[
1
]);
echo
"<li"
.
setSelectedTab
(
$requestURI
[
1
])
.
"><a href=
\"
{
$item
->
value
}
\"
><span>"
.
$item
->
name
.
""
;
if
(
$item
->
name
==
"Friends"
)
{
$user
=
get_loggedin_user
();
$count
=
get_entities_from_relationship
(
'friendrequest'
,
$user
->
guid
,
true
,
""
,
""
,
0
,
""
,
0
,
0
,
true
);
if
(
!
empty
(
$count
)){
echo
" <sup>"
.
$count
.
"</sup>"
;
}
}
echo
"</span></a></li>"
;
}
}
?>
<?php
//allow people to extend this top menu
echo
elgg_view
(
'elgg_topbar/extend'
,
$vars
);
?>
<li
<?php
echo
setSelectedTab
(
'pg/settings/'
);
?>
><a
href=
"
<?php
echo
$vars
[
'url'
];
?>
pg/settings/"
class=
"usersettings"
><span>
<?php
echo
elgg_echo
(
'settings'
);
?>
</span></a></li>
<?php
// The administration link is for admin or site admin users only
if
(
$vars
[
'user'
]
->
admin
||
$vars
[
'user'
]
->
siteadmin
)
{
?>
<li
<?php
echo
setSelectedTab
(
'pg/admin/'
);
?>
><a
href=
"
<?php
echo
$vars
[
'url'
];
?>
pg/admin/"
class=
"usersettings"
><span>
<?php
echo
elgg_echo
(
"admin"
);
?>
</span></a></li>
<?php
}
?>
<li
<?php
echo
setSelectedTab
(
'action/logout'
);
?>
><a
href=
"
<?php
echo
$vars
[
'url'
];
?>
action/logout"
><span>
<?php
echo
elgg_echo
(
'logout'
);
?>
</span></a></li>
</ul>
<div
id=
"elgg_topbar_container_search"
>
<form
id=
"searchform"
action=
"
<?php
echo
$vars
[
'url'
];
?>
search/"
method=
"get"
>
<fieldset>
<label
for=
"search_input"
>
Search Planet Red
</label>
<input
type=
"text"
id=
"search_input"
name=
"tag"
class=
"search_input"
/>
<input
type=
"submit"
value=
"Go"
class=
"search_submit_button"
/>
</fieldset>
</form>
</div>
<?php
}
?>
<div
class=
"clear"
></div>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment