Subversion Repositories wpShopGermany4

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php

    declare(strict_types=1);
    
    /**
     * @author: Daniel Schmitzer (daschmi@daschmi.de)
     * @date: 08.06.22
     * @time: 13:43
     */
  
        $available_date = $this->view['wpsg_mod_deliverytime']['available_date'];
        $t_date = strtotime($available_date);
                
        $nowplusoneday = strtotime('+1 days');  
        $days_between = ceil(($t_date - mktime(0, 0, 0)) / (24 * 60 * 60));
        
?>

<?php if ($days_between <= 1) { ?>

        <div class="wpsg_mod_deliverytime_product_bottom">
                <?php echo __('sofort Lieferbar', 'wpsg') ;?>
        </div>
        
<?php } else { ?>

        <div class="wpsg_mod_deliverytime_product_bottom">
                <?php echo wpsg_translate(__('Lieferbar in #1# Tagen', 'wpsg'), $days_between); ?> 
        </div>

<?php } ?>