Файл: content/themes/facebook/templates/ajax.posts.photos.tpl
Строк: 95
{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 mb10">
<a
href="{$SITE_URL}/photo/{$post.data.MediaID}/"
class="uiMediaThumb">
<i
style="background-image:
url("{$post.data.media.Thumbnail}");"></i>
</a>
<div
class="uiMediaInfo">
<span
class="title"><a
href="{$SITE_URL}/albums/photos/{$post.data.media.AlbumID}">{$translate->__("Wall
Photos")}</a></span><br />
<span class="description">1 {$translate->__("new
photo")}</span>
<i
class="arrow"></i>
</div>
</div>
<!-- Data -->
<!-- Statistics -->
{include
file='ajax.posts._statistics.tpl' _icon='app_photos' _url='photo'
_media=true}
<!-- Statistics -->
{else}
<!-- Data -->
<div
class="dataContent mb10">{$post.data.media.Text}</div>
<div class="dataContent mb10">
<a href="{$SITE_URL}/albums/photos/{$post.data.MediaID}"
class="uiAlbumThumb">
<span
class="uiAlbumThumbWrap">
<i {if
$post.data.media.ThumbnailID == 0}class="videoThumbnail"
style="background-image:
url("content/themes/default/images/misc/no_thumbnail.jpg");"{else}style="background-image:
url("{$post.data.media.Thumbnail}");"{/if}></i>
</span>
</a>
<div class="uiMediaInfo">
<span
class="title"><a
href="{$SITE_URL}/albums/photos/{$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 photos")}</span>
<i class="arrow"></i>
</div>
</div>
<!-- Data -->
<!-- Statistics -->
{include
file='ajax.posts._statistics.tpl' _icon='app_photos' _url='albums/photos'
_media=true}
<!-- Statistics -->
{/if}
<!-- 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 mb10">
<a
href="{$SITE_URL}/photo/{$post.data.MediaID}"
class="uiMediaThumb">
<i
style="background-image:
url("{$post.data.media.Thumbnail}");"></i>
</a>
<div
class="uiMediaInfo">
<span
class="title"><a
href="{$SITE_URL}/albums/photos/{$post.data.media.AlbumID}">{$translate->__("Wall
Photos")}</a></span><br />
<span class="description">1 {$translate->__("new
photo")}</span>
<i
class="arrow"></i>
</div>
</div>
<!-- Data -->
<!-- Statistics -->
{include
file='ajax.posts._statistics.tpl' _icon='app_photos' _url='photo'
_media=true}
<!-- Statistics -->
<!-- Comments -->
{include
file='ajax.posts.comments.tpl'}
<!-- Comments -->
</div>
<!-- Post -->
</div>
</li>
{/if}