<?php $identity_id = $identity->getId();?>
<div class="user-thumbnail">
  <img src="<?php echo $identity->getImage();?>" height="32" alt="" />
</div>
<?php if (count($tabs) > 1):?>
<ul class="tabs">
<?php   foreach ($tabs as $tab):?>
  <li<?php if ($tab_id == $tab['id']):?> class="selected"<?php endif;?>>
    <h3 class="tab-label"><?php $this->HTML->linkToRemote($tab['title'], 'plugg-content', array('path' => '/' . $identity->getId(), 'params' => array('tab_id' => $tab['id'])), array(), array(), array('rel' => 'me'));?></h3>
  </li>
<?php   endforeach;?>
</ul>
<?php endif;?>
<div class="user-tab">
<?php if (empty($tab_id)):?>
<?php   include $this->getTemplatePath('plugg_user_main_identity_view_default.tpl');?>
<?php else:?>
<?php   print $tab_content;?>
<?php endif;?>
</div>