Gravity PDF - Version 3.4.0.3

Version Description

  • Bug - Define array_replace_recursive() if it doesn't exist, as it is PHP 5.3 only.
Download this release

Release Info

Developer Blue Liquid Designs
Plugin Icon 128x128 Gravity PDF
Version 3.4.0.3
Comparing to
See all releases

Code changes from version 3.4.0.2 to 3.4.0.3

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.gravityformspdfextended.com
4
  Tags: gravity, forms, pdf, automation, attachment
5
  Requires at least: 3.5
6
  Tested up to: 3.9
7
- Stable tag: 3.4.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -78,6 +78,9 @@ All FAQs can be [viewed on the Gravity Forms PDF Extended website](http://gravit
78
 
79
  == Changelog ==
80
 
 
 
 
81
  = 3.4.0.2 =
82
  * Housekeeping - Wrapped the View PDF and Download buttons in correct language functions - _e()
83
  * Bug - Fix problem displaying the signature field
4
  Tags: gravity, forms, pdf, automation, attachment
5
  Requires at least: 3.5
6
  Tested up to: 3.9
7
+ Stable tag: 3.4.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
78
 
79
  == Changelog ==
80
 
81
+ = 3.4.0.3 =
82
+ * Bug - Define array_replace_recursive() if it doesn't exist, as it is PHP 5.3 only.
83
+
84
  = 3.4.0.2 =
85
  * Housekeeping - Wrapped the View PDF and Download buttons in correct language functions - _e()
86
  * Bug - Fix problem displaying the signature field
helper/pdf-common.php CHANGED
@@ -228,3 +228,4 @@ class PDF_Common
228
  }
229
 
230
  }
 
228
  }
229
 
230
  }
231
+
mPDF.zip CHANGED
Binary file
pdf.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Gravity Forms PDF Extended
5
  Plugin URI: http://www.gravityformspdfextended.com
6
  Description: Gravity Forms PDF Extended allows you to save/view/download a PDF from the front- and back-end, and automate PDF creation on form submission. Our Business Plus package also allows you to overlay field onto an existing PDF.
7
- Version: 3.4.0.2
8
  Author: Blue Liquid Designs
9
  Author URI: http://www.blueliquiddesigns.com.au
10
 
@@ -33,7 +33,7 @@ GNU General Public License for more details.
33
  /*
34
  * Define our constants
35
  */
36
- if(!defined('PDF_EXTENDED_VERSION')) { define('PDF_EXTENDED_VERSION', '3.4.0.2'); }
37
  if(!defined('GF_PDF_EXTENDED_SUPPORTED_VERSION')) { define('GF_PDF_EXTENDED_SUPPORTED_VERSION', '1.7'); }
38
  if(!defined('GF_PDF_EXTENDED_WP_SUPPORTED_VERSION')) { define('GF_PDF_EXTENDED_WP_SUPPORTED_VERSION', '3.5'); }
39
  if(!defined('GF_PDF_EXTENDED_PHP_SUPPORTED_VERSION')) { define('GF_PDF_EXTENDED_PHP_SUPPORTED_VERSION', '5'); }
@@ -351,3 +351,46 @@ class GFPDF_Core extends PDFGenerator
351
  }
352
 
353
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  Plugin Name: Gravity Forms PDF Extended
5
  Plugin URI: http://www.gravityformspdfextended.com
6
  Description: Gravity Forms PDF Extended allows you to save/view/download a PDF from the front- and back-end, and automate PDF creation on form submission. Our Business Plus package also allows you to overlay field onto an existing PDF.
7
+ Version: 3.4.0.3
8
  Author: Blue Liquid Designs
9
  Author URI: http://www.blueliquiddesigns.com.au
10
 
33
  /*
34
  * Define our constants
35
  */
36
+ if(!defined('PDF_EXTENDED_VERSION')) { define('PDF_EXTENDED_VERSION', '3.4.0.3'); }
37
  if(!defined('GF_PDF_EXTENDED_SUPPORTED_VERSION')) { define('GF_PDF_EXTENDED_SUPPORTED_VERSION', '1.7'); }
38
  if(!defined('GF_PDF_EXTENDED_WP_SUPPORTED_VERSION')) { define('GF_PDF_EXTENDED_WP_SUPPORTED_VERSION', '3.5'); }
39
  if(!defined('GF_PDF_EXTENDED_PHP_SUPPORTED_VERSION')) { define('GF_PDF_EXTENDED_PHP_SUPPORTED_VERSION', '5'); }
351
  }
352
 
353
  }
354
+
355
+ /*
356
+ * array_replace_recursive was added in PHP5.3
357
+ * Add fallback support for those with a version lower than this
358
+ */
359
+
360
+
361
+ if (!function_exists('array_replace_recursive'))
362
+ {
363
+ function array_replace_recursive()
364
+ {
365
+ // Get array arguments
366
+ $arrays = func_get_args();
367
+
368
+ // Define the original array
369
+ $original = array_shift($arrays);
370
+
371
+ // Loop through arrays
372
+ foreach ($arrays as $array)
373
+ {
374
+ // Loop through array key/value pairs
375
+ foreach ($array as $key => $value)
376
+ {
377
+ // Value is an array
378
+ if (is_array($value))
379
+ {
380
+ // Traverse the array; replace or add result to original array
381
+ $original[$key] = array_join($original[$key], $array[$key]);
382
+ }
383
+
384
+ // Value is not an array
385
+ else
386
+ {
387
+ // Replace or add current value to original array
388
+ $original[$key] = $value;
389
+ }
390
+ }
391
+ }
392
+
393
+ // Return the joined array
394
+ return $original;
395
+ }
396
+ }
view/templates/settings/changelog.php CHANGED
@@ -19,7 +19,11 @@
19
  <h2><?php _e('Changelog'); ?></h2>
20
 
21
  <p><strong>Current Version: <?php echo PDF_EXTENDED_VERSION; ?></strong></p>
22
-
 
 
 
 
23
  <ul>
24
  <li>Housekeeping - Wrapped the View PDF and Download buttons in correct language functions - _e()</li>
25
  <li>Bug - Fix problem displaying the signature field</li>
19
  <h2><?php _e('Changelog'); ?></h2>
20
 
21
  <p><strong>Current Version: <?php echo PDF_EXTENDED_VERSION; ?></strong></p>
22
+ <ul>
23
+ <li>Bug - Define array_replace_recursive() if it doesn't exist, as it is PHP 5.3 only. </li>
24
+ </ul>
25
+
26
+ <h3>3.4.0.2</h3>
27
  <ul>
28
  <li>Housekeeping - Wrapped the View PDF and Download buttons in correct language functions - _e()</li>
29
  <li>Bug - Fix problem displaying the signature field</li>
view/templates/settings/initialisation.php CHANGED
@@ -28,7 +28,7 @@
28
  <strong><?php _e('Upgrading', 'pdfextended'); ?></strong>: <?php _e('Copies the latest default and example templates, as well as the template.css file to the PDF_EXTENDED_TEMPLATE folder.', 'pdfextended'); ?> <strong><?php _e('If you modified these files please back them up before re-initialising as they will be removed', 'pdfextneded'); ?></strong>.
29
  </li>
30
  <li><?php _e('Unzips the mPDF package', 'pdfextended'); ?></li>
31
- <li><?php _e('Installs any fonts found in the PDF_EXTENDED_TEMPLATE/fonts/ folder', 'pdfexnteded'); ?></li>
32
  </ol>
33
  <?php endif; ?>
34
  <form method="post">
28
  <strong><?php _e('Upgrading', 'pdfextended'); ?></strong>: <?php _e('Copies the latest default and example templates, as well as the template.css file to the PDF_EXTENDED_TEMPLATE folder.', 'pdfextended'); ?> <strong><?php _e('If you modified these files please back them up before re-initialising as they will be removed', 'pdfextneded'); ?></strong>.
29
  </li>
30
  <li><?php _e('Unzips the mPDF package', 'pdfextended'); ?></li>
31
+ <li><?php _e('Installs any fonts found in the PDF_EXTENDED_TEMPLATES/fonts/ folder', 'pdfextended'); ?></li>
32
  </ol>
33
  <?php endif; ?>
34
  <form method="post">