diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-03-22 19:16:35 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2017-04-03 19:24:55 +0200 |
commit | ae3aa96898834ce3992790e1622541ce48fd78d3 (patch) | |
tree | eaedb30e45748b11a3b5bcf0224ee797c2f341bb /application/PageBuilder.php | |
parent | c84379478621303b186f50d647e90079727b6062 (diff) | |
download | Shaarli-ae3aa96898834ce3992790e1622541ce48fd78d3.tar.gz Shaarli-ae3aa96898834ce3992790e1622541ce48fd78d3.tar.zst Shaarli-ae3aa96898834ce3992790e1622541ce48fd78d3.zip |
Change timezone data structure send to the templates
The goal of this is to be able to adapt the timezone form
in template without hacking the HTML already rendered.
* there are two arrays available:
* `continents` which contains only a list of available continents
* `cities` which contains a list of available timezone cities, associated with their continent
Note: there are two distinct array because RainTPL doesn't support nested loop very well.
Diffstat (limited to 'application/PageBuilder.php')
-rw-r--r-- | application/PageBuilder.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/application/PageBuilder.php b/application/PageBuilder.php index b133dee8..8e39455b 100644 --- a/application/PageBuilder.php +++ b/application/PageBuilder.php | |||
@@ -1,5 +1,7 @@ | |||
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | use Shaarli\Config\ConfigManager; | ||
4 | |||
3 | /** | 5 | /** |
4 | * This class is in charge of building the final page. | 6 | * This class is in charge of building the final page. |
5 | * (This is basically a wrapper around RainTPL which pre-fills some fields.) | 7 | * (This is basically a wrapper around RainTPL which pre-fills some fields.) |