Gravity PDF - Version 1.2.2

Version Description

  • Fixed bug with tempalte shipping method MERGETAGS
  • Fixed bug where attachment wasn't being sent
  • Fixed problem when all_url_fopen was turned off on server and failed to retreive remote images. Now uses WP_HTTP class.
Download this release

Release Info

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

Code changes from version 1.2.1 to 1.2.2

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.blueliquiddesigns.com.au/index.php/gravity-forms-pdf-ext
4
  Tags: gravity, forms, pdf, automation, attachment
5
  Requires at least: 3.4.1
6
  Tested up to: 3.4.1
7
- Stable tag: 1.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -31,6 +31,9 @@ Expanding on the good work of 'rposborne', who created the original [Gravity For
31
  **Demo**
32
  You can see it in action [on the Blue Liquid Designs website](http://www.blueliquiddesigns.com.au/index.php/gravity-forms-pdf-extended-plugin/#tab-demo).
33
 
 
 
 
34
  == Installation ==
35
 
36
  This section describes how to install the plugin and get it working.
@@ -63,6 +66,11 @@ By deleting the .htaccess file in the 'output' folder you'll be able to access t
63
 
64
  Remember to always make a backup of your plugin before upgrading otherwise you'll loose your custom PDF template file.
65
 
 
 
 
 
 
66
  = 1.2.1 =
67
  * Fixed path to custom css file included in PDF template
68
 
@@ -79,3 +87,8 @@ Remember to always make a backup of your plugin before upgrading otherwise you'l
79
 
80
  = 1.0.0 =
81
  * First release.
 
 
 
 
 
4
  Tags: gravity, forms, pdf, automation, attachment
5
  Requires at least: 3.4.1
6
  Tested up to: 3.4.1
7
+ Stable tag: 1.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
31
  **Demo**
32
  You can see it in action [on the Blue Liquid Designs website](http://www.blueliquiddesigns.com.au/index.php/gravity-forms-pdf-extended-plugin/#tab-demo).
33
 
34
+ **Haven't purchased Gravity Forms yet?**
35
+ By purchasing a Gravity Forms Developer License through Blue Liquid Designs you'll get a 60% discount off the retail price. That's only $80 Australian Dollars and it includes all the premium Gravity Forms features like Paypal integration, the Signature and User Registration Add-On. [Click here to find out more](http://www.blueliquiddesigns.com.au/index.php/articles/gravity-forms-developers-license/).
36
+
37
  == Installation ==
38
 
39
  This section describes how to install the plugin and get it working.
66
 
67
  Remember to always make a backup of your plugin before upgrading otherwise you'll loose your custom PDF template file.
68
 
69
+ = 1.2.2 =
70
+ * Fixed bug with tempalte shipping method MERGETAGS
71
+ * Fixed bug where attachment wasn't being sent
72
+ * Fixed problem when all_url_fopen was turned off on server and failed to retreive remote images. Now uses WP_HTTP class.
73
+
74
  = 1.2.1 =
75
  * Fixed path to custom css file included in PDF template
76
 
87
 
88
  = 1.0.0 =
89
  * First release.
90
+
91
+ == Upgrade Notice ==
92
+
93
+ = 1.2.2 =
94
+ A number of bug fixes with the new MERGETAGS style template. **Note: Backup template files before upgrade as they will be deleted by Wordpress during the update process.**
dompdf/include/_notes/dwsync.xml CHANGED
@@ -97,7 +97,7 @@
97
  <file name="frame_tree.cls.php" server="216.235.107.57" local="129908529600000000" remote="129913287000000000" />
98
  <file name="functions.inc.php" server="216.235.107.57" local="129908529600000000" remote="129913287600000000" />
99
  <file name="gd_adapter.cls.php" server="216.235.107.57" local="129908529600000000" remote="129913287600000000" />
100
- <file name="image_cache.cls.php" server="216.235.107.57" local="129908529600000000" remote="129913287600000000" />
101
  <file name="image_frame_decorator.cls.php" server="216.235.107.57" local="129908529600000000" remote="129913287600000000" />
102
  <file name="image_frame_reflower.cls.php" server="216.235.107.57" local="129908529600000000" remote="129913287600000000" />
103
  <file name="image_renderer.cls.php" server="216.235.107.57" local="129908529600000000" remote="129913287600000000" />
97
  <file name="frame_tree.cls.php" server="216.235.107.57" local="129908529600000000" remote="129913287000000000" />
98
  <file name="functions.inc.php" server="216.235.107.57" local="129908529600000000" remote="129913287600000000" />
99
  <file name="gd_adapter.cls.php" server="216.235.107.57" local="129908529600000000" remote="129913287600000000" />
100
+ <file name="image_cache.cls.php" server="216.235.107.57" local="129940735200000000" remote="129940735200000000" />
101
  <file name="image_frame_decorator.cls.php" server="216.235.107.57" local="129908529600000000" remote="129913287600000000" />
102
  <file name="image_frame_reflower.cls.php" server="216.235.107.57" local="129908529600000000" remote="129913287600000000" />
103
  <file name="image_renderer.cls.php" server="216.235.107.57" local="129908529600000000" remote="129913287600000000" />
dompdf/include/image_cache.cls.php CHANGED
@@ -81,6 +81,16 @@ class Image_Cache {
81
  $image = file_get_contents($full_url);
82
  restore_error_handler();
83
  }
 
 
 
 
 
 
 
 
 
 
84
 
85
  // Image not found or invalid
86
  if ( strlen($image) == 0 ) {
81
  $image = file_get_contents($full_url);
82
  restore_error_handler();
83
  }
84
+
85
+ if(strlen($image) == 0) {
86
+ /* try one last technique to display images */
87
+ if( !class_exists( 'WP_Http' ) ) {
88
+ include_once( ABSPATH . WPINC. '/class-http.php' );
89
+ }
90
+ $request = new WP_Http();
91
+ $result = $request->request($full_url);
92
+ $image = $result['body'];
93
+ }
94
 
95
  // Image not found or invalid
96
  if ( strlen($image) == 0 ) {
pdf-entry-detail.php CHANGED
@@ -370,10 +370,10 @@ class GFEntryDetail{
370
  foreach($products["products"] as $product){
371
  $form_array['products'][] = array(
372
  'name' => esc_html($product['name']),
373
- 'price' => esc_html($product["name"]),
374
  'options' => $product['options'],
375
  'quantity' => $product["quantity"],
376
- 'shipping' => $products['shopping']);
377
  }
378
  }
379
  }
370
  foreach($products["products"] as $product){
371
  $form_array['products'][] = array(
372
  'name' => esc_html($product['name']),
373
+ 'price' => esc_html($product['price']),
374
  'options' => $product['options'],
375
  'quantity' => $product["quantity"],
376
+ 'shipping' => $products['shipping']);
377
  }
378
  }
379
  }
pdf.php CHANGED
@@ -1,179 +1,178 @@
1
- <?php
2
-
3
- /*
4
- Plugin Name: Gravity Forms PDF Extended
5
- Plugin URI: http://www.blueliquiddesigns.com.au/index.php/gravity-forms-pdf-extended-plugin/
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. Note: If you're upgrading, backup your plugin files beforehand as your custom template will be overridden.
7
- Version: 1.2.1
8
- Author: Blue Liquid Designs
9
- Author URI: http://www.blueliquiddesigns.com.au
10
-
11
- ------------------------------------------------------------------------
12
-
13
- This program is free software; you can redistribute it and/or modify
14
- it under the terms of the GNU General Public License as published by
15
- the Free Software Foundation; either version 2 of the License, or
16
- (at your option) any later version.
17
-
18
- This program is distributed in the hope that it will be useful,
19
- but WITHOUT ANY WARRANTY; without even the implied warranty of
20
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
- GNU General Public License for more details.
22
-
23
- */
24
-
25
- /*
26
- * Handles the admin area routing
27
- * See render_to_pdf.php for PDF Output Functions
28
- */
29
-
30
- add_action('gform_entries_first_column_actions', 'pdf_link', 10, 4);
31
- add_action("gform_entry_info", "detail_pdf_link", 10, 2);
32
- add_action('wp', 'process_exterior_pages');
33
- register_activation_hook( __FILE__, 'pdf_extended_activate' );
34
-
35
-
36
- add_action('admin_init', 'gfe_admin_init', 9);
37
- add_action("gform_entry_created", "gform_pdf_example_create", 10, 2);
38
- add_filter("gform_admin_notification_attachments", 'gform_add_example_attachment', 10, 3);
39
-
40
-
41
- /*
42
- * Generate our Sample PDF for our Sample Form
43
- */
44
- function gform_pdf_example_create($entry, $form)
45
- {
46
- $user_id = $entry['id'];
47
- $form_id = $entry['form_id'];
48
-
49
- if($form['title'] == 'Gravity Forms PDF Extended Custom Template Sample')
50
- {
51
- /* include the pdf processing file */
52
- require ABSPATH. 'wp-content/plugins/gravity-forms-pdf-extended/render_to_pdf.php';
53
- /* generate and save the PDF file*/
54
- $filename = PDF_Generator($form_id, $user_id, 'save', true, 'example-template.php');
55
- }
56
- }
57
-
58
- /* Emails our sample PDF to the site administrator */
59
- function gform_add_example_attachment($attachments, $lead, $form){
60
-
61
- $form_id = $lead['form_id'];
62
- $user_id = $lead['id'];
63
- $attachments = array();
64
-
65
- if($form['title'] == 'Gravity Forms PDF Extended Custom Template Sample')
66
- {
67
- /* include PDF converter plugin */
68
- include ABSPATH. 'wp-content/plugins/gravity-forms-pdf-extended/render_to_pdf.php';
69
- $attachment_file = PDF_SAVE_LOCATION. get_pdf_filename($form_id, $user_id);
70
- $attachments[] = $attachment_file;
71
- }
72
-
73
- return $attachments;
74
- }
75
-
76
- /**
77
- * Check to see if Gravity Forms is actually installed
78
- */
79
- function gfe_admin_init()
80
- {
81
- if(!class_exists("RGForms"))
82
- {
83
- /* throw error to the admin notice bar */
84
- add_action('admin_notices', 'gf_not_installed');
85
- }
86
-
87
- if(get_option('gf_pdf_extended_sample') != 'installed')
88
- {
89
- pdf_extended_activate();
90
- }
91
- }
92
-
93
- /**
94
- * Install an example form to show off the new template system
95
- */
96
- function pdf_extended_activate()
97
- {
98
- GFExport::import_file(ABSPATH .'/wp-content/plugins/gravity-forms-pdf-extended/example-form.xml');
99
- update_option('gf_pdf_extended_sample', 'installed');
100
- }
101
-
102
- /**
103
- * Gravity Forms hasn't been installed so throw error.
104
- * We make sure the user hasn't already dismissed the error
105
- */
106
- function gf_not_installed()
107
- {
108
- global $current_user;
109
- $user_id = $current_user->ID;
110
-
111
- /* Check that the user hasn't already clicked to ignore the message */
112
- if ( ! get_user_meta($user_id, 'gfpdfe_ignore_notice') ) {
113
- // Shows as an error message. You could add a link to the right page if you wanted.
114
- echo '<div id="message" class="error"><p>';
115
- printf(__('You need to install <a href="http://www.gravityforms.com/">Gravity Forms</a> to use the Gravity Forms PDF Extended Plugin. | <a href="%1$s">Hide Notice</a>'), '?gfpdfe_nag_ignore=1');
116
- echo '</p></div>';
117
- }
118
- }
119
-
120
- /**
121
- * Gravity Forms hasn't been installed and user is dismissing the error thrown
122
- */
123
- add_action('admin_init', 'gfpdfe_nag_ignore');
124
- function gfpdfe_nag_ignore() {
125
- global $current_user;
126
- $user_id = $current_user->ID;
127
- /* If user clicks to ignore the notice, add that to their user meta */
128
- if ( isset($_GET['gfpdfe_nag_ignore']) && $_GET['gfpdfe_nag_ignore'] == 1 ) {
129
- add_user_meta($user_id, 'gfpdfe_ignore_notice', 'true', true);
130
- }
131
- }
132
-
133
- //Link for Entry Detail View (Provide both View Link and Download)
134
- function detail_pdf_link($form_id, $lead) {
135
- $lead_id = $lead['id'];
136
- echo "PDF: ";
137
- echo "<a href=\"javascript:;\" onclick=\"var notes_qs = jQuery('#gform_print_notes').is(':checked') ? '&notes=1' : ''; var url='".home_url()."/?gf_pdf=print-entry&fid=".$form_id."&lid=".$lead_id."' + notes_qs; window.open (url,'printwindow');\" class=\"button\"> View</a>";
138
- echo " <a href=\"javascript:;\" onclick=\"var notes_qs = jQuery('#gform_print_notes').is(':checked') ? '&notes=1' : ''; var url='".home_url()."/?gf_pdf=print-entry&download=1&fid=".$form_id."&lid=".$lead_id."' + notes_qs; window.open (url,'printwindow');\" class=\"button\"> Download</a>";
139
- }
140
-
141
- // Made this first... figured i would leave it in. View link on the Entry list view.
142
- function pdf_link($form_id, $field_id, $value, $lead) {
143
- $lead_id = $lead['id'];
144
- echo "| <a href=\"javascript:;\" onclick=\"var notes_qs = '&notes=1'; var url='".home_url()."/?gf_pdf=print-entry&fid=".$form_id."&lid=".$lead_id."' + notes_qs; window.open (url,'printwindow');\"> View PDF</a>";
145
- }
146
-
147
- //Handle Incoming route. Look for GF_PDF namespace
148
- function process_exterior_pages(){
149
- global $wpdb;
150
-
151
- if(rgempty("gf_pdf", $_GET))
152
- return;
153
-
154
- $form_id = $_GET['fid'];
155
- $lead_id = $_GET['lid'];
156
- $ip = $_GET['ip'];
157
- $template = (rgempty('template', $_GET)) ? 'pdf-print-entry.php' : rgget('template');
158
-
159
- /* check the lead is in the database and the IP address matches (little security booster) */
160
- $form_entries = $wpdb->get_var( $wpdb->prepare("SELECT count(*) FROM `".$wpdb->prefix."rg_lead` WHERE form_id = ".$form_id." AND status = 'active' AND id = ".$lead_id." AND ip = '".$ip."'" ) ) ;
161
-
162
- //ensure users are logged in
163
- if(!is_user_logged_in() && !rgempty('template', $_GET) && $form_entries == 0)
164
- auth_redirect();
165
-
166
- switch(rgget("gf_pdf")){
167
- case "print-entry" :
168
- require_once("render_to_pdf.php");
169
- /* call the creation class */
170
- $output = ($_GET['download'] == 1) ? 'download' : 'view';
171
- PDF_Generator((int) $_GET['fid'], (int) $_GET['lid'], $output, false, $template);
172
- break;
173
- }
174
- exit();
175
- }
176
-
177
-
178
-
179
  ?>
1
+ <?php
2
+
3
+ /*
4
+ Plugin Name: Gravity Forms PDF Extended
5
+ Plugin URI: http://www.blueliquiddesigns.com.au/index.php/gravity-forms-pdf-extended-plugin/
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. Note: If you're upgrading, backup your plugin files beforehand as your custom template will be overridden.
7
+ Version: 1.2.2
8
+ Author: Blue Liquid Designs
9
+ Author URI: http://www.blueliquiddesigns.com.au
10
+
11
+ ------------------------------------------------------------------------
12
+
13
+ This program is free software; you can redistribute it and/or modify
14
+ it under the terms of the GNU General Public License as published by
15
+ the Free Software Foundation; either version 2 of the License, or
16
+ (at your option) any later version.
17
+
18
+ This program is distributed in the hope that it will be useful,
19
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
+ GNU General Public License for more details.
22
+
23
+ */
24
+
25
+ /*
26
+ * Handles the admin area routing
27
+ * See render_to_pdf.php for PDF Output Functions
28
+ */
29
+
30
+ add_action('gform_entries_first_column_actions', 'pdf_link', 10, 4);
31
+ add_action("gform_entry_info", "detail_pdf_link", 10, 2);
32
+ add_action('wp', 'process_exterior_pages');
33
+ register_activation_hook( __FILE__, 'pdf_extended_activate' );
34
+
35
+
36
+ add_action('admin_init', 'gfe_admin_init', 9);
37
+ add_action("gform_entry_created", "gform_pdf_example_create", 10, 2);
38
+ add_filter("gform_admin_notification_attachments", 'gform_add_example_attachment', 10, 3);
39
+
40
+
41
+ /*
42
+ * Generate our Sample PDF for our Sample Form
43
+ */
44
+ function gform_pdf_example_create($entry, $form)
45
+ {
46
+ $user_id = $entry['id'];
47
+ $form_id = $entry['form_id'];
48
+
49
+ if($form['title'] == 'Gravity Forms PDF Extended Custom Template Sample')
50
+ {
51
+ /* include the pdf processing file */
52
+ require ABSPATH. 'wp-content/plugins/gravity-forms-pdf-extended/render_to_pdf.php';
53
+ /* generate and save the PDF file*/
54
+ $filename = PDF_Generator($form_id, $user_id, 'save', true, 'example-template.php');
55
+ }
56
+ }
57
+
58
+ /* Emails our sample PDF to the site administrator */
59
+ function gform_add_example_attachment($attachments, $lead, $form){
60
+
61
+ $form_id = $lead['form_id'];
62
+ $user_id = $lead['id'];
63
+ $attachments = array();
64
+
65
+ if($form['title'] == 'Gravity Forms PDF Extended Custom Template Sample')
66
+ {
67
+ /* include PDF converter plugin */
68
+ include ABSPATH. 'wp-content/plugins/gravity-forms-pdf-extended/render_to_pdf.php';
69
+ $attachment_file = PDF_SAVE_LOCATION. get_pdf_filename($form_id, $user_id);
70
+ $attachments[] = $attachment_file;
71
+ return $attachments;
72
+ }
73
+ }
74
+
75
+ /**
76
+ * Check to see if Gravity Forms is actually installed
77
+ */
78
+ function gfe_admin_init()
79
+ {
80
+ if(!class_exists("RGForms"))
81
+ {
82
+ /* throw error to the admin notice bar */
83
+ add_action('admin_notices', 'gf_not_installed');
84
+ }
85
+
86
+ if(get_option('gf_pdf_extended_sample') != 'installed')
87
+ {
88
+ pdf_extended_activate();
89
+ }
90
+ }
91
+
92
+ /**
93
+ * Install an example form to show off the new template system
94
+ */
95
+ function pdf_extended_activate()
96
+ {
97
+ GFExport::import_file(ABSPATH .'/wp-content/plugins/gravity-forms-pdf-extended/example-form.xml');
98
+ update_option('gf_pdf_extended_sample', 'installed');
99
+ }
100
+
101
+ /**
102
+ * Gravity Forms hasn't been installed so throw error.
103
+ * We make sure the user hasn't already dismissed the error
104
+ */
105
+ function gf_not_installed()
106
+ {
107
+ global $current_user;
108
+ $user_id = $current_user->ID;
109
+
110
+ /* Check that the user hasn't already clicked to ignore the message */
111
+ if ( ! get_user_meta($user_id, 'gfpdfe_ignore_notice') ) {
112
+ // Shows as an error message. You could add a link to the right page if you wanted.
113
+ echo '<div id="message" class="error"><p>';
114
+ printf(__('You need to install <a href="http://www.gravityforms.com/">Gravity Forms</a> to use the Gravity Forms PDF Extended Plugin. | <a href="%1$s">Hide Notice</a>'), '?gfpdfe_nag_ignore=1');
115
+ echo '</p></div>';
116
+ }
117
+ }
118
+
119
+ /**
120
+ * Gravity Forms hasn't been installed and user is dismissing the error thrown
121
+ */
122
+ add_action('admin_init', 'gfpdfe_nag_ignore');
123
+ function gfpdfe_nag_ignore() {
124
+ global $current_user;
125
+ $user_id = $current_user->ID;
126
+ /* If user clicks to ignore the notice, add that to their user meta */
127
+ if ( isset($_GET['gfpdfe_nag_ignore']) && $_GET['gfpdfe_nag_ignore'] == 1 ) {
128
+ add_user_meta($user_id, 'gfpdfe_ignore_notice', 'true', true);
129
+ }
130
+ }
131
+
132
+ //Link for Entry Detail View (Provide both View Link and Download)
133
+ function detail_pdf_link($form_id, $lead) {
134
+ $lead_id = $lead['id'];
135
+ echo "PDF: ";
136
+ echo "<a href=\"javascript:;\" onclick=\"var notes_qs = jQuery('#gform_print_notes').is(':checked') ? '&notes=1' : ''; var url='".home_url()."/?gf_pdf=print-entry&fid=".$form_id."&lid=".$lead_id."' + notes_qs; window.open (url,'printwindow');\" class=\"button\"> View</a>";
137
+ echo " <a href=\"javascript:;\" onclick=\"var notes_qs = jQuery('#gform_print_notes').is(':checked') ? '&notes=1' : ''; var url='".home_url()."/?gf_pdf=print-entry&download=1&fid=".$form_id."&lid=".$lead_id."' + notes_qs; window.open (url,'printwindow');\" class=\"button\"> Download</a>";
138
+ }
139
+
140
+ // Made this first... figured i would leave it in. View link on the Entry list view.
141
+ function pdf_link($form_id, $field_id, $value, $lead) {
142
+ $lead_id = $lead['id'];
143
+ echo "| <a href=\"javascript:;\" onclick=\"var notes_qs = '&notes=1'; var url='".home_url()."/?gf_pdf=print-entry&fid=".$form_id."&lid=".$lead_id."' + notes_qs; window.open (url,'printwindow');\"> View PDF</a>";
144
+ }
145
+
146
+ //Handle Incoming route. Look for GF_PDF namespace
147
+ function process_exterior_pages(){
148
+ global $wpdb;
149
+
150
+ if(rgempty("gf_pdf", $_GET))
151
+ return;
152
+
153
+ $form_id = $_GET['fid'];
154
+ $lead_id = $_GET['lid'];
155
+ $ip = $_GET['ip'];
156
+ $template = (rgempty('template', $_GET)) ? 'pdf-print-entry.php' : rgget('template');
157
+
158
+ /* check the lead is in the database and the IP address matches (little security booster) */
159
+ $form_entries = $wpdb->get_var( $wpdb->prepare("SELECT count(*) FROM `".$wpdb->prefix."rg_lead` WHERE form_id = ".$form_id." AND status = 'active' AND id = ".$lead_id." AND ip = '".$ip."'", array() ) ) ;
160
+
161
+ //ensure users are logged in
162
+ if(!is_user_logged_in() && !rgempty('template', $_GET) && $form_entries == 0)
163
+ auth_redirect();
164
+
165
+ switch(rgget("gf_pdf")){
166
+ case "print-entry" :
167
+ require_once("render_to_pdf.php");
168
+ /* call the creation class */
169
+ $output = ($_GET['download'] == 1) ? 'download' : 'view';
170
+ PDF_Generator((int) $_GET['fid'], (int) $_GET['lid'], $output, false, $template);
171
+ break;
172
+ }
173
+ exit();
174
+ }
175
+
176
+
177
+
 
178
  ?>
render_to_pdf.php CHANGED
@@ -11,10 +11,7 @@ if (!function_exists('GetRequire')) {
11
  }
12
  }
13
 
14
- if(!defined('PDF_SAVE_LOCATION'))
15
- {
16
- define('PDF_SAVE_LOCATION', dirname(__FILE__)."/output/");
17
- }
18
 
19
  /**
20
  * Outputs a PDF entry from a Gravity Form
11
  }
12
  }
13
 
14
+ define('PDF_SAVE_LOCATION', dirname(__FILE__)."/output/");
 
 
 
15
 
16
  /**
17
  * Outputs a PDF entry from a Gravity Form
templates/_notes/dwsync.xml ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <dwsync>
3
+ <file name="pdf-print-entry.php" server="216.235.107.57" local="129939423000000000" remote="129939423000000000" />
4
+ <file name="example-template.php" server="216.235.107.57" local="129941326893124463" remote="129940750800000000" />
5
+ </dwsync>
templates/example-template.php CHANGED
@@ -1,6 +1,5 @@
1
  <?php
2
- error_reporting(E_ALL);
3
- ini_set("display_errors", 1);
4
  //For backwards compatibility, load wordpress if it hasn't been loaded yet
5
  //Will be used if this file is being called directly
6
  if(!class_exists("RGForms")){
@@ -114,6 +113,8 @@ $form = RGFormsModel::get_form_meta($form_id);
114
 
115
  <p><strong>Example:</strong> http://www.yourdomain.com/?gf_pdf=print-entry&amp;fid=5&amp;lid=142&amp;notes=1&amp;template=example-template.php</p>
116
 
 
 
117
  <p>As always, all documentation can be found via the <a href="http://www.blueliquiddesigns.com.au/index.php/gravity-forms-pdf-extended-plugin/">Plugin's official website.</a></p>
118
 
119
  <br /><br />
1
  <?php
2
+
 
3
  //For backwards compatibility, load wordpress if it hasn't been loaded yet
4
  //Will be used if this file is being called directly
5
  if(!class_exists("RGForms")){
113
 
114
  <p><strong>Example:</strong> http://www.yourdomain.com/?gf_pdf=print-entry&amp;fid=5&amp;lid=142&amp;notes=1&amp;template=example-template.php</p>
115
 
116
+ <p><strong>Remember to backup your template files when upgrading as Wordpress will DELETE all old plugin files before installing the latest version. Once done, drop your custom template back in the template folder.</strong></p>
117
+
118
  <p>As always, all documentation can be found via the <a href="http://www.blueliquiddesigns.com.au/index.php/gravity-forms-pdf-extended-plugin/">Plugin's official website.</a></p>
119
 
120
  <br /><br />