| Server IP : 43.141.50.122 / Your IP : 113.219.202.173 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="recharge-desc"><?php echo wp_kses_post(wpautop($desc));?></div>
<?php if(!empty($items)){ ?>
<div class="points-types">
<h3 class="points-types-title">选择购买积分</h3>
<ul class="points-types-list vip-form-select">
<?php foreach($items as $item){
$num = number_format($item['num'], 0, '.', '');
$price = number_format($item['price'], 2, '.', ''); ?>
<li class="points-types-item vip-form-select-item" data-num="<?php echo $num;?>" data-price="<?php echo $price;?>">
<span class="points-num"><?php wpmx_icon('points');echo $num;?></span>
<span class="points-price"><span>售价</span>¥<?php echo $price;?></span>
</li>
<?php }
if($custom){ ?>
<li class="points-types-item vip-form-select-item points-custom">
<span class="points-num">自定义购买</span>
<?php if($points_rate > 0){ ?><span class="points-price">1元 = <?php echo $points_rate;?>积分</span><?php } ?>
</li>
<?php } ?>
</ul>
<?php wp_nonce_field( 'points_types', 'points_types_nonce', 0 );?>
</div>
<?php } ?>
<?php if(!empty($items) && $custom){ ?>
<div class="points-custom-form">
<h3 class="points-types-title">自定义购买</h3>
<form class="points-form-inner" method="post">
<input type="number" class="form-control recharge-form-input" name="points-custom-input" placeholder="请输入需要购买的积分数量"<?php echo $custom_min > 0 ? ' min="'.$custom_min.'"' : '';echo $custom_max > 0 ? ' max="'.$custom_max.'"' : '';?> step="1">
<?php wp_nonce_field( 'points_custom', 'points_custom_nonce', 0 );?>
<button type="submit" class="wpcom-btn btn-primary">立即购买</button>
</form>
</div>
<?php } else if(empty($items) && $custom) {?>
<div class="points-custom-form active">
<h3 class="points-types-title">购买数量</h3>
<form class="points-form-inner" method="post">
<input type="number" class="form-control recharge-form-input" name="points-custom-input" placeholder="请输入需要购买的积分数量"<?php echo $custom_min > 0 ? ' min="'.$custom_min.'"' : '';echo $custom_max > 0 ? ' max="'.$custom_max.'"' : '';?> step="1">
<?php wp_nonce_field( 'points_custom', 'points_custom_nonce', 0 );?>
<button type="submit" class="wpcom-btn btn-primary">立即购买</button>
</form>
<p class="points-custom-notice"></p>
</div>
<?php } ?>
<?php if(!empty($items)){ ?>
<div class="points-type-submit">
<div class="points-type-price"></div>
<button type="button" class="wpcom-btn btn-primary">立即购买</button>
</div>
<?php } ?>