# userswp/1.2.65/templates/bootstrap/dashboard-simple.php

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

- Page: https://pluginprobe.com/plugins/userswp/1.2.65/code/templates/bootstrap/dashboard-simple.php
- Raw: https://pluginprobe.com/plugins/userswp/1.2.65/raw/templates/bootstrap/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.65/code/templates/bootstrap/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' );

$content = get_avatar( $current_user->ID, 35 ). '<strong>'. apply_filters('uwp_profile_display_name', esc_attr( $current_user->display_name )).'</strong>';

echo aui()->button(array( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
	'type'  =>  'a',
	'href'       => esc_url( uwp_build_profile_tab_url($current_user->ID) ),
	'class'      => '',
	'content'    => $content, // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
));

echo '<span>';

echo aui()->button(array( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
	'type'  =>  'a',
	'href'       => esc_url( wp_logout_url() ),
	'class'      => 'btn btn-sm btn-outline-primary',
	'title'      => esc_html__("Logout","userswp"),
	'content'    => esc_html__("Logout","userswp"),
));

echo '</span>';

echo '</p>';

echo '</div>';
```
