PluginProbe
E2Pdf – Export Pdf Tool for WordPress / 1.32.55
E2Pdf – Export Pdf Tool for WordPress v1.32.55
1.32.55 1.32.56 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 All 76 releases
← All changes | classes/view/metaboxes/e2pdf_templates_settings.php +465 -67 1.05.03 → 1.32.55 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,9 +29,9 @@
25 29 $this->render('field', 'text', array(
26 30 'field' => array(
27 31 'name' => 'email',
28 32 'placeholder' => __('E-mail', 'e2pdf'),
29 - 'class' => 'e2pdf-w100'
33 + 'class' => 'e2pdf-w100 e2pdf-enter'
30 34 ),
31 35 'value' => '',
32 36 ));
33 37 ?>
@@ -32,18 +36,18 @@
32 36 ));
33 37 ?>
34 38 </p>
35 39 <p class="post-attributes-label-wrapper">
36 - <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'); ?>">
37 41 </p>
38 42 </div>
39 43 </div>
40 44 <?php } ?>
41 -
42 45 <div id="e2pdf-template-style" class="tabs-panel e2pdf-rel">
43 46 <div class="e2pdf-options-panel">
44 47 <p class="post-attributes-label-wrapper">
45 48 <label><?php _e('Global Font', 'e2pdf'); ?>:</label>
49 + </p>
46 50 <div class="e2pdf-grid">
47 51 <div class="e2pdf-ib e2pdf-w70 e2pdf-pr5">
48 52 <?php
49 53 $this->render('field', 'select', array(
@@ -51,9 +55,9 @@
51 55 'id' => 'e2pdf-font',
52 56 'name' => 'font',
53 57 'class' => 'e2pdf-settings-style-change'
54 58 ),
55 - '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',
56 60 'options' => $this->get_fonts(true),
57 61 ));
58 62 ?>
59 63 </div><div class="e2pdf-ib e2pdf-w30 e2pdf-pl5">
@@ -63,39 +67,77 @@
63 67 'id' => 'e2pdf-font-size',
64 68 'name' => 'font_size',
65 69 'class' => 'e2pdf-settings-style-change'
66 70 ),
67 - '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',
68 72 'options' => $this->get_font_sizes(),
69 73 ));
70 74 ?>
71 75 </div>
72 76 </div>
73 - </p>
74 - <p class="post-attributes-label-wrapper">
75 77 <div class="e2pdf-grid">
76 78 <div class="e2pdf-ib e2pdf-w50 e2pdf-pr5">
77 - <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>
78 121 <?php
79 - $this->render('field', 'select', array(
122 + $this->render('field', 'checkbox', array(
80 123 'field' => array(
81 - 'id' => 'e2pdf-line-height',
82 - 'name' => 'line_height',
124 + 'id' => 'e2pdf-rtl',
125 + 'name' => 'rtl',
126 + 'placeholder' => 'RTL',
83 127 'class' => 'e2pdf-settings-style-change'
84 128 ),
85 - 'value' => $this->view->template->get('line_height') ? $this->view->template->get('line_height') : '14',
86 - 'options' => $this->get_line_heights(),
129 + 'value' => $this->view->template->get('rtl'),
130 + 'checkbox_value' => 1,
131 + 'default_value' => 0,
87 132 ));
88 133 ?>
89 134 </div>
90 135 </div>
91 - </p>
92 -
93 - <p class="post-attributes-label-wrapper">
94 136 <div class="e2pdf-ib e2pdf-w100">
95 - <div>
137 + <p class="post-attributes-label-wrapper">
96 138 <label><?php _e('Font Color', 'e2pdf'); ?>:</label>
97 - </div>
139 + </p>
98 140 <div class="e2pdf-colorpicker-wr">
99 141 <?php
100 142 $this->render('field', 'text', array(
101 143 'field' => array(
@@ -108,14 +150,10 @@
108 150 ));
109 151 ?>
110 152 </div>
111 153 </div>
112 - </p>
113 -
114 154 </div>
115 155 </div>
116 -
117 -
118 156 <div id="e2pdf-template-template" class="tabs-panel e2pdf-template-template e2pdf-rel" style="display: none;" >
119 157 <div class="e2pdf-options-panel">
120 158 <p class="post-attributes-label-wrapper">
121 159 <label>
@@ -120,8 +158,10 @@
120 158 <p class="post-attributes-label-wrapper">
121 159 <label>
122 160 <?php _e('Dataset Title', 'e2pdf'); ?>:
123 161 </label>
162 + </p>
163 + <div id="e2pdf-item-dataset-title" class="<?php echo $this->view->template->get('item') == '-2' ? 'e2pdf-hide' : ''; ?>">
124 164 <?php
125 165 $this->render('field', 'text', array(
126 166 'field' => array(
127 167 'name' => 'dataset_title',
@@ -130,13 +170,41 @@
130 170 ),
131 171 'value' => $this->view->template->get('dataset_title'),
132 172 ));
133 173 ?>
134 - </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>
135 201 <p class="post-attributes-label-wrapper">
136 202 <label>
137 203 <?php _e('Button Title', 'e2pdf'); ?>:
138 204 </label>
205 + </p>
206 + <div>
139 207 <?php
140 208 $this->render('field', 'text', array(
141 209 'field' => array(
142 210 'name' => 'button_title',
@@ -145,14 +213,32 @@
145 213 ),
146 214 'value' => $this->view->template->get('button_title'),
147 215 ));
148 216 ?>
217 + </div>
218 + <p class="post-attributes-label-wrapper">
219 + <label>
220 + <?php _e('Dynamic PDF Source', 'e2pdf'); ?>:
221 + </label>
149 222 </p>
150 -
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>
151 235 <p class="post-attributes-label-wrapper">
152 236 <label>
153 237 <?php _e('Format', 'e2pdf'); ?>:
154 238 </label>
239 + </p>
240 + <div>
155 241 <?php
156 242 $this->render('field', 'select', array(
157 243 'field' => array(
158 244 'name' => 'format',
@@ -159,20 +245,48 @@
159 245 'class' => 'e2pdf-settings-template-change'
160 246 ),
161 247 'value' => $this->view->template->get('format'),
162 248 'options' => array(
163 - 'pdf' => 'PDF',
249 + 'pdf' => 'pdf',
250 + 'jpg' => 'jpg',
164 251 ),
165 252 ));
166 253 ?>
254 + </div>
255 + <p class="post-attributes-label-wrapper">
256 + <label>
257 + <?php _e('JPG Format Output Size', 'e2pdf'); ?>:
258 + </label>
167 259 </p>
168 -
169 - <p class="post-attributes-label-wrapper">
260 + <div>
170 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
171 285 $this->render('field', 'checkbox', array(
172 286 'field' => array(
173 287 'name' => 'inline',
174 - 'placeholder' => __('Inline', 'e2pdf'),
288 + 'placeholder' => __('Open PDF in Browser', 'e2pdf'),
175 289 'class' => 'e2pdf-settings-template-change'
176 290 ),
177 291 'value' => $this->view->template->get('inline'),
178 292 'checkbox_value' => 1,
@@ -178,15 +292,16 @@
178 292 'checkbox_value' => 1,
179 293 'default_value' => 0,
180 294 ));
181 295 ?>
182 - </p>
183 - <p class="post-attributes-label-wrapper">
296 + </div>
297 + <p class="post-attributes-label-wrapper"></p>
298 + <div>
184 299 <?php
185 300 $this->render('field', 'checkbox', array(
186 301 'field' => array(
187 302 'name' => 'auto',
188 - 'placeholder' => __('Auto download', 'e2pdf'),
303 + 'placeholder' => __('Auto PDF Download', 'e2pdf'),
189 304 'class' => 'e2pdf-settings-template-change'
190 305 ),
191 306 'value' => $this->view->template->get('auto'),
192 307 'checkbox_value' => 1,
@@ -192,16 +307,11 @@
192 307 'checkbox_value' => 1,
193 308 'default_value' => 0,
194 309 ));
195 310 ?>
196 - </p>
197 -
198 -
199 -
311 + </div>
200 312 </div>
201 313 </div>
202 -
203 -
204 314 <div id="e2pdf-template-pdf" class="tabs-panel e2pdf-template-pdf" style="display: none;" >
205 315 <div class="e2pdf-options-panel">
206 316 <p class="post-attributes-label-wrapper">
207 317 <label>
@@ -206,8 +316,10 @@
206 316 <p class="post-attributes-label-wrapper">
207 317 <label>
208 318 <?php _e('PDF Name', 'e2pdf'); ?>:
209 319 </label>
320 + </p>
321 + <div>
210 322 <?php
211 323 $this->render('field', 'text', array(
212 324 'field' => array(
213 325 'name' => 'name',
@@ -216,29 +328,32 @@
216 328 ),
217 329 'value' => $this->view->template->get('name')
218 330 ));
219 331 ?>
220 - </p>
332 + </div>
221 333 <p class="post-attributes-label-wrapper">
222 334 <label>
223 - <?php _e('Password', 'e2pdf'); ?>:
335 + <?php _e('PDF Local Name', 'e2pdf'); ?>:
224 336 </label>
337 + </p>
338 + <div>
225 339 <?php
226 340 $this->render('field', 'text', array(
227 341 'field' => array(
228 - 'name' => 'password',
229 - 'placeholder' => __('Password', 'e2pdf'),
342 + 'name' => 'savename',
343 + 'placeholder' => __('PDF Local Name', 'e2pdf'),
230 344 'class' => 'e2pdf-settings-template-change'
231 345 ),
232 - 'value' => $this->view->template->get('password'),
346 + 'value' => $this->view->template->get('savename'),
233 347 ));
234 348 ?>
235 - </p>
236 -
349 + </div>
237 350 <p class="post-attributes-label-wrapper">
238 351 <label>
239 - <?php _e('Flatten', 'e2pdf'); ?>:
352 + <?php _e('PDF Flatten', 'e2pdf'); ?>:
240 353 </label>
354 + </p>
355 + <div>
241 356 <?php
242 357 $this->render('field', 'select', array(
243 358 'field' => array(
244 359 'name' => 'flatten',
@@ -245,17 +360,17 @@
245 360 'class' => 'e2pdf-settings-template-change'
246 361 ),
247 362 'value' => $this->view->template->get('flatten'),
248 363 'options' => array(
249 - '0' => 'No',
250 - '1' => 'Yes',
251 - '2' => 'Full',
364 + '0' => __('No', 'e2pdf'),
365 + '1' => __('Yes', 'e2pdf'),
366 + '2' => __('Full', 'e2pdf')
252 367 ),
253 368 ));
254 369 ?>
255 - </p>
256 -
257 - <p class="post-attributes-label-wrapper">
370 + </div>
371 + <p class="post-attributes-label-wrapper"></p>
372 + <div>
258 373 <?php
259 374 $this->render('field', 'checkbox', array(
260 375 'field' => array(
261 376 'name' => 'appearance',
@@ -266,22 +381,47 @@
266 381 'checkbox_value' => 1,
267 382 'default_value' => 0,
268 383 ));
269 384 ?>
270 - </p>
271 -
272 - <p class="post-attributes-label-wrapper">
273 - <label>
274 - <?php _e('Compression', 'e2pdf'); ?>:
275 - </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>
276 392 <?php
277 393 $this->render('field', 'select', array(
278 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(
279 419 'id' => 'e2pdf-compression',
280 420 'name' => 'compression',
281 421 'class' => 'e2pdf-settings-template-change'
282 422 ),
283 - 'value' => $this->view->template->get('compression') ? $this->view->template->get('compression') : '-1',
423 + 'value' => $this->view->template->get('compression'),
284 424 'options' => array(
285 425 '-1' => __('Default', 'e2pdf'),
286 426 '0' => '0',
287 427 '1' => '1',
@@ -295,11 +435,269 @@
295 435 '9' => '9',
296 436 ),
297 437 ));
298 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>
299 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 +
300 577 </div>
301 578 </div>
302 - </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>
303 598
599 + <p class="post-attributes-label-wrapper">
600 + <label>
601 + <?php _e('Permissions Owner Password', 'e2pdf'); ?>:
602 + </label>
304 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>
305 703 </div>