Вход Регистрация
Файл: content/themes/facebook/templates/ajax.posts.media.tpl
Строк: 144
<table class="dataGrid"> <tr> {foreach
$posts as $post} <td> <div
class="dataContainer"
id="{$post.ID}-{$post.PostType}-{$post.PostID}-{$post.UserID}">
{if $app == "photos"}
<!-- Photos App -->
{if $post.data.IsAlbum == "N"} <a
href="{$SITE_URL}/photo/{$post.data.MediaID}"
class="uiMediaThumb">
<!-- Media Image -->
<i style="background-image:
url(&quot;{$post.data.media.Thumbnail}&quot;);"></i>
<!-- Media Image -->
<!-- Buttons -->
<div class="dataButtons hidden">
<div class="relative">
{if $post.UserID == $userArray.UserID}
<div
title="{$translate->__("Remove")}"
class="button-close doRemovePost"></div>
{else}
<div title="{$translate->__("Remove")}"
class="{if $userArray.UserGroup <
3}button-edit{else}button-close{/if} closeNode"></div>
<div class="subMenu
closeMenu">
<ul>
<li><span class="menuItem
doHidePost">{$translate->__("Hide this
post")}</span></li>
<li><span class="menuItem
doHideUser">{$translate->__("Hide all by")}
{$post.UserFirstName}</span></li>
<li><span class="menuItem
doSpam">{$translate->__("Mark as
spam")}</span></li>
{if $userArray.UserGroup < 3}
<li class="moderator"></li>
<li><span
class="menuItem doRemovePost">{$translate->__("Delete
this post")}</span></li>
{/if}
</ul> </div>
{/if}
</div> </div>
<!-- Buttons -->
</a> {else}
<a href="{$SITE_URL}/albums/photos/{$post.data.MediaID}"
class="uiAlbumThumb">
<!-- Media Image -->
<span class="uiAlbumThumbWrap">
<i {if $post.data.media.ThumbnailID ==
0}class="videoThumbnail" style="background-image:
url(&quot;content/themes/default/images/misc/no_thumbnail.jpg&quot;);"{else}style="background-image:
url(&quot;{$post.data.media.Thumbnail}&quot;);"{/if}></i>
</span>
<!-- Media Image -->
<!-- Buttons --> <div
class="dataButtons hidden">
<div class="relative">
{if $post.UserID == $userArray.UserID}
<div title="{$translate->__("Remove")}"
class="button-close doRemovePost"></div>
{else}
<div title="{$translate->__("Remove")}"
class="{if $userArray.UserGroup <
3}button-edit{else}button-close{/if} closeNode"></div>
<div class="subMenu
closeMenu">
<ul>
<li><span class="menuItem
doHidePost">{$translate->__("Hide this
post")}</span></li>
<li><span class="menuItem
doHideUser">{$translate->__("Hide all by")}
{$post.UserFirstName}</span></li>
<li><span class="menuItem
doSpam">{$translate->__("Mark as
spam")}</span></li>
{if $userArray.UserGroup < 3}
<li class="moderator"></li>
<li><span
class="menuItem doRemovePost">{$translate->__("Delete
this post")}</span></li>
{/if}
</ul> </div>
{/if}
</div> </div>
<!-- Buttons -->
</a> {/if}
<!-- Photos App -->
{elseif $app == "videos"}
<!-- Videos App --> {if
$post.data.IsAlbum == "N"} <a
href="{$SITE_URL}/video/{$post.data.MediaID}"
class="uiMediaThumb">
<!-- Media Image -->
<i class="videoThumbnail" style="background-image:
url(&quot;{$post.data.media.Thumbnail}&quot;);"></i>
<!-- Media Image -->
<!-- Buttons -->
<div class="dataButtons hidden">
<div class="relative">
{if $post.UserID == $userArray.UserID}
<div
title="{$translate->__("Remove")}"
class="button-close doRemovePost"></div>
{else}
<div title="{$translate->__("Remove")}"
class="{if $userArray.UserGroup <
3}button-edit{else}button-close{/if} closeNode"></div>
<div class="subMenu
closeMenu">
<ul>
<li><span class="menuItem
doHidePost">{$translate->__("Hide this
post")}</span></li>
<li><span class="menuItem
doHideUser">{$translate->__("Hide all by")}
{$post.UserFirstName}</span></li>
<li><span class="menuItem
doSpam">{$translate->__("Mark as
spam")}</span></li>
{if $userArray.UserGroup < 3}
<li class="moderator"></li>
<li><span
class="menuItem doRemovePost">{$translate->__("Delete
this post")}</span></li>
{/if}
</ul> </div>
{/if}
</div> </div>
<i class="plyrBtn"></i>
<!-- Buttons -->
</a> {else}
<a href="{$SITE_URL}/albums/videos/{$post.data.MediaID}"
class="uiAlbumThumb">
<!-- Media Image -->
<span class="uiAlbumThumbWrap">
<i class="videoThumbnail" style="background-image:
url(&quot;{if $post.data.media.ThumbnailID ==
0}{$SITE_URL}/content/themes/default/images/misc/no_thumbnail.jpg{else}{$post.data.media.Thumbnail}{/if}&quot;);"></i>
</span>
<!-- Media Image -->
<!-- Buttons --> <div
class="dataButtons hidden">
<div class="relative">
{if $post.UserID == $userArray.UserID}
<div title="{$translate->__("Remove")}"
class="button-close doRemovePost"></div>
{else}
<div title="{$translate->__("Remove")}"
class="{if $userArray.UserGroup <
3}button-edit{else}button-close{/if} closeNode"></div>
<div class="subMenu
closeMenu">
<ul>
<li><span class="menuItem
doHidePost">{$translate->__("Hide this
post")}</span></li>
<li><span class="menuItem
doHideUser">{$translate->__("Hide all by")}
{$post.UserFirstName}</span></li>
<li><span class="menuItem
doSpam">{$translate->__("Mark as
spam")}</span></li>
{if $userArray.UserGroup < 3}
<li class="moderator"></li>
<li><span
class="menuItem doRemovePost">{$translate->__("Delete
this post")}</span></li>
{/if}
</ul> </div>
{/if}
</div> </div>
<i class="plyrBtn"></i>
<!-- Buttons -->
</a> {/if}
<!-- Videos App -->
{/if} </div>
</td> {if ($post@index+1)%3 ==
0}</tr><tr>{/if} {/foreach}
</tr> </table> <!-- Pagination --> <div
class="appsFooter gray"> <div
class="right">{$pager}</div> </div> <!--
Pagination -->
Онлайн: 1
Реклама