2013-11-08 19:46:48 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<theme>
|
|
|
|
<title>{$theme->get_name()}</title>
|
2013-11-12 15:52:50 +00:00
|
|
|
{if $theme->get_exercices_ordered()}
|
|
|
|
{foreach from=$theme->get_exercices_ordered() item=e}
|
2013-11-08 19:46:48 +00:00
|
|
|
<exercice id="{$e->id}" level="{$e->level}"{if $e->require} depends="{$e->require}"{/if}>
|
|
|
|
<title>{$e->get_name()}</title>
|
|
|
|
<points>{$e->points}</points>
|
|
|
|
<statement>{$e->statement}</statement>
|
|
|
|
{if $e->keys}
|
|
|
|
{foreach from=$e->keys item=k}
|
|
|
|
<key format="{$k.format}">{$k.value}</key>
|
|
|
|
{/foreach}
|
|
|
|
{/if}
|
|
|
|
{if $e->files}
|
|
|
|
{foreach from=$e->files item=f}
|
|
|
|
<file path="{$f.path}" sha1="{$f.sha1}">{$f.name}</file>
|
|
|
|
{/foreach}
|
|
|
|
{/if}
|
|
|
|
</exercice>
|
|
|
|
{/foreach}
|
|
|
|
{/if}
|
|
|
|
</theme>
|