PluginProbe
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP / 1.0.16
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP v1.0.16
1.2.73 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 All 173 releases
userswp / templates / profile.php

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

47 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php do_action('uwp_template_before', 'profile'); ?>
2 <?php
3 $url_type = apply_filters('uwp_profile_url_type', 'slug');
4 $enable_profile_header = uwp_get_option('enable_profile_header', false);
5 $enable_profile_body = uwp_get_option('enable_profile_body', false);
6 //$make_profile_private = uwp_can_make_profile_private();
7
8 $author_slug = get_query_var('uwp_profile');
9 if ($url_type == 'id') {
10 $user = get_user_by('id', $author_slug);
11 } else {
12 $user = get_user_by('slug', $author_slug);
13 }
14 $profile_access = apply_filters('uwp_profile_access', true, $user);
15 //$private_profile = get_user_meta($user->ID, 'uwp_make_profile_private', true);
16 //$access_profile_private = false;
17 //if (current_user_can('manage_options') || get_current_user_id() == $user->ID) {
18 // $access_profile_private = true;
19 //}
20 //$access_profile_private = apply_filters('uwp_user_can_access_private_profiles', $access_profile_private, $user->ID);
21 ?>
22 <div class="uwp-content-wrap">
23 <?php if ($profile_access) {
24 ?>
25 <?php do_action('uwp_template_display_notices', 'profile'); ?>
26 <?php
27 if ($enable_profile_header == '1') {
28 do_action('uwp_profile_header', $user );
29 }
30 ?>
31 <?php if ($enable_profile_body == '1') { ?>
32 <div class="uwp-profile-main">
33 <div class="uwp-profile uwp-profile-side">
34 <?php do_action('uwp_profile_title', $user ); ?>
35 <?php do_action('uwp_profile_social', $user ); ?>
36 <?php do_action('uwp_profile_bio', $user ); ?>
37 <?php do_action('uwp_profile_buttons', $user ); ?>
38 </div>
39 <?php do_action('uwp_profile_content', $user); ?>
40 </div>
41 <?php } ?>
42 <?php
43 } else {
44 do_action('uwp_profile_access_denied', $user);
45 } ?>
46 </div>
47 <?php do_action('uwp_template_after', 'profile'); ?>