Gravity PDF - Version 3.4.0.2

Version Description

  • Housekeeping - Wrapped the View PDF and Download buttons in correct language functions - _e()
  • Bug - Fix problem displaying the signature field
  • Bug - Fix notice errors with new 'save' PDF hook
Download this release

Release Info

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

Code changes from version 3.4.0.1 to 3.4.0.2

README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: blueliquiddesigns
3
  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.1
7
- Stable tag: 3.4.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -78,6 +78,11 @@ All FAQs can be [viewed on the Gravity Forms PDF Extended website](http://gravit
78
 
79
  == Changelog ==
80
 
 
 
 
 
 
81
  = 3.4.0.1 =
82
  * Housekeeping - Add commas on the last line of every config node in the configuration.php file
83
  * Housekeeping - Fix up initialisation error messages
3
  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
 
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
84
+ * Bug - Fix notice errors with new 'save' PDF hook
85
+
86
  = 3.4.0.1 =
87
  * Housekeeping - Add commas on the last line of every config node in the configuration.php file
88
  * Housekeeping - Fix up initialisation error messages
helper/pdf-entry-detail.php CHANGED
@@ -2,7 +2,7 @@
2
  if(!class_exists('GFPDFEntryDetail'))
3
  {
4
 
5
- add_filter('gform_field_content', array('GFPDFEntryDetail', 'encode_tags'), 10, 2); /* encode shortcodes in user's response so they aren't converted later by do_shortcode */
6
  class GFPDFEntryDetail {
7
 
8
  /* holds the form fields, stored by field ID */
@@ -110,7 +110,7 @@ if(!class_exists('GFPDFEntryDetail'))
110
  $value = '';
111
 
112
  $content = '<div id="field-'. $field['id'] .'" class="entry-view-html-value' . $last_row . $even . '"><div class="value">' . $display_value . '</div></div>';
113
- $content = apply_filters('gform_field_content', $content, $field, $value, $lead['id'], $form['id']);
114
 
115
  if($return === true)
116
  {
@@ -188,7 +188,7 @@ if(!class_exists('GFPDFEntryDetail'))
188
 
189
  $content = '<div id="field-'. $field['id'] .'" class="entry-view-field-value' . $last_row . $even . '"><div class="strong">' . esc_html(GFCommon::get_label($field)) . '</div> <div class="value">' . $display_value . '</div></div>';
190
 
191
- $content = apply_filters('gform_field_content', $content, $field, $value, $lead['id'], $form['id']);
192
 
193
  if($return === true)
194
  {
@@ -337,7 +337,7 @@ if(!class_exists('GFPDFEntryDetail'))
337
  $display_value = apply_filters('gform_entry_field_value', self::pdf_get_lead_field_display($field, $value, ''), $field, $lead, $form);
338
  $content = $display_value;
339
 
340
- $results = apply_filters('gform_field_content', $content, $field, $value, $lead['id'], $form['id']);
341
 
342
  return $results;
343
  }
@@ -1897,7 +1897,7 @@ if(!class_exists('GFPDFEntryDetail'))
1897
 
1898
  public static function encode_tags($content, $field)
1899
  {
1900
- if(RGFormsModel::get_input_type($field) != 'html')
1901
  {
1902
  $content = str_replace('[', '&#91;', $content);
1903
  $content = str_replace(']', '&#93;', $content);
2
  if(!class_exists('GFPDFEntryDetail'))
3
  {
4
 
5
+ add_filter('gfpdf_field_content', array('GFPDFEntryDetail', 'encode_tags'), 10, 2); /* encode shortcodes in user's response so they aren't converted later by do_shortcode */
6
  class GFPDFEntryDetail {
7
 
8
  /* holds the form fields, stored by field ID */
110
  $value = '';
111
 
112
  $content = '<div id="field-'. $field['id'] .'" class="entry-view-html-value' . $last_row . $even . '"><div class="value">' . $display_value . '</div></div>';
113
+ $content = apply_filters('gfpdf_field_content', $content, $field, $value, $lead['id'], $form['id']);
114
 
115
  if($return === true)
116
  {
188
 
189
  $content = '<div id="field-'. $field['id'] .'" class="entry-view-field-value' . $last_row . $even . '"><div class="strong">' . esc_html(GFCommon::get_label($field)) . '</div> <div class="value">' . $display_value . '</div></div>';
190
 
191
+ $content = apply_filters('gfpdf_field_content', $content, $field, $value, $lead['id'], $form['id']);
192
 
193
  if($return === true)
194
  {
337
  $display_value = apply_filters('gform_entry_field_value', self::pdf_get_lead_field_display($field, $value, ''), $field, $lead, $form);
338
  $content = $display_value;
339
 
340
+ $results = apply_filters('gfpdf_field_content', $content, $field, $value, $lead['id'], $form['id']);
341
 
342
  return $results;
343
  }
1897
 
1898
  public static function encode_tags($content, $field)
1899
  {
1900
+ if(RGFormsModel::get_input_type($field) != 'html' || RGFormsModel::get_input_type($field) != 'signature')
1901
  {
1902
  $content = str_replace('[', '&#91;', $content);
1903
  $content = str_replace(']', '&#93;', $content);
model/pdf.php CHANGED
@@ -158,8 +158,8 @@ class GFPDF_Core_Model
158
  echo $name;
159
  $url = home_url() .'/?gf_pdf=1&aid='. $aid .'&fid=' . $form_id . '&lid=' . $lead_id . '&template=' . $val['template'];
160
  ?></span>
161
- <a href="<?php echo $url; ?>" target="_blank" class="button">View</a>
162
- <a href="<?php echo $url.'&download=1'; ?>" target="_blank" class="button">Download</a></div>
163
 
164
  <?php endforeach; ?>
165
 
@@ -171,8 +171,8 @@ class GFPDF_Core_Model
171
  $url = home_url() .'/?gf_pdf=1&fid=' . $form_id . '&lid=' . $lead_id . '&template=' . $templates;
172
 
173
  ?>
174
- PDF: <a href="<?php echo $url; ?>" target="_blank" class="button">View</a>
175
- <a href="<?php echo $url.'&download=1'; ?>" target="_blank" class="button">Download</a>
176
  <?php
177
  }
178
  }
@@ -207,7 +207,7 @@ class GFPDF_Core_Model
207
  {
208
  ?>
209
  <span class="gf_form_toolbar_settings gf_form_action_has_submenu">
210
- | <a href="#" title="View PDF configured for this form" onclick="return false" class="">View PDFs</a>
211
 
212
  <div class="gf_submenu">
213
  <ul>
@@ -238,7 +238,7 @@ class GFPDF_Core_Model
238
  $url = home_url() . '/?gf_pdf=1&fid=' . $form_id .'&lid=' . $lead_id . '&template=' . $templates;
239
 
240
  ?>
241
- | <a href="<?php echo $url; ?>" target="_blank">View PDF</a>
242
  <?php
243
  }
244
  }
@@ -384,7 +384,7 @@ class GFPDF_Core_Model
384
 
385
  if(!$config = $gfpdf->get_config($form_id))
386
  {
387
- return $notification;
388
  }
389
 
390
  /*
@@ -687,7 +687,9 @@ class GFPDF_Core_Model
687
  $index = key($gfpdf->configuration);
688
 
689
  /* now add to the index */
690
- $gfpdf->assign_index($form_id, $index);
 
 
691
 
692
  }
693
  }
@@ -727,6 +729,6 @@ class GFPDF_Core_Model
727
  /* there aren't multiples so just return first node */
728
  return $gfpdf->index[$form_id][0];
729
  }
730
- return $index;
731
  }
732
  }
158
  echo $name;
159
  $url = home_url() .'/?gf_pdf=1&aid='. $aid .'&fid=' . $form_id . '&lid=' . $lead_id . '&template=' . $val['template'];
160
  ?></span>
161
+ <a href="<?php echo $url; ?>" target="_blank" class="button"><?php _e('View', 'pdfextended'); ?></a>
162
+ <a href="<?php echo $url.'&download=1'; ?>" target="_blank" class="button"><?php _e('Download', 'pdfextended'); ?></a></div>
163
 
164
  <?php endforeach; ?>
165
 
171
  $url = home_url() .'/?gf_pdf=1&fid=' . $form_id . '&lid=' . $lead_id . '&template=' . $templates;
172
 
173
  ?>
174
+ <?php _e('PDF', 'pdfextended'); ?>: <a href="<?php echo $url; ?>" target="_blank" class="button"><?php _e('View', 'pdfextended'); ?></a>
175
+ <a href="<?php echo $url.'&download=1'; ?>" target="_blank" class="button"><?php _e('Download', 'pdfextended'); ?></a>
176
  <?php
177
  }
178
  }
207
  {
208
  ?>
209
  <span class="gf_form_toolbar_settings gf_form_action_has_submenu">
210
+ | <a href="#" title="View PDF configured for this form" onclick="return false" class=""><?php _e('View PDFs', 'pdfextended'); ?></a>
211
 
212
  <div class="gf_submenu">
213
  <ul>
238
  $url = home_url() . '/?gf_pdf=1&fid=' . $form_id .'&lid=' . $lead_id . '&template=' . $templates;
239
 
240
  ?>
241
+ | <a href="<?php echo $url; ?>" target="_blank"><?php _e('View PDF', 'pdfextended'); ?></a>
242
  <?php
243
  }
244
  }
384
 
385
  if(!$config = $gfpdf->get_config($form_id))
386
  {
387
+ return false;
388
  }
389
 
390
  /*
687
  $index = key($gfpdf->configuration);
688
 
689
  /* now add to the index */
690
+ $gfpdf->assign_index($form_id, $index);
691
+
692
+ return $index;
693
 
694
  }
695
  }
729
  /* there aren't multiples so just return first node */
730
  return $gfpdf->index[$form_id][0];
731
  }
732
+ return false;
733
  }
734
  }
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.1
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.1'); }
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'); }
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
  /*
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'); }
view/templates/settings/changelog.php CHANGED
@@ -19,6 +19,14 @@
19
  <h2><?php _e('Changelog'); ?></h2>
20
 
21
  <p><strong>Current Version: <?php echo PDF_EXTENDED_VERSION; ?></strong></p>
 
 
 
 
 
 
 
 
22
  <ul>
23
  <li>Housekeeping - Add commas on the last line of every config node in the configuration.php file</li>
24
  <li>Housekeeping - Fix up initialisation error messages</li>
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>
26
+ <li>Bug - Fix notice errors with new 'save' PDF hook</li>
27
+ </ul>
28
+
29
+ <h3>3.4.0.1</h3>
30
  <ul>
31
  <li>Housekeeping - Add commas on the last line of every config node in the configuration.php file</li>
32
  <li>Housekeeping - Fix up initialisation error messages</li>