tiki-export_page_xml.tpl 2.19 KB
Newer Older
sylvieg's avatar
sylvieg committed
1
<page zip="{$info.zip|escape}">
2 3 4 5
<name><![CDATA[{$info.pageName|escape:'html'}]]></name>
{if $info.description}<description><![CDATA[{$info.description|escape:'html'}]]></description>{/if}
{if $info.comment}<comment><![CDATA[{$info.comment|escape:'html'}]]></comment>{/if}
<creator><![CDATA[{$info.creator|escape:'html'}]]></creator>
6 7 8 9
<user><![CDATA[{$info.user|escape:"html"}]]></user>
{if $info.lang}<lang>{$info.lang}</lang>{/if}
<is_html>{$info.is_html}</is_html>
<wysiwyg>{$info.wysiwyg}</wysiwyg>
10 11
<created>{$info.created}</created>
<lastModif>{$info.lastModif}</lastModif>
12
<hits>{$info.hits}</hits>
13
{*<data><![CDATA[{$info.data|escape:'html'}]]></data>*}
14 15 16
{if $config.comments and !empty($comments)}
<comments>
{foreach from=$comments item=comment}
17
	{include file='tiki-export_comment_xml.tpl'}
18 19 20 21 22 23
{/foreach}
</comments>
{/if}
{if $config.images and !empty($images)}
<images>
{foreach from=$images item=img}
sylvieg's avatar
sylvieg committed
24
	<image zip="{$img.zip|escape}"
25
	{if $img.filename} filename="{$img.filename}"{/if}
26
	{if $img.name} name="{$img.name|escape:'html'}"{/if}
27 28 29
	{if $img.galleryId} galleryId="{$img.galleryId}"{/if}
	{if $img.id} id="{$img.id}"{/if}
	{if $img.where} where="{$img.where}"{/if}
30
	><wiki><![CDATA[{$img.wiki|escape:'html'}]]></wiki></image>
31 32 33 34 35 36
{/foreach}
</images>
{/if}
{if $config.attachments and !empty($attachments)}
<attachments>
{foreach from=$attachments item=att}
37
	<attachment filename="{$att.filename|escape:'html'}" attId="{$att.attId}" zip="{$att.zip}">
38 39
		<filesize>{$att.filesize}</filesize>
		<filetype>{$att.filetype}</filetype>
40 41
		<user><![CDATA[{$att.user|escape:'html'}]]></user>
		{if $att.comment}<comment><![CDATA[{$att.comment|escape:'html'}]]></comment>{/if}
42
		<created>{$att.created}</created>
43 44 45 46 47 48 49
	</attachment>
{/foreach}
</attachments>
{/if}
{if $config.history and !empty($history)}
<history>
{foreach from=$history item=hist}
sylvieg's avatar
sylvieg committed
50
	<version version="{$hist.version}" zip="{$hist.zip|escape}">
51 52 53 54
		<user><![CDATA[{$hist.user|escape:'html'}]]></user>
		{if $hist.description}<description><![CDATA[{$hist.description|escape:'html'}]]></description>{/if}
		{if $hist.comment}<comment><![CDATA[{$hist.comment|escape:'html'}]]></comment>{/if}
		<lastModif>{$hist.lastModif}</lastModif>
55 56 57 58
	</version>
{/foreach}
</history>
{/if}
59
</page>