        	<div id="headerProfile">

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

               	
                <div id="coverProfile" style="background-position: center; background-image: url(<?php echo $C->SITE_URL.$C->FOLDER_COVERS_GROUPS?>min1/<?php echo $D->group->cover_group?>);">
                	<div>
	                    <a href="<?php echo $C->SITE_URL.$C->FOLDER_COVERS_GROUPS.$D->group->cover_group?>" id="coverProfileGroup"><div class="coverBorder"></div></a>
                    </div>
                    <div class="nameProfileGroup">
                        
                        <div><a href="<?php echo $C->SITE_URL.$D->group->url?>" class="undecorated"><div id="txtnameprofile"><?php echo $D->nameGroup ?></div></a></div>

                    </div>
                </div>
                

				<?php } else { ?>

                <div id="withoutCover">
                
                	<div class="nameProfileGroup">
                        
                        <div>
    
                            <a href="<?php echo $C->SITE_URL.$D->group->url?>" class="undecorated"><span id="txtnameprofile"><?php echo $D->nameGroup ?></span></a>

						</div>
                        
                    </div>
                </div>

                <?php } ?>
                
                <div id="infoProfile">
                	<div class="infoBar infoBarGroup">
                        <div class="opcsBar">
                        	<a href="<?php echo $C->SITE_URL.$D->group->url?>" class="opcOne undecorated">
                            <div id="numposts" class="basic-number"><?php echo $D->group->num_posts; ?></div>
                            <div class="txtminitop basic-text"><?php echo ($D->page->num_posts==1?$this->lang('profile_infobasic_post'):$this->lang('profile_infobasic_posts'))?></div>
                            <div class="icominitop"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/icomenuactivity20.png" title="<?php echo ($D->group->num_posts==1?$this->lang('profile_infobasic_post'):$this->lang('profile_infobasic_posts'))?>"></div>
                            </a>
                            <a href="<?php echo $C->SITE_URL.$D->group->url?>/members" class="opcOne undecorated">
                            <div id="nummembers" class="basic-number"><?php echo $D->group->num_members; ?></div>
                            <div class="txtminitop basic-text"><?php echo ($D->group->num_members==1?$this->lang('profile_infobasic_member'):$this->lang('profile_infobasic_members'))?></div>
                            <div class="icominitop"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/icodashboardfollowing.png" title="<?php echo ($D->group->num_members==1?$this->lang('profile_infobasic_member'):$this->lang('profile_infobasic_members'))?>"></div>
                            </a>

                            <span class="opcOneb undecorated">
                            <?php $this->load_template('__bjoin.php'); ?>
                            </span>
                            
                            <?php if ($D->membership == 1) { ?>
                            <span id="spaceFollow" class="opcOnec undecorated">
                            <?php $this->load_template('__bfollow-group.php'); ?>
                            </span>
                            <?php } ?>
                        	<div class="sh"></div>
                        </div>
	                	<div class="sh"></div>
                    </div>
                    
                </div>

            </div>
<script> 
	
	$("#coverProfileGroup").magnificPopup({
		type: 'image',
		closeOnContentClick: true,
		mainClass: 'mfp-img-mobile',
		image: {
		verticalFit: true
		}
	});
</script>
