@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | <form action="<?=WEBROOT?>controller/modules/comment/write_comment" method="post" class="row"> |
3 | 3 | <?php if (!isset($_SESSION['idlogin'.CLEF_SITE])):?> |
4 | 4 | <input type="text" name="pseudo" placeholder="Your pseudo"> |
5 | - <?php endif;?> |
|
5 | + <?php endif; ?> |
|
6 | 6 | <textarea name="comment" id="" cols="30" rows="10"></textarea> |
7 | 7 | <button>Send</button> |
8 | 8 | |
@@ -12,4 +12,4 @@ discard block |
||
12 | 12 | <div class="row"> |
13 | 13 | <p>You must be connected to publish a comment</p> |
14 | 14 | </div> |
15 | -<?php endif;?> |
|
16 | 15 | \ No newline at end of file |
16 | +<?php endif; ?> |
|
17 | 17 | \ No newline at end of file |
@@ -8,8 +8,11 @@ |
||
8 | 8 | |
9 | 9 | <input type="hidden" name="return_page" value="http://<?=$_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI]?>"> |
10 | 10 | </form> |
11 | -<?php else: ?> |
|
11 | +<?php else { |
|
12 | + : ?> |
|
12 | 13 | <div class="row"> |
13 | 14 | <p>You must be connected to publish a comment</p> |
14 | 15 | </div> |
15 | -<?php endif;?> |
|
16 | 16 | \ No newline at end of file |
17 | +<?php endif; |
|
18 | +} |
|
19 | +?> |
|
17 | 20 | \ No newline at end of file |