| Server IP : 43.141.50.122 / 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;
do_action('wpmx_before_member_account');?>
<div class="member-account-wrap">
<div class="member-account-nav">
<div class="member-account-user">
<div class="member-account-avatar">
<?php echo get_avatar( $user->ID, 200 );?>
<span class="edit-avatar" data-user="<?php echo $user->ID;?>"><?php wpmx_icon('camera');?></span>
<?php wp_nonce_field( 'wpcom_cropper', 'wpcom_cropper_nonce', 0 );?>
</div>
<?php $show_profile = apply_filters( 'wpcom_member_show_profile' , true );?>
<h3 class="member-account-name">
<?php if($show_profile){?><a href="<?php echo esc_url(get_author_posts_url($user->ID)); ?>" target="_blank">
<?php echo esc_html($user->display_name);?>
</a>
<?php }else { echo esc_html($user->display_name); } ?>
</h3>
<?php if(wpmx_description_length() > 0 && $user->description){ ?><div class="member-account-dio"><?php echo wp_kses($user->description, 'user_description');?></div><?php } ?>
<?php do_action('wpcom_member_account_after_dio');?>
</div>
<ul class="member-account-menu">
<?php $current_tab = null;
foreach ($tabs as $t){
if( $t['slug'] == $subpage && isset($t['parent']) && $t['parent'] ) {
$current_tab = $t;
$current_tab['slug'] = $t['parent'];
}
}
foreach ( $tabs as $i => $tab ) { if( $i<999 ) {
if( !$current_tab && $tab['slug'] == $subpage ) $current_tab = $tab; ?>
<li class="member-nav-<?php echo esc_attr($tab['slug']); if( $current_tab && $tab['slug']==$current_tab['slug'] ) echo ' active';?>">
<a href="<?php echo esc_url(wpcom_subpage_url($tab['slug']));?>">
<?php wpmx_icon($tab['icon'], true, 'member-nav-icon'.(isset($tab['shadow']) && $tab['shadow'] ? ' has-shadow' : ''));?><?php echo esc_html($tab['title']);?>
</a>
</li>
<?php } } ?>
</ul>
</div>
<div class="member-account-content">
<h2 class="member-account-title"><?php echo $current_tab && isset($current_tab['title']) ? esc_html($current_tab['title']) : '';?></h2>
<?php if( isset($GLOBALS['validation']) && empty( $GLOBALS['validation']['error'] ) ) { ?>
<div class="wpcom-alert alert-success fade in" role="alert">
<div class="wpcom-close" data-wpcom-dismiss="alert"><?php wpmx_icon('close');?></div>
<?php esc_html_e( 'Updated successfully.', WPMX_TD ); ?>
</div>
<?php } ?>
<?php do_action( 'wpcom_account_tabs_' . $subpage ); ?>
</div>
</div>