Файл: adultscript-2.0.3-pro/files/templates/defboot/profile_left.tpl.php
Строк: 313
<?php defined('_VALID') or die('Restricted Access!'); ?>
<script type="text/javascript">var show_less = '<?= __('show-less'); ?>'; var show_more = '<?= __('show-more'); ?>';</script>
<script src="<?php echo TPL_REL; ?>/js/profile.js" type="text/javascript"></script>
<div class="col-xs-12 col-sm-4 col-md-3">
<div class="panel panel-default">
<div class="panel-heading">
<?php if ($this->is_self): ?>
<a href="<?php echo REL_URL,'/user/profile/" class="btn btn-default btn-xs pull-right">',__('edit-profile'); ?></a>
<?php endif; ?>
<?= __('profile-title', array('<strong>'.$this->username.'</strong>')); ?>
</div>
<div class="panel-body panel-padding">
<div class="row">
<div class="col-xs-4 col-sm-4 col-md-4 profile-picture">
<img src="<?php echo USER_URL,'/'; if ($this->user['avatar'] != ''): echo $this->user['user_id'],'.',$this->user['avatar'],'?',rand(0,100); else: echo 'nopic-',$this->user['gender'],'.gif'; endif; ?>" alt="<?php echo __('alt-avatar', array($this->username)); ?>" class="img-rounded">
<input name="user_id" type="hidden" value="<?php echo $this->user['user_id']; ?>">
</div>
<div class="col-xs-8 col-sm-8 col-md-8">
<div class="profile-item">
<span><?php echo __('joined'),':</span> ',VDate::nice($this->user['join_date']); ?>
</div>
<div class="profile-item">
<span><?php echo __('last-login'),':</span> '; if ($this->user['login_date'] == '0000-00-00 00:00:00'): echo __('never'); else: echo VDate::nice($this->user['login_date']); endif;?>
</div>
<div class="profile-item">
<span><?php echo __('videos-watched'),':</span> ',$this->user['total_viewed_videos']; ?>
</div>
<div class="profile-item">
<span><?php echo __('video-views'),':</span> ',$this->user['total_video_views']; ?>
</div>
<div class="profile-item">
<span><?php echo __('profile-viewed'),':</span> ',$this->user['total_profile_views']; ?>
</div>
</div>
</div>
<div id="more" class="row" style="padding-top: 10px;">
<div class="col-xs-12">
<?php if ($this->user['name']): ?>
<div class="profile-item">
<span><?= __('name'),':</span> ',__($this->user['name']); ?>
</div>
<?php endif; if ($this->user['about'] != ''): ?>
<div class="profile-item">
<span><?= __('about'),':</span> ',__($this->user['about']); ?>
</div>
<?php endif; if ($this->user['gender'] != 'hidden'): ?>
<div class="profile-item">
<span><?= __('gender'),':</span> ',__($this->user['gender']); ?>
</div>
<?php endif; if ($this->user['relation'] != 'hidden'): ?>
<div class="profile-item">
<span><?= __('relation'),':</span> ',__($this->user['relation']); ?>
</div>
<?php endif; if ($this->user['interested'] != 'hidden'): ?>
<div class="profile-item">
<span><?= __('interested'),':</span> ',__($this->user['interested']); ?>
</div>
<?php endif; if ($this->user['website'] != ''): ?>
<div class="profile-item">
<span><?= __('website'),':</span> <a href="',$this->user['website'],'" rel="nofollow">',e($this->user['website']); ?></a>
</div>
<?php endif; if ($this->user['birth_date'] != '0000-00-00'): ?>
<div class="profile-item more" style="display: none;">
<span><?= __('birthdate'),':</span> ',__($this->user['name']); ?>
</div>
<?php endif; if ($this->user['country'] != ''): ?>
<div class="profile-item more" style="display: none;">
<span><?= __('country'),':</span> ',__($this->user['country']); ?>
</div>
<?php endif; if ($this->user['city'] != ''): ?>
<div class="profile-item more" style="display: none;">
<span><?= __('city'),':</span> ',__($this->user['city']); ?>
</div>
<?php endif; if ($this->user['zip'] != ''): ?>
<div class="profile-item more" style="display: none;">
<span><?= __('zip'),':</span> ',__($this->user['zip']); ?>
</div>
<?php endif; if ($this->user['hobbies'] != ''): ?>
<div class="profile-item more" style="display: none;">
<span><?= __('hobbies'),':</span> ',__($this->user['hobbies']); ?>
</div>
<?php endif; if ($this->user['movies'] != ''): ?>
<div class="profile-item more" style="display: none;">
<span><?= __('movies'),':</span> ',__($this->user['movies']); ?>
</div>
<?php endif; if ($this->user['music'] != ''): ?>
<div class="profile-item more" style="display: none;">
<span><?= __('music'),':</span> ',__($this->user['music']); ?>
</div>
<?php endif; if ($this->user['books'] != ''): ?>
<div class="profile-item more" style="display: none;">
<span><?= __('books'),':</span> ',__($this->user['books']); ?>
</div>
<?php endif; if ($this->user['turn_on'] != ''): ?>
<div class="profile-item more" style="display: none;">
<span><?= __('turn-ons'),':</span> ',__($this->user['turn_on']); ?>
</div>
<?php endif; if ($this->user['turn_off'] != ''): ?>
<div class="profile-item more" style="display: none;">
<span><?= __('turn-offs'),':</span> ',__($this->user['turn_off']); ?>
</div>
<?php endif; ?>
<div class="text-center">
<button id="more-info" class="btn btn-default btn-xs"><?php echo __('show-more'); ?></button>
</div>
</div>
</div>
</div>
</div>
<?php if (!$this->is_self): ?>
<div id="connect-panel" class="panel panel-default">
<div class="panel-heading">
<?= __('connect-title'),' <strong>',$this->username; ?></strong>
</div>
<div class="panel-body panel-padding">
<input name="user_id" type="hidden" value="<?php echo $this->user['user_id']; ?>" />
<div id="connect-response" class="alert alert-warning alert-dismissible" role="alert" style="display: none;">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="row">
<div id="connect-friend" class="col-xs-6 col-sm-6 col-md-6">
<?php if ($this->is_friend == 'approved'): ?>
<button id="profile-friend-del" class="btn btn-default btn-xs" rel="friend"><i class="fa fa-user"></i> <?= __('leftmenu-removefriend'); ?></button>
<?php elseif ($this->is_friend == 'pending'): ?>
<button id="profile-friend-pending" class="btn btn-default btn-xs" disabled="disabled"><i class="fa fa-question"></i> <?= __('friend-invite'); ?></button>
<?php else: ?>
<button id="profile-friend-add" class="btn btn-default btn-xs" rel="friend"><i class="fa fa-plus-square"></i> <?= __('leftmenu-addfriend'); ?></button>
<?php endif; ?>
</div>
<div id="connect-subscribe" class="col-xs-6 col-sm-6 col-md-6">
<?php if ($this->is_subscribed): ?>
<button id="profile-subscribe-del" class="btn btn-default btn-xs" rel="subscriber"><i class="fa fa-minus-square"></i> <?= __('leftmenu-unsubscribe'); ?></button>
<?php else: ?>
<button id="profile-subscribe-add" class="btn btn-default btn-xs" rel="subscriber"><i class="fa fa-rss"></i> <?= __('leftmenu-subscribe'); ?></button>
<?php endif; ?>
</div>
<div class="col-xs-6 col-sm-6 col-md-6 margin-top-10">
<?php if ($this->user['allow_message'] == 'all' OR ($this->user['allow_message'] == 'friends' && $this->is_friend)): ?>
<a href="<?php echo REL_URL; ?>/message/compose/?username=<?php echo $this->username; ?>" id="profile-message-add" class="btn btn-default btn-xs" rel="message"><i class="fa fa-inbox"></i> <?php echo __('leftmenu-sendmsg'); ?></a>
<?php else: ?>
<button id="profile-message-add" class="btn btn-default btn-xs" disabled="disabled"><i class="fa fa-inbox"></i> <?php echo __('leftmenu-sendmsg'); ?></button>
<?php endif; ?>
</div>
<div class="col-xs-6 col-sm-6 col-md-6 margin-top-10">
<?php if (($this->user['profile_comments']) && ($this->user['allow_comments'] == 'yes' or
$this->user['allow_comments'] == 'approve' or ($this->user['allow_comments'] == 'friends' && $this->is_friend))): ?>
<a href="<?php echo REL_URL,'/users/',$this->username,'/comments/#comment'; ?>" id="profile-comment-add" class="btn btn-default btn-xs" rel="comment"><i class="fa fa-comment"></i> <?php echo __('leftmenu-comment'); ?></a>
<?php else: ?>
<button id="profile-comment-add" class="btn btn-default btn-xs" disabled="disabled"><i class="fa fa-comment-o"></i> <?php echo __('leftmenu-comment'); ?></button>
<?php endif; ?>
</div>
<div id="connect-block" class="col-xs-6 col-sm-6 col-md-6 margin-top-10">
<?php if ($this->is_blocked): ?>
<button id="profile-block-del" class="btn btn-default btn-xs"><i class="fa fa-chain-broken"></i> <?php echo __('leftmenu-unblock'); ?></button>
<?php else: ?>
<button id="profile-block-add" class="btn btn-default btn-xs"><i class="fa fa-chain-broken"></i> <?php echo __('leftmenu-block'); ?></button>
<?php endif; ?>
</div>
<div id="connect-report" class="col-xs-6 col-sm-6 col-md-6 margin-top-10">
<button id="profile-report-add" class="btn btn-default btn-xs"><i class="fa fa-flag"></i> <?php echo __('leftmenu-report'); ?></button>
</div>
</div>
</div>
</div>
<?php endif; ?>
</div>