| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) { |
| 3 |
die('Access denied.'); |
| 4 |
} |
| 5 |
?> |
| 6 |
<div id="taxonomy-category" class="categorydiv e2pdf-tabs-panel"> |
| 7 |
<ul id="e2pdf-tabs" class="category-tabs e2pdf-tabs"> |
| 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); ?> |
| 19 |
</ul> |
| 20 |
<div class="e2pdf-rel"> |
| 21 |
<?php if (!get_option('e2pdf_email', '') && $this->helper->get('license')->get('type') == 'FREE') { ?> |
| 22 |
<div class="e2pdf-email-lock e2pdf-ib"> |
| 23 |
<div id="e2pdf-email"> |
| 24 |
<p class="post-attributes-label-wrapper"> |
| 25 |
<label><?php _e('Enter your E-mail to unlock this features', 'e2pdf'); ?>:</label> |
| 26 |
</p> |
| 27 |
<p class="post-attributes-label-wrapper"> |
| 28 |
<?php |
| 29 |
$this->render('field', 'text', array( |
| 30 |
'field' => array( |
| 31 |
'name' => 'email', |
| 32 |
'placeholder' => __('E-mail', 'e2pdf'), |
| 33 |
'class' => 'e2pdf-w100 e2pdf-enter' |
| 34 |
), |
| 35 |
'value' => '', |
| 36 |
)); |
| 37 |
?> |
| 38 |
</p> |
| 39 |
<p class="post-attributes-label-wrapper"> |
| 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'); ?>"> |
| 41 |
</p> |
| 42 |
</div> |
| 43 |
</div> |
| 44 |
<?php } ?> |
| 45 |
<div id="e2pdf-template-style" class="tabs-panel e2pdf-rel"> |
| 46 |
<div class="e2pdf-options-panel"> |
| 47 |
<p class="post-attributes-label-wrapper"> |
| 48 |
<label><?php _e('Global Font', 'e2pdf'); ?>:</label> |
| 49 |
</p> |
| 50 |
<div class="e2pdf-grid"> |
| 51 |
<div class="e2pdf-ib e2pdf-w70 e2pdf-pr5"> |
| 52 |
<?php |
| 53 |
$this->render('field', 'select', array( |
| 54 |
'field' => array( |
| 55 |
'id' => 'e2pdf-font', |
| 56 |
'name' => 'font', |
| 57 |
'class' => 'e2pdf-settings-style-change' |
| 58 |
), |
| 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', |
| 60 |
'options' => $this->get_fonts(true), |
| 61 |
)); |
| 62 |
?> |
| 63 |
</div><div class="e2pdf-ib e2pdf-w30 e2pdf-pl5"> |
| 64 |
<?php |
| 65 |
$this->render('field', 'select', array( |
| 66 |
'field' => array( |
| 67 |
'id' => 'e2pdf-font-size', |
| 68 |
'name' => 'font_size', |
| 69 |
'class' => 'e2pdf-settings-style-change' |
| 70 |
), |
| 71 |
'value' => $this->view->template->get('font_size') ? $this->view->template->get('font_size') : '12', |
| 72 |
'options' => $this->get_font_sizes(), |
| 73 |
)); |
| 74 |
?> |
| 75 |
</div> |
| 76 |
</div> |
| 77 |
<div class="e2pdf-grid"> |
| 78 |
<div class="e2pdf-ib e2pdf-w50 e2pdf-pr5"> |
| 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> |
| 121 |
<?php |
| 122 |
$this->render('field', 'checkbox', array( |
| 123 |
'field' => array( |
| 124 |
'id' => 'e2pdf-rtl', |
| 125 |
'name' => 'rtl', |
| 126 |
'placeholder' => 'RTL', |
| 127 |
'class' => 'e2pdf-settings-style-change' |
| 128 |
), |
| 129 |
'value' => $this->view->template->get('rtl'), |
| 130 |
'checkbox_value' => 1, |
| 131 |
'default_value' => 0, |
| 132 |
)); |
| 133 |
?> |
| 134 |
</div> |
| 135 |
</div> |
| 136 |
<div class="e2pdf-ib e2pdf-w100"> |
| 137 |
<p class="post-attributes-label-wrapper"> |
| 138 |
<label><?php _e('Font Color', 'e2pdf'); ?>:</label> |
| 139 |
</p> |
| 140 |
<div class="e2pdf-colorpicker-wr"> |
| 141 |
<?php |
| 142 |
$this->render('field', 'text', array( |
| 143 |
'field' => array( |
| 144 |
'id' => 'e2pdf-font-color', |
| 145 |
'name' => 'font_color', |
| 146 |
'class' => 'e2pdf-color-picker e2pdf-color-picker-load e2pdf-settings-style-change', |
| 147 |
'data-default' => '#000000', |
| 148 |
), |
| 149 |
'value' => $this->view->template->get('font_color') ? $this->view->template->get('font_color') : '#000000', |
| 150 |
)); |
| 151 |
?> |
| 152 |
</div> |
| 153 |
</div> |
| 154 |
</div> |
| 155 |
</div> |
| 156 |
<div id="e2pdf-template-template" class="tabs-panel e2pdf-template-template e2pdf-rel" style="display: none;" > |
| 157 |
<div class="e2pdf-options-panel"> |
| 158 |
<p class="post-attributes-label-wrapper"> |
| 159 |
<label> |
| 160 |
<?php _e('Dataset Title', 'e2pdf'); ?>: |
| 161 |
</label> |
| 162 |
</p> |
| 163 |
<div id="e2pdf-item-dataset-title" class="<?php echo $this->view->template->get('item') == '-2' ? 'e2pdf-hide' : ''; ?>"> |
| 164 |
<?php |
| 165 |
$this->render('field', 'text', array( |
| 166 |
'field' => array( |
| 167 |
'name' => 'dataset_title', |
| 168 |
'placeholder' => __('Dataset Title', 'e2pdf'), |
| 169 |
'class' => 'e2pdf-settings-template-change' |
| 170 |
), |
| 171 |
'value' => $this->view->template->get('dataset_title'), |
| 172 |
)); |
| 173 |
?> |
| 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> |
| 201 |
<p class="post-attributes-label-wrapper"> |
| 202 |
<label> |
| 203 |
<?php _e('Button Title', 'e2pdf'); ?>: |
| 204 |
</label> |
| 205 |
</p> |
| 206 |
<div> |
| 207 |
<?php |
| 208 |
$this->render('field', 'text', array( |
| 209 |
'field' => array( |
| 210 |
'name' => 'button_title', |
| 211 |
'placeholder' => __('Button Title', 'e2pdf'), |
| 212 |
'class' => 'e2pdf-settings-template-change' |
| 213 |
), |
| 214 |
'value' => $this->view->template->get('button_title'), |
| 215 |
)); |
| 216 |
?> |
| 217 |
</div> |
| 218 |
<p class="post-attributes-label-wrapper"> |
| 219 |
<label> |
| 220 |
<?php _e('Dynamic PDF Source', 'e2pdf'); ?>: |
| 221 |
</label> |
| 222 |
</p> |
| 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> |
| 235 |
<p class="post-attributes-label-wrapper"> |
| 236 |
<label> |
| 237 |
<?php _e('Format', 'e2pdf'); ?>: |
| 238 |
</label> |
| 239 |
</p> |
| 240 |
<div> |
| 241 |
<?php |
| 242 |
$this->render('field', 'select', array( |
| 243 |
'field' => array( |
| 244 |
'name' => 'format', |
| 245 |
'class' => 'e2pdf-settings-template-change' |
| 246 |
), |
| 247 |
'value' => $this->view->template->get('format'), |
| 248 |
'options' => array( |
| 249 |
'pdf' => 'pdf', |
| 250 |
'jpg' => 'jpg', |
| 251 |
), |
| 252 |
)); |
| 253 |
?> |
| 254 |
</div> |
| 255 |
<p class="post-attributes-label-wrapper"> |
| 256 |
<label> |
| 257 |
<?php _e('JPG Format Output Size', 'e2pdf'); ?>: |
| 258 |
</label> |
| 259 |
</p> |
| 260 |
<div> |
| 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 |
| 285 |
$this->render('field', 'checkbox', array( |
| 286 |
'field' => array( |
| 287 |
'name' => 'inline', |
| 288 |
'placeholder' => __('Open PDF in Browser', 'e2pdf'), |
| 289 |
'class' => 'e2pdf-settings-template-change' |
| 290 |
), |
| 291 |
'value' => $this->view->template->get('inline'), |
| 292 |
'checkbox_value' => 1, |
| 293 |
'default_value' => 0, |
| 294 |
)); |
| 295 |
?> |
| 296 |
</div> |
| 297 |
<p class="post-attributes-label-wrapper"></p> |
| 298 |
<div> |
| 299 |
<?php |
| 300 |
$this->render('field', 'checkbox', array( |
| 301 |
'field' => array( |
| 302 |
'name' => 'auto', |
| 303 |
'placeholder' => __('Auto PDF Download', 'e2pdf'), |
| 304 |
'class' => 'e2pdf-settings-template-change' |
| 305 |
), |
| 306 |
'value' => $this->view->template->get('auto'), |
| 307 |
'checkbox_value' => 1, |
| 308 |
'default_value' => 0, |
| 309 |
)); |
| 310 |
?> |
| 311 |
</div> |
| 312 |
</div> |
| 313 |
</div> |
| 314 |
<div id="e2pdf-template-pdf" class="tabs-panel e2pdf-template-pdf" style="display: none;" > |
| 315 |
<div class="e2pdf-options-panel"> |
| 316 |
<p class="post-attributes-label-wrapper"> |
| 317 |
<label> |
| 318 |
<?php _e('PDF Name', 'e2pdf'); ?>: |
| 319 |
</label> |
| 320 |
</p> |
| 321 |
<div> |
| 322 |
<?php |
| 323 |
$this->render('field', 'text', array( |
| 324 |
'field' => array( |
| 325 |
'name' => 'name', |
| 326 |
'placeholder' => __('PDF Name', 'e2pdf'), |
| 327 |
'class' => 'e2pdf-settings-template-change' |
| 328 |
), |
| 329 |
'value' => $this->view->template->get('name') |
| 330 |
)); |
| 331 |
?> |
| 332 |
</div> |
| 333 |
<p class="post-attributes-label-wrapper"> |
| 334 |
<label> |
| 335 |
<?php _e('PDF Local Name', 'e2pdf'); ?>: |
| 336 |
</label> |
| 337 |
</p> |
| 338 |
<div> |
| 339 |
<?php |
| 340 |
$this->render('field', 'text', array( |
| 341 |
'field' => array( |
| 342 |
'name' => 'savename', |
| 343 |
'placeholder' => __('PDF Local Name', 'e2pdf'), |
| 344 |
'class' => 'e2pdf-settings-template-change' |
| 345 |
), |
| 346 |
'value' => $this->view->template->get('savename'), |
| 347 |
)); |
| 348 |
?> |
| 349 |
</div> |
| 350 |
<p class="post-attributes-label-wrapper"> |
| 351 |
<label> |
| 352 |
<?php _e('PDF Flatten', 'e2pdf'); ?>: |
| 353 |
</label> |
| 354 |
</p> |
| 355 |
<div> |
| 356 |
<?php |
| 357 |
$this->render('field', 'select', array( |
| 358 |
'field' => array( |
| 359 |
'name' => 'flatten', |
| 360 |
'class' => 'e2pdf-settings-template-change' |
| 361 |
), |
| 362 |
'value' => $this->view->template->get('flatten'), |
| 363 |
'options' => array( |
| 364 |
'0' => __('No', 'e2pdf'), |
| 365 |
'1' => __('Yes', 'e2pdf'), |
| 366 |
'2' => __('Full', 'e2pdf') |
| 367 |
), |
| 368 |
)); |
| 369 |
?> |
| 370 |
</div> |
| 371 |
<p class="post-attributes-label-wrapper"></p> |
| 372 |
<div> |
| 373 |
<?php |
| 374 |
$this->render('field', 'checkbox', array( |
| 375 |
'field' => array( |
| 376 |
'name' => 'appearance', |
| 377 |
'placeholder' => __('Generate appearance', 'e2pdf'), |
| 378 |
'class' => 'e2pdf-settings-template-change' |
| 379 |
), |
| 380 |
'value' => $this->view->template->get('appearance'), |
| 381 |
'checkbox_value' => 1, |
| 382 |
'default_value' => 0, |
| 383 |
)); |
| 384 |
?> |
| 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> |
| 392 |
<?php |
| 393 |
$this->render('field', 'select', array( |
| 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( |
| 419 |
'id' => 'e2pdf-compression', |
| 420 |
'name' => 'compression', |
| 421 |
'class' => 'e2pdf-settings-template-change' |
| 422 |
), |
| 423 |
'value' => $this->view->template->get('compression'), |
| 424 |
'options' => array( |
| 425 |
'-1' => __('Default', 'e2pdf'), |
| 426 |
'0' => '0', |
| 427 |
'1' => '1', |
| 428 |
'2' => '2', |
| 429 |
'3' => '3', |
| 430 |
'4' => '4', |
| 431 |
'5' => '5', |
| 432 |
'6' => '6', |
| 433 |
'7' => '7', |
| 434 |
'8' => '8', |
| 435 |
'9' => '9', |
| 436 |
), |
| 437 |
)); |
| 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> |
| 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 |
|
| 577 |
</div> |
| 578 |
</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> |
| 598 |
|
| 599 |
<p class="post-attributes-label-wrapper"> |
| 600 |
<label> |
| 601 |
<?php _e('Permissions Owner Password', 'e2pdf'); ?>: |
| 602 |
</label> |
| 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> |
| 703 |
</div> |
| 704 |
|