985 lines
23 KiB
Smarty
985 lines
23 KiB
Smarty
{* $Id: album_file.tpl 240 2009-11-14 02:42:57Z phil $ *}
|
|
|
|
|
|
|
|
{* SET PAGE WIDTH *}
|
|
|
|
{assign var='page_width' value=$owner->level_info.level_album_width}
|
|
|
|
{assign var='menu_width' value=$page_width+32}
|
|
|
|
|
|
|
|
{literal}<script type="text/javascript">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function selectUsertotag(val) {
|
|
|
|
|
|
|
|
who=jQuery(".tags").val();
|
|
|
|
|
|
|
|
whoarray=who.split(",");
|
|
|
|
alreadyin=0;
|
|
|
|
for(var i = 0; i < whoarray.length; i++){
|
|
|
|
if(val==whoarray[i]){alreadyin=1;}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(alreadyin==0){
|
|
|
|
if(who==""){
|
|
|
|
jQuery(".tags").val(val);
|
|
|
|
}else{
|
|
|
|
|
|
|
|
|
|
|
|
jQuery(".tags").val(who+","+val);
|
|
|
|
}
|
|
|
|
jQuery(".toshowusers").append(val+"<br>");
|
|
|
|
}
|
|
|
|
who=jQuery(".tags").val();
|
|
|
|
whoarray1=who.split(",");
|
|
|
|
|
|
|
|
|
|
|
|
jQuery(".usersuggestions").hide();
|
|
|
|
|
|
|
|
|
|
|
|
jQuery(".tag").val("");
|
|
|
|
|
|
|
|
}
|
|
|
|
function showlikes(){
|
|
|
|
|
|
|
|
content=jQuery("#wholiked").html();
|
|
|
|
jQuery("#myModal").html(content);
|
|
|
|
jQuery(".modal-content").css("background", "black")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
function editVideo(id, title, desc, tags)
|
|
|
|
{
|
|
|
|
|
|
|
|
content=jQuery("#editvideo").html();
|
|
|
|
|
|
|
|
|
|
|
|
jQuery("#myModal").html(content);
|
|
|
|
jQuery(".modal-content").css("background", "black")
|
|
|
|
|
|
|
|
jQuery('form input').keydown(function (e) {
|
|
|
|
if (e.keyCode == 13) {
|
|
|
|
selectUsertotag(jQuery(".usersuggestions").val());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
e.preventDefault();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
jQuery(".tag").keyup(function(){
|
|
|
|
jQuery.ajax({
|
|
|
|
type: "POST",
|
|
|
|
url: "misc_js.php?task=find_users_to_tag&input="+jQuery(this).val(),
|
|
|
|
data:'input='+jQuery(this).val(),
|
|
|
|
beforeSend: function(){
|
|
|
|
//jQuery("#usersuggestions").css("background","#FFF url(LoaderIcon.gif) no-repeat 165px");
|
|
|
|
},
|
|
|
|
success: function(data){
|
|
|
|
//alert(jQuery(this).parent(".tagscontainer").);
|
|
|
|
|
|
|
|
jQuery(".usersuggestions").show();
|
|
|
|
jQuery(".usersuggestions").html(data);
|
|
|
|
//jQuery("tag").css("background","#FFF");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
</script>{/literal}
|
|
|
|
<div class='albumimagecontainer'>
|
|
|
|
|
|
|
|
<div class='page_header'>
|
|
|
|
<a href='event.php?event_id={$event->event_info.event_id}'>{$event->event_info.event_title}</a> » {lang_print id=3000164}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{* SET MEDIA PATH *}
|
|
|
|
{assign var='media_dir' value=$event->event_dir($event->event_info.event_id)}
|
|
|
|
{assign var='media_path' value="`$media_dir``$media_info.eventmedia_id`.`$media_info.eventmedia_ext`"}
|
|
{if $media_info.cloud==1}
|
|
{assign var='media_path' value="`$imagecdn1``$media_dir``$media_info.eventmedia_id`.`$media_info.eventmedia_ext`"}
|
|
{else}
|
|
{assign var='media_path' value="`$imagecdn``$media_dir``$media_info.eventmedia_id`.`$media_info.eventmedia_ext`"}
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{* DISPLAY IMAGE *}
|
|
|
|
{if $media_info.eventmedia_ext == "jpg" ||
|
|
|
|
$media_info.eventmedia_ext == "jpeg" ||
|
|
|
|
$media_info.eventmedia_ext == "gif" ||
|
|
|
|
$media_info.eventmedia_ext == "png" ||
|
|
|
|
$media_info.eventmedia_ext == "bmp"||
|
|
|
|
$media_info.eventmedia_ext == "JPG" ||
|
|
|
|
$media_info.eventmedia_ext == "JPEG" ||
|
|
|
|
$media_info.eventmedia_ext == "GIF" ||
|
|
|
|
$media_info.eventmedia_ext == "PNG" ||
|
|
|
|
$media_info.eventmedia_ext == "BMP"
|
|
|
|
}
|
|
|
|
{assign var='file_src' value="<img src='`$media_path`' id='media_photo' class='img-responsive center-block' border='0'>"}
|
|
|
|
{assign var='is_image' value=true}
|
|
|
|
|
|
|
|
{* DISPLAY AUDIO *}
|
|
|
|
{elseif $media_info.eventmedia_ext == "mp3" ||
|
|
|
|
$media_info.eventmedia_ext == "mp4" ||
|
|
|
|
$media_info.eventmedia_ext == "wav"}
|
|
|
|
{capture assign='media_download'}[ <a href='{$media_path}'>{lang_print id=3000180}</a> ]{/capture}
|
|
|
|
{assign var='file_src' value="<a href='`$media_path`'><!--<img src='./images/icons/audio_big.gif' border='0'>--></a>"}
|
|
|
|
{assign var='is_image' value=false}
|
|
|
|
|
|
|
|
{* DISPLAY WINDOWS VIDEO *}
|
|
|
|
{elseif $media_info.eventmedia_ext == "mpeg" ||
|
|
|
|
$media_info.eventmedia_ext == "mpg" ||
|
|
|
|
$media_info.eventmedia_ext == "mpa" ||
|
|
|
|
$media_info.eventmedia_ext == "avi" ||
|
|
|
|
$media_info.eventmedia_ext == "ram" ||
|
|
|
|
$media_info.eventmedia_ext == "rm"}
|
|
|
|
{capture assign='media_download'}[ <a href='{$media_path}'>{lang_print id=3000180}</a> ]{/capture}
|
|
|
|
{assign var='file_src' value="
|
|
|
|
<object id='video'
|
|
|
|
classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'
|
|
|
|
type='application/x-oleobject'>
|
|
|
|
<param name='url' value='`$media_path`'>
|
|
|
|
<param name='sendplaystatechangeevents' value='True'>
|
|
|
|
<param name='autostart' value='true'>
|
|
|
|
<param name='autosize' value='true'>
|
|
|
|
<param name='uimode' value='mini'>
|
|
|
|
<param name='playcount' value='9999'>
|
|
|
|
</OBJECT>
|
|
|
|
"}
|
|
|
|
{assign var='is_image' value=false}
|
|
|
|
|
|
|
|
{* DISPLAY QUICKTIME FILE *}
|
|
|
|
{elseif $media_info.eventmedia_ext == "mov" ||
|
|
|
|
$media_info.eventmedia_ext == "moov" ||
|
|
|
|
$media_info.eventmedia_ext == "movie" ||
|
|
|
|
$media_info.eventmedia_ext == "qtm" ||
|
|
|
|
$media_info.eventmedia_ext == "qt"}
|
|
|
|
{capture assign='media_download'}[ <a href='{$media_path}'>{lang_print id=3000180}</a> ]{/capture}
|
|
|
|
{assign var='file_src' value="
|
|
|
|
<embed src='`$media_path`' controller='true' autosize='1' scale='1' width='550' height='350'>
|
|
|
|
"}
|
|
|
|
{assign var='is_image' value=false}
|
|
|
|
{* DISPLAY UNKNOWN FILETYPE *}
|
|
|
|
{else}
|
|
|
|
{capture assign='media_download'}[ <a href='{$media_path}'>{lang_print id=3000180}</a> ]{/capture}
|
|
|
|
{assign var='file_src' value="<a href='`$media_path`'><!--<img src='./images/icons/file_big.gif' border='0'>--></a>"}
|
|
|
|
{assign var='is_image' value=false}
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
{* ASSIGN INDICES *}
|
|
|
|
{assign var="current_index" value=$media_info.eventmedia_id|array_search:$media_keys}
|
|
|
|
{capture assign="previous_index"}{if $current_index == 0}{math equation="x-1" x=$media|@count}{else}{math equation="x-1" x=$current_index}{/if}{/capture}
|
|
|
|
{capture assign="next_index"}{if $current_index+1 == $media|@count}0{else}{math equation="x+1" x=$current_index}{/if}{/capture}
|
|
|
|
{capture assign="current_num"}{math equation="x+1" x=$current_index}{/capture}
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{* SHOW PAGE NAVIGATION *}
|
|
|
|
<div style='margin-bottom: 6px;'>
|
|
|
|
<table cellpadding='0' cellspacing='0' width='100%'>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
{lang_sprintf id=3000181 1=$current_num 2=$media|@count 3="event.php?event_id=`$event->event_info.event_id`&v=photos" 4=$event->event_info.event_title}
|
|
|
|
</td>
|
|
|
|
<td style='text-align: right;'>
|
|
|
|
<a href='javascript:void(0);' onclick="loadalbumfile('{$event->event_info.event_id}', '{$media_keys.$previous_index}');" id="prevlink">Previous</a>
|
|
|
|
|
|
|
|
<a href='javascript:void(0);' onclick="loadalbumfile('{$event->event_info.event_id}', '{$media_keys.$next_index}');" id="nextlink">{lang_print id=1000147}</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{* SHOW IMAGE *}
|
|
|
|
<div class='media' style="text-align:center;">
|
|
|
|
|
|
|
|
|
|
|
|
{* CREATE WRAPPER DIV *}
|
|
|
|
<div id='media_photo_div' class='media_photo_div' style="display:inline-block">
|
|
|
|
|
|
|
|
{* DISPLAY FILE/IMAGE *}
|
|
<figure class="showfullimage">
|
|
<a href='javascript:void(0);' onclick="loadalbumfile('{$event->event_info.event_id}', '{$media_keys.$next_index}');" id="nextlink">{$file_src}</a>
|
|
{if $media_info.ai==1}<figcaption class="aigenerated"><table><tr><td style="width:15px; vertical-align:top;"><i class="fa-light fa-microchip-ai" style="font-size:15px; margin-right:10px;"></i></td><td>This media may have been generated or manipulated using AI, and may not depict a real person or event.</td></tr></table></figcaption>{/if}
|
|
</figure>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{* SHOW MEDIA DOWNLOAD LINK FOR NON-IMAGES *}
|
|
|
|
{if $media_download != ""}
|
|
|
|
<div style='font-weight: bold; margin-left: auto; margin-right: auto;'>{$media_download}</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{* SHOW DIV WITH TITLE, DESC, TAGS, ETC *}
|
|
|
|
<div class='album_media_caption' >
|
|
|
|
|
|
|
|
|
|
|
|
<div class='album_media_date pull-left'>
|
|
|
|
{assign var="uploaddate_vars" value=$datetime->time_since($media_info.eventmedia_date)}
|
|
|
|
{capture assign="uploaddate"}{lang_sprintf id=$uploaddate_vars[0] 1=$uploaddate_vars[1]}{/capture}
|
|
|
|
{if $media_info.uploader->user_exists}
|
|
|
|
{lang_sprintf id=3000187 1=$uploaddate 2=$url->url_create("profile", $media_info.uploader->user_info.user_username) 3=$media_info.uploader->user_displayname}
|
|
|
|
{else}
|
|
|
|
{lang_sprintf id=3000188 1=$uploaddate}
|
|
|
|
{/if}<br>
|
|
|
|
{$media_info.views} views
|
|
|
|
</div>
|
|
|
|
<div class='album_media_date pull-right text-right'>
|
|
|
|
{if $media_info.eventmedia_user_id != $user->user_info.user_id}
|
|
|
|
|
|
|
|
<a style="font-size:15px;" data-toggle="modal" data-target="#myModal" href="/user_report.php?return_url={$url->url_current()|escape:url}&user={$media_info.uploader->user_info.user_username}&item=media&objectid={$media_info.eventmedia_id}">⚑</a>
|
|
|
|
{*<a data-toggle="modal" data-target="#myModal" href="user_report.php?return_url={$url->url_current()|escape:url}">{lang_print id=1221}</a>*}<br>{/if}
|
|
|
|
|
|
|
|
{if $event->user_rank == 3}<a href="event.php?event_id={$event->event_info.event_id}&task=make_photo&media_id={$media_info.eventmedia_id}">Make Event Photo</a> - {/if}
|
|
|
|
{if $event->user_rank==3 || ($media_info.uploader->user_exists && $media_info.eventmedia_user_id == $user->user_info.user_id)}
|
|
|
|
|
|
|
|
<a href="/user_event_photos.php?task=edit&media_id={$media_info.eventmedia_id}&event_id={$event->event_info.event_id}" data-toggle="modal" data-target="#myModal">{lang_print id=2000285}</a>
|
|
|
|
|
|
|
|
-
|
|
|
|
<a href='javascript:void(0);' onClick="opendivmodal('confirmdelete');">{lang_print id=3000190}</a>
|
|
|
|
{/if}
|
|
|
|
</div><div class="clearfix"></div>
|
|
|
|
{if $media_info.eventmedia_title != ""}<div class='album_media_title'>{$media_info.eventmedia_title}</div>{/if}
|
|
|
|
{if $media_info.eventmedia_desc != ""}<div>{$media_info.eventmedia_desc}</div>{/if}
|
|
|
|
<br>
|
|
|
|
<div class="pull-left"><a href="javascript:void(0);" onclick="likecontent('eventmedia', '{$media_info.eventmedia_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="images/clearblogo.png"> <span id="liketext">Like{if $likedmedia==1}d{/if}</span></a></div><div class="pull-right">
|
|
|
|
<a href="javascript:void(0);" onclick="showthelikes();" data-toggle="modal" data-target="#myModal"><span id="blogomedialikes">{$total_likes|default:0}</span> Likes</a> | <a href="#"><span class="tc" id="totalcomments">{$media_info.eventmedia_totalcomments|default:0}</span> Comments</a>
|
|
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
|
|
|
<div>{if $tagged!=""}Members in this photo: {$tagged}{/if}</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{if $event->user_rank==3 || ($media_info.uploader->user_exists && $media_info.uploader->user_info.user_id == $user->user_info.user_id)}
|
|
|
|
{* JAVASCRIPT FOR CONFIRMING DELETION *}
|
|
|
|
<script type="text/javascript">
|
|
|
|
<!--
|
|
|
|
function deleteTopic()
|
|
|
|
{ldelim}
|
|
|
|
var querySeperator = '&'; //( SocialEngine.Core.settings.setting_url ? '?' : '&' );
|
|
|
|
window.location = SocialEngine.URL.url_create('event_media', null, '{$event->event_info.event_id}', '{$media_info.eventmedia_id}') + querySeperator + 'task=media_delete';
|
|
|
|
{rdelim}
|
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{* HIDDEN DIV TO DISPLAY CONFIRMATION MESSAGE *}
|
|
|
|
<div style='display: none;' id='confirmdelete'>
|
|
|
|
<div style='margin-top: 10px;'>
|
|
|
|
{lang_print id=3000191}
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<input type='button' class='button' value='{lang_print id=175}' onClick='closemodal();parent.deleteTopic();'> <input type='button' class='button' value='{lang_print id=39}' onClick='closemodal();'>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{* HIDDEN DIV TO DISPLAY EDIT DETAILS *}
|
|
|
|
<div id='editvideo' 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;">
|
|
|
|
<form action='{$url->url_create("event_media", NULL, $event->event_info.event_id, $media_info.eventmedia_id)}' method='post' target='_parent'>
|
|
|
|
<div style='margin-top: 10px;'>{lang_print id=3000192}</div>
|
|
|
|
<br />
|
|
|
|
{lang_print id=3000193}
|
|
|
|
<br />
|
|
|
|
<input type='text' class='text' name='eventmedia_title' value='{$media_info.eventmedia_title|escape:"quotes"}' maxlength='20'>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
{lang_print id=3000194}
|
|
|
|
<br />
|
|
|
|
<textarea name='eventmedia_desc' id='eventmedia_desc' rows='5' cols='35'>{$media_info.eventmedia_desc}</textarea>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<div class="tagscontainer">
|
|
|
|
<div class="toshowusers">{$media_info.media_tags}</div>
|
|
|
|
|
|
|
|
<div class="tagcontainer">Tag other members appearing in this photo:</div><div><input type="text" name="tag" id="tag" class="tag"><div class="usersuggestions"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<input type='hidden' name='tags' id='tags' class="tags" value=''>
|
|
|
|
|
|
|
|
</div><br>
|
|
|
|
<input type='submit' class='button' value='{lang_print id=173}'> <input type='button' class='button' value='{lang_print id=39}' onClick='closemodal();'>
|
|
|
|
<input type='hidden' name='task' value='media_edit'>
|
|
|
|
<input type='hidden' name='rem_event_id' value='{$event->event_info.event_id}'>
|
|
|
|
<input type='hidden' name='rem_eventmedia_id' value='{$media_info.eventmedia_id}'>
|
|
|
|
</form>
|
|
|
|
</div></div>
|
|
</div>
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
{* DIV FOR SHARE THIS WINDOW *}
|
|
|
|
<div style='display: none;' id='sharethis'>
|
|
|
|
<div style='margin: 10px 0px 10px 0px;'>{lang_print id=3000195}</div>
|
|
|
|
<div style='margin: 10px 0px 10px 0px; font-weight: bold;'>{lang_print id=3000196}</div>
|
|
|
|
<textarea readonly='readonly' onClick='this.select()' class='text' rows='2' cols='30' style='width: 95%; font-size: 9px;'>{$url->url_base}{$media_path|replace:"./":""}</textarea>
|
|
|
|
<div style='margin: 10px 0px 10px 0px; font-weight: bold;'>{lang_print id=3000197}</div>
|
|
|
|
<textarea readonly='readonly' onClick='this.select()' class='text' rows='2' cols='30' style='width: 95%; font-size: 9px;'><a href='{$url->url_base}{$media_path|replace:"./":""}'><img src='{$url->url_base}{$media_path|replace:"./":""}' border='0'></a></textarea>
|
|
|
|
<div style='margin: 10px 0px 10px 0px; font-weight: bold;'>{lang_print id=3000198}</div>
|
|
|
|
<textarea readonly='readonly' onClick='this.select()' class='text' rows='2' cols='30' style='width: 95%; font-size: 9px;'><a href='{$url->url_base}{$media_path|replace:"./":""}'>{if $media_info.eventmedia_title != ""}{$media_info.eventmedia_title}{else}{lang_print id=589}{/if}</a></textarea>
|
|
|
|
<div style='margin: 10px 0px 10px 0px; font-weight: bold;'>{lang_print id=3000199}</div>
|
|
|
|
<textarea readonly='readonly' onClick='this.select()' class='text' rows='2' cols='30' style='width: 95%; font-size: 9px;'>[url={$url->url_base}{$media_path|replace:"./":""}][img]{$url->url_base}{$media_path|replace:"./":""}[/img][/url]</textarea>
|
|
|
|
<div style='margin-top: 10px;'>
|
|
|
|
<input type='button' class='button' value='{lang_print id=3000200}' onClick='closemodal();'>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{* TAGGING *}
|
|
|
|
{lang_javascript ids=39,1212,1213,1214,1215,1228}
|
|
|
|
|
|
{*
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
SocialEngine.EventMediaTag = new SocialEngineAPI.Tags({ldelim}
|
|
|
|
'canTag' : {if $allowed_to_tag}true{else}false{/if},
|
|
|
|
|
|
|
|
'type' : 'event',
|
|
|
|
'media_id' : {$media_info.eventmedia_id},
|
|
|
|
'media_dir' : '{$media_dir}',
|
|
|
|
|
|
|
|
'object_owner' : 'event',
|
|
|
|
'object_owner_id' : {$event->event_info.event_id},
|
|
|
|
|
|
|
|
'ajaxURL' : SocialEngine.URL.url_base + 'misc_js.php'
|
|
|
|
|
|
|
|
{rdelim});
|
|
|
|
|
|
|
|
SocialEngine.RegisterModule(SocialEngine.EventMediaTag);
|
|
|
|
|
|
|
|
{section name=tag_loop loop=$tags}
|
|
|
|
SocialEngine.EventMediaTag.insertTag('{$tags[tag_loop].eventmediatag_id}', '{if $tags[tag_loop].tagged_user->user_exists}{$url->url_create("profile", $tags[tag_loop].tagged_user->user_info.user_username)}{/if}', '{if $tags[tag_loop].tag_user->user_exists}{$tags[tag_loop].tagged_user->user_displayname}{else}{$tags[tag_loop].eventmediatag_text}{/if}', '{$tags[tag_loop].eventmediatag_x}', '{$tags[tag_loop].eventmediatag_y}', '{$tags[tag_loop].eventmediatag_width}', '{$tags[tag_loop].eventmediatag_height}', '{$tags[tag_loop].tagged_user->user_info.user_username}')
|
|
|
|
{/section}
|
|
|
|
|
|
|
|
// Backwards
|
|
|
|
function insertTag(tag_id, tag_link, tag_text, tag_x, tag_y, tag_width, tag_height, tagged_user)
|
|
|
|
{ldelim}
|
|
|
|
SocialEngine.EventMediaTag.insertTag(tag_id, tag_link, tag_text, tag_x, tag_y, tag_width, tag_height, tagged_user);
|
|
|
|
{rdelim}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
*}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div style="overflow:hidden;">
|
|
|
|
<table class="newalbumcarousel"><tr>
|
|
|
|
{foreach name=media_loop from=$media key=k item=v}
|
|
|
|
|
|
|
|
{* IF IMAGE, GET THUMBNAIL *}
|
|
|
|
{if $v.eventmedia_ext == "jpeg" || $v.eventmedia_ext == "jpg" || $v.eventmedia_ext == "gif" || $v.eventmedia_ext == "png" || $v.eventmedia_ext == "bmp"||$v.eventmedia_ext == "JPEG" || $v.eventmedia_ext == "JPG" || $v.eventmedia_ext == "GIF" || $v.eventmedia_ext == "PNG" || $v.eventmedia_ext == "BMP"}
|
|
|
|
{assign var='file_dir' value=$event->event_dir($v.eventalbum_event_id)}
|
|
{if $v.cloud==1}
|
|
{assign var='file_src' value="`$imagecdn1``$file_dir``$v.eventmedia_id`_thumb.`$v.eventmedia_ext`"}
|
|
{assign var='fallback' value="`$imagecdn1``$file_dir``$v.eventmedia_id`.`$v.eventmedia_ext`"}
|
|
{else}
|
|
{assign var='file_src' value="`$imagecdn``$file_dir``$v.eventmedia_id`_thumb.`$v.eventmedia_ext`"}
|
|
{assign var='fallback' value="`$imagecdn``$file_dir``$v.eventmedia_id`.`$v.eventmedia_ext`"}
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{* SET THUMB PATH FOR AUDIO *}
|
|
|
|
{elseif $v.eventmedia_ext == "mp3" || $v.eventmedia_ext == "mp4" || $v.eventmedia_ext == "wav"}
|
|
|
|
{assign var='file_src' value='./images/icons/audio_big.gif'}
|
|
|
|
{* SET THUMB PATH FOR VIDEO *}
|
|
|
|
{elseif $v.eventmedia_ext == "mpeg" || $v.eventmedia_ext == "mpg" || $v.eventmedia_ext == "mpa" || $v.eventmedia_ext == "avi" || $v.eventmedia_ext == "swf" || $v.eventmedia_ext == "mov" || $v.eventmedia_ext == "ram" || $v.eventmedia_ext == "rm"}
|
|
|
|
{assign var='file_src' value='./images/icons/video_big.gif'}
|
|
|
|
{* SET THUMB PATH FOR UNKNOWN *}
|
|
|
|
{else}
|
|
|
|
{assign var='file_src' value='./images/icons/file_big.gif'}
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{* SHOW THUMBNAILS *}
|
|
|
|
|
|
|
|
|
|
|
|
<td id='thumb{$smarty.foreach.media_loop.iteration}' class='carousel_item{if $v.eventmedia_id == $media_info.eventmedia_id}_active{/if}'><a href="javascript:void(0);" onclick="loadalbumfile('{$event->event_info.event_id}', '{$v.eventmedia_id}');"><img src='{$file_src}' onerror="this.src='{$imagecdn}/images/nophoto.png{ *$fallback *}';" border='0' style="width: 70px; height: 70px; object-fit: cover;" onClick='this.blur()'></a></td>
|
|
|
|
|
|
|
|
|
|
|
|
{/foreach}
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div style='margin-left: auto; margin-right: auto;'>
|
|
|
|
|
|
|
|
|
|
{* JAVASCRIPT FOR CAROUSEL *}
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
{* DISPLAY POST COMMENT BOX *}
|
|
|
|
<div style='margin-left: auto; margin-right: auto;'>
|
|
|
|
|
|
|
|
{* COMMENTS *}
|
|
|
|
{if $allowed_to_comment}
|
|
|
|
<div id="profile_{$video_info.video_id}_postcomment">
|
|
|
|
|
|
|
|
<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="eventmedia"><input type="hidden" name="iden" id="iden" value="eventmedia_id"><input type="hidden" name="value" id="value" value="{$media_info.eventmedia_id}"><input type="hidden" name="object_owner" id="object_owner" value="event"><input type="hidden" name="object_owner_id" id="object_owner_id" value="{$event->event_info.event_id}"><input type="hidden" name="tab" id="tab" value="eventmedia"><input type="hidden" name="col" id="col" value="eventmedia"><input type="hidden" name="tab_parent" id="tab_parent" value="eventalbums"><input type="hidden" name="col_parent" id="col_parent" value="eventalbum"><input type="hidden" name="child" id="child" value="1"></div><div id="comment_error" style="color: #FF0000; display: none;"></div></div></form>
|
|
|
|
|
|
|
|
|
|
|
|
</div>{/if}
|
|
|
|
|
|
|
|
<div id="event_profile_comments" style='margin-left: auto; margin-right: auto;'></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
mediaid={$media_info.eventmedia_id};
|
|
|
|
|
|
|
|
{literal}
|
|
|
|
jQuery(function() {
|
|
|
|
jQuery('#comment_body').autogrow();
|
|
|
|
});
|
|
|
|
jQuery(document).ready(function() {
|
|
|
|
|
|
|
|
loadXMLDoc(1);
|
|
|
|
|
|
|
|
{/literal}{if $user->user_info.user_level_id > 1&& $favorites==1}{literal}
|
|
|
|
if({/literal}{$favorites1}==1{literal})
|
|
|
|
{
|
|
|
|
jQuery(".addtofavorites").html({/literal}'<a href="/album_file.php?{$smarty.server.QUERY_STRING}&favorites=delete" onclick="return confirm(\'Are you sure you want to delete from favorites?\');">Delete from Favorites</a>'{literal});
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
jQuery(".addtofavorites").html({/literal}'<a href="/album_file.php?{$smarty.server.QUERY_STRING}&favorites=addto">Add to Favorites</a>'{literal});
|
|
|
|
|
|
|
|
}
|
|
|
|
{/literal}{/if}{literal}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</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>
|
|
|