File size: 846B
<!-- admin/snippetWallpaperCell -->
<a href="<?php echo Wallpaper::img($w,'o')?>" class="img_thumb" target="_blank"><img src="<?php echo Wallpaper::img($w,'thumb')?>" />
<br />
<?php echo View::escape($w->name)?>
</a>
<?php
// only owner, moderator or admin can edit/delete wallpaper
if(AuthUser::hasPermission(User::PERMISSION_USER,AuthUser::$user->id))
{
echo '<a href="#edit" class="edit button small" rel="'.$w->id.'">'.__('edit').'</a>
<a href="#delete" class="delete button small red" rel="'.$w->id.'">'.__('delete').'</a>';
}
// only moderator , admin can approve wallpaper
if(!$w->public && AuthUser::hasPermission(User::PERMISSION_MODERATOR))
{
echo '<a href="#approve" class="approve button small green" rel="'.$w->id.'">'.__('approve').'</a>';
}
?>
<!-- admin/snippetWallpaperCell END -->