<?php /**
 * Template version: 3.1.0
 * Template zone: frontend
 *
 * -= 3.1.0 =-
 * - Replace clearfix CSS classes with cuar-clearfix
 *
 * -= 3.0.0 =-
 * - Improve UI for new master-skin
 *
 * -= 1.2.0 =-
 * - Added addresses
 *
 * -= 1.1.0 =-
 * - Added updated message
 *
 * -= 1.0.0 =-
 * - Initial version
 *
 */

$current_user = $this->get_current_user();
?>

<div class="page-heading">
    <div class="media cuar-clearfix">
        <div class="media-left pr30">
            <?php echo get_avatar($current_user->ID); ?>
        </div>
        <div class="media-body va-m" style="width: 100%;">

            <div class="cuar-title media-heading text-primary"><?php echo $current_user->display_name; ?>
                <small> - Profile</small>
            </div>

            <?php
            if (isset($_GET['updated']) && $_GET['updated'] == 1) {
                printf('<p class="alert alert-info mt15 mbn">%s</p>', __('Your profile has been updated', 'cuar'));
            }
            ?>

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

<div class="panel">
    <div class="panel-heading"><span class="panel-title"><?php _e('Account details', 'cuar'); ?></span></div>
    <div class="panel-body">
        <?php $this->print_account_fields(); ?>
    </div>
</div>

<div class="row">
    <?php $this->print_address_fields(); ?>
</div>