diff --git a/onyx/include/public/home.php b/onyx/include/public/home.php index a1542da3..28d73005 100644 --- a/onyx/include/public/home.php +++ b/onyx/include/public/home.php @@ -3,6 +3,8 @@ if(!defined('ONYX')) exit; $template->assign("teams", Team::get_teams()); -$template->assign("top", Team::get_top()); +$template->assign("top", Team::get_top(10)); +$template->assign("themes", Theme::get_themes()); +$template->assign("nbExoMax", Exercice::get_nbExoMax()); return "public/home"; diff --git a/onyx/tpl/bootstrap/public/home.tpl b/onyx/tpl/bootstrap/public/home.tpl index 9c6672c1..a3300995 100644 --- a/onyx/tpl/bootstrap/public/home.tpl +++ b/onyx/tpl/bootstrap/public/home.tpl @@ -1,11 +1,88 @@ {extends file="layout.tpl"} -{block name=content} -

- Hello World! -

-{foreach from=$teams item=i} - -{/foreach} + +{block name=head} + {/block} + +{block name=content} + +
+
+ +
+ +
+ {if $ERRmessage} +
+ + {$ERRmessage} +
+ {/if} + +
+
+

TOP #10

+
+ {foreach from=$top item=t} +
{$t->get_name()}
+ {/foreach} +
+
+ + +
+
+

Example

+

This is a example

+

This is a example

+

This is a example

+

This is a example

+

This is a example

+

This is a example

+
+
+
+ +
+ +{/block} +{block name=end} + + +{/block} +