Files
Testing/templates/video.tpl
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

1212 lines
35 KiB
Smarty

{include file='header.tpl'}
<link rel="stylesheet" href="/sam/cc_banner/CC_banner.css?a=2">
<link rel="stylesheet" type="text/css" href="/include/videogallery3/css/mvp.css" />
{literal}
<style>
.mvp-pip-toggle{display:block!important;}
#imagecontainer1{height:627px;background:#0D0D0D; text-align:center;position: relative;}
#imagecontainer img{margin:auto; max-height:100%;}
#videocontainer{display:none; }
.mvp-player-wrap{width:100%; height:100%;}
.pull-right-ad{float:right; margin-top:-40px}
@media (max-width: 587px){
.pull-right-ad{float:left; text-aliogn:center; margin-top:-20px}
}
.blogo{width:25px;}
#video_rating{background:none;}
@media (min-width: 992px) {
.pull-right-lg {
float: right;
}
}
@media (max-width: 1050px) {
{/literal}#{$owner->user_info.user_username}_profile_comments{literal} {
scroll-margin-top: 80px;
}
}
.jffthumb{
height:75px;
margin:auto;
}
@media (max-width: 477px) {
.jffthumb{
height: 100px;
margin: auto;
width: 100%;
object-fit: cover;
}}
@media (max-width: 367px) {
.jffthumb{
height: 120px;
margin: auto;
width: 100%;
object-fit: cover;
}}
.blogofloat{float: left; padding-left: 35px; padding-top: 5px;}
.blogocommentfloat{float: left; padding-left: 35px; padding-top: 5px;}
.jffusername{margin-top:12px; margin-left:152px;}
.albums_browse_item1{width:249px;}
.albums_browse_item1_margin{border-bottom:2px solid #3F3F3F; margin-bottom:10px; padding-bottom:5px;}
.albums_browse_item1_img img {
position: relative;
left: 50%;
transform: translate(-50%, -50%);
height: auto;
top: 50%;
width: 100%;
min-height: 183.86px;
/* object-fit: cover; */
min-width: 262px;
}
.albums_browse_item1_img{overflow:hidden;
height:183.86px;
}
@media (max-width: 776px){
.blogofloat{float: right; padding-top: 5px;}
.blogocommentfloat{float: left;padding-top: 5px; padding-left:0; clear:both; margin-top:20px;}
.flagreport{margin-top:20px;}
.right-full{width: 100%; padding-left:0;}
.albums_browse_item1_img{width:100%;}
.albums_browse_item1{width: 100%; padding-right:0px;padding-left:0;}
}
#video_rating{font-size:15px;}
.videoratingbar a{color:white; font-weight:normal;}
.videoratingbar img{height:25px; font-size:15px; color:white; margin-bottom: 5px;}
.jffinfo{margin-top:10px; background:#0D0D0D; border:1px solid #3F3F3F; padding:10px; font-size:15px;}
.videoratingbar{
margin-top:10px; background:#0D0D0D; border-radius: 0 0 10px 10px; border:1px solid #3F3F3F; padding:10px 20px 10px 20px; font-size:15px;
}
.videoabout{background: #0D0D0D; padding: 15px 10px 15px 22px; border-radius: 10px 10px 0 0; border:1px solid #3F3F3F; margin-bottom: 25px; color: #bbbbbb;}
.videoaboutheader{font-size:15px; margin-bottom: 10px; color:white;}
.mvp-playlist-title{font-size:13px;}
.mvp-skin-sirius .mvp-solo-progress-level::-webkit-progress-value{
background-color:#fa3200;
}
.mvp-skin-sirius .mvp-solo-progress-level::-moz-progress-bar{
background-color:#fa3200;
}
.mvp-skin-sirius .mvp-contr-btn:hover svg{
color:#fa3200;
}
.mvp-skin-sirius .mvp-input-progress {
color: #fa3200;
}
.mvp-skin-sirius .mvp-input-volume {
color: #fa3200;
}
</style>
<script type="text/javascript" src="/include/videogallery3/js/new.js"></script>
<script type="text/javascript">
var player;
document.addEventListener("DOMContentLoaded", function(event) {
var settings = {
sourcePath: "/include/videogallery3/",
useEmbed: false,
useRewind: true,
rightClickContextMenu:"browser",
useCasting: true,
usePip: true,//picture in picture
adTitleText: "Advertisement",
adSkipWaitText: "You can skip ad in",
adSkipReadyText: "SKIP AD &#62;",
logoPath:'/images/watermark1.png',//logo above player
inlineAdsContinueInText: "Continue in",
inlineAdsUpgradeText: "<a href='#'>Upgrade to Pro membership to hide these ads</a>",
inlineAdsCountdown: 5,
inlineAdsOccurence: 5000,
useShare:false,
forceAdMutedOnIos:true,
createAdMarkers:true,
playAdsOnlyOnce:true,
adUpcomingMsgText: "Ad will start in..",
showAdUpcomingMsg: true,
adUpcomingMsgTime: 5,
useAdSeekbar: true,
useAdControls: true,
useInfo:false,
instanceName: "player1",
activePlaylist: ".playlist-video",
activeItem: 0,
volume: 0.5,
autoPlay: false,
autoPlayAfterFirst: true,
randomPlay: false,
loopingOn: true,
aspectRatio:1,
useGa: true,
gaTrackingId: "G-00Z6DGT33S",
hidePlaylistOnFullscreenEnter: true,
mediaEndAction: "loop",
//aspectRatio: 1,
playlistOpened: false,
useKeyboardNavigationForPlayback: true,
// rightClickContextMenu: "custom",
playlistItemContent: "thumb,title,description",
vrInfoImage: "/include/videogallery3/data/360.png",
elementsVisibilityArr: [
{
width: 500,
elements: [
"play",
"rewind",
"seekbar",
"fullscreen",
"settings",
"volume",
"chapter",
"annotations"
]
}
],
skin: "sirius",
playlistPosition: "no-playlist",
playerType: "normal",
playlistScrollType_field: "perfect-scrollbar",
/*adPre: //pre-roll: plays before video starts, only one allowed
{
type: "video",
path: [
{
quality: "HD",
mp4: "https://cdn.bateword.com/images/bumper/LOGO116x9.mp4"
}
],
skipEnable: "60", //allow skip to show button after x seconds, optional
link: "http://www.google.com", //url link to open when ad is clicked
target: "_blank" //url link target
},*/
playerTransition: "alpha"
}
player= new mvp(document.getElementById("wrapper"), settings);
player.addEventListener("fullscreenEnter", function(data){
//document.getElementById("arrowchat_base").style.display = "none"
jQuery("#arrowchat_mobiletab").hide();
jQuery("#fixedmobile").hide();
//called on fullscreen enter, returns (instance, instanceName, media)
})
player.addEventListener("fullscreenExit", function(data){
jQuery("#arrowchat_mobiletab").show();
jQuery("#fixedmobile").show();
//jQuery("#arrowchat_base").show();
//jQuery("#fixedmobile").show();
//called on fullscreen exit, returns (instance, instanceName, media)
})
});
</script>
<script type="text/javascript">
function myFunction() {
var img = document.getElementById("blogo");
img.classList.add("rotated-image");
}
function showlikes(){
content=jQuery("#wholiked").html();
jQuery("#myModal").html(content);
jQuery(".modal-content").css("background", "black")
}
</script>{/literal}
{* $Id: video.tpl 236 2009-11-13 05:29:23Z phil $ *}
{if $video_info.video_admin_approved==0 && $user->user_info.user_id!=$owner->user_info.user_id}This video is pending moderator approval.{else}
{*
<div class='page_header'>
{capture assign="owner_url"}{$url->url_create('profile', $owner->user_info.user_username)}&v=video{/capture}
{lang_sprintf id=5500076 1=$owner_url 2=$owner->user_displayname}
</div>*}
<div class='page_header' style="margin-bottom:25px;">
<span style="font-size:20pt; font-weight:bold;text-transform:uppercase;">
{capture assign="owner_url"}{$url->url_create('profile', $owner->user_info.user_username)}&v=video{/capture}
Videos &#9656; <a href="profile.php?user={$owner->user_info.user_username}">{$owner->user_info.user_username}</a>{* lang_sprintf id=5500076 1=$owner_url 2=$owner->user_displayname *}
</span>
</div>
<div class="clearfix"></div>
{* LEFT COLUMN - VIDEO PLAYER AND COMMENTS *}
<div class="col-md-12 nopadding" style="max-width:1130px;">
{* VIDEO HEADER - TITLE AND TEXT *}
<div style='padding:2px;border:1px solid #534741;'>
<div class='videoHeader'>
<div class='inner' style='cursor:default; padding:10px;'>
<h1>{$video_info.video_title}</h1>
{*<h2 id='short_desc'>{$video_info.video_desc_short|truncate:100:"...":true}{if $video_info.video_desc|count_characters:true > 100} (<a href='javascript:void(0);' onClick="$('short_desc').style.display = 'none'; $('long_desc').style.display = 'block';">{lang_print id=5500101}</a>){/if}</h2>*}
{if $video_info.video_desc|count_characters:true > 100}
<h2 id='long_desc' style='display:none'>{$video_info.video_desc|nl2br} (<a href='javascript:void(0);' onClick="$('short_desc').style.display = 'block'; $('long_desc').style.display = 'none';">{lang_print id=5500027}</a>)</h2>
{/if}
</div>
</div>
{if $owner->profile_info.profilevalue_34!="" && $video_info.jff==1 &&($owner->user_info.user_level_id==2||$owner->user_info.user_level_id==8)}
<div class="JFF_vidbanner">
<div class="watchmore">
<!-- <div class="CC_logo"> Icon here</div> -->
<img class="CC_logo" src="/sam/cc_banner/images/Content creator logo-01.svg" alt="">
<a href="https://justfor.fans/{$owner->profile_info.profilevalue_34}?AffiliateID=137299" target="_blank" style="color: #eda800;">Watch more videos by {$owner->profile_info.profilevalue_34}</a>
</div>
<a href="https://justfor.fans/{$owner->profile_info.profilevalue_34}?AffiliateID=137299" class="JFF_link" target="_blank">
<img class="JFF_logo" src="/sam/cc_banner/images/JFF logo-01.svg" alt="JustForFans_Logo">
<div class="JFF_Button" > See More</div>
</a>
</div>
{/if}
<a href="javascript:void(0);" id="imagecontainer" onclick="jQuery('#imagecontainer').hide(); jQuery('#videocontainer').show();jQuery('#wrapper').css('height', '627px'); player.playMedia();jQuery('.mvp-volume-seekbar').removeClass('mvp-force-hide'); ">
<div id="imagecontainer1">
<img src="{if $video_info.custom_thumbnail==1}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$video_info.video_dir|replace:'./':''}{$video_info.video_id}_custom.jpg{else}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$video_info.video_dir|replace:'./':''}{$video_info.video_id}_thumb.jpg{/if}" class="img-responsive" style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); "><div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width:25px; height:auto;"><svg aria-hidden="true" focusable="false" role="img" viewBox="0 0 373.008 373.008" style="width:25px;
z-index: 30000000;"><path fill="#FFFFFF" d="M61.792,2.588C64.771,0.864,68.105,0,71.444,0c3.33,0,6.663,0.864,9.655,2.588l230.116,167.2 c5.963,3.445,9.656,9.823,9.656,16.719c0,6.895-3.683,13.272-9.656,16.713L81.099,370.427c-5.972,3.441-13.334,3.441-19.302,0 c-5.973-3.453-9.66-9.833-9.66-16.724V19.305C52.137,12.413,55.818,6.036,61.792,2.588z" style=""></path></svg></div></div></a>
{literal}
<div id="videocontainer">
<div id="wrapper">
<!--<div class="mvp-player-wrap">
</div><!-- end mvp-player-wrap -->
</div>
<div id="mvp-playlist-list">
<div class="playlist-video">
<!-- , fucks it up, fix-->
<div class="mvp-playlist-item" data-type="video" data-path='[{/literal}{if $video_info.2160==1}{literal}{"quality": "2160p/4K", "mp4":"{/literal}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$video_info.video_dir|replace:'./':''}{$video_info.video_id}-2160.mp4{literal}"},{/literal}{/if}{if $video_info.1440==1}{literal}{"quality": "1440p/2K", "mp4":"{/literal}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$video_info.video_dir|replace:'./':''}{$video_info.video_id}-1440.mp4{literal}"},{/literal}{/if}{if $video_info.1080==1}{literal}{"quality": "1080p", "mp4":"{/literal}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$video_info.video_dir|replace:'./':''}{$video_info.video_id}-1080.mp4{literal}"}{/literal}{/if}{if $video_info.720==1}{if $video_info.1080==1},{/if}{literal}{"quality": "720p", "mp4":{/literal}"{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$video_info.video_dir|replace:'./':''}{$video_info.video_id}-720.mp4{literal}"}{/literal}{/if}{if $video_info.480==1}{if $video_info.1080==1||$video_info.720==1},{/if}{literal}{"quality": "480p","mp4":"{/literal}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$video_info.video_dir|replace:'./':''}{$video_info.video_id}-480.mp4{literal}"}{/literal}{/if}{if $video_info.240==1}{if $video_info.1080==1||$video_info.720==1||$video_info.480==1},{/if}{literal}{"quality": "240p", "mp4":"{/literal}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$video_info.video_dir|replace:'./':''}{$video_info.video_id}-240.mp4{literal}"}{/literal}{/if}{if $video_info.otherres==1}{if $video_info.1080==1||$video_info.720==1||$video_info.480==1||$video_info.240==1},{/if}{literal}{"quality": "Standard", "mp4":"{/literal}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$video_info.video_dir|replace:'./':''}{$video_info.video_id}.mp4{literal}"}{/literal}{/if}{if $video_info.otherres==0 && $video_info.1080==0 && $video_info.720==0 && $video_info.480==0 &&$video_info.240==0}{literal}{"quality": "Standard","mp4":"{/literal}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$video_info.video_dir|replace:'./':''}{$video_info.video_id}.mp4"{literal}}{/literal}{/if}{literal}]' data-poster="{/literal}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$video_info.video_dir|replace:'./':''}{$video_info.video_id}_thumb.jpg{literal}" data-thumb="{/literal}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$video_info.video_dir|replace:'./':''}{$video_info.video_id}_thumb.jpg{literal}" data-title="{/literal}{$videos[video_loop].video_title}{literal}" data-description="{/literal}{$videos[video_loop].video_desc}{literal}">
<div class="mvp-ad-section">
{/literal}
{if SE_DEBUG1}{$ad}
{/if}
{if $user->user_info.user_level_id!=2 && $user->user_info.user_level_id!=7}{if $video_info.video_duration_in_sec>29}
{$ad}
{*<div class="mvp-ad mvp-ad-pre" name="ChaturbateAd" data-name="ChaturbateAd" data-type="video" data-path="https://cdn.bateworld.com/images/bumper/ChaturbatePreRoll15sEdit-V1.mp4" data-link="https://bateworld.chaturbate.com/" data-target="_blank"></div>*}
{/if}
{/if}
{literal}
<div class="mvp-ad mvp-ad-pre" name="bumper" data-name="bumper" data-type="video" data-path="https://cdn.bateworld.com/images/bumper/Logo16X9.mp4"></div>
</div>
</div>
</div>
</div>
</div>
{/literal}
</div>
{if $owner->profile_info.profilevalue_34!="" && $video_info.jff==1 &&($owner->user_info.user_level_id==2||$owner->user_info.user_level_id==8)}
<div class="JFF_profilebanner col-md-8 nopadding" style="margin-top:10px;">
<div class="watchmore">
<img class="JFF_logo" src="/sam/cc_banner/images/JFF logo-01.svg" alt="">
<a href="https://justfor.fans/{$owner->profile_info.profilevalue_34}?AffiliateID=137299" target="_blank" style="color: #eda800;">Watch more videos by {$owner->profile_info.profilevalue_34}</a>
</div>
{if $video_info.url==""} <a href="https://justfor.fans/{$owner->profile_info.profilevalue_34}?AffiliateID=137299" class="JFF_link" target="_blank" style="color: #eda800;">{else}
<a href="{$video_info.url}&AffiliateID=137299" class="JFF_link" target="_blank" style="color: #eda800;">{/if}
<div class="JFF_Button" > See Full Video</div>
</a>
</div>
<div class="clearfix"></div>
{/if}
{* SHOW VIDEO DETAILS *}
{if $video_info.ai==1}
<div class="aigenerated" style="margin-bottom: 10px; display:block;"><table style="width: 100%; "><tr><td style="width:15px; vertical-align:top; padding:0;"><i class="fa-light fa-microchip-ai" style="font-size:15px; margin-right:10px;"></i></td><td style="padding:0;">This media may have been generated or manipulated using AI, and may not depict a real person or event.</td></tr></table></div>
{/if}
<div class="videoratingbar">
<div class='videoInfo'>
<div id='tab'>
{* SHOW RATING (NOT ALLOWED TO RATE) *}
{if !$allowed_to_rate}
<div id='video_rating' style='float: left;'>
{section name=full_loop start=0 loop=$video_info.video_rating_full}
<img src='{$imagecdn}images/icons/jff/Rating_Star_FULL.png' border='0'>
{/section}
{if $video_info.video_rating_part}<img src='{$imagecdn}images/icons/jff/Rating_Star_HALF.png' border='0'>{/if}
{section name=none_loop start=0 loop=$video_info.video_rating_none}
<img src='{$imagecdn}images/icons/jff/Rating_Star_EMPTY.png' border='0'>
{/section}
<br>
Rate it
</div>
{* SHOW RATING (ALLOWED TO RATE) *}
{else}
<div id='video_rating' onmouseout='rating_out()' style='float: left;'>
{assign var="rating" value="0"}
{section name=full_loop start=0 loop=$video_info.video_rating_full}
{assign var="rating" value=$rating+1}
<img src='{$imagecdn}images/icons/jff/Rating_Star_FULL.png' border='0' onmouseover="rating_over({$rating});" onclick="rate({$rating});" id='rate_{$rating}' style='cursor:pointer;'>
{/section}
{if $video_info.video_rating_part}
{assign var="rating" value=$rating+1}
<img src='{$imagecdn}images/icons/jff/Rating_Star_HALF.png' border='0' onmouseover="rating_over({$rating});" onclick="rate({$rating});" id='rate_{$rating}' style='cursor:pointer;'>
{/if}
{section name=none_loop start=0 loop=$video_info.video_rating_none}
{assign var="rating" value=$rating+1}
<img src='{$imagecdn}images/icons/jff/Rating_Star_EMPTY.png' border='0' onmouseover="rating_over({$rating});" onclick="rate({$rating});" id='rate_{$rating}' style='cursor:pointer;'>
{/section}
<br>
Rate it
</div>
{* RATING JAVASCRIPT *}
{literal}
<script type='text/javascript'>
<!--
preload_full = new Image();
preload_full.src = "{/literal}{$imagecdn}{literal}images/icons/jff/Rating_Star_FULL.png";
preload_partial = new Image();
preload_partial.src = "{/literal}{$imagecdn}{literal}images/icons/jff/Rating_Star_HALF.png";
preload_empty = new Image();
preload_empty.src = "{/literal}{$imagecdn}{literal}images/icons/jff/Rating_Star_EMPTY.png";
function rating_over(rating) {
for(var x=1; x<=5; x++) {
if(x <= rating) {
$('rate_'+x).src = preload_full.src;
} else {
$('rate_'+x).src = preload_empty.src;
}
}
}
function rating_out() {
for(var x=1; x<=5; x++) {
if(x <= {/literal}{$video_info.video_rating_full}{literal}) {
$('rate_'+x).src = preload_full.src;
} else if({/literal}{$video_info.video_rating_part}{literal} != 0 && x == {/literal}{math equation='x+1' x=$video_info.video_rating_full}{literal}) {
$('rate_'+x).src = preload_partial.src;
} else {
$('rate_'+x).src = preload_empty.src;
}
}
}
function rate(rating) {
$('video_rating').onmouseout = null;
var request = new Request.JSON({
'url' : 'video.php',
'method' : 'post',
'secure' : false,
'data' : {
'task' : 'rate_do',
'user' : '{/literal}{$owner->user_info.user_username}{literal}',
'video_id' : '{/literal}{$video_info.video_id}{literal}',
'rating' : rating
},
'onComplete' : function(responseObject, responseText)
{
rating_result(responseObject);
}
});
request.send();
}
function rating_result(rating) {
$('rating_total').innerHTML = rating.rating_total;
for(var x=1; x<=5; x++) {
if(x <= rating.rating_full) {
$('rate_'+x).src = preload_full.src;
if(!rating.allowed_to_rate) { $('rate_'+x).onmouseover = null; $('rate_'+x).onclick = null; }
} else if(rating.rating_part != 0 && x == rating.rating_full+1) {
$('rate_'+x).src = preload_partial.src;
if(!rating.allowed_to_rate) { $('rate_'+x).onmouseover = null; $('rate_'+x).onclick = null; }
} else {
$('rate_'+x).src = preload_empty.src;
if(!rating.allowed_to_rate) { $('rate_'+x).onmouseover = null; $('rate_'+x).onclick = null; }
}
}
if(!rating.allowed_to_rate) { $('video_rating').onmouseout = null; }
}
//-->
</script>
{/literal}
{/if}
{* SHOW STATS *}
{assign var="uploaddate" value=$datetime->time_since($video_info.video_datecreated)}
{capture assign="uploaded"}{lang_sprintf id=$uploaddate[0] 1=$uploaddate[1]}{/capture}
<div class='blogofloat'><a href="javascript:void(0);" onclick="likecontent('videos', '{$video_info.video_id}', 'blogomedia', '{$owner->user_info.user_id}', '{$owner->user_info.user_username}');" class="hoverme">
<img id="blogomedia" class="blogo {if $likedmedia==1}liked{/if}" src="{$imagecdn}images/clearblogo.png"><br><span id="liketext">Like{if $likedmedia==1}d{/if}</span> it</a></div>
<div class="blogocommentfloat"><a href="#{$owner->user_info.user_username}_profile_comments">
<img src="{$imagecdn}images/icons/jff/Comment_Bubble_FULL.png"><br>Comment</a></div>
<div class="blogocommentfloat"><a data-toggle="modal" data-target="#myModal" href="user_list.php?{$smarty.server.QUERY_STRING}&type=video">
<img src="{$imagecdn}images/icons/jff/AddToList.png"><br>Add to List</a></div>
{if $owner->profile_info.profilevalue_34!="" && $video_info.jff==1 &&($owner->user_info.user_level_id==2||$owner->user_info.user_level_id==8)}
<div class="blogocommentfloat">
<div class="followcreator">
<a href="https://justfor.fans/{$owner->profile_info.profilevalue_34}?AffiliateID=137299" target="_blank"><img class="CC_logo" src="/sam/cc_banner/images/Content_creator_logo_orange-01.svg" alt="">Follow Creator</a>
</div>
</div>
{/if}
<div class="pull-right flagreport" style='padding-top: 5px;'>
<a style="font-size:15px;" data-toggle="modal" data-target="#myModal" href="/user_report.php?return_url={$url->url_current()|escape:url}&user={$owner->user_info.user_username}&item=media&objectid={$video_info.video_id}"><img src='{$imagecdn}images/icons/jff/Report_Flag_FULL.png' border='0'></a><br>
Report
</div>
<div style='clear: both; height: 0px;'></div>
</div>
</div>
</div>
<br>
{* COMMENTS *}
{lang_javascript ids=39,155,175,182,183,184,185,187,784,787,829,830,831,832,833,834,835,854,856,891,1025,1026,1032,1034,1071}
{* RIGHT COLUMN - USER'S OTHER VIDEOS *}
</div>
<div class="col-md-8 nopadding">
<div class="videoabout">
<div class='videoaboutheader'>About</div>
<div >
<div style="margin-bottom:20px;">{$video_info.video_desc}</div>
{if SE_DEBUG1 || SE_DEBUG2}
<div class="tags-input " style="margin-bottom:20px;">
{foreach from=$interests item=item}
<a href="interests.php?tag={$item.name}" class="tag">{$item.name}</a>
{/foreach}
</div>
{/if}
Uploaded by <a href="profile.php?user={$owner->user_info.user_username}">{$owner->user_info.user_username}</a>
{lang_sprintf id=5500024 1=$uploaded}<br>
{lang_sprintf id=5500037 1=$video_info.video_rating_total}<br>
{lang_sprintf id=5500038 1=$video_info.video_views}<br>
Comments: <span class="tc" id="totalcomments">{$total_comments|default:0}</span> <br>
<a href="javascript:void(0);" onclick="showthelikes();" data-toggle="modal" data-target="#myModal">Likes: <span id="blogomedialikes">{$total_likes|default:0}</span></a><br>
{if $tagged!=""}Members in this video: {$tagged}{/if}
</div>
</div>
<div id='videoTabFrame' class="visible-sm visible-xs hidden-md hidden-lg">
<div class='header'>More from {$owner->user_displayname_short} ({$total_videos})</div>
<div class='video_box' style='margin-bottom: 10px; padding-bottom: 10px;'>
{* LOOP THROUGH USER VIDEOS *}
{section name=video_loop loop=$videos}
{* ENSURE VIDEO TITLE ISN'T BLANK *}
{if $videos[video_loop].video_title == ""}{capture assign="video_title"}{lang_print id=589}{/capture}{else}{assign var="video_title" value=$videos[video_loop].video_title}{/if}
<div class='albums_browse_item1 albums_browse_item1_margin'>
<div class="albums_browse_item1_img">
<a href='{$url->url_create("video", $videos[video_loop].video_author->user_info.user_username, $videos[video_loop].video_id)}' style="position:relative;height: 100%; display: block;"><img src='{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$videos[video_loop].video_dir}{$videos[video_loop].video_id}_thumb.jpg' onerror="this.src='{$imagecdn}images/video_placeholder.gif'" border='0' class="hover videothumbnails">
<span style="position: absolute;right: -1px;bottom: 0px;background: black;padding: 5px; color:white;">{$videos[video_loop].video_duration_in_min}</span>
</a>
</div>
<div style='font-weight: bold; font-size: 13px; margin-top:5px;'><a href='{$url->url_create("video", $videos[video_loop].video_author->user_info.user_username, $videos[video_loop].video_id)}'>{$video_title|truncate:33:'...':true}</a></div>
<div style='font-weight: bold; font-size: 10px; margin-top:5px;'><a href="profile.php?user={$videos[video_loop].video_author->user_info.user_username}">{$videos[video_loop].video_author->user_info.user_displayname}</a> <div class="pull-right" style="font-size: 10px; font-weight:normal;">
{$videos[video_loop].video_views} view{if $videos[video_loop].video_views!=1}s{/if}
</div></div>
</div>
{/section}
</div>
</div>
{if $allowed_to_comment}
<div id="profile_{$video_info.video_id}_postcomment">
{if $user->user_points > 3}
<form action="#" method="post" onsubmit="submitcommentform(); return updatecount();" id="commentform"><div class="profile_postcomment"><textarea name="comment_body" id="comment_body" cols="25" class="comment_area" style="overflow: hidden; height: 70px;" placeholder="Write Something..."></textarea><div style="margin-top: 5px;">Allowed HTML Tags: b, a, br</div><div style="text-align: right; margin-top: 5px;">
<input type="submit" id="comment_submit" class="button" value="Post Comment" />
<input type="hidden" name="task" id="task" value="comment_post"><input type="hidden" name="type" id="type" value="video"><input type="hidden" name="iden" id="iden" value="video_id"><input type="hidden" name="value" id="value" value="{$video_info.video_id}"><input type="hidden" name="user" id="user" value="{$owner->user_info.user_username}"><input type="hidden" name="tab" id="tab" value="videos"><input type="hidden" name="col" id="col" value="video"></div><div id="comment_error" style="color: #FF0000; display: none;"></div></div></form>
{/if}
</div>{/if}
<div id="{$owner->user_info.user_username}_profile_comments" style='margin-left: auto; margin-right: auto;'></div>
</div>
<div class="col-md-3 nopadding pull-right-lg">
<div id='videoTabFrame' class="hidden-sm visible-md visible-lg">
<div class='header'>More from {$owner->user_displayname_short} ({$total_videos})</div>
<div class='video_box' style='margin-bottom: 10px; padding-bottom: 10px; height: 395px; overflow: auto;'>
{* LOOP THROUGH USER VIDEOS *}
{section name=video_loop loop=$videos}
{* ENSURE VIDEO TITLE ISN'T BLANK *}
{if $videos[video_loop].video_title == ""}{capture assign="video_title"}{lang_print id=589}{/capture}{else}{assign var="video_title" value=$videos[video_loop].video_title}{/if}
<div class='albums_browse_item1 albums_browse_item1_margin'>
<div class="albums_browse_item1_img">
<a href='{$url->url_create("video", $videos[video_loop].video_author->user_info.user_username, $videos[video_loop].video_id)}' style="position:relative;height: 100%; display: block;"><img src='{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$videos[video_loop].video_dir}{$videos[video_loop].video_id}_thumb.jpg' onerror="this.src='{$imagecdn}images/video_placeholder.gif'" border='0' class="hover videothumbnails">
<span style="position: absolute;right: -1px;bottom: 0px;background: black;padding: 5px; color:white;">{$videos[video_loop].video_duration_in_min}</span>
</a>
</div>
<div style='font-weight: bold; font-size: 13px; margin-top:5px;'><a href='{$url->url_create("video", $videos[video_loop].video_author->user_info.user_username, $videos[video_loop].video_id)}'>{$video_title|truncate:33:'...':true}</a></div>
<div style='font-weight: bold; font-size: 10px; margin-top:5px;'><a href="profile.php?user={$videos[video_loop].video_author->user_info.user_username}">{$videos[video_loop].video_author->user_info.user_displayname}</a> <div class="pull-right" style="font-size: 10px; font-weight:normal;">
{$videos[video_loop].video_views} view{if $videos[video_loop].video_views!=1}s{/if}
</div></div>
</div>
{/section}
</div>
</div>
</div>
{/if}
{literal}
<script type="text/javascript" src="/js/jquery.autogrow-textarea.js"></script>
<script type="text/javascript">
function supports_h264_baseline_video() {
//if (!supports_video()) { return false; }
var v = document.createElement("video");
if(v.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"')=="probably")
{
return true;
}
return false;
}
jQuery(function() {
jQuery('#comment_body').autogrow();
});
jQuery(document).ready(function() {
loadXMLDoc(1);
var v = document.createElement("video"); // Check if the browser supports the video tag
});</script>
<script>
function loadXMLDoc(page)
{
/*
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("{/literal}{$owner->user_info.user_username}_profile_comments{literal}").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","{/literal}grabprofilecomments.php?user={$owner->user_info.user_username}&url={$smarty.server.PHP_SELF}{if $smarty.server.QUERY_STRING!=""}?{$smarty.server.QUERY_STRING|urlencode}{/if}&p="+page+"&type=video&focus=video_id&video_id={$video_info.video_id}{literal}",true);
xmlhttp.send();
*/
jQuery("#{/literal}{$owner->user_info.user_username}_profile_comments{literal}").load("{/literal}grabprofilecomments.php?user={$owner->user_info.user_username}&url={$smarty.server.PHP_SELF}{if $smarty.server.QUERY_STRING!=""}?{$smarty.server.QUERY_STRING|urlencode}{/if}&p="+page+"&type=video&focus=video_id&video_id={$video_info.video_id}{literal}", function(responseTxt, statusTxt, xhr){
if(xhr.state() == "resolved"){
// alert(statusTxt);
}
else
{
e.preventdefault();
return;
}
});
}
</script>
<script type="text/javascript">
var video_id = 0;
/*jQuery('#ajaxframe').load(function(){
//loadXMLDoc(1);
//document.getElementById('comment_body').value="";
});*/
function editComment1(commentID)
{
//var commentContainerElement = $(this.options.type + '_' + this.options.typeID + '_comments');
//var commentElement = commentContainerElement.getElement('profile_comment_body_' + commentID);
var commentElement = document.getElementById('profile_comment_body_' + commentID);
var height = commentElement.offsetHeight + 10;
var commentText = commentElement.innerHTML.replace(/<br>/gi, '\r\n').replace(/>/gi, '&gt;');
var innerHTML = '';
innerHTML += "<form action='misc_js.php' method='post' name='editCommentForm' id='editCommentForm'>";
innerHTML += "<textarea name='comment_edit' id='comment_edit_" + commentID + "' style='height: " + height +" px; width: 100%;' onblur='doCommentEditNew("+commentID+")'>" + commentText + "</textarea>";
innerHTML += "<input type='hidden' name='task' value='comment_edit'>";
innerHTML += "<input type='hidden' name='comment_id' value='" + commentID + "'>";
innerHTML += "<input type='hidden' name='type' value='video'>";
innerHTML += "<input type='hidden' name='iden' value='video_id'>";
innerHTML += "<input type='hidden' name='value' value='{/literal}{$video_info.video_id}{literal}'>";
innerHTML +=
'<input type="hidden" name="tab" value="users">';
innerHTML +=
'<input type="hidden" name="col" value="user">';
/* if( this.options.typeTabParent ) innerHTML +=
'<input type="hidden" name="tab_parent" value="' + this.options.typeTabParent + '">';
if( this.options.typeColParent ) innerHTML +=
'<input type="hidden" name="col_parent" value="' + this.options.typeColParent + '">';
if( this.options.typeChild ) innerHTML +=
'<input type="hidden" name="child" value="1">';
*/
innerHTML += "</form>";
// Inject
commentElement.innerHTML = innerHTML;
textarea_autogrow('comment_edit_' + commentID);
jQuery('#comment_edit_' + commentID).focus();
}
</script>
{/literal}
<div id='wholiked' style="display:none;">
<div class="modal-dialog"><button type="button" class="close main-bg-color alt-text-color orangebg" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button><div class="modal-content" style="text-align:left;">
Users who liked this video:<br>
{section name=like_loop loop=$likes}
<a href="profile.php?user={$likes[like_loop].user_username}">{$likes[like_loop].user_username}</a><br>
{/section}
<br />
<br />
</div></div>
</div><br>
<br>
<div class="clear clearfix"></div>
{include file='footer.tpl'}