@@ -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> |
@@ -51,16 +51,16 @@ |
||
51 | 51 | * @since 14.0.0 |
52 | 52 | */ |
53 | 53 | public function render(): string { |
54 | - return '<li>' . |
|
55 | - '<a id="directLink-container">' . |
|
56 | - '<span class="icon ' . Util::sanitizeHTML($this->getIcon()) . '"></span>' . |
|
57 | - '<label for="directLink">' . Util::sanitizeHTML($this->getLabel()) . '</label>' . |
|
58 | - '</a>' . |
|
59 | - '</li>' . |
|
60 | - '<li>' . |
|
61 | - '<span class="menuitem">' . |
|
62 | - '<input id="directLink" type="text" readonly="" value="' . Util::sanitizeHTML($this->getLink()) . '">' . |
|
63 | - '</span>' . |
|
54 | + return '<li>'. |
|
55 | + '<a id="directLink-container">'. |
|
56 | + '<span class="icon '.Util::sanitizeHTML($this->getIcon()).'"></span>'. |
|
57 | + '<label for="directLink">'.Util::sanitizeHTML($this->getLabel()).'</label>'. |
|
58 | + '</a>'. |
|
59 | + '</li>'. |
|
60 | + '<li>'. |
|
61 | + '<span class="menuitem">'. |
|
62 | + '<input id="directLink" type="text" readonly="" value="'.Util::sanitizeHTML($this->getLink()).'">'. |
|
63 | + '</span>'. |
|
64 | 64 | '</li>'; |
65 | 65 | } |
66 | 66 | } |
@@ -63,15 +63,15 @@ |
||
63 | 63 | * @since 14.0.0 |
64 | 64 | */ |
65 | 65 | public function render(): string { |
66 | - return '<li>' . |
|
67 | - '<a id="save-external-share" data-protected="false" data-owner-display-name="' . Util::sanitizeHTML($this->displayname) . '" data-owner="' . Util::sanitizeHTML($this->owner) . '" data-name="' . Util::sanitizeHTML($this->shareName) . '">' . |
|
68 | - '<span class="icon ' . Util::sanitizeHTML($this->getIcon()) . '"></span>' . |
|
69 | - '<label for="remote_address">' . Util::sanitizeHTML($this->getLabel()) . '</label>' . |
|
70 | - '<form class="save-form hidden" action="#">' . |
|
71 | - '<input type="text" id="remote_address" placeholder="[email protected]">' . |
|
72 | - '<input type="submit" value=" " id="save-button-confirm" class="icon-confirm" disabled="disabled"></button>' . |
|
73 | - '</form>' . |
|
74 | - '</a>' . |
|
66 | + return '<li>'. |
|
67 | + '<a id="save-external-share" data-protected="false" data-owner-display-name="'.Util::sanitizeHTML($this->displayname).'" data-owner="'.Util::sanitizeHTML($this->owner).'" data-name="'.Util::sanitizeHTML($this->shareName).'">'. |
|
68 | + '<span class="icon '.Util::sanitizeHTML($this->getIcon()).'"></span>'. |
|
69 | + '<label for="remote_address">'.Util::sanitizeHTML($this->getLabel()).'</label>'. |
|
70 | + '<form class="save-form hidden" action="#">'. |
|
71 | + '<input type="text" id="remote_address" placeholder="[email protected]">'. |
|
72 | + '<input type="submit" value=" " id="save-button-confirm" class="icon-confirm" disabled="disabled"></button>'. |
|
73 | + '</form>'. |
|
74 | + '</a>'. |
|
75 | 75 | '</li>'; |
76 | 76 | } |
77 | 77 | } |