Commit 43e523c041fecf950fd6ed3edbeefc861ccdc6be
1 parent
335f4dba
corection dans le test if en ajoutant <?php ... ?> dans les deux { }
Showing
1 changed file
with
20 additions
and
17 deletions
Show diff stats
topnavbar.php
@@ -3,25 +3,28 @@ | @@ -3,25 +3,28 @@ | ||
3 | <div class="navbar-header"> | 3 | <div class="navbar-header"> |
4 | <a class="navbar-brand" href="#">Titre</a> | 4 | <a class="navbar-brand" href="#">Titre</a> |
5 | </div> | 5 | </div> |
6 | - <div class="collapse navbar-collapse"> | 6 | + <div class="collapse navbar-collapse"> |
7 | 7 | ||
8 | 8 | ||
9 | - <?php | ||
10 | - if ( 1 == 1 ) | ||
11 | - { | ||
12 | - <form class="navbar-form navbar-right" role="search"> | ||
13 | - <button type="submit" class="btn btn-default">Inscription</button> | ||
14 | - <button type="submit" class="btn btn-default">Connection</button> | ||
15 | - </form> | ||
16 | - } | ||
17 | - else | ||
18 | - { | ||
19 | - <p class="navbar-text navbar-right">Bienvenue,_ | ||
20 | - <a href="#" class="navbar-link">enanrock</a> | ||
21 | - </p> | ||
22 | - } | ||
23 | - </div> | 9 | + <?php |
10 | + if ( 1 == 1 ) | ||
11 | + { | ||
12 | + ?> | ||
13 | + <form class="navbar-form navbar-right" role="search"> | ||
14 | + <button type="submit" class="btn btn-default">Inscription</button> | ||
15 | + <button type="submit" class="btn btn-default">Connection</button> | ||
16 | + </form> | ||
17 | + <?php | ||
18 | + } | ||
19 | + else | ||
20 | + { | ||
21 | + ?> | ||
22 | + <p class="navbar-text navbar-right">Bienvenue,_ | ||
23 | + <a href="#" class="navbar-link">enanrock</a> | ||
24 | + </p> | ||
25 | + <?php | ||
26 | + } | ||
24 | ?> | 27 | ?> |
25 | - | 28 | + </div> |
26 | </div> | 29 | </div> |
27 | </nav> | 30 | </nav> |