PluginProbe
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP / 1.2.47
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP v1.2.47
1.2.72 1.2.71 1.2.70 1.2.69 1.2.68 1.2.67 1.2.66 1.2.65 1.2.64 1.2.63 trunk 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 1.0.23 All 172 releases
userswp / templates / bootstrap / dashboard.php

dashboard.php in UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP 1.2.47, at templates/bootstrap/dashboard.php

44 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $user_id = get_current_user_id();
3 $user_info = get_userdata($user_id);
4 $display_name = esc_attr( $user_info->data->display_name );
5 $profile_link = uwp_build_profile_tab_url($user_id);
6 $hello_text = !empty($args['dashboard_text']) ? esc_attr__($args['dashboard_text'],'userswp') : __( 'Hello, %s', 'userswp' );
7 $display_name = "<a href='".esc_url($profile_link)."' >".esc_attr($display_name)."</a>";
8 $hello_text = sprintf($hello_text,$display_name);
9 $dashboard_links = !empty($args['template_args']['dashboard_links']) ? $args['template_args']['dashboard_links'] : '';
10 ?>
11 <div class="card text-center border-0">
12 <a href="<?php echo esc_url( $profile_link );?>">
13 <img src="<?php echo esc_url( get_avatar_url( get_current_user_id(), array('size' => 100) ) ); ?>" class="rounded-circle shadow border border-white border-width-4" alt="<?php echo esc_attr($user_info->data->display_name);?>">
14 </a>
15 <div class="card-body">
16 <?php do_action('uwp_template_form_title_before', 'dashboard'); ?>
17 <h5 class="card-title"><?php echo apply_filters('uwp_template_form_title', $hello_text, 'dashboard'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></h5>
18 <?php do_action('uwp_template_form_title_after', 'dashboard'); ?>
19 <?php do_action('uwp_template_display_notices', 'dashboard'); ?>
20
21 <div class="uwp-dashboard-links">
22 <?php
23 do_action('uwp_dashboard_links_before',$args);
24
25 global $userswp;
26 $userswp->forms->output_dashboard_links( $dashboard_links );
27
28 do_action('uwp_dashboard_links_after',$args);
29 ?>
30 </div>
31
32 <div class="uwp-logout-link pt-3">
33 <?php
34 echo aui()->button(array( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
35 'type' => 'a',
36 'href' => esc_url( wp_logout_url() ),
37 'class' => 'btn btn-sm btn-outline-primary',
38 'content' => esc_html__( 'Logout', 'userswp' ),
39 'extra_attributes' => array('rel'=>'nofollow')
40 ));
41 ?>
42 </div>
43 </div>
44 </div>