| #
4593dbd2 |
| 28-Feb-2019 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Use config cascade for style.ini files
This simplifies style loading and allows the plugins like farmer to extend the the loading of style files. Also adds some first unit tests.
Originally discuss
Use config cascade for style.ini files
This simplifies style loading and allows the plugins like farmer to extend the the loading of style files. Also adds some first unit tests.
Originally discussed in FS#2703 and #134
Squashed commit of the following:
commit 5ed550f6ba61a1d475b7572cbff18f0d790c78c2 Merge: 0cefed65e cab1833b0 Author: Andreas Gohr <gohr@cosmocode.de> Date: Thu Feb 28 13:38:46 2019 +0100
Merge branch 'styleConfCascade' of https://github.com/annda/dokuwiki into annda-styleConfCascade
* 'styleConfCascade' of https://github.com/annda/dokuwiki: Clean up StyleUtils Update StyleUtils test Fix array to boolean conversion Use better placeholder string in config cascade Calls to StyleUtils use the new constructor Add test for StyleUtils Refactor StyleUtils WIP add temporary test comparing two implementations of StyleUtils WIP add new style config cascade side by side with the old one
commit cab1833b09a59331a5580fe0e3e6f36d743dea09 Author: Anna Dabrowska <dabrowska@cosmocode.de> Date: Thu Feb 21 17:54:27 2019 +0100
Clean up StyleUtils
commit 766e3907cf7b234c3f2fa7bf86f205c1c8c7c6e1 Author: Anna Dabrowska <dabrowska@cosmocode.de> Date: Thu Feb 21 17:51:15 2019 +0100
Update StyleUtils test
commit f5c08787ddf9db60e3429421e5c627d5c81d876a Author: Anna Dabrowska <dabrowska@cosmocode.de> Date: Thu Feb 21 12:51:53 2019 +0100
Fix array to boolean conversion
commit c9671698992328d5671a43b2707ffc6c5b117423 Author: Anna Dabrowska <dabrowska@cosmocode.de> Date: Thu Feb 21 12:38:55 2019 +0100
Use better placeholder string in config cascade
commit 4845eff54d227325476bb00b7c8402ce58cf72df Author: Anna Dabrowska <dabrowska@cosmocode.de> Date: Thu Feb 21 12:24:16 2019 +0100
Calls to StyleUtils use the new constructor
commit 7a6337a8f8f2cc0cedbf54ae0b43e94033192cb8 Author: Anna Dabrowska <dabrowska@cosmocode.de> Date: Thu Feb 21 12:22:44 2019 +0100
Add test for StyleUtils
commit 5ae9e8f69e076ab2a18b24aa178cca15fea6b000 Author: Anna Dabrowska <dabrowska@cosmocode.de> Date: Thu Feb 21 12:16:57 2019 +0100
Refactor StyleUtils
commit a2adcc9f37be93f4bcf90fdba4089ea4b0d6436e Author: Anna Dabrowska <dabrowska@cosmocode.de> Date: Sat Feb 16 23:58:04 2019 +0100
WIP add temporary test comparing two implementations of StyleUtils
commit 845c40c4faf379a65134e171514a09d47ffe95f1 Author: Anna Dabrowska <dabrowska@cosmocode.de> Date: Sat Feb 16 23:59:41 2019 +0100
WIP add new style config cascade side by side with the old one
show more ...
|
| #
d8b49288 |
| 27-Feb-2019 |
Andreas Gohr <andi@splitbrain.org> |
Merge pull request #2689 from splitbrain/refactorCachePSR2
Refactor cache.php to better conform with PSR 2
|
| #
dc7da772 |
| 24-Feb-2019 |
Michael Große <mic.grosse@googlemail.com> |
Use setter instead of deprecate public property
|
| #
e24a74c0 |
| 24-Feb-2019 |
Andreas Gohr <andi@splitbrain.org> |
PSR2 style fixes
These are some simple whitespace/arrangement things that apparantly can't be fixed automatically
|
| #
923e149a |
| 15-Feb-2019 |
Michael Große <mic.grosse@googlemail.com> |
Merge branch 'master' into psr2
|
| #
0db5771e |
| 02-Feb-2019 |
Michael Große <mic.grosse@googlemail.com> |
Refactor cache.php into different files
|
| #
60764596 |
| 12-Dec-2018 |
Andreas Gohr <gohr@cosmocode.de> |
removed unnecessary count
|
| #
82869352 |
| 04-Dec-2018 |
Csaba Tóth <csaba.toth@i3rendszerhaz.hu> |
Fix a php7 bug
php7 syntax fix.
https://forum.dokuwiki.org/thread/15725
https://forum.dokuwiki.org/post/58606
|
| #
64159a61 |
| 27-Apr-2018 |
Andreas Gohr <andi@splitbrain.org> |
line lengths shortened
This makes sure all files use line lenghts shorter than 120 characters.
This is a quick fix. It might not always be the nicest change.
|
| #
fb1f9089 |
| 01-Feb-2018 |
Michael Große <grosse@cosmocode.de> |
refactor: extract css utils to an autoloaded class
The goal is to make the css replacement accessible in other contexts, for example for the manifest.
|
| #
14cd40ec |
| 05-Jan-2018 |
Chang Zhao <chang-zhao@users.noreply.github.com> |
Update css.php
typo
|
| #
9f184f79 |
| 10-Dec-2017 |
Andreas Gohr <andi@splitbrain.org> |
make sure guaranteed placeholders are defined. fixes #1792
This adds some simple defaults for the guaranteed placeholders. This ensures plugins can safely use these placeholders even when a template
make sure guaranteed placeholders are defined. fixes #1792
This adds some simple defaults for the guaranteed placeholders. This ensures plugins can safely use these placeholders even when a template did not implement them.
show more ...
|
| #
ba3e3dd7 |
| 01-Aug-2017 |
Andreas Gohr <andi@splitbrain.org> |
Merge pull request #1862 from gamma/css-modifications-2
Css modification actions - alternative
|
| #
cf35519c |
| 01-Aug-2017 |
Gerry Weißbach <gerry.w@gammaproduction.de> |
Make default encapsulation more readable and less duplicate.
|
| #
85319150 |
| 01-Aug-2017 |
Gerry Weißbach <gerry.w@gammaproduction.de> |
Add the preview-bool for the cache file.
|
| #
8f34cf3d |
| 26-Jul-2017 |
Michael Große <grosse@cosmocode.de> |
Fix PHP Notices: Reduce error log noise
While DokuWiki suppresses PHP Notices they are still a code smell and should be fixed. This fixes some PHP Notices that occurred.
Some of these fixes could b
Fix PHP Notices: Reduce error log noise
While DokuWiki suppresses PHP Notices they are still a code smell and should be fixed. This fixes some PHP Notices that occurred.
Some of these fixes could be refactored into nicer code once we move to PHP 7 and get access to the `??` operator.
show more ...
|
| #
e7c68c4d |
| 13-Mar-2017 |
Gerry Weißbach <gerry.w@gammaproduction.de> |
Check for cache usage first
This is important because the $cache->cache would have been set already and have no impact on the delivered result. Meaning: two different requests could have resulted in
Check for cache usage first
This is important because the $cache->cache would have been set already and have no impact on the delivered result. Meaning: two different requests could have resulted in the same result.
show more ...
|
| #
4f1465c1 |
| 22-Feb-2017 |
Gerry Weißbach <gerry.w@gammaproduction.de> |
Syntax error and another bit of flavour.
|
| #
3e32b194 |
| 22-Feb-2017 |
Gerry Weißbach <gerry.w@gammaproduction.de> |
Remove the flavour feature. It was some kind of a hassle. If you really want to filter out styles, you have to write a plugin either way and implement the tpl metaheaders event as well and handle eve
Remove the flavour feature. It was some kind of a hassle. If you really want to filter out styles, you have to write a plugin either way and implement the tpl metaheaders event as well and handle everything your self.
The CSS modification is more like the JS_SCRIPT_LIST now. It adds some overhead, but not too much. It still gives great flexibility over the CSS.
show more ...
|
| #
5d48a5ea |
| 12-Feb-2017 |
Gerry Weißbach <gerry.w@gammaproduction.de> |
Remove `handheld`, add `speech` as default media types.
|
| #
5161ec70 |
| 10-Feb-2017 |
Gerry Weißbach <gerry.w@gammaproduction.de> |
Typo fix.
|
| #
8d721324 |
| 10-Feb-2017 |
Gerry Weißbach <gerry.w@gammaproduction.de> |
Revert the http_cached line to the one already in the code to keep changes at a minimum.
|
| #
f2342ff0 |
| 10-Feb-2017 |
Gerry Weißbach <gerry.w@gammaproduction.de> |
Code Cleanup. Replaced \t with 4xSpace.
|
| #
8930b69d |
| 10-Feb-2017 |
Gerry Weißbach <gerry.w@gammaproduction.de> |
Changed the cache initialisation: it does not use the list of files with an md5 (due to redundancy and time consumption) but the flavour and the type (previously removed).
|
| #
ef36714b |
| 09-Feb-2017 |
Gerry Weißbach <gerry.w@gammaproduction.de> |
Use the flavour system to create individual css files. Only the default flavour (style / style.ini) will have the default styles for interwiki and filetypes. There are two new events:
1. CSS_STYLES
Use the flavour system to create individual css files. Only the default flavour (style / style.ini) will have the default styles for interwiki and filetypes. There are two new events:
1. CSS_STYLES_INCLUDED to modify the list of stylesheet files for a certain mediatype or prevent the mediatype or styles within it. This event is fired for the interwiki and filetypes too, to prevent that they are included * The Data that is being sent to the event contains: list of files or the keyword DW_DEFAULT for the interwiki / filetypes; the mediatype, the flavour, if the data should be encapsulated by a default @media and the encapsualation prefix (e.g. @media screen) 2. CSS_CACHE_USE to prevent the use of a cached version of the CSS, just like the JS event that already exists.
show more ...
|