Subversion Repositories wpShopGermany4

Rev

Rev 5261 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5261 Rev 7214
Line 5... Line 5...
5
	 */
5
	 */
6
 
6
 
7
?>
7
?>
8
 
8
 
9
<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_paypalapi_paypalexpress'))) { ?>
9
<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_paypalapi_paypalexpress'))) { ?>
10
<div class="wpsg_mod_paypalapi_button_wrap">
-
 
11
	<button type="submit" name="wpsg_mod_submit" value="wpsg_mod_paypalapi" class="wpsg_mod_paypalapi_button">
-
 
12
		<img src="<?php echo $this->getRessourceURL('mods/mod_paypalapi/gfx/checkout-logo-small-de.png'); ?>" alt="<?php echo __('Direkt zu PayPal', 'wpsg'); ?>" />
-
 
13
	</button>
-
 
14
	<div class="wpsg_clear"></div>
-
 
15
</div>
-
 
16
<?php } ?>
-
 
17
10
	
-
 
11
	<div class="wpsg_mod_paypalapi_button_wrap">
-
 
12
		<button type="submit" name="wpsg_mod_submit" value="wpsg_mod_paypalapi" class="wpsg_mod_paypalapi_button">
-
 
13
			<img src="<?php echo $this->getRessourceURL('mods/mod_paypalapi/gfx/checkout-logo-small-de.png'); ?>" alt="<?php echo __('Direkt zu PayPal', 'wpsg'); ?>" />
-
 
14
		</button>
-
 
15
		<div class="wpsg_clear"></div>
-
 
16
	</div>
-
 
17
	
-
 
18
<?php } ?>
-
 
19
 
-
 
20
<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_paypalapi_plus_basket'))) { ?>
-
 
21
 
-
 
22
	<h2><?php echo __('Zahlungsart wählen', 'wpsg'); ?></h2>
-
 
23
 
-
 
24
	<script src="https://www.paypalobjects.com/webstatic/ppplus/ppplus.min.js" type="text/javascript"></script>
-
 
25
	<div id="wpsg_ppplus" style="padding-right:0px;"></div>
-
 
26
 
-
 
27
	<script type="application/javascript">
-
 
28
		
-
 
29
		/**
-
 
30
		 * Wird vom PayPal PLUS IFrame aufgerufen wenn fertig geladen
-
 
31
		 */
-
 
32
		function wpsg_mod_paypalapi_load()
-
 
33
		{
-
 
34
 
-
 
35
			jQuery('#wpsg_basket_submit').on('click', function(event) {
-
 
36
 
-
 
37
				PAYPAL.apps.PPP.doCheckout();
-
 
38
				
-
 
39
				event.stopPropagation();
-
 
40
				
-
 
41
				return false;
-
 
42
 
-
 
43
			} );
-
 
44
 
-
 
45
		}
-
 
46
		
-
 
47
		<?php $this->render(WPSG_PATH_VIEW.'/mods/mod_paypalapi/paypalplus.phtml'); ?>
-
 
48
 
-
 
49
	</script>
-
 
50
 
-
 
51
<?php } ?>
-
 
52