Version Description
None
Download this release
Release Info
Developer | mra13 |
Plugin | WordPress Simple PayPal Shopping Cart |
Version | 3.8.1 |
Comparing to | |
See all releases |
Code changes from version 3.8 to 3.8.1
- lib/gallery-wp-cart.php +58 -0
- readme.txt +1 -1
- wp_shopping_cart.php +2 -2
- wp_shopping_cart_misc_functions.php +30 -19
lib/gallery-wp-cart.php
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
Template Page for the gallery overview
|
4 |
+
|
5 |
+
Follow variables are useable :
|
6 |
+
|
7 |
+
$gallery : Contain all about the gallery
|
8 |
+
$images : Contain all images, path, title
|
9 |
+
$pagination : Contain the pagination content
|
10 |
+
|
11 |
+
You can check the content when you insert the tag <?php var_dump($variable) ?>
|
12 |
+
If you would like to show the timestamp of the image ,you can use <?php echo $exif['created_timestamp'] ?>
|
13 |
+
**/
|
14 |
+
?>
|
15 |
+
<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($gallery)) : ?>
|
16 |
+
|
17 |
+
<div class="ngg-galleryoverview" id="ngg-gallery-<?php echo $gallery->ID ?>">
|
18 |
+
|
19 |
+
<?php if ($gallery->show_slideshow) { ?>
|
20 |
+
<!-- Slideshow link -->
|
21 |
+
<div class="slideshowlink">
|
22 |
+
<a class="slideshowlink" href="<?php echo $gallery->slideshow_link ?>">
|
23 |
+
<?php echo $gallery->slideshow_link_text ?>
|
24 |
+
</a>
|
25 |
+
</div>
|
26 |
+
<?php } ?>
|
27 |
+
|
28 |
+
<?php if ($gallery->show_piclens) { ?>
|
29 |
+
<!-- Piclense link -->
|
30 |
+
<div class="piclenselink">
|
31 |
+
<a class="piclenselink" href="<?php echo $gallery->piclens_link ?>">
|
32 |
+
<?php _e('[View with PicLens]','nggallery'); ?>
|
33 |
+
</a>
|
34 |
+
</div>
|
35 |
+
<?php } ?>
|
36 |
+
|
37 |
+
<!-- Thumbnails -->
|
38 |
+
<?php foreach ($images as $image) : ?>
|
39 |
+
|
40 |
+
<div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box" <?php echo $gallery->imagewidth ?> >
|
41 |
+
<div class="ngg-gallery-thumbnail" >
|
42 |
+
<a href="<?php echo $image->imageURL ?>" title="" <?php echo $image->thumbcode ?> >
|
43 |
+
<img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> />
|
44 |
+
</a>
|
45 |
+
<span><?php echo do_shortcode($image->caption); ?></span>
|
46 |
+
</div>
|
47 |
+
</div>
|
48 |
+
<?php if ( $gallery->columns > 0 && ++$i % $gallery->columns == 0 ) { ?>
|
49 |
+
<br style="clear: both" />
|
50 |
+
<?php } ?>
|
51 |
+
<?php endforeach; ?>
|
52 |
+
|
53 |
+
<!-- Pagination -->
|
54 |
+
<?php echo $pagination ?>
|
55 |
+
|
56 |
+
</div>
|
57 |
+
|
58 |
+
<?php endif; ?>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.tipsandtricks-hq.com
|
|
4 |
Tags: cart, shopping cart, WordPress shopping cart, Paypal shopping cart, sell products, online shop, shop, e-commerce, wordpress ecommerce, wordpress store, store, PayPal cart widget, sell digital products, digital downloads, paypal, paypal cart, e-shop,
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.6
|
7 |
-
Stable tag: 3.8
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Very easy to use Simple WordPress Paypal Shopping Cart Plugin. Great for selling products online in one click from your WordPress site.
|
4 |
Tags: cart, shopping cart, WordPress shopping cart, Paypal shopping cart, sell products, online shop, shop, e-commerce, wordpress ecommerce, wordpress store, store, PayPal cart widget, sell digital products, digital downloads, paypal, paypal cart, e-shop,
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.6
|
7 |
+
Stable tag: 3.8.1
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Very easy to use Simple WordPress Paypal Shopping Cart Plugin. Great for selling products online in one click from your WordPress site.
|
wp_shopping_cart.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Simple Paypal Shopping cart
|
4 |
-
Version: v3.8
|
5 |
Plugin URI: http://www.tipsandtricks-hq.com/?p=768
|
6 |
Author: Ruhul Amin
|
7 |
Author URI: http://www.tipsandtricks-hq.com/
|
@@ -12,7 +12,7 @@ if(!isset($_SESSION)){
|
|
12 |
session_start();
|
13 |
}
|
14 |
|
15 |
-
define('WP_CART_VERSION', '3.8');
|
16 |
define('WP_CART_FOLDER', dirname(plugin_basename(__FILE__)));
|
17 |
define('WP_CART_PATH',plugin_dir_path( __FILE__ ));
|
18 |
define('WP_CART_URL', plugins_url('',__FILE__));
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Simple Paypal Shopping cart
|
4 |
+
Version: v3.8.1
|
5 |
Plugin URI: http://www.tipsandtricks-hq.com/?p=768
|
6 |
Author: Ruhul Amin
|
7 |
Author URI: http://www.tipsandtricks-hq.com/
|
12 |
session_start();
|
13 |
}
|
14 |
|
15 |
+
define('WP_CART_VERSION', '3.8.1');
|
16 |
define('WP_CART_FOLDER', dirname(plugin_basename(__FILE__)));
|
17 |
define('WP_CART_PATH',plugin_dir_path( __FILE__ ));
|
18 |
define('WP_CART_URL', plugins_url('',__FILE__));
|
wp_shopping_cart_misc_functions.php
CHANGED
@@ -15,13 +15,14 @@ function wp_cart_init_handler()
|
|
15 |
wpc_create_orders_page();
|
16 |
}
|
17 |
else//Init hook handing code for front end
|
18 |
-
{
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
25 |
}
|
26 |
}
|
27 |
|
@@ -66,17 +67,27 @@ function wp_cart_get_custom_var_array($custom_val_string)
|
|
66 |
|
67 |
function wspsc_reset_logfile()
|
68 |
{
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
$text .= "\n------------------------------------------------------------------\n\n";
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
}
|
15 |
wpc_create_orders_page();
|
16 |
}
|
17 |
else//Init hook handing code for front end
|
18 |
+
{
|
19 |
+
add_filter('ngg_render_template','wp_cart_ngg_template_handler',10,2);
|
20 |
+
if(isset($_REQUEST['simple_cart_ipn']))
|
21 |
+
{
|
22 |
+
include_once('paypal.php');
|
23 |
+
wpc_handle_paypal_ipn();
|
24 |
+
exit;
|
25 |
+
}
|
26 |
}
|
27 |
}
|
28 |
|
67 |
|
68 |
function wspsc_reset_logfile()
|
69 |
{
|
70 |
+
$log_reset = true;
|
71 |
+
$logfile = dirname(__FILE__).'/ipn_handle_debug.log';
|
72 |
+
$text = '['.date('m/d/Y g:i A').'] - SUCCESS : Log file reset';
|
73 |
$text .= "\n------------------------------------------------------------------\n\n";
|
74 |
+
$fp = fopen($logfile, 'w');
|
75 |
+
if($fp != FALSE) {
|
76 |
+
@fwrite($fp, $text);
|
77 |
+
@fclose($fp);
|
78 |
+
}
|
79 |
+
else{
|
80 |
+
$log_reset = false;
|
81 |
+
}
|
82 |
+
return $log_reset;
|
83 |
+
}
|
84 |
+
|
85 |
+
function wp_cart_ngg_template_handler($arg1,$arg2)
|
86 |
+
{
|
87 |
+
if($arg2=="gallery-wp-cart"){
|
88 |
+
$template_name = "gallery-wp-cart";
|
89 |
+
$gallery_template = WP_CART_PATH. "/lib/$template_name.php";
|
90 |
+
return $gallery_template;
|
91 |
+
}
|
92 |
+
return $arg2;
|
93 |
}
|