template: custom themes for agenda

For agenda a custom theme can be configured in locations/theme.
Templates are read from the subdirectory "templates/<theme>/".  The
default theme is "default".  All Templates are moved to
templates/default.
This commit is contained in:
Milan
2023-02-25 11:06:52 +01:00
parent e067bc1448
commit ebd521452a
38 changed files with 8 additions and 12 deletions

View File

@@ -0,0 +1,21 @@
<TMPL_IF use_client_cache>Cache-Control: max-age=3600, must-revalidate
</TMPL_IF>Content-type:application/json; charset=UTF-8;
Access-Control-Allow-Origin: *
[<TMPL_LOOP NAME=events>
{
"id" : "<TMPL_VAR event_id>",
"domain" : "https:<TMPL_VAR .source_base_url>",
"url" : "https:<TMPL_VAR .source_base_url>programm/sendung/<TMPL_VAR event_id>.html#<TMPL_VAR event_uri escape=url>",
"title" : "<TMPL_VAR full_title escape=IJSON>",
"excerpt" : "<TMPL_VAR excerpt escape=IJSON>",
"start" : "<TMPL_VAR start_date>T<TMPL_VAR start_time>:00",
"end" : "<TMPL_VAR end_date>T<TMPL_VAR end_time>:00",
"series_name" : "<TMPL_VAR series_name escape=IJSON>",
"image_url" : "<TMPL_VAR series_image_url escape=IJSON>",
<TMPL_IF recurrence_date>"recurrence" : "<TMPL_VAR recurrence_weekday_name>, <TMPL_VAR recurrence_date_name>, <TMPL_VAR recurrence_time_name>",</TMPL_IF>
"topic" : "<TMPL_VAR topic escape=IJSON>",
"content" : "<TMPL_VAR content escape=IJSON>"
}
<TMPL_UNLESS "__last__">,</TMPL_UNLESS>
</TMPL_LOOP>]