2016-03-16 17:30:07 +05:00
|
|
|
{$video=$vdo}
|
|
|
|
{$type='video'}
|
|
|
|
{$channel = $userquery->get_user_details($video.userid)}
|
2016-03-24 19:48:49 +05:00
|
|
|
<div id="main" class="clearfix container">
|
|
|
|
<div class="clearfix">
|
|
|
|
<section id="content" class="clearfix videos">
|
|
|
|
<div class="clearfix player-holder">
|
|
|
|
<div id="cb_player" class="cb_player">
|
|
|
|
{FlashPlayer vdetails=$video width='100%' height='100%'}
|
|
|
|
</div><!-- cb_player end -->
|
|
|
|
</div>
|
|
|
|
<!-- end of player-holder -->
|
|
|
|
<div class="clearfix leaderboard-ad ad">
|
|
|
|
{AD place='ad_728x90'}
|
|
|
|
</div>
|
|
|
|
<div class="video-details clearfix">
|
|
|
|
<header class="clearfix details">
|
|
|
|
<h1>{$video.title|truncate:55}</h1>
|
|
|
|
<div class="user-video-info clearfix">
|
|
|
|
<a href="{$userquery->profile_link($video)}" class="avatar">
|
|
|
|
<img src="{$userquery->avatar($video,'small',userid())}" class="img-responsive">
|
|
|
|
</a>
|
|
|
|
<h2 class="user-title">
|
|
|
|
<a href="{$userquery->profile_link($video)}"> {$video.username}</a>
|
|
|
|
</h2>
|
|
|
|
<div class="views-counter">
|
|
|
|
<span>{prettyNum($vdo.views)}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="user-likes-sub clearfix">
|
|
|
|
<div class="clearfix like-rating col-lg-6 col-md-6 col-sm-6 col-xs-12" id="rating_container">
|
|
|
|
{if $vdo.allow_rating != 'no'}
|
|
|
|
{show_video_rating rating=$vdo.rating ratings=$vdo.rated_by total='10' id=$vdo.videoid type=video}
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
<div class="clearfix subscribe-col col-lg-6 col-md-6 col-sm-6 col-xs-12">
|
|
|
|
{if $video.userid != userid()}
|
|
|
|
<a id="subscribeUser" class="btn btn-subscribe btn-primary" href="javascript:void(0)">
|
|
|
|
<span>{lang('Subscribe')}</span>
|
|
|
|
</a>
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<div id="messageFav" class="alert alert-info marginTop" style="display:none"></div>
|
|
|
|
<div class="view-tabs clearfix">
|
|
|
|
<ul class="clearfix nav nav-tabs">
|
|
|
|
<li class="active">
|
|
|
|
<a href="#cb-item-info" data-toggle="tab"><span class="icon-info"></span>{lang('Info')}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#cb-item-share" data-toggle="tab"><span class="icon-share"></span>Share/Embed</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#cb-item-addto" data-toggle="tab"><span class="icon-plusrounded"></span>{lang('Add to')}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#cb-item-report" data-toggle="tab"><span class="icon-flag"></span>{lang('Report')}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div class="tab-content clearfix">
|
|
|
|
<div class="tab-pane fade in clearfix active" id="cb-item-info">
|
|
|
|
<div class="clearfix watch-vid-details">
|
|
|
|
<h2>{description($video.description)}</h2>
|
|
|
|
<ul class="clearfix desc-list">
|
|
|
|
<li><strong>{lang('Category')}</strong>: {$vdo.category|categories:video}</li>
|
|
|
|
<li><strong>{lang('Duration')}</strong>: {if $video.duration>1}{$video.duration|SetTime}{else}00:00{/if}</li>
|
|
|
|
<li><strong>{lang('Date')}</strong>: {$video.date_added}</li>
|
|
|
|
<li>
|
|
|
|
<strong class="pull-left">{lang('Tags')}: </strong>
|
|
|
|
<span class="pull-left">{$vdo.tags|tags:videos}</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-03-16 17:30:07 +05:00
|
|
|
|
2016-03-24 19:48:49 +05:00
|
|
|
<div class="tab-pane fade in clearfix" id="cb-item-share">
|
|
|
|
<ul class="social-share">
|
|
|
|
<li>
|
2016-03-25 19:04:18 +05:00
|
|
|
<a 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" class="btn-fb icon-facebook">
|
|
|
|
<span>Facebook</span>
|
2016-03-24 19:48:49 +05:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2016-03-25 19:04:18 +05:00
|
|
|
<a href="https://twitter.com/share" target="_blank" class="btn-tw icon-twitter">
|
|
|
|
<span>Twitter</span>
|
2016-03-24 19:48:49 +05:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2016-03-25 19:04:18 +05:00
|
|
|
<a href="https://plus.google.com/share?url={urlencode(videolink($video))}" target="_blank" class="btn-gplus icon-gplus">
|
|
|
|
<span>Google Plus</span>
|
2016-03-24 19:48:49 +05:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
{show_share_form id=$vdo.videoid type=video}
|
|
|
|
</div>
|
|
|
|
<div class="tab-pane fade in clearfix" id="cb-item-addto">
|
|
|
|
<div class="clearfix btn-fav">
|
|
|
|
<div id="video_action_result_cont"></div>
|
|
|
|
<a class="btn btn-block btn-primary" href="javascript:void(0)" onclick="add_to_fav('video','{$vdo.videoid}');">Add to My Favorites</a>
|
|
|
|
</div>
|
|
|
|
<div class="clearfix">
|
|
|
|
{show_playlist_form id=$vdo.videoid type=video}
|
|
|
|
{if userid()}
|
|
|
|
<div class="clearfix">
|
|
|
|
<div class="clearfix btn-holder text-right">
|
|
|
|
<a href="javascript:void(0)" onclick="$('#addCollectionCont').toggle()" class="btn btn-primary">+ {lang code='add_to_my_collection'}</a>
|
|
|
|
</div>
|
|
|
|
<div id="addCollectionCont" style="display:none">
|
|
|
|
{show_collection_form id=$vdo.videoid type=Video}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tab-pane fade in clearfix" id="cb-item-report">
|
|
|
|
<h2>Report Video</h2>
|
|
|
|
{show_flag_form id=$vdo.videoid type=video}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-03-25 19:04:18 +05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="clearfix comments-block" id="comments-block">
|
|
|
|
<div id="test1"></div>
|
|
|
|
<div id="reply" class="clearfix">
|
|
|
|
<div class="addComment clearfix">
|
|
|
|
<h2 class="com_count" id="com_count">
|
|
|
|
{$vdo.comments_count} <span>{lang code='comments'} </span>
|
|
|
|
</h2>
|
|
|
|
{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'}
|
2016-03-24 19:48:49 +05:00
|
|
|
</div>
|
2016-03-25 19:04:18 +05:00
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
<div id="userCommentsList">
|
2016-03-24 19:48:49 +05:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-03-16 17:30:07 +05:00
|
|
|
</div>
|
2016-03-24 19:48:49 +05:00
|
|
|
</section>
|
|
|
|
<aside id="sidebar">
|
|
|
|
<div class="box-ad ad">{AD place='ad_300x250'}</div>
|
|
|
|
<h2>Popular Videos</h2>
|
|
|
|
<div class="clearfix sidebar-videos">
|
2016-03-16 17:30:07 +05:00
|
|
|
{if $smarty.get.play_list}
|
|
|
|
{section name=plist loop=$items}
|
|
|
|
{include file="$style_dir/blocks/manage/account_video.html" video=$items[plist] control="onWatch" pid=$playlist.playlist_id}
|
|
|
|
{/section}
|
|
|
|
{else}
|
|
|
|
|
|
|
|
{$most_viewed=$cbvid->get_videos(["order"=>"views DESC","limit"=>$limit])}
|
|
|
|
{if $most_viewed}
|
|
|
|
{foreach from=$most_viewed item=pop_video}
|
|
|
|
|
|
|
|
{if $pop_video@iteration == 9}
|
|
|
|
{break}
|
|
|
|
{/if}
|
|
|
|
<div class="clearfix popular-video">
|
2016-03-24 19:48:49 +05:00
|
|
|
{include file="$style_dir/blocks/videos/video.html" display_type='popVideos_sidebar'}
|
2016-03-16 17:30:07 +05:00
|
|
|
</div>
|
|
|
|
{/foreach}
|
|
|
|
|
|
|
|
{else}
|
|
|
|
<div class="well well-info">No Videos Found !</div>
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
</div>
|
2016-03-24 19:48:49 +05:00
|
|
|
</aside>
|
2016-03-16 17:30:07 +05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
//var aspect_ratio = 1.77778
|
|
|
|
var aspect_ratio = 2.2
|
|
|
|
var $cb_player = $("#cb_player");
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
$cb_player.height( $cb_player.width() / aspect_ratio );
|
|
|
|
|
|
|
|
var videoInfo = $("#videoDescription").text();
|
|
|
|
var newInfo = videoInfo.replace(/(((https?:\/\/)|([\s\t]))(www.)?([a-z0-9]+)\.[a-z]+)/g, '<a href="$1">$1</a>');
|
|
|
|
$("#videoDescription").html(newInfo);
|
|
|
|
|
|
|
|
comments_voting = '{$vdo.comment_voting}';
|
|
|
|
_cb.getAllComments(
|
|
|
|
'{$type}',
|
|
|
|
'{$vdo.videoid}',
|
|
|
|
'{$vdo.last_commented}',1,
|
|
|
|
'{$vdo.comments_count}',
|
|
|
|
'{$object_type}'
|
|
|
|
);
|
|
|
|
|
|
|
|
$("#reportVideo").on({
|
|
|
|
click : function(e){
|
|
|
|
e.preventDefault();
|
|
|
|
$("#flag_item").show();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
$("#subscribeUser").on({
|
|
|
|
click: function(e){
|
|
|
|
e.preventDefault();
|
|
|
|
_cb.subscribeToChannel('{$video.userid}','subscribe_user','video_detail_result_cont');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
var adHtml = $('.ad-holder').html();
|
|
|
|
if(adHtml<1){
|
|
|
|
$('.ad-holder').remove();
|
|
|
|
}
|
|
|
|
/*//Progress Bar
|
|
|
|
$( '#circle' ).progressCircle();
|
|
|
|
$( '#circle' ).progressCircle({
|
|
|
|
nPercent : nPercent,
|
|
|
|
showPercentText : showPercentText,
|
|
|
|
thickness : thickness,
|
|
|
|
circleSize : circleSize
|
|
|
|
});*/
|
|
|
|
});
|
|
|
|
|
|
|
|
var resizePlayer = _cb.debounce(function() {
|
|
|
|
$cb_player.height( $cb_player.width() / aspect_ratio );
|
|
|
|
}, 500, false);
|
|
|
|
|
|
|
|
$(window).resize(resizePlayer);
|
|
|
|
|
|
|
|
</script>
|