| Server IP : 31.214.179.3 / Your IP : 216.73.216.231 Web Server : Apache System : Linux hostingsrv125.dondominio.com 6.12.96+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.96-1 (2026-07-20) x86_64 User : ( 1156851) PHP Version : 8.5.8 Disable Function : system,passthru,popen,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,exec,ini_alter,show_source,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,mail,eval MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /hosting/www/thermatron.es/public/wp-content/themes/betheme/includes/ |
Upload File : |
<?php
global $mfn_global;
if( !empty($mfn_global['archive_template']) ) {
get_header('shop');
$shop_tmpl = new Mfn_Builder_Front(is_array($mfn_global['archive_template']) ? $mfn_global['archive_template'][0] : $mfn_global['archive_template']);
$shop_tmpl->show();
get_footer();
}else{
$wish_arr = array(0);
if( isset($_COOKIE['mfn_wishlist']) ){
$wishlist = $_COOKIE['mfn_wishlist'];
$wish_arr = explode(',', $wishlist);
}
$translate['translate-empty-wishlist'] = mfn_opts_get('translate') ? mfn_opts_get('translate-empty-wishlist', 'Your wishlist is empty.') : __('Your wishlist is empty.', 'betheme');
$wish_query = new WP_Query( array(
'post_type' => 'product',
'posts_per_page' => -1,
'post__in'=> $wish_arr
) );
?>
<div class="section wishlist woocommerce">
<div class="section_wrapper clearfix">
<?php if($wish_query->have_posts()): ?>
<?php while($wish_query->have_posts()): $wish_query->the_post();
$product = wc_get_product(get_the_ID());
?>
<div class="wishlist-row">
<div class="column one-fourth">
<div class="mcb-column-inner">
<?php echo Mfn_Builder_Woo_Helper::get_woo_product_image($product); ?>
</div>
</div>
<div class="column one-second">
<div class="mcb-column-inner">
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<p class="price"><?php echo $product->get_price_html(); ?></p>
<?php the_excerpt(); ?>
<?php woocommerce_template_single_meta(); ?>
</div>
</div>
<div class="column one-fourth wishlist-options">
<div class="mcb-column-inner">
<?php echo Mfn_Builder_Woo_Helper::get_woo_product_button( $product ); ?>
</div>
</div>
</div>
<?php endwhile; ?>
<?php else: ?>
<div class="wishlist-info">
<h3><?php echo $translate['translate-empty-wishlist']; ?></h3>
<a href="<?php echo get_permalink( wc_get_page_id( 'shop' ) ); ?>" class="button mfn-btn"><?php esc_html_e( 'Go to shop', 'woocommerce' ); ?></a>
</div>
<?php endif; ?>
<div class="wishlist-info" style="display: none;">
<h3><?php echo $translate['translate-empty-wishlist']; ?></h3>
<a href="<?php echo get_permalink( wc_get_page_id( 'shop' ) ); ?>" class="button mfn-btn"><?php esc_html_e( 'Go to shop', 'woocommerce' ); ?></a>
</div>
</div>
</div>
<?php } ?>