@@ -48,9 +48,12 @@ discard block |
||
| 48 | 48 | <div class="container"> |
| 49 | 49 | <?=$form?> |
| 50 | 50 | </div> |
| 51 | - <?php else : ?> |
|
| 51 | + <?php else { |
|
| 52 | + : ?> |
|
| 52 | 53 | <p>Log in to leave a comment</p> |
| 53 | - <?php endif; ?> |
|
| 54 | + <?php endif; |
|
| 55 | +} |
|
| 56 | +?> |
|
| 54 | 57 | |
| 55 | 58 | </div> |
| 56 | 59 | </div> |
@@ -74,7 +77,10 @@ discard block |
||
| 74 | 77 | <a href="<?=$app->url->create("comments/edit/")?>"> |
| 75 | 78 | <button type="submit" class="btn btn-primary" name="submit" value="<?=$id ?? ''?>">Edit your comment</button> |
| 76 | 79 | </a> |
| 77 | - <?php else : ?> |
|
| 80 | + <?php else { |
|
| 81 | + : ?> |
|
| 78 | 82 | <button type="submit" class="btn btn-primary" name="submit" value="<?=$id ?? ''?>">Add your comment</button> |
| 79 | - <?php endif; ?> |
|
| 83 | + <?php endif; |
|
| 84 | +} |
|
| 85 | +?> |
|
| 80 | 86 | </form> --> |