<!DOCTYPE html>
<html>
<head>
- <title>ownCloud</title>
+ <title><?php echo isset($_['application']) && !empty($_['application'])?$_['application'].' | ':'' ?>ownCloud</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="<?php echo image_path('', 'favicon.png'); ?>" /><link rel="apple-touch-icon-precomposed" href="<?php echo image_path('', 'favicon-touch.png'); ?>" />
<?php foreach($_['cssfiles'] as $cssfile): ?>
}
// Add navigation entry
- $page->assign( "navigation", OC_App::getNavigation());
+ $navigation = OC_App::getNavigation();
+ $page->assign( "navigation", $navigation);
$page->assign( "settingsnavigation", OC_App::getSettingsNavigation());
+ foreach($navigation as $entry) {
+ if ($entry['active']) {
+ $page->assign( 'application', $entry['name'] );
+ break;
+ }
+ }
}else{
$page = new OC_Template( "core", "layout.guest" );
}