summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 79a4ea6)
raw | patch | inline | side by side (parent: 79a4ea6)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 26 Apr 2010 16:15:49 +0000 (16:15 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 26 Apr 2010 16:15:49 +0000 (16:15 +0000) |
-Sets the window title too now
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17855 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17855 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_pathNavigator.inc | patch | blob | history |
index a7af83ec2247c815e65a37460ce46b42e660bc4b..ba458c1ef3b8648a45c181cd34867934cea5bba9 100644 (file)
if(!empty($str)){
$cur = session::get('pathNavigator::position');
-
- if(!empty($title)) $title = " title='{$title}' ";
-
- $cur.= "\n<li {$title} class='left path-element'>{$str}</li>";
+ $entry = array('TITLE' => $title, 'NAME' => $str);
+ $cur[] = $entry;
session::set('pathNavigator::position', $cur);
}
}
static function getCurrentPath()
{
- $path = session::get('pathNavigator::position');
+ $list = session::get('pathNavigator::position');
+ $path = "";
+ $sTitle = "";
+ foreach($list as $entry){
+ $title = (!empty($entry['TITLE']))? 'title="'.htmlentities(LDAP::fix($entry['TITLE']),ENT_COMPAT,'UTF-8').'"': '';
+ $path.= "\n<li {$title} class='left path-element'>{$entry['NAME']}</li>";
+ $sTitle .= " - ".$entry['NAME'];
+ }
+
if(empty($path)){
$path = "<li class='left path-element'>"._("Welcome to GOsa")."</li>";
}
+ $smarty = get_smarty();
+ $smarty->assign('title', 'GOsa '.$sTitle);
return($path);
}
static function clear()
{
session::set('pathNavigator::position','');
+ session::set('pathNavigator::title','');
}
}