Rev 8007 | 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 wpsg_mod_deliverytime_product_bottom">
<span class="fa fa-calendar-minus-o"></span>
<span class="label label_deliverytime_product">Verfügbarkeit: </span>
<span class="label_deliverytime"><?php echo __('sofort Verfügbar', 'wpsg') ;?></span>
</div>
<?php } else { ?>
<div class="wpsg_mod_deliverytime wpsg_mod_deliverytime_product_bottom">
<span class="fa fa-calendar-minus-o"></span>
<span class="label label_deliverytime_product">Verfügbarkeit: </span>
<span class="label_deliverytime"><?php echo wpsg_translate(__('Lieferbar in #1# Tagen', 'wpsg'), $days_between); ?></span>
</div>
<?php } ?>