Add application name to title
This commit is contained in:
parent
5c816c0cc9
commit
a25bda8e41
2 changed files with 9 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
<!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): ?>
|
||||
|
|
|
@ -314,8 +314,15 @@ class OC_Template{
|
|||
}
|
||||
|
||||
// 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" );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue