<?php

if ($D->is_logged == 1) {
	$txtuser = '';
	if (empty($D->me->firstname)) $txtuser = $D->me->username;
	else $txtuser = $D->me->firstname . ' ' .$D->me->lastname;
	
	if (empty($D->me->avatar)) $txtavatar = 'default.jpg';
	else $txtavatar = $D->me->avatar;
}
?>
<div id="dashboard1">

  <div id="boxmenu">

        <div id="miniinfouser">
        	<div class="mavatar"><a href="<?php echo $C->SITE_URL.$D->me->username;?>"><img src="<?php echo $C->SITE_URL.$C->FOLDER_AVATAR.'min2/'.$txtavatar?>" class="thumbpfoto"/></a></div>
        	<div class="minfo linkdark"><a href="<?php echo $C->SITE_URL.$D->me->username;?>"><?php echo $txtuser?></a></div>
            <div class="sh"></div>
        </div>
        
        <div>
            <div class="menuglobal">
                <a href="<?php echo $C->SITE_URL?>dashboard">
                <div class="menuoption <?php echo($D->optionactive==1?'act':'inact')?>">
                    <div class="icopc"><span title="<?php echo $this->lang('dashboard_vmenu_opc_home');?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/iconewsfeed.png"></span></div>
                    <div class="txtopc"><?php echo $this->lang('dashboard_vmenu_opc_home');?></div>
                    <div class="sh"></div>
                </div>
                <div class="sh"></div>
                </a>
            </div>        
            

            
            <div class="menuglobal">
                <a href="<?php echo $C->SITE_URL?>dashboard/myposts">
                <div class="menuoption <?php echo($D->optionactive==9?'act':'inact')?>">
                    <div class="icopc"><span title="<?php echo $this->lang('dashboard_vmenu_opc_myposts');?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/icomyposts.png"></span></div>
                    <div class="txtopc"><?php echo $this->lang('dashboard_vmenu_opc_myposts');?></div>
                    <div class="sh"></div>
                </div>
                <div class="sh"></div>
                </a>
            </div>
            

            
                
            <div class="menuglobal">
                <a href="<?php echo $C->SITE_URL?>dashboard/myphotos">
                <div class="menuoption <?php echo($D->optionactive==3?'act':'inact')?>">
                    <div class="icopc"><span title="<?php echo $this->lang('dashboard_vmenu_opc_myphotos');?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/icomyphotos.png"></span></div>
                    <div class="txtopc"><?php echo $this->lang('dashboard_vmenu_opc_myphotos');?></div>
                    <div class="sh"></div>
                </div>
                <div class="sh"></div>
                </a>
            </div>
            

            
            <div class="menuglobal">
                <a href="<?php echo $C->SITE_URL?>dashboard/myvideos">
                <div class="menuoption <?php echo($D->optionactive==10?'act':'inact')?>">
                    <div class="icopc"><span title="<?php echo $this->lang('dashboard_vmenu_opc_myvideos');?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/icomyvideos.png"></span></div>
                    <div class="txtopc"><?php echo $this->lang('dashboard_vmenu_opc_myvideos');?></div>
                    <div class="sh"></div>
                </div>
                <div class="sh"></div>
                </a>
            </div>
            
            
            <div class="menuglobal">
                <a href="<?php echo $C->SITE_URL?>dashboard/myalbums">
                <div class="menuoption <?php echo($D->optionactive==14?'act':'inact')?>">
                    <div class="icopc"><span title="<?php echo $this->lang('dashboard_vmenu_opc_myalbums');?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/icoalbums.png"></span></div>
                    <div class="txtopc"><?php echo $this->lang('dashboard_vmenu_opc_myalbums');?></div>
                    <div class="sh"></div>
                </div>
                <div class="sh"></div>
                </a>
            </div>

                
            <div class="menuglobal">
                <a href="<?php echo $C->SITE_URL?>dashboard/mymessages">
                <div class="menuoption <?php echo($D->optionactive==8?'act':'inact')?>">
                    <div class="icopc"><span title="<?php echo $this->lang('dashboard_vmenu_opc_mymessages');?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/icomessages.png"></span></div>
                    <div class="txtopc"><?php echo $this->lang('dashboard_vmenu_opc_mymessages');?></div>
                    <div class="sh"></div>
                </div>
                <div class="sh"></div>
                </a>
            </div>
                

            
            <div class="menuglobal">
                <a href="<?php echo $C->SITE_URL?>dashboard/mylikes">
                <div class="menuoption <?php echo($D->optionactive==4?'act':'inact')?>">
                    <div class="icopc"><span title="<?php echo $this->lang('dashboard_vmenu_opc_myfavorites');?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/icodashboardfavorites.png"></span></div>
                    <div class="txtopc"><?php echo $this->lang('dashboard_vmenu_opc_myfavorites');?></div>
                    <div class="sh"></div>
                </div>
                <div class="sh"></div>
                </a>
            </div>
            

            
            <div class="menuglobal">
                <a href="<?php echo $C->SITE_URL?>dashboard/mycomments">
                <div class="menuoption <?php echo($D->optionactive==5?'act':'inact')?>">
                    <div class="icopc"><span title="<?php echo $this->lang('dashboard_vmenu_opc_mycomments');?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/icodashboardcomments.png"></span></div>
                    <div class="txtopc"><?php echo $this->lang('dashboard_vmenu_opc_mycomments');?></div>
                    <div class="sh"></div>
                </div>
                <div class="sh"></div>
                </a>
            </div>


            <div class="menuglobal">
                <a href="<?php echo $C->SITE_URL?>dashboard/friends">
                <div class="menuoption <?php echo($D->optionactive==6?'act':'inact')?>">
                    <div class="icopc"><span title="<?php echo $this->lang('dashboard_vmenu_opc_friendship');?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/icodashboardfollowing.png"></span></div>
                    <div class="txtopc"><?php echo $this->lang('dashboard_vmenu_opc_friendship');?></div>
                    <div class="sh"></div>
                </div>
                <div class="sh"></div>
                </a>
            </div>


            <div class="menuglobal">
                <a href="<?php echo $C->SITE_URL?>dashboard/pages">
                <div class="menuoption <?php echo($D->optionactive==11?'act':'inact')?>">
                    <div class="icopc"><span title="<?php echo $this->lang('dashboard_vmenu_opc_pages');?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/ico-pages.png"></span></div>
                    <div class="txtopc"><?php echo $this->lang('dashboard_vmenu_opc_pages');?></div>
                    <div class="sh"></div>
                </div>
                <div class="sh"></div>
                </a>
            </div>


            <div class="menuglobal">
                <a href="<?php echo $C->SITE_URL?>dashboard/groups">
                <div class="menuoption <?php echo($D->optionactive==12?'act':'inact')?>">
                    <div class="icopc"><span title="<?php echo $this->lang('dashboard_vmenu_opc_groups');?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/ico-groups.png"></span></div>
                    <div class="txtopc"><?php echo $this->lang('dashboard_vmenu_opc_groups');?></div>
                    <div class="sh"></div>
                </div>
                <div class="sh"></div>
                </a>
            </div>
            

            <div class="menuglobal">
                <a href="<?php echo $C->SITE_URL?>dashboard/myads">
                <div class="menuoption <?php echo($D->optionactive==13?'act':'inact')?>">
                    <div class="icopc"><span title="<?php echo $this->lang('dashboard_vmenu_opc_myads');?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/ico-ads.png"></span></div>
                    <div class="txtopc"><?php echo $this->lang('dashboard_vmenu_opc_myads');?></div>
                    <div class="sh"></div>
                </div>
                <div class="sh"></div>
                </a>
            </div>
            
                        
            <div class="menuglobal">
                <a href="<?php echo $C->SITE_URL?>dashboard/configuration">
                <div class="menuoption <?php echo($D->optionactive==2?'act':'inact')?>">
                    <div class="icopc"><span title="<?php echo $this->lang('dashboard_vmenu_opc_myinformation');?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/icomyinformation.png"></span></div>
                    <div class="txtopc"><?php echo $this->lang('dashboard_vmenu_opc_myinformation');?></div>
                    <div class="sh"></div>
                </div>
                <div class="sh"></div>
                </a>
            </div>        
            

            
            <div class="menuglobal">
                <a href="<?php echo $C->SITE_URL?>logout">
                <div class="menuoption <?php echo($D->optionactive==15?'act':'inact')?>">
                    <div class="icopc"><span title="<?php echo $this->lang('dashboard_vmenu_opc_logout');?>"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/icodashboardlogout.png"></span></div>
                    <div class="txtopc"><?php echo $this->lang('dashboard_vmenu_opc_logout');?></div>
                    <div class="sh"></div>
                </div>
                <div class="sh"></div>
                </a>
            </div>
                

            
        </div>
    
    <!-- end  -->
	</div>

</div>