Вход Регистрация
Файл: adultscript-2.0.3-pro/files/templates/defboot/_comments_list.tpl.php
Строк: 154
<?php defined('_VALID') or die('Restricted Access!'); ?>
                    <div id="comments-container">
                        <input name="comment-page" type="hidden" value="2" />
                        <?php if ($this->comments): ?>
                        <?php foreach ($this->comments as $comment): ?>
                        <div id="comment-<?php echo $comment['comment_id']; ?>" class="media">
                              <div class="media-left">
                                  <?php if ($comment['user_id']): ?>
                                  <a href="<?php echo REL_URL,'/users/',e($comment['username']); ?>/" style="display: block; position: relative;">
                                      <img class="media-object img-rounded" src="<?php echo USER_URL,'/'; if ($comment['avatar'] != ''): echo $comment['user_id'],'.',$comment['avatar']; else: echo 'nopic-',$comment['gender'],'.gif'; endif; ?>" width="70" alt="<?php echo __('alt-avatar', array($comment['username'])); ?>" />
                                  </a>
                                  <?php else: ?>
                                  <img class="media-object img-rounded" src="<?php echo USER_URL?>/nopic-hidden.gif" width="70" alt="Anonymous">
                                  <?php endif; ?>
                              </div>
                            <div class="media-body">
                                  <div class="media-heading">
                                      <?php echo __('by'); ?> <span>
                                      <?php if ($comment['user_id']): echo '<a href="',REL_URL,'/users/',e($comment['username']),'/">',e($comment['username']); ?></a>
                                      <?php else: echo $comment['nickname']; endif; echo '</span> ',VDate::nice($comment['add_time']); ?>
                                      
                                      <?php $status = (isset($comment['status'])) ? $comment['status'] : null?>
                                      <div class="<?php if (isset($status)): echo 'buttons-user'; else: echo 'buttons'; endif; ?> pull-right"<?php if (!isset($status)): echo ' style="display: none;"'; endif; ?>>
                                          <?php if ($status == '0'): ?>
                                          <button id="comment-approve-<?php echo $comment['comment_id']; ?>" type="button" class="btn btn-success btn-xs"><?php echo __('approve'); ?></button>
                                        <?php endif; if (($comment['user_id'] && $comment['user_id'] == $this->user_id) or VAuth::group('Moderator')): ?>
                                        <button id="comment-delete-<?php echo $comment['comment_id']; ?>" type="button" class="btn btn-danger btn-xs"><?php echo __('delete'); ?></button>
                                        <?php endif; ?>
                                        <span id="spam-<?php echo $this->type,'-',$comment['comment_id']; ?>">
                                            <button id="spam-<?php echo $this->type,'-',$comment['comment_id'],'-',$this->parent_id?>" type="button" class="btn btn-warning btn-xs"><?php echo __('spam'); ?></button>
                                        </span>
                                    </div>
                                </div>
                                <p><?php echo nl2br(e($comment['comment'])); ?></p>
                                <?php if (VAuth::loggedin()): ?>
                                <div class="media-footer-<?php echo $comment['comment_id']; ?>">
                                      <small class="text-success"><?php echo $comment['likes']; ?></small>
                                      <button id="vote-<?php echo $this->type?>-up-<?php echo $comment['comment_id']; ?>" class="btn btn-link btn-xs btn-thumb" data-toggle="tooltip" data-placement="top" title="<?php echo __('vote-up'); ?>"><i class="fa fa-thumbs-up"></i></button>
                                      <button id="vote-<?php echo $this->type?>-down-<?php echo $comment['comment_id']; ?>" class="btn btn-link btn-xs btn-thumb" data-toggle="tooltip" data-placement="top" title="<?php echo __('vote-down'); ?>"><i class="fa fa-thumbs-down"></i></button>
                                </div>
                                <?php endif; ?>
                            </div>
                        </div>
                        <?php endforeach; else: ?>
                        <div id="no-comments" class="none"><?php echo __('no-comments'); ?></div>
                        <?php endif; ?>
                    </div>
                    <?php if (!isset($this->colmenu)): if ($this->pagination['total_items'] > $this->comments_per_page): ?>
                    <div class="text-center margin-top-10">
                        <button id="comment-pagination" type="button" class="btn btn-primary btn-lg"><i class="fa fa-circle-o-notch fa-spin"></i> <?php echo __('show-more'); ?></button>
                    </div>
                    <?php endif; endif; ?>
Онлайн: 1
Реклама