Вход Регистрация
Файл: adultscript-2.0.3-pro/files/mobile/templates/default/users_comments_block.tpl.php
Строк: 95
<?php defined('_VALID') or die('Restricted Access!'); $now time()-1800?>
            </div>
            <div class="ui-body ui-body-b">
                  <?php if ($this->is_loggedin && $this->user['allow_comments'] != 'no'): ?>
                  <center><button id="response-comment" disabled="" style="display:none;" data-icon="alert"></button></center>
                  <textarea cols="40" rows="8" name="comment" id="comment"></textarea>
                  <button id="post-comment" data-inline="true" data-mini="true" data-role="button" data-icon="comment"><?php echo __('post-comment'); ?></button>
                  <br>
                  <?php endif; ?>
                  <?php if ($this->comments): ?>
                  <br>
                  <ul id="comments" data-role="listview">
                      <li id="comments-post-container" style="display: none;"></li>
                      <?php foreach ($this->comments as $comment): ?>
                      <li id="comment-<?php echo $comment['comment_id']; ?>">
                        <img src="<?php echo USER_URL,'/'; if ($comment['avatar'] !=''): echo $comment['user_id'],'.',$comment['avatar']; else: echo 'nopic-',$comment['gender'],'.gif'; endif; ?>" alt="<?php echo e($comment['username']); ?> Avatar" />
                        <p class="comment"><?php echo nl2br($comment['comment']); ?></p>
                        <p class="cfooter">By <strong><?php echo e($comment['username']); ?></strong> <?php echo VDate::nice($comment['add_date']); ?></p>
                        <p>
                        <?php if ($this->is_loggedin): ?>
                            <button id="comment-report-<?php echo $comment['comment_id']; ?>" data-role="none" class="btnsmall"><?php echo __('spam'); ?></button>
                            <?php if ($comment['user_id'] == $_SESSION['user_id']): ?>
                            <button id="comment-delete-<?php echo $comment['comment_id']; ?>" data-role="none" class="btnsmall"><?php echo __('delete'); ?></button>
                            <?php endif; ?>
                        <?php endif; ?>
                        </p>
                      </li>
                      <?php endforeach; ?>
                  </ul>
                <br>
                <center><?php echo p('pagination'$this->paginationMOBILE_REL.'/users/'.e($this->username).'/comments/#PAGE#/'?></center>
                  <?php else: ?>
                  <div class="none"><?php echo __('no-comments', array($this->username)); ?></div>
                  <?php endif; ?>
Онлайн: 0
Реклама