@@ -4,7 +4,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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> |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | <a href="#" class="header-appname-container menutoggle" tabindex="2"> |
| 45 | 45 | <h1 class="header-appname"> |
| 46 | - <?php p(!empty($_['application'])?$_['application']: $l->t('Apps')); ?> |
|
| 46 | + <?php p(!empty($_['application']) ? $_['application'] : $l->t('Apps')); ?> |
|
| 47 | 47 | </h1> |
| 48 | 48 | <div class="icon-caret"></div> |
| 49 | 49 | </a> |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | <a href="<?php print_unescaped($entry['href']); ?>" |
| 55 | 55 | tabindex="3" |
| 56 | 56 | <?php if ($entry['active']): ?> class="active"<?php endif; ?>> |
| 57 | - <img src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>" |
|
| 57 | + <img src="<?php print_unescaped($entry['icon'].'?v='.$_['versionHash']); ?>" |
|
| 58 | 58 | class="app-icon"/> |
| 59 | 59 | <div class="icon-loading-small-dark" |
| 60 | 60 | style="display:none;"></div> |
@@ -76,13 +76,13 @@ discard block |
||
| 76 | 76 | <div id="navigation" style="display: none;"> |
| 77 | 77 | <div id="apps"> |
| 78 | 78 | <ul> |
| 79 | - <?php foreach($_['navigation'] as $entry): ?> |
|
| 79 | + <?php foreach ($_['navigation'] as $entry): ?> |
|
| 80 | 80 | <li data-id="<?php p($entry['id']); ?>"> |
| 81 | 81 | <a href="<?php print_unescaped($entry['href']); ?>" tabindex="3" |
| 82 | - <?php if( $entry['active'] ): ?> class="active"<?php endif; ?>> |
|
| 82 | + <?php if ($entry['active']): ?> class="active"<?php endif; ?>> |
|
| 83 | 83 | <svg width="16" height="16" viewBox="0 0 16 16"> |
| 84 | 84 | <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> |
| 85 | - <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> |
|
| 85 | + <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> |
|
| 86 | 86 | </svg> |
| 87 | 87 | <div class="icon-loading-small-dark" style="display:none;"></div> |
| 88 | 88 | <span><?php p($entry['name']); ?></span> |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | <div class="header-right"> |
| 100 | 100 | <form class="searchbox" action="#" method="post" role="search" novalidate> |
| 101 | 101 | <label for="searchbox" class="hidden-visually"> |
| 102 | - <?php p($l->t('Search'));?> |
|
| 102 | + <?php p($l->t('Search')); ?> |
|
| 103 | 103 | </label> |
| 104 | 104 | <input id="searchbox" type="search" name="query" |
| 105 | 105 | value="" required |
@@ -115,8 +115,8 @@ discard block |
||
| 115 | 115 | <div class="avatardiv<?php if ($_['userAvatarSet']) { print_unescaped(' avatardiv-shown'); } else { print_unescaped('" style="display: none'); } ?>"> |
| 116 | 116 | <?php if ($_['userAvatarSet']): ?> |
| 117 | 117 | <img alt="" width="32" height="32" |
| 118 | - src="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 32, 'v' => $_['userAvatarVersion']]));?>" |
|
| 119 | - 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 | + src="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 32, 'v' => $_['userAvatarVersion']])); ?>" |
|
| 119 | + 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" |
|
| 120 | 120 | > |
| 121 | 121 | <?php endif; ?> |
| 122 | 122 | </div> |
@@ -124,11 +124,11 @@ discard block |
||
| 124 | 124 | </div> |
| 125 | 125 | <div id="expanddiv" style="display:none;"> |
| 126 | 126 | <ul> |
| 127 | - <?php foreach($_['settingsnavigation'] as $entry):?> |
|
| 127 | + <?php foreach ($_['settingsnavigation'] as $entry):?> |
|
| 128 | 128 | <li> |
| 129 | 129 | <a href="<?php print_unescaped($entry['href']); ?>" |
| 130 | - <?php if( $entry["active"] ): ?> class="active"<?php endif; ?>> |
|
| 131 | - <img alt="" src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>"> |
|
| 130 | + <?php if ($entry["active"]): ?> class="active"<?php endif; ?>> |
|
| 131 | + <img alt="" src="<?php print_unescaped($entry['icon'].'?v='.$_['versionHash']); ?>"> |
|
| 132 | 132 | <?php p($entry['name']) ?> |
| 133 | 133 | </a> |
| 134 | 134 | </li> |
@@ -50,8 +50,8 @@ |
||
| 50 | 50 | <div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div> |
| 51 | 51 | <div class="header-right"> |
| 52 | 52 | <?php if (!isset($_['hideFileList']) || (isset($_['hideFileList']) && $_['hideFileList'] === false)) { |
| 53 | - if ($_['server2serversharing']) { |
|
| 54 | - ?> |
|
| 53 | + if ($_['server2serversharing']) { |
|
| 54 | + ?> |
|
| 55 | 55 | <span id="save" data-protected="<?php p($_['protected']) ?>" |
| 56 | 56 | data-owner-display-name="<?php p($_['displayName']) ?>" data-owner="<?php p($_['owner']) ?>" data-name="<?php p($_['filename']) ?>"> |
| 57 | 57 | <button id="save-button"><?php p($l->t('Add to your Nextcloud')) ?></button> |