PluginProbe
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin / 2.4.2
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin v2.4.2
trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9 1.8.0 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.1 All 71 releases
← All changes | includes/class-pdfprnt-settings.php +2 -63 trunk → 2.4.2 View file →
@@ -296,9 +296,9 @@
296 296 }
297 297 }
298 298 $new_library_path = $upload_dir['basedir'] . '/vendor/';
299 299 if ( ! file_exists( $new_library_path ) ) {
300 - $warning .= __( 'The new version of the mPDF library which compatible with PHP V8.2.x is available now! Go to the Misc tab and upgrade the mPDF library if you run into errors or want to use the latest version.', 'pdf-print' );
300 + $warning .= __( 'The new version of the mPDF library which compatible with PHP V8.x.x is available now! Go to the Misc tab and upgrade the mPDF library if you run into errors or want to use the latest version.', 'pdf-print' );
301 301 }
302 302 ?>
303 303 <div class="updated below-h2"
304 304 <?php
@@ -376,13 +376,8 @@
376 376 $this->options['do_shorcodes'] = isset( $_POST['pdfprnt_do_shorcodes'] ) ? 1 : 0;
377 377
378 378 $this->options['disable_links'] = isset( $_POST['pdfprnt_disable_links'] ) ? 1 : 0;
379 379 $this->options['remove_links'] = isset( $_POST['pdfprnt_remove_links'] ) ? 1 : 0;
380 -
381 - $this->options['replace_video'] = isset( $_POST['pdfprnt_replace_video'] ) ? 1 : 0;
382 - $this->options['qr_code_link'] = isset( $_POST['pdfprnt_qr_code_link'] ) ? 1 : 0;
383 - $this->options['count_generation'] = isset( $_POST['pdfprnt_count_generation'] ) ? 1 : 0;
384 -
385 380 /* PDF Page Size */
386 381 $this->options['pdf_page_size'] = ( isset( $_POST['pdfprnt_pdf_page_size'] ) && in_array( sanitize_text_field( wp_unslash( $_POST['pdfprnt_pdf_page_size'] ) ), $this->page_sizes, true ) ) ? sanitize_text_field( wp_unslash( $_POST['pdfprnt_pdf_page_size'] ) ) : $this->options['pdf_page_size'];
387 382
388 383 /* Margins */
@@ -401,16 +396,8 @@
401 396 $this->options['show_date'] = isset( $_POST['pdfprnt_show_date'] ) ? 1 : 0;
402 397 $this->options['show_featured_image'] = isset( $_POST['pdfprnt_show_featured_image'] ) ? 1 : 0;
403 398 $this->options['show_category'] = isset( $_POST['pdfprnt_show_category'] ) ? 1 : 0;
404 399
405 - /* Hide Classes */
406 - $this->options['hide_classes'] = isset( $_POST['pdfprnt_class_hide'] ) ? array_map( 'sanitize_text_field', array_map( 'wp_unslash', $_POST['pdfprnt_class_hide'] ) ) : array();
407 - $this->options['hide_classes'] = array_slice( $this->options['hide_classes'], 0, 3 );
408 - foreach( $this->options['hide_classes'] as $key => $value ) {
409 - $check_array = explode( ',', $value );
410 - $this->options['hide_classes'][ $key ] = trim( $check_array[0] );
411 - }
412 -
413 400 /* Featured Image Size */
414 401 $this->options['featured_image_size'] = isset( $_POST['pdfprnt_featured_image_size'] ) && in_array( sanitize_text_field( wp_unslash( $_POST['pdfprnt_featured_image_size'] ) ), $this->wp_sizes, true ) ? sanitize_text_field( wp_unslash( $_POST['pdfprnt_featured_image_size'] ) ) : $this->options['featured_image_size'];
415 402
416 403 $this->options['use_default_css'] = ( isset( $_POST['pdfprnt_use_default_css'] ) ) ? 1 : 0;
@@ -568,17 +555,8 @@
568 555 </fieldset>
569 556 </td>
570 557 </tr>
571 558 <tr>
572 - <th><?php esc_html_e( 'Show count of PDF/Print generation', 'pdf-print' ); ?></th>
573 - <td>
574 - <label>
575 - <input type="checkbox" name="pdfprnt_count_generation" value="1" <?php checked( $this->options['count_generation'] ); ?> />
576 - <span class="bws_info"><?php esc_html_e( 'The number of generations will be displayed next to the Pdf/Print button.', 'pdf-print' ); ?></span>
577 - </label>
578 - </td>
579 - </tr>
580 - <tr>
581 559 <th><?php esc_html_e( 'Enable Buttons for', 'pdf-print' ); ?></th>
582 560 <td>
583 561 <fieldset>
584 562 <label class=hide-if-no-js>
@@ -686,21 +664,8 @@
686 664 </label>
687 665 </td>
688 666 </tr>
689 667 <tr>
690 - <th><?php esc_html_e( 'Replace video with QR Code image', 'pdf-print' ); ?></th>
691 - <td>
692 - <label>
693 - <input type="checkbox" name="pdfprnt_replace_video" value="1" <?php checked( $this->options['replace_video'] ); ?> />
694 - <span class="bws_info"><?php esc_html_e( 'Enable to replace video from the YouTube, Vimeo, Dailymotion, VideoPress sites with QR Code in PDF document.', 'pdf-print' ); ?></span>
695 - </label><br />
696 - <label>
697 - <input type="checkbox" name="pdfprnt_qr_code_link" value="1" <?php checked( $this->options['qr_code_link'] ); ?> />
698 - <span class="bws_info"><?php esc_html_e( 'Enable to make a QR Code a link to a video', 'pdf-print' ); ?></span>
699 - </label>
700 - </td>
701 - </tr>
702 - <tr>
703 668 <th><?php esc_html_e( 'Additional Elements', 'pdf-print' ); ?></th>
704 669 <td>
705 670 <fieldset>
706 671 <label><input<?php echo wp_kses_post( $this->change_permission_attr ); ?> type="checkbox" name="pdfprnt_show_title" value="1" class="bws_option_affect" data-affect-show=".pdfprnt-content-before-title" <?php checked( 1, $this->options['show_title'] ); ?> /> <?php esc_html_e( 'Title', 'pdf-print' ); ?></label><br>
@@ -719,34 +684,8 @@
719 684 </label><br>
720 685 </fieldset>
721 686 </td>
722 687 </tr>
723 - <tr id="pdfprnt_full_page_capture_hide">
724 - <th><?php esc_html_e( 'Classes/Ids/Elements to Hide', 'pdf-print' ); ?></th>
725 - <td>
726 - <fieldset>
727 - <?php
728 - foreach( $this->options['hide_classes'] as $hide_classes ) {
729 - ?>
730 - <label><input<?php echo wp_kses_post( $this->change_permission_attr ); ?> type="text" class="regular-text" name="pdfprnt_class_hide[]" value="<?php echo esc_html( $hide_classes ); ?>" /></label><span class="pdfprnt-class-delete"></span><br />
731 - <?php
732 - }
733 - if ( 3 > count( $this->options['hide_classes'] ) ) {
734 - for( $i = count( $this->options['hide_classes'] ); $i < 3; $i++ ) {
735 - ?>
736 - <label><input<?php echo wp_kses_post( $this->change_permission_attr ); ?> type="text" class="regular-text" name="pdfprnt_class_hide[]" value="" /></label><span class="pdfprnt-class-delete"></span><br />
737 - <?php
738 - }
739 - }
740 - ?>
741 - <span class="bws_info"><?php printf( __( 'In the field specify only one value per row marked with . or #. For example, %s or %s or %s', 'pdf-print-pro' ),
742 - '<code>.test</code>',
743 - '<code>#test .only</code>',
744 - '<code>footer</code>'
745 - ); ?></span>
746 - </fieldset>
747 - </td>
748 - </tr>
749 688 <?php do_action( 'pdfprnt_display_settings_woocommerce', $this->options, $this->change_permission_attr ); ?>
750 689 <tr id="pdfprnt_featured_image_size_wrap" valign="top">
751 690 <th scope="row"><?php esc_html_e( 'Featured Image Size', 'pdf-print' ); ?></th>
752 691 <td>
@@ -960,9 +899,9 @@
960 899 <input type="hidden" name="pdfprnt_ajax_nonce" value="<?php echo esc_attr( wp_create_nonce( 'pdfprnt_ajax_nonce' ) ); ?>" />
961 900 <div class="bws_info">
962 901 <?php
963 902 printf(
964 - esc_html__( 'This will upgrade the mPDF library to version %s (recommended). The new version of the mPDF library is compatible with PHP V8.2.x and older', 'pdf-print' ),
903 + esc_html__( 'This will upgrade the mPDF library to version %s (recommended). The new version of the mPDF library is compatible with PHP V7.2.x and older', 'pdf-print' ),
965 904 esc_attr( $this->default_options['mpdf_library_version'] )
966 905 );
967 906 ?>
968 907 </div>