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