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,33 @@
<TMPL_IF use_client_cache>Cache-Control: max-age=600, must-revalidate
</TMPL_IF>Content-type:text/plain; charset=utf-8;
$events=[
<TMPL_LOOP NAME=events>
{
'event_id' => q|<TMPL_VAR event_id>|,
'start_date' => q|<TMPL_VAR start_date>|,
'start_datetime' => q|<TMPL_VAR start_datetime>|,
'end_datetime' => q|<TMPL_VAR end_datetime>|,
'weekday_short_name' => q|<TMPL_VAR weekday_short_name>|,
'location' => q|<TMPL_VAR location_mapped>|,
'location_mapped' => q|<TMPL_VAR location_mapped>|,
'image' => q|<TMPL_VAR image>|,
'project_title' => q|<TMPL_VAR project_title>|,
'program' => q|<TMPL_VAR program>|,
'series_name' => q|<TMPL_VAR series_name>|,
'title' => q|<TMPL_VAR title>|,
'user_title' => q|<TMPL_VAR user_title>|,
'excerpt' => q|<TMPL_VAR excerpt>|,
'user_excerpt' => q|<TMPL_VAR user_excerpt>|,
'episode' => q|<TMPL_VAR episode>|,
'full_title' => q|<TMPL_VAR full_title>|,
'content' => q|<TMPL_VAR content>|
}<TMPL_UNLESS __last__>,</TMPL_UNLESS>
</TMPL_LOOP>
];
<TMPL_IF asd>
'content' => q$<TMPL_VAR content>$
</TMPL_IF>