<?php if ($data->type == 7): ?>
    <a href="<?php echo $this->createUrl('/guild/view', array('id'=>$data->id_user));?>" class="block"><?php echo Guilds::getName($data->id_user); ?> [<?php echo $data->value; ?>]</a>
<?php else:?>
    <a href="<?php echo $this->createUrl('/user/index', array('id'=>$data->id_user));?>" class="block"><?php echo Users::getFullLogin($data->id_user); ?> [<?php echo $data->value; ?>]</a>
<?php endif; ?>