Completed
Pull Request — master (#7767)
by Julius
63:12 queued 35:16
created
core/templates/layout.user.php 1 patch
Spacing   +15 added lines, -15 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>
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 										<?php if ($_['themingInvertMenu']) { ?>
51 51
 										<defs><filter id="invertMenuMain-<?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 52
 										<?php } ?>
53
-										<image x="0" y="0" width="20" height="20" preserveAspectRatio="xMinYMin meet"<?php if ($_['themingInvertMenu']) { ?> filter="url(#invertMenuMain-<?php p($entry['id']); ?>)"<?php } ?> xlink:href="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>"  class="app-icon" />
53
+										<image x="0" y="0" width="20" height="20" preserveAspectRatio="xMinYMin meet"<?php if ($_['themingInvertMenu']) { ?> filter="url(#invertMenuMain-<?php p($entry['id']); ?>)"<?php } ?> xlink:href="<?php print_unescaped($entry['icon'].'?v='.$_['versionHash']); ?>"  class="app-icon" />
54 54
 									</svg>
55 55
 								<div class="icon-loading-small-dark"
56 56
 									 style="display:none;"></div>
@@ -72,13 +72,13 @@  discard block
 block discarded – undo
72 72
 					<div id="navigation" style="display: none;">
73 73
 						<div id="apps">
74 74
 							<ul>
75
-								<?php foreach($_['navigation'] as $entry): ?>
75
+								<?php foreach ($_['navigation'] as $entry): ?>
76 76
 									<li data-id="<?php p($entry['id']); ?>">
77 77
 									<a href="<?php print_unescaped($entry['href']); ?>"
78
-										<?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
78
+										<?php if ($entry['active']): ?> class="active"<?php endif; ?>>
79 79
 										<svg width="16" height="16" viewBox="0 0 16 16">
80 80
 											<defs><filter id="invertMenuMore-<?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>
81
-											<image x="0" y="0" width="16" height="16" preserveAspectRatio="xMinYMin meet" filter="url(#invertMenuMore-<?php p($entry['id']); ?>)" xlink:href="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>"  class="app-icon"></image>
81
+											<image x="0" y="0" width="16" height="16" preserveAspectRatio="xMinYMin meet" filter="url(#invertMenuMore-<?php p($entry['id']); ?>)" xlink:href="<?php print_unescaped($entry['icon'].'?v='.$_['versionHash']); ?>"  class="app-icon"></image>
82 82
 										</svg>
83 83
 										<div class="icon-loading-small-dark" style="display:none;"></div>
84 84
 										<span><?php p($entry['name']); ?></span>
@@ -95,12 +95,12 @@  discard block
 block discarded – undo
95 95
 			<div class="header-right">
96 96
 				<form class="searchbox" action="#" method="post" role="search" novalidate>
97 97
 					<label for="searchbox" class="hidden-visually">
98
-						<?php p($l->t('Search'));?>
98
+						<?php p($l->t('Search')); ?>
99 99
 					</label>
100 100
 					<input id="searchbox" type="search" name="query"
101 101
 						value="" required
102 102
 						autocomplete="off">
103
-					<button class="icon-close-white" type="reset"><span class="hidden-visually"><?php p($l->t('Reset search'));?></span></button>
103
+					<button class="icon-close-white" type="reset"><span class="hidden-visually"><?php p($l->t('Reset search')); ?></span></button>
104 104
 				</form>
105 105
 				<div id="contactsmenu">
106 106
 					<div class="icon-contacts menutoggle" tabindex="0" role="link"></div>
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
 						<div class="avatardiv<?php if ($_['userAvatarSet']) { print_unescaped(' avatardiv-shown'); } else { print_unescaped('" style="display: none'); } ?>">
112 112
 							<?php if ($_['userAvatarSet']): ?>
113 113
 								<img alt="" width="32" height="32"
114
-								src="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 32, 'v' => $_['userAvatarVersion']]));?>"
115
-								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"
114
+								src="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 32, 'v' => $_['userAvatarVersion']])); ?>"
115
+								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 116
 								>
117 117
 							<?php endif; ?>
118 118
 						</div>
@@ -120,11 +120,11 @@  discard block
 block discarded – undo
120 120
 					</div>
121 121
 					<div id="expanddiv" style="display:none;">
122 122
 					<ul>
123
-					<?php foreach($_['settingsnavigation'] as $entry):?>
123
+					<?php foreach ($_['settingsnavigation'] as $entry):?>
124 124
 						<li>
125 125
 							<a href="<?php print_unescaped($entry['href']); ?>"
126
-								<?php if( $entry["active"] ): ?> class="active"<?php endif; ?>>
127
-								<img alt="" src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>">
126
+								<?php if ($entry["active"]): ?> class="active"<?php endif; ?>>
127
+								<img alt="" src="<?php print_unescaped($entry['icon'].'?v='.$_['versionHash']); ?>">
128 128
 								<?php p($entry['name']) ?>
129 129
 							</a>
130 130
 						</li>
Please login to merge, or discard this patch.