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:
20
website/agenda/templates/default/events_playout.json-p
Normal file
20
website/agenda/templates/default/events_playout.json-p
Normal file
@@ -0,0 +1,20 @@
|
||||
<TMPL_IF use_client_cache>Cache-Control: max-age=600, must-revalidate
|
||||
</TMPL_IF>Content-type:application/json; charset=UTF-8
|
||||
Access-Control-Allow-Origin: *
|
||||
|
||||
"events" : {
|
||||
<TMPL_LOOP events>
|
||||
"event" : [ {
|
||||
"id" : "<TMPL_VAR event_id>",
|
||||
"program" : "<TMPL_VAR program>",
|
||||
"series" : "<TMPL_VAR series_name>",
|
||||
"title" : "<TMPL_VAR title>",
|
||||
"start" : "<TMPL_VAR start_date> <TMPL_VAR start_time>:00",
|
||||
"end" : "<TMPL_VAR end_date> <TMPL_VAR end_time>:00",
|
||||
"location" : "<TMPL_VAR location>",
|
||||
"published" : "<TMPL_VAR created_at>",
|
||||
"updated" : "<TMPL_VAR modified_at>",
|
||||
} ]
|
||||
<TMPL_UNLESS NAME="__last__">,</TMPL_UNLESS>
|
||||
</TMPL_LOOP>
|
||||
}
|
||||
Reference in New Issue
Block a user