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

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

<div onmouseover="keepCardVisible()" id="ItemCard">
	<div class="ucover" style="background-image: url(<?php echo $C->SITE_URL.$C->FOLDER_COVERS_PAGES?>min3/<?php echo $D->coverpage?>);"></div>
    <div>
    	<div class="uavatar"><img src="<?php echo $C->SITE_URL.$C->FOLDER_AVATAR_PAGES.'min1/'.(empty($D->avatarpage)?$C->AVATAR_DEFAULT_PAGE:$D->avatarpage)?>"></div>
        <div>
        	<?php if ($D->verifiedpage == 1) { ?><div style="float:right; margin-right:5px; margin-top:4px; "><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/userverified.png"></div><?php } ?>
    		<div class="unamelarge ellipsis"><?php echo $D->titlepage?></div>
            <div class="ucategory ellipsis"><?php echo $D->namecategory?></div>
            <div class="sh"></div>
        </div>
        <div class="sh"></div>
    </div>
    <div id="ubottom">
    	<span><span class="bold txtsize01"><?php echo $D->num_posts_page?></span> <span class="actions"><?php echo ($D->num_posts_page==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_likes_page?></span> <span class="actions"><?php echo ($D->num_likes_page==1?$this->lang('global_card_txt_like'):$this->lang('global_card_txt_likes'))?></span></span>
    </div>
	<div class="sh"></div>
</div>

<?php } else { ?>


<div onmouseover="keepCardVisible()" id="ItemCardNoCover">
	<div class="ucover"></div>
    <div>
    	<div class="uavatar"><img src="<?php echo $C->SITE_URL.$C->FOLDER_AVATAR_PAGES.'min1/'.(empty($D->avatarpage)?$C->AVATAR_DEFAULT_PAGE:$D->avatarpage)?>"></div>
        <div>
        	<?php if ($D->verifiedpage == 1) { ?><div style="float:right; margin-right:5px; margin-top:4px; "><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/userverified.png"></div><?php } ?>
    		<div class="unamelarge ellipsis"><?php echo $D->titlepage?></div>
            <div class="ucategory ellipsis"><?php echo $D->namecategory?></div>
            <div class="sh"></div>
        </div>
        <div class="sh"></div>
    </div>
    <div id="ubottom">
    	<span><span class="bold txtsize01"><?php echo $D->num_posts_page?></span> <span class="actions"><?php echo ($D->num_posts_page==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_likes_page?></span> <span class="actions"><?php echo ($D->num_likes_page==1?$this->lang('global_card_txt_like'):$this->lang('global_card_txt_likes'))?></span></span>
    </div>
	<div class="sh"></div>
</div>


<?php } ?>
</a>