<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_users
 *
 * @copyright   Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
JHtml::_('behavior.tooltip');

$app = JFactory::getApplication('site');
$template = $app->getTemplate(true);
JFactory::getDocument()->addScriptdeclaration('jQuery(document).bind("ready",function(){jQuery("#jform_profile_dob_spacer-lbl").closest("dt").remove().next("dd").remove()});');
?>
<div class="page_profile page_profile__<?php echo $this->pageclass_sfx?>">
	<?php if (JFactory::getUser()->id == $this->data->id) : ?>
	<ul class="btn-toolbar pull-right">
		<li class="btn-group">
			<a class="btn" href="<?php echo JRoute::_('index.php?option=com_users&task=profile.edit&user_id='.(int) $this->data->id);?>"><i class="fa fa-user"></i> <?php echo JText::_('COM_USERS_Edit_Profile'); ?></a>
		</li>
	</ul>
	<?php endif; ?>
	<div class="extra_wrap">
	<?php if ($this->params->get('show_page_heading')) : ?>
	<div class="page_header">
  		<<?php echo $template->params->get('categoryPageHeading', 'h3'); ?>><?php echo $this->escape($this->params->get('page_heading')); ?></<?php echo $template->params->get('categoryPageHeading', 'h3'); ?>>
	</div>
	<?php endif;
	echo $this->loadTemplate('core');
	echo $this->loadTemplate('params');
	echo $this->loadTemplate('custom'); ?>
	</div>
</div>