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:
56
website/agenda/templates/default/event_menu.html
Normal file
56
website/agenda/templates/default/event_menu.html
Normal file
@@ -0,0 +1,56 @@
|
||||
<TMPL_IF use_client_cache>Cache-Control: max-age=600, must-revalidate
|
||||
</TMPL_IF>Content-type:text/html; charset=UTF-8;
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Cache-control" content="public">
|
||||
<meta http-equiv="expires" content="600">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<TMPL_IF no_results>
|
||||
<div id="empty_or_not">
|
||||
nichts gefunden...
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_LOOP NAME=events>
|
||||
<TMPL_IF event_id>
|
||||
<TMPL_IF name="__first__">
|
||||
<div class="date">
|
||||
<a href="<TMPL_VAR cache_base_url>/<TMPL_VAR .controllers.events>/<TMPL_VAR start_date>.html">
|
||||
<TMPL_VAR weekday_short_name>, <TMPL_VAR start_date_name>
|
||||
</a>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
<a
|
||||
href="<TMPL_VAR cache_base_url>/<TMPL_VAR .controllers.event>/<TMPL_VAR event_id>.html#<TMPL_VAR event_uri escape=url>"
|
||||
>
|
||||
<div id="event_menu_<TMPL_VAR event_id>" class="vevent event<TMPL_IF is_running> running</TMPL_IF>"
|
||||
title="<TMPL_IF program><TMPL_VAR program> - </TMPL_IF><TMPL_IF series_name><TMPL_VAR series_name> - </TMPL_IF><TMPL_VAR title>"
|
||||
>
|
||||
<TMPL_COMMENT>
|
||||
<div class="icon">
|
||||
<TMPL_IF icon><img src="<TMPL_VAR icon>" alt="<TMPL_VAR series_name>" />
|
||||
<TMPL_ELSE><img src="<TMPL_VAR static_files_url>images/event.icon.png" />
|
||||
</TMPL_IF>
|
||||
</div>
|
||||
</TMPL_COMMENT>
|
||||
<div class="title">
|
||||
<TMPL_VAR start_time_name><br />
|
||||
<TMPL_VAR series_name><TMPL_UNLESS series_name>!<TMPL_VAR title></TMPL_UNLESS>
|
||||
</div>
|
||||
|
||||
<span class="dtstart"><TMPL_VAR start></span>
|
||||
<TMPL_IF NAME=end><span class="dtend"><TMPL_VAR end></span></TMPL_IF>
|
||||
<span class="location"><TMPL_VAR location_mapped></span>
|
||||
</div>
|
||||
</a>
|
||||
</TMPL_IF>
|
||||
</TMPL_LOOP>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user