summaryrefslogtreecommitdiffstats
path: root/core/templates/layout.guest.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Compile CSS assetsFerdinand Thiessen2023-11-021-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(theming): Make sure the footer is hidden if not content is renderedFerdinand Thiessen2023-11-021-2/+7
| | | | | | | 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>
* fix(core): remove unnecessary role=contentinfo from page footer on loginGrigorii K. Shartsev2023-10-211-1/+1
| | | | | | `<footer>` has this role initially then it is a page footer, not inside `section`/`article`, and etc. Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* fix(core): remove unnecessary role=banner on top level headerGrigorii K. Shartsev2023-10-211-1/+1
| | | | | | | By default, the HTML's `<header>` element has an identical meaning to the banner landmark, unless it is a descendant of `<aside>`, `<article>`, `<main>`, `<nav>`, or `<section>`. Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* fix: content info footer on guest pagesRichard Steinmetz2023-09-191-1/+1
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* composer run cs:fixCôme Chilliet2023-01-201-2/+2
| | | | 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/+1
| | | | This reverts commit bba5ab0532bcf71dc421fd15efd890cd25bdc8d3.
* Add alt to the logo, adapt css for logojulia.kirschenheuter2022-12-081-1/+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-5/+4
| | | | 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 OCP\App and OCP\BackgroundJobCarl Schwan2022-08-011-4/+4
| | | | | | | | | | Both deprecated since NC 23 IAppManager is the replacement for OCP\App unfortunately it can't be dependency injected in classes used by the installed otherwise the database connection is initialised too early Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Identify the login page explicitly by the page titleChristopher Ng2022-07-201-1/+4
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Update and fix theming imagesJohn Molakvoæ (skjnldsv)2022-04-211-4/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* 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>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+1
| | | | | | | | | | | | | | | 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>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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>
* Merge pull request #14318 from DominikWA/RemoveUnnecessaryMetaTagsRoeland Jago Douma2019-02-261-1/+0
|\ | | | | Fix referrer policy meta tags.
| * Remove unnecessary meta tags.Dominik Wasielewski2019-02-261-1/+0
| | | | | | | | Signed-off-by: Dominik Wasielewski <d-wasi@web.de>
* | Fix OC.getCurrentUser() on guest pagesJoas Schilling2019-02-191-1/+5
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Provide initial stateRoeland Jago Douma2019-01-291-0/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* 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>
* Fix form labels and main landmark on log in pageJan-Christoph Borchardt2018-04-181-1/+3
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Do not restrict zooming inJan-Christoph Borchardt2018-04-181-1/+1
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Referrer fix (no-referrer)Ralph Slooten2018-02-081-1/+1
| | | | | | | Blocking referrer information should be done with "no-referrer" and not "never". See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy Signed-off-by: Ralph Slooten <axllent@gmail.com>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Removed unwanted and unused spacerJohn Molakvoæ (skjnldsv)2017-12-121-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add manifest.json to the login pageJulius Härtl2017-09-121-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Logo claim is not used anymoreMorris Jobke2017-08-021-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Streamline templates, more DRYMichael Letzgus2017-05-251-6/+1
| | | | | | | | Use Unified function to emit <link> tags for css loading, obey "Don't Repeat Yourself" ;-) (Next step might by to combine this with the emit <script> function (even more DRY?) AND move all this to a better place?) Signed-off-by: Michael Letzgus <michaelletzgus@users.noreply.github.com>
* Make page loading faster by deferred script loading:Michael Letzgus2017-05-201-8/+1
| | | | | | | | * Create generalized function for emmitting <script defer src=""> tags to templates * Remove type attribute from inline_js * Add defer attribute to external <script> tags Signed-off-by: Michael Letzgus <michaelletzgus@users.noreply.github.com>
* Check if Nextcloud is installedLukas Reschke2017-05-081-1/+2
| | | | | | Fixes https://github.com/nextcloud/server/issues/4735 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* smaller max logo sizes and cleaner codeRobin Appelman2017-05-021-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* show non landscape icons bigger on the login pageRobin Appelman2017-05-011-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* rename confusing getMailHeaderColor to getColorPrimary, ref #3491Jan-Christoph Borchardt2017-03-291-2/+2
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Moving the inline js before the CSSRoeland Jago Douma2017-03-281-5/+5
| | | | | | This allows browsers to do smarted parallel downloads Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* use theming colors for favicon on macOSJan-Christoph Borchardt2017-03-271-1/+1
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Inlince oc.js if possible!Roeland Jago Douma2016-10-251-0/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add ContentSecurityPolicyNonceManagerLukas Reschke2016-10-241-1/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add support for CSP noncesLukas Reschke2016-10-241-1/+1
| | | | | | | | | | | | | | | | | CSP nonces are a feature available with CSP v2. Basically instead of saying "JS resources from the same domain are ok to be served" we now say "Ressources from everywhere are allowed as long as they add a `nonce` attribute to the script tag with the right nonce. At the moment the nonce is basically just a `<?php p(base64_encode($_['requesttoken'])) ?>`, we have to decode the requesttoken since `:` is not an allowed value in the nonce. So if somebody does on their own include JS files (instead of using the `addScript` public API, they now must also include that attribute.) IE does currently not implement CSP v2, thus there is a whitelist included that delivers the new CSP v2 policy to newer browsers. Check http://caniuse.com/#feat=contentsecuritypolicy2 for the current browser support list. An alternative approach would be to just add `'unsafe-inline'` as well as `'unsafe-inline'` is ignored by CSPv2 when a nonce is set. But this would make this security feature unusable at all in IE. Not worth it at the moment IMO. Implementing this offers the following advantages: 1. **Security:** As we host resources from the same domain by design we don't have to worry about 'self' anymore being in the whitelist 2. **Performance:** We can move oc.js again to inline JS. This makes the loading way quicker as we don't have to load on every load of a new web page a blocking dynamically non-cached JavaScript file. If you want to toy with CSP see also https://csp-evaluator.withgoogle.com/ Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* remove svg classesHendrik Leppelsack2016-07-011-1/+1
|
* remove ie8+9 supportHendrik Leppelsack2016-06-231-3/+1
|
* Merge pull request #16857 from owncloud/printStylesheetsC. Montero Luque2016-03-311-1/+4
|\ | | | | Support for print stylesheets
| * support print stylesheetsHendrik Leppelsack2016-01-131-1/+4
| |
* | Stupid clients only literally understand rel="icon"Daniel Aleksandersen2016-03-081-1/+1
|/ | | | | | rel="shortcut icon" hasn’t been relevant in years, isn’t in any standards, and causes problems for simple pattern matching clients. https://www.w3.org/TR/html/links.html#linkTypes
* Merge pull request #20236 from maprambo/safari-pinned-tab-iconThomas Müller2015-11-091-0/+1
|\ | | | | added Safari tabbed pin icon
| * Added Safari tabbed pin iconmaprambo2015-11-041-0/+1
| | | | | | | | Added the necessary code and a black and inverted version of the favicon/ touch icon in svg format
* | Add favicon for IE 8+Morris Jobke2015-11-031-1/+1
|/
* Prevent referer from being sentLukas Reschke2015-09-091-0/+1
| | | | Nice hardening for enhanced privacy. Especially useful when using embedded viewers such as files_pdfviewer.