2012-04-25 06:45:00 +00:00
|
|
|
<!-- Watch Video Template $Id$ -->
|
2012-06-12 10:31:46 +00:00
|
|
|
{$object_type='video'}
|
|
|
|
{$type='v'}
|
|
|
|
|
2012-04-25 06:45:00 +00:00
|
|
|
<h1>{$video.title}</h1>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="span734">
|
|
|
|
<!-- Video Player -->
|
2012-05-22 11:34:45 +00:00
|
|
|
<div style="width: 100%; background-color: #ccc; height: 336px">
|
|
|
|
{FlashPlayer width='100%' height='336px'}
|
|
|
|
</div>
|
2012-04-25 06:45:00 +00:00
|
|
|
|
|
|
|
<!-- Video Stats and Actions -->
|
|
|
|
|
|
|
|
<div class="video-stats">
|
|
|
|
<div class="inlineblock pull-left">
|
|
|
|
<div class="btn-toolbar">
|
|
|
|
<div class="btn-group valignMid">
|
2012-05-22 11:34:45 +00:00
|
|
|
<button class="btn"
|
|
|
|
onclick="cbv3rate('{$video.videoid}','1','video');"><span class="icon-like"></span> Like</button>
|
|
|
|
<button class="btn"
|
|
|
|
onclick="cbv3rate('{$video.videoid}','10','video');"><span class="icon-dislike"></span></button>
|
2012-04-25 06:45:00 +00:00
|
|
|
</div>
|
2012-05-25 12:33:20 +00:00
|
|
|
<button class="btn" onclick="toggleBox(this,'#add-videos-to-playlist');" ><span class="icon-plus" ></span>{lang code='Add to'}</button>
|
2012-04-25 06:45:00 +00:00
|
|
|
<button class="btn"><span class="icon-share"></span> Share</button>
|
|
|
|
<button class="btn"><span class="icon-flag"></span> Flag</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="inlineblock pull-right ">
|
|
|
|
<div class="btn-toolbar valignMid">
|
2012-05-22 11:34:45 +00:00
|
|
|
<h3 class="inlineblock valignTop">{$video.views|number_format} views</h3>
|
2012-04-25 06:45:00 +00:00
|
|
|
<button class="btn"><span class="icon-v3 icon-stats"></span></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
|
2012-05-25 11:15:58 +00:00
|
|
|
<!-- Playlists -->
|
2012-05-25 12:33:20 +00:00
|
|
|
{include_template_file file='blocks/add_playlist.html' video=$video type=v oid=$video.videoid}
|
2012-05-25 11:15:58 +00:00
|
|
|
|
2012-04-25 06:45:00 +00:00
|
|
|
<!-- Video Details -->
|
|
|
|
<div class="video-details row-fluid">
|
|
|
|
<div class="span9">
|
|
|
|
<div style="height: 60px ;overflow: hidden" id="vid-details" class="relative">
|
|
|
|
<h6>uploaded {$video.date_added|niceTime} by {$video.username}</h6>
|
|
|
|
|
|
|
|
<article><p>
|
|
|
|
{$video.description}</p>
|
|
|
|
</article>
|
|
|
|
|
|
|
|
<h5>Category</h5>
|
2012-05-22 11:34:45 +00:00
|
|
|
<h6>{$vdo.category|categories:video}</h6>
|
2012-04-25 06:45:00 +00:00
|
|
|
<h5>Tags</h5>
|
2012-05-22 11:34:45 +00:00
|
|
|
<h6>{$vdo.tags|tags:videos}</h6>
|
2012-04-25 06:45:00 +00:00
|
|
|
|
|
|
|
<div class="height10"></div>
|
|
|
|
<div class="video-details-shadow absolute"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="height5"></div>
|
|
|
|
|
|
|
|
<div align="center">
|
|
|
|
|
|
|
|
<div class="btn btn-info btn-mini width75"
|
|
|
|
id="vid-details-more" onclick="toggleLessMore('vid-details','more');">
|
|
|
|
More</div>
|
|
|
|
<div class="btn btn-mini display-none width75"
|
|
|
|
id="vid-details-less" onclick="toggleLessMore('vid-details','less');">Less</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2012-05-22 11:34:45 +00:00
|
|
|
|
2012-04-25 06:45:00 +00:00
|
|
|
<div class="span3">
|
2012-05-22 11:34:45 +00:00
|
|
|
|
|
|
|
{* This is a custom function for this template *}
|
|
|
|
|
|
|
|
<div id="video-rating-container">
|
|
|
|
{$videoRating=cbv3_rating($video,'video-bar')}
|
|
|
|
{$videoRating}
|
2012-04-25 06:45:00 +00:00
|
|
|
</div>
|
2012-05-22 11:34:45 +00:00
|
|
|
|
2012-04-25 06:45:00 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div> <!-- Ending Video Details -->
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
|
|
|
<!-- Related Photos -->
|
|
|
|
<div class="related-photos">
|
|
|
|
<h3>Photos you may like</h3>
|
|
|
|
|
|
|
|
<ul class="thumbnails">
|
|
|
|
{section name=foo loop=4}
|
|
|
|
<li>
|
|
|
|
<a href="#" class="thumbnail">
|
|
|
|
<img src="http://placehold.it/150x120" alt="">
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{/section}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Video Response -->
|
|
|
|
<div class="video-response">
|
|
|
|
<h3>Video Responses</h3>
|
|
|
|
<ul class="thumbnails">
|
|
|
|
{section name=foo loop=4}
|
|
|
|
<li>
|
|
|
|
<a href="#" class="thumbnail">
|
|
|
|
<img src="http://placehold.it/150x120" alt="">
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{/section}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Add Comment -->
|
2012-04-28 20:11:43 +00:00
|
|
|
<div class="comments video-comments">
|
2012-06-21 11:22:38 +00:00
|
|
|
<h3>All Comments (<span id="total_comments">{$video.comments_count}</span>)</h3>
|
2012-04-28 20:11:43 +00:00
|
|
|
|
2012-06-12 10:31:46 +00:00
|
|
|
<form id="comment-form" method="post" onsubmit="return false;">
|
|
|
|
<input type="hidden" name="type" value="v"/>
|
|
|
|
<input type="hidden" name="obj_id" value="{$video.videoid}"/>
|
|
|
|
|
|
|
|
<div class="add-comment row-fluid relative">
|
|
|
|
<div class="inlineblock moveL marginR10 add-comment-uphoto">
|
|
|
|
<img src="{$userquery->avatar($userquery->udetails)}"/>
|
2012-04-28 20:11:43 +00:00
|
|
|
</div>
|
|
|
|
<textarea class="input-xlarge span650
|
2012-06-12 10:31:46 +00:00
|
|
|
comment-textarea" id="comment-text" rows="3" name="comment"
|
|
|
|
{if userid()} placeholder="{lang code='type something to comment....'}"{else}
|
|
|
|
disabled{/if}
|
|
|
|
></textarea>
|
|
|
|
|
2012-06-21 11:22:38 +00:00
|
|
|
<input name="reply_to" value="" type="hidden" id="reply_to" />
|
|
|
|
|
2012-06-12 10:31:46 +00:00
|
|
|
{if !userid()}
|
|
|
|
<div class="absolute comment-login"><a href="" class="btn">Please login to make a comment</a></div>
|
|
|
|
{/if}
|
2012-04-28 20:11:43 +00:00
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
2012-06-21 11:22:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="inlineblock moveL marginL70 display-none" >
|
|
|
|
<a href="javascript:void(0)" class="label label-info" id="reply-author" onclick="cancel_reply()"></a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div align="right" class="inlineblock moveR">
|
2012-04-28 20:11:43 +00:00
|
|
|
|
|
|
|
<button class="btn btn-primary">Add video response</button>
|
2012-06-12 10:31:46 +00:00
|
|
|
<button class="btn" onclick="add_comment('v')"
|
|
|
|
data-loading-text="{lang code='Adding comment..'}"
|
|
|
|
id="add-comment-button">Post comment</button>
|
2012-04-28 20:11:43 +00:00
|
|
|
</div>
|
2012-06-21 11:22:38 +00:00
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
2012-04-28 20:11:43 +00:00
|
|
|
</div>
|
2012-06-12 10:31:46 +00:00
|
|
|
</form>
|
2012-04-28 20:11:43 +00:00
|
|
|
<div class="height20"></div>
|
|
|
|
|
2012-06-12 10:31:46 +00:00
|
|
|
|
|
|
|
<div id="comments"></div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
$(document).ready(function()
|
|
|
|
{
|
|
|
|
comments_voting = '{$vdo.comment_voting}';
|
|
|
|
get_comments('{$type}','{$vdo.videoid}','{$vdo.last_commented}',1,'{$vdo.comments_count}','{$object_type}')
|
|
|
|
}
|
|
|
|
);
|
|
|
|
</script>
|
2012-04-28 20:11:43 +00:00
|
|
|
|
|
|
|
<div align="right">
|
|
|
|
<div class="btn-group inlineblock">
|
|
|
|
{section name=foo loop=6}
|
|
|
|
<button class="btn">{$smarty.section.foo.iteration}</button>
|
|
|
|
{/section}
|
|
|
|
<button class="btn">Next »</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2012-04-25 06:45:00 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="span336">
|
2012-05-05 14:41:49 +00:00
|
|
|
{sidebar('watch-video')}
|
2012-04-25 06:45:00 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|