Файл: adultscript-2.0.3-pro/files/templates/defboot/pornstar_comments.tpl.php
Строк: 80
<?php defined('_VALID') or die('Restricted Access!'); ?>
<?php echo $this->fetch('_pornstar'); ?>
<ul class="nav nav-tabs">
<li><a href="<?php echo REL_URL,'/pornstar/',$this->pornstar['slug']; ?>/"><strong><?php echo __('videos'),' (',$this->videos; ?>)</strong></a></li>
<?php if ($this->albums): ?><li><a href="<?php echo REL_URL,'/pornstar/',$this->pornstar['slug']; ?>/albums/"><strong><?php echo __('photos'),' (',$this->albums; ?>)</strong></a></li><?php endif; ?>
<li class="active"><a href="<?php echo REL_URL,'/pornstar/',$this->pornstar['slug']; ?>/comments/"><strong><?php echo __('comments'),' (<span id="total-comments">',$this->pagination['total_items']; ?></span>)</strong></a></li>
</ul>
<div class="content-model">
<h2><?php echo e($this->title); ?></h2>
<?php $allow_comment = VCfg::get('pornstar.allow_comment'); if (($allow_comment == '1' && $this->user_id) or $allow_comment == '2'): ?>
<div class="post-comment">
<div id="response-comment" class="alert alert-dismissible" style="display: none;"></div>
<div class="row">
<div class="col-xs-3 col-sm-1 col-md-2 col-lg-1 comment-picture">
<?php if ($this->user_id): ?>
<img src="<?php echo USER_URL,'/'; if ($_SESSION['avatar'] != ''): echo $_SESSION['user_id'].'.'.$_SESSION['avatar']; else: echo 'nopic-'.$_SESSION['gender'].'.gif'; endif; ?>" alt="Profile Picture" class="img-rounded" />
<?php else: ?>
<img src="<?php echo USER_URL; ?>/nopic-hidden.gif" alt="">
<?php endif; ?>
</div>
<div class="col-xs-9 col-sm-11 col-md-10 col-lg-11">
<?php if (!$this->user_id): ?>
<input name="nickname" id="nickname" class="form-control margin-bottom-5" placeholder="<?php echo __('nickname'); ?>">
<?php endif; ?>
<textarea name="comment" id="comment" class="form-control" rows="4" cols="60" placeholder="<?php echo __('comment'); ?>"></textarea>
<div class="row" style="margin-top: 5px;">
<div class="col-xs-6 col-sm-8 col-md-5">
<small><span id="remaining">500</span> <?php echo __('characters-left'); ?></small>
</div>
<div class="col-xs-6 col-sm-4 col-md-7 text-right">
<button id="post-comment" type="button" class="btn btn-primary"><?php echo __('post-comment'); ?></button>
</div>
</div>
</div>
</div>
</div>
<?php endif; echo $this->fetch('_comments_list'); ?>
<?php if ($this->pornstar['links']): echo $this->pornstar['links']; endif; ?>
</div>
</div>
</div>