aboutsummaryrefslogtreecommitdiffstats
path: root/core/templates/layout.public.php
Commit message (Collapse)AuthorAgeFilesLines
* feat(files_sharing): show Account menu on public pagesskjnldsv2025-06-111-0/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(core): Fix undefined "application" array key errorChristopher Ng2025-02-111-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(template): Use `<div>` instead of `<main>` to support Vue3 apps mountingFerdinand Thiessen2025-01-141-2/+3
| | | | | | | | | | | | | | | | Vue3 does not replace the element while mounting but only renders within (replace inner HTML). So it would result in two stacked `<main>` elements which is invalid and an accessibility issue. Instead we just use a `<div>` element for mounting. For Vue2 apps this does not change anything as the whole element will be replaced with a new `<main>` element. For vanilla apps this will slightly decrease the accessibility as the main landmark is now missing, but this is not a hard accessibility issue as it would be for Vue3 apps having two main elements. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Apply enforce theme config for anonymous users as wellKostiantyn Miakshyn2025-01-081-6/+8
| | | | Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
* feat(files_sharing): use share node or label as page titlefeat/sharing-titleskjnldsv2024-11-081-2/+3
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(IMenuAction): Make public menu actions use the new Vue UIFerdinand Thiessen2024-09-031-34/+8
| | | | | | | | This removes custom rendering code an replaces it with the declarative menu actions. Also adjust the template to allow the Vue UI to mount. Custom entries still are possible. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Fix: float and clearMostafa Ahangarha2024-08-291-2/+2
| | | | | | | | Fix other background-positions Minor fix in link button icon position Update header left and right to start and end Signed-off-by: Mostafa Ahangarha <ahangarha@riseup.net>
* fix: Disable auto-zoom on iOSFerdinand Thiessen2024-08-211-1/+3
| | | | | | | | When using iOS and focussing an input element the view should not be zoomed. So if we set a maximum scale iOS will not auto-zoom but still allow users to zoom. But we can not do this by default as this will disable user zoom on Chrome. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat: Provide CSP nonce as `<meta>` elementFerdinand Thiessen2024-08-131-0/+1
| | | | | | | | This way we use the CSP nonce for dynamically loaded scripts. Important to notice: The CSP nonce must NOT be injected in `content` as this can lead to value exfiltration using e.g. side-channel attacts (CSS selectors). Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(core): wrap initial state into hidden containerGrigorii K. Shartsev2024-07-301-4/+2
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* fix(styles): Make sure footer with legal links is shown correctlyFerdinand Thiessen2024-07-261-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-271-0/+6
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Fix truncation on public sharesChristopher Ng2024-04-221-10/+14
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* php-cs-fixer fixesAndrii Rublov2024-02-231-2/+2
| | | | Signed-off-by: Andrii Rublov <airublev@outlook.com>
* [Bugfix]: Titles of pages (dashboard, apps-settings, users-settings) #43327Andrii Rublov2024-02-231-3/+3
| | | | Signed-off-by: Andrii Rublov <airublev@outlook.com>
* fix(manifest): Check if app exists instead of accessing null as an arrayJoas Schilling2024-01-171-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat: update sign up link in share pagesLuka Trovic2023-11-211-1/+1
| | | | Signed-off-by: Luka Trovic <luka@nextcloud.com>
* fix(theming): Make sure the footer is hidden if not content is renderedFerdinand Thiessen2023-11-021-1/+1
| | | | | | | Previously the footer was empty, but the backdrop was still shown. This hides the footer if no text content was defined. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Make logo in header clickable in the shared file viewKonstantin Myakshin2023-10-041-3/+11
| | | | Signed-off-by: Konstantin Myakshin <molodchick@gmail.com>
* composer run cs:fixCôme Chilliet2023-01-201-11/+11
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Revert "Add alt to the logo, adapt css for logo"John Molakvoæ2023-01-171-2/+9
| | | | This reverts commit bba5ab0532bcf71dc421fd15efd890cd25bdc8d3.
* Add alt to the logo, adapt css for logojulia.kirschenheuter2022-12-081-9/+2
| | | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Place ```<h1>``` into main contentjulia.kirschenheuter2022-11-151-14/+19
| | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* Disable browser translationsArnout Engelen2022-10-271-1/+1
| | | | | | | | | | | | | | This will tell the browser not to translate the text on the page, since this is very confusing given the good existing translation support in Nextcloud and the fact that the language the Nextcloud UI is set to might not match the language the content of the instance is in, leading to surprising effects. Better to disable it and remove the confusion. Fixes #34857 Signed-off-by: Arnout Engelen <arnout@bzzt.net>
* Remove obsolete notification containerVincent Petry2022-07-261-3/+0
| | | | | | | The future is TOAST 🍞 Signed-off-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Add skip content buttons to the public page layoutJulius Härtl2022-07-181-0/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove legacy Internet Explorer headersMichaIng2022-03-191-1/+0
| | | | | | X-UA-Compatible and X-Download-Options headers are interpreted or relevant for Internet Explorer only. With the deprecation of Internet Explorer support in Nextcloud 20 and planned support removal already in Nextcloud 22, these became obsolete and are hereby removed, including their removal from setup checks. Signed-off-by: MichaIng <micha@dietpi.com>
* Always add header-right containerJulius Härtl2021-08-161-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add apple-touch-icon-precomposed (fixes #14818)Christian Wenz2020-10-021-0/+1
| | | | Signed-off-by: Christian Wenz <christian@wenz.org>
* Comply with php-csGary Kim2020-05-021-5/+5
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Fix public layout header title & descriptionJohn Molakvoæ (skjnldsv)2020-04-301-8/+8
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-10/+18
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change menu toggle element from span to buttonDaniel Calviño Sánchez2019-12-301-1/+1
| | | | | | | This makes possible to navigate to the menu toggle using the keyboard, as well as being semantically more correct. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Only add the app-itunes-app tag if the id is setJulius Härtl2019-08-231-0/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove precomposed from apple-touch-icon-precomposedGary Kim2019-06-151-1/+1
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Remove additional referrer policy meta tag.Dominik Wasielewski2019-02-261-1/+0
| | | | Signed-off-by: Dominik Wasielewski <d-wasi@web.de>
* Provide initial stateRoeland Jago Douma2019-01-291-0/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make the footer "Get your own free account" translatableMichael Weimann2018-12-191-1/+3
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Better primary visual on public pagesJohn Molakvoæ (skjnldsv)2018-11-071-3/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Show link to simple sign up pageMorris Jobke2018-08-231-0/+9
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix footer and public min-heightJohn Molakvoæ (skjnldsv)2018-08-151-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Make public layout also usable without a PublicTemplateResponseJulius Härtl2018-08-031-6/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove header-classes since it is never usedJulius Härtl2018-08-031-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add notification container to public layout templateDaniel Calviño Sánchez2018-07-311-0/+3
| | | | | | | This is needed to show notifications using the standard "OC.Notification.show" function. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Really cleanup the content-wrapperJohn Molakvoæ (skjnldsv)2018-07-271-5/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Acceptance and mobile navigation fixesJohn Molakvoæ (skjnldsv)2018-07-241-3/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Cleanup structureJohn Molakvoæ (skjnldsv)2018-07-201-6/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add locale to templatesRoeland Jago Douma2018-07-061-1/+1
| | | | | | | | It was already added to the user template but we should add it to all templates. Else apps that want the locale but use special templating (hi richdocuments!) will fail. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>