Файл: content/themes/facebook/templates/ajax.posts.videos.tpl
Строк: 117
{if $method == "get"}
<!-- Avatar -->
{include file='ajax.posts._avatar.tpl'}
<!-- Avatar -->
<!-- Post -->
<div class="dataContentWrapper medium
ml10">
<!-- Buttons & UserName -->
<div class="dataContent mb5">
{include
file='ajax.posts._buttons.tpl'}
{include
file='ajax.posts._username.tpl'}
</div>
<!--
Buttons & UserName -->
{if $post.data.IsAlbum ==
"N"}
<!-- Data -->
<div class="dataContent
mb10">{$post.data.media.Text}</div>
<div
class="dataContent mediaPlayer mb10">
<a
class="uiMediaThumb playVideo">
<i
class="videoThumbnail" style="background-image:
url("{$post.data.media.Thumbnail}");"></i>
<i class="plyrBtn"></i>
</a>
<div
class="uiMediaInfo">
<span
class="title"><a
href="{$SITE_URL}/albums/videos/{$post.data.media.AlbumID}">{$translate->__("Wall
Videos")}</a></span><br />
<span class="description">1 {$translate->__("new
video")}</span>
<i
class="arrow"></i>
</div>
</div>
<div class="dataContent mb10
mediaPlayer hidden">
<div
class="uiVideoPlayer">
<div
class="button-close closeVideo right"></div>
{if $post.data.media.Type == "youtube"}
<embed width="430" height="279"
flashvars="width=430&height=279" wmode="opaque"
salign="tl" allowscriptaccess="never"
allowfullscreen="true" scale="scale"
quality="high" bgcolor="#000000"
src="http://www.youtube.com/v/{{$post.data.media.Source}}?version=3&autohide=1&autoplay=1"
type="application/x-shockwave-flash">
{elseif $post.data.media.Type == "vimeo"}
<iframe
src="http://player.vimeo.com/video/{$post.data.media.Source}"
width="430" height="279"
frameborder="0"></iframe>
{/if}
</div>
</div>
<!--
Data -->
<!-- Statistics -->
{include file='ajax.posts._statistics.tpl' _icon='app_videos'
_url='video' _media=true}
<!-- Statistics -->
{else}
<!-- Data -->
<div class="dataContent
mb10">{$post.data.media.Text}</div>
<div
class="dataContent mb10">
<a
href="{$SITE_URL}/albums/videos/{$post.data.MediaID}"
class="uiAlbumThumb">
<span
class="uiAlbumThumbWrap">
<i
class="videoThumbnail" style="background-image:
url("{if $post.data.media.ThumbnailID ==
0}content/themes/default/images/misc/no_thumbnail.jpg{else}{$post.data.media.Thumbnail}{/if}");"></i>
</span>
<i
class="plyrBtn"></i>
</a>
<div class="uiMediaInfo">
<span class="title"><a
href="{$SITE_URL}/albums/videos/{$post.data.MediaID}"
title="{$post.data.media.Title}">{$post.data.media.Title|truncate:25}</a></span><br
/>
<span
class="description">{$post.data.media.New}
{$translate->__("new videos")}</span>
<i class="arrow"></i>
</div>
</div>
<!-- Data -->
<!-- Statistics -->
{include
file='ajax.posts._statistics.tpl' _icon='app_videos' _url='albums/videos'
_media=true}
<!-- Statistics -->
{/if}
<!-- Data -->
<!-- Comments
-->
{include file='ajax.posts.comments.tpl'}
<!--
Comments -->
</div>
<!-- Post -->
{elseif $method == "post"}
<li class="hidden
firstNode" id="{$post.ID}"></li>
<li
class="feedItem">
<div
class="dataContainer"
id="{$post.ID}-{$post.PostType}-{$post.PostID}-{$userArray.UserID}">
<!-- Vote Box -->
{include
file='ajax.posts._votebox.tpl'}
<!-- Vote Box -->
<!-- Avatar -->
{include
file='ajax.posts._avatar.tpl'}
<!-- Avatar -->
<!-- Post -->
<div
class="dataContentWrapper medium ml10">
<!-- Buttons & UserName -->
<div
class="dataContent mb5">
{include
file='ajax.posts._buttons.tpl'}
{include
file='ajax.posts._username.tpl'}
</div>
<!-- Buttons & UserName -->
<!-- Data -->
<div class="dataContent
mb10">{$post.data.media.Text}</div>
<div
class="dataContent mediaPlayer mb10">
<a class="uiMediaThumb playVideo">
<i class="videoThumbnail" style="background-image:
url("{$post.data.media.Thumbnail}");"></i>
<i class="plyrBtn"></i>
</a>
<div
class="uiMediaInfo">
<span
class="title"><a
href="{$SITE_URL}/albums/videos/{$post.data.media.AlbumID}">{$translate->__("Wall
Videos")}</a></span><br />
<span class="description">1 {$translate->__("new
video")}</span>
<i
class="arrow"></i>
</div>
</div>
<div class="dataContent
mb10 mediaPlayer hidden">
<div
class="uiVideoPlayer">
<div
class="button-close closeVideo right"></div>
{if $post.data.media.Type == "youtube"}
<embed width="430" height="279"
flashvars="width=430&height=279" wmode="opaque"
salign="tl" allowscriptaccess="never"
allowfullscreen="true" scale="scale"
quality="high" bgcolor="#000000"
src="http://www.youtube.com/v/{{$post.data.media.Source}}?version=3&autohide=1&autoplay=1"
type="application/x-shockwave-flash">
{elseif $post.data.media.Type == "vimeo"}
<iframe
src="http://player.vimeo.com/video/{$post.data.media.Source}"
width="430" height="279"
frameborder="0"></iframe>
{/if}
</div>
</div>
<!-- Data -->
<!--
Statistics -->
{include
file='ajax.posts._statistics.tpl' _icon='app_videos' _url='video'
_media=true}
<!-- Statistics -->
<!-- Comments -->
{include
file='ajax.posts.comments.tpl'}
<!-- Comments -->
</div>
<!-- Post -->
</div>
</li>
{/if}