# userswp/1.2.68/templates/dashboard-simple.php

UsersWP – Front-end login form, User Registration, User Profile &amp; Members Directory plugin for WP, version 1.2.68. 18 lines.

- Page: https://pluginprobe.com/plugins/userswp/1.2.68/code/templates/dashboard-simple.php
- Raw: https://pluginprobe.com/plugins/userswp/1.2.68/raw/templates/dashboard-simple.php
- Modified: 2024-03-13T13:47:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/userswp/1.2.68/code/templates/dashboard-simple.php#L10-L20`.

```php
<?php
global $current_user;

echo '<div class="uwp-login-widget user-loggedin">';

echo '<p>'.esc_html__( 'Logged in as ', 'userswp' );

echo '<a href="'. esc_url( uwp_build_profile_tab_url($current_user->ID) ).'">' . get_avatar( $current_user->ID, 35 ). '<strong>'. apply_filters('uwp_profile_display_name', esc_attr( $current_user->display_name ) ).'</strong></a>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped

echo '<span>';

echo '<a href="'.esc_url( wp_logout_url() ).'" class="uwp-logout">'.esc_html__("Logout","userswp").'</a>';

echo '</span>';

echo '</p>';

echo '</div>';
```
