2009-12-09 13:43:19 +00:00
< div class = "vid_top_container" >
< div class = "video_title" > {$vdo.title}< / div >
{if $userquery->perm_check('admin_access')=='yes'}< div > {ANCHOR place=watch_admin_options data=$vdo}< / div > {/if}
2010-03-30 05:53:27 +00:00
<!-- START before_watch_player plugin -->
2010-12-14 13:53:51 +00:00
{ANCHOR place="before_watch_player" data=$vdo }
2010-03-30 05:53:27 +00:00
<!-- END before_watch_player plugin anchor -->
2009-12-09 13:43:19 +00:00
{if has_hq($vdo)}
< span id = "hq" class = "hq_button_cont" >
2010-02-12 16:17:17 +00:00
< a href = "javascript:void(0)" onclick = "hq_toggle('#normal_player_cont','#hd_player_cont'); $('#hq_button').toggleClass('hq_button_sel')" >
< img src = "{$imageurl}/dot.gif" class = "hq_button" border = "0" id = "hq_button" / >
2009-12-09 13:43:19 +00:00
< / a >
< / span >
{/if}
2009-11-30 19:46:45 +00:00
< / div >
2009-12-09 13:43:19 +00:00
2009-11-30 19:46:45 +00:00
< div class = "watch_left" >
<!-- Player -->
2009-12-09 13:43:19 +00:00
< div class = "player_container" id = "normal_player_cont" >
2010-07-01 07:32:56 +00:00
{FlashPlayer vdetails = $vdo}
2009-11-30 19:46:45 +00:00
< / div >
2010-08-06 11:42:41 +00:00
{if has_hq($vdo)}
< div id = "hd_player_cont" style = "display:none" >
{FlashPlayer vdetails =$vdo player_div='hd_div' hq=true}
< / div >
{/if}
2009-11-30 19:46:45 +00:00
<!-- Actions -->
2010-04-26 14:54:40 +00:00
< div class = "video_actions_cont clearfix" >
2009-11-30 19:46:45 +00:00
< div class = "rating_container" >
{show_video_rating rating=$vdo.rating ratings=$vdo.rated_by total='10' id=$vdo.videoid type=video}
< / div >
2010-04-26 14:54:40 +00:00
< div class = "actions clearfix" >
2009-11-30 19:46:45 +00:00
< ul >
2010-02-10 05:54:08 +00:00
< li > < a href = "javascript:void(0)" onclick = "slide_up_watch_video('#video_action_result_cont');add_to_fav('video','{$vdo.videoid}');" > < img src = "{$imageurl}/dot.gif" class = "add_to_fav" / > {lang code='add_to_favs'}< / a > < / li >
< li > < a href = "javascript:void(0)" onclick = "slide_up_watch_video('#flag_item');$('#flag_item').slideToggle();" > < img src = "{$imageurl}/dot.gif" class = "report_this" / > {lang code='report_this'}< / a > < / li >
< li > < a href = "javascript:void(0)" onclick = "slide_up_watch_video('#share_form');$('#share_form').slideToggle();" > < img src = "{$imageurl}/dot.gif" class = "add_to_play" / > {lang code='share_this'}< / a > < / li >
< li > < a href = "javascript:void(0)" onclick = "slide_up_watch_video('#playlist_form');$('#playlist_form').slideToggle();" > < img src = "{$imageurl}/dot.gif" class = "share_this" / > {lang code='add_to_playlist'}< / a > < / li >
2009-11-30 19:46:45 +00:00
< / ul >
2010-04-26 14:54:40 +00:00
2009-11-30 19:46:45 +00:00
< / div >
2010-04-26 14:54:40 +00:00
2009-11-30 19:46:45 +00:00
< / div >
<!-- Actions End -->
<!-- Action Result Container -->
< div class = "video_action_result_boxes" >
{show_share_form id=$vdo.videoid type=Video}
{show_flag_form id=$vdo.videoid type=Video}
< div class = "action_box" style = "display:none" id = "video_action_result_cont" > < / div >
{show_playlist_form id=$vdo.videoid type=Video}
2010-11-01 11:01:15 +00:00
< div class = "action_box" >
< form action = "" method = "post" name = "collection_form" onsubmit = "return false;" id = "collection_form" >
< select name = "collection" id = "collection" >
{foreach from=$uc item=item}
< option value = "{$item.collection_id}" > {$item.collection_name} ({$item.total_objects})< / option >
{/foreach}
< / select >
< button onclick = "collection_actions('collection_form','add_new_item','{$vdo.videoid}','#video_action_result_cont','video');" class = "cb_button_2" > {lang code="add_to_collection"}< / button >
< / form >
< / div > <!-- action_box end -->
2009-11-30 19:46:45 +00:00
< / div >
<!-- Action Result Container End -->
<!-- Video Stats -->
2010-04-26 14:54:40 +00:00
< div class = "video_details clearfix" >
2009-11-30 19:46:45 +00:00
< div class = "action_box" id = "video_detail_result_cont" style = "margin-top:0px; margin-bottom:5px; display:none" > < / div >
< div class = "vd_user_container" align = "center" >
< a href = "{$userquery->profile_link($user)}" > < img src = "{$userquery->getUserThumb($user)}" alt = "{$user.username}" class = "account_thumb" / > < / a >
< ul >
2010-02-10 05:54:08 +00:00
< li > < a href = "{$userquery->profile_link($user)}" > {lang code='view_profile'}< / a > < / li >
< li > < a href = "{$userquery->get_user_videos_link($user)}" > {lang code='grp_view_vdos'}< / a > < / li >
2009-11-30 19:46:45 +00:00
< / ul >
2010-02-10 05:54:08 +00:00
< div align = "center" > < span class = "small_button non_button" onclick = "subscriber('{$user.userid}','subscribe_user','video_detail_result_cont')" > {lang code='subscribe'}< / span > < / div >
2009-11-30 19:46:45 +00:00
< / div >
< div class = "vd_details" >
< div class = "uploading_detail" >
2010-02-10 05:54:08 +00:00
{lang code='uploaded_by_s' assign='uploaded_by_s'}
< a href = "{$userquery->profile_link($user)}" > {$uploaded_by_s|sprintf:$user.username} — {$vdo.date_added|nicetime}< / a >
2009-11-30 19:46:45 +00:00
< / div >
< div class = "vd_stats" >
< ul >
2010-02-10 05:54:08 +00:00
< li > {lang code='views'} : < strong > {$vdo.views|number_format}< / strong > < / li >
< li > {lang code='duration'} : < strong > {$vdo.duration|SetTime}< / strong > < / li >
< li > {lang code='comments'} :< strong > {$vdo.comments_count|number_format}< / strong > < / li >
2009-11-30 19:46:45 +00:00
< / ul >
< div class = "clearfix" > < / div >
< / div >
< div class = "desc_cont" >
< div class = "less_desc" id = "less_desc" >
2010-02-10 05:54:08 +00:00
< span class = "upper_quote" > < / span > {$vdo.description|description|truncate:200}{if strlen($vdo.description)>200}< a href = "javascript:void(0)" onclick = "$('#less_desc').css('display','none');$('#more_desc').css('display','block');" > {lang code='more'}< / a > {/if}
2009-11-30 19:46:45 +00:00
< / div >
< div class = "more_desc" id = "more_desc" style = "display:none" >
< span class = "upper_quote" > < / span > {$vdo.description|description} < a href = "javascript:void(0)" onclick = "$('#more_desc').css('display','none');$('#less_desc').css('display','block');" > Less< / a >
< / div >
< / div >
< div class = "tags_cats" >
2010-01-20 11:58:59 +00:00
< div class = "tags" > {$vdo.tags|tags:videos}< / div >
2009-11-30 19:46:45 +00:00
< div class = "category" > Category : {$vdo.category|categories:video}< / div >
< / div >
< / div >
< / div >
<!-- Video Sttas -->
<!-- Video Comments -->
2010-04-26 14:54:40 +00:00
< div id = "commentsContainer" >
2010-02-10 05:54:08 +00:00
< h2 > {lang code='comments'}< / h2 >
2009-11-30 19:46:45 +00:00
<!-- Displaying Comments -->
{include file="$style_dir/blocks/comments/comments.html" id=$vdo.videoid type=v}
2010-02-28 12:59:03 +00:00
2010-02-28 13:26:17 +00:00
{if $myquery->is_commentable($vdo,'v')}
2010-02-28 12:59:03 +00:00
{include file="$style_dir/blocks/comments/add_comment.html" id=$vdo.videoid type=v}
{else}
< div class = "disable_msg" align = "center" > {lang code='comm_disabled_for_vid'}< / div >
{/if}
2009-11-30 19:46:45 +00:00
< div class = "clearfix" > < / div >
< / div >
<!-- Video Comments -->
< / div >
<!-- Watch Right -->
< div class = "watch_right" >
2010-02-10 08:20:34 +00:00
< div class = "ads" > {AD place=ad_300x250}< / div >
2009-11-30 19:46:45 +00:00
{ANCHOR place="video_bookmarks" data=$vdo}
< div class = "video_details videosharing" align = "left" >
< strong >
2010-03-03 09:44:32 +00:00
{if $Cbucket->configs.video_embed==1 & & $vdo.allow_embedding=='yes'}
2010-02-10 05:54:08 +00:00
< label for = "embed_code" > {lang code='embed_code'}< / label >
2009-11-30 19:46:45 +00:00
< br / >
< input type = "text" name = "embed_code" id = "embed_code" style = "margin-bottom:5px; width:99%" value = "{$cbvid->embed_code($vdo)|htmlspecialchars}" onclick = "this.select()" / >
< br / >
2010-03-03 09:44:32 +00:00
{/if}
2010-02-10 05:54:08 +00:00
< label for = "link_video" > {lang code='link_this_video'}< br / >
2009-11-30 19:46:45 +00:00
< / label >
2010-02-01 11:09:02 +00:00
< input type = "text" name = "link_video" id = "link_video" style = "width:99%;margin-bottom:5px; " value = "{videoLink vdetails=$vdo}" onclick = "this.select()" / >
2010-03-02 14:50:54 +00:00
{if $Cbucket->configs.video_download==1 & & $cbvid->downloadable($vdo)}
< label > < a href = "{videoLink vdetails=$vdo type=download}" > {lang code='click_to_download_video'}< / a > < / label >
2010-02-01 11:09:02 +00:00
{/if}
2010-02-10 05:54:08 +00:00
< / strong > {ANCHOR place="video_sharing_options" data=$vdo}< / div >
2009-11-30 19:46:45 +00:00
{ANCHOR place="watch_video_right" data=$vdo}
<!-- Playlist -->
2009-12-04 21:03:27 +00:00
{include file="$style_dir/blocks/watch_video/playlist_box.html" selected=$vdo.videoid }
2009-11-30 19:46:45 +00:00
<!-- Playlist End -->
<!-- Getting List user videos -->
2009-12-29 18:15:35 +00:00
{assign var=videos_items_columns value=func->config(videos_items_columns)}
{get_videos user=$vdo.userid limit=$videos_items_columns assign=user_vids exclude=$vdo.videoid}
2009-11-30 19:46:45 +00:00
{if $user_vids}
2010-01-20 11:58:59 +00:00
< span class = "watch_vids_head" onclick = '$(this).toggleClass("watch_vids_head_closed");$("#user_vids").slideToggle("fast")' > More from {$user.username}< / span >
2009-11-30 19:46:45 +00:00
< div class = "watch_vids_cont" id = "user_vids" >
{section name=uvlist loop=$user_vids}
{include file="$style_dir/blocks/watch_video/video_box.html" video=$user_vids[uvlist]}
{/section}
< div class = "clearfix" > < / div >
< / div >
{/if}
<!-- Getting List user videos -->
<!-- Getting Related videos -->
2009-12-29 18:15:35 +00:00
{assign var=videos_items_columns value=func->config(videos_items_columns)}
2010-08-07 13:26:24 +00:00
{get_videos nonuser=$vdo.userid exclude=$vdo.videoid limit=$videos_items_columns order="date_added ASC" assign=related_vids show_related=yes title=$vdo.title tags=$vdo.tags}
2010-07-26 11:45:28 +00:00
<!-- Related Videos based on category, please remove * and also above smarty function -->
2010-08-06 11:42:41 +00:00
{* get_videos category=$vid_cat nonuser=$vdo.userid exclude=$vdo.videoid limit=$videos_items_columns order="date_added ASC" assign=related_vids show_related=yes title=$vdo.title*}
2010-07-26 11:45:28 +00:00
2010-07-28 07:42:12 +00:00
2009-11-30 19:46:45 +00:00
{if $related_vids}
< span class = "watch_vids_head" onclick = '$(this).toggleClass("watch_vids_head_closed");$("#related_vids").slideToggle("fast")' > Related Videos< / span >
< div class = "watch_vids_cont" id = "related_vids" >
{section name=uvlist loop=$related_vids}
{include file="$style_dir/blocks/watch_video/video_box.html" video=$related_vids[uvlist]}
{/section}
< div class = "clearfix" > < / div >
< / div >
{/if}
<!-- Getting Related videos -->
< / div >
< div class = "clearfix" > < / div >