HEX
Server: Apache
System: Linux ecngx285.inmotionhosting.com 4.18.0-553.79.1.lve.el8.x86_64 #1 SMP Wed Oct 15 17:59:35 UTC 2025 x86_64
User: zeusxp5 (3862)
PHP: 8.3.28
Disabled: NONE
Upload Files
File: /home/zeusxp5/chuair.org/wp-content/themes/lifttruck/inc/vendors/auction.php
<?php

//if (is_plugin_active('woocommerce-simple-auctions/woocommerce-simple-auctions.php')) {

  function lifttruck_load_js_css_file__auction() {
    wp_enqueue_style('lifttruck-style__auction',  get_parent_theme_file_uri('inc/vendors/auction.css'));
  }
  add_action('wp_enqueue_scripts', 'lifttruck_load_js_css_file__auction');



  /** Add Auction countdowm to product image block */
  function add_countDown($block_content, $block) {
    $auction_countdown = '';
    ob_start();
    woocommerce_auction_countdown();
    $auction_countdown .= ob_get_clean();

    $block_content = str_replace('</div>', $auction_countdown . '</div>', $block_content);

    return $block_content;
  }
  add_filter('render_block_woocommerce/product-image', 'add_countDown', 10, 2);

//}