403Webshell
Server IP : 38.190.208.107  /  Your IP : 216.73.217.1
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/www.huomanshiye.com/wp-content/themes/betheme/includes/wishlist.php
<?php
$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>

Youez - 2016 - github.com/yon3zu
LinuXploit