Beispiel #1
0
<li class="break-box break"></li>

<?php 
if (users_helper::isLoggedin() && $user['user_id'] != session::item('user_id')) {
    ?>

	<?php 
    if (config::item('friends_active', 'users')) {
        // is friends feature enabled?
        ?>

		<?php 
        if ($friend = users_helper::getFriend($user['user_id'], false)) {
            // is there a friend request?
            ?>

			<?php 
            if ($friend['active']) {
                // we are friends
                ?>

				<li  class="users_friends_delete"><?php 
                echo html_helper::anchor('users/friends/delete/' . $user['slug_id'], __('friend_delete', 'users'), array('data-html' => __('friend_delete?', 'users'), 'data-role' => 'confirm'));
                ?>
</li>

			<?php 
            }
            ?>

		<?php