| 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 : |
<div class="hidden-content-wrap virtual-service-wrap" id="<?php echo esc_attr($id);?>">
<?php WPCOM_MP_block_bg();?>
<div class="virtual-service">
<div class="virtual-service-thumb">
<?php if(isset($image) && $image){
$style = '';
if(is_numeric($image)){
$src = wp_get_attachment_image_src($image, 'full');
if($src && isset($src[0])){
$image = $src[0];
if($src[1] && $src[2]) $style = ' style="width:'. $src[1] .'px;aspect-ratio:'. $src[1] . ' / ' . $src[2] . ';"';
}else{
$image = '';
}
} ?>
<img src="<?php echo esc_url($image);?>"<?php echo $style;?>>
<?php }else{ ?>
<div class="virtual-service-svg-thumb"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.005 22h-16a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1zm-1-2V4h-14v16h14zm-10-14v2a3 3 0 1 0 6 0V6h2v2a5 5 0 0 1-10 0V6h2z" fill="var(--member-color, var(--theme-color))" /></svg></div>
<?php } ?>
</div>
<?php
$points = isset($pay_type) && $pay_type == 1;
?>
<div class="virtual-service-content">
<h3 class="virtual-service-title"><?php echo $title;?></h3>
<div class="virtual-service-price">
<?php if(isset($price) && $price!==''){ ?>
<span><?php echo $points ? wpmx_icon('points', false) : '¥';?></span><?php echo number_format($price, $points ? 0 : 2, '.', '');
} ?>
<?php if($sales) { ?>
<div class="virtual-service-sales">
<?php
$sales_html = wpmx_icon('huo', 0) . '已有<span>'.$sales.'</span>人购买';
$sales_html = apply_filters('wpmx_virtual_service_sales_html', $sales_html, $sales);
echo wp_kses($sales_html, wpmx_allowed_html());
?>
</div>
<?php } ?>
</div>
<div class="virtual-service-info">
<?php echo isset($tips) ? wp_kses_post(wpautop($tips)) : '';?>
</div>
<?php if($type == '0' || $points){ ?>
<button class="wpcom-btn btn-primary hidden-content-btn virtual-service-btn" type="button"><?php echo $btn;?></button>
<?php }else if($type == '1' && isset($url) && $url){ ?>
<a class="wpcom-btn btn-primary hidden-content-btn virtual-service-url" href="<?php echo esc_url($url);?>" target="_blank" rel="nofollow noopener"><?php echo $btn;?></a>
<?php } ?>
</div>
</div>
</div>