2014-03-25 14:03:46 +00:00
|
|
|
|
|
|
|
{if $block_type == '' || $block_type=='normal'}
|
2014-09-19 13:26:52 +00:00
|
|
|
<div class="col-md-12 col-sm-12 clearfix nopadding col-xs-12" id="user-{$user.userid}">
|
2014-09-19 09:58:54 +00:00
|
|
|
|
2014-09-19 13:26:52 +00:00
|
|
|
<div class="col-md-2 col-sm-3 nopadding">
|
2014-03-25 14:03:46 +00:00
|
|
|
<a href="{$userquery->profile_link($user)}">
|
2014-09-22 13:44:00 +00:00
|
|
|
<img class="img-circle" src="{avatar details=$user size='50x50'}">
|
2014-03-25 14:03:46 +00:00
|
|
|
</a>
|
2014-09-19 13:26:52 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-md-10 col-sm-9">
|
2014-09-19 09:58:54 +00:00
|
|
|
|
2014-09-19 13:26:52 +00:00
|
|
|
<div class="col-md-7 col-sm-7 nopadding">
|
2014-05-09 10:22:32 +00:00
|
|
|
<a href="{$userquery->profile_link($user)}">
|
2015-05-26 13:55:47 +00:00
|
|
|
<h5 class="nomargin"><b>{$user.username}</b></h5></a>
|
2014-05-09 10:22:32 +00:00
|
|
|
</div>
|
2014-04-24 08:53:50 +00:00
|
|
|
|
2014-09-19 13:26:52 +00:00
|
|
|
<div class="col-md-9 col-sm-9 prof_title nopadding">
|
2014-09-19 09:58:54 +00:00
|
|
|
|
2014-05-09 10:22:32 +00:00
|
|
|
<div class="row" >
|
2014-09-19 13:26:52 +00:00
|
|
|
<div class="col-md-5 col-sm-5 small channels paddingright0">
|
2014-05-09 10:22:32 +00:00
|
|
|
{if isSectionEnabled('videos')}
|
|
|
|
{lang code="videos"}: {$user.total_videos|number_format}
|
|
|
|
{/if}
|
|
|
|
</div>
|
2014-09-19 13:26:52 +00:00
|
|
|
<div class="col-md-6 col-sm-6 small channels paddingleft0" >
|
2014-05-09 10:22:32 +00:00
|
|
|
{lang code="subscribers"}: {$user.subscribers|number_format}
|
|
|
|
</div>
|
2014-03-25 14:03:46 +00:00
|
|
|
</div>
|
2014-09-19 09:58:54 +00:00
|
|
|
|
|
|
|
<a class="btn btn-primary btn-xs" id="subuser-{$user.userid}" >Subscribe</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-05-09 10:22:32 +00:00
|
|
|
</div>
|
2014-04-14 11:08:39 +00:00
|
|
|
</div>
|
2014-09-19 13:26:52 +00:00
|
|
|
</div>
|
2014-03-25 14:03:46 +00:00
|
|
|
{/if}
|
|
|
|
|
2015-05-26 13:55:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-03-25 14:03:46 +00:00
|
|
|
{if $block_type =='small'}
|
|
|
|
<div class="col-md-2" id="user-{$user.userid}" align="center">
|
|
|
|
<a href="{$userquery->profile_link($user)}">{$user.username}</a>
|
|
|
|
<a href="{$userquery->profile_link($user)}">
|
2015-02-26 14:31:16 +00:00
|
|
|
<img src="{$userquery->getuserthumb($user)}" class="edit-img-thumbnail" class="user_mid_thumb">
|
2014-03-25 14:03:46 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{if $block_type =='medium'}
|
|
|
|
<div class="user_block_med" id="user-{$user.userid}">
|
|
|
|
<div class="thumb_container_medium" >
|
|
|
|
<a href="{$userquery->profile_link($user)}">
|
2015-02-26 14:31:16 +00:00
|
|
|
<img src="{$userquery->getuserthumb($user)}" class="edit-img-thumbnail" class="user_thumb_medium">
|
2014-03-25 14:03:46 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="prof_title"><a href="{$userquery->profile_link($user)}">{$user.username}</a></div>
|
|
|
|
{$user.total_videos|number_format} {lang code="videos"} {$user.profile_hits|number_format} {lang code="views"}
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{if $block_type == "friends"}
|
|
|
|
<div class="pull-left marginLeft" id="user-{$user.userid}">
|
|
|
|
<a href="{$userquery->profile_link($user)}" title="{$user.username}">
|
2015-02-26 14:31:16 +00:00
|
|
|
<img class="edit-img-thumbnail" src="{avatar details=$user size='small'}" alt="{$user.username}" />
|
2014-03-25 14:03:46 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{if $block_type == "topic_view"}
|
|
|
|
<div class="topicStarterAvatar moveL">
|
|
|
|
<i class="topicStarterAvatarBG" style="background:url({avatar details=$user }) center no-repeat; width:56px; height:56px;"><a href="{$userquery->profile_link($user)}">{$user.username}</a></i>
|
|
|
|
</div>
|
2014-09-19 09:58:54 +00:00
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
$(document).ready(function (){
|
|
|
|
var id = '{$user.userid}';
|
|
|
|
$('#subuser-' + id).on({
|
|
|
|
click: function(e){
|
|
|
|
e.preventDefault();
|
|
|
|
_cb.subscribeToChannel(id,'subscribe_user','video_detail_result_cont');
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|