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:
33
website/agenda/templates/default/event_perl.txt
Normal file
33
website/agenda/templates/default/event_perl.txt
Normal 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>
|
||||
Reference in New Issue
Block a user