summaryrefslogtreecommitdiffstats
path: root/core/templates/layout.base.php
Commit message (Collapse)AuthorAgeFilesLines
* Remove precomposed from apple-touch-icon-precomposedGary Kim2019-06-151-1/+1
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Remove unnecessary meta tags.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>
* Fix base layout content paddingJulius Härtl2018-08-031-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Really cleanup the content-wrapperJohn Molakvoæ (skjnldsv)2018-07-271-4/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Acceptance and mobile navigation fixesJohn Molakvoæ (skjnldsv)2018-07-241-1/+5
| | | | 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>
* 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>
* 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>
* 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 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.
* add theme-color for better Android browser integrationJan-Christoph Borchardt2015-07-291-0/+1
|
* addressing #14984 removing redundant type attributesVolker E2015-03-181-2/+2
|
* addressing #14983 obsolete Google Chrome FrameVolker E2015-03-181-1/+1
|
* addressing #14982 self-closing tags ending slash doesn't have a purpose & ↵Volker E2015-03-171-4/+4
| | | | should be removed
* adressing #14979 meta charset declaration should be first in headVolker E2015-03-171-1/+1
|
* addressing #14978 - remove html root classes targeting IE6/IE7Volker E2015-03-171-6/+2
|
* Deduplicate template code and do not translate the linksJoas Schilling2015-02-091-1/+1
|
* Add `rel="noreferrer"` where possible and switch to HTTPSLukas Reschke2015-02-041-1/+1
| | | | Just to follow good practise and prevent some automated scanners to complain about "Cross-domain Referer leakage".
* Add requesttoken to base templateLukas Reschke2014-12-051-1/+1
| | | | Potentially fixes https://github.com/owncloud/core/issues/12580
* Fix the "addHeader($tag, $attributes, $text)" methods to not ignore the ↵Lukas Reschke2014-10-281-9/+1
| | | | | | | | | $text parameter Also support closing tags with no text content given Conflicts: lib/private/template.php
* Setting moment locale based on user selectionClark Tomlinson2014-10-231-6/+6
|
* Add X-UA-Compatible to all templatesLukas Reschke2014-09-111-0/+1
| | | | Replaces https://github.com/owncloud/core/pull/10850
* also add no-JavaScript notice to log in and sharing pages because they do ↵Jan-Christoph Borchardt2014-09-081-0/+1
| | | | not work without JS either
* Adding type to faviconClark Tomlinson2014-08-221-1/+1
|
* using flush() here is pointless as we render the layout into a memory buffer ↵Thomas Müller2014-08-081-1/+0
| | | | and actually transmit the data later
* move to updated version of placeholderMorris Jobke2014-06-031-6/+6
|
* Flush the Buffer Early - right after headThomas Müller2014-04-151-1/+1
|
* add 'body-public' ID to body in base layout so it can be identified via CSSJan-Christoph Borchardt2014-03-141-1/+1
|
* restrict zooming on mobile devices for the publicly accessible, optimized pagesJan-Christoph Borchardt2014-01-171-1/+1
|
* Fixed viewport layout using commas instead of semicolonsVincent Petry2013-10-111-1/+1
| | | | Fixes #5285
* fix web interface showing very small when accessed on smartphoneJan-Christoph Borchardt2013-10-061-0/+1
|
* initialize OC_Defaults in template constructorXBjörn Schießle2013-07-241-3/+1
|
* introduce shortname themable string and split from title, use for image alt textJan-Christoph Borchardt2013-07-111-1/+1
|
* move to non-static OC_DefaultsBjörn Schießle2013-07-041-2/+2
| | | | | | Conflicts: lib/mail.php