| 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-pro/templates/ |
Upload File : |
<div class="hidden-content-wrap" id="<?php echo esc_attr($id); ?>">
<?php WPCOM_MP_block_bg(); ?>
<div class="hidden-content">
<?php
$type = isset($type) && $type !== '' ? $type : 0;
if ($type == '0') { ?>
<div class="hidden-content-icon"><?php wpmx_icon('comment-lock'); ?></div>
<p class="hidden-content-desc"><?php echo isset($tips) && $tips ? $tips : '您需要回复本文后才能查看完整内容'; ?></p>
<a class="wpcom-btn btn-primary hidden-content-btn hidden-content-btn-comment" href="#comments">立即回复</a>
<div class="hidden-content-refresh">
<?php wpmx_icon('help', true, 'refresh-help');?>
<div class="refresh-action">
<div class="refresh-action-inner">
已经回复?<a class="refresh-url j-refresh-hidden-content" href="#">立即刷新<?php wpmx_icon('refresh') ?></a>
</div>
</div>
</div>
<?php } else if ($type == '1') { ?>
<div class="hidden-content-icon"><?php wpmx_icon('user-lock'); ?></div>
<p class="hidden-content-desc"><?php echo isset($tips) && $tips ? $tips : '您需要登录才能查看完整内容'; ?></p>
<a class="wpcom-btn btn-primary hidden-content-btn hidden-content-btn-login" href="<?php echo wp_login_url(); ?>">立即登录</a>
<div class="hidden-content-refresh">
<?php wpmx_icon('help', true, 'refresh-help');?>
<div class="refresh-action">
<div class="refresh-action-inner">
已经登录?<a class="refresh-url j-refresh-hidden-content" href="#">立即刷新<?php wpmx_icon('refresh') ?></a>
</div>
</div>
</div>
<?php } else if ($type == '2') {
global $current_user;
$user_group = isset($user_group) && $user_group ? (is_array($user_group) ? $user_group : explode(',', $user_group)) : array();
$groups = $user_group ? get_terms(array(
'taxonomy' => 'user-groups',
'include' => $user_group,
'hide_empty' => false
)) : array();
?>
<div class="hidden-content-icon"><?php wpmx_icon('group-lock'); ?></div>
<?php if ($groups) {
$group_html = '<div class="hidden-content-groupname">';
foreach ($groups as $group) {
if ($group->name) {
$group_html .= '<b>' . $group->name . '</b>';
}
}
$group_html .= '</div>';
?>
<div class="hidden-content-desc"><?php echo isset($tips) && $tips ? $tips : '此内容仅对以下用户分组的用户可见:'; ?><?php echo $group_html; ?></div>
<?php } else { ?>
<p class="hidden-content-desc"><?php echo isset($tips) && $tips ? $tips : '此内容仅对指定用户分组的用户可见'; ?></p>
<?php }
if ($current_user && isset($current_user->ID) && $current_user->ID) { ?>
<p class="hidden-content-forbidden">抱歉,您暂无查看权限</p>
<?php } else { ?>
<a class="wpcom-btn btn-primary hidden-content-btn hidden-content-btn-login" href="<?php echo wp_login_url(); ?>">立即登录</a>
<?php } ?>
<div class="hidden-content-refresh">
<?php wpmx_icon('help', true, 'refresh-help');?>
<div class="refresh-action">
<div class="refresh-action-inner">
已有权限?<a class="refresh-url j-refresh-hidden-content" href="#">立即刷新<?php wpmx_icon('refresh') ?></a>
</div>
</div>
</div>
<?php } else if ($type == '3') { ?>
<div class="hidden-content-icon"><?php wpmx_icon('pay-lock'); ?></div>
<p class="hidden-content-desc"><?php echo isset($tips) && $tips ? $tips : '请输入口令查看完整内容'; ?></p>
<div class="hidden-content-input">
<input class="form-control" type="text" name="password" placeholder="请输入口令">
<button class="wpcom-btn btn-primary hidden-content-btn hidden-content-btn-password" type="button">立即解锁</button>
</div>
<?php } ?>
</div>
</div>