layout.user.php 5.66 KB
Newer Older
Jan-Christoph Borchardt's avatar
Jan-Christoph Borchardt committed
1
<!DOCTYPE html>
Hendrik Leppelsack's avatar
Hendrik Leppelsack committed
2
<html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" >
3
	<head data-user="<?php p($_['user_uid']); ?>" data-user-displayname="<?php p($_['user_displayname']); ?>" data-requesttoken="<?php p($_['requesttoken']); ?>">
4
		<meta charset="utf-8">
5
		<title>
6
7
8
9
			<?php
				p(!empty($_['application'])?$_['application'].' - ':'');
				p($theme->getTitle());
			?>
10
		</title>
11
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
12
		<meta name="referrer" content="never">
Thomas Müller's avatar
Thomas Müller committed
13
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
14
		<meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
Sander's avatar
Sander committed
15
16
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
Morris Jobke's avatar
Morris Jobke committed
17
		<meta name="apple-mobile-web-app-title" content="<?php p((!empty($_['application']) && $_['appid']!='files')? $_['application']:'ownCloud'); ?>">
Sander's avatar
Sander committed
18
		<meta name="mobile-web-app-capable" content="yes">
19
		<meta name="theme-color" content="<?php p($theme->getMailHeaderColor()); ?>">
20
		<link rel="icon" href="<?php print_unescaped(image_path($_['appid'], 'favicon.ico')); /* IE11+ supports png */ ?>">
21
		<link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>">
maprambo's avatar
maprambo committed
22
		<link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path($_['appid'], 'favicon-mask.svg')); ?>" color="#1d2d44">
Pierre Rudloff's avatar
Pierre Rudloff committed
23
		<link rel="manifest" href="<?php print_unescaped(image_path($_['appid'], 'manifest.json')); ?>">
24
		<?php foreach($_['cssfiles'] as $cssfile): ?>
Hendrik Leppelsack's avatar
Hendrik Leppelsack committed
25
26
27
28
			<link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>">
		<?php endforeach; ?>
		<?php foreach($_['printcssfiles'] as $cssfile): ?>
			<link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>" media="print">
29
		<?php endforeach; ?>
30
		<?php foreach($_['jsfiles'] as $jsfile): ?>
31
			<script src="<?php print_unescaped($jsfile); ?>"></script>
32
		<?php endforeach; ?>
33
		<?php print_unescaped($_['headers']); ?>
34
	</head>
Lukas Reschke's avatar
Lukas Reschke committed
35
	<body id="<?php p($_['bodyid']);?>">
36
	<?php include('layout.noscript.warning.php'); ?>
37
	<div id="notification-container">
38
		<div id="notification"></div>
39
	</div>
40
	<header role="banner"><div id="header">
41
			<a href="<?php print_unescaped(link_to('', 'index.php')); ?>"
42
				id="owncloud" tabindex="1">
Hendrik Leppelsack's avatar
Hendrik Leppelsack committed
43
				<div class="logo-icon">
44
45
46
47
					<h1 class="hidden-visually">
						<?php p($theme->getName()); ?>
					</h1>
				</div>
48
			</a>
49

50
			<a href="#" class="header-appname-container menutoggle" tabindex="2">
51
				<h1 class="header-appname">
52
53
54
55
					<?php
						if(OC_Util::getEditionString() === '') {
							p(!empty($_['application'])?$_['application']: $l->t('Apps'));
						} else {
Lukas Reschke's avatar
Lukas Reschke committed
56
							print_unescaped($theme->getHTMLName());
57
58
						}
					?>
59
				</h1>
Hendrik Leppelsack's avatar
Hendrik Leppelsack committed
60
				<div class="icon-caret"></div>
Jake Wilson's avatar
Jake Wilson committed
61
			</a>
62

63
			<div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
Hendrik Leppelsack's avatar
Hendrik Leppelsack committed
64
			<div id="settings">
65
				<div id="expand" tabindex="6" role="link" class="menutoggle">
66
					<?php if ($_['enableAvatars']): ?>
67
					<div class="avatardiv<?php if ($_['userAvatarSet']) { print_unescaped(' avatardiv-shown'); } else { print_unescaped('" style="display: none'); } ?>">
kondou's avatar
kondou committed
68
						<?php if ($_['userAvatarSet']): ?>
69
70
71
72
							<img alt="" width="32" height="32"
							src="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 32]));?>"
							srcset="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 64]));?> 2x, <?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 128]));?> 4x"
							>
kondou's avatar
kondou committed
73
74
						<?php endif; ?>
					</div>
75
					<?php endif; ?>
76
					<span id="expandDisplayName"><?php  p(trim($_['user_displayname']) != '' ? $_['user_displayname'] : $_['user_uid']) ?></span>
Hendrik Leppelsack's avatar
Hendrik Leppelsack committed
77
					<img alt="" src="<?php print_unescaped(image_path('', 'actions/caret.svg')); ?>">
kondou's avatar
kondou committed
78
				</div>
79
				<div id="expanddiv">
Joas Schilling's avatar
Joas Schilling committed
80
				<ul>
81
82
				<?php foreach($_['settingsnavigation'] as $entry):?>
					<li>
83
						<a href="<?php print_unescaped($entry['href']); ?>"
Bart Visscher's avatar
Bart Visscher committed
84
							<?php if( $entry["active"] ): ?> class="active"<?php endif; ?>>
Hendrik Leppelsack's avatar
Hendrik Leppelsack committed
85
							<img alt="" src="<?php print_unescaped($entry['icon']); ?>">
Lukas Reschke's avatar
Lukas Reschke committed
86
							<?php p($entry['name']) ?>
87
88
89
90
						</a>
					</li>
				<?php endforeach; ?>
					<li>
91
						<a id="logout" <?php print_unescaped(OC_User::getLogoutAttribute()); ?>>
Hendrik Leppelsack's avatar
Hendrik Leppelsack committed
92
							<img alt="" src="<?php print_unescaped(image_path('', 'actions/logout.svg')); ?>">
Lukas Reschke's avatar
Lukas Reschke committed
93
							<?php p($l->t('Log out'));?>
94
95
						</a>
					</li>
Joas Schilling's avatar
Joas Schilling committed
96
				</ul>
97
				</div>
Joas Schilling's avatar
Joas Schilling committed
98
			</div>
99

Hendrik Leppelsack's avatar
Hendrik Leppelsack committed
100
			<form class="searchbox" action="#" method="post" role="search" novalidate>
Jan-Christoph Borchardt's avatar
Jan-Christoph Borchardt committed
101
				<label for="searchbox" class="hidden-visually">
102
103
					<?php p($l->t('Search'));?>
				</label>
Hendrik Leppelsack's avatar
Hendrik Leppelsack committed
104
				<input id="searchbox" type="search" name="query"
105
					value="" required
106
					autocomplete="off" tabindex="5">
107
			</form>
108
		</div></header>
109

110
		<nav role="navigation"><div id="navigation">
Hendrik Leppelsack's avatar
Hendrik Leppelsack committed
111
			<div id="apps">
112
				<ul>
113
				<?php foreach($_['navigation'] as $entry): ?>
Lukas Reschke's avatar
Lukas Reschke committed
114
					<li data-id="<?php p($entry['id']); ?>">
115
						<a href="<?php print_unescaped($entry['href']); ?>" tabindex="3"
Bart Visscher's avatar
Bart Visscher committed
116
							<?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
Hendrik Leppelsack's avatar
Hendrik Leppelsack committed
117
							<img class="app-icon" alt="" src="<?php print_unescaped($entry['icon']); ?>">
118
							<div class="icon-loading-dark" style="display:none;"></div>
119
120
121
							<span>
								<?php p($entry['name']); ?>
							</span>
122
						</a>
123
124
					</li>
				<?php endforeach; ?>
125
				</ul>
Joas Schilling's avatar
Joas Schilling committed
126
			</div>
127
128
		</div></nav>

129
		<div id="content-wrapper">
130
			<div id="content" class="app-<?php p($_['appid']) ?>" role="main">
Lukas Reschke's avatar
Lukas Reschke committed
131
				<?php print_unescaped($_['content']); ?>
132
			</div>
133
134
135
		</div>
	</body>
</html>