| Server IP : 43.141.49.119 / Your IP : 113.219.202.141 Web Server : Apache System : Linux VM-8-5-opencloudos 6.6.34-9.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 19 19:35:45 CST 2024 x86_64 User : www ( 1000) PHP Version : 8.1.27 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/www.ucppt.com/wp-content/plugins/wpcom-member/templates/ |
Upload File : |
<?php defined( 'ABSPATH' ) || exit;
$can_edit = false;
if( get_current_user_id() == $profile->ID || current_user_can( 'edit_users' ) ) $can_edit = true;
$classes = apply_filters('wpcom_profile_head_classes', 'wpcom-profile-head');
?>
<div class="wpcom-profile">
<div class="<?php echo esc_attr($classes);?>">
<div class="wpcom-ph-bg">
<?php echo wpmx_image(wpcom_get_cover_url($profile->ID), $profile->display_name);?>
</div>
<div class="wpcom-ph-inner">
<div class="wpcom-ph-user">
<div class="wpcom-ph-avatar">
<?php echo get_avatar( $profile->ID, 200 );?>
<?php if( $can_edit ){ ?><span class="edit-avatar" data-user="<?php echo esc_attr($profile->ID);?>"><?php wpmx_icon('camera');?></span><?php } ?>
</div>
<h2 class="wpcom-ph-name"><?php
$name = apply_filters('wpcom_user_display_name', $profile->display_name, $profile->ID, 'full');
echo wp_kses($name, wpmx_allowed_html());?></h2>
<?php if(wpmx_description_length() > 0 && $profile->description){ ?><div class="wpcom-ph-desc"><?php echo wp_kses($profile->description, 'user_description');?></div><?php } ?>
<?php do_action('wpcom_profile_after_description', $profile->ID);?>
</div>
<?php if( $can_edit ){ ?>
<div class="wpcom-profile-action">
<span class="wpcom-profile-setcover edit-cover" data-user="<?php echo esc_attr($profile->ID);?>">
<?php wpmx_icon('camera');?> <?php esc_html_e('Change cover', WPMX_TD);?>
</span>
<?php if($can_edit) wp_nonce_field( 'wpcom_cropper', 'wpcom_cropper_nonce', 0 );?>
</div>
<?php } ?>
</div>
</div>
<?php if($tabs){ ?>
<ul class="wpcom-profile-nav">
<?php $default = current($tabs); foreach ( $tabs as $tab ) {
$tab_url = wpcom_profile_url( $profile, $tab['slug'] === $default['slug'] ? '' : $tab['slug'] );
$tab_html = '<a href="' . $tab_url . '">'.$tab['title'].'</a>'; ?>
<li<?php echo $tab['slug'] === $subpage ? ' class="active"' : '';?>>
<?php echo wp_kses(apply_filters( 'wpcom_profile_tab_url', $tab_html, $tab, $tab_url ), 'post');?>
</li>
<?php } ?>
</ul>
<?php } ?>
<div class="wpcom-profile-main profile-<?php echo esc_attr($subpage);?>">
<?php do_action( 'wpcom_profile_tabs_' . $subpage );?>
</div>
</div>