This repository has been archived by the owner. It is now read-only.
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (23 sloc) 903 Bytes
<?php
/**
* WPUM Template: User profile links.
* Displays links related to the user.
*
* @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
*/
?>
<ul class="wpum-user-links">
<?php do_action( 'wpum_before_profile_links', $user_data ); ?>
<li class="wpum-profile-link send-email">
<a href="mailto:<?php echo antispambot( $user_data->user_email );?>" class="wpum-button"><?php _e( 'Send Email', 'wpum' );?></a>
</li>
<?php if ( !empty( $user_data->user_url ) ) : ?>
<li class="wpum-profile-link view-website">
<a href="<?php echo esc_url( $user_data->user_url );?>" class="wpum-button" rel="nofollow" target="_blank"><?php _e( 'Visit website', 'wpum' );?></a>
</li>
<?php endif; ?>
<?php do_action( 'wpum_after_profile_links', $user_data ); ?>
</ul>