<?php } ?> <?php } ?> <?php if (config::item('blacklist_active', 'users')) { // is user block feature enabled? ?> <?php if (users_helper::getBlockedUser($user['user_id'], true)) { // is this user blocked? ?> <li class="users_block"><?php echo html_helper::anchor('users/blocked/delete/' . $user['slug_id'], __('user_unblock', 'users'), array('data-html' => __('user_unblock?', 'users'), 'data-role' => 'confirm')); ?> </li> <?php } else { // this user is not blocked ?> <li class="users_block"><?php echo html_helper::anchor('users/blocked/add/' . $user['slug_id'], __('user_block', 'users'), array('data-html' => __('user_block?', 'users'), 'data-role' => 'confirm'));
echo html_helper::anchor('users/profile/picture/delete', __('picture_delete', 'users_picture'), array('data-role' => 'confirm', 'data-html' => __('picture_delete?', 'users_picture'), 'class' => 'users-picture-delete')); ?> </li> <?php } ?> </ul> </li> <?php } else { // this is someone else's profile ?> <?php if (!config::item('blacklist_active', 'users') || !users_helper::getBlockedUser($user['user_id'])) { // is this user not blocked? ?> <?php if (config::item('messages_active', 'messages')) { ?> <li><?php echo html_helper::anchor('messages/send/' . $user['slug_id'], __('message_send', 'users')); ?> </li> <?php } ?>