Subversion Repositories wpShopGermany4

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
 
21
	<div class="wpsg_mod_deliverytime_product_bottom">
22
		<?php echo __('sofort Lieferbar', 'wpsg') ;?>
23
	</div>
24
 
25
<?php } else { ?>
26
 
27
	<div class="wpsg_mod_deliverytime_product_bottom">
28
		<?php echo wpsg_translate(__('Lieferbar in #1# Tagen', 'wpsg'), $days_between); ?>
29
	</div>
30
 
31
<?php } ?>