<a href="<?php echo $C->SITE_URL.$D->urlgroup?>" class="undecorated">

<?php if (!empty($D->covergroup)) { ?>

<div onmouseover="keepCardVisible()" id="ItemCard">
	<div class="ucover" style="background-image: url(<?php echo $C->SITE_URL.$C->FOLDER_COVERS_GROUPS?>min3/<?php echo $D->covergroup?>);"></div>
    <div>
        <div>
    		<div class="unamelarge ellipsis centered"><?php echo $D->namegroup?></div>
            <div class="sh"></div>
        </div>
        <div class="sh"></div>
    </div>
    <div id="ubottom">
    	<span><span class="bold txtsize01"><?php echo $D->num_posts_group?></span> <span class="actions"><?php echo ($D->num_posts_group==1?$this->lang('global_card_txt_post'):$this->lang('global_card_txt_posts'))?></span></span>
        <span class="grey1"> &#8226; </span>
    	<span><span class="bold txtsize01"><?php echo $D->num_members?></span> <span class="actions"><?php echo ($D->num_members==1?$this->lang('global_card_txt_member'):$this->lang('global_card_txt_members'))?></span></span>
    </div>
	<div class="sh"></div>
</div>

<?php } else { ?>


<div onmouseover="keepCardVisible()" id="ItemCardNoCover">
	<div class="ucover"></div>
    <div>
        <div>
    		<div class="unamelarge ellipsis centered"><?php echo $D->namegroup?></div>
            <div class="sh"></div>
        </div>
        <div class="sh"></div>
    </div>
    <div id="ubottom">
    	<span><span class="bold txtsize01"><?php echo $D->num_posts_group?></span> <span class="actions"><?php echo ($D->num_posts_group==1?$this->lang('global_card_txt_post'):$this->lang('global_card_txt_posts'))?></span></span>
        <span class="grey1"> &#8226; </span>
    	<span><span class="bold txtsize01"><?php echo $D->num_members?></span> <span class="actions"><?php echo ($D->num_members==1?$this->lang('global_card_txt_member'):$this->lang('global_card_txt_members'))?></span></span>
    </div>
	<div class="sh"></div>
</div>


<?php } ?>
</a>