Файл: adultscript-2.0.3-pro/files/templates/defboot/profile.tpl.php
Строк: 209
<?php defined('_VALID') or die('Restricted Access!'); ?>
<div id="content" class="row">
<?php echo $this->fetch('profile_left'); ?>
<div class="col-xs-12 col-sm-8 col-md-9">
<?php echo $this->fetch('profile_menu'); ?>
<?php if ($this->total_public_videos): ?>
<div class="panel panel-default margin-top-10">
<div class="panel-heading">
<?php if ($this->total_public_videos > 8): ?>
<a href="<?php echo REL_URL,'/users/',$this->username,'/videos/public/" class="btn btn-default btn-xs pull-right">',__('see-all'); ?></a>
<?php endif; ?>
<?php echo __('videos-public-title'),' <span>(',$this->total_public_videos; ?>)</span>
</div>
<div class="panel-body">
<?php $this->videos = $this->public_videos; echo $this->fetch('_video_list'); ?>
</div>
</div>
<?php endif; if ($this->total_private_videos): ?>
<div class="panel panel-default margin-top-10">
<div class="panel-heading">
<?php if ($this->total_private_videos > 8): ?>
<a href="<?php echo REL_URL,'/users/',$this->username,'/videos/private/" class="btn btn-default btn-xs pull-right">',__('see-all'); ?></a>
<?php endif; ?>
<?php echo __('videos-private-title'),' <span>(',$this->total_private_videos; ?>)</span>
</div>
<div class="panel-body">
<?php $this->videos = $this->private_videos; echo $this->fetch('_video_list'); ?>
</div>
</div>
<?php endif; if ($this->total_watched_videos): ?>
<div class="panel panel-default margin-top-10">
<div class="panel-heading">
<?php if ($this->total_watched_videos > 8): ?>
<a href="<?php echo REL_URL,'/users/',$this->username,'/videos/watched/" class="btn btn-default btn-xs pull-right">',__('see-all'); ?></a>
<?php endif; ?>
<?php echo __('watched-title'),' <span>(',$this->total_watched_videos; ?>)</span>
</div>
<div class="panel-body">
<?php $this->videos = $this->watched_videos; echo $this->fetch('_video_list'); ?>
</div>
</div>
<?php endif; if ($this->total_favorite_videos): ?>
<div class="panel panel-default margin-top-10">
<div class="panel-heading">
<?php if ($this->total_favorite_videos > 8): ?>
<a href="<?php echo REL_URL,'/users/',$this->username,'/videos/favorite/" class="btn btn-default btn-xs pull-right">',__('see-all'); ?></a>
<?php endif; ?>
<?php echo __('favorite-title'),' <span>(',$this->total_favorite_videos; ?>)</span>
</div>
<div class="panel-body">
<?php $this->videos = $this->favorite_videos; echo $this->fetch('_video_list'); ?>
</div>
</div>
<?php endif; if ($this->total_public_albums): ?>
<div class="panel panel-default margin-top-10">
<div class="panel-heading">
<?php if ($this->total_public_albums > 8): ?>
<a href="<?php echo REL_URL,'/users/',$this->username,'/photos/public/" class="btn btn-default btn-xs pull-right">',__('see-all'); ?></a>
<?php endif; ?>
<?php echo __('albums-public-title'),' <span>(',$this->total_public_albums; ?>)</span>
</div>
<div class="panel-body">
<?php $this->albums = $this->public_albums; echo $this->fetch('_photo_albums_list'); ?>
</div>
</div>
<?php endif; if ($this->total_private_albums): ?>
<div class="panel panel-default margin-top-10">
<div class="panel-heading">
<?php if ($this->total_private_albums > 8): ?>
<a href="<?php echo REL_URL,'/users/',$this->username,'/photos/private/" class="btn btn-default btn-xs pull-right">',__('see-all'); ?></a>
<?php endif; ?>
<?php echo __('albums-private-title'),' <span>(',$this->total_private_albums; ?>)</span>
</div>
<div class="panel-body">
<?php $this->albums = $this->private_albums; echo $this->fetch('_photo_albums_list'); ?>
</div>
</div>
<?php endif; if ($this->total_photos): ?>
<div class="panel panel-default margin-top-10">
<div class="panel-heading">
<?php if ($this->total_photos > 8): ?>
<a href="<?php echo REL_URL,'/users/',$this->username,'/photos/favorites/" class="btn btn-default btn-xs pull-right">',__('see-all'); ?></a>
<?php endif; ?>
<?php echo __('photo-favorites-title'),' <span>(',$this->total_photos; ?>)</span>
</div>
<div class="panel-body">
<?php echo $this->fetch('_photo_list'); ?>
</div>
</div>
<?php endif; if ($this->total_friends): ?>
<div class="panel panel-default margin-top-10">
<div class="panel-heading">
<?php if ($this->total_friends > 8): ?>
<a href="<?php echo REL_URL,'/users/',$this->username,'/friends/" class="btn btn-default btn-xs pull-right">',__('see-all'); ?></a>
<?php endif; ?>
<?php echo __('friends-title'),' <span>(',$this->total_friends; ?>)</span>
</div>
<div class="panel-body">
<?php $this->users = $this->friends; echo $this->fetch('profile_users_list'); ?>
</div>
</div>
<?php endif; if ($this->total_subscribers): ?>
<div class="panel panel-default margin-top-10">
<div class="panel-heading">
<?php if ($this->total_subscribers > 8): ?>
<a href="<?php echo REL_URL,'/users/',$this->username,'/subscribers/" class="btn btn-default btn-xs pull-right">',__('see-all'); ?></a>
<?php endif; ?>
<?php echo __('subscribers-title'),' <span>(',$this->total_subscribers; ?>)</span>
</div>
<div class="panel-body">
<?php $this->users = $this->subscribers; echo $this->fetch('profile_users_list'); ?>
</div>
</div>
<?php endif; if ($this->total_subscriptions): ?>
<div class="panel panel-default margin-top-10">
<div class="panel-heading">
<?php if ($this->total_subscriptions > 8): ?>
<a href="<?php echo REL_URL,'/users/',$this->username,'/subscriptions/" class="btn btn-default btn-xs pull-right">',__('see-all'); ?></a>
<?php endif; ?>
<?php echo __('subscriptions-title'),' <span>(',$this->total_subscriptions; ?>)</span>
</div>
<div class="panel-body">
<?php $this->users = $this->subscriptions; echo $this->fetch('profile_users_list'); ?>
</div>
</div>
<?php endif; if (isset($this->comments)): ?>
<div class="panel panel-default margin-top-10">
<div class="panel-heading">
<?php if ($this->total_comments > 8): ?>
<a href="<?php echo REL_URL,'/users/',$this->username,'/comments/" class="btn btn-default btn-xs pull-right">',__('see-all'); ?></a>
<?php endif; ?>
<?php echo __('comments'),' <span>(',$this->pagination['total_items']-1; ?>)</span>
</div>
<div class="panel-body">
<?php if ($this->is_loggedin && $this->user['allow_comments'] != 'no'): ?>
<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-2 col-md-2 col-lg-1 comment-picture">
<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" />
</div>
<div class="col-xs-9 col-sm-10 col-md-10 col-lg-11">
<textarea name="comment" id="comment" class="form-control" rows="4" cols="60"></textarea>
<div class="row" style="margin-top: 5px;">
<div class="col-xs-8 col-sm-8 col-md-6">
<small><span id="remaining">500</span> <?php echo __('characters-left'); ?></small>
</div>
<div class="col-xs-4 col-sm-4 col-md-6 text-right">
<button id="post-comment" type="button" class="btn btn-primary"><?php echo __('post-comment-button'); ?></button>
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php $this->type = 'user'; echo $this->fetch('_comments_list'); ?>
</div>
</div>
<?php endif; ?>
</div>
</div>