PluginProbe
E2Pdf – Export Pdf Tool for WordPress / 1.32.53
E2Pdf – Export Pdf Tool for WordPress v1.32.53
1.32.53 1.32.51 1.32.49 1.32.48 1.32.43 1.32.40 1.32.34 1.32.32 1.32.31 1.32.26 1.32.22 1.32.23 1.32.18 1.32.17 1.32.15 trunk 1.00.00 1.00.13 1.01.01 1.02.02 1.03.07 1.04.07 1.05.03 1.06.02 1.07.11 All 74 releases
← All changes | classes/view/metaboxes/e2pdf_templates_settings.php +465 -66 1.01.01 → 1.32.53 View file →
@@ -3,21 +3,25 @@
3 3 die('Access denied.');
4 4 }
5 5 ?>
6 6 <div id="taxonomy-category" class="categorydiv e2pdf-tabs-panel">
7 -
8 7 <ul id="e2pdf-tabs" class="category-tabs e2pdf-tabs">
9 - <li class="active"><a data-tab="e2pdf-template-style" href="javascript:void(0);"><?php _e('Style', 'e2pdf'); ?></a></li>
10 - <li><a data-tab="e2pdf-template-template" href="javascript:void(0);"><?php _e('Template', 'e2pdf'); ?></a></li>
11 - <li><a data-tab="e2pdf-template-pdf" href="javascript:void(0);"><?php _e('Pdf', 'e2pdf'); ?></a></li>
8 + <li class="active"><a data-tab="e2pdf-template-style" href="javascript:void(0);"><?php _e('Style', 'e2pdf'); ?></a>
9 + </li><li>
10 + <a data-tab="e2pdf-template-template" href="javascript:void(0);"><?php _e('Template', 'e2pdf'); ?></a>
11 + </li><li>
12 + <a data-tab="e2pdf-template-pdf" href="javascript:void(0);">Pdf</a>
13 + </li><li>
14 + <a data-tab="e2pdf-template-meta" href="javascript:void(0);"><?php _e('Meta', 'e2pdf'); ?></a>
15 + </li><li>
16 + <a data-tab="e2pdf-template-security" href="javascript:void(0);"><?php _e('Security', 'e2pdf'); ?></a>
17 + </li>
18 + <?php do_action('e2pdf_templates_settings_tabs', $this); ?>
12 19 </ul>
13 -
14 -
15 20 <div class="e2pdf-rel">
16 - <?php if (!get_option('e2pdf_email') && $this->helper->get('license')->get('type') == 'FREE') { ?>
21 + <?php if (!get_option('e2pdf_email', '') && $this->helper->get('license')->get('type') == 'FREE') { ?>
17 22 <div class="e2pdf-email-lock e2pdf-ib">
18 23 <div id="e2pdf-email">
19 - <div class="e2pdf-form-loader e2pdf-hidden-loader"><span class="spinner"></span></div>
20 24 <p class="post-attributes-label-wrapper">
21 25 <label><?php _e('Enter your E-mail to unlock this features', 'e2pdf'); ?>:</label>
22 26 </p>
23 27 <p class="post-attributes-label-wrapper">
@@ -25,8 +29,9 @@
25 29 $this->render('field', 'text', array(
26 30 'field' => array(
27 31 'name' => 'email',
28 32 'placeholder' => __('E-mail', 'e2pdf'),
33 + 'class' => 'e2pdf-w100 e2pdf-enter'
29 34 ),
30 35 'value' => '',
31 36 ));
32 37 ?>
@@ -31,18 +36,18 @@
31 36 ));
32 37 ?>
33 38 </p>
34 39 <p class="post-attributes-label-wrapper">
35 - <input form-id="e2pdf-email" action="e2pdf_email" type="button" class="e2pdf-submit-form button-primary button-small" value="<?php _e('Unlock', 'e2pdf'); ?>">
40 + <input form-id="e2pdf-email" action="e2pdf_email" type="button" class="e2pdf-submit-form button-primary button-small" value="<?php _e('Unlock', 'e2pdf'); ?>" _wpnonce="<?php echo wp_create_nonce('e2pdf_templates'); ?>">
36 41 </p>
37 42 </div>
38 43 </div>
39 44 <?php } ?>
40 -
41 45 <div id="e2pdf-template-style" class="tabs-panel e2pdf-rel">
42 46 <div class="e2pdf-options-panel">
43 47 <p class="post-attributes-label-wrapper">
44 48 <label><?php _e('Global Font', 'e2pdf'); ?>:</label>
49 + </p>
45 50 <div class="e2pdf-grid">
46 51 <div class="e2pdf-ib e2pdf-w70 e2pdf-pr5">
47 52 <?php
48 53 $this->render('field', 'select', array(
@@ -50,9 +55,9 @@
50 55 'id' => 'e2pdf-font',
51 56 'name' => 'font',
52 57 'class' => 'e2pdf-settings-style-change'
53 58 ),
54 - 'value' => $this->view->template->get('font') && array_search($this->view->template->get('font'), $this->get_fonts()) ? $this->view->template->get('font') : 'Noto Sans',
59 + 'value' => $this->view->template->get('font') && array_search($this->view->template->get('font'), $this->get_fonts()) ? $this->view->template->get('font') : 'Noto Sans Regular',
55 60 'options' => $this->get_fonts(true),
56 61 ));
57 62 ?>
58 63 </div><div class="e2pdf-ib e2pdf-w30 e2pdf-pl5">
@@ -62,39 +67,77 @@
62 67 'id' => 'e2pdf-font-size',
63 68 'name' => 'font_size',
64 69 'class' => 'e2pdf-settings-style-change'
65 70 ),
66 - 'value' => $this->view->template->get('font_size') ? $this->view->template->get('font_size') : '14',
71 + 'value' => $this->view->template->get('font_size') ? $this->view->template->get('font_size') : '12',
67 72 'options' => $this->get_font_sizes(),
68 73 ));
69 74 ?>
70 75 </div>
71 76 </div>
72 - </p>
73 - <p class="post-attributes-label-wrapper">
74 77 <div class="e2pdf-grid">
75 78 <div class="e2pdf-ib e2pdf-w50 e2pdf-pr5">
76 - <label><?php _e('Line Height', 'e2pdf'); ?>:</label>
79 + <p class="post-attributes-label-wrapper">
80 + <label><?php _e('Line Height', 'e2pdf'); ?>:</label>
81 + </p>
82 + <div>
83 + <?php
84 + $this->render('field', 'select', array(
85 + 'field' => array(
86 + 'id' => 'e2pdf-line-height',
87 + 'name' => 'line_height',
88 + 'class' => 'e2pdf-settings-style-change'
89 + ),
90 + 'value' => $this->view->template->get('line_height') ? $this->view->template->get('line_height') : '12',
91 + 'options' => $this->get_line_heights(),
92 + ));
93 + ?>
94 + </div>
95 + </div><div class="e2pdf-ib e2pdf-w50 e2pdf-pl5">
96 + <p class="post-attributes-label-wrapper">
97 + <label><?php _e('Text Align', 'e2pdf'); ?>:</label>
98 + </p>
99 + <div>
100 + <?php
101 + $this->render('field', 'select', array(
102 + 'field' => array(
103 + 'id' => 'e2pdf-text-align',
104 + 'name' => 'text_align',
105 + 'class' => 'e2pdf-settings-style-change'
106 + ),
107 + 'value' => $this->view->template->get('text_align'),
108 + 'options' => array(
109 + 'left' => __('Left', 'e2pdf'),
110 + 'center' => __('Center', 'e2pdf'),
111 + 'right' => __('Right', 'e2pdf')
112 + )
113 + ));
114 + ?>
115 + </div>
116 + </div>
117 + </div>
118 + <div class="e2pdf-ib e2pdf-w100">
119 + <p class="post-attributes-label-wrapper"></p>
120 + <div>
77 121 <?php
78 - $this->render('field', 'select', array(
122 + $this->render('field', 'checkbox', array(
79 123 'field' => array(
80 - 'id' => 'e2pdf-line-height',
81 - 'name' => 'line_height',
124 + 'id' => 'e2pdf-rtl',
125 + 'name' => 'rtl',
126 + 'placeholder' => 'RTL',
82 127 'class' => 'e2pdf-settings-style-change'
83 128 ),
84 - 'value' => $this->view->template->get('line_height') ? $this->view->template->get('line_height') : '14',
85 - 'options' => $this->get_line_heights(),
129 + 'value' => $this->view->template->get('rtl'),
130 + 'checkbox_value' => 1,
131 + 'default_value' => 0,
86 132 ));
87 133 ?>
88 134 </div>
89 135 </div>
90 - </p>
91 -
92 - <p class="post-attributes-label-wrapper">
93 136 <div class="e2pdf-ib e2pdf-w100">
94 - <div>
137 + <p class="post-attributes-label-wrapper">
95 138 <label><?php _e('Font Color', 'e2pdf'); ?>:</label>
96 - </div>
139 + </p>
97 140 <div class="e2pdf-colorpicker-wr">
98 141 <?php
99 142 $this->render('field', 'text', array(
100 143 'field' => array(
@@ -107,14 +150,10 @@
107 150 ));
108 151 ?>
109 152 </div>
110 153 </div>
111 - </p>
112 -
113 154 </div>
114 155 </div>
115 -
116 -
117 156 <div id="e2pdf-template-template" class="tabs-panel e2pdf-template-template e2pdf-rel" style="display: none;" >
118 157 <div class="e2pdf-options-panel">
119 158 <p class="post-attributes-label-wrapper">
120 159 <label>
@@ -119,8 +158,10 @@
119 158 <p class="post-attributes-label-wrapper">
120 159 <label>
121 160 <?php _e('Dataset Title', 'e2pdf'); ?>:
122 161 </label>
162 + </p>
163 + <div id="e2pdf-item-dataset-title" class="<?php echo $this->view->template->get('item') == '-2' ? 'e2pdf-hide' : ''; ?>">
123 164 <?php
124 165 $this->render('field', 'text', array(
125 166 'field' => array(
126 167 'name' => 'dataset_title',
@@ -129,13 +170,41 @@
129 170 ),
130 171 'value' => $this->view->template->get('dataset_title'),
131 172 ));
132 173 ?>
133 - </p>
174 + </div>
175 + <div id="e2pdf-merged-item-dataset-title" class="<?php echo $this->view->template->get('item') == '-2' ? '' : 'e2pdf-hide'; ?>">
176 + <div>
177 + <?php
178 + $this->render('field', 'text', array(
179 + 'field' => array(
180 + 'name' => 'dataset_title1',
181 + 'placeholder' => __('Dataset Title', 'e2pdf') . ' #1',
182 + 'class' => 'e2pdf-settings-template-change'
183 + ),
184 + 'value' => $this->view->template->get('dataset_title1'),
185 + ));
186 + ?>
187 + </div>
188 + <div class="e2pdf-mt5">
189 + <?php
190 + $this->render('field', 'text', array(
191 + 'field' => array(
192 + 'name' => 'dataset_title2',
193 + 'placeholder' => __('Dataset Title', 'e2pdf') . ' #2',
194 + 'class' => 'e2pdf-settings-template-change'
195 + ),
196 + 'value' => $this->view->template->get('dataset_title2'),
197 + ));
198 + ?>
199 + </div>
200 + </div>
134 201 <p class="post-attributes-label-wrapper">
135 202 <label>
136 203 <?php _e('Button Title', 'e2pdf'); ?>:
137 204 </label>
205 + </p>
206 + <div>
138 207 <?php
139 208 $this->render('field', 'text', array(
140 209 'field' => array(
141 210 'name' => 'button_title',
@@ -144,14 +213,32 @@
144 213 ),
145 214 'value' => $this->view->template->get('button_title'),
146 215 ));
147 216 ?>
217 + </div>
218 + <p class="post-attributes-label-wrapper">
219 + <label>
220 + <?php _e('Dynamic PDF Source', 'e2pdf'); ?>:
221 + </label>
148 222 </p>
149 -
223 + <div>
224 + <?php
225 + $this->render('field', 'text', array(
226 + 'field' => array(
227 + 'name' => 'dpdf',
228 + 'placeholder' => __('Dynamic PDF Source', 'e2pdf'),
229 + 'class' => 'e2pdf-settings-template-change'
230 + ),
231 + 'value' => $this->view->template->get('dpdf'),
232 + ));
233 + ?>
234 + </div>
150 235 <p class="post-attributes-label-wrapper">
151 236 <label>
152 237 <?php _e('Format', 'e2pdf'); ?>:
153 238 </label>
239 + </p>
240 + <div>
154 241 <?php
155 242 $this->render('field', 'select', array(
156 243 'field' => array(
157 244 'name' => 'format',
@@ -158,20 +245,48 @@
158 245 'class' => 'e2pdf-settings-template-change'
159 246 ),
160 247 'value' => $this->view->template->get('format'),
161 248 'options' => array(
162 - 'pdf' => 'PDF',
249 + 'pdf' => 'pdf',
250 + 'jpg' => 'jpg',
163 251 ),
164 252 ));
165 253 ?>
254 + </div>
255 + <p class="post-attributes-label-wrapper">
256 + <label>
257 + <?php _e('JPG Format Output Size', 'e2pdf'); ?>:
258 + </label>
166 259 </p>
167 -
168 - <p class="post-attributes-label-wrapper">
260 + <div>
169 261 <?php
262 + $this->render('field', 'select', array(
263 + 'field' => array(
264 + 'name' => 'resample',
265 + 'class' => 'e2pdf-settings-template-change'
266 + ),
267 + 'value' => $this->view->template->get('resample'),
268 + 'options' => array(
269 + '100' => '100%',
270 + '125' => '125%',
271 + '150' => '150%',
272 + '175' => '175%',
273 + '200' => '200%',
274 + '225' => '225%',
275 + '250' => '250%',
276 + '275' => '275%',
277 + '300' => '300%',
278 + ),
279 + ));
280 + ?>
281 + </div>
282 + <p class="post-attributes-label-wrapper"></p>
283 + <div>
284 + <?php
170 285 $this->render('field', 'checkbox', array(
171 286 'field' => array(
172 287 'name' => 'inline',
173 - 'placeholder' => __('Inline', 'e2pdf'),
288 + 'placeholder' => __('Open PDF in Browser', 'e2pdf'),
174 289 'class' => 'e2pdf-settings-template-change'
175 290 ),
176 291 'value' => $this->view->template->get('inline'),
177 292 'checkbox_value' => 1,
@@ -177,15 +292,16 @@
177 292 'checkbox_value' => 1,
178 293 'default_value' => 0,
179 294 ));
180 295 ?>
181 - </p>
182 - <p class="post-attributes-label-wrapper">
296 + </div>
297 + <p class="post-attributes-label-wrapper"></p>
298 + <div>
183 299 <?php
184 300 $this->render('field', 'checkbox', array(
185 301 'field' => array(
186 302 'name' => 'auto',
187 - 'placeholder' => __('Auto download', 'e2pdf'),
303 + 'placeholder' => __('Auto PDF Download', 'e2pdf'),
188 304 'class' => 'e2pdf-settings-template-change'
189 305 ),
190 306 'value' => $this->view->template->get('auto'),
191 307 'checkbox_value' => 1,
@@ -191,16 +307,11 @@
191 307 'checkbox_value' => 1,
192 308 'default_value' => 0,
193 309 ));
194 310 ?>
195 - </p>
196 -
197 -
198 -
311 + </div>
199 312 </div>
200 313 </div>
201 -
202 -
203 314 <div id="e2pdf-template-pdf" class="tabs-panel e2pdf-template-pdf" style="display: none;" >
204 315 <div class="e2pdf-options-panel">
205 316 <p class="post-attributes-label-wrapper">
206 317 <label>
@@ -205,8 +316,10 @@
205 316 <p class="post-attributes-label-wrapper">
206 317 <label>
207 318 <?php _e('PDF Name', 'e2pdf'); ?>:
208 319 </label>
320 + </p>
321 + <div>
209 322 <?php
210 323 $this->render('field', 'text', array(
211 324 'field' => array(
212 325 'name' => 'name',
@@ -215,29 +328,32 @@
215 328 ),
216 329 'value' => $this->view->template->get('name')
217 330 ));
218 331 ?>
219 - </p>
332 + </div>
220 333 <p class="post-attributes-label-wrapper">
221 334 <label>
222 - <?php _e('Password', 'e2pdf'); ?>:
335 + <?php _e('PDF Local Name', 'e2pdf'); ?>:
223 336 </label>
337 + </p>
338 + <div>
224 339 <?php
225 340 $this->render('field', 'text', array(
226 341 'field' => array(
227 - 'name' => 'password',
228 - 'placeholder' => __('Password', 'e2pdf'),
342 + 'name' => 'savename',
343 + 'placeholder' => __('PDF Local Name', 'e2pdf'),
229 344 'class' => 'e2pdf-settings-template-change'
230 345 ),
231 - 'value' => $this->view->template->get('password'),
346 + 'value' => $this->view->template->get('savename'),
232 347 ));
233 348 ?>
234 - </p>
235 -
349 + </div>
236 350 <p class="post-attributes-label-wrapper">
237 351 <label>
238 - <?php _e('Flatten', 'e2pdf'); ?>:
352 + <?php _e('PDF Flatten', 'e2pdf'); ?>:
239 353 </label>
354 + </p>
355 + <div>
240 356 <?php
241 357 $this->render('field', 'select', array(
242 358 'field' => array(
243 359 'name' => 'flatten',
@@ -244,17 +360,17 @@
244 360 'class' => 'e2pdf-settings-template-change'
245 361 ),
246 362 'value' => $this->view->template->get('flatten'),
247 363 'options' => array(
248 - '0' => 'No',
249 - '1' => 'Yes',
250 - '2' => 'Full',
364 + '0' => __('No', 'e2pdf'),
365 + '1' => __('Yes', 'e2pdf'),
366 + '2' => __('Full', 'e2pdf')
251 367 ),
252 368 ));
253 369 ?>
254 - </p>
255 -
256 - <p class="post-attributes-label-wrapper">
370 + </div>
371 + <p class="post-attributes-label-wrapper"></p>
372 + <div>
257 373 <?php
258 374 $this->render('field', 'checkbox', array(
259 375 'field' => array(
260 376 'name' => 'appearance',
@@ -265,22 +381,47 @@
265 381 'checkbox_value' => 1,
266 382 'default_value' => 0,
267 383 ));
268 384 ?>
269 - </p>
270 -
271 - <p class="post-attributes-label-wrapper">
272 - <label>
273 - <?php _e('Compression', 'e2pdf'); ?>:
274 - </label>
385 + </div>
386 + <div class="e2pdf-ib e2pdf-w60 e2pdf-pr5">
387 + <p class="post-attributes-label-wrapper">
388 + <label>
389 + <?php _e('Images', 'e2pdf'); ?>:
390 + </label>
391 + </p>
275 392 <?php
276 393 $this->render('field', 'select', array(
277 394 'field' => array(
395 + 'id' => 'e2pdf-optimization',
396 + 'name' => 'optimization',
397 + 'class' => 'e2pdf-settings-template-change'
398 + ),
399 + 'value' => $this->view->template->get('optimization'),
400 + 'options' => array(
401 + '-1' => __('Not Optimized', 'e2pdf'),
402 + '1' => __('Low Quality', 'e2pdf'),
403 + '2' => __('Basic Quality', 'e2pdf'),
404 + '3' => __('Good Quality', 'e2pdf'),
405 + '4' => __('Best Quality', 'e2pdf'),
406 + '5' => __('Ultra Quality', 'e2pdf'),
407 + ),
408 + ));
409 + ?>
410 + </div><div class="e2pdf-ib e2pdf-w40 e2pdf-pl5">
411 + <p class="post-attributes-label-wrapper">
412 + <label>
413 + <?php _e('Compression', 'e2pdf'); ?>:
414 + </label>
415 + </p>
416 + <?php
417 + $this->render('field', 'select', array(
418 + 'field' => array(
278 419 'id' => 'e2pdf-compression',
279 420 'name' => 'compression',
280 421 'class' => 'e2pdf-settings-template-change'
281 422 ),
282 - 'value' => $this->view->template->get('compression') ? $this->view->template->get('compression') : '-1',
423 + 'value' => $this->view->template->get('compression'),
283 424 'options' => array(
284 425 '-1' => __('Default', 'e2pdf'),
285 426 '0' => '0',
286 427 '1' => '1',
@@ -294,11 +435,269 @@
294 435 '9' => '9',
295 436 ),
296 437 ));
297 438 ?>
439 + </div>
440 + <div class="e2pdf-ib e2pdf-w100">
441 + <p class="post-attributes-label-wrapper">
442 + <label><?php _e('Font Processor', 'e2pdf'); ?>:</label>
443 + </p>
444 + <div>
445 + <?php
446 + $this->render('field', 'select', array(
447 + 'field' => array(
448 + 'id' => 'e2pdf-font-processor',
449 + 'name' => 'font_processor',
450 + 'class' => 'e2pdf-settings-template-change'
451 + ),
452 + 'value' => $this->view->template->get('font_processor'),
453 + 'options' => array(
454 + '0' => 'Plain Fonts',
455 + '1' => 'Complex Fonts',
456 + )
457 + ));
458 + ?>
459 + </div>
460 + </div>
461 + <div>
462 + <p class="post-attributes-label-wrapper">
463 + <label>
464 + <?php _e('PDF Tab Order', 'e2pdf'); ?>:
465 + </label>
466 + </p>
467 + <?php
468 + $this->render('field', 'select', array(
469 + 'field' => array(
470 + 'name' => 'tab_order',
471 + 'class' => 'e2pdf-settings-template-change'
472 + ),
473 + 'value' => $this->view->template->get('tab_order'),
474 + 'options' => array(
475 + '0' => __('Unspecified', 'e2pdf'),
476 + '1' => __('Row Order', 'e2pdf'),
477 + '2' => __('Column Order', 'e2pdf'),
478 + '3' => __('Document Structure', 'e2pdf'),
479 + '4' => __('Annotation Structure', 'e2pdf'),
480 + ),
481 + ));
482 + ?>
483 + </div>
484 + </div>
485 + </div>
486 + <div id="e2pdf-template-meta" class="tabs-panel e2pdf-template-meta" style="display: none;" >
487 + <div class="e2pdf-options-panel">
488 + <p class="post-attributes-label-wrapper">
489 + <label>
490 + <?php _e('Title', 'e2pdf'); ?>:
491 + </label>
298 492 </p>
493 + <div>
494 + <?php
495 + $this->render('field', 'text', array(
496 + 'field' => array(
497 + 'name' => 'meta_title',
498 + 'placeholder' => __('Title', 'e2pdf'),
499 + 'class' => 'e2pdf-settings-template-change'
500 + ),
501 + 'value' => $this->view->template->get('meta_title')
502 + ));
503 + ?>
504 + </div>
505 +
506 + <p class="post-attributes-label-wrapper">
507 + <label>
508 + <?php _e('Subject', 'e2pdf'); ?>:
509 + </label>
510 + </p>
511 + <div>
512 + <?php
513 + $this->render('field', 'text', array(
514 + 'field' => array(
515 + 'name' => 'meta_subject',
516 + 'placeholder' => __('Subject', 'e2pdf'),
517 + 'class' => 'e2pdf-settings-template-change'
518 + ),
519 + 'value' => $this->view->template->get('meta_subject')
520 + ));
521 + ?>
522 + </div>
523 +
524 + <p class="post-attributes-label-wrapper">
525 + <label>
526 + <?php _e('Author', 'e2pdf'); ?>:
527 + </label>
528 + </p>
529 + <div>
530 + <?php
531 + $this->render('field', 'text', array(
532 + 'field' => array(
533 + 'name' => 'meta_author',
534 + 'placeholder' => __('Author', 'e2pdf'),
535 + 'class' => 'e2pdf-settings-template-change'
536 + ),
537 + 'value' => $this->view->template->get('meta_author')
538 + ));
539 + ?>
540 + </div>
541 + <p class="post-attributes-label-wrapper">
542 + <label>
543 + <?php _e('Keywords', 'e2pdf'); ?>:
544 + </label>
545 + </p>
546 + <div>
547 + <?php
548 + $this->render('field', 'text', array(
549 + 'field' => array(
550 + 'name' => 'meta_keywords',
551 + 'placeholder' => __('Keywords', 'e2pdf'),
552 + 'class' => 'e2pdf-settings-template-change'
553 + ),
554 + 'value' => $this->view->template->get('meta_keywords')
555 + ));
556 + ?>
557 + </div>
558 + <p class="post-attributes-label-wrapper">
559 + <label>
560 + <?php _e('Lang Code', 'e2pdf'); ?>:
561 + </label>
562 + </p>
563 + <div>
564 + <?php
565 + $this->render('field', 'select', array(
566 + 'field' => array(
567 + 'name' => 'lang_code',
568 + 'class' => 'e2pdf-settings-style-change'
569 + ),
570 + 'value' => $this->view->template->get('lang_code'),
571 + 'options' => $this->get_lang_codes(),
572 + ));
573 + ?>
574 + </div>
575 +
576 +
299 577 </div>
300 578 </div>
301 - </div>
579 + <div id="e2pdf-template-security" class="tabs-panel e2pdf-template-security" style="display: none;" >
580 + <div class="e2pdf-options-panel">
581 + <p class="post-attributes-label-wrapper">
582 + <label>
583 + <?php _e('PDF Open Password', 'e2pdf'); ?>:
584 + </label>
585 + </p>
586 + <div>
587 + <?php
588 + $this->render('field', 'text', array(
589 + 'field' => array(
590 + 'name' => 'password',
591 + 'placeholder' => __('PDF Open Password', 'e2pdf'),
592 + 'class' => 'e2pdf-settings-template-change'
593 + ),
594 + 'value' => $this->view->template->get('password'),
595 + ));
596 + ?>
597 + </div>
302 598
599 + <p class="post-attributes-label-wrapper">
600 + <label>
601 + <?php _e('Permissions Owner Password', 'e2pdf'); ?>:
602 + </label>
303 603
604 + </p>
605 + <div>
606 + <?php
607 + $this->render('field', 'text', array(
608 + 'field' => array(
609 + 'name' => 'owner_password',
610 + 'placeholder' => __('Permissions Owner Password', 'e2pdf'),
611 + 'class' => 'e2pdf-settings-template-change'
612 + ),
613 + 'value' => $this->view->template->get('owner_password'),
614 + ));
615 + ?>
616 + </div>
617 + <p class="post-attributes-label-wrapper">
618 + <label>
619 + <?php _e('Permissions (Opened with PDF Open Password)', 'e2pdf'); ?>:
620 + </label>
621 + </p>
622 + <div>
623 + <?php
624 + $this->render('field', 'checkbox', array(
625 + 'field' => array(
626 + 'name' => 'permissions[]',
627 + 'class' => 'e2pdf-settings-template-change',
628 + 'placeholder' => __('Printing', 'e2pdf')
629 + ),
630 + 'value' => in_array('printing', $this->view->template->get('permissions')) ? 'printing' : '',
631 + 'checkbox_value' => 'printing',
632 + ));
633 + $this->render('field', 'checkbox', array(
634 + 'field' => array(
635 + 'name' => 'permissions[]',
636 + 'class' => 'e2pdf-settings-template-change',
637 + 'placeholder' => __('Printing (Degraded)', 'e2pdf')
638 + ),
639 + 'value' => in_array('degraded_printing', $this->view->template->get('permissions')) ? 'degraded_printing' : '',
640 + 'checkbox_value' => 'degraded_printing',
641 + ));
642 + $this->render('field', 'checkbox', array(
643 + 'field' => array(
644 + 'name' => 'permissions[]',
645 + 'class' => 'e2pdf-settings-template-change',
646 + 'placeholder' => __('Editing', 'e2pdf')
647 + ),
648 + 'value' => in_array('modify_contents', $this->view->template->get('permissions')) ? 'modify_contents' : '',
649 + 'checkbox_value' => 'modify_contents',
650 + ));
651 + $this->render('field', 'checkbox', array(
652 + 'field' => array(
653 + 'name' => 'permissions[]',
654 + 'class' => 'e2pdf-settings-template-change',
655 + 'placeholder' => __('Copying', 'e2pdf')
656 + ),
657 + 'value' => in_array('copy', $this->view->template->get('permissions')) ? 'copy' : '',
658 + 'checkbox_value' => 'copy',
659 + ));
660 + $this->render('field', 'checkbox', array(
661 + 'field' => array(
662 + 'name' => 'permissions[]',
663 + 'class' => 'e2pdf-settings-template-change',
664 + 'placeholder' => __('Commenting', 'e2pdf')
665 + ),
666 + 'value' => in_array('modify_annotations', $this->view->template->get('permissions')) ? 'modify_annotations' : '',
667 + 'checkbox_value' => 'modify_annotations',
668 + ));
669 + $this->render('field', 'checkbox', array(
670 + 'field' => array(
671 + 'name' => 'permissions[]',
672 + 'class' => 'e2pdf-settings-template-change',
673 + 'placeholder' => __('Fill-In or Signing', 'e2pdf')
674 + ),
675 + 'value' => in_array('fill_in', $this->view->template->get('permissions')) ? 'fill_in' : '',
676 + 'checkbox_value' => 'fill_in',
677 + ));
678 + $this->render('field', 'checkbox', array(
679 + 'field' => array(
680 + 'name' => 'permissions[]',
681 + 'class' => 'e2pdf-settings-template-change',
682 + 'placeholder' => __('Document Assembly', 'e2pdf')
683 + ),
684 + 'value' => in_array('assembly', $this->view->template->get('permissions')) ? 'assembly' : '',
685 + 'checkbox_value' => 'assembly',
686 + ));
687 + $this->render('field', 'checkbox', array(
688 + 'field' => array(
689 + 'name' => 'permissions[]',
690 + 'class' => 'e2pdf-settings-template-change',
691 + 'placeholder' => __('Screen Reader Accessibility', 'e2pdf')
692 + ),
693 + 'value' => in_array('screenreaders', $this->view->template->get('permissions')) ? 'screenreaders' : '',
694 + 'checkbox_value' => 'screenreaders',
695 + ));
696 + ?>
697 + </div>
698 +
699 + </div>
700 + </div>
701 + <?php do_action('e2pdf_templates_settings_tabs_content', $this); ?>
702 + </div>
304 703 </div>