Subversion Repositories wpShopGermany4

Rev

Rev 8332 | Rev 8341 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8332 Rev 8336
Line 19... Line 19...
19
<?php if ( isset($this->view['wpsg_mod_prepayment']['subject']) && ($this->get_option('wpsg_mod_prepayment_qrcode') == true) ) { ?>
19
<?php if ( isset($this->view['wpsg_mod_prepayment']['subject']) && ($this->get_option('wpsg_mod_prepayment_qrcode') == true) ) { ?>
20
 
20
 
21
	<p>
21
	<p>
22
		<?php echo __('Wenn Ihre Banking-App Girocode unterstützt, können Sie diesen QRCode scannen.', 'wpsg'); ?>
22
		<?php echo __('Wenn Ihre Banking-App Girocode unterstützt, können Sie diesen QRCode scannen.', 'wpsg'); ?>
23
	</p>
23
	</p>
24
	
24
 
25
	<?php 
-
 
26
	
-
 
27
		require_once WPSG_PATH_LIB.'phpgirocode.class.php';
25
	<?php require_once WPSG_PATH_LIB.'phpgirocode.class.php'; ?>
28
	
-
 
29
		$img = $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['o_id'], $this->view['wpsg_mod_prepayment']['subject'], $this->view['basket']['sum']['preis_gesamt_brutto'], 8, PhpGirocode::OUTPUT_BASE64));
-
 
30
	
26
 
31
		echo '<img src="data:image/png;base64,'.$img.'" />';
27
	<?php if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '0') { ?>
32
		
28
		
-
 
29
		<!-- QR-CODE für EPC und SWISS -->
-
 
30
 
-
 
31
		<?php 
-
 
32
 
-
 
33
			$img = array();
-
 
34
			$img = $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['o_id'], $this->view['wpsg_mod_prepayment']['subject'], $this->view['basket']['sum']['preis_gesamt_brutto'], 10, PhpGirocode::OUTPUT_BASE64, $this->get_option('wpsg_mod_prepayment_qrcode_country'), $this->view['basket']));
-
 
35
 
-
 
36
			echo '<div style="display: flex; justify-content: center; flex; gap: 20px;">';
-
 
37
			foreach ($img as $i) {
-
 
38
 
-
 
39
				echo '<div>';
-
 
40
					echo '<h4 style="margin-bottom: -15px; font-weight: bold;">'.$i['title'].':'.'<h4>';
-
 
41
					echo '<div class="order_done_qrcode"><img style="width: 240px; height:240px; border: solid 1px; padding: 25px;" src="data:image/png;base64,'.$i['hash'].'" /></div>';
-
 
42
				echo '</div>';
-
 
43
 
-
 
44
			}
-
 
45
			echo '</div>'
-
 
46
 
-
 
47
		?>
-
 
48
 
-
 
49
	<?php } else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '1') { ?>
-
 
50
 
-
 
51
		<!-- QR-CODE für EPC -->
-
 
52
 
-
 
53
		<?php 
-
 
54
		
-
 
55
			$img = $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['o_id'], $this->view['wpsg_mod_prepayment']['subject'], $this->view['basket']['sum']['preis_gesamt_brutto'], 10, PhpGirocode::OUTPUT_BASE64, $this->get_option('wpsg_mod_prepayment_qrcode_country')));
-
 
56
		
-
 
57
			echo '<img style="width: 320px; height:320px;" src="data:image/png;base64,'.$img.'" />';
-
 
58
			
-
 
59
		?>
-
 
60
 
-
 
61
	<?php } else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '2') { ?>
-
 
62
 
-
 
63
		<!-- QR-CODE für SWISS -->
-
 
64
 
-
 
65
		<?php 
-
 
66
 
33
	?>
67
			$img = $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['o_id'], $this->view['wpsg_mod_prepayment']['subject'], $this->view['basket']['sum']['preis_gesamt_brutto'], 10, PhpGirocode::OUTPUT_BASE64, $this->get_option('wpsg_mod_prepayment_qrcode_country'), $this->view['basket']));
-
 
68
		
-
 
69
			echo '<img style="width: 320px; height:320px;" src="data:image/png;base64,'.$img.'" />';
-
 
70
			
-
 
71
		?>
-
 
72
 
-
 
73
	<?php } ?>
34
	
74
	
35
<?php } ?>
75
<?php } ?>
36
76