<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("{$post.data.media.Thumbnail}");"></i>
<!-- Media Image -->
{if $userExist}
<!-- Buttons -->
<div
class="dataButtons hidden">
<div class="relative">
{if $post.UserID == $userArray.UserID}
<div title="Remove" class="button-close
doRemovePost"></div>
{else}
<div
title="Remove" class="{if $userArray.UserGroup <
3}button-edit{else}button-close{/if} closeNode"></div>
<div class="subMenu
closeMenu">
<ul>
<li><span class="menuItem doHidePost">Hide this
post</span></li>
<li><span class="menuItem doHideUser">Hide all
by {$post.UserFirstName}</span></li>
<li><span class="menuItem
doSpam">Mark as spam</span></li>
{if $userArray.UserGroup < 3}
<li
class="moderator"></li>
<li><span class="menuItem
doRemovePost">Delete this post</span></li>
{/if}
</ul>
</div>
{/if}
</div>
</div>
<!-- Buttons -->
{/if}
</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("content/themes/default/images/misc/no_thumbnail.jpg");"{else}style="background-image:
url("{$post.data.media.Thumbnail}");"{/if}></i>
</span>
<!-- Media Image -->
{if $userExist}
<!-- Buttons
-->
<div class="dataButtons
hidden">
<div
class="relative">
{if
$post.UserID == $userArray.UserID}
<div title="Remove" class="button-close
doRemovePost"></div>
{else}
<div
title="Remove" class="{if $userArray.UserGroup <
3}button-edit{else}button-close{/if} closeNode"></div>
<div class="subMenu
closeMenu">
<ul>
<li><span class="menuItem doHidePost">Hide this
post</span></li>
<li><span class="menuItem doHideUser">Hide all
by {$post.UserFirstName}</span></li>
<li><span class="menuItem
doSpam">Mark as spam</span></li>
{if $userArray.UserGroup < 3}
<li
class="moderator"></li>
<li><span class="menuItem
doRemovePost">Delete this post</span></li>
{/if}
</ul>
</div>
{/if}
</div>
</div>
<!-- Buttons -->
{/if}
</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("{$post.data.media.Thumbnail}");"></i>
<!-- Media Image -->
{if $userExist}
<!-- Buttons -->
<div
class="dataButtons hidden">
<div class="relative">
{if $post.UserID == $userArray.UserID}
<div title="Remove" class="button-close
doRemovePost"></div>
{else}
<div
title="Remove" class="{if $userArray.UserGroup <
3}button-edit{else}button-close{/if} closeNode"></div>
<div class="subMenu
closeMenu">
<ul>
<li><span class="menuItem doHidePost">Hide this
post</span></li>
<li><span class="menuItem doHideUser">Hide all
by {$post.UserFirstName}</span></li>
<li><span class="menuItem
doSpam">Mark as spam</span></li>
{if $userArray.UserGroup < 3}
<li
class="moderator"></li>
<li><span class="menuItem
doRemovePost">Delete this post</span></li>
{/if}
</ul>
</div>
{/if}
</div>
</div>
<i
class="plyrBtn"></i>
<!-- Buttons -->
{else}
<!-- Buttons -->
<i class="plyrBtn"></i>
<!-- Buttons -->
{/if}
</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("{if $post.data.media.ThumbnailID ==
0}{$SITE_URL}/content/themes/default/images/misc/no_thumbnail.jpg{else}{$post.data.media.Thumbnail}{/if}");"></i>
</span>
<!-- Media Image -->
{if $userExist}
<!-- Buttons
-->
<div class="dataButtons
hidden">
<div
class="relative">
{if
$post.UserID == $userArray.UserID}
<div title="Remove" class="button-close
doRemovePost"></div>
{else}
<div
title="Remove" class="{if $userArray.UserGroup <
3}button-edit{else}button-close{/if} closeNode"></div>
<div class="subMenu
closeMenu">
<ul>
<li><span class="menuItem doHidePost">Hide this
post</span></li>
<li><span class="menuItem doHideUser">Hide all
by {$post.UserFirstName}</span></li>
<li><span class="menuItem
doSpam">Mark as spam</span></li>
{if $userArray.UserGroup < 3}
<li
class="moderator"></li>
<li><span class="menuItem
doRemovePost">Delete this post</span></li>
{/if}
</ul>
</div>
{/if}
</div>
</div>
<i
class="plyrBtn"></i>
<!-- Buttons -->
{else}
<!-- Buttons -->
<i class="plyrBtn"></i>
<!-- Buttons -->
{/if}
</a>
{/if}
<!-- Videos App -->
{/if}
</div>
</td>
{if ($post@index+1)%3 ==
0}</tr><tr>{/if}
{/foreach}
</tr>
</table>
<!-- Pagination
-->
<div><div
class="right">{$pager}</div></div>
<!--
Pagination -->