| Server IP : 43.141.49.92 / 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 : |
<ul class="member-account-orders">
<?php if (isset($orders) && !empty($orders)) {
foreach ($orders as $order) {
$items = \WPCOM\Member\Order::get_order_items($order->ID);
$points = $order->payment_gateway === 'points'; ?>
<li class="account-orders-item">
<div class="account-orders-item-hd">
<div class="account-orders-item-num">订单号:<a href="<?php echo esc_url(\WPCOM\Member\Order::order_url($order->ID)); ?>" target="_blank"><?php echo $order->number; ?></a></div>
<div class="account-orders-item-time"><?php echo $order->time; ?></div>
<div class="account-orders-item-total">合计:<span><?php echo $points ? wpmx_icon('points') : '¥'; echo number_format($order->price, $points ? 0 : 2, '.', ''); ?></span></div>
<div class="account-orders-item-status status-<?php echo esc_attr($order->status); ?>">
<?php
if ($order->status === 'unpaid') {
echo '<a class="wpcom-btn btn-primary btn-xs btn-pay" data-id="' . esc_attr($order->ID) . '" href="javascript:;">去支付' . wpmx_icon('arrow-right-2', false) . '</a>';
} else {
echo \WPCOM\Member\Order::get_order_status_display($order->status);
}
?>
</div>
</div>
<div class="account-orders-item-bd">
<?php if ($items) {
foreach ($items as $item) {
$url = apply_filters('wpcom_order_item_url', '', $item); ?>
<div class="account-orders-item-li">
<?php if($url){ ?>
<a class="account-orders-item-title" href="<?php echo esc_url($url);?>" target="_blank"><?php echo $item->title; ?></a>
<?php }else{ ?>
<div class="account-orders-item-title"><?php echo $item->title; ?></div>
<?php }
if(isset($item->data) && $item->data && $data = json_decode($item->data, true)){
if(isset($data['quantity']) && $data['quantity'] > 1){ ?>
<div class="account-orders-item-qty">× <?php echo $data['quantity']; ?></div>
<?php }
}
?>
<div class="account-orders-item-price"><?php echo $points ? wpmx_icon('points') : '¥'; echo number_format($item->price, $points ? 0 : 2, '.', ''); ?></div>
</div>
<?php }
} ?>
</div>
</li>
<?php }
} else { ?>
<li class="member-account-empty messages-empty"><?php echo wpcom_empty_icon('download'); ?>暂无购买订单</li>
<?php } ?>
</ul>
<?php if ($pages > 1) { wpcom_pagination(4, array('numpages' => $pages, 'paged' => $paged, 'url' => wpcom_subpage_url('orders-list'), 'paged_arg' => 'pageid'));} ?>