improve video page

This commit is contained in:
2025-04-08 09:59:15 +04:00
parent 295e83e1d6
commit ef779c518a
2 changed files with 46 additions and 28 deletions
+26 -26
View File
@@ -205,8 +205,8 @@ if (empty($videoData) || isset($videoData['error'])) {
<div class="video-info">
<div class="video-metadata">
<span class="video-views"><?php echo formatViewCount($video['views']); ?> vues</span>
<span class="video-date"><?php echo formatDate($video['date']); ?></span>
<span class="video-views"><i class="fas fa-eye"></i> <?php echo formatViewCount($video['views']); ?> vues</span>
<span class="video-date"><i class="far fa-calendar-alt"></i> <?php echo formatDate($video['date']); ?></span>
</div>
<div class="video-actions">
@@ -248,6 +248,30 @@ if (empty($videoData) || isset($videoData['error'])) {
</div>
<?php endif; ?>
</div>
<?php if (ENABLE_COMMENTS): ?>
<!-- Section commentaires -->
<div class="comments-section">
<h3>Commentaires</h3>
<div class="comment-form">
<div class="comment-avatar">
<img src="img/default-avatar.jpg" alt="Avatar">
</div>
<div class="comment-input">
<textarea placeholder="Ajouter un commentaire public..."></textarea>
<div class="comment-buttons">
<button class="comment-cancel">Annuler</button>
<button class="comment-submit">Commenter</button>
</div>
</div>
</div>
<div class="comments-list">
<p class="no-comments">Les commentaires sont en cours de développement.</p>
</div>
</div>
<?php endif; ?>
</div>
<div class="video-suggestions">
@@ -276,30 +300,6 @@ if (empty($videoData) || isset($videoData['error'])) {
<p>Aucune vidéo suggérée disponible</p>
<?php endif; ?>
</div>
<?php if (ENABLE_COMMENTS): ?>
<!-- Section commentaires -->
<div class="comments-section">
<h3>Commentaires</h3>
<div class="comment-form">
<div class="comment-avatar">
<img src="img/default-avatar.jpg" alt="Avatar">
</div>
<div class="comment-input">
<textarea placeholder="Ajouter un commentaire public..."></textarea>
<div class="comment-buttons">
<button class="comment-cancel">Annuler</button>
<button class="comment-submit">Commenter</button>
</div>
</div>
</div>
<div class="comments-list">
<p class="no-comments">Les commentaires sont en cours de développement.</p>
</div>
</div>
<?php endif; ?>
</div>
<?php endif; ?>