<?php
/**
 * @package     DART Creations
 * @subpackage  mod_whosonlinename
 *
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
?>
 <h4 style="margin-bottom:0; margin-top:0; font-size:100%;" class="control-sidebar-heading"><strong>Servidores Conectados</strong></h4>
<?php if ($showmode == 0 || $showmode == 2) : ?>
	<?php $guest = JText::plural('MOD_WHOSONLINENAME_GUESTS', $count['guest']); ?>
	<?php $member = JText::plural('MOD_WHOSONLINENAME_MEMBERS', $count['user']); ?>
	<p><?php echo JText::sprintf('MOD_WHOSONLINENAME_WE_HAVE', $guest, $member); ?></p>
<?php endif; ?>

<?php if (($showmode > 0) && count($names)) : ?>

	<?php if ($params->get('filter_groups')):?>
		
	<?php endif;?>
	<?php foreach ($names as $name) : ?>
	
					<span style="">• <?php $user = JFactory::getUser( $name->userid )->name; // get user's name for the user with the respective user ID
  echo $user ?></span><br />

	
	<?php endforeach;  ?>

<?php endif;
