| Server IP : 38.190.208.107 / Your IP : 216.73.217.46 Web Server : nginx/1.28.1 System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 User : root ( 0) PHP Version : 8.2.28 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,eval,assert,passthru,system,exec,shell_exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/www.huomanshiye.com/wp-content/themes/betheme/includes/ |
Upload File : |
<?php
$product = wc_get_product($args['id']);
$attachment_ids = $product->get_gallery_image_ids();
setup_postdata($product->get_id());
?>
<div class="mfn-popup mfn-popup-940 mfn-popup-quickview woocommerce">
<div class="mfn-popup-content">
<span class="mfn-close-popup mfn-close-icon"><span class="icon">✕</span></span>
<div class="mfn-popup-content-wrapper product">
<div class="mfn-popup-content-col mfn-popup-content-photos">
<div class="mfn-quickview-slider">
<div class="mfn-qs-one mfn-qs-one-first"><?php echo get_the_post_thumbnail($args['id'], 'large'); ?></div>
<?php if(count($attachment_ids) > 0): foreach( $attachment_ids as $attachment_id ) { ?>
<div class="mfn-qs-one"><?php echo wp_get_attachment_image($attachment_id, 'large'); ?></div>
<?php } endif; ?>
</div>
</div>
<div class="mfn-popup-content-col mfn-popup-content-text">
<div class="mfn-popup-content-text-wrapper">
<h3 class="heading"><?php echo get_the_title($args['id']); ?></h3>
<p class="price"><?php echo $product->get_price_html(); ?></p>
<div class="excerpt">
<?php echo apply_filters( 'the_excerpt', get_the_excerpt( $args['id'] ) ); ?>
</div>
<div class="mfn-product-add-to-cart">
<?php
/*$funname = 'woocommerce_'.$product->get_type().'_add_to_cart';
$funname(); */
call_user_func('woocommerce_'. $product->get_type() .'_add_to_cart');
?>
</div>
<?php echo sc_product_meta(array(), $product); ?>
</div>
</div>
</div>
</div>
</div>
<?php wp_reset_postdata(); ?>