Skip to content
Snippets Groups Projects
Commit 3b3f546b authored by Matthew Juhl's avatar Matthew Juhl
Browse files

Various CSS conflict fixes, removed elgg top bar and moved navigation elements...

Various CSS conflict fixes, removed elgg top bar and moved navigation elements to college nav in UNL template using new view element
parent 501ecefe
No related branches found
No related tags found
No related merge requests found
<?php
/**
* Elgg top toolbar
* The standard elgg top toolbar
*
* @package Elgg
* @subpackage Core
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Curverider Ltd
* @copyright Curverider Ltd 2008-2009
* @link http://elgg.org/
*
*/
?>
<?php
if (isloggedin()) {
?>
<div id="elgg_topbar">
<div id="elgg_topbar_container_left">
<div class="toolbarimages">
<a href="#">TEST</a>
<a href="<?php echo $_SESSION['user']->getURL(); ?>"><img class="user_mini_avatar" src="<?php echo $_SESSION['user']->getIcon('topbar'); ?>"></a>
</div>
<div class="toolbarlinks">
<a href="<?php echo $vars['url']; ?>pg/dashboard/" class="pagelinks"><?php echo elgg_echo('dashboard'); ?></a>
</div>
<?php
echo elgg_view("navigation/topbar_tools");
?>
<div class="toolbarlinks2">
<?php
//allow people to extend this top menu
echo elgg_view('elgg_topbar/extend', $vars);
?>
<a href="<?php echo $vars['url']; ?>pg/settings/" class="usersettings"><?php echo elgg_echo('settings'); ?></a>
<?php
// The administration link is for admin or site admin users only
if ($vars['user']->admin || $vars['user']->siteadmin) {
?>
<a href="<?php echo $vars['url']; ?>pg/admin/" class="usersettings"><?php echo elgg_echo("admin"); ?></a>
<?php
}
?>
</div>
</div>
<div id="elgg_topbar_container_right">
<a href="<?php echo $vars['url']; ?>action/logout"><small><?php echo elgg_echo('logout'); ?></small></a>
</div>
<div id="elgg_topbar_container_search">
<form id="searchform" action="<?php echo $vars['url']; ?>search/" method="get">
<input type="text" size="21" name="tag" value="Search" onclick="if (this.value=='Search') { this.value='' }" class="search_input" />
<input type="submit" value="Go" class="search_submit_button" />
</form>
</div>
</div><!-- /#elgg_topbar -->
<div class="clearfloat"></div>
<?php
}
?>
\ No newline at end of file
......@@ -43,7 +43,8 @@ if (isset($pickerinuse) && $pickerinuse == true) { ?>
<!-- include the default css file -->
<link rel="stylesheet" href="<?php echo $vars['url']; ?>_css/css.css?lastcache=<?php echo $vars['config']->lastcache; ?>&amp;viewtype=<?php echo $vars['view']; ?>" type="text/css" />
<style type="text/css">
a { color: #900; }
a:hover { color: #C00; text-decoration: none;}
#navigation {display:none;}
#container #main_right {width:960px;}
......
<?php
/**
* Elgg navigtion for UNL template college nav
* The standard elgg top toolbar
*
*/
?>
<ul>
<?php
if (isloggedin()) {
?>
<li>
<a href="<?php echo $_SESSION['user']->getURL(); ?>"><img alt="Profile" class="user_mini_avatar" src="<?php echo $_SESSION['user']->getIcon('topbar'); ?>"></a>
</li>
<li>
<a href="<?php echo $vars['url']; ?>pg/dashboard/" class="pagelinks"><?php echo elgg_echo('dashboard'); ?></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) {
echo "<li><a href=\"{$item->value}\">" . $item->name . "</a></li>";
}
}
?>
<?php
//allow people to extend this top menu
echo elgg_view('elgg_topbar/extend', $vars);
?>
<li><a href="<?php echo $vars['url']; ?>pg/settings/" class="usersettings"><?php echo elgg_echo('settings'); ?></a></li>
<?php
// The administration link is for admin or site admin users only
if ($vars['user']->admin || $vars['user']->siteadmin) {
?>
<li><a href="<?php echo $vars['url']; ?>pg/admin/" class="usersettings"><?php echo elgg_echo("admin"); ?></a></li>
<?php
}
?>
<li><a href="<?php echo $vars['url']; ?>action/logout"><small><?php echo elgg_echo('logout'); ?></small></a></li>
<?php
}
?>
</ul>
\ No newline at end of file
......@@ -15,24 +15,28 @@ if (empty($vars['title'])) {
} else {
$title = $vars['config']->sitename . ": " . $vars['title'];
}
$page->breadcrumbs = "<!-- WDN: see glossary item \'breadcrumbs\' --> <ul> <li class=\"first\"><a href=\"http://www.unl.edu/\">UNL</a></li> <li>Social Network</li> </ul>";
$page->doctitle = '<title>'.$title.'</title>';
$page->head .= elgg_view('page_elements/header', $vars);
$page->collegenavigationlist = elgg_view('page_elements/unl_nav', $vars);
$page->titlegraphic = '<h1>'.$vars['config']->sitename.'</h1>';
$page->maincontentarea .= elgg_view('page_elements/elgg_topbar', $vars);
// not using element elgg_topbar
//$page->maincontentarea .= elgg_view('page_elements/elgg_topbar', $vars);
// Commented out for now because this has unclosed divs.
//$page->maincontentarea .= elgg_view('page_elements/header_contents', $vars);
$page->maincontentarea .= elgg_view('messages/list', array('object' => $vars['sysmessages']));
$page->maincontentarea .= $vars['body'];
/* not using the spotlight feature at this time
if (isloggedin()) {
// spotlight
$page->maincontentarea .= elgg_view('page_elements/spotlight', $vars);
}
*/
$page->footercontent = elgg_view('page_elements/footer', $vars);
......
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