This repository has been archived by the owner. It is now read-only.
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (34 sloc) 1.5 KB
<?php
/**
* WPUM Template: "Overview" profile tab.
*
* @package wp-user-manager
* @copyright Copyright (c) 2015, Alessandro Tesoro
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 1.0.0
*/
?>
<div class="wpum-user-details-list">
<?php do_action( 'wpum_before_user_details_list', $user_data, $tabs, $slug ); ?>
<dl>
<?php if ( $user_data->first_name || $user_data->last_name ) : ?>
<dt><?php _e( 'Name', 'wpum' );?>:</dt>
<dd><?php echo $user_data->first_name; ?> <?php echo $user_data->last_name; ?></dd>
<?php endif; ?>
<?php if ( $user_data->user_nicename ) : ?>
<dt><?php _e( 'Nickname', 'wpum' );?>:</dt>
<dd><?php echo $user_data->user_nicename; ?></dd>
<?php endif; ?>
<?php if ( $user_data->user_email ) : ?>
<dt><?php _e( 'Email', 'wpum' );?>:</dt>
<dd><a href="mailto:<?php echo antispambot( $user_data->user_email );?>"><?php echo antispambot( $user_data->user_email ); ?></a></dd>
<?php endif; ?>
<?php if ( $user_data->user_url ) : ?>
<dt><?php _e( 'Website', 'wpum' );?>:</dt>
<dd><a href="<?php echo esc_url( $user_data->user_url ); ?>" rel="nofollow" target="_blank"><?php echo esc_url( $user_data->user_url ); ?></a></dd>
<?php endif; ?>
<dt><?php _e( 'Registered', 'wpum' );?>:</dt>
<dd><?php echo date( get_option( 'date_format' ), strtotime( $user_data->user_registered ) ); ?></dd>
</dl>
<?php do_action( 'wpum_after_user_details_list', $user_data, $tabs, $slug ); ?>
</div>