Christoph Wurst
44577e4345
Remove trailing and in between spaces
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
afbd9c4e6e
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Julius Härtl
70e3fcea2c
Use themed favicon-fb
Signed-off-by: Julius Härtl <jus@bitgrid.net>
6 years ago
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Daniel Kesselberg
6d883f3641
Remove some whitespace
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
6 years ago
Guillaume COMPAGNON
ed399a31bd
add var for theming images , advanced options
Signed-off-by: Guillaume COMPAGNON <gcompagnon@outlook.com>
6 years ago
Roeland Jago Douma
e71f222082
Cleanup theming mess
* Do not do translations in the constructor. This gets called to early
so there is no user yet. Which means we can't obtain the locale. Which
means we store the wrong translation instance.
* Same for the theming app magic. Just use the parent call when needed.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
6 years ago
Robin Appelman
512eb14d94
make sure that the urls for theming images are valid
In some circumstances the url generation seems to fail,
resulting in an empty image url which causes the browser to load the main
page multiple times, leading to issues with state tokens
Signed-off-by: Robin Appelman <robin@icewind.nl>
6 years ago
Julius Härtl
ec6ce43053
Only return link to themed icon if file exists
Signed-off-by: Julius Härtl <jus@bitgrid.net>
6 years ago
Julius Härtl
cfed233f47
Properly theme folder icons that are accessed though imagePath
Signed-off-by: Julius Härtl <jus@bitgrid.net>
6 years ago
Julius Härtl
a6b579b772
Add guest navigation type
Signed-off-by: Julius Härtl <jus@bitgrid.net>
7 years ago
Julius Härtl
2538079876
Use default favicon on sharing pages
Signed-off-by: Julius Härtl <jus@bitgrid.net>
7 years ago
Michael Weimann
c7e81e17c8
Updates inverted logo handling to work like the app icons
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
7 years ago
Michael Weimann
d855c38e07
Moves the logo files to logo
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
7 years ago
Michael Weimann
92049c3ceb
Switches the default logo color depending on the primary color
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
7 years ago
Patrik Kernstock
8f9fa9ee13
Remove filter_var flags due to PHP 7.3 deprecation, fixes #10894
Signed-off-by: Patrik Kernstock <info@pkern.at>
7 years ago
Julius Härtl
c4f34ccc4c
Theming: Fix footer tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
7 years ago
Julius Härtl
5175e33e31
Theming: Only Entity in footer if a url is set
fixes #10024
Signed-off-by: Julius Härtl <jus@bitgrid.net>
7 years ago
John Molakvoæ (skjnldsv)
8aaf2c3272
Theming update on url
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
7 years ago
Julius Härtl
5b0ce806a3
Minor fixes and cleanup
Signed-off-by: Julius Härtl <jus@bitgrid.net>
7 years ago
Julius Härtl
4a5826cddb
Generate PNG version of the theming app logo for mails
Signed-off-by: Julius Härtl <jus@bitgrid.net>
8 years ago
Arthur Schiwon
0847c98aaf
addjust footer height when legal links are present. fixes #9572
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
8 years ago
Arthur Schiwon
16c061818e
also add a privacy link
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
8 years ago
Arthur Schiwon
62f1156a56
allow to specify a link to a legal notice
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
8 years ago
Julius Härtl
7f9dabd984
Make sure the custom favicon is used
Signed-off-by: Julius Härtl <jus@bitgrid.net>
8 years ago
Julius Härtl
39f44e1452
Add typehints
Signed-off-by: Julius Härtl <jus@bitgrid.net>
8 years ago
Julius Härtl
5a5c125b23
Return value
Signed-off-by: Julius Härtl <jus@bitgrid.net>
8 years ago
Julius Härtl
272b392cac
Move to more generic image handling and add extra images
Signed-off-by: Julius Härtl <jus@bitgrid.net>
8 years ago
Julius Härtl
e7c3b8da77
Clear any theming prefixed cache on cache buster increase
Signed-off-by: Julius Härtl <jus@bitgrid.net>
8 years ago
Julius Härtl
573b940761
Use cache prefix for theming as well
Signed-off-by: Julius Härtl <jus@bitgrid.net>
8 years ago
Julius Härtl
95366bbd1f
Fix tests to use ICacheFactory
Signed-off-by: Julius Härtl <jus@bitgrid.net>
8 years ago
Julius Härtl
50a9beb4bb
Move base url from global cache prefix to frontend related ones
Signed-off-by: Julius Härtl <jus@bitgrid.net>
8 years ago
Julius Härtl
6770213649
Do not rewrite absolute URLs
Signed-off-by: Julius Härtl <jus@bitgrid.net>
8 years ago
Julius Härtl
d4e106f2b3
More detailed theming capabilities
This will allow clients to easily check if a custom background is used
Signed-off-by: Julius Härtl <jus@bitgrid.net>
8 years ago
Morris Jobke
d2d73f1ce8
Also replace all other occurences
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Morris Jobke
cce4c285db
Fix email buttons for white theme
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Markus Staab
db34b59238
Prevent XSS in links which open a new browser window
8 years ago
Joachim Bauch
91598cbfb5
Use theme methods "getTitle" and "getEntity" as fallback if name is not themed.
This fixes an issue with custom filesystem themes that can define title, name
and entity differently, but the theming app was only using the name as fallback
(see #5374 ).
Signed-off-by: Joachim Bauch <bauch@struktur.de>
8 years ago
Julius Härtl
8391ca8792
Use IAppManager instead of private API
Signed-off-by: Julius Härtl <jus@bitgrid.net>
8 years ago
Julius Härtl
b49ab065b7
Move theming related imagePath logic to ThemingDefaults
Signed-off-by: Julius Haertl <jus@bitgrid.net>
8 years ago
Julius Härtl
da5662c454
Use separate element color in theming
This way we can use a grey color when the primary color is to bright
Signed-off-by: Julius Härtl <jus@bitgrid.net>
8 years ago
Jan-Christoph Borchardt
badbab81ea
Update background image to the one used on the website
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
8 years ago
Morris Jobke
e48ca730fe
Add Android and iOS URLs to theming app
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Roeland Jago Douma
e2298e0a71
Allow overwriting of IOS theming values
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
8 years ago
Julius Härtl
52f10c436e
Scale logo only for custom ones
Signed-off-by: Julius Härtl <jus@bitgrid.net>
9 years ago
Lukas Reschke
099234cf12
Add function to request SVG or regular fallback image
Fixes https://github.com/nextcloud/server/issues/4647
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
9 years ago
Julius Haertl
4199a56912
Theming app: Add plain background color option
Signed-off-by: Julius Haertl <jus@bitgrid.net>
9 years ago
Morris Jobke
ac04fb8277
Fix invalid theming URLs
* logo and background image had the cache buster applied twice:
background-image: url(http://192.168.99.100/server/core/img/logo.svg?v=0?v=0 );
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
Julius Härtl
b436e43d68
Make sure that ThemingDefaults uses the correct default values from \OC_Defaults
Signed-off-by: Julius Härtl <jus@bitgrid.net>
9 years ago