aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/TemplateLayout.php
Commit message (Collapse)AuthorAgeFilesLines
* Allow scripts prioritization based on other appsJohn Molakvoæ (skjnldsv)2021-12-021-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Remove isIE and associated legacy scriptsJohn Molakvoæ (skjnldsv)2021-11-301-4/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add current status in navbarCarl Schwan2021-10-151-1/+15
| | | | | | | | | | This ports the code to vue and if the user_status app is disabled this goes back to the previous behavior. The Avatar vue components detects changes of the status automatically. Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use proper methods for display name retrievalMorris Jobke2021-06-171-2/+12
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Drop \OCP\Util::isIeChristoph Wurst2021-03-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Document the behaviour inlineMorris Jobke2020-11-041-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* No need to check if there is an avatar available, because it is generated on ↵Morris Jobke2020-11-021-1/+1
| | | | | | the fly nowadays Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Make sure that getConfig is still called for browsers that do not support CSPv3Julius Härtl2020-09-071-14/+15
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Don't use deprecated getIniWrapper() anymoreJoas Schilling2020-08-201-2/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Show mime icon, bump bundles, make the SearchResultEntry class ↵John Molakvoæ (skjnldsv)2020-08-041-3/+13
| | | | | | non-abstract, Fix header search icon, various fixes Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix unified searchJohn Molakvoæ (skjnldsv)2020-08-031-12/+19
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Add constants for the magic strings of template renderingJoas Schilling2020-07-161-6/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Provide config though initial state serviceJulius Härtl2020-04-231-1/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-19/+14
| | | | | | | | | | | | | | | 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>
* Use elseif instead of else ifChristoph Wurst2020-04-101-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-12/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix multiline commentsChristoph Wurst2020-04-081-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-2/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+2
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #17674 from nextcloud/enh/do_not_show_footer_subRoeland Jago Douma2019-10-301-1/+9
|\ | | | | Do not show 'Get your own free account' on services under subscription
| * Do not show 'Get your own free account' on services under subscriptionRoeland Jago Douma2019-10-251-1/+9
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Don't pass in the locale as the languageRoeland Jago Douma2019-10-251-2/+1
|/ | | | | | This messes with the translation of the date names etc. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* autoloader.php could raise Not AllowedExceptionGuillaume COMPAGNON2019-08-201-0/+2
| | | | | | | | when theming is off Signed-off-by: Guillaume Compagnon <gcompagnon@outlook.com> modified: lib/private/TemplateLayout.php
* Fix "Undefined index: user_uid" on login pageJoas Schilling2019-02-221-4/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix OC.getCurrentUser() on guest pagesJoas Schilling2019-02-191-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Provide initial stateRoeland Jago Douma2019-01-291-0/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* SCSS cache buster is a combination of apps/theming/scc_varsRoeland Jago Douma2018-12-201-1/+8
| | | | | | | Else on scss files we'd get <file>?v=<hash>?v=<hash2> This is of course not valid. Now it becomes <file>?v=<hash>-<hash2> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove outdated integrity warning on each pageMorris Jobke2018-11-121-6/+0
| | | | | | | * integrity warning is shown during update and in the admin setup checks * there is also the plan to retire this old way of notification Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fallback to $lang if no $locale matchJohn Molakvoæ (skjnldsv)2018-09-131-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use user locale as default in the templateJohn Molakvoæ (skjnldsv)2018-09-101-2/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Show link to simple sign up pageMorris Jobke2018-08-231-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Design structure fixesJohn Molakvoæ (skjnldsv)2018-07-211-0/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Enable SCSS for guest pagesDaniel Calviño Sánchez2018-07-131-1/+2
| | | | | | | | | | | | | SCSS is disabled for several types of pages, as the SCSS compiler uses the cache system, which is not available for example when Nextcloud is not installed yet. However, in regular guest pages the cache system is available, so SCSS is now enabled for them too. To keep the same behaviour for guest pages the guest style is automatically added for them, as before this commit it was automatically added due to SCSS not being used. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* fix use of findLocaleGeorg Ehrke2018-06-271-1/+1
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* OC.getLocale() now returns Locale and no longer LanguageThomas Citharel2018-06-271-1/+2
| | | | | | | Added OC.getLanguage() to get Language <html lang=''> still gets language, though according to IETF BCP47 locale should be good. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Use JSCombiner from server container when searching for JS filesJulius Härtl2018-03-071-7/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #7363 from nextcloud/default-share-permsMorris Jobke2018-02-271-1/+2
|\ | | | | Let the admin configure the default share permissions
| * expose capabilities in jsBjoern Schiessle2018-02-271-1/+2
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Enable renderAs public pageJulius Härtl2018-02-271-0/+4
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Deprecate static methods and use Navigation managerJulius Härtl2018-02-121-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use proper lanugage in langauge codeRoeland Jago Douma2018-02-071-1/+3
| | | | | | | | Fixes #8180 The _ is not valid in language codes use - instead. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Load guest css on any guest and error pageJulius Härtl2018-02-021-1/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use correct L10N files for jsconfigRoeland Jago Douma2018-01-051-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Invert app icons on IE11 as wellJulius Härtl2018-01-031-0/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>