Gravity PDF - Version 4.0.3

Version Description

  • Fix incorrect product calculations when using decimal comma format eg. 1.000,50 (GH#442)
  • Rename $config variable to $html_config in core templates (GH#451)
  • Don't chain CSS in our default setters or set fixed font size in templates (GH#446)
  • Fix display issues for certain characters with DejaVu Sans font family in PDFs (GH#456)
  • Ensure QueryPath produces valid UTF-8 data after processing (GH#452)
  • Re-running the Custom Template Setup will override working directory templates with same name (GH#457)
  • Fixed legacy Name field PHP warnings (GH#448)
  • Replace translations with their escaped function counterparts (GH#463)
  • Duplicating PDFs will now be inactive by default (GH#458)
  • Tweaked the "Show Page Names" field description (GH#449)
Download this release

Release Info

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

Code changes from version 4.0.2 to 4.0.3

Files changed (74) hide show
  1. README.txt +17 -2
  2. api.php +2 -2
  3. pdf.php +13 -13
  4. resources/images/mpdfstyletables.css +124 -124
  5. src/assets/js/gfpdf-settings.js +9 -2
  6. src/assets/js/gfpdf-settings.min.js +1 -1
  7. src/assets/languages/gravity-forms-pdf-extended.pot +17 -13
  8. src/bootstrap.php +7 -7
  9. src/controller/Controller_Actions.php +4 -4
  10. src/controller/Controller_Install.php +2 -2
  11. src/controller/Controller_PDF.php +1 -1
  12. src/controller/Controller_Settings.php +2 -2
  13. src/controller/Controller_Shortcodes.php +1 -1
  14. src/depreciated.php +2 -2
  15. src/helper/Helper_Data.php +28 -28
  16. src/helper/Helper_Migration.php +3 -3
  17. src/helper/Helper_Misc.php +4 -3
  18. src/helper/Helper_Options_Fields.php +168 -168
  19. src/helper/Helper_PDF.php +2 -2
  20. src/helper/Helper_PDF_List_Table.php +13 -13
  21. src/helper/Helper_QueryPath.php +76 -0
  22. src/helper/abstract/Helper_Abstract_Model.php +76 -76
  23. src/helper/abstract/Helper_Abstract_Options.php +92 -92
  24. src/helper/abstract/Helper_Abstract_View.php +1 -1
  25. src/helper/fields/Field_Name.php +7 -2
  26. src/helper/fields/Field_Post_Excerpt.php +109 -109
  27. src/helper/fields/Field_Products.php +18 -21
  28. src/helper/fields/Field_Quiz.php +3 -1
  29. src/helper/fields/Field_v3_Products.php +5 -2
  30. src/model/Model_Actions.php +2 -2
  31. src/model/Model_Form_Settings.php +16 -15
  32. src/model/Model_Install.php +4 -4
  33. src/model/Model_PDF.php +6 -6
  34. src/model/Model_Settings.php +19 -9
  35. src/model/Model_Welcome_Screen.php +2 -2
  36. src/templates/blank-slate.php +15 -22
  37. src/templates/config/focus-gravity.php +8 -8
  38. src/templates/config/rubix.php +2 -2
  39. src/templates/config/zadani.php +2 -2
  40. src/templates/focus-gravity.php +16 -23
  41. src/templates/rubix.php +16 -23
  42. src/templates/zadani.php +17 -24
  43. src/view/View_PDF.php +1 -1
  44. src/view/View_Settings.php +6 -6
  45. src/view/html/Actions/action_buttons.php +1 -1
  46. src/view/html/Actions/begin_multisite_migration.php +3 -3
  47. src/view/html/Actions/migration.php +2 -2
  48. src/view/html/Actions/review_plugin.php +3 -3
  49. src/view/html/FormSettings/list.php +3 -3
  50. src/view/html/PDF/core_template_styles.php +1 -2
  51. src/view/html/PDF/entry_detailed_pdf.php +3 -3
  52. src/view/html/PDF/entry_list_pdf_multiple.php +1 -1
  53. src/view/html/PDF/entry_list_pdf_single.php +1 -1
  54. src/view/html/Settings/general.php +3 -3
  55. src/view/html/Settings/help.php +18 -18
  56. src/view/html/Settings/system_status.php +13 -13
  57. src/view/html/Settings/tools.php +28 -28
  58. src/view/html/Settings/uninstaller.php +5 -5
  59. src/view/html/Shortcodes/conditional_logic_not_met.php +2 -2
  60. src/view/html/Shortcodes/invalid_pdf_config.php +2 -2
  61. src/view/html/Shortcodes/no_entry_id.php +2 -2
  62. src/view/html/Shortcodes/pdf_not_active.php +2 -2
  63. src/view/html/Welcome/more.php +11 -11
  64. src/view/html/Welcome/tabs.php +2 -2
  65. src/view/html/Welcome/update.php +18 -18
  66. src/view/html/Welcome/welcome.php +16 -16
  67. vendor/autoload.php +1 -1
  68. vendor/blueliquiddesigns/mpdf/ttfonts/DejaVuSansCondensed-Bold.ttf +0 -0
  69. vendor/blueliquiddesigns/mpdf/ttfonts/DejaVuSansCondensed-BoldOblique.ttf +0 -0
  70. vendor/blueliquiddesigns/mpdf/ttfonts/DejaVuSansCondensed-Oblique.ttf +0 -0
  71. vendor/blueliquiddesigns/mpdf/ttfonts/DejaVuSansCondensed.ttf +0 -0
  72. vendor/composer/autoload_classmap.php +1 -0
  73. vendor/composer/autoload_real.php +5 -5
  74. vendor/composer/installed.json +4 -4
README.txt CHANGED
@@ -4,8 +4,8 @@ Plugin URI: https://gravitypdf.com/
4
  Donate link: https://gravitypdf.com/donate-to-plugin/
5
  Tags: gravity, forms, pdf, automation, attachment, email
6
  Requires at least: 4.2
7
- Tested up to: 4.5
8
- Stable tag: 4.0.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl.txt
11
 
@@ -85,6 +85,18 @@ Also, if you enjoy using the software [we'd love it if you could give us a revie
85
 
86
  == Changelog ==
87
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  = 4.0.2 =
89
  * Fixes issue displaying address fields in v4 PDFs (GH#429)
90
  * Fixes internal logging issues and added Gravity Forms 1.1 support (GF#428)
@@ -156,5 +168,8 @@ See [CHANGELOG.txt](https://github.com/GravityPDF/gravity-pdf/blob/master/CHANGE
156
 
157
  == Upgrade Notice ==
158
 
 
 
 
159
  = 4.0 =
160
  **WARNING**: This major release is not 100% backwards compatibile with v3. Review our upgrade guide AND do a full backup before proceeding with the update (https://goo.gl/htd6CK).
4
  Donate link: https://gravitypdf.com/donate-to-plugin/
5
  Tags: gravity, forms, pdf, automation, attachment, email
6
  Requires at least: 4.2
7
+ Tested up to: 4.6
8
+ Stable tag: 4.0.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl.txt
11
 
85
 
86
  == Changelog ==
87
 
88
+ = 4.0.3 =
89
+ * Fix incorrect product calculations when using decimal comma format eg. 1.000,50 (GH#442)
90
+ * Rename $config variable to $html_config in core templates (GH#451)
91
+ * Don't chain CSS in our default setters or set fixed font size in templates (GH#446)
92
+ * Fix display issues for certain characters with DejaVu Sans font family in PDFs (GH#456)
93
+ * Ensure QueryPath produces valid UTF-8 data after processing (GH#452)
94
+ * Re-running the Custom Template Setup will override working directory templates with same name (GH#457)
95
+ * Fixed legacy Name field PHP warnings (GH#448)
96
+ * Replace translations with their escaped function counterparts (GH#463)
97
+ * Duplicating PDFs will now be inactive by default (GH#458)
98
+ * Tweaked the "Show Page Names" field description (GH#449)
99
+
100
  = 4.0.2 =
101
  * Fixes issue displaying address fields in v4 PDFs (GH#429)
102
  * Fixes internal logging issues and added Gravity Forms 1.1 support (GF#428)
168
 
169
  == Upgrade Notice ==
170
 
171
+ = 4.0.3 =
172
+ The core PDF templates have been updated to version 1.1. If you've previously run the Custom Template Setup make sure you run it again to take advantage of the changes.
173
+
174
  = 4.0 =
175
  **WARNING**: This major release is not 100% backwards compatibile with v3. Review our upgrade guide AND do a full backup before proceeding with the update (https://goo.gl/htd6CK).
api.php CHANGED
@@ -230,7 +230,7 @@ final class GPDFAPI {
230
  return static::get_mvc_class( 'Model_PDF');
231
  }
232
 
233
- return new WP_Error( 'invalid_type', __( 'The $type parameter is invalid. Only "view" and "model" are accepted', 'gravity-forms-pdf-extended' ) );
234
  }
235
 
236
  /**
@@ -375,7 +375,7 @@ final class GPDFAPI {
375
 
376
  /* Check the option doesn't already exist */
377
  if ( null !== $options->get_option( $key, null ) ) {
378
- return new WP_Error( 'option_exists', __( 'The option key %s already exists. Use GPDFAPI::update_plugin_option instead', 'gravity-forms-pdf-extended' ) );
379
  }
380
 
381
  return static::update_plugin_option( $key, $value );
230
  return static::get_mvc_class( 'Model_PDF');
231
  }
232
 
233
+ return new WP_Error( 'invalid_type', esc_html__( 'The $type parameter is invalid. Only "view" and "model" are accepted', 'gravity-forms-pdf-extended' ) );
234
  }
235
 
236
  /**
375
 
376
  /* Check the option doesn't already exist */
377
  if ( null !== $options->get_option( $key, null ) ) {
378
+ return new WP_Error( 'option_exists', esc_html__( 'The option key %s already exists. Use GPDFAPI::update_plugin_option instead', 'gravity-forms-pdf-extended' ) );
379
  }
380
 
381
  return static::update_plugin_option( $key, $value );
pdf.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Gravity PDF
4
- Version: 4.0.2
5
  Description: Automatically generate highly-customisable PDF documents using Gravity Forms.
6
  Author: Gravity PDF
7
  Author URI: https://gravitypdf.com
@@ -38,7 +38,7 @@ if ( ! defined( 'ABSPATH' ) ) {
38
  * Set base constants we'll use throughout the plugin
39
  */
40
 
41
- define( 'PDF_EXTENDED_VERSION', '4.0.2' ); /* the current plugin version */
42
  define( 'PDF_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); /* plugin directory path */
43
  define( 'PDF_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); /* plugin directory url */
44
  define( 'PDF_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); /* the plugin basename */
@@ -187,7 +187,7 @@ class GFPDF_Major_Compatibility_Checks {
187
 
188
  /* WordPress version not compatible */
189
  if ( ! version_compare( $wp_version, $this->required_wp_version, '>=' ) ) {
190
- $this->notices[] = sprintf( __( 'WordPress Version %s is required. %sGet more info%s.', 'gravity-forms-pdf-extended' ), $this->required_wp_version, '<a href="https://gravitypdf.com/documentation/v4/user-activation-errors/#wordpress-version">', '</a>' );
191
 
192
  return false;
193
  }
@@ -206,7 +206,7 @@ class GFPDF_Major_Compatibility_Checks {
206
 
207
  /* Gravity Forms version not compatible */
208
  if ( ! class_exists( 'GFCommon' ) || ! version_compare( GFCommon::$version, $this->required_gf_version, '>=' ) ) {
209
- $this->notices[] = sprintf( __( '%sGravity Forms%s Version %s is required. %sGet more info%s.', 'gravity-forms-pdf-extended' ), '<a href="https://www.e-junkie.com/ecom/gb.php?cl=54585&c=ib&aff=235154">', '</a>', $this->required_gf_version, '<a href="https://gravitypdf.com/documentation/v4/user-activation-errors/#gravityforms-version">', '</a>' );
210
 
211
  return false;
212
  }
@@ -225,7 +225,7 @@ class GFPDF_Major_Compatibility_Checks {
225
 
226
  /* Check PHP version is compatible */
227
  if ( ! version_compare( phpversion(), $this->required_php_version, '>=' ) ) {
228
- $this->notices[] = sprintf( __( 'You are running an %soutdated version of PHP%s. Contact your web hosting provider to update. %sGet more info%s.', 'gravity-forms-pdf-extended' ), '<a href="http://www.wpupdatephp.com/update/">', '</a>', '<a href="https://gravitypdf.com/documentation/v4/user-activation-errors/#php-version">', '</a>' );
229
 
230
  return false;
231
  }
@@ -244,7 +244,7 @@ class GFPDF_Major_Compatibility_Checks {
244
 
245
  /* Check MB String is installed */
246
  if ( ! extension_loaded( 'mbstring' ) ) {
247
- $this->notices[] = sprintf( __( 'The PHP Extension MB String could not be detected. Contact your web hosting provider to fix. %sGet more info%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/documentation/v4/user-activation-errors/#php-mbstring">', '</a>' );
248
 
249
  return false;
250
  }
@@ -263,7 +263,7 @@ class GFPDF_Major_Compatibility_Checks {
263
 
264
  /* Check MB String is compiled with regex capabilities */
265
  if ( extension_loaded( 'mbstring' ) && ! function_exists( 'mb_regex_encoding' ) ) {
266
- $this->notices[] = sprintf( __( 'The PHP Extension MB String does not have MB Regex enabled. Contact your web hosting provider to fix. %sGet more info%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/documentation/v4/user-activation-errors/#php-mbstring-regex">', '</a>' );
267
 
268
  return false;
269
  }
@@ -282,7 +282,7 @@ class GFPDF_Major_Compatibility_Checks {
282
 
283
  /* Check GD Image Library is installed */
284
  if ( ! extension_loaded( 'gd' ) ) {
285
- $this->notices[] = sprintf( __( 'The PHP Extension GD Image Library could not be detected. Contact your web hosting provider to fix. %sGet more info%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/documentation/v4/user-activation-errors/#php-gd">', '</a>' );
286
 
287
  return false;
288
  }
@@ -301,14 +301,14 @@ class GFPDF_Major_Compatibility_Checks {
301
 
302
  /* Check DOM Class is installed */
303
  if ( ! extension_loaded( 'dom' ) || ! class_exists( 'DOMDocument' ) ) {
304
- $this->notices[] = sprintf( __( 'The PHP DOM Extension was not found. Contact your web hosting provider to fix. %sGet more info%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/documentation/v4/user-activation-errors/#php-dom">', '</a>' );
305
 
306
  return false;
307
  }
308
 
309
  /* Check libxml is loaded */
310
  if ( ! extension_loaded( 'libxml' ) ) {
311
- $this->notices[] = sprintf( __( 'The PHP Extension libxml could not be detected. Contact your web hosting provider to fix. %sGet more info%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/documentation/v4/user-activation-errors/#php-xml">', '</a>' );
312
 
313
  return false;
314
  }
@@ -331,7 +331,7 @@ class GFPDF_Major_Compatibility_Checks {
331
  $ram = $this->get_ram( $ram );
332
 
333
  if ( $ram < 64 && $ram !== -1 ) {
334
- $this->notices[] = sprintf( __( "You need %s128MB%s of WP Memory (RAM) but we only found %s available. %sTry these methods to increase your memory limit%s, otherwise contact your web hosting provider to fix.", 'gravity-forms-pdf-extended' ), '<strong>', '</strong>', $ram . 'MB', '<a href="https://gravitypdf.com/documentation/v4/user-increasing-memory-limit/">', '</a>' );
335
 
336
  return false;
337
  }
@@ -398,9 +398,9 @@ class GFPDF_Major_Compatibility_Checks {
398
  public function display_notices() {
399
  ?>
400
  <div class="error">
401
- <p><strong><?php _e( 'Gravity PDF Installation Problem', 'gravity-forms-pdf-extended' ); ?></strong></p>
402
 
403
- <p><?php _e( 'The minimum requirements for Gravity PDF have not been met. Please fix the issue(s) below to continue:', 'gravity-forms-pdf-extended' ); ?></p>
404
  <ul style="padding-bottom: 0.5em">
405
  <?php foreach ( $this->notices as $notice ) : ?>
406
  <li style="padding-left: 20px;list-style: inside"><?php echo $notice; ?></li>
1
  <?php
2
  /*
3
  Plugin Name: Gravity PDF
4
+ Version: 4.0.3
5
  Description: Automatically generate highly-customisable PDF documents using Gravity Forms.
6
  Author: Gravity PDF
7
  Author URI: https://gravitypdf.com
38
  * Set base constants we'll use throughout the plugin
39
  */
40
 
41
+ define( 'PDF_EXTENDED_VERSION', '4.0.3' ); /* the current plugin version */
42
  define( 'PDF_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); /* plugin directory path */
43
  define( 'PDF_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); /* plugin directory url */
44
  define( 'PDF_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); /* the plugin basename */
187
 
188
  /* WordPress version not compatible */
189
  if ( ! version_compare( $wp_version, $this->required_wp_version, '>=' ) ) {
190
+ $this->notices[] = sprintf( esc_html__( 'WordPress Version %s is required. %sGet more info%s.', 'gravity-forms-pdf-extended' ), $this->required_wp_version, '<a href="https://gravitypdf.com/documentation/v4/user-activation-errors/#wordpress-version">', '</a>' );
191
 
192
  return false;
193
  }
206
 
207
  /* Gravity Forms version not compatible */
208
  if ( ! class_exists( 'GFCommon' ) || ! version_compare( GFCommon::$version, $this->required_gf_version, '>=' ) ) {
209
+ $this->notices[] = sprintf( esc_html__( '%sGravity Forms%s Version %s is required. %sGet more info%s.', 'gravity-forms-pdf-extended' ), '<a href="https://www.e-junkie.com/ecom/gb.php?cl=54585&c=ib&aff=235154">', '</a>', $this->required_gf_version, '<a href="https://gravitypdf.com/documentation/v4/user-activation-errors/#gravityforms-version">', '</a>' );
210
 
211
  return false;
212
  }
225
 
226
  /* Check PHP version is compatible */
227
  if ( ! version_compare( phpversion(), $this->required_php_version, '>=' ) ) {
228
+ $this->notices[] = sprintf( esc_html__( 'You are running an %soutdated version of PHP%s. Contact your web hosting provider to update. %sGet more info%s.', 'gravity-forms-pdf-extended' ), '<a href="http://www.wpupdatephp.com/update/">', '</a>', '<a href="https://gravitypdf.com/documentation/v4/user-activation-errors/#php-version">', '</a>' );
229
 
230
  return false;
231
  }
244
 
245
  /* Check MB String is installed */
246
  if ( ! extension_loaded( 'mbstring' ) ) {
247
+ $this->notices[] = sprintf( esc_html__( 'The PHP Extension MB String could not be detected. Contact your web hosting provider to fix. %sGet more info%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/documentation/v4/user-activation-errors/#php-mbstring">', '</a>' );
248
 
249
  return false;
250
  }
263
 
264
  /* Check MB String is compiled with regex capabilities */
265
  if ( extension_loaded( 'mbstring' ) && ! function_exists( 'mb_regex_encoding' ) ) {
266
+ $this->notices[] = sprintf( esc_html__( 'The PHP Extension MB String does not have MB Regex enabled. Contact your web hosting provider to fix. %sGet more info%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/documentation/v4/user-activation-errors/#php-mbstring-regex">', '</a>' );
267
 
268
  return false;
269
  }
282
 
283
  /* Check GD Image Library is installed */
284
  if ( ! extension_loaded( 'gd' ) ) {
285
+ $this->notices[] = sprintf( esc_html__( 'The PHP Extension GD Image Library could not be detected. Contact your web hosting provider to fix. %sGet more info%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/documentation/v4/user-activation-errors/#php-gd">', '</a>' );
286
 
287
  return false;
288
  }
301
 
302
  /* Check DOM Class is installed */
303
  if ( ! extension_loaded( 'dom' ) || ! class_exists( 'DOMDocument' ) ) {
304
+ $this->notices[] = sprintf( esc_html__( 'The PHP DOM Extension was not found. Contact your web hosting provider to fix. %sGet more info%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/documentation/v4/user-activation-errors/#php-dom">', '</a>' );
305
 
306
  return false;
307
  }
308
 
309
  /* Check libxml is loaded */
310
  if ( ! extension_loaded( 'libxml' ) ) {
311
+ $this->notices[] = sprintf( esc_html__( 'The PHP Extension libxml could not be detected. Contact your web hosting provider to fix. %sGet more info%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/documentation/v4/user-activation-errors/#php-xml">', '</a>' );
312
 
313
  return false;
314
  }
331
  $ram = $this->get_ram( $ram );
332
 
333
  if ( $ram < 64 && $ram !== -1 ) {
334
+ $this->notices[] = sprintf( esc_html__( "You need %s128MB%s of WP Memory (RAM) but we only found %s available. %sTry these methods to increase your memory limit%s, otherwise contact your web hosting provider to fix.", 'gravity-forms-pdf-extended' ), '<strong>', '</strong>', $ram . 'MB', '<a href="https://gravitypdf.com/documentation/v4/user-increasing-memory-limit/">', '</a>' );
335
 
336
  return false;
337
  }
398
  public function display_notices() {
399
  ?>
400
  <div class="error">
401
+ <p><strong><?php esc_html_e( 'Gravity PDF Installation Problem', 'gravity-forms-pdf-extended' ); ?></strong></p>
402
 
403
+ <p><?php esc_html_e( 'The minimum requirements for Gravity PDF have not been met. Please fix the issue(s) below to continue:', 'gravity-forms-pdf-extended' ); ?></p>
404
  <ul style="padding-bottom: 0.5em">
405
  <?php foreach ( $this->notices as $notice ) : ?>
406
  <li style="padding-left: 20px;list-style: inside"><?php echo $notice; ?></li>
resources/images/mpdfstyletables.css CHANGED
@@ -1,124 +1,124 @@
1
-
2
- body { font-family: DejaVuSansCondensed; font-size: 11pt; }
3
- p { text-align: justify; margin-bottom: 4pt; margin-top:0pt; }
4
-
5
- table {font-family: DejaVuSansCondensed; font-size: 9pt; line-height: 1.2;
6
- margin-top: 2pt; margin-bottom: 5pt;
7
- border-collapse: collapse; }
8
-
9
- thead { font-weight: bold; vertical-align: bottom; }
10
- tfoot { font-weight: bold; vertical-align: top; }
11
- thead td { font-weight: bold; }
12
- tfoot td { font-weight: bold; }
13
-
14
- thead td, thead th, tfoot td, tfoot th { font-variant: small-caps; }
15
-
16
- .headerrow td, .headerrow th { background-gradient: linear #b7cebd #f5f8f5 0 1 0 0.2; }
17
- .footerrow td, .footerrow th { background-gradient: linear #b7cebd #f5f8f5 0 1 0 0.2; }
18
-
19
- th { font-weight: bold;
20
- vertical-align: top;
21
- text-align:left;
22
- padding-left: 2mm;
23
- padding-right: 2mm;
24
- padding-top: 0.5mm;
25
- padding-bottom: 0.5mm;
26
- }
27
-
28
- td { padding-left: 2mm;
29
- vertical-align: top;
30
- text-align:left;
31
- padding-right: 2mm;
32
- padding-top: 0.5mm;
33
- padding-bottom: 0.5mm;
34
- }
35
-
36
- th p { text-align: left; margin:0pt; }
37
- td p { text-align: left; margin:0pt; }
38
-
39
- table.widecells td {
40
- padding-left: 5mm;
41
- padding-right: 5mm;
42
- }
43
- table.tallcells td {
44
- padding-top: 3mm;
45
- padding-bottom: 3mm;
46
- }
47
-
48
- hr { width: 70%; height: 1px;
49
- text-align: center; color: #999999;
50
- margin-top: 8pt; margin-bottom: 8pt; }
51
-
52
- a { color: #000066; font-style: normal; text-decoration: underline;
53
- font-weight: normal; }
54
-
55
- ul { text-indent: 5mm; margin-bottom: 9pt; }
56
- ol { text-indent: 5mm; margin-bottom: 9pt; }
57
-
58
- pre { font-family: DejaVuSansMono; font-size: 9pt; margin-top: 5pt; margin-bottom: 5pt; }
59
-
60
- h1 { font-weight: normal; font-size: 26pt; color: #000066;
61
- font-family: DejaVuSansCondensed; margin-top: 18pt; margin-bottom: 6pt;
62
- border-top: 0.075cm solid #000000; border-bottom: 0.075cm solid #000000;
63
- text-align: ; page-break-after:avoid; }
64
- h2 { font-weight: bold; font-size: 12pt; color: #000066;
65
- font-family: DejaVuSansCondensed; margin-top: 6pt; margin-bottom: 6pt;
66
- border-top: 0.07cm solid #000000; border-bottom: 0.07cm solid #000000;
67
- text-align: ; text-transform:uppercase; page-break-after:avoid; }
68
- h3 { font-weight: normal; font-size: 26pt; color: #000000;
69
- font-family: DejaVuSansCondensed; margin-top: 0pt; margin-bottom: 6pt;
70
- border-top: 0; border-bottom: 0;
71
- text-align: ; page-break-after:avoid; }
72
- h4 { font-weight: ; font-size: 13pt; color: #9f2b1e;
73
- font-family: DejaVuSansCondensed; margin-top: 10pt; margin-bottom: 7pt;
74
- font-variant: small-caps;
75
- text-align: ; margin-collapse:collapse; page-break-after:avoid; }
76
- h5 { font-weight: bold; font-style:italic; ; font-size: 11pt; color: #000044;
77
- font-family: DejaVuSansCondensed; margin-top: 8pt; margin-bottom: 4pt;
78
- text-align: ; page-break-after:avoid; }
79
- h6 { font-weight: bold; font-size: 9.5pt; color: #333333;
80
- font-family: DejaVuSansCondensed; margin-top: 6pt; margin-bottom: ;
81
- text-align: ; page-break-after:avoid; }
82
-
83
- .breadcrumb {
84
- text-align: right; font-size: 8pt; font-family: DejaVuSerifCondensed; color: #666666;
85
- font-weight: bold; font-style: normal; margin-bottom: 6pt; }
86
-
87
- .evenrow td, .evenrow th { background-color: #f5f8f5; }
88
- .oddrow td, .oddrow th { background-color: #e3ece4; }
89
-
90
- .bpmTopic { background-color: #e3ece4; }
91
- .bpmTopicC { background-color: #e3ece4; }
92
- .bpmNoLines { background-color: #e3ece4; }
93
- .bpmNoLinesC { background-color: #e3ece4; }
94
- .bpmClear { }
95
- .bpmClearC { text-align: center; }
96
- .bpmTopnTail { background-color: #e3ece4; topntail: 0.02cm solid #495b4a;}
97
- .bpmTopnTailC { background-color: #e3ece4; topntail: 0.02cm solid #495b4a;}
98
- .bpmTopnTailClear { topntail: 0.02cm solid #495b4a; }
99
- .bpmTopnTailClearC { topntail: 0.02cm solid #495b4a; }
100
-
101
- .bpmTopicC td, .bpmTopicC td p { text-align: center; }
102
- .bpmNoLinesC td, .bpmNoLinesC td p { text-align: center; }
103
- .bpmClearC td, .bpmClearC td p { text-align: center; }
104
- .bpmTopnTailC td, .bpmTopnTailC td p { text-align: center; }
105
- .bpmTopnTailClearC td, .bpmTopnTailClearC td p { text-align: center; }
106
-
107
- .pmhMiddleCenter { text-align:center; vertical-align:middle; }
108
- .pmhMiddleRight { text-align:right; vertical-align:middle; }
109
- .pmhBottomCenter { text-align:center; vertical-align:bottom; }
110
- .pmhBottomRight { text-align:right; vertical-align:bottom; }
111
- .pmhTopCenter { text-align:center; vertical-align:top; }
112
- .pmhTopRight { text-align:right; vertical-align:top; }
113
- .pmhTopLeft { text-align:left; vertical-align:top; }
114
- .pmhBottomLeft { text-align:left; vertical-align:bottom; }
115
- .pmhMiddleLeft { text-align:left; vertical-align:middle; }
116
-
117
- .infobox { margin-top:10pt; background-color:#DDDDBB; text-align:center; border:1px solid #880000; }
118
-
119
- .bpmTopic td, .bpmTopic th { border-top: 1px solid #FFFFFF; }
120
- .bpmTopicC td, .bpmTopicC th { border-top: 1px solid #FFFFFF; }
121
- .bpmTopnTail td, .bpmTopnTail th { border-top: 1px solid #FFFFFF; }
122
- .bpmTopnTailC td, .bpmTopnTailC th { border-top: 1px solid #FFFFFF; }
123
-
124
-
1
+
2
+ body { font-family: DejaVuSansCondensed; font-size: 11pt; }
3
+ p { text-align: justify; margin-bottom: 4pt; margin-top:0pt; }
4
+
5
+ table {font-family: DejaVuSansCondensed; font-size: 9pt; line-height: 1.2;
6
+ margin-top: 2pt; margin-bottom: 5pt;
7
+ border-collapse: collapse; }
8
+
9
+ thead { font-weight: bold; vertical-align: bottom; }
10
+ tfoot { font-weight: bold; vertical-align: top; }
11
+ thead td { font-weight: bold; }
12
+ tfoot td { font-weight: bold; }
13
+
14
+ thead td, thead th, tfoot td, tfoot th { font-variant: small-caps; }
15
+
16
+ .headerrow td, .headerrow th { background-gradient: linear #b7cebd #f5f8f5 0 1 0 0.2; }
17
+ .footerrow td, .footerrow th { background-gradient: linear #b7cebd #f5f8f5 0 1 0 0.2; }
18
+
19
+ th { font-weight: bold;
20
+ vertical-align: top;
21
+ text-align:left;
22
+ padding-left: 2mm;
23
+ padding-right: 2mm;
24
+ padding-top: 0.5mm;
25
+ padding-bottom: 0.5mm;
26
+ }
27
+
28
+ td { padding-left: 2mm;
29
+ vertical-align: top;
30
+ text-align:left;
31
+ padding-right: 2mm;
32
+ padding-top: 0.5mm;
33
+ padding-bottom: 0.5mm;
34
+ }
35
+
36
+ th p { text-align: left; margin:0pt; }
37
+ td p { text-align: left; margin:0pt; }
38
+
39
+ table.widecells td {
40
+ padding-left: 5mm;
41
+ padding-right: 5mm;
42
+ }
43
+ table.tallcells td {
44
+ padding-top: 3mm;
45
+ padding-bottom: 3mm;
46
+ }
47
+
48
+ hr { width: 70%; height: 1px;
49
+ text-align: center; color: #999999;
50
+ margin-top: 8pt; margin-bottom: 8pt; }
51
+
52
+ a { color: #000066; font-style: normal; text-decoration: underline;
53
+ font-weight: normal; }
54
+
55
+ ul { text-indent: 5mm; margin-bottom: 9pt; }
56
+ ol { text-indent: 5mm; margin-bottom: 9pt; }
57
+
58
+ pre { font-family: DejaVuSansMono; font-size: 9pt; margin-top: 5pt; margin-bottom: 5pt; }
59
+
60
+ h1 { font-weight: normal; font-size: 26pt; color: #000066;
61
+ font-family: DejaVuSansCondensed; margin-top: 18pt; margin-bottom: 6pt;
62
+ border-top: 0.075cm solid #000000; border-bottom: 0.075cm solid #000000;
63
+ text-align: ; page-break-after:avoid; }
64
+ h2 { font-weight: bold; font-size: 12pt; color: #000066;
65
+ font-family: DejaVuSansCondensed; margin-top: 6pt; margin-bottom: 6pt;
66
+ border-top: 0.07cm solid #000000; border-bottom: 0.07cm solid #000000;
67
+ text-align: ; text-transform:uppercase; page-break-after:avoid; }
68
+ h3 { font-weight: normal; font-size: 26pt; color: #000000;
69
+ font-family: DejaVuSansCondensed; margin-top: 0pt; margin-bottom: 6pt;
70
+ border-top: 0; border-bottom: 0;
71
+ text-align: ; page-break-after:avoid; }
72
+ h4 { font-weight: ; font-size: 13pt; color: #9f2b1e;
73
+ font-family: DejaVuSansCondensed; margin-top: 10pt; margin-bottom: 7pt;
74
+ font-variant: small-caps;
75
+ text-align: ; margin-collapse:collapse; page-break-after:avoid; }
76
+ h5 { font-weight: bold; font-style:italic; ; font-size: 11pt; color: #000044;
77
+ font-family: DejaVuSansCondensed; margin-top: 8pt; margin-bottom: 4pt;
78
+ text-align: ; page-break-after:avoid; }
79
+ h6 { font-weight: bold; font-size: 9.5pt; color: #333333;
80
+ font-family: DejaVuSansCondensed; margin-top: 6pt; margin-bottom: ;
81
+ text-align: ; page-break-after:avoid; }
82
+
83
+ .breadcrumb {
84
+ text-align: right; font-size: 8pt; font-family: DejaVuSerifCondensed; color: #666666;
85
+ font-weight: bold; font-style: normal; margin-bottom: 6pt; }
86
+
87
+ .evenrow td, .evenrow th { background-color: #f5f8f5; }
88
+ .oddrow td, .oddrow th { background-color: #e3ece4; }
89
+
90
+ .bpmTopic { background-color: #e3ece4; }
91
+ .bpmTopicC { background-color: #e3ece4; }
92
+ .bpmNoLines { background-color: #e3ece4; }
93
+ .bpmNoLinesC { background-color: #e3ece4; }
94
+ .bpmClear { }
95
+ .bpmClearC { text-align: center; }
96
+ .bpmTopnTail { background-color: #e3ece4; topntail: 0.02cm solid #495b4a;}
97
+ .bpmTopnTailC { background-color: #e3ece4; topntail: 0.02cm solid #495b4a;}
98
+ .bpmTopnTailClear { topntail: 0.02cm solid #495b4a; }
99
+ .bpmTopnTailClearC { topntail: 0.02cm solid #495b4a; }
100
+
101
+ .bpmTopicC td, .bpmTopicC td p { text-align: center; }
102
+ .bpmNoLinesC td, .bpmNoLinesC td p { text-align: center; }
103
+ .bpmClearC td, .bpmClearC td p { text-align: center; }
104
+ .bpmTopnTailC td, .bpmTopnTailC td p { text-align: center; }
105
+ .bpmTopnTailClearC td, .bpmTopnTailClearC td p { text-align: center; }
106
+
107
+ .pmhMiddleCenter { text-align:center; vertical-align:middle; }
108
+ .pmhMiddleRight { text-align:right; vertical-align:middle; }
109
+ .pmhBottomCenter { text-align:center; vertical-align:bottom; }
110
+ .pmhBottomRight { text-align:right; vertical-align:bottom; }
111
+ .pmhTopCenter { text-align:center; vertical-align:top; }
112
+ .pmhTopRight { text-align:right; vertical-align:top; }
113
+ .pmhTopLeft { text-align:left; vertical-align:top; }
114
+ .pmhBottomLeft { text-align:left; vertical-align:bottom; }
115
+ .pmhMiddleLeft { text-align:left; vertical-align:middle; }
116
+
117
+ .infobox { margin-top:10pt; background-color:#DDDDBB; text-align:center; border:1px solid #880000; }
118
+
119
+ .bpmTopic td, .bpmTopic th { border-top: 1px solid #FFFFFF; }
120
+ .bpmTopicC td, .bpmTopicC th { border-top: 1px solid #FFFFFF; }
121
+ .bpmTopnTail td, .bpmTopnTail th { border-top: 1px solid #FFFFFF; }
122
+ .bpmTopnTailC td, .bpmTopnTailC th { border-top: 1px solid #FFFFFF; }
123
+
124
+
src/assets/js/gfpdf-settings.js CHANGED
@@ -363,10 +363,10 @@
363
 
364
  if (is_active) {
365
  that.src = that.src.replace('active1.png', 'active0.png');
366
- $(that).attr('title', GFPDF.inactive).attr('alt', GFPDF.inactive);
367
  } else {
368
  that.src = that.src.replace('active0.png', 'active1.png');
369
- $(that).attr('title', GFPDF.active).attr('alt', GFPDF.active);
370
  }
371
 
372
  /* Set up ajax data */
@@ -470,6 +470,13 @@
470
  background = '#f9f9f9';
471
  }
472
 
 
 
 
 
 
 
 
473
  /* Add row to node and fade in */
474
  $newRow.hide().insertAfter($row).fadeIn().animate({backgroundColor: background});
475
  }
363
 
364
  if (is_active) {
365
  that.src = that.src.replace('active1.png', 'active0.png');
366
+ $(that).attr('title', GFPDF.inactiveName).attr('alt', GFPDF.inactiveName);
367
  } else {
368
  that.src = that.src.replace('active0.png', 'active1.png');
369
+ $(that).attr('title', GFPDF.activeName).attr('alt', GFPDF.activeName);
370
  }
371
 
372
  /* Set up ajax data */
470
  background = '#f9f9f9';
471
  }
472
 
473
+ /* Add fix for toggle image */
474
+ var toggle_src = $state.attr('src');
475
+ $state
476
+ .attr('title', GFPDF.inactiveName)
477
+ .attr('alt', GFPDF.inactiveName)
478
+ .attr('src', toggle_src.replace('active1.png', 'active0.png'));
479
+
480
  /* Add row to node and fade in */
481
  $newRow.hide().insertAfter($row).fadeIn().animate({backgroundColor: background});
482
  }
src/assets/js/gfpdf-settings.min.js CHANGED
@@ -1 +1 @@
1
- !function(t){t(function(){function e(){var e=this;this.init=function(){this.initCommon(),this.isSettings()&&this.processSettings(),this.isFormSettings()&&this.processFormSettings()},this.initCommon=function(){this.doUploadListener(),this.doColorPicker(),this.setupSelectBoxes(),this.showTooltips(),this.setupCustomPaperSize(),this.setupToggledFields(),this.setupDynamicTemplateFields()},this.isSettings=function(){return t("#tab_PDF").length},this.isFormSettings=function(){return t("#tab_pdf").length},this.isFormSettingsList=function(){return t("#gfpdf_list_form").length},this.isFormSettingsEdit=function(){return t("#gfpdf_pdf_form").length},this.getCurrentSettingsPage=function(){return this.isSettings()?t(".nav-tab-wrapper a.nav-tab-active:first").text():""},this.processSettings=function(){switch(this.cleanupGFNavigation(),this.runPDFAccessCheck(),this.getCurrentSettingsPage()){case"General":this.generalSettings();break;case"Tools":this.toolsSettings()}},this.processFormSettings=function(){this.isFormSettingsList()&&this.doFormSettingsListPage(),this.isFormSettingsEdit()&&this.doFormSettingsEditPage()},this.doFormSettingsEditPage=function(){this.setupRequiredFields(t("#gfpdf_pdf_form")),this.setupPdfTabs(),this.handleSecurityConditionals(),this.handlePDFConditionalLogic(),this.handleOwnerRestriction(),this.toggleFontAppearance(t("#gfpdf_settings\\[template\\]").data("template_group")),this.toggleAppearanceTab(),t("#gfpdf_pdf_form").submit(function(){try{tinyMCE.triggerSave()}catch(t){}}),t("#gfpdf_pdf_form").submit(function(){t("#gfpdf_settings\\[conditionalLogic\\]").val(jQuery.toJSON(window.gfpdf_current_pdf.conditionalLogic))})},this.handleSecurityConditionals=function(){var e=t("#pdf-general-advanced"),i=e.find('input[name="gfpdf_settings[security]"]'),n=e.find('input[name="gfpdf_settings[format]"]');i.change(function(){if(t(this).is(":checked")){var i=n.filter(":checked").val();t(this).val()===GFPDF.no||i!==GFPDF.standard?e.find("tr:nth-child(3),tr:nth-child(4)").hide():e.find("tr:nth-child(3),tr:nth-child(4)").show(),i!==GFPDF.standard?e.find("tr:nth-child(2)").hide():e.find("tr:nth-child(2)").show()}}).trigger("change"),n.change(function(){t(this).is(":checked")&&i.trigger("change")}).trigger("change")},this.handlePDFConditionalLogic=function(){gform.addFilter("gform_conditional_object",function(t,e){return"gfpdf"===e?window.gfpdf_current_pdf:t}),t("#gfpdf_conditional_logic").change(function(){"undefined"==typeof window.gfpdf_current_pdf.conditionalLogic&&t(this).prop("checked")?window.gfpdf_current_pdf.conditionalLogic=new ConditionalLogic:t(this).prop("checked")||(window.gfpdf_current_pdf.conditionalLogic=null),ToggleConditionalLogic(!1,"gfpdf")}).trigger("change")},this.handleOwnerRestriction=function(){var e=t("#gfpdf-advanced-pdf-options"),i=e.find('input[name="gfpdf_settings[public_access]"]');i.change(function(){t(this).is(":checked")&&("Yes"===t(this).val()?e.find("tr:nth-child(8)").hide():e.find("tr:nth-child(8)").show())}).trigger("change")},this.doFormSettingsListPage=function(){this.setupAJAXListDeleteListener(),this.setupAJAXListDuplicateListener(),this.setupAJAXListStateListener()},this.setupAJAXListStateListener=function(){t("#gfpdf_list_form").on("click",".check-column img",function(){var i=String(t(this).data("id")),n=this;if(i.length>0){var a=n.src.indexOf("active1.png")>=0;a?(n.src=n.src.replace("active1.png","active0.png"),t(n).attr("title",GFPDF.inactive).attr("alt",GFPDF.inactive)):(n.src=n.src.replace("active0.png","active1.png"),t(n).attr("title",GFPDF.active).attr("alt",GFPDF.active));var s={action:"gfpdf_change_state",nonce:t(this).data("nonce"),fid:t(this).data("fid"),pid:t(this).data("id")};e.ajax(s,function(t){})}})},this.setupAJAXListDuplicateListener=function(){t("#gfpdf_list_form").on("click","a.submitduplicate",function(){var i=String(t(this).data("id")),n=this,a=t('<img alt="'+GFPDF.spinnerAlt+'" src="'+GFPDF.spinnerUrl+'" class="gfpdf-spinner gfpdf-spinner-small" />');if(t(this).after(a).parent().parent().attr("style","position:static; visibility: visible;"),i.length>0){var s={action:"gfpdf_list_duplicate",nonce:t(this).data("nonce"),fid:t(this).data("fid"),pid:t(this).data("id")};e.ajax(s,function(a){if(a.msg){t(n).parent().parent().attr("style","").find(".gfpdf-spinner").remove(),e.show_message(a.msg);var s=t(n).parents("tr"),o=s.clone().css("background","#baffb8");o.find(".column-name > a, .edit a").each(function(){var i=t(this).attr("href");i=e.updateURLParameter(i,"pid",a.pid),t(this).attr("href",i)}),o.find(".column-name > a").html(a.name);var d=o.find(".duplicate a"),r=o.find(".delete a"),f=o.find(".check-column img"),c=o.find(".column-shortcode input");d.data("id",a.pid),d.data("nonce",a.dup_nonce),r.data("id",a.pid),r.data("nonce",a.del_nonce),f.data("id",a.pid),f.data("nonce",a.state_nonce);var l=c.val();l=l.replace(i,a.pid),c.val(l);var p="";s.hasClass("alternate")?(o.removeClass("alternate"),p="#FFF"):(o.addClass("alternate"),p="#f9f9f9"),o.hide().insertAfter(s).fadeIn().animate({backgroundColor:p})}})}})},this.maybeShowEmptyRow=function(){var e=t("#gfpdf_list_form tbody");if(0===e.find("tr").length){var i=t("<tr>").addClass("no-items"),n=t("<td>").attr("colspan","5").addClass("colspanchange"),a=t("<a>").attr("href",t("#add-new-pdf").attr("href")).append(GFPDF.no_pdfs_found_link+".");n.append(GFPDF.no_pdfs_found).append(" ").append(a),i.append(n),e.append(i)}},this.setupAJAXListDeleteListener=function(){var i=t("#delete-confirm"),n=[{text:GFPDF.pdf_list_delete_confirm,click:function(){i.wpdialog("close"),$elm=t(i.data("elm"));var n=t('<img alt="'+GFPDF.spinnerAlt+'" src="'+GFPDF.spinnerUrl+'" class="gfpdf-spinner gfpdf-spinner-small" />');$elm.append(n).parent().parent().attr("style","position:static; visibility: visible;");var a={action:"gfpdf_list_delete",nonce:$elm.data("nonce"),fid:$elm.data("fid"),pid:$elm.data("id")};e.ajax(a,function(t){if(t.msg){$elm.parent().parent().attr("style","").find(".gfpdf-spinner").remove(),e.show_message(t.msg);var n=$elm.parents("tr");n.css("background","#ffb8b8").fadeOut(400,function(){this.remove(),e.maybeShowEmptyRow()})}i.data("elm",null)})}},{text:GFPDF.tools_cancel,click:function(){i.wpdialog("close")}}];this.wp_dialog(i,n,300,175),t("#gfpdf_list_form").on("click","a.submitdelete",function(){var n=String(t(this).data("id"));n.length>0&&!i.data("elm")&&(e.resizeDialogIfNeeded(i,300,175),i.wpdialog("open").data("elm",this))})},this.setupPdfTabs=function(){t(".gfpdf-tab-container").not(":eq(0)").hide(),t(".gfpdf-tab-wrapper a").click(function(){return t(this).parents("ul").find("a").removeClass("current"),t(this).addClass("current").blur(),t(".gfpdf-tab-container").hide(),t(t(this).attr("href")).show(),!1})},this.setupToggledFields=function(){t("form").off("change",".gfpdf-input-toggle").on("change",".gfpdf-input-toggle",function(){var e=t(this).parent().next();t(this).prop("checked")?e.slideDown("slow"):(e.slideUp("slow"),e.find(".wp-editor-area").each(function(){var e=tinyMCE.get(t(this).attr("id"));null!==e&&e.setContent("")}),e.find("textarea").each(function(){t(this).val("")}))})},this.setupDynamicTemplateFields=function(){t("#gfpdf_settings\\[template\\], #gfpdf_settings\\[default_template\\]").off("change").change(function(){var i=t('<img alt="'+GFPDF.spinnerAlt+'" src="'+GFPDF.spinnerUrl+'" class="gfpdf-spinner" />');t(this).next().after(i),t("#gfpdf-template-example").hide();var n={action:"gfpdf_get_template_fields",template:t(this).val(),type:t(this).attr("id"),id:t("#gform_id").val(),gform_pdf_id:t("#gform_pdf_id").val()};e.ajax(n,function(n){i.remove(),t('input[name="gfpdf_settings[advanced_template]"][value="No"]').prop("checked",!0).trigger("change"),n.fields?(t(".merge-tag-support").removeClass("merge-tag-support"),t.each(n.editors,function(t,e){var i=tinyMCE.get(e);if(null!==i)try{tinyMCE.remove(i)}catch(n){}}),t("#pdf-custom-appearance").hide().html(n.fields).fadeIn(),t("#gfpdf-custom-appearance-nav").show(),e.loadTinyMCEEditor(n.editors,n.editor_init),e.initCommon(),e.doMergetags()):(t("#gfpdf-custom-appearance-nav").hide(),t("#pdf-custom-appearance").html("")),null!=n.preview?t("#gfpdf-template-example").html('<img src="'+n.preview+'" />').find("img").load(function(){t(this).parent().show()}):t("#gfpdf-template-example").html("<p><em>"+GFPDF.no_template_preview+"</em></p>").show(),n.template_type&&e.toggleFontAppearance(n.template_type)})})},this.toggleFontAppearance=function(e){var i=t("#pdf-general-appearance").find("tr.gfpdf_font_type, tr.gfpdf_font_size, tr.gfpdf_font_colour");"legacy"==e?i.hide():i.show()},this.toggleAppearanceTab=function(){t('input[name="gfpdf_settings[advanced_template]"]').change(function(){"Yes"==t(this).val()?t("#gfpdf-appearance-nav").hide():t("#gfpdf-appearance-nav").show()}),t('input[name="gfpdf_settings[advanced_template]"]:checked').trigger("change")},this.loadTinyMCEEditor=function(e,i){null!=i&&(i.body_class="id post-type-post post-status-publish post-format-standard",i.formats={alignleft:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"left"}},{selector:"img,table,dl.wp-caption",classes:"alignleft"}],aligncenter:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"center"}},{selector:"img,table,dl.wp-caption",classes:"aligncenter"}],alignright:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"right"}},{selector:"img,table,dl.wp-caption",classes:"alignright"}],strikethrough:{inline:"del"}}),t.each(e,function(t,e){i.selector="#"+e,tinyMCE.init(i),tinyMCE.execCommand("mceAddEditor",!1,e),"function"==typeof QTags&&(QTags({id:e}),QTags._buttonsInit(),"function"==typeof switchEditors.switchto&&switchEditors.switchto(jQuery("#wp-"+e+"-wrap").find(".wp-switch-editor.switch-"+("html"==getUserSetting("editor")?"html":"tmce"))[0]))})},this.doUploadListener=function(){var e;window.formfield="",t("body").off("click",".gfpdf_settings_upload_button").on("click",".gfpdf_settings_upload_button",function(i){i.preventDefault();var n=t(this);return window.formfield=t(this).parent().prev(),e?void e.open():(e=wp.media.frames.file_frame=wp.media({title:n.data("uploader-title"),button:{text:n.data("uploader-button-text")},multiple:!1}),e.on("select",function(){var t=e.state().get("selection");t.each(function(t,e){t=t.toJSON(),window.formfield.val(t.url).change()})}),void e.open())})},this.doColorPicker=function(){t(".gfpdf-color-picker").each(function(){t(this).wpColorPicker()})},this.doMergetags=function(){"undefined"!=typeof form&&(window.gfMergeTags=new gfMergeTagsObj(form))},this.setupCustomPaperSize=function(){t(".gfpdf_paper_size").each(function(){var e=t(this).nextAll(".gfpdf_paper_size_other").first(),i=t(this).find("select");i.off("change").change(function(){"CUSTOM"===t(this).val()?e.fadeIn():e.fadeOut()}).trigger("change")})},this.cleanupGFNavigation=function(){var e=t("#gform_tabs a");e.each(function(){var e=t(this).attr("href"),i=new RegExp("&tab=[^&;]*","g");t(this).attr("href",e.replace(i,""))})},this.runPDFAccessCheck=function(){var e=t("#gfpdf-direct-pdf-protection-check");if(e.length>0){var i=t('<img alt="'+GFPDF.spinnerAlt+'" src="'+GFPDF.spinnerUrl+'" class="gfpdf-spinner" />');e.append(i);var n={action:"gfpdf_has_pdf_protection",nonce:e.data("nonce")};this.ajax(n,function(t){i.remove(),t===!0?e.find("#gfpdf-direct-pdf-check-protected").show():e.find("#gfpdf-direct-pdf-check-unprotected").show()})}},this.setupRequiredFields=function(e){e.attr("novalidate","novalidate"),e.find('tr input[type="submit"]').click(function(){e.addClass("formSubmitted")}),e.find("tr").each(function(){t(this).find(':input[required=""]:first, :input[required]:first').parents("tr").find("th").append('<span class="gfield_required">*</span>')})},this.showTooltips=function(){"function"==typeof gform_initialize_tooltips&&(t(".gf_hidden_tooltip").each(function(){t(this).parent().siblings("th:first").append(" ").append(e.get_tooltip(t(this).html())),t(this).remove()}),gform_initialize_tooltips())},this.setupSelectBoxes=function(){t(".gfpdf-chosen").each(function(){t(this).chosen({disable_search_threshold:5,width:"100%"})})},this.setup_advanced_options=function(){var e=t(".gfpdf-advanced-options"),i=e.prev(),n=e.find("a");n.click(function(){var e=this;return i.slideToggle(600,function(){var i=t(e).text();t(e).text(i==GFPDF.general_advanced_show?GFPDF.general_advanced_hide:GFPDF.general_advanced_show)}),!1}),t(".gfpdf-advanced-options").prev().find(".gfield_error").length&&i.show()},this.generalSettings=function(){this.setupRequiredFields(t("#pdfextended-settings > form"));var e=t("#pdf-general-security"),i=e.find('input[name="gfpdf_settings[default_restrict_owner]"]');i.change(function(){t(this).is(":checked")&&("Yes"===t(this).val()?e.find("tr:nth-child(3)").hide():e.find("tr:nth-child(3)").show())}).trigger("change"),this.setup_advanced_options()},this.toolsSettings=function(){this.setupToolsTemplateInstallerDialog(),this.setupToolsFontsDialog(),this.setupToolsUninstallDialog()},this.setupToolsTemplateInstallerDialog=function(){var i=t("#gfpdf_settings\\[setup_templates\\]"),n=t("#setup-templates-confirm"),a=[{text:GFPDF.tools_template_copy_confirm,click:function(){i.unbind().click()}},{text:GFPDF.tools_cancel,click:function(){n.wpdialog("close")}}];n.length&&(this.wp_dialog(n,a,500,350),i.click(function(){return e.resizeDialogIfNeeded(n,500,350),n.wpdialog("open"),!1}))},this.setupToolsFontsDialog=function(){var i=t("#gfpdf_settings\\[manage_fonts\\]"),n=t("#manage-font-files");this.wp_dialog(n,[],500,500),i.click(function(){return e.resizeDialogIfNeeded(n,500,500),n.wpdialog("open"),!1}),window.location.hash&&"#manage_fonts"==window.location.hash&&i.click()},this.setupToolsUninstallDialog=function(){var i=t("#gfpdf-uninstall"),n=t("#uninstall-confirm"),a=[{text:GFPDF.tools_uninstall_confirm,click:function(){i.parents("form").submit()}},{text:GFPDF.tools_cancel,click:function(){n.wpdialog("close")}}];this.wp_dialog(n,a,500,175),i.click(function(){return e.resizeDialogIfNeeded(n,500,175),n.wpdialog("open"),!1})},this.resizeDialogIfNeeded=function(e,i,n){var a=t(window).width(),s=t(window).height(),o=500>a?a-20:i,d=500>s?s-50:n;e.wpdialog("option","width",o),e.wpdialog("option","height",d)},this.wp_dialog=function(e,i,n,a){e.wpdialog({autoOpen:!1,resizable:!1,draggable:!1,width:n,height:a,modal:!0,dialogClass:"wp-dialog",zIndex:3e5,buttons:i,open:function(){t(this).siblings(".ui-dialog-buttonpane").find("button:eq(1)").focus(),t(".ui-widget-overlay").bind("click",function(){e.wpdialog("close")})}})},this.get_tooltip=function(e){var i=t("<a>"),n=t('<i class="fa fa-question-circle">');return i.append(n),i.addClass("gf_tooltip tooltip"),i.click(function(){return!1}),i.attr("title",e),i},this.ajax=function(e,i){t.ajax({type:"post",dataType:"json",url:GFPDF.ajaxurl,data:e,success:i,error:this.ajax_error})},this.ajax_error=function(t,e,i){console.log(e),console.log(i),4===t.readyState&&alert.log(GFPDF.ajax_error)},this.show_message=function(e,i,n){i="undefined"!=typeof i?i:4500,n="undefined"!=typeof n?n:!1;var a=t('<div id="message">').html("<p>"+e+"</p>");n===!0?a.addClass("error"):a.addClass("updated"),t(".wrap > h2").after(a),setTimeout(function(){a.slideUp()},i)},this.updateURLParameter=function(t,e,n){var a="",s=t.split("?"),o=s[0],d=s[1],r="";if(d)for(s=d.split("&"),i=0;i<s.length;i++)s[i].split("=")[0]!=e&&(a+=r+s[i],r="&");var f=r+""+e+"="+n;return o+"?"+a+f}}"undefined"!=typeof gf_vars&&(gf_vars.thisFormButton=GFPDF.conditionalText,gf_vars.show=GFPDF.conditionalShow,gf_vars.hide=GFPDF.conditionalHide),"undefined"!=typeof form&&"undefined"!=typeof window.gfMergeTags&&(window.gfMergeTags.getTargetElement=function(e){console.log("Gravity PDF gfMergeTags.getTargetElement Override Running");var i=t(e),n=i.parents("span.all-merge-tags").data("targetElement");return n=n.replace(/[!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g,"\\$&"),t("#"+n)});var n=new e;n.init()})}(jQuery);
1
+ !function(t){t(function(){function e(){var e=this;this.init=function(){this.initCommon(),this.isSettings()&&this.processSettings(),this.isFormSettings()&&this.processFormSettings()},this.initCommon=function(){this.doUploadListener(),this.doColorPicker(),this.setupSelectBoxes(),this.showTooltips(),this.setupCustomPaperSize(),this.setupToggledFields(),this.setupDynamicTemplateFields()},this.isSettings=function(){return t("#tab_PDF").length},this.isFormSettings=function(){return t("#tab_pdf").length},this.isFormSettingsList=function(){return t("#gfpdf_list_form").length},this.isFormSettingsEdit=function(){return t("#gfpdf_pdf_form").length},this.getCurrentSettingsPage=function(){return this.isSettings()?t(".nav-tab-wrapper a.nav-tab-active:first").text():""},this.processSettings=function(){switch(this.cleanupGFNavigation(),this.runPDFAccessCheck(),this.getCurrentSettingsPage()){case"General":this.generalSettings();break;case"Tools":this.toolsSettings()}},this.processFormSettings=function(){this.isFormSettingsList()&&this.doFormSettingsListPage(),this.isFormSettingsEdit()&&this.doFormSettingsEditPage()},this.doFormSettingsEditPage=function(){this.setupRequiredFields(t("#gfpdf_pdf_form")),this.setupPdfTabs(),this.handleSecurityConditionals(),this.handlePDFConditionalLogic(),this.handleOwnerRestriction(),this.toggleFontAppearance(t("#gfpdf_settings\\[template\\]").data("template_group")),this.toggleAppearanceTab(),t("#gfpdf_pdf_form").submit(function(){try{tinyMCE.triggerSave()}catch(t){}}),t("#gfpdf_pdf_form").submit(function(){t("#gfpdf_settings\\[conditionalLogic\\]").val(jQuery.toJSON(window.gfpdf_current_pdf.conditionalLogic))})},this.handleSecurityConditionals=function(){var e=t("#pdf-general-advanced"),i=e.find('input[name="gfpdf_settings[security]"]'),n=e.find('input[name="gfpdf_settings[format]"]');i.change(function(){if(t(this).is(":checked")){var i=n.filter(":checked").val();t(this).val()===GFPDF.no||i!==GFPDF.standard?e.find("tr:nth-child(3),tr:nth-child(4)").hide():e.find("tr:nth-child(3),tr:nth-child(4)").show(),i!==GFPDF.standard?e.find("tr:nth-child(2)").hide():e.find("tr:nth-child(2)").show()}}).trigger("change"),n.change(function(){t(this).is(":checked")&&i.trigger("change")}).trigger("change")},this.handlePDFConditionalLogic=function(){gform.addFilter("gform_conditional_object",function(t,e){return"gfpdf"===e?window.gfpdf_current_pdf:t}),t("#gfpdf_conditional_logic").change(function(){"undefined"==typeof window.gfpdf_current_pdf.conditionalLogic&&t(this).prop("checked")?window.gfpdf_current_pdf.conditionalLogic=new ConditionalLogic:t(this).prop("checked")||(window.gfpdf_current_pdf.conditionalLogic=null),ToggleConditionalLogic(!1,"gfpdf")}).trigger("change")},this.handleOwnerRestriction=function(){var e=t("#gfpdf-advanced-pdf-options"),i=e.find('input[name="gfpdf_settings[public_access]"]');i.change(function(){t(this).is(":checked")&&("Yes"===t(this).val()?e.find("tr:nth-child(8)").hide():e.find("tr:nth-child(8)").show())}).trigger("change")},this.doFormSettingsListPage=function(){this.setupAJAXListDeleteListener(),this.setupAJAXListDuplicateListener(),this.setupAJAXListStateListener()},this.setupAJAXListStateListener=function(){t("#gfpdf_list_form").on("click",".check-column img",function(){var i=String(t(this).data("id")),n=this;if(i.length>0){var a=n.src.indexOf("active1.png")>=0;a?(n.src=n.src.replace("active1.png","active0.png"),t(n).attr("title",GFPDF.inactiveName).attr("alt",GFPDF.inactiveName)):(n.src=n.src.replace("active0.png","active1.png"),t(n).attr("title",GFPDF.activeName).attr("alt",GFPDF.activeName));var s={action:"gfpdf_change_state",nonce:t(this).data("nonce"),fid:t(this).data("fid"),pid:t(this).data("id")};e.ajax(s,function(t){})}})},this.setupAJAXListDuplicateListener=function(){t("#gfpdf_list_form").on("click","a.submitduplicate",function(){var i=String(t(this).data("id")),n=this,a=t('<img alt="'+GFPDF.spinnerAlt+'" src="'+GFPDF.spinnerUrl+'" class="gfpdf-spinner gfpdf-spinner-small" />');if(t(this).after(a).parent().parent().attr("style","position:static; visibility: visible;"),i.length>0){var s={action:"gfpdf_list_duplicate",nonce:t(this).data("nonce"),fid:t(this).data("fid"),pid:t(this).data("id")};e.ajax(s,function(a){if(a.msg){t(n).parent().parent().attr("style","").find(".gfpdf-spinner").remove(),e.show_message(a.msg);var s=t(n).parents("tr"),o=s.clone().css("background","#baffb8");o.find(".column-name > a, .edit a").each(function(){var i=t(this).attr("href");i=e.updateURLParameter(i,"pid",a.pid),t(this).attr("href",i)}),o.find(".column-name > a").html(a.name);var d=o.find(".duplicate a"),r=o.find(".delete a"),c=o.find(".check-column img"),f=o.find(".column-shortcode input");d.data("id",a.pid),d.data("nonce",a.dup_nonce),r.data("id",a.pid),r.data("nonce",a.del_nonce),c.data("id",a.pid),c.data("nonce",a.state_nonce);var l=f.val();l=l.replace(i,a.pid),f.val(l);var p="";s.hasClass("alternate")?(o.removeClass("alternate"),p="#FFF"):(o.addClass("alternate"),p="#f9f9f9");var g=c.attr("src");c.attr("title",GFPDF.inactiveName).attr("alt",GFPDF.inactiveName).attr("src",g.replace("active1.png","active0.png")),o.hide().insertAfter(s).fadeIn().animate({backgroundColor:p})}})}})},this.maybeShowEmptyRow=function(){var e=t("#gfpdf_list_form tbody");if(0===e.find("tr").length){var i=t("<tr>").addClass("no-items"),n=t("<td>").attr("colspan","5").addClass("colspanchange"),a=t("<a>").attr("href",t("#add-new-pdf").attr("href")).append(GFPDF.no_pdfs_found_link+".");n.append(GFPDF.no_pdfs_found).append(" ").append(a),i.append(n),e.append(i)}},this.setupAJAXListDeleteListener=function(){var i=t("#delete-confirm"),n=[{text:GFPDF.pdf_list_delete_confirm,click:function(){i.wpdialog("close"),$elm=t(i.data("elm"));var n=t('<img alt="'+GFPDF.spinnerAlt+'" src="'+GFPDF.spinnerUrl+'" class="gfpdf-spinner gfpdf-spinner-small" />');$elm.append(n).parent().parent().attr("style","position:static; visibility: visible;");var a={action:"gfpdf_list_delete",nonce:$elm.data("nonce"),fid:$elm.data("fid"),pid:$elm.data("id")};e.ajax(a,function(t){if(t.msg){$elm.parent().parent().attr("style","").find(".gfpdf-spinner").remove(),e.show_message(t.msg);var n=$elm.parents("tr");n.css("background","#ffb8b8").fadeOut(400,function(){this.remove(),e.maybeShowEmptyRow()})}i.data("elm",null)})}},{text:GFPDF.tools_cancel,click:function(){i.wpdialog("close")}}];this.wp_dialog(i,n,300,175),t("#gfpdf_list_form").on("click","a.submitdelete",function(){var n=String(t(this).data("id"));n.length>0&&!i.data("elm")&&(e.resizeDialogIfNeeded(i,300,175),i.wpdialog("open").data("elm",this))})},this.setupPdfTabs=function(){t(".gfpdf-tab-container").not(":eq(0)").hide(),t(".gfpdf-tab-wrapper a").click(function(){return t(this).parents("ul").find("a").removeClass("current"),t(this).addClass("current").blur(),t(".gfpdf-tab-container").hide(),t(t(this).attr("href")).show(),!1})},this.setupToggledFields=function(){t("form").off("change",".gfpdf-input-toggle").on("change",".gfpdf-input-toggle",function(){var e=t(this).parent().next();t(this).prop("checked")?e.slideDown("slow"):(e.slideUp("slow"),e.find(".wp-editor-area").each(function(){var e=tinyMCE.get(t(this).attr("id"));null!==e&&e.setContent("")}),e.find("textarea").each(function(){t(this).val("")}))})},this.setupDynamicTemplateFields=function(){t("#gfpdf_settings\\[template\\], #gfpdf_settings\\[default_template\\]").off("change").change(function(){var i=t('<img alt="'+GFPDF.spinnerAlt+'" src="'+GFPDF.spinnerUrl+'" class="gfpdf-spinner" />');t(this).next().after(i),t("#gfpdf-template-example").hide();var n={action:"gfpdf_get_template_fields",template:t(this).val(),type:t(this).attr("id"),id:t("#gform_id").val(),gform_pdf_id:t("#gform_pdf_id").val()};e.ajax(n,function(n){i.remove(),t('input[name="gfpdf_settings[advanced_template]"][value="No"]').prop("checked",!0).trigger("change"),n.fields?(t(".merge-tag-support").removeClass("merge-tag-support"),t.each(n.editors,function(t,e){var i=tinyMCE.get(e);if(null!==i)try{tinyMCE.remove(i)}catch(n){}}),t("#pdf-custom-appearance").hide().html(n.fields).fadeIn(),t("#gfpdf-custom-appearance-nav").show(),e.loadTinyMCEEditor(n.editors,n.editor_init),e.initCommon(),e.doMergetags()):(t("#gfpdf-custom-appearance-nav").hide(),t("#pdf-custom-appearance").html("")),null!=n.preview?t("#gfpdf-template-example").html('<img src="'+n.preview+'" />').find("img").load(function(){t(this).parent().show()}):t("#gfpdf-template-example").html("<p><em>"+GFPDF.no_template_preview+"</em></p>").show(),n.template_type&&e.toggleFontAppearance(n.template_type)})})},this.toggleFontAppearance=function(e){var i=t("#pdf-general-appearance").find("tr.gfpdf_font_type, tr.gfpdf_font_size, tr.gfpdf_font_colour");"legacy"==e?i.hide():i.show()},this.toggleAppearanceTab=function(){t('input[name="gfpdf_settings[advanced_template]"]').change(function(){"Yes"==t(this).val()?t("#gfpdf-appearance-nav").hide():t("#gfpdf-appearance-nav").show()}),t('input[name="gfpdf_settings[advanced_template]"]:checked').trigger("change")},this.loadTinyMCEEditor=function(e,i){null!=i&&(i.body_class="id post-type-post post-status-publish post-format-standard",i.formats={alignleft:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"left"}},{selector:"img,table,dl.wp-caption",classes:"alignleft"}],aligncenter:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"center"}},{selector:"img,table,dl.wp-caption",classes:"aligncenter"}],alignright:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"right"}},{selector:"img,table,dl.wp-caption",classes:"alignright"}],strikethrough:{inline:"del"}}),t.each(e,function(t,e){i.selector="#"+e,tinyMCE.init(i),tinyMCE.execCommand("mceAddEditor",!1,e),"function"==typeof QTags&&(QTags({id:e}),QTags._buttonsInit(),"function"==typeof switchEditors.switchto&&switchEditors.switchto(jQuery("#wp-"+e+"-wrap").find(".wp-switch-editor.switch-"+("html"==getUserSetting("editor")?"html":"tmce"))[0]))})},this.doUploadListener=function(){var e;window.formfield="",t("body").off("click",".gfpdf_settings_upload_button").on("click",".gfpdf_settings_upload_button",function(i){i.preventDefault();var n=t(this);return window.formfield=t(this).parent().prev(),e?void e.open():(e=wp.media.frames.file_frame=wp.media({title:n.data("uploader-title"),button:{text:n.data("uploader-button-text")},multiple:!1}),e.on("select",function(){var t=e.state().get("selection");t.each(function(t,e){t=t.toJSON(),window.formfield.val(t.url).change()})}),void e.open())})},this.doColorPicker=function(){t(".gfpdf-color-picker").each(function(){t(this).wpColorPicker()})},this.doMergetags=function(){"undefined"!=typeof form&&(window.gfMergeTags=new gfMergeTagsObj(form))},this.setupCustomPaperSize=function(){t(".gfpdf_paper_size").each(function(){var e=t(this).nextAll(".gfpdf_paper_size_other").first(),i=t(this).find("select");i.off("change").change(function(){"CUSTOM"===t(this).val()?e.fadeIn():e.fadeOut()}).trigger("change")})},this.cleanupGFNavigation=function(){var e=t("#gform_tabs a");e.each(function(){var e=t(this).attr("href"),i=new RegExp("&tab=[^&;]*","g");t(this).attr("href",e.replace(i,""))})},this.runPDFAccessCheck=function(){var e=t("#gfpdf-direct-pdf-protection-check");if(e.length>0){var i=t('<img alt="'+GFPDF.spinnerAlt+'" src="'+GFPDF.spinnerUrl+'" class="gfpdf-spinner" />');e.append(i);var n={action:"gfpdf_has_pdf_protection",nonce:e.data("nonce")};this.ajax(n,function(t){i.remove(),t===!0?e.find("#gfpdf-direct-pdf-check-protected").show():e.find("#gfpdf-direct-pdf-check-unprotected").show()})}},this.setupRequiredFields=function(e){e.attr("novalidate","novalidate"),e.find('tr input[type="submit"]').click(function(){e.addClass("formSubmitted")}),e.find("tr").each(function(){t(this).find(':input[required=""]:first, :input[required]:first').parents("tr").find("th").append('<span class="gfield_required">*</span>')})},this.showTooltips=function(){"function"==typeof gform_initialize_tooltips&&(t(".gf_hidden_tooltip").each(function(){t(this).parent().siblings("th:first").append(" ").append(e.get_tooltip(t(this).html())),t(this).remove()}),gform_initialize_tooltips())},this.setupSelectBoxes=function(){t(".gfpdf-chosen").each(function(){t(this).chosen({disable_search_threshold:5,width:"100%"})})},this.setup_advanced_options=function(){var e=t(".gfpdf-advanced-options"),i=e.prev(),n=e.find("a");n.click(function(){var e=this;return i.slideToggle(600,function(){var i=t(e).text();t(e).text(i==GFPDF.general_advanced_show?GFPDF.general_advanced_hide:GFPDF.general_advanced_show)}),!1}),t(".gfpdf-advanced-options").prev().find(".gfield_error").length&&i.show()},this.generalSettings=function(){this.setupRequiredFields(t("#pdfextended-settings > form"));var e=t("#pdf-general-security"),i=e.find('input[name="gfpdf_settings[default_restrict_owner]"]');i.change(function(){t(this).is(":checked")&&("Yes"===t(this).val()?e.find("tr:nth-child(3)").hide():e.find("tr:nth-child(3)").show())}).trigger("change"),this.setup_advanced_options()},this.toolsSettings=function(){this.setupToolsTemplateInstallerDialog(),this.setupToolsFontsDialog(),this.setupToolsUninstallDialog()},this.setupToolsTemplateInstallerDialog=function(){var i=t("#gfpdf_settings\\[setup_templates\\]"),n=t("#setup-templates-confirm"),a=[{text:GFPDF.tools_template_copy_confirm,click:function(){i.unbind().click()}},{text:GFPDF.tools_cancel,click:function(){n.wpdialog("close")}}];n.length&&(this.wp_dialog(n,a,500,350),i.click(function(){return e.resizeDialogIfNeeded(n,500,350),n.wpdialog("open"),!1}))},this.setupToolsFontsDialog=function(){var i=t("#gfpdf_settings\\[manage_fonts\\]"),n=t("#manage-font-files");this.wp_dialog(n,[],500,500),i.click(function(){return e.resizeDialogIfNeeded(n,500,500),n.wpdialog("open"),!1}),window.location.hash&&"#manage_fonts"==window.location.hash&&i.click()},this.setupToolsUninstallDialog=function(){var i=t("#gfpdf-uninstall"),n=t("#uninstall-confirm"),a=[{text:GFPDF.tools_uninstall_confirm,click:function(){i.parents("form").submit()}},{text:GFPDF.tools_cancel,click:function(){n.wpdialog("close")}}];this.wp_dialog(n,a,500,175),i.click(function(){return e.resizeDialogIfNeeded(n,500,175),n.wpdialog("open"),!1})},this.resizeDialogIfNeeded=function(e,i,n){var a=t(window).width(),s=t(window).height(),o=500>a?a-20:i,d=500>s?s-50:n;e.wpdialog("option","width",o),e.wpdialog("option","height",d)},this.wp_dialog=function(e,i,n,a){e.wpdialog({autoOpen:!1,resizable:!1,draggable:!1,width:n,height:a,modal:!0,dialogClass:"wp-dialog",zIndex:3e5,buttons:i,open:function(){t(this).siblings(".ui-dialog-buttonpane").find("button:eq(1)").focus(),t(".ui-widget-overlay").bind("click",function(){e.wpdialog("close")})}})},this.get_tooltip=function(e){var i=t("<a>"),n=t('<i class="fa fa-question-circle">');return i.append(n),i.addClass("gf_tooltip tooltip"),i.click(function(){return!1}),i.attr("title",e),i},this.ajax=function(e,i){t.ajax({type:"post",dataType:"json",url:GFPDF.ajaxurl,data:e,success:i,error:this.ajax_error})},this.ajax_error=function(t,e,i){console.log(e),console.log(i),4===t.readyState&&alert.log(GFPDF.ajax_error)},this.show_message=function(e,i,n){i="undefined"!=typeof i?i:4500,n="undefined"!=typeof n?n:!1;var a=t('<div id="message">').html("<p>"+e+"</p>");n===!0?a.addClass("error"):a.addClass("updated"),t(".wrap > h2").after(a),setTimeout(function(){a.slideUp()},i)},this.updateURLParameter=function(t,e,n){var a="",s=t.split("?"),o=s[0],d=s[1],r="";if(d)for(s=d.split("&"),i=0;i<s.length;i++)s[i].split("=")[0]!=e&&(a+=r+s[i],r="&");var c=r+""+e+"="+n;return o+"?"+a+c}}"undefined"!=typeof gf_vars&&(gf_vars.thisFormButton=GFPDF.conditionalText,gf_vars.show=GFPDF.conditionalShow,gf_vars.hide=GFPDF.conditionalHide),"undefined"!=typeof form&&"undefined"!=typeof window.gfMergeTags&&(window.gfMergeTags.getTargetElement=function(e){console.log("Gravity PDF gfMergeTags.getTargetElement Override Running");var i=t(e),n=i.parents("span.all-merge-tags").data("targetElement");return n=n.replace(/[!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g,"\\$&"),t("#"+n)});var n=new e;n.init()})}(jQuery);
src/assets/languages/gravity-forms-pdf-extended.pot CHANGED
@@ -411,7 +411,7 @@ msgstr ""
411
  msgid "Other"
412
  msgstr ""
413
 
414
- #: src/helper/abstract/Helper_Abstract_Options.php:2319, src/model/Model_Settings.php:619
415
  msgid "User-Defined Fonts"
416
  msgstr ""
417
 
@@ -527,11 +527,11 @@ msgstr ""
527
  msgid "Delete"
528
  msgstr ""
529
 
530
- #: src/helper/Helper_Data.php:411, src/helper/Helper_PDF_List_Table.php:497, src/helper/Helper_PDF_List_Table.php:499, src/model/Model_Form_Settings.php:2057
531
  msgid "Active"
532
  msgstr ""
533
 
534
- #: src/helper/Helper_Data.php:413, src/helper/Helper_PDF_List_Table.php:497, src/helper/Helper_PDF_List_Table.php:499, src/model/Model_Form_Settings.php:2057
535
  msgid "Inactive"
536
  msgstr ""
537
 
@@ -1008,7 +1008,7 @@ msgid "Show Page Names"
1008
  msgstr ""
1009
 
1010
  #: src/helper/Helper_Options_Fields.php:1259
1011
- msgid "Display form page names on the PDF (only works when using page break field)."
1012
  msgstr ""
1013
 
1014
  #: src/helper/Helper_Options_Fields.php:1299
@@ -1187,7 +1187,7 @@ msgstr ""
1187
  msgid "PDF successfully deleted."
1188
  msgstr ""
1189
 
1190
- #: src/model/Model_Form_Settings.php:1911
1191
  msgid "PDF successfully duplicated."
1192
  msgstr ""
1193
 
@@ -1227,35 +1227,39 @@ msgstr ""
1227
  msgid "The PDF could not be saved."
1228
  msgstr ""
1229
 
1230
- #: src/model/Model_Settings.php:465
 
 
 
 
1231
  msgid "There was a problem copying all PDF templates to %s. Please try again."
1232
  msgstr ""
1233
 
1234
- #: src/model/Model_Settings.php:475
1235
  msgid "Gravity PDF Custom Templates successfully installed to %s."
1236
  msgstr ""
1237
 
1238
- #: src/model/Model_Settings.php:719
1239
  msgid "Could not locate font on web server: %s"
1240
  msgstr ""
1241
 
1242
- #: src/model/Model_Settings.php:731
1243
  msgid "There was a problem installing the font %s. Please try again."
1244
  msgstr ""
1245
 
1246
- #: src/model/Model_Settings.php:1051
1247
  msgid "Could not delete Gravity PDF font correctly. Please try again."
1248
  msgstr ""
1249
 
1250
- #: src/model/Model_Settings.php:1113
1251
  msgid "Required fields have not been included."
1252
  msgstr ""
1253
 
1254
- #: src/model/Model_Settings.php:1147
1255
  msgid "Font name is not valid. Only alphanumeric characters and spaces are accepted."
1256
  msgstr ""
1257
 
1258
- #: src/model/Model_Settings.php:1183
1259
  msgid "A font with the same name already exists. Try a different name."
1260
  msgstr ""
1261
 
411
  msgid "Other"
412
  msgstr ""
413
 
414
+ #: src/helper/abstract/Helper_Abstract_Options.php:2319, src/model/Model_Settings.php:639
415
  msgid "User-Defined Fonts"
416
  msgstr ""
417
 
527
  msgid "Delete"
528
  msgstr ""
529
 
530
+ #: src/helper/Helper_Data.php:411, src/helper/Helper_PDF_List_Table.php:497, src/helper/Helper_PDF_List_Table.php:499, src/model/Model_Form_Settings.php:2059
531
  msgid "Active"
532
  msgstr ""
533
 
534
+ #: src/helper/Helper_Data.php:413, src/helper/Helper_PDF_List_Table.php:497, src/helper/Helper_PDF_List_Table.php:499, src/model/Model_Form_Settings.php:2059
535
  msgid "Inactive"
536
  msgstr ""
537
 
1008
  msgstr ""
1009
 
1010
  #: src/helper/Helper_Options_Fields.php:1259
1011
+ msgid "Display form page names on the PDF. Requires the use of the %sPage Break field%s."
1012
  msgstr ""
1013
 
1014
  #: src/helper/Helper_Options_Fields.php:1299
1187
  msgid "PDF successfully deleted."
1188
  msgstr ""
1189
 
1190
+ #: src/model/Model_Form_Settings.php:1913
1191
  msgid "PDF successfully duplicated."
1192
  msgstr ""
1193
 
1227
  msgid "The PDF could not be saved."
1228
  msgstr ""
1229
 
1230
+ #: src/model/Model_PDF.php:3577
1231
+ msgid "Could not find PDF configuration requested"
1232
+ msgstr ""
1233
+
1234
+ #: src/model/Model_Settings.php:485
1235
  msgid "There was a problem copying all PDF templates to %s. Please try again."
1236
  msgstr ""
1237
 
1238
+ #: src/model/Model_Settings.php:495
1239
  msgid "Gravity PDF Custom Templates successfully installed to %s."
1240
  msgstr ""
1241
 
1242
+ #: src/model/Model_Settings.php:739
1243
  msgid "Could not locate font on web server: %s"
1244
  msgstr ""
1245
 
1246
+ #: src/model/Model_Settings.php:751
1247
  msgid "There was a problem installing the font %s. Please try again."
1248
  msgstr ""
1249
 
1250
+ #: src/model/Model_Settings.php:1071
1251
  msgid "Could not delete Gravity PDF font correctly. Please try again."
1252
  msgstr ""
1253
 
1254
+ #: src/model/Model_Settings.php:1133
1255
  msgid "Required fields have not been included."
1256
  msgstr ""
1257
 
1258
+ #: src/model/Model_Settings.php:1167
1259
  msgid "Font name is not valid. Only alphanumeric characters and spaces are accepted."
1260
  msgstr ""
1261
 
1262
+ #: src/model/Model_Settings.php:1203
1263
  msgid "A font with the same name already exists. Try a different name."
1264
  msgstr ""
1265
 
src/bootstrap.php CHANGED
@@ -145,7 +145,7 @@ class Router implements Helper\Helper_Interface_Actions, Helper\Helper_Interface
145
  * @since 4.0
146
  */
147
  public function __call( $name, $arguments ) {
148
- trigger_error( sprintf( __( '"%s" has been depreciated as of Gravity PDF 4.0', 'gravity-forms-pdf-extended' ), $name ), E_USER_DEPRECATED );
149
  }
150
 
151
  /**
@@ -157,7 +157,7 @@ class Router implements Helper\Helper_Interface_Actions, Helper\Helper_Interface
157
  * @since 4.0
158
  */
159
  public static function __callStatic( $name, $arguments ) {
160
- trigger_error( sprintf( __( '"%s" has been depreciated as of Gravity PDF 4.0', 'gravity-forms-pdf-extended' ), $name ), E_USER_DEPRECATED );
161
  }
162
 
163
  /**
@@ -375,7 +375,7 @@ class Router implements Helper\Helper_Interface_Actions, Helper\Helper_Interface
375
  public function plugin_action_links( $links ) {
376
 
377
  $action_links = array(
378
- 'settings' => '<a href="' . esc_url( $this->data->settings_url ) . '" title="' . esc_attr( __( 'View Gravity PDF Settings', 'gravity-forms-pdf-extended' ) ) . '">' . __( 'Settings', 'gravity-forms-pdf-extended' ) . '</a>',
379
  );
380
 
381
  return array_merge( $action_links, $links );
@@ -395,9 +395,9 @@ class Router implements Helper\Helper_Interface_Actions, Helper\Helper_Interface
395
 
396
  if ( $file == PDF_PLUGIN_BASENAME ) {
397
  $row_meta = array(
398
- 'docs' => '<a href="' . esc_url( 'https://gravitypdf.com/documentation/v4/five-minute-install/' ) . '" title="' . esc_attr( __( 'View Gravity PDF Documentation', 'gravity-forms-pdf-extended' ) ) . '">' . __( 'Docs', 'gravity-forms-pdf-extended' ) . '</a>',
399
- 'support' => '<a href="' . esc_url( $this->data->settings_url . '&tab=help' ) . '" title="' . esc_attr( __( 'Get Help and Support', 'gravity-forms-pdf-extended' ) ) . '">' . __( 'Support', 'gravity-forms-pdf-extended' ) . '</a>',
400
- 'shop' => '<a href="' . esc_url( 'https://gravitypdf.com/shop/' ) . '" title="' . esc_attr( __( 'View Gravity PDF Theme Shop', 'gravity-forms-pdf-extended' ) ) . '">' . __( 'Theme Shop', 'gravity-forms-pdf-extended' ) . '</a>',
401
  );
402
 
403
  return array_merge( $links, $row_meta );
@@ -640,7 +640,7 @@ class Router implements Helper\Helper_Interface_Actions, Helper\Helper_Interface
640
  * @since 4.0
641
  */
642
  public function add_gf_logger( $loggers ) {
643
- $loggers['gravity-pdf'] = __( 'Gravity PDF', 'gravity-forms-pdf-extended' );
644
 
645
  return $loggers;
646
  }
145
  * @since 4.0
146
  */
147
  public function __call( $name, $arguments ) {
148
+ trigger_error( sprintf( esc_html__( '"%s" has been depreciated as of Gravity PDF 4.0', 'gravity-forms-pdf-extended' ), $name ), E_USER_DEPRECATED );
149
  }
150
 
151
  /**
157
  * @since 4.0
158
  */
159
  public static function __callStatic( $name, $arguments ) {
160
+ trigger_error( sprintf( esc_html__( '"%s" has been depreciated as of Gravity PDF 4.0', 'gravity-forms-pdf-extended' ), $name ), E_USER_DEPRECATED );
161
  }
162
 
163
  /**
375
  public function plugin_action_links( $links ) {
376
 
377
  $action_links = array(
378
+ 'settings' => '<a href="' . esc_url( $this->data->settings_url ) . '" title="' . esc_attr__( 'View Gravity PDF Settings', 'gravity-forms-pdf-extended' ) . '">' . esc_html__( 'Settings', 'gravity-forms-pdf-extended' ) . '</a>',
379
  );
380
 
381
  return array_merge( $action_links, $links );
395
 
396
  if ( $file == PDF_PLUGIN_BASENAME ) {
397
  $row_meta = array(
398
+ 'docs' => '<a href="' . esc_url( 'https://gravitypdf.com/documentation/v4/five-minute-install/' ) . '" title="' . esc_attr__( 'View Gravity PDF Documentation', 'gravity-forms-pdf-extended' ) . '">' . esc_html__( 'Docs', 'gravity-forms-pdf-extended' ) . '</a>',
399
+ 'support' => '<a href="' . esc_url( $this->data->settings_url . '&tab=help' ) . '" title="' . esc_attr__( 'Get Help and Support', 'gravity-forms-pdf-extended' ) . '">' . esc_html__( 'Support', 'gravity-forms-pdf-extended' ) . '</a>',
400
+ 'shop' => '<a href="' . esc_url( 'https://gravitypdf.com/shop/' ) . '" title="' . esc_attr__( 'View Gravity PDF Theme Shop', 'gravity-forms-pdf-extended' ) . '">' . esc_html__( 'Theme Shop', 'gravity-forms-pdf-extended' ) . '</a>',
401
  );
402
 
403
  return array_merge( $links, $row_meta );
640
  * @since 4.0
641
  */
642
  public function add_gf_logger( $loggers ) {
643
+ $loggers['gravity-pdf'] = esc_html__( 'Gravity PDF', 'gravity-forms-pdf-extended' );
644
 
645
  return $loggers;
646
  }
src/controller/Controller_Actions.php CHANGED
@@ -153,7 +153,7 @@ class Controller_Actions extends Helper_Abstract_Controller implements Helper_In
153
  $routes = array(
154
  array(
155
  'action' => 'review_plugin',
156
- 'action_text' => __( 'Review Submitted', 'gravity-forms-pdf-extended' ),
157
  'condition' => array( $this->model, 'review_condition' ),
158
  'process' => array( $this->model, 'dismiss_notice' ),
159
  'view' => array( $this->view, 'review_plugin' ),
@@ -163,7 +163,7 @@ class Controller_Actions extends Helper_Abstract_Controller implements Helper_In
163
 
164
  array(
165
  'action' => 'migrate_v3_to_v4',
166
- 'action_text' => __( 'Begin Migration', 'gravity-forms-pdf-extended' ),
167
  'condition' => array( $this->model, 'migration_condition' ),
168
  'process' => array( $this->model, 'begin_migration' ),
169
  'view' => array( $this->view, 'migration' ),
@@ -231,14 +231,14 @@ class Controller_Actions extends Helper_Abstract_Controller implements Helper_In
231
  'user_meta' => get_user_meta( get_current_user_id() ),
232
  ) );
233
 
234
- wp_die( __( 'You do not have permission to access this page', 'gravity-forms-pdf-extended' ) );
235
  }
236
 
237
  /* Check nonce is valid */
238
  if ( ! wp_verify_nonce( rgpost( 'gfpdf_action_' . $route['action'] ), 'gfpdf_action_' . $route['action'] ) ) {
239
 
240
  $this->log->addWarning( 'Nonce Verification Failed.' );
241
- $this->notices->add_error( __( 'There was a problem processing the action. Please try again.', 'gravity-forms-pdf-extended' ) );
242
 
243
  continue;
244
  }
153
  $routes = array(
154
  array(
155
  'action' => 'review_plugin',
156
+ 'action_text' => esc_html__( 'Review Submitted', 'gravity-forms-pdf-extended' ),
157
  'condition' => array( $this->model, 'review_condition' ),
158
  'process' => array( $this->model, 'dismiss_notice' ),
159
  'view' => array( $this->view, 'review_plugin' ),
163
 
164
  array(
165
  'action' => 'migrate_v3_to_v4',
166
+ 'action_text' => esc_html__( 'Begin Migration', 'gravity-forms-pdf-extended' ),
167
  'condition' => array( $this->model, 'migration_condition' ),
168
  'process' => array( $this->model, 'begin_migration' ),
169
  'view' => array( $this->view, 'migration' ),
231
  'user_meta' => get_user_meta( get_current_user_id() ),
232
  ) );
233
 
234
+ wp_die( esc_html__( 'You do not have permission to access this page', 'gravity-forms-pdf-extended' ) );
235
  }
236
 
237
  /* Check nonce is valid */
238
  if ( ! wp_verify_nonce( rgpost( 'gfpdf_action_' . $route['action'] ), 'gfpdf_action_' . $route['action'] ) ) {
239
 
240
  $this->log->addWarning( 'Nonce Verification Failed.' );
241
+ $this->notices->add_error( esc_html__( 'There was a problem processing the action. Please try again.', 'gravity-forms-pdf-extended' ) );
242
 
243
  continue;
244
  }
src/controller/Controller_Install.php CHANGED
@@ -232,7 +232,7 @@ class Controller_Install extends Helper_Abstract_Controller implements Helper_In
232
 
233
  /* Check Nonce is valid */
234
  if ( ! wp_verify_nonce( rgpost( 'gfpdf-uninstall-plugin' ), 'gfpdf-uninstall-plugin' ) ) {
235
- $this->notices->add_error( __( 'There was a problem uninstalling Gravity PDF. Please try again.', 'gravity-forms-pdf-extended' ) );
236
  $this->log->addWarning( 'Nonce Verification Failed.' );
237
 
238
  return null;
@@ -254,7 +254,7 @@ class Controller_Install extends Helper_Abstract_Controller implements Helper_In
254
  'user_meta' => get_user_meta( get_current_user_id() ),
255
  ) );
256
 
257
- wp_die( __( 'Cheatin&#8217; uh?' ), 403 );
258
  }
259
 
260
  $this->model->uninstall_plugin();
232
 
233
  /* Check Nonce is valid */
234
  if ( ! wp_verify_nonce( rgpost( 'gfpdf-uninstall-plugin' ), 'gfpdf-uninstall-plugin' ) ) {
235
+ $this->notices->add_error( esc_html__( 'There was a problem uninstalling Gravity PDF. Please try again.', 'gravity-forms-pdf-extended' ) );
236
  $this->log->addWarning( 'Nonce Verification Failed.' );
237
 
238
  return null;
254
  'user_meta' => get_user_meta( get_current_user_id() ),
255
  ) );
256
 
257
+ wp_die( esc_html__( 'Access Denied' ), 403 );
258
  }
259
 
260
  $this->model->uninstall_plugin();
src/controller/Controller_PDF.php CHANGED
@@ -303,7 +303,7 @@ class Controller_PDF extends Helper_Abstract_Controller implements Helper_Interf
303
  if ( $this->gform->has_capability( 'gravityforms_view_settings' ) || in_array( $error->get_error_code(), $whitelist_errors ) ) {
304
  wp_die( $error->get_error_message() );
305
  } else {
306
- wp_die( __( 'There was a problem generating your PDF', 'gravity-forms-pdf-extended' ) );
307
  }
308
  }
309
  }
303
  if ( $this->gform->has_capability( 'gravityforms_view_settings' ) || in_array( $error->get_error_code(), $whitelist_errors ) ) {
304
  wp_die( $error->get_error_message() );
305
  } else {
306
+ wp_die( esc_html__( 'There was a problem generating your PDF', 'gravity-forms-pdf-extended' ) );
307
  }
308
  }
309
  }
src/controller/Controller_Settings.php CHANGED
@@ -272,7 +272,7 @@ class Controller_Settings extends Helper_Abstract_Controller implements Helper_I
272
  'user_meta' => get_user_meta( get_current_user_id() ),
273
  ) );
274
 
275
- wp_die( __( 'Cheatin&#8217; uh?' ), 403 );
276
  }
277
 
278
  /* the user is authenticated by the above so let's pass in the lowest permissions */
@@ -337,7 +337,7 @@ class Controller_Settings extends Helper_Abstract_Controller implements Helper_I
337
  /* verify the nonce */
338
  if ( ! wp_verify_nonce( $settings['setup_templates']['nonce'], 'gfpdf_settings[setup_templates]' ) ) {
339
  $this->log->addWarning( 'Nonce Verification Failed.' );
340
- $this->notices->add_error( __( 'There was a problem installing the PDF templates. Please try again.', 'gravity-forms-pdf-extended' ) );
341
 
342
  return null;
343
  }
272
  'user_meta' => get_user_meta( get_current_user_id() ),
273
  ) );
274
 
275
+ wp_die( esc_html__( 'Access Denied' ), 403 );
276
  }
277
 
278
  /* the user is authenticated by the above so let's pass in the lowest permissions */
337
  /* verify the nonce */
338
  if ( ! wp_verify_nonce( $settings['setup_templates']['nonce'], 'gfpdf_settings[setup_templates]' ) ) {
339
  $this->log->addWarning( 'Nonce Verification Failed.' );
340
+ $this->notices->add_error( esc_html__( 'There was a problem installing the PDF templates. Please try again.', 'gravity-forms-pdf-extended' ) );
341
 
342
  return null;
343
  }
src/controller/Controller_Shortcodes.php CHANGED
@@ -148,7 +148,7 @@ class Controller_Shortcodes extends Helper_Abstract_Controller implements Helper
148
 
149
  /* Enhance further */
150
  shortcode_ui_register_for_shortcode( 'gravitypdf', array(
151
- 'label' => __( 'Gravity PDF', 'gravity-forms-pdf-extended' ),
152
 
153
  'listItemImage' => 'dashicons-admin-site',
154
 
148
 
149
  /* Enhance further */
150
  shortcode_ui_register_for_shortcode( 'gravitypdf', array(
151
+ 'label' => esc_html__( 'Gravity PDF', 'gravity-forms-pdf-extended' ),
152
 
153
  'listItemImage' => 'dashicons-admin-site',
154
 
src/depreciated.php CHANGED
@@ -54,7 +54,7 @@ abstract class GFPDF_Depreciated_Abstract {
54
  * @param array $arguments An enumerated array containing the parameters passed to the $name'ed method
55
  */
56
  public function __call( $name, $arguments ) {
57
- trigger_error( sprintf( __( '"%s" has been depreciated as of Gravity PDF 4.0', 'gravity-forms-pdf-extended' ), $name ), E_USER_DEPRECATED );
58
  }
59
 
60
  /**
@@ -66,7 +66,7 @@ abstract class GFPDF_Depreciated_Abstract {
66
  * @param array $arguments An enumerated array containing the parameters passed to the $name'ed method
67
  */
68
  public static function __callStatic( $name, $arguments ) {
69
- trigger_error( sprintf( __( '"%s" has been depreciated as of Gravity PDF 4.0', 'gravity-forms-pdf-extended' ), $name ), E_USER_DEPRECATED );
70
  }
71
  }
72
 
54
  * @param array $arguments An enumerated array containing the parameters passed to the $name'ed method
55
  */
56
  public function __call( $name, $arguments ) {
57
+ trigger_error( sprintf( esc_html__( '"%s" has been depreciated as of Gravity PDF 4.0', 'gravity-forms-pdf-extended' ), $name ), E_USER_DEPRECATED );
58
  }
59
 
60
  /**
66
  * @param array $arguments An enumerated array containing the parameters passed to the $name'ed method
67
  */
68
  public static function __callStatic( $name, $arguments ) {
69
+ trigger_error( sprintf( esc_html__( '"%s" has been depreciated as of Gravity PDF 4.0', 'gravity-forms-pdf-extended' ), $name ), E_USER_DEPRECATED );
70
  }
71
  }
72
 
src/helper/Helper_Data.php CHANGED
@@ -171,8 +171,8 @@ class Helper_Data {
171
  * @since 4.0
172
  */
173
  public function set_plugin_titles() {
174
- $this->short_title = __( 'PDF', 'gravity-forms-pdf-extended' );
175
- $this->title = __( 'Gravity PDF', 'gravity-forms-pdf-extended' );
176
  $this->slug = 'pdf';
177
  }
178
 
@@ -196,33 +196,33 @@ class Helper_Data {
196
  'GFbaseUrl' => $gform->get_plugin_url(),
197
  'pluginUrl' => PDF_PLUGIN_URL,
198
  'spinnerUrl' => admin_url( 'images/spinner-2x.gif' ),
199
- 'spinnerAlt' => __( 'Loading...', 'gravity-forms-pdf-extended' ),
200
- 'general_advanced_show' => __( 'Show Advanced Options...', 'gravity-forms-pdf-extended' ),
201
- 'general_advanced_hide' => __( 'Hide Advanced Options...', 'gravity-forms-pdf-extended' ),
202
- 'tools_template_copy_confirm' => __( 'Continue', 'gravity-forms-pdf-extended' ),
203
- 'tools_uninstall_confirm' => __( 'Uninstall', 'gravity-forms-pdf-extended' ),
204
- 'tools_cancel' => __( 'Cancel', 'gravity-forms-pdf-extended' ),
205
- 'pdf_list_delete_confirm' => __( 'Delete', 'gravity-forms-pdf-extended' ),
206
- 'active' => __( 'Active', 'gravity-forms-pdf-extended' ),
207
- 'inactive' => __( 'Inactive', 'gravity-forms-pdf-extended' ),
208
- 'conditionalText' => __( 'this PDF if', 'gravity-forms-pdf-extended' ),
209
- 'conditionalShow' => __( 'Enable', 'gravity-forms-pdf-extended' ),
210
- 'conditionalHide' => __( 'Disable', 'gravity-forms-pdf-extended' ),
211
- 'help_search_placeholder' => __( 'Search the Gravity PDF Knowledgebase...', 'gravity-forms-pdf-extended' ),
212
- 'ajax_error' => __( 'There was an error processing your request. Please try again.', 'gravity-forms-pdf-extended' ),
213
- 'update_success' => __( 'Successfully Updated', 'gravity-forms-pdf-extended' ),
214
- 'delete_success' => __( 'Successfully Deleted', 'gravity-forms-pdf-extended' ),
215
  'custom_fonts' => json_encode( $custom_fonts ),
216
- 'no' => __( 'No', 'gravity-forms-pdf-extended' ),
217
- 'yes' => __( 'Yes', 'gravity-forms-pdf-extended' ),
218
- 'standard' => __( 'Standard', 'gravity-forms-pdf-extended' ),
219
- 'migration_start' => __( 'Migrating site #%s', 'gravity-forms-pdf-extended' ),
220
- 'migration_complete' => __( 'Site #%s migration complete.', 'gravity-forms-pdf-extended' ),
221
- 'migration_error_specific' => __( 'Migration Error', 'gravity-forms-pdf-extended' ),
222
- 'migration_error_generic' => __( 'Site #%s migration errors.', 'gravity-forms-pdf-extended' ),
223
- 'no_pdfs_found' => __( "This form doesn't have any PDFs.", 'gravity-forms-pdf-extended' ),
224
- 'no_pdfs_found_link' => __( "Let's go create one", 'gravity-forms-pdf-extended' ),
225
- 'no_template_preview' => __( "No Template Preview Available", 'gravity-forms-pdf-extended' ),
226
  ) );
227
  }
228
  }
171
  * @since 4.0
172
  */
173
  public function set_plugin_titles() {
174
+ $this->short_title = esc_html__( 'PDF', 'gravity-forms-pdf-extended' );
175
+ $this->title = esc_html__( 'Gravity PDF', 'gravity-forms-pdf-extended' );
176
  $this->slug = 'pdf';
177
  }
178
 
196
  'GFbaseUrl' => $gform->get_plugin_url(),
197
  'pluginUrl' => PDF_PLUGIN_URL,
198
  'spinnerUrl' => admin_url( 'images/spinner-2x.gif' ),
199
+ 'spinnerAlt' => esc_html__( 'Loading...', 'gravity-forms-pdf-extended' ),
200
+ 'general_advanced_show' => esc_html__( 'Show Advanced Options...', 'gravity-forms-pdf-extended' ),
201
+ 'general_advanced_hide' => esc_html__( 'Hide Advanced Options...', 'gravity-forms-pdf-extended' ),
202
+ 'tools_template_copy_confirm' => esc_html__( 'Continue', 'gravity-forms-pdf-extended' ),
203
+ 'tools_uninstall_confirm' => esc_html__( 'Uninstall', 'gravity-forms-pdf-extended' ),
204
+ 'tools_cancel' => esc_html__( 'Cancel', 'gravity-forms-pdf-extended' ),
205
+ 'pdf_list_delete_confirm' => esc_html__( 'Delete', 'gravity-forms-pdf-extended' ),
206
+ 'activeName' => esc_html__( 'Active', 'gravity-forms-pdf-extended' ),
207
+ 'inactiveName' => esc_html__( 'Inactive', 'gravity-forms-pdf-extended' ),
208
+ 'conditionalText' => esc_html__( 'this PDF if', 'gravity-forms-pdf-extended' ),
209
+ 'conditionalShow' => esc_html__( 'Enable', 'gravity-forms-pdf-extended' ),
210
+ 'conditionalHide' => esc_html__( 'Disable', 'gravity-forms-pdf-extended' ),
211
+ 'help_search_placeholder' => esc_html__( 'Search the Gravity PDF Knowledgebase...', 'gravity-forms-pdf-extended' ),
212
+ 'ajax_error' => esc_html__( 'There was an error processing your request. Please try again.', 'gravity-forms-pdf-extended' ),
213
+ 'update_success' => esc_html__( 'Successfully Updated', 'gravity-forms-pdf-extended' ),
214
+ 'delete_success' => esc_html__( 'Successfully Deleted', 'gravity-forms-pdf-extended' ),
215
  'custom_fonts' => json_encode( $custom_fonts ),
216
+ 'no' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
217
+ 'yes' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' ),
218
+ 'standard' => esc_html__( 'Standard', 'gravity-forms-pdf-extended' ),
219
+ 'migration_start' => esc_html__( 'Migrating site #%s', 'gravity-forms-pdf-extended' ),
220
+ 'migration_complete' => esc_html__( 'Site #%s migration complete.', 'gravity-forms-pdf-extended' ),
221
+ 'migration_error_specific' => esc_html__( 'Migration Error', 'gravity-forms-pdf-extended' ),
222
+ 'migration_error_generic' => esc_html__( 'Site #%s migration errors.', 'gravity-forms-pdf-extended' ),
223
+ 'no_pdfs_found' => esc_html__( "This form doesn't have any PDFs.", 'gravity-forms-pdf-extended' ),
224
+ 'no_pdfs_found_link' => esc_html__( "Let's go create one", 'gravity-forms-pdf-extended' ),
225
+ 'no_template_preview' => esc_html__( "No Template Preview Available", 'gravity-forms-pdf-extended' ),
226
  ) );
227
  }
228
  }
src/helper/Helper_Migration.php CHANGED
@@ -145,7 +145,7 @@ class Helper_Migration {
145
  'exception' => $e->getMessage(),
146
  ) );
147
 
148
- $this->notices->add_error( __( 'There was a problem processing the action. Please try again.', 'gravity-forms-pdf-extended' ) );
149
 
150
  return false;
151
  }
@@ -544,7 +544,7 @@ class Helper_Migration {
544
  /* Check for any errors */
545
  if ( sizeof( $errors ) > 0 ) {
546
 
547
- $error_msg = __( 'There was a problem migrating the following configuration nodes. You will need to manually setup those PDFs.', 'gravity-forms-pdf-extended' );
548
  $error_msg .= '<ul>';
549
 
550
  foreach ( $errors as $error ) {
@@ -554,7 +554,7 @@ class Helper_Migration {
554
  $error_msg .= '</ul>';
555
  $this->notices->add_error( $error_msg );
556
  } else {
557
- $this->notices->add_notice( __( 'Migration Successful.', 'gravity-forms-pdf-extended' ) );
558
  }
559
 
560
  /* Attempt to rename the configuration file */
145
  'exception' => $e->getMessage(),
146
  ) );
147
 
148
+ $this->notices->add_error( esc_html__( 'There was a problem processing the action. Please try again.', 'gravity-forms-pdf-extended' ) );
149
 
150
  return false;
151
  }
544
  /* Check for any errors */
545
  if ( sizeof( $errors ) > 0 ) {
546
 
547
+ $error_msg = esc_html__( 'There was a problem migrating the following configuration nodes. You will need to manually setup those PDFs.', 'gravity-forms-pdf-extended' );
548
  $error_msg .= '<ul>';
549
 
550
  foreach ( $errors as $error ) {
554
  $error_msg .= '</ul>';
555
  $this->notices->add_error( $error_msg );
556
  } else {
557
+ $this->notices->add_notice( esc_html__( 'Migration Successful.', 'gravity-forms-pdf-extended' ) );
558
  }
559
 
560
  /* Attempt to rename the configuration file */
src/helper/Helper_Misc.php CHANGED
@@ -232,7 +232,8 @@ class Helper_Misc {
232
 
233
  try {
234
  /* Get the <img> from the DOM and extract required details */
235
- $wrapper = htmlqp( $html );
 
236
 
237
  $images = $wrapper->find( 'img' );
238
 
@@ -260,7 +261,7 @@ class Helper_Misc {
260
  }
261
  }
262
 
263
- return $wrapper->top( 'body' )->innerHTML5();
264
  }
265
 
266
  return $html;
@@ -464,7 +465,7 @@ class Helper_Misc {
464
 
465
  throw new Exception( 'Could not create folder at ' . $destination . $files->getSubPathName() );
466
  }
467
- } elseif ( ! file_exists( $destination . $files->getSubPathName() ) ) {
468
  if ( ! @copy( $fileinfo, $destination . $files->getSubPathName() ) ) {
469
  $this->log->addError( 'Failed Creating File', array(
470
  'file' => $destination . $files->getSubPathName(),
232
 
233
  try {
234
  /* Get the <img> from the DOM and extract required details */
235
+ $qp = new Helper_QueryPath();
236
+ $wrapper = $qp->html5( $html );
237
 
238
  $images = $wrapper->find( 'img' );
239
 
261
  }
262
  }
263
 
264
+ return $wrapper->top( 'html' )->innerHTML5();
265
  }
266
 
267
  return $html;
465
 
466
  throw new Exception( 'Could not create folder at ' . $destination . $files->getSubPathName() );
467
  }
468
+ } elseif ( ! $fileinfo->isDir() ) {
469
  if ( ! @copy( $fileinfo, $destination . $files->getSubPathName() ) ) {
470
  $this->log->addError( 'Failed Creating File', array(
471
  'file' => $destination . $files->getSubPathName(),
src/helper/Helper_Options_Fields.php CHANGED
@@ -84,8 +84,8 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
84
  array(
85
  'default_pdf_size' => array(
86
  'id' => 'default_pdf_size',
87
- 'name' => __( 'Default Paper Size', 'gravity-forms-pdf-extended' ),
88
- 'desc' => __( 'Set the default paper size used when generating PDFs.', 'gravity-forms-pdf-extended' ),
89
  'type' => 'select',
90
  'options' => $this->get_paper_size(),
91
  'inputClass' => 'large',
@@ -95,8 +95,8 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
95
 
96
  'default_custom_pdf_size' => array(
97
  'id' => 'default_custom_pdf_size',
98
- 'name' => __( 'Custom Paper Size', 'gravity-forms-pdf-extended' ),
99
- 'desc' => __( 'Control the exact paper size. Can be set in millimeters or inches.', 'gravity-forms-pdf-extended' ),
100
  'type' => 'paper_size',
101
  'size' => 'small',
102
  'chosen' => true,
@@ -106,31 +106,31 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
106
 
107
  'default_template' => array(
108
  'id' => 'default_template',
109
- 'name' => __( 'Default Template', 'gravity-forms-pdf-extended' ),
110
- 'desc' => sprintf( __( 'Choose an existing template or purchased more %sfrom our theme shop%s. You can also %sbuild your own%s or %shire us%s to create a custom solution.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/shop/">', '</a>', '<a href="https://gravitypdf.com/documentation/v4/developer-start-customising/">', '</a>', '<a href="https://gravitypdf.com/integration-services/">', '</a>' ),
111
  'type' => 'select',
112
  'options' => $this->get_templates(),
113
  'std' => 'zadani',
114
  'inputClass' => 'large',
115
  'chosen' => true,
116
- 'tooltip' => '<h6>' . __( 'Templates', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( __( 'Gravity PDF comes with %sfour completely-free and highly customisable designs%s. You can also purchase additional templates from our theme shop, hire us to integrate existing PDFs or, with a bit of technical know-how, build your own.', 'gravity-forms-pdf-extended' ), '<strong>', '</strong>' ),
117
  ),
118
 
119
  'default_font' => array(
120
  'id' => 'default_font',
121
- 'name' => __( 'Default Font', 'gravity-forms-pdf-extended' ),
122
- 'desc' => sprintf( __( 'Set the default font type used in PDFs. Choose an existing font or %sinstall your own%s.', 'gravity-forms-pdf-extended' ), '<a href="' . $this->data->settings_url . '&tab=tools#manage_fonts">', '</a>' ),
123
  'type' => 'select',
124
  'options' => $this->get_installed_fonts(),
125
  'inputClass' => 'large',
126
  'chosen' => true,
127
- 'tooltip' => '<h6>' . __( 'Fonts', 'gravity-forms-pdf-extended' ) . '</h6>' . __( 'Gravity PDF comes bundled with fonts for most languages world-wide. Want to use a specific font type? Use the font installer (found in the Tools tab).', 'gravity-forms-pdf-extended' ),
128
  ),
129
 
130
  'default_font_size' => array(
131
  'id' => 'default_font_size',
132
- 'name' => __( 'Default Font Size', 'gravity-forms-pdf-extended' ),
133
- 'desc' => __( 'Set the default font size used in PDFs.', 'gravity-forms-pdf-extended' ),
134
  'desc2' => 'pt',
135
  'type' => 'number',
136
  'size' => 'small',
@@ -139,49 +139,49 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
139
 
140
  'default_font_colour' => array(
141
  'id' => 'default_font_colour',
142
- 'name' => __( 'Default Font Colour', 'gravity-forms-pdf-extended' ),
143
  'type' => 'color',
144
  'std' => '#000000',
145
- 'desc' => __( 'Set the default font colour used in PDFs.', 'gravity-forms-pdf-extended' ),
146
  ),
147
 
148
  'default_rtl' => array(
149
  'id' => 'default_rtl',
150
- 'name' => __( 'Reverse Text (RTL)', 'gravity-forms-pdf-extended' ),
151
- 'desc' => __( 'Script like Arabic and Hebrew are written right to left.', 'gravity-forms-pdf-extended' ),
152
  'type' => 'radio',
153
  'options' => array(
154
- 'Yes' => __( 'Yes', 'gravity-forms-pdf-extended' ),
155
- 'No' => __( 'No', 'gravity-forms-pdf-extended' ),
156
  ),
157
- 'std' => __( 'No', 'gravity-forms-pdf-extended' ),
158
- 'tooltip' => '<h6>' . __( 'Reverse Text (RTL)', 'gravity-forms-pdf-extended' ) . '</h6>' . __( "Enable RTL if you are writing in Arabic, Hebrew, Syriac, N'ko, Thaana, Tifinar, Urdu or other RTL languages.", 'gravity-forms-pdf-extended' ),
159
  ),
160
 
161
  'default_action' => array(
162
  'id' => 'default_action',
163
- 'name' => __( 'Entry View', 'gravity-forms-pdf-extended' ),
164
- 'desc' => sprintf( __( 'Select the default action used when accessing a PDF from the %sGravity Forms entries list%s page.', 'gravity-forms-pdf-extended' ), '<a href="' . admin_url( 'admin.php?page=gf_entries' ) . '">', '</a>' ),
165
  'type' => 'radio',
166
  'options' => array(
167
- 'View' => __( 'View', 'gravity-forms-pdf-extended' ),
168
- 'Download' => __( 'Download', 'gravity-forms-pdf-extended' ),
169
  ),
170
  'std' => 'View',
171
- 'tooltip' => '<h6>' . __( 'Entry View', 'gravity-forms-pdf-extended' ) . '</h6>' . __( 'Choose to view the PDF in your web browser or download the document to your computer.', 'gravity-forms-pdf-extended' ),
172
  ),
173
 
174
  'update_screen_action' => array(
175
  'id' => 'update_screen_action',
176
- 'name' => __( "Show What's New", 'gravity-forms-pdf-extended' ),
177
  'desc' => "When updating to a new release we'll redirect you to our What's New page.",
178
  'type' => 'radio',
179
  'options' => array(
180
- 'Enable' => __( 'Enable', 'gravity-forms-pdf-extended' ),
181
- 'Disable' => __( 'Disable', 'gravity-forms-pdf-extended' ),
182
  ),
183
  'std' => 'Enable',
184
- 'tooltip' => '<h6>' . __( "Show What's New Page", 'gravity-forms-pdf-extended' ) . '</h6>' . __( "When upgrading Gravity PDF to a new major release (4.x) we'll automatically redirect you to our What's New page so you can see the changes. Bug fix and security releases are excluded (4.x.x).", 'gravity-forms-pdf-extended' ),
185
  ),
186
  )
187
  ),
@@ -191,8 +191,8 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
191
  array(
192
  'admin_capabilities' => array(
193
  'id' => 'admin_capabilities',
194
- 'name' => __( 'User Restriction', 'gravity-forms-pdf-extended' ),
195
- 'desc' => __( 'Restrict PDF access to users with any of these capabilities. The Administrator Role always has full access.', 'gravity-forms-pdf-extended' ),
196
  'type' => 'select',
197
  'options' => $this->get_capabilities(),
198
  'std' => 'gravityforms_view_entries',
@@ -200,32 +200,32 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
200
  'chosen' => true,
201
  'multiple' => true,
202
  'required' => true,
203
- 'placeholder' => __( 'Select Capability', 'gravity-forms-pdf-extended' ),
204
- 'tooltip' => '<h6>' . __( 'User Restriction', 'gravity-forms-pdf-extended' ) . '</h6>' . __( "Only logged in users with any selected capability can view generated PDFs they don't have ownership of. Ownership refers to an end user who completed the original Gravity Form entry.", 'gravity-forms-pdf-extended' ),
205
  ),
206
 
207
  'default_restrict_owner' => array(
208
  'id' => 'default_restrict_owner',
209
- 'name' => __( 'Default Owner Restrictions', 'gravity-forms-pdf-extended' ),
210
- 'desc' => __( 'Set the default PDF owner permissions. When enabled, the original entry owner will NOT be able to view the PDFs (unless they have one of the above capabilities).', 'gravity-forms-pdf-extended' ),
211
  'type' => 'radio',
212
  'options' => array(
213
- 'Yes' => __( 'Enable', 'gravity-forms-pdf-extended' ),
214
- 'No' => __( 'Disable', 'gravity-forms-pdf-extended' ),
215
  ),
216
- 'std' => __( 'No', 'gravity-forms-pdf-extended' ),
217
- 'tooltip' => '<h6>' . __( 'Restrict Owner', 'gravity-forms-pdf-extended' ) . '</h6>' . __( 'Enable this setting if your PDFs should not be viewable by the end user. This can be set on a per-PDF basis.', 'gravity-forms-pdf-extended' ),
218
  ),
219
 
220
  'logged_out_timeout' => array(
221
  'id' => 'logged_out_timeout',
222
- 'name' => __( 'Logged Out Timeout', 'gravity-forms-pdf-extended' ),
223
- 'desc' => sprintf( __( 'Limit how long a %slogged out%s users has direct access to the PDF after completing the form. Set to 0 to disable time limit (not recommended).', 'gravity-forms-pdf-extended' ), '<em>', '</em>' ),
224
- 'desc2' => __( 'minutes', 'gravity-forms-pdf-extended' ),
225
  'type' => 'number',
226
  'size' => 'small',
227
  'std' => 20,
228
- 'tooltip' => '<h6>' . __( 'Logged Out Timeout', 'gravity-forms-pdf-extended' ) . '</h6>' . __( 'Logged out users can view PDFs when their IP matches the one assigned to the Gravity Form entry. Because IP addresses can change, a time-based restriction also applies.', 'gravity-forms-pdf-extended' ),
229
  ),
230
  )
231
  ),
@@ -249,22 +249,22 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
249
  array(
250
  'setup_templates' => array(
251
  'id' => 'setup_templates',
252
- 'name' => __( 'Setup Custom Templates', 'gravity-forms-pdf-extended' ),
253
- 'desc' => sprintf( __( 'Setup environment for building custom templates. %sSee docs to get started%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/documentation/v4/developer-first-custom-pdf/">', '</a>' ),
254
  'type' => 'button',
255
- 'std' => __( 'Run Setup', 'gravity-forms-pdf-extended' ),
256
  'options' => 'copy',
257
- 'tooltip' => '<h6>' . __( 'Setup Custom Templates', 'gravity-forms-pdf-extended' ) . '</h6>' . __( 'The setup will copy the plugin templates to your uploads directory so you can freely create and modify PDF templates without the risk of overriding your modifications when the plugin updates.', 'gravity-forms-pdf-extended' ),
258
  ),
259
 
260
  'manage_fonts' => array(
261
  'id' => 'manage_fonts',
262
- 'name' => __( 'Fonts', 'gravity-forms-pdf-extended' ),
263
- 'desc' => __( 'Add, update or remove custom fonts.', 'gravity-forms-pdf-extended' ),
264
  'type' => 'button',
265
- 'std' => __( 'Manage Fonts', 'gravity-forms-pdf-extended' ),
266
  'options' => 'install_fonts',
267
- 'tooltip' => '<h6>' . __( 'Install Fonts', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( __( 'Custom fonts can be installed for use in your PDFs. Only %s.ttf%s and %s.otf%s font files are supported.', 'gravity-forms-pdf-extended' ), '<code>', '</code>', '<code>', '</code>', '<code>', '</code>' ),
268
  ),
269
  )
270
  ),
@@ -278,55 +278,55 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
278
  array(
279
  'name' => array(
280
  'id' => 'name',
281
- 'name' => __( 'Name', 'gravity-forms-pdf-extended' ),
282
  'type' => 'text',
283
  'required' => true,
284
- 'tooltip' => '<h6>' . __( 'PDF Name', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( __( 'Distinguish between multiple PDFs by giving it an easy-to-remember name (for internal use). Use the %sFilename%s field below to set the actual PDF name.', 'gravity-forms-pdf-extended' ), '<em>', '</em>' ),
285
  ),
286
 
287
  'template' => array(
288
  'id' => 'template',
289
- 'name' => __( 'Template', 'gravity-forms-pdf-extended' ),
290
- 'desc' => sprintf( __( 'Choose an existing template or purchased more %sfrom our theme shop%s. You can also %sbuild your own%s or %shire us%s to create a custom solution.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/shop/">', '</a>', '<a href="https://gravitypdf.com/documentation/v4/developer-start-customising/">', '</a>', '<a href="https://gravitypdf.com/integration-services/">', '</a>' ),
291
  'type' => 'select',
292
  'options' => $this->get_templates(),
293
  'std' => $this->get_option( 'default_template', 'zadani' ),
294
  'inputClass' => 'large',
295
  'chosen' => true,
296
- 'tooltip' => '<h6>' . __( 'Templates', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( __( 'Gravity PDF comes with %sfour completely-free and highly customisable designs%s. You can also purchase additional templates from our theme shop, hire us to integrate existing PDFs or, with a bit of technical know-how, build your own.', 'gravity-forms-pdf-extended' ), '<strong>', '</strong>' ),
297
  ),
298
 
299
  'notification' => array(
300
  'id' => 'notification',
301
- 'name' => __( 'Notifications', 'gravity-forms-pdf-extended' ),
302
- 'desc' => __( 'Automatically attach PDF to the selected notifications.', 'gravity-forms-pdf-extended' ),
303
  'type' => 'select',
304
  'options' => array(),
305
  'inputClass' => 'large',
306
  'chosen' => true,
307
  'multiple' => true,
308
- 'placeholder' => __( 'Choose a Notification', 'gravity-forms-pdf-extended' ),
309
- 'tooltip' => '<h6>' . __( 'Notifications', 'gravity-forms-pdf-extended' ) . '</h6>' . __( 'Automatically generate and attach the PDF to your selected notifications. Conditional Logic for both the PDF and the notification applies. Inactive PDFs are also not sent.', 'gravity-forms-pdf-extended' ),
310
  ),
311
 
312
  'filename' => array(
313
  'id' => 'filename',
314
- 'name' => __( 'Filename', 'gravity-forms-pdf-extended' ),
315
  'type' => 'text',
316
  'desc' => 'The name used when saving a PDF. Mergetags are allowed.',
317
- 'tooltip' => '<h6>' . __( 'Filename', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( __( 'Set an appropriate filename for the generated PDF. You should exclude the .pdf extension from the name. The following are invalid characters and will be converted to an underscore %s_%s when the PDF is generated: %s', 'gravity-forms-pdf-extended' ), '<code>', '</code>', '<code>/ \ " * ? | : < ></code>' ),
318
  'inputClass' => 'merge-tag-support mt-hide_all_fields',
319
  'required' => true,
320
  ),
321
 
322
  'conditional' => array(
323
  'id' => 'conditional',
324
- 'name' => __( 'Conditional Logic', 'gravity-forms-pdf-extended' ),
325
  'type' => 'conditional_logic',
326
- 'desc' => __( 'Enable conditional logic', 'gravity-forms-pdf-extended' ),
327
  'class' => 'conditional_logic',
328
  'inputClass' => 'conditional_logic_listener',
329
- 'tooltip' => '<h6>' . __( 'Conditional Logic', 'gravity-forms-pdf-extended' ) . '</h6>' . __( 'Create rules to dynamically enable or disable PDFs. This includes attaching to notifications and viewing from your admin area.', 'gravity-forms-pdf-extended' ),
330
  ),
331
 
332
  'conditionalLogic' => array(
@@ -347,8 +347,8 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
347
  array(
348
  'pdf_size' => array(
349
  'id' => 'pdf_size',
350
- 'name' => __( 'Paper Size', 'gravity-forms-pdf-extended' ),
351
- 'desc' => __( 'Set the paper size used when generating PDFs.', 'gravity-forms-pdf-extended' ),
352
  'type' => 'select',
353
  'options' => $this->get_paper_size(),
354
  'std' => $this->get_option( 'default_pdf_size', 'A4' ),
@@ -359,8 +359,8 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
359
 
360
  'custom_pdf_size' => array(
361
  'id' => 'custom_pdf_size',
362
- 'name' => __( 'Custom Paper Size', 'gravity-forms-pdf-extended' ),
363
- 'desc' => __( 'Control the exact paper size. Can be set in millimeters or inches.', 'gravity-forms-pdf-extended' ),
364
  'type' => 'paper_size',
365
  'size' => 'small',
366
  'chosen' => true,
@@ -371,11 +371,11 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
371
 
372
  'orientation' => array(
373
  'id' => 'orientation',
374
- 'name' => __( 'Orientation', 'gravity-forms-pdf-extended' ),
375
  'type' => 'select',
376
  'options' => array(
377
- 'portrait' => __( 'Portrait', 'gravity-forms-pdf-extended' ),
378
- 'landscape' => __( 'Landscape', 'gravity-forms-pdf-extended' ),
379
  ),
380
  'inputClass' => 'large',
381
  'chosen' => true,
@@ -383,21 +383,21 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
383
 
384
  'font' => array(
385
  'id' => 'font',
386
- 'name' => __( 'Font', 'gravity-forms-pdf-extended' ),
387
  'type' => 'select',
388
  'options' => $this->get_installed_fonts(),
389
  'std' => $this->get_option( 'default_font' ),
390
- 'desc' => sprintf( __( 'Set the font type used in PDFs. Choose an existing font or %sinstall your own%s.', 'gravity-forms-pdf-extended' ), '<a href="' . $this->data->settings_url . '&tab=tools#manage_fonts">', '</a>' ),
391
  'inputClass' => 'large',
392
  'chosen' => true,
393
- 'tooltip' => '<h6>' . __( 'Fonts', 'gravity-forms-pdf-extended' ) . '</h6>' . __( 'Gravity PDF comes bundled with fonts for most languages world-wide. Want to use a specific font type? Use the font installer (found in the Forms -> Settings -> Tools tab).', 'gravity-forms-pdf-extended' ),
394
  'class' => 'gfpdf_font_type',
395
  ),
396
 
397
  'font_size' => array(
398
  'id' => 'font_size',
399
- 'name' => __( 'Font Size', 'gravity-forms-pdf-extended' ),
400
- 'desc' => __( 'Set the font size to use in the PDF.', 'gravity-forms-pdf-extended' ),
401
  'desc2' => 'pt',
402
  'type' => 'number',
403
  'size' => 'small',
@@ -407,24 +407,24 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
407
 
408
  'font_colour' => array(
409
  'id' => 'font_colour',
410
- 'name' => __( 'Font Colour', 'gravity-forms-pdf-extended' ),
411
  'type' => 'color',
412
  'std' => $this->get_option( 'default_font_colour', '#000000' ),
413
- 'desc' => __( 'Set the font colour to use in the PDF.', 'gravity-forms-pdf-extended' ),
414
  'class' => 'gfpdf_font_colour',
415
  ),
416
 
417
  'rtl' => array(
418
  'id' => 'rtl',
419
- 'name' => __( 'Reverse Text (RTL)', 'gravity-forms-pdf-extended' ),
420
- 'desc' => __( 'Script like Arabic and Hebrew are written right to left.', 'gravity-forms-pdf-extended' ),
421
  'type' => 'radio',
422
  'options' => array(
423
- 'Yes' => __( 'Yes', 'gravity-forms-pdf-extended' ),
424
- 'No' => __( 'No', 'gravity-forms-pdf-extended' ),
425
  ),
426
  'std' => $this->get_option( 'default_rtl', 'No' ),
427
- 'tooltip' => '<h6>' . __( 'Reverse Text (RTL)', 'gravity-forms-pdf-extended' ) . '</h6>' . __( "Enable RTL if you are writing in Arabic, Hebrew, Syriac, N'ko, Thaana, Tifinar or Urdu.", 'gravity-forms-pdf-extended' ),
428
  ),
429
 
430
  )
@@ -450,8 +450,8 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
450
  array(
451
  'format' => array(
452
  'id' => 'format',
453
- 'name' => __( 'Format', 'gravity-forms-pdf-extended' ),
454
- 'desc' => __( 'Generate a PDF in the selected format.', 'gravity-forms-pdf-extended' ),
455
  'type' => 'radio',
456
  'options' => array(
457
  'Standard' => 'Standard',
@@ -459,24 +459,24 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
459
  'PDFX1A' => 'PDF/X-1a',
460
  ),
461
  'std' => 'Standard',
462
- 'tooltip' => '<h6>' . __( 'PDF Format', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( __( "Generate a document adhearing to the appropriate PDF standard. When not in %sStandard%s mode, watermarks, alpha-transparent PNGs and security options can NOT be used.", 'gravity-forms-pdf-extended' ), '<em>', '</em>' ),
463
  ),
464
 
465
  'security' => array(
466
  'id' => 'security',
467
- 'name' => __( 'Enable PDF Security', 'gravity-forms-pdf-extended' ),
468
- 'desc' => __( 'Password protect generated PDFs, or restrict user capabilities.', 'gravity-forms-pdf-extended' ),
469
  'type' => 'radio',
470
  'options' => array(
471
- 'Yes' => __( 'Yes', 'gravity-forms-pdf-extended' ),
472
- 'No' => __( 'No', 'gravity-forms-pdf-extended' ),
473
  ),
474
- 'std' => __( 'No', 'gravity-forms-pdf-extended' ),
475
  ),
476
 
477
  'password' => array(
478
  'id' => 'password',
479
- 'name' => __( 'Password', 'gravity-forms-pdf-extended' ),
480
  'type' => 'text',
481
  'desc' => 'Password protect the PDF, or leave blank to disable password protection.',
482
  'inputClass' => 'merge-tag-support mt-hide_all_fields',
@@ -484,7 +484,7 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
484
 
485
  'privileges' => array(
486
  'id' => 'privileges',
487
- 'name' => __( 'Privileges', 'gravity-forms-pdf-extended' ),
488
  'desc' => 'Restrict end user capabilities by removing privileges.',
489
  'type' => 'select',
490
  'options' => $this->get_privilages(),
@@ -500,57 +500,57 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
500
  ),
501
  'inputClass' => 'large',
502
  'chosen' => true,
503
- 'tooltip' => '<h6>' . __( 'Privileges', 'gravity-forms-pdf-extended' ) . '</h6>' . __( 'You can prevent the end user completing certain actions to the PDF – such as copying text, printing, adding annotations or extracting pages.', 'gravity-forms-pdf-extended' ),
504
  'multiple' => true,
505
- 'placeholder' => __( 'Select End User PDF Privileges', 'gravity-forms-pdf-extended' ),
506
  ),
507
 
508
  'image_dpi' => array(
509
  'id' => 'image_dpi',
510
- 'name' => __( 'Image DPI', 'gravity-forms-pdf-extended' ),
511
  'type' => 'number',
512
  'size' => 'small',
513
  'std' => 96,
514
- 'tooltip' => '<h6>' . __( 'Image DPI', 'gravity-forms-pdf-extended' ) . '</h6>' . __( 'Control the image DPI (dots per inch) in PDFs. Set to 300 when professionally printing document.', 'gravity-forms-pdf-extended' ),
515
  ),
516
 
517
  'save' => array(
518
  'id' => 'save',
519
- 'name' => __( 'Always Save PDF', 'gravity-forms-pdf-extended' ),
520
- 'desc' => __( 'Force a PDF to be saved to disk when a new entry is created.', 'gravity-forms-pdf-extended' ),
521
  'type' => 'radio',
522
  'options' => array(
523
- 'Yes' => __( 'Yes', 'gravity-forms-pdf-extended' ),
524
- 'No' => __( 'No', 'gravity-forms-pdf-extended' ),
525
  ),
526
- 'std' => __( 'No', 'gravity-forms-pdf-extended' ),
527
- 'tooltip' => '<h6>' . __( 'Save PDF', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( __( "By default, PDFs are not automatically saved to disk. Enable this option to force the PDF to be generated and saved. Useful when using the %sgfpdf_post_pdf_save%s hook to copy the PDF to an alternate location.", 'gravity-forms-pdf-extended' ), '<code>', '</code>' ),
528
  ),
529
 
530
  'public_access' => array(
531
  'id' => 'public_access',
532
- 'name' => __( 'Enable Public Access', 'gravity-forms-pdf-extended' ),
533
- 'desc' => sprintf( __( 'Allow %sanyone%s with a direct link to access the PDF. %sThis disables all %ssecurity protocols%s for this PDF.%s ', 'gravity-forms-pdf-extended' ), '<strong>', '</strong>', '<em>', '<a href="https://gravitypdf.com/documentation/v4/user-pdf-security/">', '</a>', '</em>' ),
534
  'type' => 'radio',
535
  'options' => array(
536
- 'Yes' => __( 'Yes', 'gravity-forms-pdf-extended' ),
537
- 'No' => __( 'No', 'gravity-forms-pdf-extended' ),
538
  ),
539
- 'std' => __( 'No', 'gravity-forms-pdf-extended' ),
540
- 'tooltip' => '<h6>' . __( 'Public Access', 'gravity-forms-pdf-extended' ) . '</h6>' . __( "When public access is on all security protocols are disabled and anyone worldwide can view the PDF document for ALL your form's entries. For most users the standard security measures will be adequate and public access should remain disabled.", 'gravity-forms-pdf-extended' ),
541
  ),
542
 
543
  'restrict_owner' => array(
544
  'id' => 'restrict_owner',
545
- 'name' => __( 'Restrict Owner', 'gravity-forms-pdf-extended' ),
546
- 'desc' => __( 'When enabled, the original entry owner will NOT be able to view the PDFs.', 'gravity-forms-pdf-extended' ),
547
  'type' => 'radio',
548
  'options' => array(
549
- 'Yes' => __( 'Yes', 'gravity-forms-pdf-extended' ),
550
- 'No' => __( 'No', 'gravity-forms-pdf-extended' ),
551
  ),
552
  'std' => $this->get_option( 'default_restrict_owner', 'No' ),
553
- 'tooltip' => '<h6>' . __( 'Restrict Owner', 'gravity-forms-pdf-extended' ) . '</h6>' . __( 'Enable this setting if your PDFs should not be viewable by the end user.', 'gravity-forms-pdf-extended' ),
554
  ),
555
  )
556
  ),
@@ -582,14 +582,14 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
582
 
583
  $settings['advanced_template'] = array(
584
  'id' => 'advanced_template',
585
- 'name' => __( 'Enable Advanced Templating', 'gravity-forms-pdf-extended' ),
586
- 'desc' => __( 'By enabling, a PDF template will no longer be treated as HTML.', 'gravity-forms-pdf-extended' ),
587
  'type' => 'radio',
588
  'options' => array(
589
- 'Yes' => __( 'Yes', 'gravity-forms-pdf-extended' ),
590
- 'No' => __( 'No', 'gravity-forms-pdf-extended' ),
591
  ),
592
- 'std' => __( 'No', 'gravity-forms-pdf-extended' ),
593
  );
594
 
595
  return $settings;
@@ -605,14 +605,14 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
605
  public function get_form_title_display_field() {
606
  return apply_filters( 'gfpdf_form_title_display_setting', array(
607
  'id' => 'show_form_title',
608
- 'name' => __( 'Show Form Title', 'gravity-forms-pdf-extended' ),
609
- 'desc' => __( 'Display the form title at the beginning of the PDF.', 'gravity-forms-pdf-extended' ),
610
  'type' => 'radio',
611
  'options' => array(
612
- 'Yes' => __( 'Yes', 'gravity-forms-pdf-extended' ),
613
- 'No' => __( 'No', 'gravity-forms-pdf-extended' ),
614
  ),
615
- 'std' => __( 'No', 'gravity-forms-pdf-extended' ),
616
  ) );
617
  }
618
 
@@ -626,14 +626,14 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
626
  public function get_page_names_display_field() {
627
  return apply_filters( 'gfpdf_page_names_display_setting', array(
628
  'id' => 'show_page_names',
629
- 'name' => __( 'Show Page Names', 'gravity-forms-pdf-extended' ),
630
- 'desc' => __( 'Display form page names on the PDF (only works when using page break field).', 'gravity-forms-pdf-extended' ),
631
  'type' => 'radio',
632
  'options' => array(
633
- 'Yes' => __( 'Yes', 'gravity-forms-pdf-extended' ),
634
- 'No' => __( 'No', 'gravity-forms-pdf-extended' ),
635
  ),
636
- 'std' => __( 'No', 'gravity-forms-pdf-extended' ),
637
  ) );
638
  }
639
 
@@ -647,14 +647,14 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
647
  public function get_html_display_field() {
648
  return apply_filters( 'gfpdf_html_display_setting', array(
649
  'id' => 'show_html',
650
- 'name' => __( 'Show HTML Fields', 'gravity-forms-pdf-extended' ),
651
- 'desc' => __( 'Display HTML fields in the PDF.', 'gravity-forms-pdf-extended' ),
652
  'type' => 'radio',
653
  'options' => array(
654
- 'Yes' => __( 'Yes', 'gravity-forms-pdf-extended' ),
655
- 'No' => __( 'No', 'gravity-forms-pdf-extended' ),
656
  ),
657
- 'std' => __( 'No', 'gravity-forms-pdf-extended' ),
658
  ) );
659
  }
660
 
@@ -668,14 +668,14 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
668
  public function get_section_content_display_field() {
669
  return apply_filters( 'gfpdf_section_content_display_setting', array(
670
  'id' => 'show_section_content',
671
- 'name' => __( 'Show Section Break Description', 'gravity-forms-pdf-extended' ),
672
- 'desc' => __( 'Display the Section Break field description in the PDF.', 'gravity-forms-pdf-extended' ),
673
  'type' => 'radio',
674
  'options' => array(
675
- 'Yes' => __( 'Yes', 'gravity-forms-pdf-extended' ),
676
- 'No' => __( 'No', 'gravity-forms-pdf-extended' ),
677
  ),
678
- 'std' => __( 'No', 'gravity-forms-pdf-extended' ),
679
  ) );
680
  }
681
 
@@ -689,15 +689,15 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
689
  public function get_conditional_display_field() {
690
  return apply_filters( 'gfpdf_conditional_display_setting', array(
691
  'id' => 'enable_conditional',
692
- 'name' => __( 'Enable Conditional Logic', 'gravity-forms-pdf-extended' ),
693
- 'desc' => __( 'When enabled the PDF will adhere to the form field conditional logic.', 'gravity-forms-pdf-extended' ),
694
  'type' => 'radio',
695
  'options' => array(
696
- 'Yes' => __( 'Yes', 'gravity-forms-pdf-extended' ),
697
- 'No' => __( 'No', 'gravity-forms-pdf-extended' ),
698
  ),
699
- 'std' => __( 'Yes', 'gravity-forms-pdf-extended' ),
700
- 'tooltip' => '<h6>' . __( 'Enable Conditional Logic', 'gravity-forms-pdf-extended' ) . '</h6>' . __( 'Enable this option to hide failed conditional logic fields in the PDF.', 'gravity-forms-pdf-extended' ),
701
  ) );
702
  }
703
 
@@ -711,14 +711,14 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
711
  public function get_empty_display_field() {
712
  return apply_filters( 'gfpdf_empty_display_setting', array(
713
  'id' => 'show_empty',
714
- 'name' => __( 'Show Empty Fields', 'gravity-forms-pdf-extended' ),
715
- 'desc' => __( 'Display Empty fields in the PDF.', 'gravity-forms-pdf-extended' ),
716
  'type' => 'radio',
717
  'options' => array(
718
- 'Yes' => __( 'Yes', 'gravity-forms-pdf-extended' ),
719
- 'No' => __( 'No', 'gravity-forms-pdf-extended' ),
720
  ),
721
- 'std' => __( 'No', 'gravity-forms-pdf-extended' ),
722
  ) );
723
  }
724
 
@@ -732,12 +732,12 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
732
  public function get_header_field() {
733
  return apply_filters( 'gfpdf_header_field_setting', array(
734
  'id' => 'header',
735
- 'name' => __( 'Header', 'gravity-forms-pdf-extended' ),
736
  'type' => 'rich_editor',
737
  'size' => 8,
738
- 'desc' => sprintf( __( 'The header is included at the top of each page. For simple columns %stry this HTML table snippet%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gist.github.com/jakejackson1/997b5dedf0a5e665e8ef">', '</a>' ),
739
  'inputClass' => 'merge-tag-support mt-wp_editor mt-manual_position mt-position-right mt-hide_all_fields',
740
- 'tooltip' => '<h6>' . __( 'Header', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( __( 'When inserting images in the header set the size to %sLarge%s or %sFull Size%s.', 'gravity-forms-pdf-extended' ), '<em>', '</em>', '<em>', '</em>' ),
741
  ) );
742
  }
743
 
@@ -751,12 +751,12 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
751
  public function get_first_page_header_field() {
752
  return apply_filters( 'gfpdf_first_page_header_field_setting', array(
753
  'id' => 'first_header',
754
- 'name' => __( 'First Page Header', 'gravity-forms-pdf-extended' ),
755
  'type' => 'rich_editor',
756
  'size' => 8,
757
- 'desc' => __( 'Override the header on the first page of the PDF.', 'gravity-forms-pdf-extended' ),
758
  'inputClass' => 'merge-tag-support mt-wp_editor mt-manual_position mt-position-right mt-hide_all_fields',
759
- 'toggle' => __( 'Use different header on first page of PDF?', 'gravity-forms-pdf-extended' ),
760
  ) );
761
  }
762
 
@@ -770,12 +770,12 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
770
  public function get_footer_field() {
771
  return apply_filters( 'gfpdf_footer_field_setting', array(
772
  'id' => 'footer',
773
- 'name' => __( 'Footer', 'gravity-forms-pdf-extended' ),
774
  'type' => 'rich_editor',
775
  'size' => 8,
776
- 'desc' => sprintf( __( 'The footer is included at the bottom of every page. For simple columns %stry this HTML table snippet%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gist.github.com/jakejackson1/e6179a96cd97ef0a8457">', '</a>' ),
777
  'inputClass' => 'merge-tag-support mt-wp_editor mt-manual_position mt-position-right mt-hide_all_fields',
778
- 'tooltip' => '<h6>' . __( 'Footer', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( __( 'For simple text footers use the left, center and right alignment buttons in the editor. You can also use the special %s{PAGENO}%s and %s{nbpg}%s tags to display page numbering.', 'gravity-forms-pdf-extended' ), '<em>', '</em>', '<em>', '</em>' ),
779
  ) );
780
  }
781
 
@@ -789,12 +789,12 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
789
  public function get_first_page_footer_field() {
790
  return apply_filters( 'gfpdf_first_page_footer_field_setting', array(
791
  'id' => 'first_footer',
792
- 'name' => __( 'First Page Footer', 'gravity-forms-pdf-extended' ),
793
  'type' => 'rich_editor',
794
  'size' => 8,
795
- 'desc' => __( 'Override the footer on the first page of the PDF.', 'gravity-forms-pdf-extended' ),
796
  'inputClass' => 'merge-tag-support mt-wp_editor mt-manual_position mt-position-right mt-hide_all_fields',
797
- 'toggle' => __( 'Use different footer on first page of PDF?', 'gravity-forms-pdf-extended' ),
798
  ) );
799
  }
800
 
@@ -808,10 +808,10 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
808
  public function get_background_color_field() {
809
  return apply_filters( 'gfpdf_background_color_field_setting', array(
810
  'id' => 'background_color',
811
- 'name' => __( 'Background Colour', 'gravity-forms-pdf-extended' ),
812
  'type' => 'color',
813
  'std' => '#FFF',
814
- 'desc' => __( 'Set the background colour for all pages.', 'gravity-forms-pdf-extended' ),
815
  ) );
816
  }
817
 
@@ -825,10 +825,10 @@ class Helper_Options_Fields extends Helper_Abstract_Options implements Helper_In
825
  public function get_background_image_field() {
826
  return apply_filters( 'gfpdf_background_image_field_setting', array(
827
  'id' => 'background_image',
828
- 'name' => __( 'Background Image', 'gravity-forms-pdf-extended' ),
829
  'type' => 'upload',
830
- 'desc' => __( 'The background image is included on all pages. For optimal results, use an image the same dimensions as the paper size.', 'gravity-forms-pdf-extended' ),
831
- 'tooltip' => '<h6>' . __( 'Background Image', 'gravity-forms-pdf-extended' ) . '</h6>' . __( 'For the best results, use a JPG or non-interlaced 8-Bit PNG that has the same dimensions as the paper size.', 'gravity-forms-pdf-extended' ),
832
  ) );
833
  }
834
  }
84
  array(
85
  'default_pdf_size' => array(
86
  'id' => 'default_pdf_size',
87
+ 'name' => esc_html__( 'Default Paper Size', 'gravity-forms-pdf-extended' ),
88
+ 'desc' => esc_html__( 'Set the default paper size used when generating PDFs.', 'gravity-forms-pdf-extended' ),
89
  'type' => 'select',
90
  'options' => $this->get_paper_size(),
91
  'inputClass' => 'large',
95
 
96
  'default_custom_pdf_size' => array(
97
  'id' => 'default_custom_pdf_size',
98
+ 'name' => esc_html__( 'Custom Paper Size', 'gravity-forms-pdf-extended' ),
99
+ 'desc' => esc_html__( 'Control the exact paper size. Can be set in millimeters or inches.', 'gravity-forms-pdf-extended' ),
100
  'type' => 'paper_size',
101
  'size' => 'small',
102
  'chosen' => true,
106
 
107
  'default_template' => array(
108
  'id' => 'default_template',
109
+ 'name' => esc_html__( 'Default Template', 'gravity-forms-pdf-extended' ),
110
+ 'desc' => sprintf( esc_html__( 'Choose an existing template or purchased more %sfrom our theme shop%s. You can also %sbuild your own%s or %shire us%s to create a custom solution.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/shop/">', '</a>', '<a href="https://gravitypdf.com/documentation/v4/developer-start-customising/">', '</a>', '<a href="https://gravitypdf.com/integration-services/">', '</a>' ),
111
  'type' => 'select',
112
  'options' => $this->get_templates(),
113
  'std' => 'zadani',
114
  'inputClass' => 'large',
115
  'chosen' => true,
116
+ 'tooltip' => '<h6>' . esc_html__( 'Templates', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( esc_html__( 'Gravity PDF comes with %sfour completely-free and highly customisable designs%s. You can also purchase additional templates from our theme shop, hire us to integrate existing PDFs or, with a bit of technical know-how, build your own.', 'gravity-forms-pdf-extended' ), '<strong>', '</strong>' ),
117
  ),
118
 
119
  'default_font' => array(
120
  'id' => 'default_font',
121
+ 'name' => esc_html__( 'Default Font', 'gravity-forms-pdf-extended' ),
122
+ 'desc' => sprintf( esc_html__( 'Set the default font type used in PDFs. Choose an existing font or %sinstall your own%s.', 'gravity-forms-pdf-extended' ), '<a href="' . $this->data->settings_url . '&tab=tools#manage_fonts">', '</a>' ),
123
  'type' => 'select',
124
  'options' => $this->get_installed_fonts(),
125
  'inputClass' => 'large',
126
  'chosen' => true,
127
+ 'tooltip' => '<h6>' . esc_html__( 'Fonts', 'gravity-forms-pdf-extended' ) . '</h6>' . esc_html__( 'Gravity PDF comes bundled with fonts for most languages world-wide. Want to use a specific font type? Use the font installer (found in the Tools tab).', 'gravity-forms-pdf-extended' ),
128
  ),
129
 
130
  'default_font_size' => array(
131
  'id' => 'default_font_size',
132
+ 'name' => esc_html__( 'Default Font Size', 'gravity-forms-pdf-extended' ),
133
+ 'desc' => esc_html__( 'Set the default font size used in PDFs.', 'gravity-forms-pdf-extended' ),
134
  'desc2' => 'pt',
135
  'type' => 'number',
136
  'size' => 'small',
139
 
140
  'default_font_colour' => array(
141
  'id' => 'default_font_colour',
142
+ 'name' => esc_html__( 'Default Font Colour', 'gravity-forms-pdf-extended' ),
143
  'type' => 'color',
144
  'std' => '#000000',
145
+ 'desc' => esc_html__( 'Set the default font colour used in PDFs.', 'gravity-forms-pdf-extended' ),
146
  ),
147
 
148
  'default_rtl' => array(
149
  'id' => 'default_rtl',
150
+ 'name' => esc_html__( 'Reverse Text (RTL)', 'gravity-forms-pdf-extended' ),
151
+ 'desc' => esc_html__( 'Script like Arabic and Hebrew are written right to left.', 'gravity-forms-pdf-extended' ),
152
  'type' => 'radio',
153
  'options' => array(
154
+ 'Yes' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' ),
155
+ 'No' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
156
  ),
157
+ 'std' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
158
+ 'tooltip' => '<h6>' . esc_html__( 'Reverse Text (RTL)', 'gravity-forms-pdf-extended' ) . '</h6>' . esc_html__( "Enable RTL if you are writing in Arabic, Hebrew, Syriac, N'ko, Thaana, Tifinar, Urdu or other RTL languages.", 'gravity-forms-pdf-extended' ),
159
  ),
160
 
161
  'default_action' => array(
162
  'id' => 'default_action',
163
+ 'name' => esc_html__( 'Entry View', 'gravity-forms-pdf-extended' ),
164
+ 'desc' => sprintf( esc_html__( 'Select the default action used when accessing a PDF from the %sGravity Forms entries list%s page.', 'gravity-forms-pdf-extended' ), '<a href="' . admin_url( 'admin.php?page=gf_entries' ) . '">', '</a>' ),
165
  'type' => 'radio',
166
  'options' => array(
167
+ 'View' => esc_html__( 'View', 'gravity-forms-pdf-extended' ),
168
+ 'Download' => esc_html__( 'Download', 'gravity-forms-pdf-extended' ),
169
  ),
170
  'std' => 'View',
171
+ 'tooltip' => '<h6>' . esc_html__( 'Entry View', 'gravity-forms-pdf-extended' ) . '</h6>' . esc_html__( 'Choose to view the PDF in your web browser or download the document to your computer.', 'gravity-forms-pdf-extended' ),
172
  ),
173
 
174
  'update_screen_action' => array(
175
  'id' => 'update_screen_action',
176
+ 'name' => esc_html__( "Show What's New", 'gravity-forms-pdf-extended' ),
177
  'desc' => "When updating to a new release we'll redirect you to our What's New page.",
178
  'type' => 'radio',
179
  'options' => array(
180
+ 'Enable' => esc_html__( 'Enable', 'gravity-forms-pdf-extended' ),
181
+ 'Disable' => esc_html__( 'Disable', 'gravity-forms-pdf-extended' ),
182
  ),
183
  'std' => 'Enable',
184
+ 'tooltip' => '<h6>' . esc_html__( "Show What's New Page", 'gravity-forms-pdf-extended' ) . '</h6>' . esc_html__( "When upgrading Gravity PDF to a new major release (4.x) we'll automatically redirect you to our What's New page so you can see the changes. Bug fix and security releases are excluded (4.x.x).", 'gravity-forms-pdf-extended' ),
185
  ),
186
  )
187
  ),
191
  array(
192
  'admin_capabilities' => array(
193
  'id' => 'admin_capabilities',
194
+ 'name' => esc_html__( 'User Restriction', 'gravity-forms-pdf-extended' ),
195
+ 'desc' => esc_html__( 'Restrict PDF access to users with any of these capabilities. The Administrator Role always has full access.', 'gravity-forms-pdf-extended' ),
196
  'type' => 'select',
197
  'options' => $this->get_capabilities(),
198
  'std' => 'gravityforms_view_entries',
200
  'chosen' => true,
201
  'multiple' => true,
202
  'required' => true,
203
+ 'placeholder' => esc_html__( 'Select Capability', 'gravity-forms-pdf-extended' ),
204
+ 'tooltip' => '<h6>' . esc_html__( 'User Restriction', 'gravity-forms-pdf-extended' ) . '</h6>' . esc_html__( "Only logged in users with any selected capability can view generated PDFs they don't have ownership of. Ownership refers to an end user who completed the original Gravity Form entry.", 'gravity-forms-pdf-extended' ),
205
  ),
206
 
207
  'default_restrict_owner' => array(
208
  'id' => 'default_restrict_owner',
209
+ 'name' => esc_html__( 'Default Owner Restrictions', 'gravity-forms-pdf-extended' ),
210
+ 'desc' => esc_html__( 'Set the default PDF owner permissions. When enabled, the original entry owner will NOT be able to view the PDFs (unless they have one of the above capabilities).', 'gravity-forms-pdf-extended' ),
211
  'type' => 'radio',
212
  'options' => array(
213
+ 'Yes' => esc_html__( 'Enable', 'gravity-forms-pdf-extended' ),
214
+ 'No' => esc_html__( 'Disable', 'gravity-forms-pdf-extended' ),
215
  ),
216
+ 'std' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
217
+ 'tooltip' => '<h6>' . esc_html__( 'Restrict Owner', 'gravity-forms-pdf-extended' ) . '</h6>' . esc_html__( 'Enable this setting if your PDFs should not be viewable by the end user. This can be set on a per-PDF basis.', 'gravity-forms-pdf-extended' ),
218
  ),
219
 
220
  'logged_out_timeout' => array(
221
  'id' => 'logged_out_timeout',
222
+ 'name' => esc_html__( 'Logged Out Timeout', 'gravity-forms-pdf-extended' ),
223
+ 'desc' => sprintf( esc_html__( 'Limit how long a %slogged out%s users has direct access to the PDF after completing the form. Set to 0 to disable time limit (not recommended).', 'gravity-forms-pdf-extended' ), '<em>', '</em>' ),
224
+ 'desc2' => esc_html__( 'minutes', 'gravity-forms-pdf-extended' ),
225
  'type' => 'number',
226
  'size' => 'small',
227
  'std' => 20,
228
+ 'tooltip' => '<h6>' . esc_html__( 'Logged Out Timeout', 'gravity-forms-pdf-extended' ) . '</h6>' . esc_html__( 'Logged out users can view PDFs when their IP matches the one assigned to the Gravity Form entry. Because IP addresses can change, a time-based restriction also applies.', 'gravity-forms-pdf-extended' ),
229
  ),
230
  )
231
  ),
249
  array(
250
  'setup_templates' => array(
251
  'id' => 'setup_templates',
252
+ 'name' => esc_html__( 'Setup Custom Templates', 'gravity-forms-pdf-extended' ),
253
+ 'desc' => sprintf( esc_html__( 'Setup environment for building custom templates. %sSee docs to get started%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/documentation/v4/developer-first-custom-pdf/">', '</a>' ),
254
  'type' => 'button',
255
+ 'std' => esc_html__( 'Run Setup', 'gravity-forms-pdf-extended' ),
256
  'options' => 'copy',
257
+ 'tooltip' => '<h6>' . esc_html__( 'Setup Custom Templates', 'gravity-forms-pdf-extended' ) . '</h6>' . esc_html__( 'The setup will copy the plugin templates to your uploads directory so you can freely create and modify PDF templates without the risk of overriding your modifications when the plugin updates.', 'gravity-forms-pdf-extended' ),
258
  ),
259
 
260
  'manage_fonts' => array(
261
  'id' => 'manage_fonts',
262
+ 'name' => esc_html__( 'Fonts', 'gravity-forms-pdf-extended' ),
263
+ 'desc' => esc_html__( 'Add, update or remove custom fonts.', 'gravity-forms-pdf-extended' ),
264
  'type' => 'button',
265
+ 'std' => esc_html__( 'Manage Fonts', 'gravity-forms-pdf-extended' ),
266
  'options' => 'install_fonts',
267
+ 'tooltip' => '<h6>' . esc_html__( 'Install Fonts', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( esc_html__( 'Custom fonts can be installed for use in your PDFs. Only %s.ttf%s and %s.otf%s font files are supported.', 'gravity-forms-pdf-extended' ), '<code>', '</code>', '<code>', '</code>', '<code>', '</code>' ),
268
  ),
269
  )
270
  ),
278
  array(
279
  'name' => array(
280
  'id' => 'name',
281
+ 'name' => esc_html__( 'Name', 'gravity-forms-pdf-extended' ),
282
  'type' => 'text',
283
  'required' => true,
284
+ 'tooltip' => '<h6>' . esc_html__( 'PDF Name', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( esc_html__( 'Distinguish between multiple PDFs by giving it an easy-to-remember name (for internal use). Use the %sFilename%s field below to set the actual PDF name.', 'gravity-forms-pdf-extended' ), '<em>', '</em>' ),
285
  ),
286
 
287
  'template' => array(
288
  'id' => 'template',
289
+ 'name' => esc_html__( 'Template', 'gravity-forms-pdf-extended' ),
290
+ 'desc' => sprintf( esc_html__( 'Choose an existing template or purchased more %sfrom our theme shop%s. You can also %sbuild your own%s or %shire us%s to create a custom solution.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/shop/">', '</a>', '<a href="https://gravitypdf.com/documentation/v4/developer-start-customising/">', '</a>', '<a href="https://gravitypdf.com/integration-services/">', '</a>' ),
291
  'type' => 'select',
292
  'options' => $this->get_templates(),
293
  'std' => $this->get_option( 'default_template', 'zadani' ),
294
  'inputClass' => 'large',
295
  'chosen' => true,
296
+ 'tooltip' => '<h6>' . esc_html__( 'Templates', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( esc_html__( 'Gravity PDF comes with %sfour completely-free and highly customisable designs%s. You can also purchase additional templates from our theme shop, hire us to integrate existing PDFs or, with a bit of technical know-how, build your own.', 'gravity-forms-pdf-extended' ), '<strong>', '</strong>' ),
297
  ),
298
 
299
  'notification' => array(
300
  'id' => 'notification',
301
+ 'name' => esc_html__( 'Notifications', 'gravity-forms-pdf-extended' ),
302
+ 'desc' => esc_html__( 'Automatically attach PDF to the selected notifications.', 'gravity-forms-pdf-extended' ),
303
  'type' => 'select',
304
  'options' => array(),
305
  'inputClass' => 'large',
306
  'chosen' => true,
307
  'multiple' => true,
308
+ 'placeholder' => esc_html__( 'Choose a Notification', 'gravity-forms-pdf-extended' ),
309
+ 'tooltip' => '<h6>' . esc_html__( 'Notifications', 'gravity-forms-pdf-extended' ) . '</h6>' . esc_html__( 'Automatically generate and attach the PDF to your selected notifications. Conditional Logic for both the PDF and the notification applies. Inactive PDFs are also not sent.', 'gravity-forms-pdf-extended' ),
310
  ),
311
 
312
  'filename' => array(
313
  'id' => 'filename',
314
+ 'name' => esc_html__( 'Filename', 'gravity-forms-pdf-extended' ),
315
  'type' => 'text',
316
  'desc' => 'The name used when saving a PDF. Mergetags are allowed.',
317
+ 'tooltip' => '<h6>' . esc_html__( 'Filename', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( esc_html__( 'Set an appropriate filename for the generated PDF. You should exclude the .pdf extension from the name. The following are invalid characters and will be converted to an underscore %s_%s when the PDF is generated: %s', 'gravity-forms-pdf-extended' ), '<code>', '</code>', '<code>/ \ " * ? | : < ></code>' ),
318
  'inputClass' => 'merge-tag-support mt-hide_all_fields',
319
  'required' => true,
320
  ),
321
 
322
  'conditional' => array(
323
  'id' => 'conditional',
324
+ 'name' => esc_html__( 'Conditional Logic', 'gravity-forms-pdf-extended' ),
325
  'type' => 'conditional_logic',
326
+ 'desc' => esc_html__( 'Enable conditional logic', 'gravity-forms-pdf-extended' ),
327
  'class' => 'conditional_logic',
328
  'inputClass' => 'conditional_logic_listener',
329
+ 'tooltip' => '<h6>' . esc_html__( 'Conditional Logic', 'gravity-forms-pdf-extended' ) . '</h6>' . esc_html__( 'Create rules to dynamically enable or disable PDFs. This includes attaching to notifications and viewing from your admin area.', 'gravity-forms-pdf-extended' ),
330
  ),
331
 
332
  'conditionalLogic' => array(
347
  array(
348
  'pdf_size' => array(
349
  'id' => 'pdf_size',
350
+ 'name' => esc_html__( 'Paper Size', 'gravity-forms-pdf-extended' ),
351
+ 'desc' => esc_html__( 'Set the paper size used when generating PDFs.', 'gravity-forms-pdf-extended' ),
352
  'type' => 'select',
353
  'options' => $this->get_paper_size(),
354
  'std' => $this->get_option( 'default_pdf_size', 'A4' ),
359
 
360
  'custom_pdf_size' => array(
361
  'id' => 'custom_pdf_size',
362
+ 'name' => esc_html__( 'Custom Paper Size', 'gravity-forms-pdf-extended' ),
363
+ 'desc' => esc_html__( 'Control the exact paper size. Can be set in millimeters or inches.', 'gravity-forms-pdf-extended' ),
364
  'type' => 'paper_size',
365
  'size' => 'small',
366
  'chosen' => true,
371
 
372
  'orientation' => array(
373
  'id' => 'orientation',
374
+ 'name' => esc_html__( 'Orientation', 'gravity-forms-pdf-extended' ),
375
  'type' => 'select',
376
  'options' => array(
377
+ 'portrait' => esc_html__( 'Portrait', 'gravity-forms-pdf-extended' ),
378
+ 'landscape' => esc_html__( 'Landscape', 'gravity-forms-pdf-extended' ),
379
  ),
380
  'inputClass' => 'large',
381
  'chosen' => true,
383
 
384
  'font' => array(
385
  'id' => 'font',
386
+ 'name' => esc_html__( 'Font', 'gravity-forms-pdf-extended' ),
387
  'type' => 'select',
388
  'options' => $this->get_installed_fonts(),
389
  'std' => $this->get_option( 'default_font' ),
390
+ 'desc' => sprintf( esc_html__( 'Set the font type used in PDFs. Choose an existing font or %sinstall your own%s.', 'gravity-forms-pdf-extended' ), '<a href="' . $this->data->settings_url . '&tab=tools#manage_fonts">', '</a>' ),
391
  'inputClass' => 'large',
392
  'chosen' => true,
393
+ 'tooltip' => '<h6>' . esc_html__( 'Fonts', 'gravity-forms-pdf-extended' ) . '</h6>' . esc_html__( 'Gravity PDF comes bundled with fonts for most languages world-wide. Want to use a specific font type? Use the font installer (found in the Forms -> Settings -> Tools tab).', 'gravity-forms-pdf-extended' ),
394
  'class' => 'gfpdf_font_type',
395
  ),
396
 
397
  'font_size' => array(
398
  'id' => 'font_size',
399
+ 'name' => esc_html__( 'Font Size', 'gravity-forms-pdf-extended' ),
400
+ 'desc' => esc_html__( 'Set the font size to use in the PDF.', 'gravity-forms-pdf-extended' ),
401
  'desc2' => 'pt',
402
  'type' => 'number',
403
  'size' => 'small',
407
 
408
  'font_colour' => array(
409
  'id' => 'font_colour',
410
+ 'name' => esc_html__( 'Font Colour', 'gravity-forms-pdf-extended' ),
411
  'type' => 'color',
412
  'std' => $this->get_option( 'default_font_colour', '#000000' ),
413
+ 'desc' => esc_html__( 'Set the font colour to use in the PDF.', 'gravity-forms-pdf-extended' ),
414
  'class' => 'gfpdf_font_colour',
415
  ),
416
 
417
  'rtl' => array(
418
  'id' => 'rtl',
419
+ 'name' => esc_html__( 'Reverse Text (RTL)', 'gravity-forms-pdf-extended' ),
420
+ 'desc' => esc_html__( 'Script like Arabic and Hebrew are written right to left.', 'gravity-forms-pdf-extended' ),
421
  'type' => 'radio',
422
  'options' => array(
423
+ 'Yes' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' ),
424
+ 'No' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
425
  ),
426
  'std' => $this->get_option( 'default_rtl', 'No' ),
427
+ 'tooltip' => '<h6>' . esc_html__( 'Reverse Text (RTL)', 'gravity-forms-pdf-extended' ) . '</h6>' . esc_html__( "Enable RTL if you are writing in Arabic, Hebrew, Syriac, N'ko, Thaana, Tifinar or Urdu.", 'gravity-forms-pdf-extended' ),
428
  ),
429
 
430
  )
450
  array(
451
  'format' => array(
452
  'id' => 'format',
453
+ 'name' => esc_html__( 'Format', 'gravity-forms-pdf-extended' ),
454
+ 'desc' => esc_html__( 'Generate a PDF in the selected format.', 'gravity-forms-pdf-extended' ),
455
  'type' => 'radio',
456
  'options' => array(
457
  'Standard' => 'Standard',
459
  'PDFX1A' => 'PDF/X-1a',
460
  ),
461
  'std' => 'Standard',
462
+ 'tooltip' => '<h6>' . esc_html__( 'PDF Format', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( esc_html__( "Generate a document adhearing to the appropriate PDF standard. When not in %sStandard%s mode, watermarks, alpha-transparent PNGs and security options can NOT be used.", 'gravity-forms-pdf-extended' ), '<em>', '</em>' ),
463
  ),
464
 
465
  'security' => array(
466
  'id' => 'security',
467
+ 'name' => esc_html__( 'Enable PDF Security', 'gravity-forms-pdf-extended' ),
468
+ 'desc' => esc_html__( 'Password protect generated PDFs, or restrict user capabilities.', 'gravity-forms-pdf-extended' ),
469
  'type' => 'radio',
470
  'options' => array(
471
+ 'Yes' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' ),
472
+ 'No' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
473
  ),
474
+ 'std' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
475
  ),
476
 
477
  'password' => array(
478
  'id' => 'password',
479
+ 'name' => esc_html__( 'Password', 'gravity-forms-pdf-extended' ),
480
  'type' => 'text',
481
  'desc' => 'Password protect the PDF, or leave blank to disable password protection.',
482
  'inputClass' => 'merge-tag-support mt-hide_all_fields',
484
 
485
  'privileges' => array(
486
  'id' => 'privileges',
487
+ 'name' => esc_html__( 'Privileges', 'gravity-forms-pdf-extended' ),
488
  'desc' => 'Restrict end user capabilities by removing privileges.',
489
  'type' => 'select',
490
  'options' => $this->get_privilages(),
500
  ),
501
  'inputClass' => 'large',
502
  'chosen' => true,
503
+ 'tooltip' => '<h6>' . esc_html__( 'Privileges', 'gravity-forms-pdf-extended' ) . '</h6>' . esc_html__( 'You can prevent the end user completing certain actions to the PDF – such as copying text, printing, adding annotations or extracting pages.', 'gravity-forms-pdf-extended' ),
504
  'multiple' => true,
505
+ 'placeholder' => esc_html__( 'Select End User PDF Privileges', 'gravity-forms-pdf-extended' ),
506
  ),
507
 
508
  'image_dpi' => array(
509
  'id' => 'image_dpi',
510
+ 'name' => esc_html__( 'Image DPI', 'gravity-forms-pdf-extended' ),
511
  'type' => 'number',
512
  'size' => 'small',
513
  'std' => 96,
514
+ 'tooltip' => '<h6>' . esc_html__( 'Image DPI', 'gravity-forms-pdf-extended' ) . '</h6>' . esc_html__( 'Control the image DPI (dots per inch) in PDFs. Set to 300 when professionally printing document.', 'gravity-forms-pdf-extended' ),
515
  ),
516
 
517
  'save' => array(
518
  'id' => 'save',
519
+ 'name' => esc_html__( 'Always Save PDF', 'gravity-forms-pdf-extended' ),
520
+ 'desc' => esc_html__( 'Force a PDF to be saved to disk when a new entry is created.', 'gravity-forms-pdf-extended' ),
521
  'type' => 'radio',
522
  'options' => array(
523
+ 'Yes' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' ),
524
+ 'No' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
525
  ),
526
+ 'std' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
527
+ 'tooltip' => '<h6>' . esc_html__( 'Save PDF', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( esc_html__( "By default, PDFs are not automatically saved to disk. Enable this option to force the PDF to be generated and saved. Useful when using the %sgfpdf_post_pdf_save%s hook to copy the PDF to an alternate location.", 'gravity-forms-pdf-extended' ), '<code>', '</code>' ),
528
  ),
529
 
530
  'public_access' => array(
531
  'id' => 'public_access',
532
+ 'name' => esc_html__( 'Enable Public Access', 'gravity-forms-pdf-extended' ),
533
+ 'desc' => sprintf( esc_html__( 'Allow %sanyone%s with a direct link to access the PDF. %sThis disables all %ssecurity protocols%s for this PDF.%s ', 'gravity-forms-pdf-extended' ), '<strong>', '</strong>', '<em>', '<a href="https://gravitypdf.com/documentation/v4/user-pdf-security/">', '</a>', '</em>' ),
534
  'type' => 'radio',
535
  'options' => array(
536
+ 'Yes' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' ),
537
+ 'No' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
538
  ),
539
+ 'std' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
540
+ 'tooltip' => '<h6>' . esc_html__( 'Public Access', 'gravity-forms-pdf-extended' ) . '</h6>' . esc_html__( "When public access is on all security protocols are disabled and anyone worldwide can view the PDF document for ALL your form's entries. For most users the standard security measures will be adequate and public access should remain disabled.", 'gravity-forms-pdf-extended' ),
541
  ),
542
 
543
  'restrict_owner' => array(
544
  'id' => 'restrict_owner',
545
+ 'name' => esc_html__( 'Restrict Owner', 'gravity-forms-pdf-extended' ),
546
+ 'desc' => esc_html__( 'When enabled, the original entry owner will NOT be able to view the PDFs.', 'gravity-forms-pdf-extended' ),
547
  'type' => 'radio',
548
  'options' => array(
549
+ 'Yes' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' ),
550
+ 'No' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
551
  ),
552
  'std' => $this->get_option( 'default_restrict_owner', 'No' ),
553
+ 'tooltip' => '<h6>' . esc_html__( 'Restrict Owner', 'gravity-forms-pdf-extended' ) . '</h6>' . esc_html__( 'Enable this setting if your PDFs should not be viewable by the end user.', 'gravity-forms-pdf-extended' ),
554
  ),
555
  )
556
  ),
582
 
583
  $settings['advanced_template'] = array(
584
  'id' => 'advanced_template',
585
+ 'name' => esc_html__( 'Enable Advanced Templating', 'gravity-forms-pdf-extended' ),
586
+ 'desc' => esc_html__( 'By enabling, a PDF template will no longer be treated as HTML.', 'gravity-forms-pdf-extended' ),
587
  'type' => 'radio',
588
  'options' => array(
589
+ 'Yes' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' ),
590
+ 'No' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
591
  ),
592
+ 'std' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
593
  );
594
 
595
  return $settings;
605
  public function get_form_title_display_field() {
606
  return apply_filters( 'gfpdf_form_title_display_setting', array(
607
  'id' => 'show_form_title',
608
+ 'name' => esc_html__( 'Show Form Title', 'gravity-forms-pdf-extended' ),
609
+ 'desc' => esc_html__( 'Display the form title at the beginning of the PDF.', 'gravity-forms-pdf-extended' ),
610
  'type' => 'radio',
611
  'options' => array(
612
+ 'Yes' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' ),
613
+ 'No' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
614
  ),
615
+ 'std' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
616
  ) );
617
  }
618
 
626
  public function get_page_names_display_field() {
627
  return apply_filters( 'gfpdf_page_names_display_setting', array(
628
  'id' => 'show_page_names',
629
+ 'name' => esc_html__( 'Show Page Names', 'gravity-forms-pdf-extended' ),
630
+ 'desc' => sprintf( esc_html__( 'Display form page names on the PDF. Requires the use of the %sPage Break field%s.', 'gravity-forms-pdf-extended' ), '<a href="https://www.gravityhelp.com/documentation/article/page-break/">', '</a>' ),
631
  'type' => 'radio',
632
  'options' => array(
633
+ 'Yes' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' ),
634
+ 'No' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
635
  ),
636
+ 'std' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
637
  ) );
638
  }
639
 
647
  public function get_html_display_field() {
648
  return apply_filters( 'gfpdf_html_display_setting', array(
649
  'id' => 'show_html',
650
+ 'name' => esc_html__( 'Show HTML Fields', 'gravity-forms-pdf-extended' ),
651
+ 'desc' => esc_html__( 'Display HTML fields in the PDF.', 'gravity-forms-pdf-extended' ),
652
  'type' => 'radio',
653
  'options' => array(
654
+ 'Yes' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' ),
655
+ 'No' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
656
  ),
657
+ 'std' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
658
  ) );
659
  }
660
 
668
  public function get_section_content_display_field() {
669
  return apply_filters( 'gfpdf_section_content_display_setting', array(
670
  'id' => 'show_section_content',
671
+ 'name' => esc_html__( 'Show Section Break Description', 'gravity-forms-pdf-extended' ),
672
+ 'desc' => esc_html__( 'Display the Section Break field description in the PDF.', 'gravity-forms-pdf-extended' ),
673
  'type' => 'radio',
674
  'options' => array(
675
+ 'Yes' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' ),
676
+ 'No' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
677
  ),
678
+ 'std' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
679
  ) );
680
  }
681
 
689
  public function get_conditional_display_field() {
690
  return apply_filters( 'gfpdf_conditional_display_setting', array(
691
  'id' => 'enable_conditional',
692
+ 'name' => esc_html__( 'Enable Conditional Logic', 'gravity-forms-pdf-extended' ),
693
+ 'desc' => esc_html__( 'When enabled the PDF will adhere to the form field conditional logic.', 'gravity-forms-pdf-extended' ),
694
  'type' => 'radio',
695
  'options' => array(
696
+ 'Yes' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' ),
697
+ 'No' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
698
  ),
699
+ 'std' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' ),
700
+ 'tooltip' => '<h6>' . esc_html__( 'Enable Conditional Logic', 'gravity-forms-pdf-extended' ) . '</h6>' . esc_html__( 'Enable this option to hide failed conditional logic fields in the PDF.', 'gravity-forms-pdf-extended' ),
701
  ) );
702
  }
703
 
711
  public function get_empty_display_field() {
712
  return apply_filters( 'gfpdf_empty_display_setting', array(
713
  'id' => 'show_empty',
714
+ 'name' => esc_html__( 'Show Empty Fields', 'gravity-forms-pdf-extended' ),
715
+ 'desc' => esc_html__( 'Display Empty fields in the PDF.', 'gravity-forms-pdf-extended' ),
716
  'type' => 'radio',
717
  'options' => array(
718
+ 'Yes' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' ),
719
+ 'No' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
720
  ),
721
+ 'std' => esc_html__( 'No', 'gravity-forms-pdf-extended' ),
722
  ) );
723
  }
724
 
732
  public function get_header_field() {
733
  return apply_filters( 'gfpdf_header_field_setting', array(
734
  'id' => 'header',
735
+ 'name' => esc_html__( 'Header', 'gravity-forms-pdf-extended' ),
736
  'type' => 'rich_editor',
737
  'size' => 8,
738
+ 'desc' => sprintf( esc_html__( 'The header is included at the top of each page. For simple columns %stry this HTML table snippet%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gist.github.com/jakejackson1/997b5dedf0a5e665e8ef">', '</a>' ),
739
  'inputClass' => 'merge-tag-support mt-wp_editor mt-manual_position mt-position-right mt-hide_all_fields',
740
+ 'tooltip' => '<h6>' . esc_html__( 'Header', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( esc_html__( 'When inserting images in the header set the size to %sLarge%s or %sFull Size%s.', 'gravity-forms-pdf-extended' ), '<em>', '</em>', '<em>', '</em>' ),
741
  ) );
742
  }
743
 
751
  public function get_first_page_header_field() {
752
  return apply_filters( 'gfpdf_first_page_header_field_setting', array(
753
  'id' => 'first_header',
754
+ 'name' => esc_html__( 'First Page Header', 'gravity-forms-pdf-extended' ),
755
  'type' => 'rich_editor',
756
  'size' => 8,
757
+ 'desc' => esc_html__( 'Override the header on the first page of the PDF.', 'gravity-forms-pdf-extended' ),
758
  'inputClass' => 'merge-tag-support mt-wp_editor mt-manual_position mt-position-right mt-hide_all_fields',
759
+ 'toggle' => esc_html__( 'Use different header on first page of PDF?', 'gravity-forms-pdf-extended' ),
760
  ) );
761
  }
762
 
770
  public function get_footer_field() {
771
  return apply_filters( 'gfpdf_footer_field_setting', array(
772
  'id' => 'footer',
773
+ 'name' => esc_html__( 'Footer', 'gravity-forms-pdf-extended' ),
774
  'type' => 'rich_editor',
775
  'size' => 8,
776
+ 'desc' => sprintf( esc_html__( 'The footer is included at the bottom of every page. For simple columns %stry this HTML table snippet%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gist.github.com/jakejackson1/e6179a96cd97ef0a8457">', '</a>' ),
777
  'inputClass' => 'merge-tag-support mt-wp_editor mt-manual_position mt-position-right mt-hide_all_fields',
778
+ 'tooltip' => '<h6>' . esc_html__( 'Footer', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( esc_html__( 'For simple text footers use the left, center and right alignment buttons in the editor. You can also use the special %s{PAGENO}%s and %s{nbpg}%s tags to display page numbering.', 'gravity-forms-pdf-extended' ), '<em>', '</em>', '<em>', '</em>' ),
779
  ) );
780
  }
781
 
789
  public function get_first_page_footer_field() {
790
  return apply_filters( 'gfpdf_first_page_footer_field_setting', array(
791
  'id' => 'first_footer',
792
+ 'name' => esc_html__( 'First Page Footer', 'gravity-forms-pdf-extended' ),
793
  'type' => 'rich_editor',
794
  'size' => 8,
795
+ 'desc' => esc_html__( 'Override the footer on the first page of the PDF.', 'gravity-forms-pdf-extended' ),
796
  'inputClass' => 'merge-tag-support mt-wp_editor mt-manual_position mt-position-right mt-hide_all_fields',
797
+ 'toggle' => esc_html__( 'Use different footer on first page of PDF?', 'gravity-forms-pdf-extended' ),
798
  ) );
799
  }
800
 
808
  public function get_background_color_field() {
809
  return apply_filters( 'gfpdf_background_color_field_setting', array(
810
  'id' => 'background_color',
811
+ 'name' => esc_html__( 'Background Colour', 'gravity-forms-pdf-extended' ),
812
  'type' => 'color',
813
  'std' => '#FFF',
814
+ 'desc' => esc_html__( 'Set the background colour for all pages.', 'gravity-forms-pdf-extended' ),
815
  ) );
816
  }
817
 
825
  public function get_background_image_field() {
826
  return apply_filters( 'gfpdf_background_image_field_setting', array(
827
  'id' => 'background_image',
828
+ 'name' => esc_html__( 'Background Image', 'gravity-forms-pdf-extended' ),
829
  'type' => 'upload',
830
+ 'desc' => esc_html__( 'The background image is included on all pages. For optimal results, use an image the same dimensions as the paper size.', 'gravity-forms-pdf-extended' ),
831
+ 'tooltip' => '<h6>' . esc_html__( 'Background Image', 'gravity-forms-pdf-extended' ) . '</h6>' . esc_html__( 'For the best results, use a JPG or non-interlaced 8-Bit PNG that has the same dimensions as the paper size.', 'gravity-forms-pdf-extended' ),
832
  ) );
833
  }
834
  }
src/helper/Helper_PDF.php CHANGED
@@ -361,13 +361,13 @@ class Helper_PDF {
361
  /*
362
  * Check if the template version is compatible with our version of Gravity PDF
363
  */
364
- $headers = get_file_data( $this->template_path, array( 'required_pdf_version' => __( 'Required PDF Version', 'gravity-forms-pdf-extended' ) ) );
365
 
366
  /* Check if there are version requirements */
367
  if ( strlen( $headers['required_pdf_version'] ) > 0 ) {
368
  /* Check if the version requirements are NOT met and throw and error */
369
  if ( version_compare( $headers['required_pdf_version'], PDF_EXTENDED_VERSION, '>' ) ) {
370
- throw new Exception( sprintf( __( 'The PDF Template %s requires Gravity PDF version %s. Upgrade to the latest version.', 'gravity-forms-pdf-extended' ), "<em>$template</em>", "<em>{$headers['required_pdf_version']}</em>" ) );
371
  }
372
  }
373
  }
361
  /*
362
  * Check if the template version is compatible with our version of Gravity PDF
363
  */
364
+ $headers = get_file_data( $this->template_path, array( 'required_pdf_version' => esc_html__( 'Required PDF Version', 'gravity-forms-pdf-extended' ) ) );
365
 
366
  /* Check if there are version requirements */
367
  if ( strlen( $headers['required_pdf_version'] ) > 0 ) {
368
  /* Check if the version requirements are NOT met and throw and error */
369
  if ( version_compare( $headers['required_pdf_version'], PDF_EXTENDED_VERSION, '>' ) ) {
370
+ throw new Exception( sprintf( esc_html__( 'The PDF Template %s requires Gravity PDF version %s. Upgrade to the latest version.', 'gravity-forms-pdf-extended' ), "<em>$template</em>", "<em>{$headers['required_pdf_version']}</em>" ) );
371
  }
372
  }
373
  }
src/helper/Helper_PDF_List_Table.php CHANGED
@@ -121,10 +121,10 @@ class Helper_PDF_List_Table extends WP_List_Table {
121
 
122
  $columns = array(
123
  'cb' => '',
124
- 'name' => __( 'Name', 'gravity-forms-pdf-extended' ),
125
- 'shortcode' => __( 'Download Shortcode', 'gravity-forms-pdf-extended' ),
126
- 'template' => __( 'Template', 'gravity-forms-pdf-extended' ),
127
- 'notifications' => __( 'Notifications', 'gravity-forms-pdf-extended' ),
128
  );
129
 
130
  /* See https://gravitypdf.com/documentation/v4/gfpdf_pdf_list_columns/ for more details about this filter */
@@ -246,8 +246,8 @@ class Helper_PDF_List_Table extends WP_List_Table {
246
  data-fid="<?php echo $form_id; ?>"
247
  src="<?php echo $this->gform->get_plugin_url() ?>/images/active<?php echo intval( $is_active ) ?>.png"
248
  style="cursor: pointer;margin:-1px 0 0 8px;"
249
- alt="<?php $is_active ? __( 'Active', 'gravity-forms-pdf-extended' ) : __( 'Inactive', 'gravity-forms-pdf-extended' ); ?>"
250
- title="<?php echo $is_active ? __( 'Active', 'gravity-forms-pdf-extended' ) : __( 'Inactive', 'gravity-forms-pdf-extended' ); ?>"/>
251
 
252
  <?php
253
  }
@@ -262,7 +262,7 @@ class Helper_PDF_List_Table extends WP_List_Table {
262
  */
263
  public function column_notifications( $item ) {
264
  if ( ! isset( $item['notification'] ) || sizeof( $item['notification'] ) == 0 ) {
265
- _e( 'None', 'gravity-forms-pdf-extended' );
266
 
267
  return;
268
  }
@@ -294,7 +294,7 @@ class Helper_PDF_List_Table extends WP_List_Table {
294
  $name = str_replace( '"', '', $item['name'] );
295
 
296
  /* Prepare our shortcode sample */
297
- $shortcode = '[gravitypdf name="' . esc_attr( $name ) . '" id="' . esc_attr( $item['id'] ) . '" text="' . __( 'Download PDF', 'gravity-forms-pdf-extended' ) . '"]';
298
 
299
  /* Display in a readonly field */
300
  echo '<input type="text" class="gravitypdf_shortcode" value="' . esc_attr( $shortcode ) . '" readonly="readonly" onfocus="jQuery(this).select();" onclick="jQuery(this).select();" />';
@@ -316,7 +316,7 @@ class Helper_PDF_List_Table extends WP_List_Table {
316
 
317
  /* Add addendum if version is incompatible */
318
  if ( ! empty( $template['required_pdf_version'] ) && version_compare( $template['required_pdf_version'], PDF_EXTENDED_VERSION, '>' ) ) {
319
- echo ' (+ ' . _x( 'needs', 'Required', 'gravity-forms-pdf-extended' ) . ' v' . $template['required_pdf_version'] . ')';
320
  }
321
 
322
  } else {
@@ -338,9 +338,9 @@ class Helper_PDF_List_Table extends WP_List_Table {
338
  $delete_nonce = wp_create_nonce( "gfpdf_delete_nonce_{$form_id}_{$item['id']}" );
339
 
340
  $actions = array(
341
- 'edit' => '<a title="' . __( 'Edit this PDF', 'gravity-forms-pdf-extended' ) . '" href="' . $edit_url . '">' . __( 'Edit', 'gravity-forms-pdf-extended' ) . '</a>',
342
- 'duplicate' => '<a title="' . __( 'Duplicate this PDF', 'gravity-forms-pdf-extended' ) . '" data-id="' . $item['id'] . '" class="submitduplicate" data-nonce="' . $duplicate_nonce . '" data-fid="' . $form_id . '">' . __( 'Duplicate', 'gravity-forms-pdf-extended' ) . '</a>',
343
- 'delete' => '<a title="' . __( 'Delete this PDF', 'gravity-forms-pdf-extended' ) . '" class="submitdelete" data-id="' . $item['id'] . '" data-nonce="' . $delete_nonce . '" data-fid="' . $form_id . '">' . __( 'Delete', 'gravity-forms-pdf-extended' ) . '</a>',
344
  );
345
 
346
  /* See https://gravitypdf.com/documentation/v4/gfpdf_pdf_actions/ for more details about this filter */
@@ -377,6 +377,6 @@ class Helper_PDF_List_Table extends WP_List_Table {
377
  * @since 4.0
378
  */
379
  public function no_items() {
380
- printf( __( "This form doesn't have any PDFs. Let's go %screate one%s.", 'gravity-forms-pdf-extended' ), "<a href='" . add_query_arg( array( 'pid' => 0 ) ) . "'>", '</a>' );
381
  }
382
  }
121
 
122
  $columns = array(
123
  'cb' => '',
124
+ 'name' => esc_html__( 'Name', 'gravity-forms-pdf-extended' ),
125
+ 'shortcode' => esc_html__( 'Download Shortcode', 'gravity-forms-pdf-extended' ),
126
+ 'template' => esc_html__( 'Template', 'gravity-forms-pdf-extended' ),
127
+ 'notifications' => esc_html__( 'Notifications', 'gravity-forms-pdf-extended' ),
128
  );
129
 
130
  /* See https://gravitypdf.com/documentation/v4/gfpdf_pdf_list_columns/ for more details about this filter */
246
  data-fid="<?php echo $form_id; ?>"
247
  src="<?php echo $this->gform->get_plugin_url() ?>/images/active<?php echo intval( $is_active ) ?>.png"
248
  style="cursor: pointer;margin:-1px 0 0 8px;"
249
+ alt="<?php $is_active ? esc_attr__( 'Active', 'gravity-forms-pdf-extended' ) : esc_attr__( 'Inactive', 'gravity-forms-pdf-extended' ); ?>"
250
+ title="<?php echo $is_active ? esc_attr__( 'Active', 'gravity-forms-pdf-extended' ) : esc_attr__( 'Inactive', 'gravity-forms-pdf-extended' ); ?>"/>
251
 
252
  <?php
253
  }
262
  */
263
  public function column_notifications( $item ) {
264
  if ( ! isset( $item['notification'] ) || sizeof( $item['notification'] ) == 0 ) {
265
+ esc_html_e( 'None', 'gravity-forms-pdf-extended' );
266
 
267
  return;
268
  }
294
  $name = str_replace( '"', '', $item['name'] );
295
 
296
  /* Prepare our shortcode sample */
297
+ $shortcode = '[gravitypdf name="' . esc_attr( $name ) . '" id="' . esc_attr( $item['id'] ) . '" text="' . esc_attr__( 'Download PDF', 'gravity-forms-pdf-extended' ) . '"]';
298
 
299
  /* Display in a readonly field */
300
  echo '<input type="text" class="gravitypdf_shortcode" value="' . esc_attr( $shortcode ) . '" readonly="readonly" onfocus="jQuery(this).select();" onclick="jQuery(this).select();" />';
316
 
317
  /* Add addendum if version is incompatible */
318
  if ( ! empty( $template['required_pdf_version'] ) && version_compare( $template['required_pdf_version'], PDF_EXTENDED_VERSION, '>' ) ) {
319
+ echo ' (+ ' . esc_html_x( 'needs', 'Required', 'gravity-forms-pdf-extended' ) . ' v' . $template['required_pdf_version'] . ')';
320
  }
321
 
322
  } else {
338
  $delete_nonce = wp_create_nonce( "gfpdf_delete_nonce_{$form_id}_{$item['id']}" );
339
 
340
  $actions = array(
341
+ 'edit' => '<a title="' . esc_attr__( 'Edit this PDF', 'gravity-forms-pdf-extended' ) . '" href="' . $edit_url . '">' . esc_html__( 'Edit', 'gravity-forms-pdf-extended' ) . '</a>',
342
+ 'duplicate' => '<a title="' . esc_attr__( 'Duplicate this PDF', 'gravity-forms-pdf-extended' ) . '" data-id="' . $item['id'] . '" class="submitduplicate" data-nonce="' . $duplicate_nonce . '" data-fid="' . $form_id . '">' . esc_html__( 'Duplicate', 'gravity-forms-pdf-extended' ) . '</a>',
343
+ 'delete' => '<a title="' . esc_attr__( 'Delete this PDF', 'gravity-forms-pdf-extended' ) . '" class="submitdelete" data-id="' . $item['id'] . '" data-nonce="' . $delete_nonce . '" data-fid="' . $form_id . '">' . esc_html__( 'Delete', 'gravity-forms-pdf-extended' ) . '</a>',
344
  );
345
 
346
  /* See https://gravitypdf.com/documentation/v4/gfpdf_pdf_actions/ for more details about this filter */
377
  * @since 4.0
378
  */
379
  public function no_items() {
380
+ printf( esc_html__( "This form doesn't have any PDFs. Let's go %screate one%s.", 'gravity-forms-pdf-extended' ), "<a href='" . add_query_arg( array( 'pid' => 0 ) ) . "'>", '</a>' );
381
  }
382
  }
src/helper/Helper_QueryPath.php ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace GFPDF\Helper;
4
+
5
+ use \Masterminds\HTML5;
6
+ use \QueryPath\DOMQuery;
7
+ use \QueryPath;
8
+
9
+ /**
10
+ * Extends Query Path to make it more useful to us when using the HTML5 methods (which are UTF-8 compatible).
11
+ *
12
+ * @package Gravity PDF
13
+ * @copyright Copyright (c) 2016, Blue Liquid Designs
14
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
15
+ * @since 4.0
16
+ */
17
+
18
+ /* Exit if accessed directly */
19
+ if ( ! defined( 'ABSPATH' ) ) {
20
+ exit;
21
+ }
22
+
23
+ /*
24
+ This file is part of Gravity PDF.
25
+
26
+ Gravity PDF – Copyright (C) 2016, Blue Liquid Designs
27
+
28
+ This program is free software; you can redistribute it and/or modify
29
+ it under the terms of the GNU General Public License as published by
30
+ the Free Software Foundation; either version 2 of the License, or
31
+ (at your option) any later version.
32
+
33
+ This program is distributed in the hope that it will be useful,
34
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
35
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36
+ GNU General Public License for more details.
37
+
38
+ You should have received a copy of the GNU General Public License
39
+ along with this program; if not, write to the Free Software
40
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
41
+ */
42
+
43
+ /**
44
+ * @since 4.0
45
+ */
46
+ class Helper_QueryPath extends QueryPath {
47
+
48
+ /**
49
+ * Parse HTML5 documents as strings
50
+ *
51
+ * This uses HTML5-PHP to parse the document. In actuality, this parser does
52
+ * a fine job with pre-HTML5 documents in most cases, though really old HTML
53
+ * (like 2.0) may have some substantial quirks.
54
+ *
55
+ * @param mixed $html
56
+ * A document as a HTML string.
57
+ *
58
+ * @param string $selector
59
+ * A CSS3 selector.
60
+ *
61
+ * @param array $options
62
+ * An associative array of options, which is passed on into HTML5-PHP. Note
63
+ * that the standard QueryPath options may be ignored for this function,
64
+ * since it uses a different parser.
65
+ *
66
+ * @return QueryPath
67
+ *
68
+ * @since 4.0.3
69
+ */
70
+ public function html5( $html = '', $selector = null, $options = [ ] ) {
71
+ $html5 = new HTML5();
72
+ $source = $html5->loadHTML( $html );
73
+
74
+ return new DOMQuery( $source, $selector, $options );
75
+ }
76
+ }
src/helper/abstract/Helper_Abstract_Model.php CHANGED
@@ -1,76 +1,76 @@
1
- <?php
2
-
3
- namespace GFPDF\Helper;
4
-
5
- /**
6
- * Abstract Helper Model
7
- *
8
- * @package Gravity PDF
9
- * @copyright Copyright (c) 2016, Blue Liquid Designs
10
- * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
11
- * @since 4.0
12
- */
13
-
14
- /* Exit if accessed directly */
15
- if ( ! defined( 'ABSPATH' ) ) {
16
- exit;
17
- }
18
-
19
- /*
20
- This file is part of Gravity PDF.
21
-
22
- Gravity PDF – Copyright (C) 2016, Blue Liquid Designs
23
-
24
- This program is free software; you can redistribute it and/or modify
25
- it under the terms of the GNU General Public License as published by
26
- the Free Software Foundation; either version 2 of the License, or
27
- (at your option) any later version.
28
-
29
- This program is distributed in the hope that it will be useful,
30
- but WITHOUT ANY WARRANTY; without even the implied warranty of
31
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32
- GNU General Public License for more details.
33
-
34
- You should have received a copy of the GNU General Public License
35
- along with this program; if not, write to the Free Software
36
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
37
- */
38
-
39
- /**
40
- * A simple abstract class controlers can extent to share similar variables
41
- *
42
- * @since 4.0
43
- */
44
- abstract class Helper_Abstract_Model {
45
-
46
- /**
47
- * Classes will store a controler object to allow user access
48
- *
49
- * @var object
50
- *
51
- * @since 4.0
52
- */
53
- private $controller = null;
54
-
55
- /**
56
- * Add a controller setter function with type hinting to ensure compatiiblity
57
- *
58
- * @param \GFPDF\Helper\Helper_Abstract_Controller $class The controller class
59
- *
60
- * @since 4.0
61
- */
62
- final public function setController( Helper_Abstract_Controller $class ) {
63
- $this->controller = $class;
64
- }
65
-
66
- /**
67
- * Get the controller
68
- *
69
- * @since 4.0
70
- *
71
- * @return \GFPDF\Helper\Helper_Abstract_Controller
72
- */
73
- final public function getController() {
74
- return $this->controller;
75
- }
76
- }
1
+ <?php
2
+
3
+ namespace GFPDF\Helper;
4
+
5
+ /**
6
+ * Abstract Helper Model
7
+ *
8
+ * @package Gravity PDF
9
+ * @copyright Copyright (c) 2016, Blue Liquid Designs
10
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
11
+ * @since 4.0
12
+ */
13
+
14
+ /* Exit if accessed directly */
15
+ if ( ! defined( 'ABSPATH' ) ) {
16
+ exit;
17
+ }
18
+
19
+ /*
20
+ This file is part of Gravity PDF.
21
+
22
+ Gravity PDF – Copyright (C) 2016, Blue Liquid Designs
23
+
24
+ This program is free software; you can redistribute it and/or modify
25
+ it under the terms of the GNU General Public License as published by
26
+ the Free Software Foundation; either version 2 of the License, or
27
+ (at your option) any later version.
28
+
29
+ This program is distributed in the hope that it will be useful,
30
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
31
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32
+ GNU General Public License for more details.
33
+
34
+ You should have received a copy of the GNU General Public License
35
+ along with this program; if not, write to the Free Software
36
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
37
+ */
38
+
39
+ /**
40
+ * A simple abstract class controlers can extent to share similar variables
41
+ *
42
+ * @since 4.0
43
+ */
44
+ abstract class Helper_Abstract_Model {
45
+
46
+ /**
47
+ * Classes will store a controler object to allow user access
48
+ *
49
+ * @var object
50
+ *
51
+ * @since 4.0
52
+ */
53
+ private $controller = null;
54
+
55
+ /**
56
+ * Add a controller setter function with type hinting to ensure compatiiblity
57
+ *
58
+ * @param \GFPDF\Helper\Helper_Abstract_Controller $class The controller class
59
+ *
60
+ * @since 4.0
61
+ */
62
+ final public function setController( Helper_Abstract_Controller $class ) {
63
+ $this->controller = $class;
64
+ }
65
+
66
+ /**
67
+ * Get the controller
68
+ *
69
+ * @since 4.0
70
+ *
71
+ * @return \GFPDF\Helper\Helper_Abstract_Controller
72
+ */
73
+ final public function getController() {
74
+ return $this->controller;
75
+ }
76
+ }
src/helper/abstract/Helper_Abstract_Options.php CHANGED
@@ -378,7 +378,7 @@ abstract class Helper_Abstract_Options implements Helper_Interface_Filters {
378
 
379
  if ( 0 === $form_id ) {
380
 
381
- $error = new WP_Error( 'invalid_id', __( 'You must pass in a valid form ID', 'gravity-forms-pdf-extended' ) );
382
  $this->log->addError( 'Error Getting Settings.', array(
383
  'WP_Error_Message' => $error->get_error_message(),
384
  'WP_Error_Code' => $error->get_error_code(),
@@ -394,7 +394,7 @@ abstract class Helper_Abstract_Options implements Helper_Interface_Filters {
394
 
395
  if ( empty( $form ) ) {
396
 
397
- $error = new WP_Error( 'invalid_id', __( 'You must pass in a valid form ID', 'gravity-forms-pdf-extended' ) );
398
  $this->log->addError( 'Error Getting Settings.', array(
399
  'WP_Error_Message' => $error->get_error_message(),
400
  'WP_Error_Code' => $error->get_error_code(),
@@ -438,7 +438,7 @@ abstract class Helper_Abstract_Options implements Helper_Interface_Filters {
438
  if ( ! is_wp_error( $gfpdf_options ) ) {
439
 
440
  /* Get our PDF array if it exists */
441
- $pdf = ! empty( $gfpdf_options[ $pdf_id ] ) ? $gfpdf_options[ $pdf_id ] : new WP_Error( 'invalid_pdf_id', __( 'You must pass in a valid PDF ID', 'gravity-forms-pdf-extended' ) );
442
 
443
  if ( ! is_wp_error( $pdf ) ) {
444
  /* See https://gravitypdf.com/documentation/v4/gfpdf_pdf_config/ for more details about these filters */
@@ -791,13 +791,13 @@ abstract class Helper_Abstract_Options implements Helper_Interface_Filters {
791
  $gf_caps = $this->gform->get_capabilities();
792
 
793
  foreach ( $gf_caps as $gf_cap ) {
794
- $capabilities[ __( 'Gravity Forms Capabilities', 'gravity-forms-pdf-extended' ) ][ $gf_cap ] = $gf_cap;
795
  }
796
 
797
  foreach ( $roles as $role ) {
798
  foreach ( $role['capabilities'] as $cap => $val ) {
799
  if ( ! isset( $capabilities[ $cap ] ) && ! in_array( $cap, $gf_caps ) ) {
800
- $capabilities[ __( 'Active WordPress Capabilities', 'gravity-forms-pdf-extended' ) ][ $cap ] = $cap;
801
  }
802
  }
803
  }
@@ -820,67 +820,67 @@ abstract class Helper_Abstract_Options implements Helper_Interface_Filters {
820
  */
821
  public function get_paper_size() {
822
  return apply_filters( 'gfpdf_get_paper_size', array(
823
- __( 'Common Sizes', 'gravity-forms-pdf-extended' ) => array(
824
- 'A4' => __( 'A4 (210 x 297mm)', 'gravity-forms-pdf-extended' ),
825
- 'LETTER' => __( 'Letter (8.5 x 11in)', 'gravity-forms-pdf-extended' ),
826
- 'LEGAL' => __( 'Legal (8.5 x 14in)', 'gravity-forms-pdf-extended' ),
827
- 'LEDGER' => __( 'Ledger / Tabloid (11 x 17in)', 'gravity-forms-pdf-extended' ),
828
- 'EXECUTIVE' => __( 'Executive (7 x 10in)', 'gravity-forms-pdf-extended' ),
829
- 'CUSTOM' => __( 'Custom Paper Size', 'gravity-forms-pdf-extended' ),
830
  ),
831
 
832
- __( '"A" Sizes', 'gravity-forms-pdf-extended' ) => array(
833
- 'A0' => __( 'A0 (841 x 1189mm)', 'gravity-forms-pdf-extended' ),
834
- 'A1' => __( 'A1 (594 x 841mm)', 'gravity-forms-pdf-extended' ),
835
- 'A2' => __( 'A2 (420 x 594mm)', 'gravity-forms-pdf-extended' ),
836
- 'A3' => __( 'A3 (297 x 420mm)', 'gravity-forms-pdf-extended' ),
837
- 'A5' => __( 'A5 (210 x 297mm)', 'gravity-forms-pdf-extended' ),
838
- 'A6' => __( 'A6 (105 x 148mm)', 'gravity-forms-pdf-extended' ),
839
- 'A7' => __( 'A7 (74 x 105mm)', 'gravity-forms-pdf-extended' ),
840
- 'A8' => __( 'A8 (52 x 74mm)', 'gravity-forms-pdf-extended' ),
841
- 'A9' => __( 'A9 (37 x 52mm)', 'gravity-forms-pdf-extended' ),
842
- 'A10' => __( 'A10 (26 x 37mm)', 'gravity-forms-pdf-extended' ),
843
  ),
844
 
845
- __( '"B" Sizes', 'gravity-forms-pdf-extended' ) => array(
846
- 'B0' => __( 'B0 (1414 x 1000mm)', 'gravity-forms-pdf-extended' ),
847
- 'B1' => __( 'B1 (1000 x 707mm)', 'gravity-forms-pdf-extended' ),
848
- 'B2' => __( 'B2 (707 x 500mm)', 'gravity-forms-pdf-extended' ),
849
- 'B3' => __( 'B3 (500 x 353mm)', 'gravity-forms-pdf-extended' ),
850
- 'B4' => __( 'B4 (353 x 250mm)', 'gravity-forms-pdf-extended' ),
851
- 'B5' => __( 'B5 (250 x 176mm)', 'gravity-forms-pdf-extended' ),
852
- 'B6' => __( 'B6 (176 x 125mm)', 'gravity-forms-pdf-extended' ),
853
- 'B7' => __( 'B7 (125 x 88mm)', 'gravity-forms-pdf-extended' ),
854
- 'B8' => __( 'B8 (88 x 62mm)', 'gravity-forms-pdf-extended' ),
855
- 'B9' => __( 'B9 (62 x 44mm)', 'gravity-forms-pdf-extended' ),
856
- 'B10' => __( 'B10 (44 x 31mm)', 'gravity-forms-pdf-extended' ),
857
  ),
858
 
859
- __( '"C" Sizes', 'gravity-forms-pdf-extended' ) => array(
860
- 'C0' => __( 'C0 (1297 x 917mm)', 'gravity-forms-pdf-extended' ),
861
- 'C1' => __( 'C1 (917 x 648mm)', 'gravity-forms-pdf-extended' ),
862
- 'C2' => __( 'C2 (648 x 458mm)', 'gravity-forms-pdf-extended' ),
863
- 'C3' => __( 'C3 (458 x 324mm)', 'gravity-forms-pdf-extended' ),
864
- 'C4' => __( 'C4 (324 x 229mm)', 'gravity-forms-pdf-extended' ),
865
- 'C5' => __( 'C5 (229 x 162mm)', 'gravity-forms-pdf-extended' ),
866
- 'C6' => __( 'C6 (162 x 114mm)', 'gravity-forms-pdf-extended' ),
867
- 'C7' => __( 'C7 (114 x 81mm)', 'gravity-forms-pdf-extended' ),
868
- 'C8' => __( 'C8 (81 x 57mm)', 'gravity-forms-pdf-extended' ),
869
- 'C9' => __( 'C9 (57 x 40mm)', 'gravity-forms-pdf-extended' ),
870
- 'C10' => __( 'C10 (40 x 28mm)', 'gravity-forms-pdf-extended' ),
871
  ),
872
 
873
- __( '"RA" and "SRA" Sizes', 'gravity-forms-pdf-extended' ) => array(
874
- 'RA0' => __( 'RA0 (860 x 1220mm)', 'gravity-forms-pdf-extended' ),
875
- 'RA1' => __( 'RA1 (610 x 860mm)', 'gravity-forms-pdf-extended' ),
876
- 'RA2' => __( 'RA2 (430 x 610mm)', 'gravity-forms-pdf-extended' ),
877
- 'RA3' => __( 'RA3 (305 x 430mm)', 'gravity-forms-pdf-extended' ),
878
- 'RA4' => __( 'RA4 (215 x 305mm)', 'gravity-forms-pdf-extended' ),
879
- 'SRA0' => __( 'SRA0 (900 x 1280mm)', 'gravity-forms-pdf-extended' ),
880
- 'SRA1' => __( 'SRA1 (640 x 900mm)', 'gravity-forms-pdf-extended' ),
881
- 'SRA2' => __( 'SRA2 (450 x 640mm)', 'gravity-forms-pdf-extended' ),
882
- 'SRA3' => __( 'SRA3 (320 x 450mm)', 'gravity-forms-pdf-extended' ),
883
- 'SRA4' => __( 'SRA4 (225 x 320mm)', 'gravity-forms-pdf-extended' ),
884
  ),
885
  ) );
886
  }
@@ -923,7 +923,7 @@ abstract class Helper_Abstract_Options implements Helper_Interface_Filters {
923
 
924
  /* Add our legacy array to the end of our templates array */
925
  if ( sizeof( $legacy ) > 0 ) {
926
- $templates[ __( 'Legacy', 'gravity-forms-pdf-extended' ) ] = $legacy;
927
  }
928
 
929
  return apply_filters( 'gfpdf_template_list', $templates );
@@ -953,7 +953,7 @@ abstract class Helper_Abstract_Options implements Helper_Interface_Filters {
953
 
954
  /* Check if template compatible */
955
  if ( ! empty( $info['required_pdf_version'] ) && version_compare( $info['required_pdf_version'], PDF_EXTENDED_VERSION, '>' ) ) {
956
- $info['template'] .= ' (+ ' . _x( 'needs', 'Required', 'gravity-forms-pdf-extended' ) . ' v' . $info['required_pdf_version'] . ')';
957
  }
958
 
959
  $templates[ $info['group'] ][ $file ] = $info['template'];
@@ -983,12 +983,12 @@ abstract class Helper_Abstract_Options implements Helper_Interface_Filters {
983
  * @var array
984
  */
985
  return apply_filters( 'gfpdf_template_header_details', array(
986
- 'template' => __( 'Template Name', 'gravity-forms-pdf-extended' ),
987
- 'version' => __( 'Version', 'gravity-forms-pdf-extended' ),
988
- 'description' => __( 'Description', 'gravity-forms-pdf-extended' ),
989
- 'author' => __( 'Author', 'gravity-forms-pdf-extended' ),
990
- 'group' => __( 'Group', 'gravity-forms-pdf-extended' ),
991
- 'required_pdf_version' => __( 'Required PDF Version', 'gravity-forms-pdf-extended' ),
992
  ) );
993
  }
994
 
@@ -1080,7 +1080,7 @@ abstract class Helper_Abstract_Options implements Helper_Interface_Filters {
1080
  */
1081
  public function get_installed_fonts() {
1082
  $fonts = array(
1083
- __( 'Unicode', 'gravity-forms-pdf-extended' ) => array(
1084
  'dejavusanscondensed' => 'Dejavu Sans Condensed',
1085
  'dejavusans' => 'Dejavu Sans',
1086
  'dejavuserifcondensed' => 'Dejavu Serif Condensed',
@@ -1094,18 +1094,18 @@ abstract class Helper_Abstract_Options implements Helper_Interface_Filters {
1094
  'mph2bdamase' => 'MPH 2B Damase',
1095
  ),
1096
 
1097
- __( 'Indic', 'gravity-forms-pdf-extended' ) => array(
1098
  'lohitkannada' => 'Lohit Kannada',
1099
  'pothana2000' => 'Pothana2000',
1100
  ),
1101
 
1102
- __( 'Arabic', 'gravity-forms-pdf-extended' ) => array(
1103
  'xbriyaz' => 'XB Riyaz',
1104
  'lateef' => 'Lateef',
1105
  'kfgqpcuthmantahanaskh' => 'Bahif Uthman Taha',
1106
  ),
1107
 
1108
- __( 'Other', 'gravity-forms-pdf-extended' ) => array(
1109
  'estrangeloedessa' => 'Estrangelo Edessa (Syriac)',
1110
  'kaputaunicode' => 'Kaputa (Sinhala)',
1111
  'abyssinicasil' => 'Abyssinica SIL (Ethiopic)',
@@ -1157,7 +1157,7 @@ abstract class Helper_Abstract_Options implements Helper_Interface_Filters {
1157
  }
1158
 
1159
  /* Merge the new fonts at the beginning of the $fonts array */
1160
- $fonts = $this->misc->array_unshift_assoc( $fonts, __( 'User-Defined Fonts', 'gravity-forms-pdf-extended' ), $user_defined_fonts );
1161
  }
1162
 
1163
  return $fonts;
@@ -1214,7 +1214,7 @@ abstract class Helper_Abstract_Options implements Helper_Interface_Filters {
1214
  }
1215
  }
1216
 
1217
- return new WP_Error( 'font_not_found', __( 'Could not find Gravity PDF Font' ) );
1218
  }
1219
 
1220
  /**
@@ -1226,14 +1226,14 @@ abstract class Helper_Abstract_Options implements Helper_Interface_Filters {
1226
  */
1227
  public function get_privilages() {
1228
  $privilages = array(
1229
- 'copy' => __( 'Copy', 'gravity-forms-pdf-extended' ),
1230
- 'print' => __( 'Print - Low Resolution', 'gravity-forms-pdf-extended' ),
1231
- 'print-highres' => __( 'Print - High Resolution', 'gravity-forms-pdf-extended' ),
1232
- 'modify' => __( 'Modify', 'gravity-forms-pdf-extended' ),
1233
- 'annot-forms' => __( 'Annotate', 'gravity-forms-pdf-extended' ),
1234
- 'fill-forms' => __( 'Fill Forms', 'gravity-forms-pdf-extended' ),
1235
- 'extract' => __( 'Extract', 'gravity-forms-pdf-extended' ),
1236
- 'assemble' => __( 'Assemble', 'gravity-forms-pdf-extended' ),
1237
  );
1238
 
1239
  return apply_filters( 'gfpdf_privilages_list', $privilages );
@@ -1358,7 +1358,7 @@ abstract class Helper_Abstract_Options implements Helper_Interface_Filters {
1358
  if ( count( get_settings_errors() ) === 0 ) {
1359
  /* Merge our new settings with the existing */
1360
  $output = array_merge( $gfpdf_options, $input );
1361
- add_settings_error( 'gfpdf-notices', '', __( 'Settings updated.', 'gravity-forms-pdf-extended' ), 'updated' );
1362
  } else {
1363
  /* error is thrown. store the user data in a transient so fields are remembered */
1364
  set_transient( 'gfpdf_settings_user_data', array_merge( $gfpdf_options, $input ), 30 );
@@ -1477,7 +1477,7 @@ abstract class Helper_Abstract_Options implements Helper_Interface_Filters {
1477
  $size = count( $value );
1478
  if ( empty( $value ) || sizeof( array_filter( $value ) ) !== $size ) {
1479
  /* throw error */
1480
- add_settings_error( 'gfpdf-notices', $key, __( 'PDF Settings could not be saved. Please enter all required information below.', 'gravity-forms-pdf-extended' ) );
1481
  }
1482
  break;
1483
 
@@ -1485,7 +1485,7 @@ abstract class Helper_Abstract_Options implements Helper_Interface_Filters {
1485
  if ( isset( $input['default_pdf_size'] ) && $input['default_pdf_size'] === 'CUSTOM' ) {
1486
  if ( sizeof( array_filter( $value ) ) !== 3 ) {
1487
  /* throw error */
1488
- add_settings_error( 'gfpdf-notices', $key, __( 'PDF Settings could not be saved. Please enter all required information below.', 'gravity-forms-pdf-extended' ) );
1489
  }
1490
  }
1491
  break;
@@ -1493,7 +1493,7 @@ abstract class Helper_Abstract_Options implements Helper_Interface_Filters {
1493
  default:
1494
  if ( strlen( trim( $value ) ) === 0 ) {
1495
  /* throw error */
1496
- add_settings_error( 'gfpdf-notices', $key, __( 'PDF Settings could not be saved. Please enter all required information below.', 'gravity-forms-pdf-extended' ) );
1497
  }
1498
  break;
1499
  }
@@ -2025,9 +2025,9 @@ abstract class Helper_Abstract_Options implements Helper_Interface_Filters {
2025
 
2026
  /* get selected value (if any) */
2027
  $value = $this->get_form_value( $args );
2028
- $uploader_title = ( isset( $args['uploaderTitle'] ) ) ? esc_attr( $args['uploaderTitle'] ) : __( 'Select Media', 'gravity-forms-pdf-extended' );
2029
- $uploader_button_text = ( isset( $args['uploaderButtonText'] ) ) ? esc_attr( $args['uploaderButtonText'] ) : __( 'Select Media', 'gravity-forms-pdf-extended' );
2030
- $button_text = ( isset( $args['buttonText'] ) ) ? esc_attr( $args['buttonText'] ) : __( 'Upload File', 'gravity-forms-pdf-extended' );
2031
  $class = ( isset( $args['inputClass'] ) ) ? esc_attr( $args['inputClass'] ) : '';
2032
  $required = ( isset( $args['required'] ) && $args['required'] === true ) ? 'required' : '';
2033
  $args['id'] = esc_attr( $args['id'] );
@@ -2184,12 +2184,12 @@ abstract class Helper_Abstract_Options implements Helper_Interface_Filters {
2184
  $class = ( isset( $args['inputClass'] ) ) ? esc_attr( $args['inputClass'] ) : '';
2185
  $size = ( isset( $args['size'] ) && ! is_null( $args['size'] ) ) ? esc_attr( $args['size'] ) : 'regular';
2186
 
2187
- $html = '<input type="number" class="' . $size . '-text gfpdf_settings_' . $args['id'] . '" id="gfpdf_settings[' . $args['id'] . ']_width" min="1" name="gfpdf_settings[' . $args['id'] . '][]" value="' . esc_attr( stripslashes( $value[0] ) ) . '" required /> ' . __( 'Width', 'gravity-forms-pdf-extended' );
2188
- $html .= ' <input type="number" class="' . $size . '-text gfpdf_settings_' . $args['id'] . '" id="gfpdf_settings[' . $args['id'] . ']_height" min="1" name="gfpdf_settings[' . $args['id'] . '][]" value="' . esc_attr( stripslashes( $value[1] ) ) . '" required /> ' . __( 'Height', 'gravity-forms-pdf-extended' );
2189
 
2190
  $measurement = apply_filters( 'gfpdf_paper_size_dimensions', array(
2191
- 'millimeters' => __( 'mm', 'gravity-forms-pdf-extended' ),
2192
- 'inches' => __( 'inches', 'gravity-forms-pdf-extended' ),
2193
  ) );
2194
 
2195
  $html .= '&nbsp; — &nbsp; <select id="gfpdf_settings[' . $args['id'] . ']_measurement" style="width: 75px" class="gfpdf_settings_' . $args['id'] . ' ' . $class . ' ' . $chosen . '" name="gfpdf_settings[' . $args['id'] . '][]" data-placeholder="' . $placeholder . '">';
@@ -2249,7 +2249,7 @@ abstract class Helper_Abstract_Options implements Helper_Interface_Filters {
2249
  * @return void
2250
  */
2251
  public function missing_callback( $args ) {
2252
- printf( __( 'The callback used for the %s setting is missing.', 'gravity-forms-pdf-extended' ), "<strong>{$args['id']}</strong>" );
2253
  }
2254
 
2255
  /**
378
 
379
  if ( 0 === $form_id ) {
380
 
381
+ $error = new WP_Error( 'invalid_id', esc_html__( 'You must pass in a valid form ID', 'gravity-forms-pdf-extended' ) );
382
  $this->log->addError( 'Error Getting Settings.', array(
383
  'WP_Error_Message' => $error->get_error_message(),
384
  'WP_Error_Code' => $error->get_error_code(),
394
 
395
  if ( empty( $form ) ) {
396
 
397
+ $error = new WP_Error( 'invalid_id', esc_html__( 'You must pass in a valid form ID', 'gravity-forms-pdf-extended' ) );
398
  $this->log->addError( 'Error Getting Settings.', array(
399
  'WP_Error_Message' => $error->get_error_message(),
400
  'WP_Error_Code' => $error->get_error_code(),
438
  if ( ! is_wp_error( $gfpdf_options ) ) {
439
 
440
  /* Get our PDF array if it exists */
441
+ $pdf = ! empty( $gfpdf_options[ $pdf_id ] ) ? $gfpdf_options[ $pdf_id ] : new WP_Error( 'invalid_pdf_id', esc_html__( 'You must pass in a valid PDF ID', 'gravity-forms-pdf-extended' ) );
442
 
443
  if ( ! is_wp_error( $pdf ) ) {
444
  /* See https://gravitypdf.com/documentation/v4/gfpdf_pdf_config/ for more details about these filters */
791
  $gf_caps = $this->gform->get_capabilities();
792
 
793
  foreach ( $gf_caps as $gf_cap ) {
794
+ $capabilities[ esc_html__( 'Gravity Forms Capabilities', 'gravity-forms-pdf-extended' ) ][ $gf_cap ] = $gf_cap;
795
  }
796
 
797
  foreach ( $roles as $role ) {
798
  foreach ( $role['capabilities'] as $cap => $val ) {
799
  if ( ! isset( $capabilities[ $cap ] ) && ! in_array( $cap, $gf_caps ) ) {
800
+ $capabilities[ esc_html__( 'Active WordPress Capabilities', 'gravity-forms-pdf-extended' ) ][ $cap ] = $cap;
801
  }
802
  }
803
  }
820
  */
821
  public function get_paper_size() {
822
  return apply_filters( 'gfpdf_get_paper_size', array(
823
+ esc_html__( 'Common Sizes', 'gravity-forms-pdf-extended' ) => array(
824
+ 'A4' => esc_html__( 'A4 (210 x 297mm)', 'gravity-forms-pdf-extended' ),
825
+ 'LETTER' => esc_html__( 'Letter (8.5 x 11in)', 'gravity-forms-pdf-extended' ),
826
+ 'LEGAL' => esc_html__( 'Legal (8.5 x 14in)', 'gravity-forms-pdf-extended' ),
827
+ 'LEDGER' => esc_html__( 'Ledger / Tabloid (11 x 17in)', 'gravity-forms-pdf-extended' ),
828
+ 'EXECUTIVE' => esc_html__( 'Executive (7 x 10in)', 'gravity-forms-pdf-extended' ),
829
+ 'CUSTOM' => esc_html__( 'Custom Paper Size', 'gravity-forms-pdf-extended' ),
830
  ),
831
 
832
+ esc_html__( '"A" Sizes', 'gravity-forms-pdf-extended' ) => array(
833
+ 'A0' => esc_html__( 'A0 (841 x 1189mm)', 'gravity-forms-pdf-extended' ),
834
+ 'A1' => esc_html__( 'A1 (594 x 841mm)', 'gravity-forms-pdf-extended' ),
835
+ 'A2' => esc_html__( 'A2 (420 x 594mm)', 'gravity-forms-pdf-extended' ),
836
+ 'A3' => esc_html__( 'A3 (297 x 420mm)', 'gravity-forms-pdf-extended' ),
837
+ 'A5' => esc_html__( 'A5 (210 x 297mm)', 'gravity-forms-pdf-extended' ),
838
+ 'A6' => esc_html__( 'A6 (105 x 148mm)', 'gravity-forms-pdf-extended' ),
839
+ 'A7' => esc_html__( 'A7 (74 x 105mm)', 'gravity-forms-pdf-extended' ),
840
+ 'A8' => esc_html__( 'A8 (52 x 74mm)', 'gravity-forms-pdf-extended' ),
841
+ 'A9' => esc_html__( 'A9 (37 x 52mm)', 'gravity-forms-pdf-extended' ),
842
+ 'A10' => esc_html__( 'A10 (26 x 37mm)', 'gravity-forms-pdf-extended' ),
843
  ),
844
 
845
+ esc_html__( '"B" Sizes', 'gravity-forms-pdf-extended' ) => array(
846
+ 'B0' => esc_html__( 'B0 (1414 x 1000mm)', 'gravity-forms-pdf-extended' ),
847
+ 'B1' => esc_html__( 'B1 (1000 x 707mm)', 'gravity-forms-pdf-extended' ),
848
+ 'B2' => esc_html__( 'B2 (707 x 500mm)', 'gravity-forms-pdf-extended' ),
849
+ 'B3' => esc_html__( 'B3 (500 x 353mm)', 'gravity-forms-pdf-extended' ),
850
+ 'B4' => esc_html__( 'B4 (353 x 250mm)', 'gravity-forms-pdf-extended' ),
851
+ 'B5' => esc_html__( 'B5 (250 x 176mm)', 'gravity-forms-pdf-extended' ),
852
+ 'B6' => esc_html__( 'B6 (176 x 125mm)', 'gravity-forms-pdf-extended' ),
853
+ 'B7' => esc_html__( 'B7 (125 x 88mm)', 'gravity-forms-pdf-extended' ),
854
+ 'B8' => esc_html__( 'B8 (88 x 62mm)', 'gravity-forms-pdf-extended' ),
855
+ 'B9' => esc_html__( 'B9 (62 x 44mm)', 'gravity-forms-pdf-extended' ),
856
+ 'B10' => esc_html__( 'B10 (44 x 31mm)', 'gravity-forms-pdf-extended' ),
857
  ),
858
 
859
+ esc_html__( '"C" Sizes', 'gravity-forms-pdf-extended' ) => array(
860
+ 'C0' => esc_html__( 'C0 (1297 x 917mm)', 'gravity-forms-pdf-extended' ),
861
+ 'C1' => esc_html__( 'C1 (917 x 648mm)', 'gravity-forms-pdf-extended' ),
862
+ 'C2' => esc_html__( 'C2 (648 x 458mm)', 'gravity-forms-pdf-extended' ),
863
+ 'C3' => esc_html__( 'C3 (458 x 324mm)', 'gravity-forms-pdf-extended' ),
864
+ 'C4' => esc_html__( 'C4 (324 x 229mm)', 'gravity-forms-pdf-extended' ),
865
+ 'C5' => esc_html__( 'C5 (229 x 162mm)', 'gravity-forms-pdf-extended' ),
866
+ 'C6' => esc_html__( 'C6 (162 x 114mm)', 'gravity-forms-pdf-extended' ),
867
+ 'C7' => esc_html__( 'C7 (114 x 81mm)', 'gravity-forms-pdf-extended' ),
868
+ 'C8' => esc_html__( 'C8 (81 x 57mm)', 'gravity-forms-pdf-extended' ),
869
+ 'C9' => esc_html__( 'C9 (57 x 40mm)', 'gravity-forms-pdf-extended' ),
870
+ 'C10' => esc_html__( 'C10 (40 x 28mm)', 'gravity-forms-pdf-extended' ),
871
  ),
872
 
873
+ esc_html__( '"RA" and "SRA" Sizes', 'gravity-forms-pdf-extended' ) => array(
874
+ 'RA0' => esc_html__( 'RA0 (860 x 1220mm)', 'gravity-forms-pdf-extended' ),
875
+ 'RA1' => esc_html__( 'RA1 (610 x 860mm)', 'gravity-forms-pdf-extended' ),
876
+ 'RA2' => esc_html__( 'RA2 (430 x 610mm)', 'gravity-forms-pdf-extended' ),
877
+ 'RA3' => esc_html__( 'RA3 (305 x 430mm)', 'gravity-forms-pdf-extended' ),
878
+ 'RA4' => esc_html__( 'RA4 (215 x 305mm)', 'gravity-forms-pdf-extended' ),
879
+ 'SRA0' => esc_html__( 'SRA0 (900 x 1280mm)', 'gravity-forms-pdf-extended' ),
880
+ 'SRA1' => esc_html__( 'SRA1 (640 x 900mm)', 'gravity-forms-pdf-extended' ),
881
+ 'SRA2' => esc_html__( 'SRA2 (450 x 640mm)', 'gravity-forms-pdf-extended' ),
882
+ 'SRA3' => esc_html__( 'SRA3 (320 x 450mm)', 'gravity-forms-pdf-extended' ),
883
+ 'SRA4' => esc_html__( 'SRA4 (225 x 320mm)', 'gravity-forms-pdf-extended' ),
884
  ),
885
  ) );
886
  }
923
 
924
  /* Add our legacy array to the end of our templates array */
925
  if ( sizeof( $legacy ) > 0 ) {
926
+ $templates[ esc_html__( 'Legacy', 'gravity-forms-pdf-extended' ) ] = $legacy;
927
  }
928
 
929
  return apply_filters( 'gfpdf_template_list', $templates );
953
 
954
  /* Check if template compatible */
955
  if ( ! empty( $info['required_pdf_version'] ) && version_compare( $info['required_pdf_version'], PDF_EXTENDED_VERSION, '>' ) ) {
956
+ $info['template'] .= ' (+ ' . esc_html_x( 'needs', 'Required', 'gravity-forms-pdf-extended' ) . ' v' . $info['required_pdf_version'] . ')';
957
  }
958
 
959
  $templates[ $info['group'] ][ $file ] = $info['template'];
983
  * @var array
984
  */
985
  return apply_filters( 'gfpdf_template_header_details', array(
986
+ 'template' => esc_html__( 'Template Name', 'gravity-forms-pdf-extended' ),
987
+ 'version' => esc_html__( 'Version', 'gravity-forms-pdf-extended' ),
988
+ 'description' => esc_html__( 'Description', 'gravity-forms-pdf-extended' ),
989
+ 'author' => esc_html__( 'Author', 'gravity-forms-pdf-extended' ),
990
+ 'group' => esc_html__( 'Group', 'gravity-forms-pdf-extended' ),
991
+ 'required_pdf_version' => esc_html__( 'Required PDF Version', 'gravity-forms-pdf-extended' ),
992
  ) );
993
  }
994
 
1080
  */
1081
  public function get_installed_fonts() {
1082
  $fonts = array(
1083
+ esc_html__( 'Unicode', 'gravity-forms-pdf-extended' ) => array(
1084
  'dejavusanscondensed' => 'Dejavu Sans Condensed',
1085
  'dejavusans' => 'Dejavu Sans',
1086
  'dejavuserifcondensed' => 'Dejavu Serif Condensed',
1094
  'mph2bdamase' => 'MPH 2B Damase',
1095
  ),
1096
 
1097
+ esc_html__( 'Indic', 'gravity-forms-pdf-extended' ) => array(
1098
  'lohitkannada' => 'Lohit Kannada',
1099
  'pothana2000' => 'Pothana2000',
1100
  ),
1101
 
1102
+ esc_html__( 'Arabic', 'gravity-forms-pdf-extended' ) => array(
1103
  'xbriyaz' => 'XB Riyaz',
1104
  'lateef' => 'Lateef',
1105
  'kfgqpcuthmantahanaskh' => 'Bahif Uthman Taha',
1106
  ),
1107
 
1108
+ esc_html__( 'Other', 'gravity-forms-pdf-extended' ) => array(
1109
  'estrangeloedessa' => 'Estrangelo Edessa (Syriac)',
1110
  'kaputaunicode' => 'Kaputa (Sinhala)',
1111
  'abyssinicasil' => 'Abyssinica SIL (Ethiopic)',
1157
  }
1158
 
1159
  /* Merge the new fonts at the beginning of the $fonts array */
1160
+ $fonts = $this->misc->array_unshift_assoc( $fonts, esc_html__( 'User-Defined Fonts', 'gravity-forms-pdf-extended' ), $user_defined_fonts );
1161
  }
1162
 
1163
  return $fonts;
1214
  }
1215
  }
1216
 
1217
+ return new WP_Error( 'font_not_found', esc_html__( 'Could not find Gravity PDF Font' ) );
1218
  }
1219
 
1220
  /**
1226
  */
1227
  public function get_privilages() {
1228
  $privilages = array(
1229
+ 'copy' => esc_html__( 'Copy', 'gravity-forms-pdf-extended' ),
1230
+ 'print' => esc_html__( 'Print - Low Resolution', 'gravity-forms-pdf-extended' ),
1231
+ 'print-highres' => esc_html__( 'Print - High Resolution', 'gravity-forms-pdf-extended' ),
1232
+ 'modify' => esc_html__( 'Modify', 'gravity-forms-pdf-extended' ),
1233
+ 'annot-forms' => esc_html__( 'Annotate', 'gravity-forms-pdf-extended' ),
1234
+ 'fill-forms' => esc_html__( 'Fill Forms', 'gravity-forms-pdf-extended' ),
1235
+ 'extract' => esc_html__( 'Extract', 'gravity-forms-pdf-extended' ),
1236
+ 'assemble' => esc_html__( 'Assemble', 'gravity-forms-pdf-extended' ),
1237
  );
1238
 
1239
  return apply_filters( 'gfpdf_privilages_list', $privilages );
1358
  if ( count( get_settings_errors() ) === 0 ) {
1359
  /* Merge our new settings with the existing */
1360
  $output = array_merge( $gfpdf_options, $input );
1361
+ add_settings_error( 'gfpdf-notices', '', esc_html__( 'Settings updated.', 'gravity-forms-pdf-extended' ), 'updated' );
1362
  } else {
1363
  /* error is thrown. store the user data in a transient so fields are remembered */
1364
  set_transient( 'gfpdf_settings_user_data', array_merge( $gfpdf_options, $input ), 30 );
1477
  $size = count( $value );
1478
  if ( empty( $value ) || sizeof( array_filter( $value ) ) !== $size ) {
1479
  /* throw error */
1480
+ add_settings_error( 'gfpdf-notices', $key, esc_html__( 'PDF Settings could not be saved. Please enter all required information below.', 'gravity-forms-pdf-extended' ) );
1481
  }
1482
  break;
1483
 
1485
  if ( isset( $input['default_pdf_size'] ) && $input['default_pdf_size'] === 'CUSTOM' ) {
1486
  if ( sizeof( array_filter( $value ) ) !== 3 ) {
1487
  /* throw error */
1488
+ add_settings_error( 'gfpdf-notices', $key, esc_html__( 'PDF Settings could not be saved. Please enter all required information below.', 'gravity-forms-pdf-extended' ) );
1489
  }
1490
  }
1491
  break;
1493
  default:
1494
  if ( strlen( trim( $value ) ) === 0 ) {
1495
  /* throw error */
1496
+ add_settings_error( 'gfpdf-notices', $key, esc_html__( 'PDF Settings could not be saved. Please enter all required information below.', 'gravity-forms-pdf-extended' ) );
1497
  }
1498
  break;
1499
  }
2025
 
2026
  /* get selected value (if any) */
2027
  $value = $this->get_form_value( $args );
2028
+ $uploader_title = ( isset( $args['uploaderTitle'] ) ) ? esc_attr( $args['uploaderTitle'] ) : esc_attr__( 'Select Media', 'gravity-forms-pdf-extended' );
2029
+ $uploader_button_text = ( isset( $args['uploaderButtonText'] ) ) ? esc_attr( $args['uploaderButtonText'] ) : esc_attr__( 'Select Media', 'gravity-forms-pdf-extended' );
2030
+ $button_text = ( isset( $args['buttonText'] ) ) ? esc_attr( $args['buttonText'] ) : esc_attr__( 'Upload File', 'gravity-forms-pdf-extended' );
2031
  $class = ( isset( $args['inputClass'] ) ) ? esc_attr( $args['inputClass'] ) : '';
2032
  $required = ( isset( $args['required'] ) && $args['required'] === true ) ? 'required' : '';
2033
  $args['id'] = esc_attr( $args['id'] );
2184
  $class = ( isset( $args['inputClass'] ) ) ? esc_attr( $args['inputClass'] ) : '';
2185
  $size = ( isset( $args['size'] ) && ! is_null( $args['size'] ) ) ? esc_attr( $args['size'] ) : 'regular';
2186
 
2187
+ $html = '<input type="number" class="' . $size . '-text gfpdf_settings_' . $args['id'] . '" id="gfpdf_settings[' . $args['id'] . ']_width" min="1" name="gfpdf_settings[' . $args['id'] . '][]" value="' . esc_attr( stripslashes( $value[0] ) ) . '" required /> ' . esc_html__( 'Width', 'gravity-forms-pdf-extended' );
2188
+ $html .= ' <input type="number" class="' . $size . '-text gfpdf_settings_' . $args['id'] . '" id="gfpdf_settings[' . $args['id'] . ']_height" min="1" name="gfpdf_settings[' . $args['id'] . '][]" value="' . esc_attr( stripslashes( $value[1] ) ) . '" required /> ' . esc_html__( 'Height', 'gravity-forms-pdf-extended' );
2189
 
2190
  $measurement = apply_filters( 'gfpdf_paper_size_dimensions', array(
2191
+ 'millimeters' => esc_html__( 'mm', 'gravity-forms-pdf-extended' ),
2192
+ 'inches' => esc_html__( 'inches', 'gravity-forms-pdf-extended' ),
2193
  ) );
2194
 
2195
  $html .= '&nbsp; — &nbsp; <select id="gfpdf_settings[' . $args['id'] . ']_measurement" style="width: 75px" class="gfpdf_settings_' . $args['id'] . ' ' . $class . ' ' . $chosen . '" name="gfpdf_settings[' . $args['id'] . '][]" data-placeholder="' . $placeholder . '">';
2249
  * @return void
2250
  */
2251
  public function missing_callback( $args ) {
2252
+ printf( esc_html__( 'The callback used for the %s setting is missing.', 'gravity-forms-pdf-extended' ), "<strong>{$args['id']}</strong>" );
2253
  }
2254
 
2255
  /**
src/helper/abstract/Helper_Abstract_View.php CHANGED
@@ -140,7 +140,7 @@ abstract class Helper_Abstract_View extends Helper_Abstract_Model {
140
  }
141
  }
142
 
143
- return new WP_Error( 'invalid_path', sprintf( __( 'Cannot find file %s', 'gravity-forms-pdf-extended' ), $filename ) );
144
  }
145
 
146
  /**
140
  }
141
  }
142
 
143
+ return new WP_Error( 'invalid_path', sprintf( esc_html__( 'Cannot find file %s', 'gravity-forms-pdf-extended' ), $filename ) );
144
  }
145
 
146
  /**
src/helper/fields/Field_Name.php CHANGED
@@ -85,9 +85,14 @@ class Field_Name extends Helper_Abstract_Fields {
85
  * @since 4.0
86
  */
87
  public function html( $value = '', $label = true ) {
88
- $data = array_filter( $this->value() ); /* remove any empty fields from the array */
 
89
 
90
- $value = implode( ' ', $data );
 
 
 
 
91
 
92
  return parent::html( $value );
93
  }
85
  * @since 4.0
86
  */
87
  public function html( $value = '', $label = true ) {
88
+
89
+ $value = $this->value();
90
 
91
+ /* Backwards compatibility check */
92
+ if ( is_array( $value ) ) {
93
+ $value = array_filter( $value ); /* remove any empty fields from the array */
94
+ $value = implode( ' ', $value );
95
+ }
96
 
97
  return parent::html( $value );
98
  }
src/helper/fields/Field_Post_Excerpt.php CHANGED
@@ -1,109 +1,109 @@
1
- <?php
2
-
3
- namespace GFPDF\Helper\Fields;
4
-
5
- use GFPDF\Helper\Helper_Abstract_Form;
6
- use GFPDF\Helper\Helper_Misc;
7
- use GFPDF\Helper\Helper_Abstract_Fields;
8
-
9
- use GF_Field_Post_Excerpt;
10
-
11
- use Exception;
12
-
13
- /**
14
- * Gravity Forms Field
15
- *
16
- * @package Gravity PDF
17
- * @copyright Copyright (c) 2016, Blue Liquid Designs
18
- * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
19
- * @since 4.0
20
- */
21
-
22
- /* Exit if accessed directly */
23
- if ( ! defined( 'ABSPATH' ) ) {
24
- exit;
25
- }
26
-
27
- /*
28
- This file is part of Gravity PDF.
29
-
30
- Gravity PDF – Copyright (C) 2016, Blue Liquid Designs
31
-
32
- This program is free software; you can redistribute it and/or modify
33
- it under the terms of the GNU General Public License as published by
34
- the Free Software Foundation; either version 2 of the License, or
35
- (at your option) any later version.
36
-
37
- This program is distributed in the hope that it will be useful,
38
- but WITHOUT ANY WARRANTY; without even the implied warranty of
39
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40
- GNU General Public License for more details.
41
-
42
- You should have received a copy of the GNU General Public License
43
- along with this program; if not, write to the Free Software
44
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
45
- */
46
-
47
- /**
48
- * Controls the display and output of a Gravity Form field
49
- *
50
- * @since 4.0
51
- */
52
- class Field_Post_Excerpt extends Helper_Abstract_Fields {
53
-
54
- /**
55
- * Check the appropriate variables are parsed in send to the parent construct
56
- *
57
- * @param object $field The GF_Field_* Object
58
- * @param array $entry The Gravity Forms Entry
59
- *
60
- * @param \GFPDF\Helper\Helper_Abstract_Form $gform
61
- * @param \GFPDF\Helper\Helper_Misc $misc
62
- *
63
- * @throws Exception
64
- *
65
- * @since 4.0
66
- */
67
- public function __construct( $field, $entry, Helper_Abstract_Form $gform, Helper_Misc $misc ) {
68
-
69
- if ( ! is_object( $field ) || ! $field instanceof GF_Field_Post_Excerpt ) {
70
- throw new Exception( '$field needs to be in instance of GF_Field_Post_Excerpt' );
71
- }
72
-
73
- /* call our parent method */
74
- parent::__construct( $field, $entry, $gform, $misc );
75
- }
76
-
77
- /**
78
- * Display the HTML version of this field
79
- *
80
- * @param string $value
81
- * @param bool $label
82
- *
83
- * @return string
84
- *
85
- * @since 4.0
86
- */
87
- public function html( $value = '', $label = true ) {
88
- $value = $this->value();
89
-
90
- return parent::html( $value );
91
- }
92
-
93
- /**
94
- * Get the standard GF value of this field
95
- *
96
- * @return string|array
97
- *
98
- * @since 4.0
99
- */
100
- public function value() {
101
- if ( $this->has_cache() ) {
102
- return $this->cache();
103
- }
104
-
105
- $this->cache( esc_html( $this->get_value() ) );
106
-
107
- return $this->cache();
108
- }
109
- }
1
+ <?php
2
+
3
+ namespace GFPDF\Helper\Fields;
4
+
5
+ use GFPDF\Helper\Helper_Abstract_Form;
6
+ use GFPDF\Helper\Helper_Misc;
7
+ use GFPDF\Helper\Helper_Abstract_Fields;
8
+
9
+ use GF_Field_Post_Excerpt;
10
+
11
+ use Exception;
12
+
13
+ /**
14
+ * Gravity Forms Field
15
+ *
16
+ * @package Gravity PDF
17
+ * @copyright Copyright (c) 2016, Blue Liquid Designs
18
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
19
+ * @since 4.0
20
+ */
21
+
22
+ /* Exit if accessed directly */
23
+ if ( ! defined( 'ABSPATH' ) ) {
24
+ exit;
25
+ }
26
+
27
+ /*
28
+ This file is part of Gravity PDF.
29
+
30
+ Gravity PDF – Copyright (C) 2016, Blue Liquid Designs
31
+
32
+ This program is free software; you can redistribute it and/or modify
33
+ it under the terms of the GNU General Public License as published by
34
+ the Free Software Foundation; either version 2 of the License, or
35
+ (at your option) any later version.
36
+
37
+ This program is distributed in the hope that it will be useful,
38
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
39
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40
+ GNU General Public License for more details.
41
+
42
+ You should have received a copy of the GNU General Public License
43
+ along with this program; if not, write to the Free Software
44
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
45
+ */
46
+
47
+ /**
48
+ * Controls the display and output of a Gravity Form field
49
+ *
50
+ * @since 4.0
51
+ */
52
+ class Field_Post_Excerpt extends Helper_Abstract_Fields {
53
+
54
+ /**
55
+ * Check the appropriate variables are parsed in send to the parent construct
56
+ *
57
+ * @param object $field The GF_Field_* Object
58
+ * @param array $entry The Gravity Forms Entry
59
+ *
60
+ * @param \GFPDF\Helper\Helper_Abstract_Form $gform
61
+ * @param \GFPDF\Helper\Helper_Misc $misc
62
+ *
63
+ * @throws Exception
64
+ *
65
+ * @since 4.0
66
+ */
67
+ public function __construct( $field, $entry, Helper_Abstract_Form $gform, Helper_Misc $misc ) {
68
+
69
+ if ( ! is_object( $field ) || ! $field instanceof GF_Field_Post_Excerpt ) {
70
+ throw new Exception( '$field needs to be in instance of GF_Field_Post_Excerpt' );
71
+ }
72
+
73
+ /* call our parent method */
74
+ parent::__construct( $field, $entry, $gform, $misc );
75
+ }
76
+
77
+ /**
78
+ * Display the HTML version of this field
79
+ *
80
+ * @param string $value
81
+ * @param bool $label
82
+ *
83
+ * @return string
84
+ *
85
+ * @since 4.0
86
+ */
87
+ public function html( $value = '', $label = true ) {
88
+ $value = $this->value();
89
+
90
+ return parent::html( $value );
91
+ }
92
+
93
+ /**
94
+ * Get the standard GF value of this field
95
+ *
96
+ * @return string|array
97
+ *
98
+ * @since 4.0
99
+ */
100
+ public function value() {
101
+ if ( $this->has_cache() ) {
102
+ return $this->cache();
103
+ }
104
+
105
+ $this->cache( esc_html( $this->get_value() ) );
106
+
107
+ return $this->cache();
108
+ }
109
+ }
src/helper/fields/Field_Products.php CHANGED
@@ -103,7 +103,7 @@ class Field_Products extends Helper_Abstract_Fields {
103
  <div class="row-separator products-title-container">
104
  <h3 class="product-field-title gfpdf-field">
105
  <?php
106
- $label = apply_filters( 'gform_order_label', __( 'Order', 'gravityforms' ), $form_id );
107
  $label = apply_filters( 'gform_order_label_' . $form_id, $label, $form_id );
108
 
109
  echo $label;
@@ -119,7 +119,7 @@ class Field_Products extends Helper_Abstract_Fields {
119
  <tr>
120
  <th class="entry-products-col1">
121
  <?php
122
- $label = apply_filters( 'gform_product', __( 'Product', 'gravityforms' ), $form_id );
123
  $label = apply_filters( 'gform_product_' . $form_id, $label, $form_id );
124
 
125
  echo $label;
@@ -128,7 +128,7 @@ class Field_Products extends Helper_Abstract_Fields {
128
 
129
  <th class="textcenter entry-products-col2">
130
  <?php
131
- $label = apply_filters( 'gform_product_qty', __( 'Qty', 'gravityforms' ), $form_id );
132
  $label = apply_filters( 'gform_product_qty_' . $form_id, $label, $form_id );
133
 
134
  echo $label;
@@ -136,7 +136,7 @@ class Field_Products extends Helper_Abstract_Fields {
136
  </th>
137
  <th class="entry-products-col3">
138
  <?php
139
- $label = apply_filters( 'gform_product_unitprice', __( 'Unit Price', 'gravityforms' ), $form_id );
140
  $label = apply_filters( 'gform_product_unitprice_' . $form_id, $label, $form_id );
141
 
142
  echo $label;
@@ -144,7 +144,7 @@ class Field_Products extends Helper_Abstract_Fields {
144
  </th>
145
  <th class="entry-products-col4">
146
  <?php
147
- $label = apply_filters( 'gform_product_price', __( 'Price', 'gravityforms' ), $form_id );
148
  $label = apply_filters( 'gform_product_price_' . $form_id, $label, $form_id );
149
 
150
  echo $label;
@@ -181,11 +181,11 @@ class Field_Products extends Helper_Abstract_Fields {
181
  <?php if ( ! empty( $products['products_totals']['shipping_name'] ) ) : ?>
182
  <tr>
183
  <td rowspan="3" class="emptycell"></td>
184
- <td colspan="2" class="textright subtotal totals"><?php _e( 'Subtotal', 'gravity-forms-pdf-extended' ); ?></td>
185
  <td class="subtotal_amount totals"><?php echo $products['products_totals']['subtotal_formatted']; ?></td>
186
  </tr>
187
  <tr>
188
- <td colspan="2" class="textright shipping totals"><?php echo sprintf( __( 'Shipping (%s)', 'gravity-forms-pdf-extended' ), $products['products_totals']['shipping_name'] ); ?></td>
189
  <td class="shipping_amount totals"><?php echo $products['products_totals']['shipping_formatted']; ?></td>
190
  </tr>
191
  <?php endif; ?>
@@ -195,7 +195,7 @@ class Field_Products extends Helper_Abstract_Fields {
195
  <td class="emptycell"></td>
196
  <?php endif; ?>
197
 
198
- <td colspan="2" class="textright grandtotal totals"><?php _e( 'Total', 'gravityforms' ) ?></td>
199
  <td class="grandtotal_amount totals"><?php echo $products['products_totals']['total_formatted']; ?></td>
200
  </tr>
201
  </tbody>
@@ -228,10 +228,6 @@ class Field_Products extends Helper_Abstract_Fields {
228
  $form = $this->form;
229
  $lead = $this->entry;
230
 
231
- /* Set up the curreny format we should output products totals in */
232
- $currency_type = GFCommon::is_currency_decimal_dot();
233
- $currency_format = $currency_type ? 'decimal_dot' : 'decimal_comma';
234
-
235
  /* Get all products for this field */
236
  $products = GFCommon::get_product_fields( $form, $lead, true );
237
 
@@ -246,6 +242,7 @@ class Field_Products extends Helper_Abstract_Fields {
246
 
247
  /* Get the raw pricing data */
248
  $product_raw_price = GFCommon::to_number( $product['price'] );
 
249
 
250
  /* Check if we should include options */
251
  $options = isset( $product['options'] ) ? $product['options'] : array();
@@ -256,10 +253,10 @@ class Field_Products extends Helper_Abstract_Fields {
256
  $option_raw_price = GFCommon::to_number( $option['price'] );
257
 
258
  /* Add the options price to the products price */
259
- $product_raw_price += $option_raw_price;
260
 
261
  /* add our formatted options price to the array */
262
- $option['price_formatted'] = GFCommon::format_number( $option_raw_price, 'currency' );
263
 
264
  /* Format our option strings correctly */
265
  $option['field_label'] = ( isset( $option['field_label'] ) ) ? esc_html( $option['field_label'] ) : '';
@@ -268,7 +265,7 @@ class Field_Products extends Helper_Abstract_Fields {
268
  }
269
 
270
  /* calculate subtotal */
271
- $product_subtotal = floatval( $product['quantity'] ) * $product_raw_price;
272
 
273
  /* increment the total */
274
  $order_total += $product_subtotal;
@@ -276,12 +273,12 @@ class Field_Products extends Helper_Abstract_Fields {
276
  /* Store product in $form_array array */
277
  $form_array['products'][ $id ] = array(
278
  'name' => esc_html( $product['name'] ),
279
- 'price' => GFCommon::format_number( GFCommon::clean_number( $product['price'], $currency_format ), 'currency' ),
280
- 'price_unformatted' => GFCommon::clean_number( $product['price'], $currency_format ),
281
  'options' => $options,
282
  'quantity' => $product['quantity'],
283
  'subtotal' => $product_subtotal,
284
- 'subtotal_formatted' => GFCommon::format_number( $product_subtotal, 'currency' ),
285
  );
286
  }
287
 
@@ -293,12 +290,12 @@ class Field_Products extends Helper_Abstract_Fields {
293
  /* add totals to form data */
294
  $form_array['products_totals'] = array(
295
  'subtotal' => $order_subtotal,
296
- 'subtotal_formatted' => GFCommon::format_number( $order_subtotal, 'currency' ),
297
  'shipping' => $shipping_price,
298
- 'shipping_formatted' => GFCommon::format_number( $shipping_price, 'currency' ),
299
  'shipping_name' => ( isset( $products['shipping']['name'] ) ) ? preg_replace( '/(.+?) \((.+?)\)/', '$2', $products['shipping']['name'] ) : '',
300
  'total' => $order_total,
301
- 'total_formatted' => GFCommon::format_number( $order_total, 'currency' ),
302
  );
303
 
304
  $form_array['products_totals'] = array_map( 'esc_html', $form_array['products_totals'] );
103
  <div class="row-separator products-title-container">
104
  <h3 class="product-field-title gfpdf-field">
105
  <?php
106
+ $label = apply_filters( 'gform_order_label', esc_html__( 'Order', 'gravityforms' ), $form_id );
107
  $label = apply_filters( 'gform_order_label_' . $form_id, $label, $form_id );
108
 
109
  echo $label;
119
  <tr>
120
  <th class="entry-products-col1">
121
  <?php
122
+ $label = apply_filters( 'gform_product', esc_html__( 'Product', 'gravityforms' ), $form_id );
123
  $label = apply_filters( 'gform_product_' . $form_id, $label, $form_id );
124
 
125
  echo $label;
128
 
129
  <th class="textcenter entry-products-col2">
130
  <?php
131
+ $label = apply_filters( 'gform_product_qty', esc_html__( 'Qty', 'gravityforms' ), $form_id );
132
  $label = apply_filters( 'gform_product_qty_' . $form_id, $label, $form_id );
133
 
134
  echo $label;
136
  </th>
137
  <th class="entry-products-col3">
138
  <?php
139
+ $label = apply_filters( 'gform_product_unitprice', esc_html__( 'Unit Price', 'gravityforms' ), $form_id );
140
  $label = apply_filters( 'gform_product_unitprice_' . $form_id, $label, $form_id );
141
 
142
  echo $label;
144
  </th>
145
  <th class="entry-products-col4">
146
  <?php
147
+ $label = apply_filters( 'gform_product_price', esc_html__( 'Price', 'gravityforms' ), $form_id );
148
  $label = apply_filters( 'gform_product_price_' . $form_id, $label, $form_id );
149
 
150
  echo $label;
181
  <?php if ( ! empty( $products['products_totals']['shipping_name'] ) ) : ?>
182
  <tr>
183
  <td rowspan="3" class="emptycell"></td>
184
+ <td colspan="2" class="textright subtotal totals"><?php esc_html_e( 'Subtotal', 'gravity-forms-pdf-extended' ); ?></td>
185
  <td class="subtotal_amount totals"><?php echo $products['products_totals']['subtotal_formatted']; ?></td>
186
  </tr>
187
  <tr>
188
+ <td colspan="2" class="textright shipping totals"><?php echo sprintf( esc_html__( 'Shipping (%s)', 'gravity-forms-pdf-extended' ), $products['products_totals']['shipping_name'] ); ?></td>
189
  <td class="shipping_amount totals"><?php echo $products['products_totals']['shipping_formatted']; ?></td>
190
  </tr>
191
  <?php endif; ?>
195
  <td class="emptycell"></td>
196
  <?php endif; ?>
197
 
198
+ <td colspan="2" class="textright grandtotal totals"><?php esc_html_e( 'Total', 'gravityforms' ) ?></td>
199
  <td class="grandtotal_amount totals"><?php echo $products['products_totals']['total_formatted']; ?></td>
200
  </tr>
201
  </tbody>
228
  $form = $this->form;
229
  $lead = $this->entry;
230
 
 
 
 
 
231
  /* Get all products for this field */
232
  $products = GFCommon::get_product_fields( $form, $lead, true );
233
 
242
 
243
  /* Get the raw pricing data */
244
  $product_raw_price = GFCommon::to_number( $product['price'] );
245
+ $product_unit_price = $product_raw_price;
246
 
247
  /* Check if we should include options */
248
  $options = isset( $product['options'] ) ? $product['options'] : array();
253
  $option_raw_price = GFCommon::to_number( $option['price'] );
254
 
255
  /* Add the options price to the products price */
256
+ $product_unit_price += $option_raw_price;
257
 
258
  /* add our formatted options price to the array */
259
+ $option['price_formatted'] = GFCommon::to_money( $option_raw_price, $lead['currency'] );
260
 
261
  /* Format our option strings correctly */
262
  $option['field_label'] = ( isset( $option['field_label'] ) ) ? esc_html( $option['field_label'] ) : '';
265
  }
266
 
267
  /* calculate subtotal */
268
+ $product_subtotal = floatval( $product['quantity'] ) * $product_unit_price;
269
 
270
  /* increment the total */
271
  $order_total += $product_subtotal;
273
  /* Store product in $form_array array */
274
  $form_array['products'][ $id ] = array(
275
  'name' => esc_html( $product['name'] ),
276
+ 'price' => GFCommon::to_money( $product_raw_price, $lead['currency'] ),
277
+ 'price_unformatted' => $product_raw_price,
278
  'options' => $options,
279
  'quantity' => $product['quantity'],
280
  'subtotal' => $product_subtotal,
281
+ 'subtotal_formatted' => GFCommon::to_money( $product_subtotal, $lead['currency'] ),
282
  );
283
  }
284
 
290
  /* add totals to form data */
291
  $form_array['products_totals'] = array(
292
  'subtotal' => $order_subtotal,
293
+ 'subtotal_formatted' => GFCommon::to_money( $order_subtotal, $lead['currency'] ),
294
  'shipping' => $shipping_price,
295
+ 'shipping_formatted' => GFCommon::to_money( $shipping_price, $lead['currency'] ),
296
  'shipping_name' => ( isset( $products['shipping']['name'] ) ) ? preg_replace( '/(.+?) \((.+?)\)/', '$2', $products['shipping']['name'] ) : '',
297
  'total' => $order_total,
298
+ 'total_formatted' => GFCommon::to_money( $order_total, $lead['currency'] ),
299
  );
300
 
301
  $form_array['products_totals'] = array_map( 'esc_html', $form_array['products_totals'] );
src/helper/fields/Field_Quiz.php CHANGED
@@ -3,6 +3,7 @@
3
  namespace GFPDF\Helper\Fields;
4
 
5
  use GFPDF\Helper\Helper_Abstract_Fields;
 
6
 
7
  use GFFormsModel;
8
 
@@ -97,7 +98,8 @@ class Field_Quiz extends Helper_Abstract_Fields {
97
  * We'll try use our DOM reader to correctly process the HTML, otherwise use string replace
98
  */
99
  try {
100
- $value = htmlqp( $value, 'img' )->addClass( 'gf-quiz-img' )->top( 'body' )->innerHTML5();
 
101
  } catch ( Exception $e ) {
102
  $value = str_replace( '<img ', '<img class="gf-quiz-img" ', $value );
103
  }
3
  namespace GFPDF\Helper\Fields;
4
 
5
  use GFPDF\Helper\Helper_Abstract_Fields;
6
+ use GFPDF\Helper\Helper_QueryPath;
7
 
8
  use GFFormsModel;
9
 
98
  * We'll try use our DOM reader to correctly process the HTML, otherwise use string replace
99
  */
100
  try {
101
+ $qp = new Helper_QueryPath();
102
+ $value = $qp->html5( $value, 'img' )->addClass( 'gf-quiz-img' )->top( 'html' )->innerHTML5();
103
  } catch ( Exception $e ) {
104
  $value = str_replace( '<img ', '<img class="gf-quiz-img" ', $value );
105
  }
src/helper/fields/Field_v3_Products.php CHANGED
@@ -2,6 +2,8 @@
2
 
3
  namespace GFPDF\Helper\Fields;
4
 
 
 
5
  /**
6
  * Gravity Forms Field
7
  *
@@ -58,13 +60,14 @@ class Field_v3_Products extends Field_Products {
58
  $html = parent::html( $value, $label );
59
 
60
  /* Format the order label correctly */
61
- $label = apply_filters( 'gform_order_label', __( 'Order', 'gravityforms' ), $this->form->id );
62
  $label = apply_filters( 'gform_order_label_' . $this->form->id, $label, $this->form->id );
63
 
64
  $heading = '<h2 class="default entry-view-section-break">' . $label . '</h2>';
65
 
66
  /* Pull out the .entry-products table from the HTML using querypath */
67
- $table = htmlqp( $html, 'div.inner-container' )->innerHTML5();
 
68
 
69
  $html = $heading;
70
  $html .= $table;
2
 
3
  namespace GFPDF\Helper\Fields;
4
 
5
+ use GFPDF\Helper\Helper_QueryPath;
6
+
7
  /**
8
  * Gravity Forms Field
9
  *
60
  $html = parent::html( $value, $label );
61
 
62
  /* Format the order label correctly */
63
+ $label = apply_filters( 'gform_order_label', esc_html__( 'Order', 'gravityforms' ), $this->form->id );
64
  $label = apply_filters( 'gform_order_label_' . $this->form->id, $label, $this->form->id );
65
 
66
  $heading = '<h2 class="default entry-view-section-break">' . $label . '</h2>';
67
 
68
  /* Pull out the .entry-products table from the HTML using querypath */
69
+ $qp = new Helper_QueryPath();
70
+ $table = $qp->html5( $html, 'div.inner-container' )->innerHTML5();
71
 
72
  $html = $heading;
73
  $html .= $table;
src/model/Model_Actions.php CHANGED
@@ -350,7 +350,7 @@ class Model_Actions extends Helper_Abstract_Model {
350
  if ( ! is_file( $path . 'configuration.php' ) ) {
351
 
352
  $return = array(
353
- 'error' => sprintf( __( 'No configuration.php file found for site #%s', 'gravity-forms-pdf-extended' ), $blog_id ),
354
  );
355
 
356
  $log->addError( 'AJAX Endpoint Failed', $return );
@@ -371,7 +371,7 @@ class Model_Actions extends Helper_Abstract_Model {
371
  } else {
372
 
373
  $return = array(
374
- 'error' => sprintf( __( 'Database import problem for site #%s', 'gravity-forms-pdf-extended' ), $blog_id ),
375
  );
376
 
377
  $log->addError( 'AJAX Endpoint Failed', $return );
350
  if ( ! is_file( $path . 'configuration.php' ) ) {
351
 
352
  $return = array(
353
+ 'error' => sprintf( esc_html__( 'No configuration.php file found for site #%s', 'gravity-forms-pdf-extended' ), $blog_id ),
354
  );
355
 
356
  $log->addError( 'AJAX Endpoint Failed', $return );
371
  } else {
372
 
373
  $return = array(
374
+ 'error' => sprintf( esc_html__( 'Database import problem for site #%s', 'gravity-forms-pdf-extended' ), $blog_id ),
375
  );
376
 
377
  $log->addError( 'AJAX Endpoint Failed', $return );
src/model/Model_Form_Settings.php CHANGED
@@ -178,7 +178,7 @@ class Model_Form_Settings extends Helper_Abstract_Model {
178
  /* prevent unauthorized access */
179
  if ( ! $this->gform->has_capability( 'gravityforms_edit_settings' ) ) {
180
  $this->log->addWarning( 'Lack of User Capabilities.' );
181
- wp_die( __( 'You do not have permission to access this page', 'gravity-forms-pdf-extended' ) );
182
  }
183
 
184
  $controller = $this->getController();
@@ -213,7 +213,7 @@ class Model_Form_Settings extends Helper_Abstract_Model {
213
  /* prevent unauthorized access */
214
  if ( ! $this->gform->has_capability( 'gravityforms_edit_settings' ) ) {
215
  $this->log->addWarning( 'Lack of User Capabilities.' );
216
- wp_die( __( 'You do not have permission to access this page', 'gravity-forms-pdf-extended' ) );
217
  }
218
 
219
  $controller = $this->getController();
@@ -240,7 +240,7 @@ class Model_Form_Settings extends Helper_Abstract_Model {
240
  $pdf = $this->options->get_pdf( $form_id, $pdf_id );
241
 
242
  /* prepare our data */
243
- $label = ( ! is_wp_error( $pdf ) && ! isset( $pdf['status'] ) ) ? __( 'Update PDF', 'gravity-forms-pdf-extended' ) : __( 'Add PDF', 'gravity-forms-pdf-extended' );
244
 
245
  /* pass to view */
246
  $controller->view->add_edit( array(
@@ -273,13 +273,13 @@ class Model_Form_Settings extends Helper_Abstract_Model {
273
  'user_meta' => get_user_meta( get_current_user_id() ),
274
  ) );
275
 
276
- wp_die( __( 'You do not have permission to access this page', 'gravity-forms-pdf-extended' ) );
277
  }
278
 
279
  /* Check Nonce is valid */
280
  if ( ! wp_verify_nonce( rgpost( 'gfpdf_save_pdf' ), 'gfpdf_save_pdf' ) ) {
281
  $this->log->addWarning( 'Nonce Verification Failed.' );
282
- $this->notices->add_error( __( 'There was a problem saving your PDF settings. Please try again.', 'gravity-forms-pdf-extended' ) );
283
 
284
  return false;
285
  }
@@ -298,7 +298,7 @@ class Model_Form_Settings extends Helper_Abstract_Model {
298
  'pid' => $pdf_id,
299
  ) );
300
 
301
- $this->notices->add_error( __( 'There was a problem saving your PDF settings. Please try again.', 'gravity-forms-pdf-extended' ) );
302
 
303
  return false;
304
  }
@@ -318,7 +318,7 @@ class Model_Form_Settings extends Helper_Abstract_Model {
318
  ) {
319
 
320
  $this->log->addNotice( 'Validation failed.' );
321
- $this->notices->add_error( __( 'PDF could not be saved. Please enter all required information below.', 'gravity-forms-pdf-extended' ) );
322
 
323
  return false;
324
  }
@@ -338,13 +338,13 @@ class Model_Form_Settings extends Helper_Abstract_Model {
338
  'settings' => $sanitized,
339
  ) );
340
 
341
- $this->notices->add_notice( sprintf( __( 'PDF saved successfully. %sBack to PDF list.%s', 'gravity-forms-pdf-extended' ), '<a href="' . remove_query_arg( 'pid' ) . '">', '</a>' ) );
342
 
343
  return true;
344
  }
345
 
346
  $this->log->addError( 'Database Update Failed.' );
347
- $this->notices->add_error( __( 'There was a problem saving your PDF settings. Please try again.', 'gravity-forms-pdf-extended' ) );
348
 
349
  return false;
350
  }
@@ -374,7 +374,7 @@ class Model_Form_Settings extends Helper_Abstract_Model {
374
  if ( ! wp_verify_nonce( rgpost( 'gfpdf_save_pdf' ), 'gfpdf_save_pdf' ) ) {
375
 
376
  $this->log->addWarning( 'Nonce Verification Failed.' );
377
- $this->notices->add_error( __( 'There was a problem saving your PDF settings. Please try again.', 'gravity-forms-pdf-extended' ) );
378
 
379
  return false;
380
  }
@@ -870,7 +870,7 @@ class Model_Form_Settings extends Helper_Abstract_Model {
870
  $this->log->addNotice( 'AJAX Endpoint Successful' );
871
 
872
  $return = array(
873
- 'msg' => __( 'PDF successfully deleted.', 'gravity-forms-pdf-extended' ),
874
  );
875
 
876
  echo json_encode( $return );
@@ -940,8 +940,9 @@ class Model_Form_Settings extends Helper_Abstract_Model {
940
  $config = $this->options->get_pdf( $fid, $pid );
941
 
942
  if ( ! is_wp_error( $config ) ) {
943
- $config['id'] = uniqid();
944
- $config['name'] = $config['name'] . ' (copy)';
 
945
 
946
  $results = $this->options->update_pdf( $fid, $config['id'], $config );
947
 
@@ -953,7 +954,7 @@ class Model_Form_Settings extends Helper_Abstract_Model {
953
  $state_nonce = wp_create_nonce( "gfpdf_state_nonce_{$fid}_{$config['id']}" );
954
 
955
  $return = array(
956
- 'msg' => __( 'PDF successfully duplicated.', 'gravity-forms-pdf-extended' ),
957
  'pid' => $config['id'],
958
  'name' => $config['name'],
959
  'dup_nonce' => $dup_nonce,
@@ -1026,7 +1027,7 @@ class Model_Form_Settings extends Helper_Abstract_Model {
1026
 
1027
  /* toggle state */
1028
  $config['active'] = ( $config['active'] === true ) ? false : true;
1029
- $state = ( $config['active'] ) ? __( 'Active', 'gravity-forms-pdf-extended' ) : __( 'Inactive', 'gravity-forms-pdf-extended' );
1030
  $src = $this->gform->get_plugin_url() . '/images/active' . intval( $config['active'] ) . '.png';
1031
 
1032
  $results = $this->options->update_pdf( $fid, $config['id'], $config );
178
  /* prevent unauthorized access */
179
  if ( ! $this->gform->has_capability( 'gravityforms_edit_settings' ) ) {
180
  $this->log->addWarning( 'Lack of User Capabilities.' );
181
+ wp_die( esc_html__( 'You do not have permission to access this page', 'gravity-forms-pdf-extended' ) );
182
  }
183
 
184
  $controller = $this->getController();
213
  /* prevent unauthorized access */
214
  if ( ! $this->gform->has_capability( 'gravityforms_edit_settings' ) ) {
215
  $this->log->addWarning( 'Lack of User Capabilities.' );
216
+ wp_die( esc_html__( 'You do not have permission to access this page', 'gravity-forms-pdf-extended' ) );
217
  }
218
 
219
  $controller = $this->getController();
240
  $pdf = $this->options->get_pdf( $form_id, $pdf_id );
241
 
242
  /* prepare our data */
243
+ $label = ( ! is_wp_error( $pdf ) && ! isset( $pdf['status'] ) ) ? esc_html__( 'Update PDF', 'gravity-forms-pdf-extended' ) : esc_html__( 'Add PDF', 'gravity-forms-pdf-extended' );
244
 
245
  /* pass to view */
246
  $controller->view->add_edit( array(
273
  'user_meta' => get_user_meta( get_current_user_id() ),
274
  ) );
275
 
276
+ wp_die( esc_html__( 'You do not have permission to access this page', 'gravity-forms-pdf-extended' ) );
277
  }
278
 
279
  /* Check Nonce is valid */
280
  if ( ! wp_verify_nonce( rgpost( 'gfpdf_save_pdf' ), 'gfpdf_save_pdf' ) ) {
281
  $this->log->addWarning( 'Nonce Verification Failed.' );
282
+ $this->notices->add_error( esc_html__( 'There was a problem saving your PDF settings. Please try again.', 'gravity-forms-pdf-extended' ) );
283
 
284
  return false;
285
  }
298
  'pid' => $pdf_id,
299
  ) );
300
 
301
+ $this->notices->add_error( esc_html__( 'There was a problem saving your PDF settings. Please try again.', 'gravity-forms-pdf-extended' ) );
302
 
303
  return false;
304
  }
318
  ) {
319
 
320
  $this->log->addNotice( 'Validation failed.' );
321
+ $this->notices->add_error( esc_html__( 'PDF could not be saved. Please enter all required information below.', 'gravity-forms-pdf-extended' ) );
322
 
323
  return false;
324
  }
338
  'settings' => $sanitized,
339
  ) );
340
 
341
+ $this->notices->add_notice( sprintf( esc_html__( 'PDF saved successfully. %sBack to PDF list.%s', 'gravity-forms-pdf-extended' ), '<a href="' . remove_query_arg( 'pid' ) . '">', '</a>' ) );
342
 
343
  return true;
344
  }
345
 
346
  $this->log->addError( 'Database Update Failed.' );
347
+ $this->notices->add_error( esc_html__( 'There was a problem saving your PDF settings. Please try again.', 'gravity-forms-pdf-extended' ) );
348
 
349
  return false;
350
  }
374
  if ( ! wp_verify_nonce( rgpost( 'gfpdf_save_pdf' ), 'gfpdf_save_pdf' ) ) {
375
 
376
  $this->log->addWarning( 'Nonce Verification Failed.' );
377
+ $this->notices->add_error( esc_html__( 'There was a problem saving your PDF settings. Please try again.', 'gravity-forms-pdf-extended' ) );
378
 
379
  return false;
380
  }
870
  $this->log->addNotice( 'AJAX Endpoint Successful' );
871
 
872
  $return = array(
873
+ 'msg' => esc_html__( 'PDF successfully deleted.', 'gravity-forms-pdf-extended' ),
874
  );
875
 
876
  echo json_encode( $return );
940
  $config = $this->options->get_pdf( $fid, $pid );
941
 
942
  if ( ! is_wp_error( $config ) ) {
943
+ $config['id'] = uniqid();
944
+ $config['name'] = $config['name'] . ' (copy)';
945
+ $config['active'] = false;
946
 
947
  $results = $this->options->update_pdf( $fid, $config['id'], $config );
948
 
954
  $state_nonce = wp_create_nonce( "gfpdf_state_nonce_{$fid}_{$config['id']}" );
955
 
956
  $return = array(
957
+ 'msg' => esc_html__( 'PDF successfully duplicated.', 'gravity-forms-pdf-extended' ),
958
  'pid' => $config['id'],
959
  'name' => $config['name'],
960
  'dup_nonce' => $dup_nonce,
1027
 
1028
  /* toggle state */
1029
  $config['active'] = ( $config['active'] === true ) ? false : true;
1030
+ $state = ( $config['active'] ) ? esc_attr__( 'Active', 'gravity-forms-pdf-extended' ) : esc_attr__( 'Inactive', 'gravity-forms-pdf-extended' );
1031
  $src = $this->gform->get_plugin_url() . '/images/active' . intval( $config['active'] ) . '.png';
1032
 
1033
  $results = $this->options->update_pdf( $fid, $config['id'], $config );
src/model/Model_Install.php CHANGED
@@ -314,7 +314,7 @@ class Model_Install extends Helper_Abstract_Model {
314
  'dir' => $dir,
315
  ) );
316
 
317
- $this->notices->add_error( sprintf( __( 'There was a problem creating the %s directory. Ensure you have write permissions to your uploads folder.', 'gravity-forms-pdf-extended' ), '<code>' . $this->misc->relative_path( $dir ) . '</code>' ) );
318
  }
319
  } else {
320
  /* test the directory is currently writable by the web server, otherwise throw an error */
@@ -323,7 +323,7 @@ class Model_Install extends Helper_Abstract_Model {
323
  'dir' => $dir,
324
  ) );
325
 
326
- $this->notices->add_error( sprintf( __( 'Gravity PDF does not have write permission to the %s directory. Contact your web hosting provider to fix the issue.', 'gravity-forms-pdf-extended' ), '<code>' . $this->misc->relative_path( $dir ) . '</code>' ) );
327
  }
328
  }
329
  }
@@ -471,7 +471,7 @@ class Model_Install extends Helper_Abstract_Model {
471
  'form_id' => $form['id'],
472
  ) );
473
 
474
- $this->notices->add_error( sprintf( __( 'There was a problem removing the Gravity Form "%s" PDF configuration. Try delete manually.', 'gravity-forms-pdf-extended' ), $form['id'] . ': ' . $form['title'] ) );
475
  }
476
  }
477
  }
@@ -503,7 +503,7 @@ class Model_Install extends Helper_Abstract_Model {
503
  'dir' => $dir,
504
  ) );
505
 
506
- $this->notices->add_error( sprintf( __( 'There was a problem removing the %s directory. Clean up manually via (S)FTP.', 'gravity-forms-pdf-extended' ), '<code>' . $this->misc->relative_path( $dir ) . '</code>' ) );
507
  }
508
  }
509
  }
314
  'dir' => $dir,
315
  ) );
316
 
317
+ $this->notices->add_error( sprintf( esc_html__( 'There was a problem creating the %s directory. Ensure you have write permissions to your uploads folder.', 'gravity-forms-pdf-extended' ), '<code>' . $this->misc->relative_path( $dir ) . '</code>' ) );
318
  }
319
  } else {
320
  /* test the directory is currently writable by the web server, otherwise throw an error */
323
  'dir' => $dir,
324
  ) );
325
 
326
+ $this->notices->add_error( sprintf( esc_html__( 'Gravity PDF does not have write permission to the %s directory. Contact your web hosting provider to fix the issue.', 'gravity-forms-pdf-extended' ), '<code>' . $this->misc->relative_path( $dir ) . '</code>' ) );
327
  }
328
  }
329
  }
471
  'form_id' => $form['id'],
472
  ) );
473
 
474
+ $this->notices->add_error( sprintf( esc_html__( 'There was a problem removing the Gravity Form "%s" PDF configuration. Try delete manually.', 'gravity-forms-pdf-extended' ), $form['id'] . ': ' . $form['title'] ) );
475
  }
476
  }
477
  }
503
  'dir' => $dir,
504
  ) );
505
 
506
+ $this->notices->add_error( sprintf( esc_html__( 'There was a problem removing the %s directory. Clean up manually via (S)FTP.', 'gravity-forms-pdf-extended' ), '<code>' . $this->misc->relative_path( $dir ) . '</code>' ) );
507
  }
508
  }
509
  }
src/model/Model_PDF.php CHANGED
@@ -319,7 +319,7 @@ class Model_PDF extends Helper_Abstract_Model {
319
 
320
  if ( ! is_wp_error( $action ) ) {
321
  if ( $settings['active'] !== true ) {
322
- return new WP_Error( 'inactive', __( 'The PDF configuration is not currently active.', 'gravity-forms-pdf-extended' ) );
323
  }
324
  }
325
 
@@ -341,7 +341,7 @@ class Model_PDF extends Helper_Abstract_Model {
341
 
342
  if ( ! is_wp_error( $action ) ) {
343
  if ( isset( $settings['conditionalLogic'] ) && ! $this->misc->evaluate_conditional_logic( $settings['conditionalLogic'], $entry ) ) {
344
- return new WP_Error( 'conditional_logic', __( 'PDF conditional logic requirements have not been met.', 'gravity-forms-pdf-extended' ) );
345
  }
346
  }
347
 
@@ -443,7 +443,7 @@ class Model_PDF extends Helper_Abstract_Model {
443
 
444
  /* if there is no user account assigned to this entry throw error */
445
  if ( empty( $entry['created_by'] ) ) {
446
- return new WP_Error( 'timeout_expired', __( 'Your PDF is no longer accessible.', 'gravity-forms-pdf-extended' ) );
447
  } else {
448
 
449
  $this->log->addNotice( 'Redirecting to Login.', array(
@@ -531,7 +531,7 @@ class Model_PDF extends Helper_Abstract_Model {
531
 
532
  /* throw error if no access granted */
533
  if ( ! $access ) {
534
- return new WP_Error( 'access_denied', __( 'You do not have access to view this PDF.', 'gravity-forms-pdf-extended' ) );
535
  }
536
  }
537
  }
@@ -876,7 +876,7 @@ class Model_PDF extends Helper_Abstract_Model {
876
  }
877
  }
878
 
879
- return new WP_Error( 'pdf_generation_failure', __( 'The PDF could not be saved.', 'gravity-forms-pdf-extended' ) );
880
 
881
  }
882
 
@@ -1786,7 +1786,7 @@ class Model_PDF extends Helper_Abstract_Model {
1786
  }
1787
  }
1788
 
1789
- return new WP_Error( 'pdf_configuration_error', 'Could not find PDF configuration requested' );
1790
  }
1791
 
1792
  /**
319
 
320
  if ( ! is_wp_error( $action ) ) {
321
  if ( $settings['active'] !== true ) {
322
+ return new WP_Error( 'inactive', esc_html__( 'The PDF configuration is not currently active.', 'gravity-forms-pdf-extended' ) );
323
  }
324
  }
325
 
341
 
342
  if ( ! is_wp_error( $action ) ) {
343
  if ( isset( $settings['conditionalLogic'] ) && ! $this->misc->evaluate_conditional_logic( $settings['conditionalLogic'], $entry ) ) {
344
+ return new WP_Error( 'conditional_logic', esc_html__( 'PDF conditional logic requirements have not been met.', 'gravity-forms-pdf-extended' ) );
345
  }
346
  }
347
 
443
 
444
  /* if there is no user account assigned to this entry throw error */
445
  if ( empty( $entry['created_by'] ) ) {
446
+ return new WP_Error( 'timeout_expired', esc_html__( 'Your PDF is no longer accessible.', 'gravity-forms-pdf-extended' ) );
447
  } else {
448
 
449
  $this->log->addNotice( 'Redirecting to Login.', array(
531
 
532
  /* throw error if no access granted */
533
  if ( ! $access ) {
534
+ return new WP_Error( 'access_denied', esc_html__( 'You do not have access to view this PDF.', 'gravity-forms-pdf-extended' ) );
535
  }
536
  }
537
  }
876
  }
877
  }
878
 
879
+ return new WP_Error( 'pdf_generation_failure', esc_html__( 'The PDF could not be saved.', 'gravity-forms-pdf-extended' ) );
880
 
881
  }
882
 
1786
  }
1787
  }
1788
 
1789
+ return new WP_Error( 'pdf_configuration_error', esc_html__( 'Could not find PDF configuration requested', 'gravity-forms-pdf-extended' ) );
1790
  }
1791
 
1792
  /**
src/model/Model_Settings.php CHANGED
@@ -81,6 +81,16 @@ class Model_Settings extends Helper_Abstract_Model {
81
  */
82
  protected $log;
83
 
 
 
 
 
 
 
 
 
 
 
84
  /**
85
  * Holds our Helper_Abstract_Options / Helper_Options_Fields object
86
  * Makes it easy to access global PDF settings and individual form PDF settings
@@ -230,12 +240,12 @@ class Model_Settings extends Helper_Abstract_Model {
230
  $copy = $this->misc->copyr( PDF_PLUGIN_DIR . 'src/templates/', $destination );
231
  if ( is_wp_error( $copy ) ) {
232
  $this->log->addError( 'Template Installation Error.' );
233
- $this->notices->add_error( sprintf( __( 'There was a problem copying all PDF templates to %s. Please try again.', 'gravity-forms-pdf-extended' ), '<code>' . $this->misc->relative_path( $destination ) . '</code>' ) );
234
 
235
  return false;
236
  }
237
 
238
- $this->notices->add_notice( sprintf( __( 'Gravity PDF Custom Templates successfully installed to %s.', 'gravity-forms-pdf-extended' ), '<code>' . $this->misc->relative_path( $destination ) . '</code>' ) );
239
  $this->options->update_option( 'custom_pdf_template_files_installed', true );
240
 
241
  return true;
@@ -307,7 +317,7 @@ class Model_Settings extends Helper_Abstract_Model {
307
  /* Loop through default fonts and check for duplicate */
308
  $default_fonts = $this->options->get_installed_fonts();
309
 
310
- unset( $default_fonts[ __( 'User-Defined Fonts', 'gravity-forms-pdf-extended' ) ] );
311
 
312
  /* check for exact match */
313
  foreach ( $default_fonts as $group ) {
@@ -357,13 +367,13 @@ class Model_Settings extends Helper_Abstract_Model {
357
 
358
  /* Couldn't find file so throw error */
359
  if ( is_wp_error( $path ) ) {
360
- $errors[] = sprintf( __( 'Could not locate font on web server: %s', 'gravity-forms-pdf-extended' ), $fonts[ $type ] );
361
  }
362
 
363
  /* Copy font to our fonts folder */
364
  $filename = basename( $path );
365
  if ( ! is_file( $this->data->template_font_location . $filename ) && ! copy( $path, $this->data->template_font_location . $filename ) ) {
366
- $errors[] = sprintf( __( 'There was a problem installing the font %s. Please try again.', 'gravity-forms-pdf-extended' ), $filename );
367
  }
368
  }
369
  }
@@ -523,7 +533,7 @@ class Model_Settings extends Helper_Abstract_Model {
523
  header( 'HTTP/1.1 400 Bad Request' );
524
 
525
  $return = array(
526
- 'error' => __( 'Could not delete Gravity PDF font correctly. Please try again.', 'gravity-forms-pdf-extended' ),
527
  );
528
 
529
  $this->log->addError( 'AJAX Endpoint Error', $return );
@@ -554,7 +564,7 @@ class Model_Settings extends Helper_Abstract_Model {
554
  header( 'HTTP/1.1 400 Bad Request' );
555
 
556
  $return = array(
557
- 'error' => __( 'Required fields have not been included.', 'gravity-forms-pdf-extended' ),
558
  );
559
 
560
  $this->log->addWarning( 'Validation Failed.', $return );
@@ -571,7 +581,7 @@ class Model_Settings extends Helper_Abstract_Model {
571
  header( 'HTTP/1.1 400 Bad Request' );
572
 
573
  $return = array(
574
- 'error' => __( 'Font name is not valid. Only alphanumeric characters and spaces are accepted.', 'gravity-forms-pdf-extended' ),
575
  );
576
 
577
  $this->log->addWarning( 'Validation Failed.', $return );
@@ -589,7 +599,7 @@ class Model_Settings extends Helper_Abstract_Model {
589
  header( 'HTTP/1.1 400 Bad Request' );
590
 
591
  $return = array(
592
- 'error' => __( 'A font with the same name already exists. Try a different name.', 'gravity-forms-pdf-extended' ),
593
  );
594
 
595
  $this->log->addWarning( 'Validation Failed.', $return );
81
  */
82
  protected $log;
83
 
84
+ /**
85
+ * Holds our Helper_Notices object
86
+ * which we can use to queue up admin messages for the user
87
+ *
88
+ * @var \GFPDF\Helper\Helper_Misc
89
+ *
90
+ * @since 4.0
91
+ */
92
+ protected $notices;
93
+
94
  /**
95
  * Holds our Helper_Abstract_Options / Helper_Options_Fields object
96
  * Makes it easy to access global PDF settings and individual form PDF settings
240
  $copy = $this->misc->copyr( PDF_PLUGIN_DIR . 'src/templates/', $destination );
241
  if ( is_wp_error( $copy ) ) {
242
  $this->log->addError( 'Template Installation Error.' );
243
+ $this->notices->add_error( sprintf( esc_html__( 'There was a problem copying all PDF templates to %s. Please try again.', 'gravity-forms-pdf-extended' ), '<code>' . $this->misc->relative_path( $destination ) . '</code>' ) );
244
 
245
  return false;
246
  }
247
 
248
+ $this->notices->add_notice( sprintf( esc_html__( 'Gravity PDF Custom Templates successfully installed to %s.', 'gravity-forms-pdf-extended' ), '<code>' . $this->misc->relative_path( $destination ) . '</code>' ) );
249
  $this->options->update_option( 'custom_pdf_template_files_installed', true );
250
 
251
  return true;
317
  /* Loop through default fonts and check for duplicate */
318
  $default_fonts = $this->options->get_installed_fonts();
319
 
320
+ unset( $default_fonts[ esc_html__( 'User-Defined Fonts', 'gravity-forms-pdf-extended' ) ] );
321
 
322
  /* check for exact match */
323
  foreach ( $default_fonts as $group ) {
367
 
368
  /* Couldn't find file so throw error */
369
  if ( is_wp_error( $path ) ) {
370
+ $errors[] = sprintf( esc_html__( 'Could not locate font on web server: %s', 'gravity-forms-pdf-extended' ), $fonts[ $type ] );
371
  }
372
 
373
  /* Copy font to our fonts folder */
374
  $filename = basename( $path );
375
  if ( ! is_file( $this->data->template_font_location . $filename ) && ! copy( $path, $this->data->template_font_location . $filename ) ) {
376
+ $errors[] = sprintf( esc_html__( 'There was a problem installing the font %s. Please try again.', 'gravity-forms-pdf-extended' ), $filename );
377
  }
378
  }
379
  }
533
  header( 'HTTP/1.1 400 Bad Request' );
534
 
535
  $return = array(
536
+ 'error' => esc_html__( 'Could not delete Gravity PDF font correctly. Please try again.', 'gravity-forms-pdf-extended' ),
537
  );
538
 
539
  $this->log->addError( 'AJAX Endpoint Error', $return );
564
  header( 'HTTP/1.1 400 Bad Request' );
565
 
566
  $return = array(
567
+ 'error' => esc_html__( 'Required fields have not been included.', 'gravity-forms-pdf-extended' ),
568
  );
569
 
570
  $this->log->addWarning( 'Validation Failed.', $return );
581
  header( 'HTTP/1.1 400 Bad Request' );
582
 
583
  $return = array(
584
+ 'error' => esc_html__( 'Font name is not valid. Only alphanumeric characters and spaces are accepted.', 'gravity-forms-pdf-extended' ),
585
  );
586
 
587
  $this->log->addWarning( 'Validation Failed.', $return );
599
  header( 'HTTP/1.1 400 Bad Request' );
600
 
601
  $return = array(
602
+ 'error' => esc_html__( 'A font with the same name already exists. Try a different name.', 'gravity-forms-pdf-extended' ),
603
  );
604
 
605
  $this->log->addWarning( 'Validation Failed.', $return );
src/model/Model_Welcome_Screen.php CHANGED
@@ -90,8 +90,8 @@ class Model_Welcome_Screen extends Helper_Abstract_Model {
90
  /* Assign our internal variables */
91
  $this->log = $log;
92
 
93
- $this->welcome_title = __( 'Welcome to Gravity PDF', 'gravity-forms-pdf-extended' );
94
- $this->updated_title = __( "What's new in Gravity PDF?", 'gravity-forms-pdf-extended' );
95
  }
96
 
97
  /**
90
  /* Assign our internal variables */
91
  $this->log = $log;
92
 
93
+ $this->welcome_title = esc_html__( 'Welcome to Gravity PDF', 'gravity-forms-pdf-extended' );
94
+ $this->updated_title = esc_html__( "What's new in Gravity PDF?", 'gravity-forms-pdf-extended' );
95
  }
96
 
97
  /**
src/templates/blank-slate.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php
2
 
3
- /**
4
  * Template Name: Blank Slate
5
- * Version: 1.0
6
  * Description: A print-friendly template focusing solely on the user-submitted data.
7
  * Author: Gravity PDF
8
  * Group: Core
@@ -15,7 +15,7 @@ if ( ! class_exists( 'GFForms' ) ) {
15
  return;
16
  }
17
 
18
- /**
19
  * All Gravity PDF 4.x templates have access to the following variables:
20
  *
21
  * $form (The current Gravity Form array)
@@ -23,7 +23,7 @@ if ( ! class_exists( 'GFForms' ) ) {
23
  * $form_data (The processed entry data stored in an array)
24
  * $settings (the current PDF configuration)
25
  * $fields (an array of Gravity Form fields which can be accessed with their ID number)
26
- * $config (The initialised template config class – /config/blank-slate.php)
27
  * $gfpdf (the main Gravity PDF object containing all our helper classes)
28
  * $args (contains an array of all variables - the ones being described right now - passed to the template)
29
  */
@@ -87,7 +87,7 @@ if ( ! class_exists( 'GFForms' ) ) {
87
  float: none !important;
88
  }
89
 
90
- /**
91
  * Headings
92
  */
93
  h3 {
@@ -95,7 +95,7 @@ if ( ! class_exists( 'GFForms' ) ) {
95
  padding: 0;
96
  }
97
 
98
- /**
99
  * Quiz Style Support
100
  */
101
  .gquiz-field {
@@ -112,7 +112,7 @@ if ( ! class_exists( 'GFForms' ) ) {
112
  vertical-align: middle;
113
  }
114
 
115
- /**
116
  * Survey Style Support
117
  */
118
  .gsurvey-likert-choice-label {
@@ -123,7 +123,7 @@ if ( ! class_exists( 'GFForms' ) ) {
123
  text-align: center;
124
  }
125
 
126
- /**
127
  * Terms of Service (Gravity Perks) Support
128
  */
129
  .terms-of-service-agreement {
@@ -135,14 +135,7 @@ if ( ! class_exists( 'GFForms' ) ) {
135
  font-size: 150%;
136
  }
137
 
138
- /**
139
- * Table Support
140
- */
141
- th, td {
142
- font-size: 9pt;
143
- }
144
-
145
- /**
146
  * List Support
147
  */
148
  ul, ol {
@@ -157,7 +150,7 @@ if ( ! class_exists( 'GFForms' ) ) {
157
  list-style-position: inside;
158
  }
159
 
160
- /**
161
  * Header / Footer
162
  */
163
  .alignleft {
@@ -182,7 +175,7 @@ if ( ! class_exists( 'GFForms' ) ) {
182
  float: none;
183
  }
184
 
185
- /**
186
  * Independant Template Styles
187
  */
188
  .row-separator .gfpdf-field {
@@ -215,7 +208,7 @@ if ( ! class_exists( 'GFForms' ) ) {
215
  <!-- Output our HTML markup -->
216
  <?php
217
 
218
- /**
219
  * Load our core-specific styles from our PDF settings which will be passed to the PDF template $config array
220
  */
221
  $show_form_title = ( ! empty( $settings['show_form_title'] ) && $settings['show_form_title'] == 'Yes' ) ? true : false;
@@ -230,7 +223,7 @@ $show_empty = ( ! empty( $settings['show_empty'] ) && $settings['show_
230
  *
231
  * @var array
232
  */
233
- $config = array(
234
  'settings' => $settings,
235
  'meta' => array(
236
  'echo' => true, /* whether to output the HTML or return it */
@@ -246,10 +239,10 @@ $config = array(
246
  ),
247
  );
248
 
249
- /**
250
  * Generate our HTML markup
251
  *
252
  * You can access Gravity PDFs common functions and classes through our API wrapper class "GPDFAPI"
253
  */
254
  $pdf = GPDFAPI::get_pdf_class();
255
- $pdf->process_html_structure( $entry, GPDFAPI::get_pdf_class( 'model' ), $config );
1
  <?php
2
 
3
+ /*
4
  * Template Name: Blank Slate
5
+ * Version: 1.1
6
  * Description: A print-friendly template focusing solely on the user-submitted data.
7
  * Author: Gravity PDF
8
  * Group: Core
15
  return;
16
  }
17
 
18
+ /*
19
  * All Gravity PDF 4.x templates have access to the following variables:
20
  *
21
  * $form (The current Gravity Form array)
23
  * $form_data (The processed entry data stored in an array)
24
  * $settings (the current PDF configuration)
25
  * $fields (an array of Gravity Form fields which can be accessed with their ID number)
26
+ * $config (The initialised template config class – eg. /config/blank-slate.php)
27
  * $gfpdf (the main Gravity PDF object containing all our helper classes)
28
  * $args (contains an array of all variables - the ones being described right now - passed to the template)
29
  */
87
  float: none !important;
88
  }
89
 
90
+ /*
91
  * Headings
92
  */
93
  h3 {
95
  padding: 0;
96
  }
97
 
98
+ /*
99
  * Quiz Style Support
100
  */
101
  .gquiz-field {
112
  vertical-align: middle;
113
  }
114
 
115
+ /*
116
  * Survey Style Support
117
  */
118
  .gsurvey-likert-choice-label {
123
  text-align: center;
124
  }
125
 
126
+ /*
127
  * Terms of Service (Gravity Perks) Support
128
  */
129
  .terms-of-service-agreement {
135
  font-size: 150%;
136
  }
137
 
138
+ /*
 
 
 
 
 
 
 
139
  * List Support
140
  */
141
  ul, ol {
150
  list-style-position: inside;
151
  }
152
 
153
+ /*
154
  * Header / Footer
155
  */
156
  .alignleft {
175
  float: none;
176
  }
177
 
178
+ /*
179
  * Independant Template Styles
180
  */
181
  .row-separator .gfpdf-field {
208
  <!-- Output our HTML markup -->
209
  <?php
210
 
211
+ /*
212
  * Load our core-specific styles from our PDF settings which will be passed to the PDF template $config array
213
  */
214
  $show_form_title = ( ! empty( $settings['show_form_title'] ) && $settings['show_form_title'] == 'Yes' ) ? true : false;
223
  *
224
  * @var array
225
  */
226
+ $html_config = array(
227
  'settings' => $settings,
228
  'meta' => array(
229
  'echo' => true, /* whether to output the HTML or return it */
239
  ),
240
  );
241
 
242
+ /*
243
  * Generate our HTML markup
244
  *
245
  * You can access Gravity PDFs common functions and classes through our API wrapper class "GPDFAPI"
246
  */
247
  $pdf = GPDFAPI::get_pdf_class();
248
+ $pdf->process_html_structure( $entry, GPDFAPI::get_pdf_class( 'model' ), $html_config );
src/templates/config/focus-gravity.php CHANGED
@@ -91,28 +91,28 @@ class Focus_Gravity implements Helper_Interface_Config {
91
  'fields' => array(
92
  'focusgravity_accent_colour' => array(
93
  'id' => 'focusgravity_accent_colour',
94
- 'name' => __( 'Accent Colour', 'gravity-forms-pdf-extended' ),
95
  'type' => 'color',
96
- 'desc' => __( 'The accent colour is used for the page and section titles, as well as the border.', 'gravity-forms-pdf-extended' ),
97
  'std' => '#e3e3e3',
98
  ),
99
 
100
  'focusgravity_secondary_colour' => array(
101
  'id' => 'focusgravity_secondary_colour',
102
- 'name' => __( 'Secondary Colour', 'gravity-forms-pdf-extended' ),
103
  'type' => 'color',
104
- 'desc' => __( 'The secondary colour is used with the field labels and for alternate rows.', 'gravity-forms-pdf-extended' ),
105
  'std' => '#eaf2fa',
106
  ),
107
 
108
  'focusgravity_label_format' => array(
109
  'id' => 'focusgravity_label_format',
110
- 'name' => __( 'Format', 'gravity-forms-pdf-extended' ),
111
  'type' => 'radio',
112
- 'desc' => __( 'Combine the field label and value or have a distinct label/value.', 'gravity-forms-pdf-extended' ),
113
  'options' => array(
114
- 'combined_label' => __( 'Combined Label', 'gravity-forms-pdf-extended' ),
115
- 'split_label' => __( 'Split Label', 'gravity-forms-pdf-extended' ),
116
  ),
117
  'std' => 'combined_label',
118
  ),
91
  'fields' => array(
92
  'focusgravity_accent_colour' => array(
93
  'id' => 'focusgravity_accent_colour',
94
+ 'name' => esc_html__( 'Accent Colour', 'gravity-forms-pdf-extended' ),
95
  'type' => 'color',
96
+ 'desc' => esc_html__( 'The accent colour is used for the page and section titles, as well as the border.', 'gravity-forms-pdf-extended' ),
97
  'std' => '#e3e3e3',
98
  ),
99
 
100
  'focusgravity_secondary_colour' => array(
101
  'id' => 'focusgravity_secondary_colour',
102
+ 'name' => esc_html__( 'Secondary Colour', 'gravity-forms-pdf-extended' ),
103
  'type' => 'color',
104
+ 'desc' => esc_html__( 'The secondary colour is used with the field labels and for alternate rows.', 'gravity-forms-pdf-extended' ),
105
  'std' => '#eaf2fa',
106
  ),
107
 
108
  'focusgravity_label_format' => array(
109
  'id' => 'focusgravity_label_format',
110
+ 'name' => esc_html__( 'Format', 'gravity-forms-pdf-extended' ),
111
  'type' => 'radio',
112
+ 'desc' => esc_html__( 'Combine the field label and value or have a distinct label/value.', 'gravity-forms-pdf-extended' ),
113
  'options' => array(
114
+ 'combined_label' => esc_html__( 'Combined Label', 'gravity-forms-pdf-extended' ),
115
+ 'split_label' => esc_html__( 'Split Label', 'gravity-forms-pdf-extended' ),
116
  ),
117
  'std' => 'combined_label',
118
  ),
src/templates/config/rubix.php CHANGED
@@ -91,9 +91,9 @@ class Rubix implements Helper_Interface_Config {
91
  'fields' => array(
92
  'rubix_container_background_colour' => array(
93
  'id' => 'rubix_container_background_colour',
94
- 'name' => __( 'Container Background Colour', 'gravity-forms-pdf-extended' ),
95
  'type' => 'color',
96
- 'desc' => __( 'Control the colour of the field background.', 'gravity-forms-pdf-extended' ),
97
  'std' => '#EEEEEE',
98
  ),
99
  ),
91
  'fields' => array(
92
  'rubix_container_background_colour' => array(
93
  'id' => 'rubix_container_background_colour',
94
+ 'name' => esc_html__( 'Container Background Colour', 'gravity-forms-pdf-extended' ),
95
  'type' => 'color',
96
+ 'desc' => esc_html__( 'Control the colour of the field background.', 'gravity-forms-pdf-extended' ),
97
  'std' => '#EEEEEE',
98
  ),
99
  ),
src/templates/config/zadani.php CHANGED
@@ -91,9 +91,9 @@ class Zadani implements Helper_Interface_Config {
91
  'fields' => array(
92
  'zadani_border_colour' => array(
93
  'id' => 'zadani_border_colour',
94
- 'name' => __( 'Field Border Colour', 'gravity-forms-pdf-extended' ),
95
  'type' => 'color',
96
- 'desc' => __( 'Control the colour of the field border.', 'gravity-forms-pdf-extended' ),
97
  'std' => '#CCCCCC',
98
  ),
99
  ),
91
  'fields' => array(
92
  'zadani_border_colour' => array(
93
  'id' => 'zadani_border_colour',
94
+ 'name' => esc_html__( 'Field Border Colour', 'gravity-forms-pdf-extended' ),
95
  'type' => 'color',
96
+ 'desc' => esc_html__( 'Control the colour of the field border.', 'gravity-forms-pdf-extended' ),
97
  'std' => '#CCCCCC',
98
  ),
99
  ),
src/templates/focus-gravity.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php
2
 
3
- /**
4
  * Template Name: Focus Gravity
5
- * Version: 1.0
6
  * Description: Focus Gravity providing a classic layout which epitomises Gravity Forms Print Preview. It's the familiar layout you've come to love.
7
  * Author: Gravity PDF
8
  * Group: Core
@@ -15,7 +15,7 @@ if ( ! class_exists('GFForms')) {
15
  return;
16
  }
17
 
18
- /**
19
  * All Gravity PDF 4.x templates have access to the following variables:
20
  *
21
  * $form (The current Gravity Form array)
@@ -23,12 +23,12 @@ if ( ! class_exists('GFForms')) {
23
  * $form_data (The processed entry data stored in an array)
24
  * $settings (the current PDF configuration)
25
  * $fields (an array of Gravity Form fields which can be accessed with their ID number)
26
- * $config (The initialised template config class – /config/focus-gravity.php)
27
  * $gfpdf (the main Gravity PDF object containing all our helper classes)
28
  * $args (contains an array of all variables - the ones being described right now - passed to the template)
29
  */
30
 
31
- /**
32
  * Load up our template-specific appearance settings
33
  */
34
  $misc = GPDFAPI::get_misc_class();
@@ -98,7 +98,7 @@ $label_format = ( ! empty( $settings['focusgravity_label_format'] ) ) ? $setting
98
  float: none !important;
99
  }
100
 
101
- /**
102
  * Headings
103
  */
104
  h3 {
@@ -106,7 +106,7 @@ $label_format = ( ! empty( $settings['focusgravity_label_format'] ) ) ? $setting
106
  padding: 0;
107
  }
108
 
109
- /**
110
  * Quiz Style Support
111
  */
112
  .gquiz-field {
@@ -123,7 +123,7 @@ $label_format = ( ! empty( $settings['focusgravity_label_format'] ) ) ? $setting
123
  vertical-align: middle;
124
  }
125
 
126
- /**
127
  * Survey Style Support
128
  */
129
  .gsurvey-likert-choice-label {
@@ -134,7 +134,7 @@ $label_format = ( ! empty( $settings['focusgravity_label_format'] ) ) ? $setting
134
  text-align: center;
135
  }
136
 
137
- /**
138
  * Terms of Service (Gravity Perks) Support
139
  */
140
  .terms-of-service-agreement {
@@ -146,14 +146,7 @@ $label_format = ( ! empty( $settings['focusgravity_label_format'] ) ) ? $setting
146
  font-size: 150%;
147
  }
148
 
149
- /**
150
- * Table Support
151
- */
152
- th, td {
153
- font-size: 95%;
154
- }
155
-
156
- /**
157
  * List Support
158
  */
159
  ul, ol {
@@ -168,7 +161,7 @@ $label_format = ( ! empty( $settings['focusgravity_label_format'] ) ) ? $setting
168
  list-style-position: inside;
169
  }
170
 
171
- /**
172
  * Header / Footer
173
  */
174
  .alignleft {
@@ -193,7 +186,7 @@ $label_format = ( ! empty( $settings['focusgravity_label_format'] ) ) ? $setting
193
  float: none;
194
  }
195
 
196
- /**
197
  * Independant Template Styles
198
  */
199
  #container {
@@ -265,7 +258,7 @@ $label_format = ( ! empty( $settings['focusgravity_label_format'] ) ) ? $setting
265
  <!-- Output our HTML markup -->
266
  <?php
267
 
268
- /**
269
  * Load our core-specific styles from our PDF settings which will be passed to the PDF template $config array
270
  */
271
  $show_form_title = ( ! empty( $settings['show_form_title'] ) && $settings['show_form_title'] == 'Yes' ) ? true : false;
@@ -280,7 +273,7 @@ $show_empty = ( ! empty( $settings['show_empty'] ) && $settings['show_
280
  *
281
  * @var array
282
  */
283
- $config = array(
284
  'settings' => $settings,
285
  'meta' => array(
286
  'echo' => true, /* whether to output the HTML or return it */
@@ -296,11 +289,11 @@ $config = array(
296
  ),
297
  );
298
 
299
- /**
300
  * Generate our HTML markup
301
  *
302
  * You can access Gravity PDFs common functions and classes through our API wrapper class "GPDFAPI"
303
  */
304
  $pdf = GPDFAPI::get_pdf_class();
305
- $pdf->process_html_structure($entry, GPDFAPI::get_pdf_class('model'), $config);
306
 
1
  <?php
2
 
3
+ /*
4
  * Template Name: Focus Gravity
5
+ * Version: 1.1
6
  * Description: Focus Gravity providing a classic layout which epitomises Gravity Forms Print Preview. It's the familiar layout you've come to love.
7
  * Author: Gravity PDF
8
  * Group: Core
15
  return;
16
  }
17
 
18
+ /*
19
  * All Gravity PDF 4.x templates have access to the following variables:
20
  *
21
  * $form (The current Gravity Form array)
23
  * $form_data (The processed entry data stored in an array)
24
  * $settings (the current PDF configuration)
25
  * $fields (an array of Gravity Form fields which can be accessed with their ID number)
26
+ * $config (The initialised template config class – eg. /config/focus-gravity.php)
27
  * $gfpdf (the main Gravity PDF object containing all our helper classes)
28
  * $args (contains an array of all variables - the ones being described right now - passed to the template)
29
  */
30
 
31
+ /*
32
  * Load up our template-specific appearance settings
33
  */
34
  $misc = GPDFAPI::get_misc_class();
98
  float: none !important;
99
  }
100
 
101
+ /*
102
  * Headings
103
  */
104
  h3 {
106
  padding: 0;
107
  }
108
 
109
+ /*
110
  * Quiz Style Support
111
  */
112
  .gquiz-field {
123
  vertical-align: middle;
124
  }
125
 
126
+ /*
127
  * Survey Style Support
128
  */
129
  .gsurvey-likert-choice-label {
134
  text-align: center;
135
  }
136
 
137
+ /*
138
  * Terms of Service (Gravity Perks) Support
139
  */
140
  .terms-of-service-agreement {
146
  font-size: 150%;
147
  }
148
 
149
+ /*
 
 
 
 
 
 
 
150
  * List Support
151
  */
152
  ul, ol {
161
  list-style-position: inside;
162
  }
163
 
164
+ /*
165
  * Header / Footer
166
  */
167
  .alignleft {
186
  float: none;
187
  }
188
 
189
+ /*
190
  * Independant Template Styles
191
  */
192
  #container {
258
  <!-- Output our HTML markup -->
259
  <?php
260
 
261
+ /*
262
  * Load our core-specific styles from our PDF settings which will be passed to the PDF template $config array
263
  */
264
  $show_form_title = ( ! empty( $settings['show_form_title'] ) && $settings['show_form_title'] == 'Yes' ) ? true : false;
273
  *
274
  * @var array
275
  */
276
+ $html_config = array(
277
  'settings' => $settings,
278
  'meta' => array(
279
  'echo' => true, /* whether to output the HTML or return it */
289
  ),
290
  );
291
 
292
+ /*
293
  * Generate our HTML markup
294
  *
295
  * You can access Gravity PDFs common functions and classes through our API wrapper class "GPDFAPI"
296
  */
297
  $pdf = GPDFAPI::get_pdf_class();
298
+ $pdf->process_html_structure($entry, GPDFAPI::get_pdf_class('model'), $html_config);
299
 
src/templates/rubix.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php
2
 
3
- /**
4
  * Template Name: Rubix
5
- * Version: 1.0
6
  * Description: Rubix uses stylish containers to create an aesthetically pleasing design.
7
  * Author: Gravity PDF
8
  * Group: Core
@@ -15,7 +15,7 @@ if ( ! class_exists('GFForms')) {
15
  return;
16
  }
17
 
18
- /**
19
  * All Gravity PDF 4.x templates have access to the following variables:
20
  *
21
  * $form (The current Gravity Form array)
@@ -23,12 +23,12 @@ if ( ! class_exists('GFForms')) {
23
  * $form_data (The processed entry data stored in an array)
24
  * $settings (the current PDF configuration)
25
  * $fields (an array of Gravity Form fields which can be accessed with their ID number)
26
- * $config (The initialised template config class – /config/rubix.php)
27
  * $gfpdf (the main Gravity PDF object containing all our helper classes)
28
  * $args (contains an array of all variables - the ones being described right now - passed to the template)
29
  */
30
 
31
- /**
32
  * Load up our template-specific appearance settings
33
  */
34
  $container_background_color = ( ! empty( $settings['rubix_container_background_colour'] ) ) ? $settings['rubix_container_background_colour'] : '#eeeeee';
@@ -95,7 +95,7 @@ $contrast = $misc->get_background_and_border_contrast( $container_background_col
95
  float: none !important;
96
  }
97
 
98
- /**
99
  * Headings
100
  */
101
  h3 {
@@ -103,7 +103,7 @@ $contrast = $misc->get_background_and_border_contrast( $container_background_col
103
  padding: 0;
104
  }
105
 
106
- /**
107
  * Quiz Style Support
108
  */
109
  .gquiz-field {
@@ -120,7 +120,7 @@ $contrast = $misc->get_background_and_border_contrast( $container_background_col
120
  vertical-align: middle;
121
  }
122
 
123
- /**
124
  * Survey Style Support
125
  */
126
  .gsurvey-likert-choice-label {
@@ -131,7 +131,7 @@ $contrast = $misc->get_background_and_border_contrast( $container_background_col
131
  text-align: center;
132
  }
133
 
134
- /**
135
  * Terms of Service (Gravity Perks) Support
136
  */
137
  .terms-of-service-agreement {
@@ -143,14 +143,7 @@ $contrast = $misc->get_background_and_border_contrast( $container_background_col
143
  font-size: 150%;
144
  }
145
 
146
- /**
147
- * Table Support
148
- */
149
- th, td {
150
- font-size: 95%;
151
- }
152
-
153
- /**
154
  * List Support
155
  */
156
  ul, ol {
@@ -165,7 +158,7 @@ $contrast = $misc->get_background_and_border_contrast( $container_background_col
165
  list-style-position: inside;
166
  }
167
 
168
- /**
169
  * Header / Footer
170
  */
171
  .alignleft {
@@ -190,7 +183,7 @@ $contrast = $misc->get_background_and_border_contrast( $container_background_col
190
  float: none;
191
  }
192
 
193
- /**
194
  * Independant Template Styles
195
  */
196
  #form_title {
@@ -255,7 +248,7 @@ $contrast = $misc->get_background_and_border_contrast( $container_background_col
255
  <!-- Output our HTML markup -->
256
  <?php
257
 
258
- /**
259
  * Load our core-specific styles from our PDF settings which will be passed to the PDF template $config array
260
  */
261
  $show_form_title = ( ! empty( $settings['show_form_title'] ) && $settings['show_form_title'] == 'Yes' ) ? true : false;
@@ -270,7 +263,7 @@ $show_empty = ( ! empty( $settings['show_empty'] ) && $settings['show_
270
  *
271
  * @var array
272
  */
273
- $config = array(
274
  'settings' => $settings,
275
  'meta' => array(
276
  'echo' => true, /* whether to output the HTML or return it */
@@ -286,10 +279,10 @@ $config = array(
286
  ),
287
  );
288
 
289
- /**
290
  * Generate our HTML markup
291
  *
292
  * You can access Gravity PDFs common functions and classes through our API wrapper class "GPDFAPI"
293
  */
294
  $pdf = GPDFAPI::get_pdf_class();
295
- $pdf->process_html_structure($entry, GPDFAPI::get_pdf_class('model'), $config);
1
  <?php
2
 
3
+ /*
4
  * Template Name: Rubix
5
+ * Version: 1.1
6
  * Description: Rubix uses stylish containers to create an aesthetically pleasing design.
7
  * Author: Gravity PDF
8
  * Group: Core
15
  return;
16
  }
17
 
18
+ /*
19
  * All Gravity PDF 4.x templates have access to the following variables:
20
  *
21
  * $form (The current Gravity Form array)
23
  * $form_data (The processed entry data stored in an array)
24
  * $settings (the current PDF configuration)
25
  * $fields (an array of Gravity Form fields which can be accessed with their ID number)
26
+ * $config (The initialised template config class – eg. /config/rubix.php)
27
  * $gfpdf (the main Gravity PDF object containing all our helper classes)
28
  * $args (contains an array of all variables - the ones being described right now - passed to the template)
29
  */
30
 
31
+ /*
32
  * Load up our template-specific appearance settings
33
  */
34
  $container_background_color = ( ! empty( $settings['rubix_container_background_colour'] ) ) ? $settings['rubix_container_background_colour'] : '#eeeeee';
95
  float: none !important;
96
  }
97
 
98
+ /*
99
  * Headings
100
  */
101
  h3 {
103
  padding: 0;
104
  }
105
 
106
+ /*
107
  * Quiz Style Support
108
  */
109
  .gquiz-field {
120
  vertical-align: middle;
121
  }
122
 
123
+ /*
124
  * Survey Style Support
125
  */
126
  .gsurvey-likert-choice-label {
131
  text-align: center;
132
  }
133
 
134
+ /*
135
  * Terms of Service (Gravity Perks) Support
136
  */
137
  .terms-of-service-agreement {
143
  font-size: 150%;
144
  }
145
 
146
+ /*
 
 
 
 
 
 
 
147
  * List Support
148
  */
149
  ul, ol {
158
  list-style-position: inside;
159
  }
160
 
161
+ /*
162
  * Header / Footer
163
  */
164
  .alignleft {
183
  float: none;
184
  }
185
 
186
+ /*
187
  * Independant Template Styles
188
  */
189
  #form_title {
248
  <!-- Output our HTML markup -->
249
  <?php
250
 
251
+ /*
252
  * Load our core-specific styles from our PDF settings which will be passed to the PDF template $config array
253
  */
254
  $show_form_title = ( ! empty( $settings['show_form_title'] ) && $settings['show_form_title'] == 'Yes' ) ? true : false;
263
  *
264
  * @var array
265
  */
266
+ $html_config = array(
267
  'settings' => $settings,
268
  'meta' => array(
269
  'echo' => true, /* whether to output the HTML or return it */
279
  ),
280
  );
281
 
282
+ /*
283
  * Generate our HTML markup
284
  *
285
  * You can access Gravity PDFs common functions and classes through our API wrapper class "GPDFAPI"
286
  */
287
  $pdf = GPDFAPI::get_pdf_class();
288
+ $pdf->process_html_structure($entry, GPDFAPI::get_pdf_class('model'), $html_config);
src/templates/zadani.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php
2
 
3
- /**
4
  * Template Name: Zadani
5
- * Version: 1.0
6
  * Description: A minimalist business-style template that will generate a well-spaced document great for printing.
7
  * Author: Gravity PDF
8
  * Group: Core
@@ -15,7 +15,7 @@ if ( ! class_exists( 'GFForms' ) ) {
15
  return;
16
  }
17
 
18
- /**
19
  * All Gravity PDF 4.x templates have access to the following variables:
20
  *
21
  * $form (The current Gravity Form array)
@@ -23,12 +23,12 @@ if ( ! class_exists( 'GFForms' ) ) {
23
  * $form_data (The processed entry data stored in an array)
24
  * $settings (the current PDF configuration)
25
  * $fields (an array of Gravity Form fields which can be accessed with their ID number)
26
- * $config (The initialised template config class – /config/zadani.php)
27
  * $gfpdf (the main Gravity PDF object containing all our helper classes)
28
  * $args (contains an array of all variables - the ones being described right now - passed to the template)
29
  */
30
 
31
- /**
32
  * Load up our template-specific appearance settings
33
  */
34
  $value_border_colour = ( ! empty( $settings['zadani_border_colour'] ) ) ? $settings['zadani_border_colour'] : '#CCCCCC';
@@ -92,7 +92,7 @@ $value_border_colour = ( ! empty( $settings['zadani_border_colour'] ) ) ? $setti
92
  float: none !important;
93
  }
94
 
95
- /**
96
  * Headings
97
  */
98
  h3 {
@@ -100,7 +100,7 @@ $value_border_colour = ( ! empty( $settings['zadani_border_colour'] ) ) ? $setti
100
  padding: 0;
101
  }
102
 
103
- /**
104
  * Quiz Style Support
105
  */
106
  .gquiz-field {
@@ -117,7 +117,7 @@ $value_border_colour = ( ! empty( $settings['zadani_border_colour'] ) ) ? $setti
117
  vertical-align: middle;
118
  }
119
 
120
- /**
121
  * Survey Style Support
122
  */
123
  .gsurvey-likert-choice-label {
@@ -128,7 +128,7 @@ $value_border_colour = ( ! empty( $settings['zadani_border_colour'] ) ) ? $setti
128
  text-align: center;
129
  }
130
 
131
- /**
132
  * Terms of Service (Gravity Perks) Support
133
  */
134
  .terms-of-service-agreement {
@@ -140,14 +140,7 @@ $value_border_colour = ( ! empty( $settings['zadani_border_colour'] ) ) ? $setti
140
  font-size: 150%;
141
  }
142
 
143
- /**
144
- * Table Support
145
- */
146
- th, td {
147
- font-size: 9pt;
148
- }
149
-
150
- /**
151
  * List Support
152
  */
153
  ul, ol {
@@ -162,7 +155,7 @@ $value_border_colour = ( ! empty( $settings['zadani_border_colour'] ) ) ? $setti
162
  list-style-position: inside;
163
  }
164
 
165
- /**
166
  * Header / Footer
167
  */
168
  .alignleft {
@@ -187,12 +180,12 @@ $value_border_colour = ( ! empty( $settings['zadani_border_colour'] ) ) ? $setti
187
  float: none;
188
  }
189
 
190
- /**
191
  * Independant Template Styles
192
  */
193
  .gfpdf-field .label {
194
  text-transform: uppercase;
195
- font-size: 8pt;
196
  }
197
 
198
  .gfpdf-field .value {
@@ -213,7 +206,7 @@ $value_border_colour = ( ! empty( $settings['zadani_border_colour'] ) ) ? $setti
213
  <!-- Output our HTML markup -->
214
  <?php
215
 
216
- /**
217
  * Load our core-specific styles from our PDF settings which will be passed to the PDF template $config array
218
  */
219
  $show_form_title = ( ! empty( $settings['show_form_title'] ) && $settings['show_form_title'] == 'Yes' ) ? true : false;
@@ -228,7 +221,7 @@ $show_empty = ( ! empty( $settings['show_empty'] ) && $settings['show_
228
  *
229
  * @var array
230
  */
231
- $config = array(
232
  'settings' => $settings,
233
  'meta' => array(
234
  'echo' => true, /* whether to output the HTML or return it */
@@ -244,10 +237,10 @@ $config = array(
244
  ),
245
  );
246
 
247
- /**
248
  * Generate our HTML markup
249
  *
250
  * You can access Gravity PDFs common functions and classes through our API wrapper class "GPDFAPI"
251
  */
252
  $pdf = GPDFAPI::get_pdf_class();
253
- $pdf->process_html_structure( $entry, GPDFAPI::get_pdf_class( 'model' ), $config );
1
  <?php
2
 
3
+ /*
4
  * Template Name: Zadani
5
+ * Version: 1.1
6
  * Description: A minimalist business-style template that will generate a well-spaced document great for printing.
7
  * Author: Gravity PDF
8
  * Group: Core
15
  return;
16
  }
17
 
18
+ /*
19
  * All Gravity PDF 4.x templates have access to the following variables:
20
  *
21
  * $form (The current Gravity Form array)
23
  * $form_data (The processed entry data stored in an array)
24
  * $settings (the current PDF configuration)
25
  * $fields (an array of Gravity Form fields which can be accessed with their ID number)
26
+ * $config (The initialised template config class – eg. /config/zadani.php)
27
  * $gfpdf (the main Gravity PDF object containing all our helper classes)
28
  * $args (contains an array of all variables - the ones being described right now - passed to the template)
29
  */
30
 
31
+ /*
32
  * Load up our template-specific appearance settings
33
  */
34
  $value_border_colour = ( ! empty( $settings['zadani_border_colour'] ) ) ? $settings['zadani_border_colour'] : '#CCCCCC';
92
  float: none !important;
93
  }
94
 
95
+ /*
96
  * Headings
97
  */
98
  h3 {
100
  padding: 0;
101
  }
102
 
103
+ /*
104
  * Quiz Style Support
105
  */
106
  .gquiz-field {
117
  vertical-align: middle;
118
  }
119
 
120
+ /*
121
  * Survey Style Support
122
  */
123
  .gsurvey-likert-choice-label {
128
  text-align: center;
129
  }
130
 
131
+ /*
132
  * Terms of Service (Gravity Perks) Support
133
  */
134
  .terms-of-service-agreement {
140
  font-size: 150%;
141
  }
142
 
143
+ /*
 
 
 
 
 
 
 
144
  * List Support
145
  */
146
  ul, ol {
155
  list-style-position: inside;
156
  }
157
 
158
+ /*
159
  * Header / Footer
160
  */
161
  .alignleft {
180
  float: none;
181
  }
182
 
183
+ /*
184
  * Independant Template Styles
185
  */
186
  .gfpdf-field .label {
187
  text-transform: uppercase;
188
+ font-size: 90%;
189
  }
190
 
191
  .gfpdf-field .value {
206
  <!-- Output our HTML markup -->
207
  <?php
208
 
209
+ /*
210
  * Load our core-specific styles from our PDF settings which will be passed to the PDF template $config array
211
  */
212
  $show_form_title = ( ! empty( $settings['show_form_title'] ) && $settings['show_form_title'] == 'Yes' ) ? true : false;
221
  *
222
  * @var array
223
  */
224
+ $html_config = array(
225
  'settings' => $settings,
226
  'meta' => array(
227
  'echo' => true, /* whether to output the HTML or return it */
237
  ),
238
  );
239
 
240
+ /*
241
  * Generate our HTML markup
242
  *
243
  * You can access Gravity PDFs common functions and classes through our API wrapper class "GPDFAPI"
244
  */
245
  $pdf = GPDFAPI::get_pdf_class();
246
+ $pdf->process_html_structure( $entry, GPDFAPI::get_pdf_class( 'model' ), $html_config );
src/view/View_PDF.php CHANGED
@@ -235,7 +235,7 @@ class View_PDF extends Helper_Abstract_View {
235
  wp_die( $e->getMessage() );
236
  }
237
 
238
- wp_die( __( 'There was a problem generating your PDF', 'gravity-forms-pdf-extended' ) );
239
  }
240
  }
241
 
235
  wp_die( $e->getMessage() );
236
  }
237
 
238
+ wp_die( esc_html__( 'There was a problem generating your PDF', 'gravity-forms-pdf-extended' ) );
239
  }
240
  }
241
 
src/view/View_Settings.php CHANGED
@@ -172,17 +172,17 @@ class View_Settings extends Helper_Abstract_View {
172
  */
173
  $navigation = array(
174
  5 => array(
175
- 'name' => __( 'General', 'gravity-forms-pdf-extended' ),
176
  'id' => 'general',
177
  ),
178
 
179
  100 => array(
180
- 'name' => __( 'Tools', 'gravity-forms-pdf-extended' ),
181
  'id' => 'tools',
182
  ),
183
 
184
  120 => array(
185
- 'name' => __( 'Help', 'gravity-forms-pdf-extended' ),
186
  'id' => 'help',
187
  ),
188
  );
@@ -252,7 +252,7 @@ class View_Settings extends Helper_Abstract_View {
252
  if ( ! $this->gform->has_capability( 'gravityforms_edit_settings' ) ) {
253
  $this->log->addWarning( 'Lack of User Capabilities.' );
254
 
255
- wp_die( __( 'You do not have permission to access this page', 'gravity-forms-pdf-extended' ) );
256
  }
257
 
258
  $template_directory = $this->misc->get_template_path();
@@ -278,8 +278,8 @@ class View_Settings extends Helper_Abstract_View {
278
  */
279
  public function add_tooltips( $tooltips ) {
280
 
281
- $tooltips['pdf_status_wp_memory'] = '<h6>' . __( 'WP Memory Available', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( __( 'Producing PDF documents is hard work and Gravity PDF requires more resources than most plugins. We strongly recommend you have at least 128MB, but you may need more.', 'gravity-forms-pdf-extended' ) );
282
- $tooltips['pdf_protection'] = '<h6>' . __( 'Direct PDF Protection', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( __( 'Apache and Litespeed servers automatically disable public access to the Gravity PDF temporary directory using a %s.htaccess%s file, but other web servers like Nginx do not support this feature. We will check if your PDFs are automatically protected, and let you know what you can do to protect your data if they are not.', 'gravity-forms-pdf-extended' ), '<code>', '</code>', '<code>', '</code>' );
283
 
284
  return apply_filters( 'gravitypdf_registered_tooltips', $tooltips );
285
  }
172
  */
173
  $navigation = array(
174
  5 => array(
175
+ 'name' => esc_html__( 'General', 'gravity-forms-pdf-extended' ),
176
  'id' => 'general',
177
  ),
178
 
179
  100 => array(
180
+ 'name' => esc_html__( 'Tools', 'gravity-forms-pdf-extended' ),
181
  'id' => 'tools',
182
  ),
183
 
184
  120 => array(
185
+ 'name' => esc_html__( 'Help', 'gravity-forms-pdf-extended' ),
186
  'id' => 'help',
187
  ),
188
  );
252
  if ( ! $this->gform->has_capability( 'gravityforms_edit_settings' ) ) {
253
  $this->log->addWarning( 'Lack of User Capabilities.' );
254
 
255
+ wp_die( esc_html__( 'You do not have permission to access this page', 'gravity-forms-pdf-extended' ) );
256
  }
257
 
258
  $template_directory = $this->misc->get_template_path();
278
  */
279
  public function add_tooltips( $tooltips ) {
280
 
281
+ $tooltips['pdf_status_wp_memory'] = '<h6>' . esc_html__( 'WP Memory Available', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( esc_html__( 'Producing PDF documents is hard work and Gravity PDF requires more resources than most plugins. We strongly recommend you have at least 128MB, but you may need more.', 'gravity-forms-pdf-extended' ) );
282
+ $tooltips['pdf_protection'] = '<h6>' . esc_html__( 'Direct PDF Protection', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( esc_html__( 'Apache and Litespeed servers automatically disable public access to the Gravity PDF temporary directory using a %s.htaccess%s file, but other web servers like Nginx do not support this feature. We will check if your PDFs are automatically protected, and let you know what you can do to protect your data if they are not.', 'gravity-forms-pdf-extended' ), '<code>', '</code>', '<code>', '</code>' );
283
 
284
  return apply_filters( 'gravitypdf_registered_tooltips', $tooltips );
285
  }
src/view/html/Actions/action_buttons.php CHANGED
@@ -44,7 +44,7 @@ if ( ! defined( 'ABSPATH' ) ) {
44
  <button class="button button-primary"><?php echo $args['button_text'] ?></button>
45
 
46
  <?php if ( $args['dismissal'] == 'enabled' ): ?>
47
- <input class="button" type="submit" value="<?php _e( 'Dismiss Notice', 'gravity-forms-pdf-extended' ); ?>" name="gfpdf-dismiss-notice"/>
48
  <?php endif; ?>
49
  </p>
50
 
44
  <button class="button button-primary"><?php echo $args['button_text'] ?></button>
45
 
46
  <?php if ( $args['dismissal'] == 'enabled' ): ?>
47
+ <input class="button" type="submit" value="<?php esc_attr_e( 'Dismiss Notice', 'gravity-forms-pdf-extended' ); ?>" name="gfpdf-dismiss-notice"/>
48
  <?php endif; ?>
49
  </p>
50
 
src/view/html/Actions/begin_multisite_migration.php CHANGED
@@ -42,16 +42,16 @@ if ( ! defined( 'ABSPATH' ) ) {
42
 
43
  <div class="wrap">
44
 
45
- <h1><?php _e( 'Gravity PDF Multisite Migration', 'gravity-forms-pdf-extended' ); ?></h1>
46
 
47
- <p><?php _e( 'Beginning Migration...', 'gravity-forms-pdf-extended' ); ?></p>
48
 
49
  <div id="gfpdf-multisite-migration-copy" data-nonce="<?php echo wp_create_nonce( 'gfpdf_multisite_migration' ); ?>">
50
  <!-- Container for our AJAX endpoint -->
51
  </div>
52
 
53
  <div id="gfpdf-multisite-migration-complete" style="display: none">
54
- <p><?php _e( 'Migration Complete.', 'gravity-forms-pdf-extended' ); ?></p>
55
 
56
  <p><a href="<?php echo $args['current_page_url']; ?>">Return to current page</a> | <a href="<?php echo $args['gf_forms_url']; ?>">View Gravity Forms</a></p>
57
  </div>
42
 
43
  <div class="wrap">
44
 
45
+ <h1><?php esc_html_e( 'Gravity PDF Multisite Migration', 'gravity-forms-pdf-extended' ); ?></h1>
46
 
47
+ <p><?php esc_html_e( 'Beginning Migration...', 'gravity-forms-pdf-extended' ); ?></p>
48
 
49
  <div id="gfpdf-multisite-migration-copy" data-nonce="<?php echo wp_create_nonce( 'gfpdf_multisite_migration' ); ?>">
50
  <!-- Container for our AJAX endpoint -->
51
  </div>
52
 
53
  <div id="gfpdf-multisite-migration-complete" style="display: none">
54
+ <p><?php esc_html_e( 'Migration Complete.', 'gravity-forms-pdf-extended' ); ?></p>
55
 
56
  <p><a href="<?php echo $args['current_page_url']; ?>">Return to current page</a> | <a href="<?php echo $args['gf_forms_url']; ?>">View Gravity Forms</a></p>
57
  </div>
src/view/html/Actions/migration.php CHANGED
@@ -38,10 +38,10 @@ if ( ! defined( 'ABSPATH' ) ) {
38
 
39
  <div style="font-size:15px; line-height: 25px">
40
 
41
- <strong><?php _e( "Gravity PDF needs to migrate your configuration.", 'gravity-forms-pdf-extended' ); ?></strong>
42
 
43
  <br>
44
 
45
- <?php _e( 'The migration process will import your old configuration file into the database.', 'gravity-forms-pdf-extended' ); ?>
46
 
47
  </div>
38
 
39
  <div style="font-size:15px; line-height: 25px">
40
 
41
+ <strong><?php esc_html_e( "Gravity PDF needs to migrate your configuration.", 'gravity-forms-pdf-extended' ); ?></strong>
42
 
43
  <br>
44
 
45
+ <?php esc_html_e( 'The migration process will import your old configuration file into the database.', 'gravity-forms-pdf-extended' ); ?>
46
 
47
  </div>
src/view/html/Actions/review_plugin.php CHANGED
@@ -38,13 +38,13 @@ if ( ! defined( 'ABSPATH' ) ) {
38
 
39
  <div style="font-size:15px; line-height: 25px">
40
 
41
- <strong><?php _e( "Hey, we just noticed you've generated your 100th PDF using Gravity PDF!", 'gravity-forms-pdf-extended' ); ?></strong>
42
 
43
  <br>
44
 
45
- <?php printf( __( "If you love how much time you've saved using Gravity PDF then do us a big favour and %sgive it a five-star rating on WordPress.org%s.", 'gravity-forms-pdf-extended' ), '<a href="https://wordpress.org/support/view/plugin-reviews/gravity-forms-pdf-extended">', '</a>' ); ?>
46
 
47
  <br>
48
 
49
- <?php printf( __( '%sOr let your Twitter follows know how good it is%s (or anyone else for that matter).', 'gravity-forms-pdf-extended' ), '<a href="https://goo.gl/07NhJQ">', '</a>' ); ?>
50
  </div>
38
 
39
  <div style="font-size:15px; line-height: 25px">
40
 
41
+ <strong><?php esc_html_e( "Hey, we just noticed you've generated your 100th PDF using Gravity PDF!", 'gravity-forms-pdf-extended' ); ?></strong>
42
 
43
  <br>
44
 
45
+ <?php printf( esc_html__( "If you love how much time you've saved using Gravity PDF then do us a big favour and %sgive it a five-star rating on WordPress.org%s.", 'gravity-forms-pdf-extended' ), '<a href="https://wordpress.org/support/view/plugin-reviews/gravity-forms-pdf-extended">', '</a>' ); ?>
46
 
47
  <br>
48
 
49
+ <?php printf( esc_html__( '%sOr let your Twitter follows know how good it is%s (or anyone else for that matter).', 'gravity-forms-pdf-extended' ), '<a href="https://goo.gl/07NhJQ">', '</a>' ); ?>
50
  </div>
src/view/html/FormSettings/list.php CHANGED
@@ -45,7 +45,7 @@ $list_items = $args['list_items'];
45
  <span>
46
  <i class="fa fa-file-o"></i>
47
  <?php echo $args['title']; ?>
48
- <a id="add-new-pdf" class="add-new-h2" href="<?php echo $args['add_new_url'] ?>"><?php _e( 'Add New', 'gravityforms' ) ?></a>
49
  </span>
50
  </h3>
51
 
@@ -53,8 +53,8 @@ $list_items = $args['list_items'];
53
  <?php $list_items->display(); ?>
54
  </form>
55
 
56
- <div id="delete-confirm" title="<?php _e( 'Delete PDF?', 'gravity-forms-pdf-extended' ); ?>" style="display: none;">
57
- <?php printf( __( "Warning! You are about to delete this PDF. Select 'Delete' to delete, 'Cancel' to stop.", 'gravity-forms-pdf-extended' ), '<strong>', '</strong>' ); ?>
58
  </div>
59
 
60
 
45
  <span>
46
  <i class="fa fa-file-o"></i>
47
  <?php echo $args['title']; ?>
48
+ <a id="add-new-pdf" class="add-new-h2" href="<?php echo esc_url($args['add_new_url']); ?>"><?php esc_html_e( 'Add New', 'gravityforms' ) ?></a>
49
  </span>
50
  </h3>
51
 
53
  <?php $list_items->display(); ?>
54
  </form>
55
 
56
+ <div id="delete-confirm" title="<?php esc_attr_e( 'Delete PDF?', 'gravity-forms-pdf-extended' ); ?>" style="display: none;">
57
+ <?php esc_html_e( "Warning! You are about to delete this PDF. Select 'Delete' to delete, 'Cancel' to stop.", 'gravity-forms-pdf-extended' ); ?>
58
  </div>
59
 
60
 
src/view/html/PDF/core_template_styles.php CHANGED
@@ -94,7 +94,7 @@ $include_product_styles = apply_filters( 'gfpdf_include_product_styles', tru
94
  <?php endif; ?>
95
  }
96
 
97
- body, table th, table td, ul li, ol li, a {
98
  color: <?php echo $font_colour; ?>;
99
  font-size: <?php echo $font_size; ?>pt;
100
  font-family: <?php echo $font; ?>, sans-serif;
@@ -170,7 +170,6 @@ $include_product_styles = apply_filters( 'gfpdf_include_product_styles', tru
170
  }
171
 
172
  table.entry-products td.totals {
173
- font-size: 13px;
174
  font-weight: bold;
175
  padding-bottom: 8px;
176
  padding-top: 7px;
94
  <?php endif; ?>
95
  }
96
 
97
+ body, th, td, li, a {
98
  color: <?php echo $font_colour; ?>;
99
  font-size: <?php echo $font_size; ?>pt;
100
  font-family: <?php echo $font; ?>, sans-serif;
170
  }
171
 
172
  table.entry-products td.totals {
 
173
  font-weight: bold;
174
  padding-bottom: 8px;
175
  padding-top: 7px;
src/view/html/PDF/entry_detailed_pdf.php CHANGED
@@ -36,14 +36,14 @@ if ( ! defined( 'ABSPATH' ) ) {
36
 
37
  ?>
38
 
39
- <strong><?php _e( 'PDFs', 'gravity-forms-pdf-extended' ); ?></strong><br/>
40
 
41
  <?php foreach ( $args['pdfs'] as $pdf ): ?>
42
  <div class="gfpdf_detailed_pdf_container">
43
  <span><?php echo $pdf['name']; ?></span>
44
  <div>
45
- <a href="<?php echo $pdf['view']; ?>" target="_blank" class="button"><?php _e( 'View', 'gravity-forms-pdf-extended' ); ?></a>
46
- <a href="<?php echo $pdf['download']; ?>" class="button"><?php _e( 'Download', 'gravity-forms-pdf-extended' ); ?></a>
47
  </div>
48
  </div>
49
  <?php endforeach; ?>
36
 
37
  ?>
38
 
39
+ <strong><?php esc_html_e( 'PDFs', 'gravity-forms-pdf-extended' ); ?></strong><br/>
40
 
41
  <?php foreach ( $args['pdfs'] as $pdf ): ?>
42
  <div class="gfpdf_detailed_pdf_container">
43
  <span><?php echo $pdf['name']; ?></span>
44
  <div>
45
+ <a href="<?php echo $pdf['view']; ?>" target="_blank" class="button"><?php esc_html_e( 'View', 'gravity-forms-pdf-extended' ); ?></a>
46
+ <a href="<?php echo $pdf['download']; ?>" class="button"><?php esc_html_e( 'Download', 'gravity-forms-pdf-extended' ); ?></a>
47
  </div>
48
  </div>
49
  <?php endforeach; ?>
src/view/html/PDF/entry_list_pdf_multiple.php CHANGED
@@ -37,7 +37,7 @@ if ( ! defined( 'ABSPATH' ) ) {
37
  ?>
38
 
39
  <span class="gf_form_toolbar_settings gf_form_action_has_submenu gfpdf_form_action_has_submenu">
40
- | <a href="#" title="View PDFs" onclick="return false" class=""><?php echo ( $args['view'] == 'download' ) ? __( 'Download PDFs', 'gravity-forms-pdf-extended' ) : __( 'View PDFs', 'gravity-forms-pdf-extended' ); ?></a>
41
 
42
  <div class="gf_submenu gfpdf_submenu">
43
  <ul>
37
  ?>
38
 
39
  <span class="gf_form_toolbar_settings gf_form_action_has_submenu gfpdf_form_action_has_submenu">
40
+ | <a href="#" title="View PDFs" onclick="return false" class=""><?php echo ( $args['view'] == 'download' ) ? esc_html__( 'Download PDFs', 'gravity-forms-pdf-extended' ) : esc_html__( 'View PDFs', 'gravity-forms-pdf-extended' ); ?></a>
41
 
42
  <div class="gf_submenu gfpdf_submenu">
43
  <ul>
src/view/html/PDF/entry_list_pdf_single.php CHANGED
@@ -37,5 +37,5 @@ if ( ! defined( 'ABSPATH' ) ) {
37
  ?>
38
 
39
  | <a href="<?php echo ( $args['view'] == 'download' ) ? $args['pdf']['download'] : $args['pdf']['view']; ?>" <?php echo ( $args['view'] != 'download' ) ? 'target="_blank"' : '' ?>>
40
- <?php echo ( $args['view'] == 'download' ) ? __( 'Download PDF', 'gravity-forms-pdf-extended' ) : __( 'View PDF', 'gravity-forms-pdf-extended' ); ?>
41
  </a>
37
  ?>
38
 
39
  | <a href="<?php echo ( $args['view'] == 'download' ) ? $args['pdf']['download'] : $args['pdf']['view']; ?>" <?php echo ( $args['view'] != 'download' ) ? 'target="_blank"' : '' ?>>
40
+ <?php echo ( $args['view'] == 'download' ) ? esc_html__( 'Download PDF', 'gravity-forms-pdf-extended' ) : esc_html__( 'View PDF', 'gravity-forms-pdf-extended' ); ?>
41
  </a>
src/view/html/Settings/general.php CHANGED
@@ -43,7 +43,7 @@ if ( ! defined( 'ABSPATH' ) ) {
43
  <h3>
44
  <span>
45
  <i class="fa fa-cog"></i>
46
- <?php _e( 'General Settings', 'gravity-forms-pdf-extended' ); ?>
47
  </span>
48
  </h3>
49
 
@@ -58,7 +58,7 @@ if ( ! defined( 'ABSPATH' ) ) {
58
  <h3>
59
  <span>
60
  <i class="fa fa-lock"></i>
61
- <?php _e( 'Security Settings', 'gravity-forms-pdf-extended' ); ?>
62
  </span>
63
  </h3>
64
 
@@ -67,7 +67,7 @@ if ( ! defined( 'ABSPATH' ) ) {
67
  </table>
68
  </div>
69
 
70
- <div class="gfpdf-advanced-options"><a href="#"><?php _e( 'Show Advanced Options...', 'gravity-forms-pdf-extended' ); ?></a></div>
71
 
72
  <?php
73
  if ( $args['edit_cap'] ) {
43
  <h3>
44
  <span>
45
  <i class="fa fa-cog"></i>
46
+ <?php esc_html_e( 'General Settings', 'gravity-forms-pdf-extended' ); ?>
47
  </span>
48
  </h3>
49
 
58
  <h3>
59
  <span>
60
  <i class="fa fa-lock"></i>
61
+ <?php esc_html_e( 'Security Settings', 'gravity-forms-pdf-extended' ); ?>
62
  </span>
63
  </h3>
64
 
67
  </table>
68
  </div>
69
 
70
+ <div class="gfpdf-advanced-options"><a href="#"><?php esc_html_e( 'Show Advanced Options...', 'gravity-forms-pdf-extended' ); ?></a></div>
71
 
72
  <?php
73
  if ( $args['edit_cap'] ) {
src/view/html/Settings/help.php CHANGED
@@ -41,11 +41,11 @@ if ( ! defined( 'ABSPATH' ) ) {
41
 
42
  <div id="pdfextended-settings">
43
  <div class="wrap about-wrap">
44
- <h1><?php _e( 'Getting Help With Gravity PDF', 'gravity-forms-pdf-extended' ); ?></h1>
45
 
46
  <div class="about-text">
47
- <?php _e( 'This is your portal to find quality help, support and documentation for Gravity PDF', 'gravity-forms-pdf-extended' ); ?>
48
- <div class="about-text-disclaimer"><?php printf( __( '(This is not the place to get Gravity Forms support. %sPlease use their official support channel%s for assistance)', 'gravity-forms-pdf-extended' ), '<a href="https://www.gravityhelp.com/support/">', '</a>' ); ?></div>
49
  </div>
50
 
51
  <div id="search-knowledgebase">
@@ -54,7 +54,7 @@ if ( ! defined( 'ABSPATH' ) ) {
54
 
55
  <div id="documentation-api" class="postbox">
56
  <h3 class="hndle">
57
- <span><?php _e( 'Gravity PDF Documentation', 'gravity-forms-pdf-extended' ); ?></span>
58
  <span class="spinner"></span>
59
  </h3>
60
 
@@ -69,44 +69,44 @@ if ( ! defined( 'ABSPATH' ) ) {
69
 
70
  <div class="hr-divider"></div>
71
 
72
- <h2><?php printf( __( 'Find the %sanswers%s you need…', 'gravity-forms-pdf-extended' ), '<strong>', '</strong>' ); ?></h2>
73
 
74
  <div id="dashboard-widgets" class="columns-2">
75
  <div class="postbox-container">
76
  <a href="https://gravitypdf.com/documentation/v4/five-minute-install/">
77
- <span><?php _e( 'Getting Started', 'gravity-forms-pdf-extended' ); ?></span><br>
78
- <?php _e( 'Take a look at our quick-start guide and get Gravity PDF up and running in 5 minutes flat!', 'gravity-forms-pdf-extended' ); ?>
79
  </a>
80
  </div>
81
 
82
  <div class="postbox-container">
83
  <a href="https://gravitypdf.com/documentation/v4/user-installation/">
84
- <span><?php _e( 'Comprehensive Documentation', 'gravity-forms-pdf-extended' ); ?></span><br>
85
- <?php _e( 'We’ve got in-depth articles to help you learn the ins and outs of Gravity PDF. From the basic setup to PDF security.', 'gravity-forms-pdf-extended' ); ?>
86
  </a>
87
  </div>
88
 
89
  <div class="postbox-container">
90
  <a href="https://gravitypdf.com/documentation/v4/user-activation-errors/">
91
- <span><?php _e( 'Common Problems', 'gravity-forms-pdf-extended' ); ?></span><br>
92
- <?php _e( 'Find out the most common issues user’s experience and ways to resolve them.', 'gravity-forms-pdf-extended' ); ?>
93
  </a>
94
  </div>
95
 
96
  <div class="postbox-container">
97
  <a href="https://gravitypdf.com/documentation/v4/developer-start-customising/">
98
- <span><?php _e( 'Developer Documentation', 'gravity-forms-pdf-extended' ); ?></span><br>
99
- <?php _e( 'You’ll find all the info and examples you’ll need to create your own custom PDF templates.', 'gravity-forms-pdf-extended' ); ?>
100
  </a>
101
  </div>
102
  </div>
103
 
104
  <div class="center">
105
- <a href="https://gravitypdf.com/documentation/v4/" class="button button-primary button-large"><?php _e( 'View All Documentation', 'gravity-forms-pdf-extended' ); ?></a>
106
- <a href="https://gravitypdf.com/support/#contact-support" class="button button-primary button-large"><?php _e( 'Contact Support', 'gravity-forms-pdf-extended' ); ?></a>
107
 
108
  <p>
109
- <?php printf( __( 'Our support hours are 9:00am-5:00pm Monday to Friday, %sSydney Australia time%s (public holidays excluded).', 'gravity-forms-pdf-extended' ), '<br><a href="http://www.timeanddate.com/worldclock/australia/sydney">', '</a>' ); ?>
110
  </p>
111
  </div>
112
 
@@ -120,9 +120,9 @@ if ( ! defined( 'ABSPATH' ) ) {
120
 
121
  <script type="text/template" id="GravityPDFSearchResultsDocumentation">
122
  {{ if(collection.length === 0) { }}
123
- <li><?php _e( "It doesn't look like there are any topics related to your issue.", 'gravity-forms-pdf-extended' ); ?></li>
124
  {{ } else { }}
125
- <li><h3><?php _e( 'Maybe one of these articles will help...', 'gravity-forms-pdf-extended' ); ?></h3></li>
126
  {{ } }}
127
 
128
  {{ _.each(collection, function (model) { }}
41
 
42
  <div id="pdfextended-settings">
43
  <div class="wrap about-wrap">
44
+ <h1><?php esc_html_e( 'Getting Help With Gravity PDF', 'gravity-forms-pdf-extended' ); ?></h1>
45
 
46
  <div class="about-text">
47
+ <?php esc_html_e( 'This is your portal to find quality help, support and documentation for Gravity PDF', 'gravity-forms-pdf-extended' ); ?>
48
+ <div class="about-text-disclaimer"><?php printf( esc_html__( '(This is not the place to get Gravity Forms support. %sPlease use their official support channel%s for assistance)', 'gravity-forms-pdf-extended' ), '<a href="https://www.gravityhelp.com/support/">', '</a>' ); ?></div>
49
  </div>
50
 
51
  <div id="search-knowledgebase">
54
 
55
  <div id="documentation-api" class="postbox">
56
  <h3 class="hndle">
57
+ <span><?php esc_html_e( 'Gravity PDF Documentation', 'gravity-forms-pdf-extended' ); ?></span>
58
  <span class="spinner"></span>
59
  </h3>
60
 
69
 
70
  <div class="hr-divider"></div>
71
 
72
+ <h2><?php printf( esc_html__( 'Find the %sanswers%s you need…', 'gravity-forms-pdf-extended' ), '<strong>', '</strong>' ); ?></h2>
73
 
74
  <div id="dashboard-widgets" class="columns-2">
75
  <div class="postbox-container">
76
  <a href="https://gravitypdf.com/documentation/v4/five-minute-install/">
77
+ <span><?php esc_html_e( 'Getting Started', 'gravity-forms-pdf-extended' ); ?></span><br>
78
+ <?php esc_html_e( 'Take a look at our quick-start guide and get Gravity PDF up and running in 5 minutes flat!', 'gravity-forms-pdf-extended' ); ?>
79
  </a>
80
  </div>
81
 
82
  <div class="postbox-container">
83
  <a href="https://gravitypdf.com/documentation/v4/user-installation/">
84
+ <span><?php esc_html_e( 'Comprehensive Documentation', 'gravity-forms-pdf-extended' ); ?></span><br>
85
+ <?php esc_html_e( 'We’ve got in-depth articles to help you learn the ins and outs of Gravity PDF. From the basic setup to PDF security.', 'gravity-forms-pdf-extended' ); ?>
86
  </a>
87
  </div>
88
 
89
  <div class="postbox-container">
90
  <a href="https://gravitypdf.com/documentation/v4/user-activation-errors/">
91
+ <span><?php esc_html_e( 'Common Problems', 'gravity-forms-pdf-extended' ); ?></span><br>
92
+ <?php esc_html_e( 'Find out the most common issues user’s experience and ways to resolve them.', 'gravity-forms-pdf-extended' ); ?>
93
  </a>
94
  </div>
95
 
96
  <div class="postbox-container">
97
  <a href="https://gravitypdf.com/documentation/v4/developer-start-customising/">
98
+ <span><?php esc_html_e( 'Developer Documentation', 'gravity-forms-pdf-extended' ); ?></span><br>
99
+ <?php esc_html_e( 'You’ll find all the info and examples you’ll need to create your own custom PDF templates.', 'gravity-forms-pdf-extended' ); ?>
100
  </a>
101
  </div>
102
  </div>
103
 
104
  <div class="center">
105
+ <a href="https://gravitypdf.com/documentation/v4/" class="button button-primary button-large"><?php esc_html_e( 'View All Documentation', 'gravity-forms-pdf-extended' ); ?></a>
106
+ <a href="https://gravitypdf.com/support/#contact-support" class="button button-primary button-large"><?php esc_html_e( 'Contact Support', 'gravity-forms-pdf-extended' ); ?></a>
107
 
108
  <p>
109
+ <?php printf( esc_html__( 'Our support hours are 9:00am-5:00pm Monday to Friday, %sSydney Australia time%s (public holidays excluded).', 'gravity-forms-pdf-extended' ), '<br><a href="http://www.timeanddate.com/worldclock/australia/sydney">', '</a>' ); ?>
110
  </p>
111
  </div>
112
 
120
 
121
  <script type="text/template" id="GravityPDFSearchResultsDocumentation">
122
  {{ if(collection.length === 0) { }}
123
+ <li><?php esc_html_e( "It doesn't look like there are any topics related to your issue.", 'gravity-forms-pdf-extended' ); ?></li>
124
  {{ } else { }}
125
+ <li><h3><?php esc_html_e( 'Maybe one of these articles will help...', 'gravity-forms-pdf-extended' ); ?></h3></li>
126
  {{ } }}
127
 
128
  {{ _.each(collection, function (model) { }}
src/view/html/Settings/system_status.php CHANGED
@@ -42,14 +42,14 @@ if ( ! defined( 'ABSPATH' ) ) {
42
  <h3>
43
  <span>
44
  <i class="fa fa-dashboard"></i>
45
- <?php _e( 'Installation Status', 'gravity-forms-pdf-extended' ); ?>
46
  </span>
47
  </h3>
48
 
49
  <table id="pdf-system-status" class="form-table">
50
  <tr>
51
  <th scope="row">
52
- <?php _e( 'WP Memory Available', 'gravity-forms-pdf-extended' ); ?> <?php gform_tooltip( 'pdf_status_wp_memory' ); ?>
53
  </th>
54
 
55
  <td>
@@ -62,7 +62,7 @@ if ( ! defined( 'ABSPATH' ) ) {
62
  ?>
63
 
64
  <?php if ( $args['memory'] === -1 ): ?>
65
- <?php echo __( 'Unlimited', 'gravity-forms-pdf-extended' ); ?>
66
  <?php else: ?>
67
  <?php echo $args['memory']; ?>MB
68
  <?php endif; ?>
@@ -71,7 +71,7 @@ if ( ! defined( 'ABSPATH' ) ) {
71
 
72
  <?php if ( $args['memory'] < 128 && $args['memory'] !== -1 ): ?>
73
  <span class="gf_settings_description">
74
- <?php echo sprintf( __( 'We strongly recommend you have at least 128MB of available WP Memory (RAM) assigned to your website. %sFind out how to increase this limit%s.', 'gravity-forms-pdf-extended' ), '<br /><a href="https://gravitypdf.com/documentation/v4/user-increasing-memory-limit/">', '</a>' ); ?>
75
  </span>
76
  <?php endif; ?>
77
  </td>
@@ -79,7 +79,7 @@ if ( ! defined( 'ABSPATH' ) ) {
79
 
80
  <tr>
81
  <th scope="row">
82
- <?php _e( 'WordPress Version', 'gravity-forms-pdf-extended' ); ?>
83
  </th>
84
 
85
  <td>
@@ -89,7 +89,7 @@ if ( ! defined( 'ABSPATH' ) ) {
89
 
90
  <tr>
91
  <th scope="row">
92
- <?php _e( 'Gravity Forms Version', 'gravity-forms-pdf-extended' ); ?>
93
  </th>
94
 
95
  <td>
@@ -99,7 +99,7 @@ if ( ! defined( 'ABSPATH' ) ) {
99
 
100
  <tr>
101
  <th scope="row">
102
- <?php _e( 'PHP Version', 'gravity-forms-pdf-extended' ); ?>
103
  </th>
104
 
105
  <td>
@@ -109,25 +109,25 @@ if ( ! defined( 'ABSPATH' ) ) {
109
 
110
  <tr>
111
  <th scope="row">
112
- <?php _e( 'Direct PDF Protection', 'gravity-forms-pdf-extended' ); ?> <?php gform_tooltip( 'pdf_protection' ); ?>
113
  </th>
114
 
115
  <td>
116
 
117
  <!-- A placeholder for our JS which will do the check for us, thereby preventing any load time by checking in PHP directly -->
118
  <div id="gfpdf-direct-pdf-protection-check" data-nonce="<?php echo wp_create_nonce( 'gfpdf-direct-pdf-protection' ); ?>">
119
- <noscript><?php _e( 'You need JavaScript enabled to perform this check.', 'gravity-forms-pdf-extended' ); ?></noscript>
120
 
121
  <div id="gfpdf-direct-pdf-check-protected" style="display: none">
122
- <?php _e( 'Protected', 'gravity-forms-pdf-extended' ); ?> <span class="fa fa-check-circle"></span>
123
  </div>
124
 
125
  <div id="gfpdf-direct-pdf-check-unprotected" style="display: none">
126
- <strong><?php _e( 'Unprotected', 'gravity-forms-pdf-extended' ); ?></strong> <span class="fa fa-times-circle"></span>
127
 
128
  <span class="gf_settings_description">
129
- <?php printf( __( "We've detected the PDFs saved in Gravity PDF's %stmp%s directory can be publically accessed.", 'gravity-forms-pdf-extended' ), '<code>', '</code>' ); ?><br>
130
- <?php printf( __( 'We recommend you use our %sgfpdf_tmp_location%s filter to %smove the folder outside your public website directory%s.', 'gravity-forms-pdf-extended' ), '<code>', '</code>', '<a href="https://gravitypdf.com/documentation/v4/gfpdf_tmp_location/">', '</a>' ); ?>
131
  </span>
132
  </div>
133
  </div>
42
  <h3>
43
  <span>
44
  <i class="fa fa-dashboard"></i>
45
+ <?php esc_html_e( 'Installation Status', 'gravity-forms-pdf-extended' ); ?>
46
  </span>
47
  </h3>
48
 
49
  <table id="pdf-system-status" class="form-table">
50
  <tr>
51
  <th scope="row">
52
+ <?php esc_html_e( 'WP Memory Available', 'gravity-forms-pdf-extended' ); ?> <?php gform_tooltip( 'pdf_status_wp_memory' ); ?>
53
  </th>
54
 
55
  <td>
62
  ?>
63
 
64
  <?php if ( $args['memory'] === -1 ): ?>
65
+ <?php echo esc_html__( 'Unlimited', 'gravity-forms-pdf-extended' ); ?>
66
  <?php else: ?>
67
  <?php echo $args['memory']; ?>MB
68
  <?php endif; ?>
71
 
72
  <?php if ( $args['memory'] < 128 && $args['memory'] !== -1 ): ?>
73
  <span class="gf_settings_description">
74
+ <?php echo sprintf( esc_html__( 'We strongly recommend you have at least 128MB of available WP Memory (RAM) assigned to your website. %sFind out how to increase this limit%s.', 'gravity-forms-pdf-extended' ), '<br /><a href="https://gravitypdf.com/documentation/v4/user-increasing-memory-limit/">', '</a>' ); ?>
75
  </span>
76
  <?php endif; ?>
77
  </td>
79
 
80
  <tr>
81
  <th scope="row">
82
+ <?php esc_html_e( 'WordPress Version', 'gravity-forms-pdf-extended' ); ?>
83
  </th>
84
 
85
  <td>
89
 
90
  <tr>
91
  <th scope="row">
92
+ <?php esc_html_e( 'Gravity Forms Version', 'gravity-forms-pdf-extended' ); ?>
93
  </th>
94
 
95
  <td>
99
 
100
  <tr>
101
  <th scope="row">
102
+ <?php esc_html_e( 'PHP Version', 'gravity-forms-pdf-extended' ); ?>
103
  </th>
104
 
105
  <td>
109
 
110
  <tr>
111
  <th scope="row">
112
+ <?php esc_html_e( 'Direct PDF Protection', 'gravity-forms-pdf-extended' ); ?> <?php gform_tooltip( 'pdf_protection' ); ?>
113
  </th>
114
 
115
  <td>
116
 
117
  <!-- A placeholder for our JS which will do the check for us, thereby preventing any load time by checking in PHP directly -->
118
  <div id="gfpdf-direct-pdf-protection-check" data-nonce="<?php echo wp_create_nonce( 'gfpdf-direct-pdf-protection' ); ?>">
119
+ <noscript><?php esc_html_e( 'You need JavaScript enabled to perform this check.', 'gravity-forms-pdf-extended' ); ?></noscript>
120
 
121
  <div id="gfpdf-direct-pdf-check-protected" style="display: none">
122
+ <?php esc_html_e( 'Protected', 'gravity-forms-pdf-extended' ); ?> <span class="fa fa-check-circle"></span>
123
  </div>
124
 
125
  <div id="gfpdf-direct-pdf-check-unprotected" style="display: none">
126
+ <strong><?php esc_html_e( 'Unprotected', 'gravity-forms-pdf-extended' ); ?></strong> <span class="fa fa-times-circle"></span>
127
 
128
  <span class="gf_settings_description">
129
+ <?php printf( esc_html__( "We've detected the PDFs saved in Gravity PDF's %stmp%s directory can be publically accessed.", 'gravity-forms-pdf-extended' ), '<code>', '</code>' ); ?><br>
130
+ <?php printf( esc_html__( 'We recommend you use our %sgfpdf_tmp_location%s filter to %smove the folder outside your public website directory%s.', 'gravity-forms-pdf-extended' ), '<code>', '</code>', '<a href="https://gravitypdf.com/documentation/v4/gfpdf_tmp_location/">', '</a>' ); ?>
131
  </span>
132
  </div>
133
  </div>
src/view/html/Settings/tools.php CHANGED
@@ -43,7 +43,7 @@ if ( ! defined( 'ABSPATH' ) ) {
43
  <h3>
44
  <span>
45
  <i class="fa fa-cog"></i>
46
- <?php _e( 'Tools', 'gravity-forms-pdf-extended' ); ?>
47
  </span>
48
  </h3>
49
 
@@ -54,7 +54,7 @@ if ( ! defined( 'ABSPATH' ) ) {
54
  <table id="pdf-tools" class="widefat gfpdf_table">
55
  <thead>
56
  <tr>
57
- <th colspan="2"><?php _e( 'Tools', 'gravity-forms-pdf-extended' ); ?></th>
58
  </tr>
59
  </thead>
60
 
@@ -68,8 +68,8 @@ if ( ! defined( 'ABSPATH' ) ) {
68
 
69
  <?php if ( $args['custom_template_setup_warning'] ): ?>
70
  <!-- only show custom template warning if user has already installed them once -->
71
- <div id="setup-templates-confirm" title="<?php _e( 'Setup Custom Templates', 'gravity-forms-pdf-extended' ); ?>" style="display: none;">
72
- <?php printf( __( 'During the setup process any of the following templates stored in %s will be overridden. If you have modified any of the following template or template configuration files %smake a backup before continuing%s.', 'gravity-forms-pdf-extended' ), '<br><code>' . $args['template_directory'] . '</code>', '<strong>', '</strong>' ); ?>
73
 
74
  <?php if ( sizeof( $args['template_files'] ) > 0 ): ?>
75
  <ul>
@@ -81,8 +81,8 @@ if ( ! defined( 'ABSPATH' ) ) {
81
  </div>
82
  <?php endif; ?>
83
 
84
- <div id="manage-font-files" title="<?php _e( 'Manage Fonts', 'gravity-forms-pdf-extended' ); ?>" style="display: none;">
85
- <?php _e( 'Manage all your custom Gravity PDF fonts in one place.', 'gravity-forms-pdf-extended' ); ?> <?php printf( __( 'Only .ttf and %s.otf font files%s are supported and they MUST be uploaded through your media library (no external links).', 'gravity-forms-pdf-extended' ), '<a href="https://gpdfv4.xyz/documentation/v4/postscript-outlines-not-supported/">', '</a>' ); ?>
86
 
87
  <div id="font-list">
88
  <!-- backbone to manage font list -->
@@ -101,7 +101,7 @@ if ( ! defined( 'ABSPATH' ) ) {
101
 
102
  <script type="text/template" id="GravityPDFFontsEmpty">
103
  <div id="font-empty">
104
- <?php printf( __( 'Looks bare in here!%s Click "Add Font" below to get started.', 'gravity-forms-pdf-extended' ), '<br>' ); ?>
105
  </div>
106
  </script>
107
 
@@ -113,61 +113,61 @@ if ( ! defined( 'ABSPATH' ) ) {
113
  <input type="hidden" name="wpnonce" value="<?php echo wp_create_nonce( 'gfpdf_font_nonce' ); ?>"/>
114
 
115
  <div class="font-selector">
116
- <label><?php _e( 'Font Name', 'gravity-forms-pdf-extended' ); ?> <span class="gfield_required">*</span></label>
117
  <input type="text" required="required" value="{{- model.get('font_name') }}" name="font_name" class="regular-text font-name-field">
118
- <span class="gf_settings_description"><label><?php _e( 'Only alphanumeric characters and spaces are accepted.', 'gravity-forms-pdf-extended' ); ?></label></span>
119
  </div>
120
 
121
  <div class="font-selector">
122
- <label><?php _e( 'Regular', 'gravity-forms-pdf-extended' ); ?> <span class="gfield_required">*</span></label>
123
  <input type="text" value="{{- model.get('regular') }}" required="required" name="regular" class="regular-text">
124
  <span>
125
  <input type="button"
126
- data-uploader-button-text="<?php _e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
127
- data-uploader-title="<?php _e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
128
- value="<?php _e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
129
  class="gfpdf_settings_upload_button button-secondary">
130
  </span>
131
  </div>
132
 
133
  <div class="font-selector">
134
- <label><?php _e( 'Italics', 'gravity-forms-pdf-extended' ); ?></label>
135
  <input type="text" value="{{- model.get('italics') }}" name="italics" class="regular-text">
136
  <span>
137
  <input type="button"
138
- data-uploader-button-text="<?php _e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
139
- data-uploader-title="<?php _e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
140
- value="<?php _e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
141
  class="gfpdf_settings_upload_button button-secondary">
142
  </span>
143
  </div>
144
 
145
  <div class="font-selector">
146
- <label><?php _e( 'Bold', 'gravity-forms-pdf-extended' ); ?></label>
147
  <input type="text" value="{{- model.get('bold') }}" name="bold" class="regular-text">
148
  <span>
149
  <input type="button"
150
- data-uploader-button-text="<?php _e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
151
- data-uploader-title="<?php _e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
152
- value="<?php _e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
153
  class="gfpdf_settings_upload_button button-secondary">
154
  </span>
155
  </div>
156
 
157
  <div class="font-selector">
158
- <label><?php _e( 'Bold Italics', 'gravity-forms-pdf-extended' ); ?></label>
159
  <input type="text" value="{{- model.get('bolditalics') }}" name="bolditalics" class="regular-text">
160
  <span>
161
  <input type="button"
162
- data-uploader-button-text="<?php _e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
163
- data-uploader-title="<?php _e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
164
- value="<?php _e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
165
  class="gfpdf_settings_upload_button button-secondary">
166
  </span>
167
  </div>
168
 
169
  <div class="font-submit">
170
- <button class="button button-primary"><?php _e( 'Save Font', 'gravity-forms-pdf-extended' ); ?></button>
171
  </div>
172
 
173
  </form>
@@ -181,6 +181,6 @@ if ( ! defined( 'ABSPATH' ) ) {
181
  <a href="#" class="delete-font"><i class="fa fa-trash-o"></i></a>
182
  </script>
183
 
184
- <div id="delete-confirm" title="<?php _e( 'Delete Font?', 'gravity-forms-pdf-extended' ); ?>" style="display: none;">
185
- <?php printf( __( "Warning! You are about to delete this Font. Select 'Delete' to delete, 'Cancel' to stop.", 'gravity-forms-pdf-extended' ), '<strong>', '</strong>' ); ?>
186
  </div>
43
  <h3>
44
  <span>
45
  <i class="fa fa-cog"></i>
46
+ <?php esc_html_e( 'Tools', 'gravity-forms-pdf-extended' ); ?>
47
  </span>
48
  </h3>
49
 
54
  <table id="pdf-tools" class="widefat gfpdf_table">
55
  <thead>
56
  <tr>
57
+ <th colspan="2"><?php esc_html_e( 'Tools', 'gravity-forms-pdf-extended' ); ?></th>
58
  </tr>
59
  </thead>
60
 
68
 
69
  <?php if ( $args['custom_template_setup_warning'] ): ?>
70
  <!-- only show custom template warning if user has already installed them once -->
71
+ <div id="setup-templates-confirm" title="<?php esc_html_e( 'Setup Custom Templates', 'gravity-forms-pdf-extended' ); ?>" style="display: none;">
72
+ <?php printf( esc_html__( 'During the setup process any of the following templates stored in %s will be overridden. If you have modified any of the following template or template configuration files %smake a backup before continuing%s.', 'gravity-forms-pdf-extended' ), '<br><code>' . $args['template_directory'] . '</code>', '<strong>', '</strong>' ); ?>
73
 
74
  <?php if ( sizeof( $args['template_files'] ) > 0 ): ?>
75
  <ul>
81
  </div>
82
  <?php endif; ?>
83
 
84
+ <div id="manage-font-files" title="<?php esc_html_e( 'Manage Fonts', 'gravity-forms-pdf-extended' ); ?>" style="display: none;">
85
+ <?php esc_html_e( 'Manage all your custom Gravity PDF fonts in one place.', 'gravity-forms-pdf-extended' ); ?> <?php printf( esc_html__( 'Only .ttf and %s.otf font files%s are supported and they MUST be uploaded through your media library (no external links).', 'gravity-forms-pdf-extended' ), '<a href="https://gpdfv4.xyz/documentation/v4/postscript-outlines-not-supported/">', '</a>' ); ?>
86
 
87
  <div id="font-list">
88
  <!-- backbone to manage font list -->
101
 
102
  <script type="text/template" id="GravityPDFFontsEmpty">
103
  <div id="font-empty">
104
+ <?php printf( esc_html__( 'Looks bare in here!%s Click "Add Font" below to get started.', 'gravity-forms-pdf-extended' ), '<br>' ); ?>
105
  </div>
106
  </script>
107
 
113
  <input type="hidden" name="wpnonce" value="<?php echo wp_create_nonce( 'gfpdf_font_nonce' ); ?>"/>
114
 
115
  <div class="font-selector">
116
+ <label><?php esc_html_e( 'Font Name', 'gravity-forms-pdf-extended' ); ?> <span class="gfield_required">*</span></label>
117
  <input type="text" required="required" value="{{- model.get('font_name') }}" name="font_name" class="regular-text font-name-field">
118
+ <span class="gf_settings_description"><label><?php esc_html_e( 'Only alphanumeric characters and spaces are accepted.', 'gravity-forms-pdf-extended' ); ?></label></span>
119
  </div>
120
 
121
  <div class="font-selector">
122
+ <label><?php esc_html_e( 'Regular', 'gravity-forms-pdf-extended' ); ?> <span class="gfield_required">*</span></label>
123
  <input type="text" value="{{- model.get('regular') }}" required="required" name="regular" class="regular-text">
124
  <span>
125
  <input type="button"
126
+ data-uploader-button-text="<?php esc_attr_e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
127
+ data-uploader-title="<?php esc_attr_e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
128
+ value="<?php esc_attr_e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
129
  class="gfpdf_settings_upload_button button-secondary">
130
  </span>
131
  </div>
132
 
133
  <div class="font-selector">
134
+ <label><?php esc_html_e( 'Italics', 'gravity-forms-pdf-extended' ); ?></label>
135
  <input type="text" value="{{- model.get('italics') }}" name="italics" class="regular-text">
136
  <span>
137
  <input type="button"
138
+ data-uploader-button-text="<?php esc_attr_e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
139
+ data-uploader-title="<?php esc_attr_e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
140
+ value="<?php esc_attr_e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
141
  class="gfpdf_settings_upload_button button-secondary">
142
  </span>
143
  </div>
144
 
145
  <div class="font-selector">
146
+ <label><?php esc_html_e( 'Bold', 'gravity-forms-pdf-extended' ); ?></label>
147
  <input type="text" value="{{- model.get('bold') }}" name="bold" class="regular-text">
148
  <span>
149
  <input type="button"
150
+ data-uploader-button-text="<?php esc_attr_e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
151
+ data-uploader-title="<?php esc_attr_e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
152
+ value="<?php esc_attr_e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
153
  class="gfpdf_settings_upload_button button-secondary">
154
  </span>
155
  </div>
156
 
157
  <div class="font-selector">
158
+ <label><?php esc_html_e( 'Bold Italics', 'gravity-forms-pdf-extended' ); ?></label>
159
  <input type="text" value="{{- model.get('bolditalics') }}" name="bolditalics" class="regular-text">
160
  <span>
161
  <input type="button"
162
+ data-uploader-button-text="<?php esc_attr_e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
163
+ data-uploader-title="<?php esc_attr_e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
164
+ value="<?php esc_attr_e( 'Select Font', 'gravity-forms-pdf-extended' ); ?>"
165
  class="gfpdf_settings_upload_button button-secondary">
166
  </span>
167
  </div>
168
 
169
  <div class="font-submit">
170
+ <button class="button button-primary"><?php esc_html_e( 'Save Font', 'gravity-forms-pdf-extended' ); ?></button>
171
  </div>
172
 
173
  </form>
181
  <a href="#" class="delete-font"><i class="fa fa-trash-o"></i></a>
182
  </script>
183
 
184
+ <div id="delete-confirm" title="<?php esc_attr_e( 'Delete Font?', 'gravity-forms-pdf-extended' ); ?>" style="display: none;">
185
+ <?php printf( esc_html__( "Warning! You are about to delete this Font. Select 'Delete' to delete, 'Cancel' to stop.", 'gravity-forms-pdf-extended' ), '<strong>', '</strong>' ); ?>
186
  </div>
src/view/html/Settings/uninstaller.php CHANGED
@@ -41,7 +41,7 @@ if ( ! defined( 'ABSPATH' ) ) {
41
  <h3>
42
  <span>
43
  <i class="fa fa-times"></i>
44
- <?php _e( 'Uninstall Gravity PDF', 'gravity-forms-pdf-extended' ); ?>
45
  </span>
46
  </h3>
47
 
@@ -49,16 +49,16 @@ if ( ! defined( 'ABSPATH' ) ) {
49
  <h3><i class="fa fa-exclamation-triangle gf_invalid"></i> Warning</h3>
50
 
51
  <div class="gf_delete_notice">
52
- <?php printf( __( '%sThis operation deletes ALL Gravity PDF data and deactivates the plugin.%s If you continue, all settings, configuration, custom templates and fonts will be removed.', 'gravity-forms-pdf-extended' ), '<strong>', '</strong>' ); ?>
53
  </div>
54
 
55
  <form method="post">
56
  <?php wp_nonce_field( 'gfpdf-uninstall-plugin', 'gfpdf-uninstall-plugin' ) ?>
57
  <input type="hidden" name="gfpdf_uninstall" value="1"/>
58
- <input id="gfpdf-uninstall" type="submit" class="button" value="<?php _e( 'Uninstall Gravity PDF', 'gravity-forms-pdf-extended' ); ?>" name="uninstall">
59
  </form>
60
  </div>
61
 
62
- <div id="uninstall-confirm" title="<?php _e( 'Uninstall Gravity PDF', 'gravity-forms-pdf-extended' ); ?>" style="display: none;">
63
- <?php printf( __( "Warning! ALL Gravity PDF data, %sincluding PDF configurations and ALL custom templates%s will be deleted. This cannot be undone. Select 'Uninstall' to delete, 'Cancel' to stop.", 'gravity-forms-pdf-extended' ), '<strong>', '</strong>' ); ?>
64
  </div>
41
  <h3>
42
  <span>
43
  <i class="fa fa-times"></i>
44
+ <?php esc_html_e( 'Uninstall Gravity PDF', 'gravity-forms-pdf-extended' ); ?>
45
  </span>
46
  </h3>
47
 
49
  <h3><i class="fa fa-exclamation-triangle gf_invalid"></i> Warning</h3>
50
 
51
  <div class="gf_delete_notice">
52
+ <?php printf( esc_html__( '%sThis operation deletes ALL Gravity PDF data and deactivates the plugin.%s If you continue, all settings, configuration, custom templates and fonts will be removed.', 'gravity-forms-pdf-extended' ), '<strong>', '</strong>' ); ?>
53
  </div>
54
 
55
  <form method="post">
56
  <?php wp_nonce_field( 'gfpdf-uninstall-plugin', 'gfpdf-uninstall-plugin' ) ?>
57
  <input type="hidden" name="gfpdf_uninstall" value="1"/>
58
+ <input id="gfpdf-uninstall" type="submit" class="button" value="<?php esc_attr_e( 'Uninstall Gravity PDF', 'gravity-forms-pdf-extended' ); ?>" name="uninstall">
59
  </form>
60
  </div>
61
 
62
+ <div id="uninstall-confirm" title="<?php esc_attr_e( 'Uninstall Gravity PDF', 'gravity-forms-pdf-extended' ); ?>" style="display: none;">
63
+ <?php printf( esc_html__( "Warning! ALL Gravity PDF data, %sincluding PDF configurations and ALL custom templates%s will be deleted. This cannot be undone. Select 'Uninstall' to delete, 'Cancel' to stop.", 'gravity-forms-pdf-extended' ), '<strong>', '</strong>' ); ?>
64
  </div>
src/view/html/Shortcodes/conditional_logic_not_met.php CHANGED
@@ -37,6 +37,6 @@ if ( ! defined( 'ABSPATH' ) ) {
37
  ?>
38
 
39
  <pre class="gravitypdf-error">
40
- <?php _e( 'PDF link not displayed because conditional logic requirements have not been met.', 'gravity-forms-pdf-extended' ); ?>
41
- <small><?php _e( '(Admin Only Message)', 'gravity-forms-pdf-extended' ); ?></small>
42
  </pre>
37
  ?>
38
 
39
  <pre class="gravitypdf-error">
40
+ <?php esc_html_e( 'PDF link not displayed because conditional logic requirements have not been met.', 'gravity-forms-pdf-extended' ); ?>
41
+ <small><?php esc_html_e( '(Admin Only Message)', 'gravity-forms-pdf-extended' ); ?></small>
42
  </pre>
src/view/html/Shortcodes/invalid_pdf_config.php CHANGED
@@ -37,6 +37,6 @@ if ( ! defined( 'ABSPATH' ) ) {
37
  ?>
38
 
39
  <pre class="gravitypdf-error">
40
- <?php _e( 'Could not get Gravity PDF configuration using the PDF and Entry IDs passed.', 'gravity-forms-pdf-extended' ); ?>
41
- <small><?php _e( '(Admin Only Message)', 'gravity-forms-pdf-extended' ); ?></small>
42
  </pre>
37
  ?>
38
 
39
  <pre class="gravitypdf-error">
40
+ <?php esc_html_e( 'Could not get Gravity PDF configuration using the PDF and Entry IDs passed.', 'gravity-forms-pdf-extended' ); ?>
41
+ <small><?php esc_html_e( '(Admin Only Message)', 'gravity-forms-pdf-extended' ); ?></small>
42
  </pre>
src/view/html/Shortcodes/no_entry_id.php CHANGED
@@ -37,6 +37,6 @@ if ( ! defined( 'ABSPATH' ) ) {
37
  ?>
38
 
39
  <pre class="gravitypdf-error">
40
- <?php _e( 'No Gravity Form entry ID passed to Gravity PDF. Ensure you pass the entry ID via the confirmation url query string – using either "entry" or "lid" as the query string name – or by passing an ID directly to the shortcode.', 'gravity-forms-pdf-extended' ); ?>
41
- <small><?php _e( '(Admin Only Message)', 'gravity-forms-pdf-extended' ); ?></small>
42
  </pre>
37
  ?>
38
 
39
  <pre class="gravitypdf-error">
40
+ <?php esc_html_e( 'No Gravity Form entry ID passed to Gravity PDF. Ensure you pass the entry ID via the confirmation url query string – using either "entry" or "lid" as the query string name – or by passing an ID directly to the shortcode.', 'gravity-forms-pdf-extended' ); ?>
41
+ <small><?php esc_html_e( '(Admin Only Message)', 'gravity-forms-pdf-extended' ); ?></small>
42
  </pre>
src/view/html/Shortcodes/pdf_not_active.php CHANGED
@@ -37,6 +37,6 @@ if ( ! defined( 'ABSPATH' ) ) {
37
  ?>
38
 
39
  <pre class="gravitypdf-error">
40
- <?php _e( 'PDF link not displayed because PDF is inactive.', 'gravity-forms-pdf-extended' ); ?>
41
- <small><?php _e( '(Admin Only Message)', 'gravity-forms-pdf-extended' ); ?></small>
42
  </pre>
37
  ?>
38
 
39
  <pre class="gravitypdf-error">
40
+ <?php esc_html_e( 'PDF link not displayed because PDF is inactive.', 'gravity-forms-pdf-extended' ); ?>
41
+ <small><?php esc_html_e( '(Admin Only Message)', 'gravity-forms-pdf-extended' ); ?></small>
42
  </pre>
src/view/html/Welcome/more.php CHANGED
@@ -39,38 +39,38 @@ if ( ! defined( 'ABSPATH' ) ) {
39
  <div class="gfpdf-mascot-sitting"></div>
40
 
41
  <div class="changelog">
42
- <h3><?php _e( 'Get more out of Gravity PDF', 'gravity-forms-pdf-extended' ); ?></h3>
43
 
44
  <div class="feature-section three-col">
45
  <div class="col gfpdf-breakdown">
46
 
47
- <h4><?php _e( 'PDF Template Shop', 'gravity-forms-pdf-extended' ); ?></h4>
48
 
49
- <p><?php printf( __( "It's like a theme shop, but for Gravity PDF templates. %sHead over to our online store%s and view our growing selection of premium PDF templates.", 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/shop/">', '</a>' ); ?></p>
50
 
51
- <h4><?php _e( 'Stay Up To Date', 'gravity-forms-pdf-extended' ); ?></h4>
52
 
53
- <p><?php printf( __( '%sSign up to our newsletter%s to be amongst the first to receive the latest news and details on upcoming feature.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/#signup-top">', '</a>' ); ?></p>
54
 
55
  </div>
56
 
57
  <div class="col gfpdf-breakdown">
58
 
59
- <h4><?php _e( 'Tailored PDFs', 'gravity-forms-pdf-extended' ); ?></h4>
60
 
61
- <p><?php printf( __( "If the PDF Shop doesn't have what you're after %sour friendly team can build a document just for you%s. With an addon, our devs can even create templates that auto fill existing PDFs – like government and legal documents.", 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/integration-services/">', '</a>' ); ?></p>
62
 
63
- <h4><?php _e( 'Get Support', 'gravity-forms-pdf-extended' ); ?></h4>
64
 
65
- <p><?php printf( __( 'Have trouble using Gravity PDF? %sContact our friendly staff%s who are avaliable 9am to 5pm Monday to Friday, %sAustralian Eastern Standard Time%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/support/">', '</a>', '<a href="http://www.timeanddate.com/worldclock/australia/sydney">', '</a>' ); ?></p>
66
 
67
  </div>
68
 
69
  <div class="col gfpdf-breakdown last-feature">
70
 
71
- <h4><?php _e( 'Roll your Own', 'gravity-forms-pdf-extended' ); ?></h4>
72
 
73
- <p><?php printf( __( "If PHP, HTML and CSS come easy to you, you'll find creating your own PDF templates a breeze. With %sextensive documentation and great examples%s you'll be up and running in no time.", 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/documentation/v4/developer-start-customising/">', '</a>' ); ?></p>
74
 
75
  </div>
76
 
39
  <div class="gfpdf-mascot-sitting"></div>
40
 
41
  <div class="changelog">
42
+ <h3><?php esc_html_e( 'Get more out of Gravity PDF', 'gravity-forms-pdf-extended' ); ?></h3>
43
 
44
  <div class="feature-section three-col">
45
  <div class="col gfpdf-breakdown">
46
 
47
+ <h4><?php esc_html_e( 'PDF Template Shop', 'gravity-forms-pdf-extended' ); ?></h4>
48
 
49
+ <p><?php printf( esc_html__( "It's like a theme shop, but for Gravity PDF templates. %sHead over to our online store%s and view our growing selection of premium PDF templates.", 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/shop/">', '</a>' ); ?></p>
50
 
51
+ <h4><?php esc_html_e( 'Stay Up To Date', 'gravity-forms-pdf-extended' ); ?></h4>
52
 
53
+ <p><?php printf( esc_html__( '%sSign up to our newsletter%s to be amongst the first to receive the latest news and details on upcoming feature.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/#signup-top">', '</a>' ); ?></p>
54
 
55
  </div>
56
 
57
  <div class="col gfpdf-breakdown">
58
 
59
+ <h4><?php esc_html_e( 'Tailored PDFs', 'gravity-forms-pdf-extended' ); ?></h4>
60
 
61
+ <p><?php printf( esc_html__( "If the PDF Shop doesn't have what you're after %sour friendly team can build a document just for you%s. With an addon, our devs can even create templates that auto fill existing PDFs – like government and legal documents.", 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/integration-services/">', '</a>' ); ?></p>
62
 
63
+ <h4><?php esc_html_e( 'Get Support', 'gravity-forms-pdf-extended' ); ?></h4>
64
 
65
+ <p><?php printf( esc_html__( 'Have trouble using Gravity PDF? %sContact our friendly staff%s who are avaliable 9am to 5pm Monday to Friday, %sAustralian Eastern Standard Time%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/support/">', '</a>', '<a href="http://www.timeanddate.com/worldclock/australia/sydney">', '</a>' ); ?></p>
66
 
67
  </div>
68
 
69
  <div class="col gfpdf-breakdown last-feature">
70
 
71
+ <h4><?php esc_html_e( 'Roll your Own', 'gravity-forms-pdf-extended' ); ?></h4>
72
 
73
+ <p><?php printf( esc_html__( "If PHP, HTML and CSS come easy to you, you'll find creating your own PDF templates a breeze. With %sextensive documentation and great examples%s you'll be up and running in no time.", 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/documentation/v4/developer-start-customising/">', '</a>' ); ?></p>
74
 
75
  </div>
76
 
src/view/html/Welcome/tabs.php CHANGED
@@ -41,12 +41,12 @@ if ( ! defined( 'ABSPATH' ) ) {
41
  <a class="nav-tab <?php echo $args['selected'] == 'gfpdf-getting-started' ? 'nav-tab-active' : ''; ?>"
42
  href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'gfpdf-getting-started' ), 'index.php' ) ) ); ?>">
43
 
44
- <?php _e( 'Getting Started', 'gravity-forms-pdf-extended' ); ?>
45
  </a>
46
 
47
  <a class="nav-tab <?php echo $args['selected'] == 'gfpdf-update' ? 'nav-tab-active' : ''; ?>"
48
  href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'gfpdf-update' ), 'index.php' ) ) ); ?>">
49
 
50
- <?php _e( "What's New", 'gravity-forms-pdf-extended' ); ?>
51
  </a>
52
  </h2>
41
  <a class="nav-tab <?php echo $args['selected'] == 'gfpdf-getting-started' ? 'nav-tab-active' : ''; ?>"
42
  href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'gfpdf-getting-started' ), 'index.php' ) ) ); ?>">
43
 
44
+ <?php esc_html_e( 'Getting Started', 'gravity-forms-pdf-extended' ); ?>
45
  </a>
46
 
47
  <a class="nav-tab <?php echo $args['selected'] == 'gfpdf-update' ? 'nav-tab-active' : ''; ?>"
48
  href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'gfpdf-update' ), 'index.php' ) ) ); ?>">
49
 
50
+ <?php esc_html_e( "What's New", 'gravity-forms-pdf-extended' ); ?>
51
  </a>
52
  </h2>
src/view/html/Welcome/update.php CHANGED
@@ -37,27 +37,27 @@ if ( ! defined( 'ABSPATH' ) ) {
37
  ?>
38
 
39
  <div class="wrap about-wrap gfpdf-update-screen">
40
- <h1><?php printf( __( 'Discover Gravity PDF %s', 'gravity-forms-pdf-extended' ), $args['display_version'] ); ?></h1>
41
 
42
  <div class="about-text">
43
- <?php _e( "Gravity PDF has been completely rebuilt with simplicity, stability and security in mind. Our team has spent over 12 months making a great product even greater. Discover what's new...", 'gravity-forms-pdf-extended' ); ?>
44
  </div>
45
 
46
- <div class="gfpdf-badge"><?php printf( __( 'Version %s', 'gravity-forms-pdf-extended' ), $args['display_version'] ); ?></div>
47
 
48
  <?php $this->tabs(); ?>
49
 
50
  <div class="feature-section two-col">
51
 
52
  <div class="col">
53
- <h3><?php _e( 'Bringing Config Settings to WordPress', 'gravity-forms-pdf-extended' ); ?></h3>
54
 
55
  <p>
56
- <?php _e( "We've done away with the need to edit PHP files to configure Gravity PDF. You'll have a familiar and seamless experience controlling PDF settings direct from your WordPress Admin area.", 'gravity-forms-pdf-extended' ); ?>
57
  </p>
58
 
59
  <p>
60
- <?php _e( "If you've ever configured a Gravity Form add-on you'll feel right at home setting up PDFs.", 'gravity-forms-pdf-extended' ); ?>
61
  </p>
62
 
63
  </div>
@@ -76,14 +76,14 @@ if ( ! defined( 'ABSPATH' ) ) {
76
  </div>
77
 
78
  <div class="col">
79
- <h3><?php _e( 'All-New Templates with CSS Ready Class Support', 'gravity-forms-pdf-extended' ); ?></h3>
80
 
81
  <p>
82
- <?php printf( __( "We were always getting feedback for templates that look more like their Gravity Forms layouts. %sYou asked and we've delivered!%s", 'gravity-forms-pdf-extended' ), '<strong>', '</strong>' ); ?>
83
  </p>
84
 
85
  <p>
86
- <?php printf( __( "All v4 PDFs will support %sGravity Forms CSS Ready Classes%s. When used in your form the PDF will automatically create two and three column layouts to suit. Plus, Gravity PDF %snow comes with four free PDF templates%s out of the box.", 'gravity-forms-pdf-extended' ), '<a href="https://www.gravityhelp.com/documentation/article/css-ready-classes/">', '</a>', '<strong>', '</strong>' ); ?>
87
  </p>
88
 
89
  </div>
@@ -93,15 +93,15 @@ if ( ! defined( 'ABSPATH' ) ) {
93
  <div class="feature-section two-col">
94
 
95
  <div class="col">
96
- <h3><?php _e( 'A Beautiful Font Manager', 'gravity-forms-pdf-extended' ); ?></h3>
97
 
98
  <p>
99
- <?php _e( 'No more playing around with FTP when installing fonts, or "guessing" the font family name to use in your templates. Our all-new font manager makes it a breeze to upload TTF or OTF font files and use them in your PDFs.', 'gravity-forms-pdf-extended' ); ?>
100
 
101
  </p>
102
 
103
  <p>
104
- <?php _e( "Once installed, you'll have full control over the font face, size and colour using our powerful settings interface.", 'gravity-forms-pdf-extended' ); ?>
105
  </p>
106
 
107
  <p></p>
@@ -121,25 +121,25 @@ if ( ! defined( 'ABSPATH' ) ) {
121
  <img class="gfpdf-image"
122
  src="<?php echo esc_url( PDF_PLUGIN_URL . 'src/assets/images/welcome-download-shortcode.png' ); ?>">
123
 
124
- <h3><?php _e( 'Simple PDF Download Links', 'gravity-forms-pdf-extended' ); ?></h3>
125
 
126
- <p><?php printf( __( 'The %s[gravitypdf]%s shortcode allows you to %seasily place a PDF download link%s on any of the Gravity Forms Confirmation types.', 'gravity-forms-pdf-extended' ), '<code>', '</code>', '<a href="https://gravitypdf.com/documentation/v4/user-shortcodes/">', '</a>' ); ?></p>
127
  </div>
128
  <div class="col">
129
  <img class="gfpdf-image"
130
  src="<?php echo esc_url( PDF_PLUGIN_URL . 'src/assets/images/welcome-notification-conditional.png' ); ?>">
131
 
132
- <h3><?php _e( 'PDF Conditional Logic', 'gravity-forms-pdf-extended' ); ?></h3>
133
 
134
- <p><?php _e( "Enable or disable PDFs with Gravity Forms powerful conditional logic feature. Control when PDFs are attached to email notifications and disable a PDF from being viewed if your conditions aren't met.", 'gravity-forms-pdf-extended' ); ?></p>
135
  </div>
136
  <div class="col last-feature">
137
  <img class="gfpdf-image"
138
  src="<?php echo esc_url( PDF_PLUGIN_URL . 'src/assets/images/updating-header-footer.png' ); ?>">
139
 
140
- <h3><?php _e( 'Headers and Footers', 'gravity-forms-pdf-extended' ); ?></h3>
141
 
142
- <p><?php _e( "We've built in header and footer support in all our v4 templates. You can optionally have a different first page header and footer. Now that's control!", 'gravity-forms-pdf-extended' ); ?></p>
143
  </div>
144
  </div>
145
 
37
  ?>
38
 
39
  <div class="wrap about-wrap gfpdf-update-screen">
40
+ <h1><?php printf( esc_html__( 'Discover Gravity PDF %s', 'gravity-forms-pdf-extended' ), $args['display_version'] ); ?></h1>
41
 
42
  <div class="about-text">
43
+ <?php esc_html_e( "Gravity PDF has been completely rebuilt with simplicity, stability and security in mind. Our team has spent over 12 months making a great product even greater. Discover what's new...", 'gravity-forms-pdf-extended' ); ?>
44
  </div>
45
 
46
+ <div class="gfpdf-badge"><?php printf( esc_html__( 'Version %s', 'gravity-forms-pdf-extended' ), $args['display_version'] ); ?></div>
47
 
48
  <?php $this->tabs(); ?>
49
 
50
  <div class="feature-section two-col">
51
 
52
  <div class="col">
53
+ <h3><?php esc_html_e( 'Bringing Config Settings to WordPress', 'gravity-forms-pdf-extended' ); ?></h3>
54
 
55
  <p>
56
+ <?php esc_html_e( "We've done away with the need to edit PHP files to configure Gravity PDF. You'll have a familiar and seamless experience controlling PDF settings direct from your WordPress Admin area.", 'gravity-forms-pdf-extended' ); ?>
57
  </p>
58
 
59
  <p>
60
+ <?php esc_html_e( "If you've ever configured a Gravity Form add-on you'll feel right at home setting up PDFs.", 'gravity-forms-pdf-extended' ); ?>
61
  </p>
62
 
63
  </div>
76
  </div>
77
 
78
  <div class="col">
79
+ <h3><?php esc_html_e( 'All-New Templates with CSS Ready Class Support', 'gravity-forms-pdf-extended' ); ?></h3>
80
 
81
  <p>
82
+ <?php printf( esc_html__( "We were always getting feedback for templates that look more like their Gravity Forms layouts. %sYou asked and we've delivered!%s", 'gravity-forms-pdf-extended' ), '<strong>', '</strong>' ); ?>
83
  </p>
84
 
85
  <p>
86
+ <?php printf( esc_html__( "All v4 PDFs will support %sGravity Forms CSS Ready Classes%s. When used in your form the PDF will automatically create two and three column layouts to suit. Plus, Gravity PDF %snow comes with four free PDF templates%s out of the box.", 'gravity-forms-pdf-extended' ), '<a href="https://www.gravityhelp.com/documentation/article/css-ready-classes/">', '</a>', '<strong>', '</strong>' ); ?>
87
  </p>
88
 
89
  </div>
93
  <div class="feature-section two-col">
94
 
95
  <div class="col">
96
+ <h3><?php esc_html_e( 'A Beautiful Font Manager', 'gravity-forms-pdf-extended' ); ?></h3>
97
 
98
  <p>
99
+ <?php esc_html_e( 'No more playing around with FTP when installing fonts, or "guessing" the font family name to use in your templates. Our all-new font manager makes it a breeze to upload TTF or OTF font files and use them in your PDFs.', 'gravity-forms-pdf-extended' ); ?>
100
 
101
  </p>
102
 
103
  <p>
104
+ <?php esc_html_e( "Once installed, you'll have full control over the font face, size and colour using our powerful settings interface.", 'gravity-forms-pdf-extended' ); ?>
105
  </p>
106
 
107
  <p></p>
121
  <img class="gfpdf-image"
122
  src="<?php echo esc_url( PDF_PLUGIN_URL . 'src/assets/images/welcome-download-shortcode.png' ); ?>">
123
 
124
+ <h3><?php esc_html_e( 'Simple PDF Download Links', 'gravity-forms-pdf-extended' ); ?></h3>
125
 
126
+ <p><?php printf( esc_html__( 'The %s[gravitypdf]%s shortcode allows you to %seasily place a PDF download link%s on any of the Gravity Forms Confirmation types.', 'gravity-forms-pdf-extended' ), '<code>', '</code>', '<a href="https://gravitypdf.com/documentation/v4/user-shortcodes/">', '</a>' ); ?></p>
127
  </div>
128
  <div class="col">
129
  <img class="gfpdf-image"
130
  src="<?php echo esc_url( PDF_PLUGIN_URL . 'src/assets/images/welcome-notification-conditional.png' ); ?>">
131
 
132
+ <h3><?php esc_html_e( 'PDF Conditional Logic', 'gravity-forms-pdf-extended' ); ?></h3>
133
 
134
+ <p><?php esc_html_e( "Enable or disable PDFs with Gravity Forms powerful conditional logic feature. Control when PDFs are attached to email notifications and disable a PDF from being viewed if your conditions aren't met.", 'gravity-forms-pdf-extended' ); ?></p>
135
  </div>
136
  <div class="col last-feature">
137
  <img class="gfpdf-image"
138
  src="<?php echo esc_url( PDF_PLUGIN_URL . 'src/assets/images/updating-header-footer.png' ); ?>">
139
 
140
+ <h3><?php esc_html_e( 'Headers and Footers', 'gravity-forms-pdf-extended' ); ?></h3>
141
 
142
+ <p><?php esc_html_e( "We've built in header and footer support in all our v4 templates. You can optionally have a different first page header and footer. Now that's control!", 'gravity-forms-pdf-extended' ); ?></p>
143
  </div>
144
  </div>
145
 
src/view/html/Welcome/welcome.php CHANGED
@@ -37,26 +37,26 @@ if ( ! defined( 'ABSPATH' ) ) {
37
  ?>
38
 
39
  <div class="wrap about-wrap gfpdf-welcome-screen">
40
- <h1><?php _e( 'Welcome to Gravity PDF', 'gravity-forms-pdf-extended' ); ?></h1>
41
 
42
  <div class="about-text">
43
- <?php _e( "You're just minutes away from producing your first highly-customisable PDF document using Gravity Forms data.", 'gravity-forms-pdf-extended' ); ?>
44
  </div>
45
 
46
- <div class="gfpdf-badge"><?php printf( __( 'Version %s', 'gravity-forms-pdf-extended' ), $args['display_version'] ); ?></div>
47
 
48
  <?php $this->tabs(); ?>
49
 
50
  <div class="feature-section two-col">
51
 
52
  <div class="col">
53
- <h3><?php _e( 'Where to Start?', 'gravity-forms-pdf-extended' ); ?></h3>
54
 
55
  <p>
56
- <?php printf( __( "Your first step is to review %sGravity PDF's General Settings%s which can be found by navigating to %sForms -> Settings -> PDF%s in your WordPress admin area. From here you'll be able to set defaults for paper size, font face, font colour, and select a PDF template – %swe ship with four completely-free layouts%s – which will be used for all new PDFs. There's even an easy-to-use interface for installing custom fonts.", 'gravity-forms-pdf-extended' ), '<a href="' . esc_url( $gfpdf->data->settings_url ) . '">', '</a>', '<code>', '</code>', '<strong>', '</strong>' ); ?>
57
  </p>
58
 
59
- <a href="<?php echo esc_url( $gfpdf->data->settings_url ); ?>" class="button"><?php _e( 'Configure Settings', 'gravity-forms-pdf-extended' ); ?></a>
60
  </div>
61
 
62
  <div class="col">
@@ -72,10 +72,10 @@ if ( ! defined( 'ABSPATH' ) ) {
72
  </div>
73
 
74
  <div class="col">
75
- <h3><?php _e( 'Setting up a PDF', 'gravity-forms-pdf-extended' ); ?></h3>
76
 
77
  <p>
78
- <?php printf( __( 'You can setup individual PDF documents from the %sGravity Form "Forms" page%s in your admin area – located at %sForms -> Forms%s in your navigation. A new %sPDF%s option will be avaliable in each forms\' settings section. The only required fields are %sName%s – an internal identifier – and %sFilename%s – the name used when saving and emailing the PDF.', 'gravity-forms-pdf-extended' ), '<a href="' . esc_url( admin_url( 'admin.php?page=gf_edit_forms' ) ) . '">', '</a>', '<code>', '</code>', '<code>', '</code>', '<em>', '</em>', '<em>', '</em>' ); ?>
79
  </p>
80
 
81
  <!-- Output a quick Gravity Forms selector so we can let users get redirected to a PDF form of their choice -->
@@ -87,14 +87,14 @@ if ( ! defined( 'ABSPATH' ) ) {
87
  <input type="hidden" name="pid" value="0"/>
88
 
89
  <p>
90
- <strong><?php _e( 'Select which Form you want to setup first:', 'gravity-forms-pdf-extended' ); ?></strong><br>
91
  <select name="id" class="">
92
  <?php foreach ( $args['forms'] as $form ): ?>
93
  <option value="<?php echo $form['id']; ?>"><?php echo $form['title']; ?></option>
94
  <?php endforeach; ?>
95
  </select>
96
 
97
- <button class="button" style="vertical-align: middle"><?php _e( 'Create a PDF', 'gravity-forms-pdf-extended' ); ?></button>
98
  </p>
99
  </form>
100
  <?php endif; ?>
@@ -105,23 +105,23 @@ if ( ! defined( 'ABSPATH' ) ) {
105
  <div class="col">
106
  <img class="gfpdf-image" src="<?php echo esc_url( PDF_PLUGIN_URL . 'src/assets/images/welcome-download-shortcode.png' ); ?>">
107
 
108
- <h3><?php _e( 'Simple PDF Download Links', 'gravity-forms-pdf-extended' ); ?></h3>
109
 
110
- <p><?php printf( __( 'The %s[gravitypdf]%s shortcode allows you to %seasily place a PDF download link%s on any of the Gravity Forms Confirmation types.', 'gravity-forms-pdf-extended' ), '<code>', '</code>', '<a href="https://gravitypdf.com/documentation/v4/user-shortcodes/">', '</a>' ); ?></p>
111
  </div>
112
  <div class="col">
113
  <img class="gfpdf-image" src="<?php echo esc_url( PDF_PLUGIN_URL . 'src/assets/images/welcome-notification-conditional.png' ); ?>">
114
 
115
- <h3><?php _e( 'Automated PDF Emails', 'gravity-forms-pdf-extended' ); ?></h3>
116
 
117
- <p><?php _e( 'Select a Gravity Form Notification and your PDF will automatically be sent as an attachment. Powerful conditional logic can also be used to determine if a PDF will be included.', 'gravity-forms-pdf-extended' ); ?></p>
118
  </div>
119
  <div class="col last-feature">
120
  <img class="gfpdf-image" src="<?php echo esc_url( PDF_PLUGIN_URL . 'src/assets/images/welcome-manage-fonts.png' ); ?>">
121
 
122
- <h3><?php _e( 'Custom Fonts', 'gravity-forms-pdf-extended' ); ?></h3>
123
 
124
- <p><?php printf( __( 'Make your documents stand out by including your favourite fonts with our %ssimple font manager%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/documentation/v4/user-custom-fonts/">', '</a>' ); ?></p>
125
  </div>
126
  </div>
127
 
37
  ?>
38
 
39
  <div class="wrap about-wrap gfpdf-welcome-screen">
40
+ <h1><?php esc_html_e( 'Welcome to Gravity PDF', 'gravity-forms-pdf-extended' ); ?></h1>
41
 
42
  <div class="about-text">
43
+ <?php esc_html_e( "You're just minutes away from producing your first highly-customisable PDF document using Gravity Forms data.", 'gravity-forms-pdf-extended' ); ?>
44
  </div>
45
 
46
+ <div class="gfpdf-badge"><?php printf( esc_html__( 'Version %s', 'gravity-forms-pdf-extended' ), $args['display_version'] ); ?></div>
47
 
48
  <?php $this->tabs(); ?>
49
 
50
  <div class="feature-section two-col">
51
 
52
  <div class="col">
53
+ <h3><?php esc_html_e( 'Where to Start?', 'gravity-forms-pdf-extended' ); ?></h3>
54
 
55
  <p>
56
+ <?php printf( esc_html__( "Your first step is to review %sGravity PDF's General Settings%s which can be found by navigating to %sForms -> Settings -> PDF%s in your WordPress admin area. From here you'll be able to set defaults for paper size, font face, font colour, and select a PDF template – %swe ship with four completely-free layouts%s – which will be used for all new PDFs. There's even an easy-to-use interface for installing custom fonts.", 'gravity-forms-pdf-extended' ), '<a href="' . esc_url( $gfpdf->data->settings_url ) . '">', '</a>', '<code>', '</code>', '<strong>', '</strong>' ); ?>
57
  </p>
58
 
59
+ <a href="<?php echo esc_url( $gfpdf->data->settings_url ); ?>" class="button"><?php esc_html_e( 'Configure Settings', 'gravity-forms-pdf-extended' ); ?></a>
60
  </div>
61
 
62
  <div class="col">
72
  </div>
73
 
74
  <div class="col">
75
+ <h3><?php esc_html_e( 'Setting up a PDF', 'gravity-forms-pdf-extended' ); ?></h3>
76
 
77
  <p>
78
+ <?php printf( esc_html__( 'You can setup individual PDF documents from the %sGravity Form "Forms" page%s in your admin area – located at %sForms -> Forms%s in your navigation. A new %sPDF%s option will be avaliable in each forms\' settings section. The only required fields are %sName%s – an internal identifier – and %sFilename%s – the name used when saving and emailing the PDF.', 'gravity-forms-pdf-extended' ), '<a href="' . esc_url( admin_url( 'admin.php?page=gf_edit_forms' ) ) . '">', '</a>', '<code>', '</code>', '<code>', '</code>', '<em>', '</em>', '<em>', '</em>' ); ?>
79
  </p>
80
 
81
  <!-- Output a quick Gravity Forms selector so we can let users get redirected to a PDF form of their choice -->
87
  <input type="hidden" name="pid" value="0"/>
88
 
89
  <p>
90
+ <strong><?php esc_html_e( 'Select which Form you want to setup first:', 'gravity-forms-pdf-extended' ); ?></strong><br>
91
  <select name="id" class="">
92
  <?php foreach ( $args['forms'] as $form ): ?>
93
  <option value="<?php echo $form['id']; ?>"><?php echo $form['title']; ?></option>
94
  <?php endforeach; ?>
95
  </select>
96
 
97
+ <button class="button" style="vertical-align: middle"><?php esc_html_e( 'Create a PDF', 'gravity-forms-pdf-extended' ); ?></button>
98
  </p>
99
  </form>
100
  <?php endif; ?>
105
  <div class="col">
106
  <img class="gfpdf-image" src="<?php echo esc_url( PDF_PLUGIN_URL . 'src/assets/images/welcome-download-shortcode.png' ); ?>">
107
 
108
+ <h3><?php esc_html_e( 'Simple PDF Download Links', 'gravity-forms-pdf-extended' ); ?></h3>
109
 
110
+ <p><?php printf( esc_html__( 'The %s[gravitypdf]%s shortcode allows you to %seasily place a PDF download link%s on any of the Gravity Forms Confirmation types.', 'gravity-forms-pdf-extended' ), '<code>', '</code>', '<a href="https://gravitypdf.com/documentation/v4/user-shortcodes/">', '</a>' ); ?></p>
111
  </div>
112
  <div class="col">
113
  <img class="gfpdf-image" src="<?php echo esc_url( PDF_PLUGIN_URL . 'src/assets/images/welcome-notification-conditional.png' ); ?>">
114
 
115
+ <h3><?php esc_html_e( 'Automated PDF Emails', 'gravity-forms-pdf-extended' ); ?></h3>
116
 
117
+ <p><?php esc_html_e( 'Select a Gravity Form Notification and your PDF will automatically be sent as an attachment. Powerful conditional logic can also be used to determine if a PDF will be included.', 'gravity-forms-pdf-extended' ); ?></p>
118
  </div>
119
  <div class="col last-feature">
120
  <img class="gfpdf-image" src="<?php echo esc_url( PDF_PLUGIN_URL . 'src/assets/images/welcome-manage-fonts.png' ); ?>">
121
 
122
+ <h3><?php esc_html_e( 'Custom Fonts', 'gravity-forms-pdf-extended' ); ?></h3>
123
 
124
+ <p><?php printf( esc_html__( 'Make your documents stand out by including your favourite fonts with our %ssimple font manager%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/documentation/v4/user-custom-fonts/">', '</a>' ); ?></p>
125
  </div>
126
  </div>
127
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
- return ComposerAutoloaderInita9c05113f26b52daf72983ec63a02df9::getLoader();
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit67b61de537cd8d996bf38fefc3ca681b::getLoader();
vendor/blueliquiddesigns/mpdf/ttfonts/DejaVuSansCondensed-Bold.ttf CHANGED
Binary file
vendor/blueliquiddesigns/mpdf/ttfonts/DejaVuSansCondensed-BoldOblique.ttf CHANGED
Binary file
vendor/blueliquiddesigns/mpdf/ttfonts/DejaVuSansCondensed-Oblique.ttf CHANGED
Binary file
vendor/blueliquiddesigns/mpdf/ttfonts/DejaVuSansCondensed.ttf CHANGED
Binary file
vendor/composer/autoload_classmap.php CHANGED
@@ -85,6 +85,7 @@ return array(
85
  'GFPDF\\Helper\\Helper_Options_Fields' => $baseDir . '/src/helper/Helper_Options_Fields.php',
86
  'GFPDF\\Helper\\Helper_PDF' => $baseDir . '/src/helper/Helper_PDF.php',
87
  'GFPDF\\Helper\\Helper_PDF_List_Table' => $baseDir . '/src/helper/Helper_PDF_List_Table.php',
 
88
  'GFPDF\\Helper\\Helper_Singleton' => $baseDir . '/src/helper/Helper_Singleton.php',
89
  'GFPDF\\Model\\Model_Actions' => $baseDir . '/src/model/Model_Actions.php',
90
  'GFPDF\\Model\\Model_Form_Settings' => $baseDir . '/src/model/Model_Form_Settings.php',
85
  'GFPDF\\Helper\\Helper_Options_Fields' => $baseDir . '/src/helper/Helper_Options_Fields.php',
86
  'GFPDF\\Helper\\Helper_PDF' => $baseDir . '/src/helper/Helper_PDF.php',
87
  'GFPDF\\Helper\\Helper_PDF_List_Table' => $baseDir . '/src/helper/Helper_PDF_List_Table.php',
88
+ 'GFPDF\\Helper\\Helper_QueryPath' => $baseDir . '/src/helper/Helper_QueryPath.php',
89
  'GFPDF\\Helper\\Helper_Singleton' => $baseDir . '/src/helper/Helper_Singleton.php',
90
  'GFPDF\\Model\\Model_Actions' => $baseDir . '/src/model/Model_Actions.php',
91
  'GFPDF\\Model\\Model_Form_Settings' => $baseDir . '/src/model/Model_Form_Settings.php',
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInita9c05113f26b52daf72983ec63a02df9
6
  {
7
  private static $loader;
8
 
@@ -19,9 +19,9 @@ class ComposerAutoloaderInita9c05113f26b52daf72983ec63a02df9
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInita9c05113f26b52daf72983ec63a02df9', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInita9c05113f26b52daf72983ec63a02df9', 'loadClassLoader'));
25
 
26
  $map = require __DIR__ . '/autoload_namespaces.php';
27
  foreach ($map as $namespace => $path) {
@@ -42,14 +42,14 @@ class ComposerAutoloaderInita9c05113f26b52daf72983ec63a02df9
42
 
43
  $includeFiles = require __DIR__ . '/autoload_files.php';
44
  foreach ($includeFiles as $fileIdentifier => $file) {
45
- composerRequirea9c05113f26b52daf72983ec63a02df9($fileIdentifier, $file);
46
  }
47
 
48
  return $loader;
49
  }
50
  }
51
 
52
- function composerRequirea9c05113f26b52daf72983ec63a02df9($fileIdentifier, $file)
53
  {
54
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
55
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit67b61de537cd8d996bf38fefc3ca681b
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit67b61de537cd8d996bf38fefc3ca681b', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit67b61de537cd8d996bf38fefc3ca681b', 'loadClassLoader'));
25
 
26
  $map = require __DIR__ . '/autoload_namespaces.php';
27
  foreach ($map as $namespace => $path) {
42
 
43
  $includeFiles = require __DIR__ . '/autoload_files.php';
44
  foreach ($includeFiles as $fileIdentifier => $file) {
45
+ composerRequire67b61de537cd8d996bf38fefc3ca681b($fileIdentifier, $file);
46
  }
47
 
48
  return $loader;
49
  }
50
  }
51
 
52
+ function composerRequire67b61de537cd8d996bf38fefc3ca681b($fileIdentifier, $file)
53
  {
54
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
55
  require $file;
vendor/composer/installed.json CHANGED
@@ -57,12 +57,12 @@
57
  "source": {
58
  "type": "git",
59
  "url": "https://github.com/GravityPDF/mpdf.git",
60
- "reference": "8aa7ca7ec91acb5c5424e1a35205f167e5696e6c"
61
  },
62
  "dist": {
63
  "type": "zip",
64
- "url": "https://api.github.com/repos/GravityPDF/mpdf/zipball/8aa7ca7ec91acb5c5424e1a35205f167e5696e6c",
65
- "reference": "8aa7ca7ec91acb5c5424e1a35205f167e5696e6c",
66
  "shasum": ""
67
  },
68
  "require": {
@@ -76,7 +76,7 @@
76
  "suggest": {
77
  "ext-zlib": "Needed for compression of embedded resources, such as fonts"
78
  },
79
- "time": "2016-06-28 04:36:02",
80
  "type": "library",
81
  "installation-source": "dist",
82
  "autoload": {
57
  "source": {
58
  "type": "git",
59
  "url": "https://github.com/GravityPDF/mpdf.git",
60
+ "reference": "9fe31cc6a790ed3a06cddf28a58ba2349fe7d079"
61
  },
62
  "dist": {
63
  "type": "zip",
64
+ "url": "https://api.github.com/repos/GravityPDF/mpdf/zipball/9fe31cc6a790ed3a06cddf28a58ba2349fe7d079",
65
+ "reference": "9fe31cc6a790ed3a06cddf28a58ba2349fe7d079",
66
  "shasum": ""
67
  },
68
  "require": {
76
  "suggest": {
77
  "ext-zlib": "Needed for compression of embedded resources, such as fonts"
78
  },
79
+ "time": "2016-07-27 07:37:46",
80
  "type": "library",
81
  "installation-source": "dist",
82
  "autoload": {