Completed
Pull Request — master (#7669)
by Julius
17:26
created
core/templates/layout.user.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 		<meta charset="utf-8">
5 5
 		<title>
6 6
 			<?php
7
-				p(!empty($_['application'])?$_['application'].' - ':'');
7
+				p(!empty($_['application']) ? $_['application'].' - ' : '');
8 8
 				p($theme->getTitle());
9 9
 			?>
10 10
 		</title>
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 		<meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
15 15
 		<meta name="apple-mobile-web-app-capable" content="yes">
16 16
 		<meta name="apple-mobile-web-app-status-bar-style" content="black">
17
-		<meta name="apple-mobile-web-app-title" content="<?php p((!empty($_['application']) && $_['appid']!='files')? $_['application']:$theme->getTitle()); ?>">
17
+		<meta name="apple-mobile-web-app-title" content="<?php p((!empty($_['application']) && $_['appid'] != 'files') ? $_['application'] : $theme->getTitle()); ?>">
18 18
 		<meta name="mobile-web-app-capable" content="yes">
19 19
 		<meta name="theme-color" content="<?php p($theme->getColorPrimary()); ?>">
20 20
 		<link rel="icon" href="<?php print_unescaped(image_path($_['appid'], 'favicon.ico')); /* IE11+ supports png */ ?>">
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 		<?php emit_script_loading_tags($_); ?>
26 26
 		<?php print_unescaped($_['headers']); ?>
27 27
 	</head>
28
-	<body id="<?php p($_['bodyid']);?>">
28
+	<body id="<?php p($_['bodyid']); ?>">
29 29
 	<?php include('layout.noscript.warning.php'); ?>
30 30
 	<div id="notification-container">
31 31
 		<div id="notification"></div>
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 					id="nextcloud">
37 37
 					<div class="logo logo-icon">
38 38
 						<h1 class="hidden-visually">
39
-							<?php p($theme->getName()); ?> <?php p(!empty($_['application'])?$_['application']: $l->t('Apps')); ?>
39
+							<?php p($theme->getName()); ?> <?php p(!empty($_['application']) ? $_['application'] : $l->t('Apps')); ?>
40 40
 						</h1>
41 41
 					</div>
42 42
 				</a>
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
49 49
 								<?php if ($_['themingInvertMenu']) { ?>
50 50
 									<svg width="20" height="20" viewBox="0 0 20 20">
51 51
 									<defs><filter id="invert-<?php p($entry['id']); ?>"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0" /></filter></defs>
52
-									<image x="0" y="0" width="20" height="20" preserveAspectRatio="xMinYMin meet" filter="url(#invert-<?php p($entry['id']); ?>)" xlink:href="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>"  class="app-icon" /></svg>
52
+									<image x="0" y="0" width="20" height="20" preserveAspectRatio="xMinYMin meet" filter="url(#invert-<?php p($entry['id']); ?>)" xlink:href="<?php print_unescaped($entry['icon'].'?v='.$_['versionHash']); ?>"  class="app-icon" /></svg>
53 53
 								<?php } else { ?>
54
-									<img src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>"
54
+									<img src="<?php print_unescaped($entry['icon'].'?v='.$_['versionHash']); ?>"
55 55
 										 class="app-icon" alt="<?php p($entry['name']); ?>" />
56 56
 								<?php } ?>
57 57
 								<div class="icon-loading-small-dark"
@@ -74,13 +74,13 @@  discard block
 block discarded – undo
74 74
 					<div id="navigation" style="display: none;">
75 75
 						<div id="apps">
76 76
 							<ul>
77
-								<?php foreach($_['navigation'] as $entry): ?>
77
+								<?php foreach ($_['navigation'] as $entry): ?>
78 78
 									<li data-id="<?php p($entry['id']); ?>">
79 79
 									<a href="<?php print_unescaped($entry['href']); ?>"
80
-										<?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
80
+										<?php if ($entry['active']): ?> class="active"<?php endif; ?>>
81 81
 										<svg width="16" height="16" viewBox="0 0 16 16">
82 82
 											<defs><filter id="invert-<?php p($entry['id']); ?>"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs>
83
-											<image x="0" y="0" width="16" height="16" preserveAspectRatio="xMinYMin meet" filter="url(#invert-<?php p($entry['id']); ?>)" xlink:href="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>"  class="app-icon"></image>
83
+											<image x="0" y="0" width="16" height="16" preserveAspectRatio="xMinYMin meet" filter="url(#invert-<?php p($entry['id']); ?>)" xlink:href="<?php print_unescaped($entry['icon'].'?v='.$_['versionHash']); ?>"  class="app-icon"></image>
84 84
 										</svg>
85 85
 										<div class="icon-loading-small-dark" style="display:none;"></div>
86 86
 										<span><?php p($entry['name']); ?></span>
@@ -97,12 +97,12 @@  discard block
 block discarded – undo
97 97
 			<div class="header-right">
98 98
 				<form class="searchbox" action="#" method="post" role="search" novalidate>
99 99
 					<label for="searchbox" class="hidden-visually">
100
-						<?php p($l->t('Search'));?>
100
+						<?php p($l->t('Search')); ?>
101 101
 					</label>
102 102
 					<input id="searchbox" type="search" name="query"
103 103
 						value="" required
104 104
 						autocomplete="off">
105
-					<button class="icon-close-white" type="reset"><span class="hidden-visually"><?php p($l->t('Reset search'));?></span></button>
105
+					<button class="icon-close-white" type="reset"><span class="hidden-visually"><?php p($l->t('Reset search')); ?></span></button>
106 106
 				</form>
107 107
 				<div id="contactsmenu">
108 108
 					<div class="icon-contacts menutoggle" tabindex="0" role="link"></div>
@@ -113,8 +113,8 @@  discard block
 block discarded – undo
113 113
 						<div class="avatardiv<?php if ($_['userAvatarSet']) { print_unescaped(' avatardiv-shown'); } else { print_unescaped('" style="display: none'); } ?>">
114 114
 							<?php if ($_['userAvatarSet']): ?>
115 115
 								<img alt="" width="32" height="32"
116
-								src="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 32, 'v' => $_['userAvatarVersion']]));?>"
117
-								srcset="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 64, 'v' => $_['userAvatarVersion']]));?> 2x, <?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 128, 'v' => $_['userAvatarVersion']]));?> 4x"
116
+								src="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 32, 'v' => $_['userAvatarVersion']])); ?>"
117
+								srcset="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 64, 'v' => $_['userAvatarVersion']])); ?> 2x, <?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 128, 'v' => $_['userAvatarVersion']])); ?> 4x"
118 118
 								>
119 119
 							<?php endif; ?>
120 120
 						</div>
@@ -122,11 +122,11 @@  discard block
 block discarded – undo
122 122
 					</div>
123 123
 					<div id="expanddiv" style="display:none;">
124 124
 					<ul>
125
-					<?php foreach($_['settingsnavigation'] as $entry):?>
125
+					<?php foreach ($_['settingsnavigation'] as $entry):?>
126 126
 						<li>
127 127
 							<a href="<?php print_unescaped($entry['href']); ?>"
128
-								<?php if( $entry["active"] ): ?> class="active"<?php endif; ?>>
129
-								<img alt="" src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>">
128
+								<?php if ($entry["active"]): ?> class="active"<?php endif; ?>>
129
+								<img alt="" src="<?php print_unescaped($entry['icon'].'?v='.$_['versionHash']); ?>">
130 130
 								<?php p($entry['name']) ?>
131 131
 							</a>
132 132
 						</li>
Please login to merge, or discard this patch.