@@ -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 | <header id="header" class="<?php p($_['header-classes']); ?>"> |
| 31 | 31 | <div class="header-left"> |
@@ -42,24 +42,24 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | <?php |
| 44 | 44 | /** @var \OCP\AppFramework\Http\Template\PublicTemplateResponse $template */ |
| 45 | - if($template->getActionCount() !== 0) { |
|
| 45 | + if ($template->getActionCount() !== 0) { |
|
| 46 | 46 | $primary = $template->getPrimaryAction(); |
| 47 | 47 | $others = $template->getOtherActions(); |
| 48 | 48 | ?> |
| 49 | 49 | <div class="header-right"> |
| 50 | - <span id="header-primary-action" class="<?php if($template->getActionCount() === 1) { p($primary->getIcon()); } ?>"> |
|
| 50 | + <span id="header-primary-action" class="<?php if ($template->getActionCount() === 1) { p($primary->getIcon()); } ?>"> |
|
| 51 | 51 | <a href="<?php p($primary->getLink()); ?>"> |
| 52 | 52 | <span><?php p($primary->getLabel()) ?></span> |
| 53 | 53 | </a> |
| 54 | 54 | </span> |
| 55 | - <?php if($template->getActionCount()>1) { ?> |
|
| 55 | + <?php if ($template->getActionCount() > 1) { ?> |
|
| 56 | 56 | <div id="header-secondary-action"> |
| 57 | 57 | <span id="header-actions-toggle" class="menutoggle icon-more-white"></span> |
| 58 | 58 | <div id="header-actions-menu" class="popovermenu menu"> |
| 59 | 59 | <ul> |
| 60 | 60 | <?php |
| 61 | 61 | /** @var \OCP\AppFramework\Http\Template\IMenuAction $action */ |
| 62 | - foreach($template->getOtherActions() as $action) { |
|
| 62 | + foreach ($template->getOtherActions() as $action) { |
|
| 63 | 63 | print_unescaped($action->render()); |
| 64 | 64 | } |
| 65 | 65 | ?> |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | <?php print_unescaped($_['content']); ?> |
| 76 | 76 | </div> |
| 77 | 77 | </div |
| 78 | - <?php if($template->getFooterVisible()) { ?> |
|
| 78 | + <?php if ($template->getFooterVisible()) { ?> |
|
| 79 | 79 | <footer> |
| 80 | 80 | <p class="info"><?php print_unescaped($theme->getLongFooter()); ?></p> |
| 81 | 81 | </footer> |