2014-01-18 13:35:29 +00:00
|
|
|
{$video=$vdo}
|
|
|
|
{$type='video'}
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
|
|
|
|
<div class="cb-box pad-bottom-sm">
|
|
|
|
<div id="cb_player" class="no-pad">
|
|
|
|
{FlashPlayer vdetails=$video width='100%' height='100%'}
|
|
|
|
</div>
|
|
|
|
<div class="cb-item-title-container">
|
|
|
|
<div class="cb-item-thumb">
|
|
|
|
<img src="{$userquery->avatar($video)}" class="img-circle" />
|
|
|
|
</div>
|
2014-02-06 13:31:48 +00:00
|
|
|
<div class="cb-item-title marginBottom">
|
2014-01-18 13:35:29 +00:00
|
|
|
{$video.title}
|
|
|
|
</div>
|
|
|
|
<div class="cb-item-user">
|
|
|
|
<a href="{$userquery->profile_link($video)}">{$video.username}</a>
|
|
|
|
</div>
|
|
|
|
|
2014-02-06 13:31:48 +00:00
|
|
|
<a id="subscribeUser" class="btn btn-xs btn-primary">
|
2014-01-18 13:35:29 +00:00
|
|
|
{lang('Subscribe')}
|
|
|
|
</a>
|
|
|
|
<div class="cb-item-date">
|
|
|
|
{$video.date_added|niceTime}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{show_video_rating rating=$vdo.rating ratings=$vdo.rated_by total='10' id=$vdo.videoid type=video file='blocks/common/rating.html'}
|
|
|
|
</div>
|
|
|
|
<div class="cb-item-desc-container">
|
|
|
|
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li class="active">
|
|
|
|
<a href="#cb-item-info" data-toggle="tab">{lang('Info')}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#cb-item-share" data-toggle="tab">{lang('Share')}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#cb-item-addto" data-toggle="tab">{lang('Add to')}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2014-02-06 13:31:48 +00:00
|
|
|
<a id="reportVideo" href="#cb-item-report" data-toggle="tab">{lang('Report')}</a>
|
2014-01-18 13:35:29 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane active" id="cb-item-info">
|
|
|
|
|
|
|
|
<div class="col-lg-9 col-md-9 col-sm-12 col-xs-12">
|
|
|
|
|
|
|
|
<div class="cb-item-description">
|
|
|
|
{description($video.description)}
|
|
|
|
|
|
|
|
<div class="mtm">
|
|
|
|
<strong>{lang('Category')}</strong>
|
|
|
|
<div>{$vdo.category|categories:video}</div>
|
|
|
|
</div>
|
|
|
|
<div class="mtm">
|
|
|
|
<strong>{lang('Tags')}</strong>
|
|
|
|
<div>{$vdo.tags|tags:videos}</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mtm">
|
|
|
|
<strong>{lang code='views'}</strong> : {$vdo.views|number_format} –
|
|
|
|
<strong>{lang code='duration'}</strong> : {$vdo.duration|SetTime} –
|
|
|
|
<strong>{lang code='comments'}</strong> : {$vdo.comments_count|number_format}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12">
|
|
|
|
<div class="lead">{$video.views|number_format} {lang('views')}</div>
|
|
|
|
<div>
|
|
|
|
<a class="cb-item-social-icon twitter" href="{$video.title|title} {videoLink($video)}http://twitter.com/home?status=%7Bvideo.title%7Ctitle%7D%20%7BvideoLink($video)%7D" target="_blank">
|
|
|
|
<i class="fa fa-twitter"></i>
|
|
|
|
</a>
|
|
|
|
<a class="cb-item-social-icon googlep" href="https://plus.google.com/share?url={urlencode(videolink($video))}" target="_blank">
|
|
|
|
<i class="fa fa-google-plus"></i>
|
|
|
|
</a>
|
|
|
|
<a class="cb-item-social-icon facebook" href="http://www.facebook.com/sharer/sharer.php?s=100&p[url]={videoLink($video)|urlencode}&p[images][0]={get_thumb vdetails=$video}&p[title]={$video.title|title|urlencode}&p[summary]={$video.description|description|urlencode}" target="_blank">
|
|
|
|
<i class="fa fa-facebook"></i>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tab-pane" id="cb-item-share">
|
|
|
|
{show_share_form id=$vdo.videoid type=video}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tab-pane" id="cb-item-addto">
|
|
|
|
{show_playlist_form id=$vdo.videoid type=video}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tab-pane" id="cb-item-report">
|
|
|
|
{show_flag_form id=$vdo.videoid type=video}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
2014-02-06 13:31:48 +00:00
|
|
|
<div id="messageFav" class="alert alert-info marginTop" style="display:none"></div>
|
2014-01-18 13:35:29 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="cb-box pad-bottom">
|
2014-02-06 13:31:48 +00:00
|
|
|
<div class="addComment clearfix">
|
|
|
|
<h3>{lang('Comments')} ({$vdo.comments_count})</h3>
|
|
|
|
{if $myquery->is_commentable($vdo,'v')}
|
|
|
|
{include file="$style_dir/blocks/comments/add_comment.html" id=$vdo.videoid type=v}
|
|
|
|
{else}
|
|
|
|
<div class="alert alert-warning">{lang code='comm_disabled_for_vid'}</div>
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
<div class="userComments">
|
|
|
|
<ul id="userCommentsList">
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-01-18 13:35:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-4 col-md-4 visible-lg visible-md">
|
2014-02-06 13:31:48 +00:00
|
|
|
<div class="cb-box">
|
|
|
|
<h3>Sidebar</h3>
|
|
|
|
</div>
|
2014-01-18 13:35:29 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
var aspect_ratio = 1.77778
|
|
|
|
var $cb_player = $("#cb_player");
|
|
|
|
|
2014-02-06 13:31:48 +00:00
|
|
|
function getAllComments(type,type_id,last_update,pageNum,total,object_type,admin){
|
|
|
|
$('#userCommentsList').html("<div style='padding:5px 0px;'>"+loading+"</div>");
|
|
|
|
$.ajax({
|
|
|
|
type: 'POST',
|
|
|
|
url: page,
|
|
|
|
data: {
|
|
|
|
mode:'getComments',
|
|
|
|
page:pageNum,type:type,
|
|
|
|
type_id:type_id,
|
|
|
|
object_type : object_type,
|
|
|
|
last_update : last_update,
|
|
|
|
total_comments : total,
|
|
|
|
comments_voting : comments_voting,admin : admin
|
|
|
|
},
|
|
|
|
success: function(comments)
|
|
|
|
{
|
|
|
|
$("#userCommentsList").html(comments);
|
|
|
|
},
|
|
|
|
dataType: 'text'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function subscribeToChannel(user,type,result_cont){
|
|
|
|
$('#messageFav').show();
|
|
|
|
$.post(page, {
|
|
|
|
mode : type,
|
|
|
|
subscribe_to : user
|
|
|
|
},
|
|
|
|
function(data){
|
|
|
|
if(!data){
|
|
|
|
alert("No data");
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
$("#messageFav").html(data);
|
|
|
|
setTimeout(function(){
|
|
|
|
$('#messageFav').hide();
|
|
|
|
}, 5000);
|
|
|
|
}
|
|
|
|
},'text');
|
|
|
|
}
|
|
|
|
|
2014-01-18 13:35:29 +00:00
|
|
|
$(document).ready(function(){
|
|
|
|
$cb_player.height( $cb_player.width() / aspect_ratio );
|
|
|
|
|
|
|
|
comments_voting = '{$vdo.comment_voting}';
|
2014-02-06 13:31:48 +00:00
|
|
|
getAllComments(
|
|
|
|
'{$type}',
|
|
|
|
'{$vdo.videoid}',
|
|
|
|
'{$vdo.last_commented}',1,
|
|
|
|
'{$vdo.comments_count}',
|
|
|
|
'{$object_type}'
|
2014-01-18 13:35:29 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
2014-02-06 13:31:48 +00:00
|
|
|
// $('.cb-item-description').readmore({
|
|
|
|
// speed: 75,
|
|
|
|
// maxHeight: 120,
|
|
|
|
// moreLink : '<a href="#" class="btn btn-min btn-block btn-primary"><i class="glyphicon glyphicon-arrow-down"></i> {lang("Read more")}</a>',
|
|
|
|
// lessLink : '<a href="#" class="btn btn-min btn-block btn-default">{lang("Close")}</a>'
|
|
|
|
// });
|
|
|
|
$("#reportVideo").on({
|
|
|
|
click : function(e){
|
|
|
|
e.preventDefault();
|
|
|
|
$("#flag_item").show();
|
|
|
|
}
|
2014-01-18 13:35:29 +00:00
|
|
|
});
|
|
|
|
|
2014-02-06 13:31:48 +00:00
|
|
|
$("#subscribeUser").on({
|
|
|
|
click: function(e){
|
|
|
|
e.preventDefault();
|
|
|
|
subscribeToChannel('{$video.userid}','subscribe_user','video_detail_result_cont');
|
|
|
|
}
|
|
|
|
});
|
2014-01-18 13:35:29 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$(window).resize(function() {
|
|
|
|
$cb_player.height( $cb_player.width() / aspect_ratio );
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|