Admin part: can import, export and drop themes
This commit is contained in:
parent
4d1a860a01
commit
ffe0c2a7c4
8 changed files with 217 additions and 7 deletions
23
onyx/tpl/bootstrap/admin/export_theme.tpl
Normal file
23
onyx/tpl/bootstrap/admin/export_theme.tpl
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<theme>
|
||||
<title>{$theme->get_name()}</title>
|
||||
{if $theme->get_exercicesOrdered()}
|
||||
{foreach from=$theme->get_exercicesOrdered() item=e}
|
||||
<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>
|
||||
Reference in a new issue