diff --git a/onyx2/tpl/cms/header.tpl b/onyx2/tpl/cms/header.tpl index c1df5aa..6c2a267 100644 --- a/onyx2/tpl/cms/header.tpl +++ b/onyx2/tpl/cms/header.tpl @@ -25,4 +25,4 @@
{$info.texte}
{/foreach} {$LANG.cntRaces|sprintf:$header.count.1:$header.count.0:$header.count.2} -
\ No newline at end of file +
diff --git a/onyx2/tpl/cms/inscription.tpl b/onyx2/tpl/cms/inscription.tpl index bd52013..12aaca0 100644 --- a/onyx2/tpl/cms/inscription.tpl +++ b/onyx2/tpl/cms/inscription.tpl @@ -9,7 +9,8 @@
Formulaire d'inscription
- +
+



diff --git a/onyx2/tpl/game/accueil.tpl b/onyx2/tpl/game/accueil.tpl index 3d30ac7..a17d21b 100644 --- a/onyx2/tpl/game/accueil.tpl +++ b/onyx2/tpl/game/accueil.tpl @@ -26,8 +26,8 @@ {/if}

Infos

{if $smarty.const.SURFACE == "planete"} -

{dDonnees::nameVilles($planete->batiments[17])}

-

Diamètre: {$diametre|separerNombres} km ({$planete->casesRest} case{if $planete->casesRest > 1}s{/if} disponible{if $planete->casesRest > 1}s{/if} sur {dDonnees::capaciteVilles($planete)|separerNombres})

+

{php}dDonnees::nameVilles($this->_tpl_vars['planete']->batiments[17]){/php}

+

Diamètre: {$diametre|separerNombres} km ({$planete->casesRest} case{if $planete->casesRest > 1}s{/if} disponible{if $planete->casesRest > 1}s{/if} sur {php}dDonnees::capaciteVilles($this->_tpl_vars['planete']){/php})

{/if}

Race : {$planete->race}

position: {$planete->galaxie}.{$planete->ss}.{$planete->position}

diff --git a/onyx2/tpl/game/caserne.tpl b/onyx2/tpl/game/caserne.tpl index 9040af1..cfd7766 100644 --- a/onyx2/tpl/game/caserne.tpl +++ b/onyx2/tpl/game/caserne.tpl @@ -1,8 +1,9 @@ {include file='game/header.tpl'}
    - {for $i=0; $i<$planete->batiments.9; $i++} + {section name=nb start=0 loop=$planete->batiments.9} + {assign var=i value=$smarty.section.nb.index} Caserne {$i+1} - {/for} + {/section}

File d'attente

diff --git a/onyx2/tpl/game/chantierspatial.tpl b/onyx2/tpl/game/chantierspatial.tpl index 66b8c7d..f46a024 100644 --- a/onyx2/tpl/game/chantierspatial.tpl +++ b/onyx2/tpl/game/chantierspatial.tpl @@ -5,9 +5,10 @@ {assign var='max' value=$planete->batiments.3} {/if}
    - {for $i=0; $i<$max; $i++} + {section name=nb start=0 loop=$max} + {assign var=i value=$smarty.section.nb.index} Chantier {$i+1} - {/for} + {/section}

File d'attente

diff --git a/onyx2/tpl/game/chantierterrestre.tpl b/onyx2/tpl/game/chantierterrestre.tpl index 48662db..e278bad 100644 --- a/onyx2/tpl/game/chantierterrestre.tpl +++ b/onyx2/tpl/game/chantierterrestre.tpl @@ -1,8 +1,9 @@ {include file='game/header.tpl'}
    - {for $i=0; $i<$planete->batiments.7; $i++} + {section name=nb start=0 loop=$planete->batiments.7} + {assign var=i value=$smarty.section.nb.index} Chantier {$i+1} - {/for} + {/section}
    diff --git a/onyx2/tpl/game/header.tpl b/onyx2/tpl/game/header.tpl index 8403b86..edd4393 100644 --- a/onyx2/tpl/game/header.tpl +++ b/onyx2/tpl/game/header.tpl @@ -55,7 +55,7 @@
-{if $page != "admin" && $page != "vide" && $page != "amis" && $page != "flotten" && $page != "messagerie" && $page != "pilori" && $page != "envoyer" && $page != "bugs" && $page != "carte" && $page != "classement" && $page != "options" && $page != "simulation" && $page != "vp" && $page != "operateur" && !ereg("alliance/", $page) && !ereg("diplomatie/", $page)} +{if $page != "admin" && $page != "vide" && $page != "amis" && $page != "flotten" && $page != "messagerie" && $page != "pilori" && $page != "envoyer" && $page != "bugs" && $page != "carte" && $page != "classement" && $page != "options" && $page != "simulation" && $page != "vp" && $page != "operateur" && !preg_match("#alliance/#", $page) && !preg_match("#diplomatie/#", $page)}