8007 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
declare(strict_types=1);
|
|
|
4 |
|
|
|
5 |
/**
|
|
|
6 |
* @author: Daniel Schmitzer (daschmi@daschmi.de)
|
|
|
7 |
* @date: 08.06.22
|
|
|
8 |
* @time: 13:43
|
|
|
9 |
*/
|
|
|
10 |
|
|
|
11 |
$available_date = $this->view['wpsg_mod_deliverytime']['available_date'];
|
|
|
12 |
$t_date = strtotime($available_date);
|
|
|
13 |
|
|
|
14 |
$nowplusoneday = strtotime('+1 days');
|
|
|
15 |
$days_between = ceil(($t_date - mktime(0, 0, 0)) / (24 * 60 * 60));
|
|
|
16 |
|
|
|
17 |
?>
|
|
|
18 |
|
|
|
19 |
<?php if ($days_between <= 1) { ?>
|
|
|
20 |
|
8191 |
karl |
21 |
<div class="wpsg_mod_deliverytime wpsg_mod_deliverytime_product_bottom">
|
|
|
22 |
<span class="fa fa-calendar-minus-o"></span>
|
|
|
23 |
<span class="label label_deliverytime_product">Verfügbarkeit: </span>
|
|
|
24 |
<span class="label_deliverytime"><?php echo __('sofort Verfügbar', 'wpsg') ;?></span>
|
8007 |
daniel |
25 |
</div>
|
|
|
26 |
|
|
|
27 |
<?php } else { ?>
|
|
|
28 |
|
8191 |
karl |
29 |
<div class="wpsg_mod_deliverytime wpsg_mod_deliverytime_product_bottom">
|
|
|
30 |
<span class="fa fa-calendar-minus-o"></span>
|
|
|
31 |
<span class="label label_deliverytime_product">Verfügbarkeit: </span>
|
|
|
32 |
<span class="label_deliverytime"><?php echo wpsg_translate(__('Lieferbar in #1# Tagen', 'wpsg'), $days_between); ?></span>
|
8007 |
daniel |
33 |
</div>
|
|
|
34 |
|
|
|
35 |
<?php } ?>
|