forked from scoutnet/templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworldscoutjamboree.tpl
58 lines (55 loc) · 2.12 KB
/
worldscoutjamboree.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{* Entfernt alle unnötigen Leerzeichen und Leerzeilen bis {/strip} *}{strip}
{*
Name : Kalender 2.0 Template - XML
Dateiname : xml.tpl
Autor : Carsten Horst
Letzte Änderung : 02.07.2004 (Carsten Horst)
Version : 1.0.1
notwendige Konfiguration : keine
*}
{if $groups.jahrmonat}
{assign var="groups" value="`$groups.jahrmonat`"}
{/if}
{/strip}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE ScoutNetCalendarData [
<!ELEMENT ScoutNetCalendarData (Entry)+>
<!ELEMENT Entry (CId, SDate, STime, EDate, ETime, Title, Place, Category, Section, Author, Association, Level, Info)>
<!ELEMENT CId (#PCDATA)>
<!ELEMENT SDate (#PCDATA)>
<!ELEMENT STime (#PCDATA)>
<!ELEMENT EDate (#PCDATA)>
<!ELEMENT ETime (#PCDATA)>
<!ELEMENT Title (#PCDATA)>
<!ELEMENT Place (#PCDATA)>
<!ELEMENT Category (#PCDATA)>
<!ELEMENT Section (#PCDATA)>
<!ELEMENT Author (#PCDATA)>
<!ELEMENT Association (#PCDATA)>
<!ELEMENT Level (#PCDATA)>
<!ELEMENT Info (#PCDATA)>
]>
<ScoutNetCalendarData>
{foreach from=$groups item=monat}
{foreach from=$monat.eintraege item=eintrag}
<Entry>
<CId>{$kalender.id}</CId>
<SDate>{$eintrag.startdatum|date_format:"0,0,0,%m,%d,%y"}</SDate>
<STime>{$eintrag.startzeit|date_format:"%H,%M,0,1,1,1970"}</STime>
<EDate>{$eintrag.enddatum|date_format:"0,0,0,%m,%d,%y"}</EDate>
<ETime>{$eintrag.endzeit|date_format:"%H,%M,0,1,1,1970"}</ETime>
<Title>{$eintrag.titel}</Title>
<Place>{$eintrag.ort}</Place>
<Section><![CDATA[{$eintrag.stufe.bildlich_scoutnet}]]></Section>
{if $eintrag.autor.vorname || $eintrag.autor.nachname}
<Author>{$eintrag.autor.vorname} {$eintrag.autor.nachname}</Author>
{else}
<Author>{$eintrag.autor.nickname}</Author>
{/if}
<Association>{$eintrag.kalender.verband}</Association>
<Level>{$eintrag.kalender.ebene}</Level>
<Info>testinfo{*<![CDATA[{$eintrag.info|nl2br}]]>*}</Info>
</Entry>
{/foreach}
{/foreach}
</ScoutNetCalendarData>