Changeset 3276769
- Timestamp:
- 04/18/2025 01:44:13 PM (10 months ago)
- Location:
- email-notice-wp-document-revisions
- Files:
-
- 44 added
- 15 edited
-
tags/3.2.0 (added)
-
tags/3.2.0/css (added)
-
tags/3.2.0/css/wpdr-en-mail.css (added)
-
tags/3.2.0/css/wpdr-en-mail.min.css (added)
-
tags/3.2.0/css/wpdr-en-notice.css (added)
-
tags/3.2.0/css/wpdr-en-notice.min.css (added)
-
tags/3.2.0/docs (added)
-
tags/3.2.0/docs/CODE_OF_CONDUCT.md (added)
-
tags/3.2.0/docs/README.md (added)
-
tags/3.2.0/docs/SECURITY.md (added)
-
tags/3.2.0/docs/actions.md (added)
-
tags/3.2.0/docs/capabilities.md (added)
-
tags/3.2.0/docs/changelog.md (added)
-
tags/3.2.0/docs/filters.md (added)
-
tags/3.2.0/docs/tags.md (added)
-
tags/3.2.0/docs/usage.md (added)
-
tags/3.2.0/includes (added)
-
tags/3.2.0/includes/class-wpdr-email-notice.php (added)
-
tags/3.2.0/includes/class-wpdr-en-all-users-bulk-action.php (added)
-
tags/3.2.0/includes/class-wpdr-en-ext-log-table.php (added)
-
tags/3.2.0/includes/class-wpdr-en-ext-user-table.php (added)
-
tags/3.2.0/includes/class-wpdr-en-user-log-table.php (added)
-
tags/3.2.0/js (added)
-
tags/3.2.0/js/wpdr-email-notice.js (added)
-
tags/3.2.0/js/wpdr-email-notice.min.js (added)
-
tags/3.2.0/js/wpdr-en-address.js (added)
-
tags/3.2.0/js/wpdr-en-address.min.js (added)
-
tags/3.2.0/js/wpdr-en-log.js (added)
-
tags/3.2.0/js/wpdr-en-log.min.js (added)
-
tags/3.2.0/languages (added)
-
tags/3.2.0/languages/wpdr-email-notice.pot (added)
-
tags/3.2.0/readme.txt (added)
-
tags/3.2.0/uninstall.php (added)
-
tags/3.2.0/wpdr-email-notice.php (added)
-
trunk/css/wpdr-en-mail.css (modified) (2 diffs)
-
trunk/css/wpdr-en-mail.min.css (modified) (1 diff)
-
trunk/css/wpdr-en-notice.css (modified) (1 diff)
-
trunk/css/wpdr-en-notice.min.css (modified) (1 diff)
-
trunk/docs (added)
-
trunk/docs/CODE_OF_CONDUCT.md (added)
-
trunk/docs/README.md (added)
-
trunk/docs/SECURITY.md (added)
-
trunk/docs/actions.md (added)
-
trunk/docs/capabilities.md (added)
-
trunk/docs/changelog.md (added)
-
trunk/docs/filters.md (added)
-
trunk/docs/tags.md (added)
-
trunk/docs/usage.md (added)
-
trunk/includes/class-wpdr-email-notice.php (modified) (99 diffs)
-
trunk/includes/class-wpdr-en-all-users-bulk-action.php (modified) (4 diffs)
-
trunk/includes/class-wpdr-en-ext-log-table.php (modified) (4 diffs)
-
trunk/includes/class-wpdr-en-ext-user-table.php (modified) (4 diffs)
-
trunk/includes/class-wpdr-en-user-log-table.php (modified) (5 diffs)
-
trunk/js/wpdr-email-notice.js (modified) (2 diffs)
-
trunk/js/wpdr-en-address.js (modified) (2 diffs)
-
trunk/languages/wpdr-email-notice.pot (modified) (2 diffs)
-
trunk/readme.txt (modified) (7 diffs)
-
trunk/uninstall.php (modified) (2 diffs)
-
trunk/wpdr-email-notice.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
email-notice-wp-document-revisions/trunk/css/wpdr-en-mail.css
r3140478 r3276769 1 1 /* Squeeze the entry details a little. */ 2 2 #user-entry td { 3 padding: 10px;3 padding: 5px; 4 4 } 5 5 /* Put the list title in bold. */ … … 7 7 font-weight: bold; 8 8 } 9 /* Adjust the user list column widths slightly to allow name/mail to be bigger */ 10 #rec_num 11 #pause { 12 width: 15%; 13 } -
email-notice-wp-document-revisions/trunk/css/wpdr-en-mail.min.css
r3140478 r3276769 1 #user-entry td{padding: 10px}#user-list h2{font-weight:700}1 #user-entry td{padding:5px}#user-list h2{font-weight:700}#rec_num #pause{width:15%} -
email-notice-wp-document-revisions/trunk/css/wpdr-en-notice.css
r3212640 r3276769 10 10 flex-direction: row; 11 11 flex-wrap: wrap; 12 column-gap: 15px; 12 13 vertical-align: center; 13 14 } -
email-notice-wp-document-revisions/trunk/css/wpdr-en-notice.min.css
r3212640 r3276769 1 .wpdr-en-add-meta{display:flex;flex-direction:row;flex-wrap:wrap;column-gap:15px}.wpdr-en-add-text{display:flex;flex-direction:row;flex-wrap:wrap; vertical-align:center}1 .wpdr-en-add-meta{display:flex;flex-direction:row;flex-wrap:wrap;column-gap:15px}.wpdr-en-add-text{display:flex;flex-direction:row;flex-wrap:wrap;column-gap:15px;vertical-align:center} -
email-notice-wp-document-revisions/trunk/includes/class-wpdr-email-notice.php
r3212640 r3276769 9 9 // No direct access allowed to plugin php file. 10 10 if ( ! defined( 'ABSPATH' ) ) { 11 die( esc_html__( 'You are not allowed to call this file directly.', ' wpdr-email-notice' ) );11 die( esc_html__( 'You are not allowed to call this file directly.', 'email-notice-wp-document-revisions' ) ); 12 12 } 13 13 … … 47 47 48 48 /** 49 * Default e -mail content49 * Default email content 50 50 * 51 51 * @since 2.0.0 … … 56 56 57 57 /** 58 * Default e -mail content for external users58 * Default email content for external users 59 59 * 60 60 * @since 2.0.0 … … 65 65 66 66 /** 67 * Default e -mail repeat67 * Default email repeat 68 68 * 69 69 * @since 2.0.0 … … 125 125 $table_name = $wpdb->prefix . 'wpdr_notification_log'; 126 126 127 // Related post, user, e -mail sent (Time stamp), e-mail address, Status (successful/failed).127 // Related post, user, email sent (Time stamp), email address, Status (successful/failed). 128 128 $sql[] = "CREATE TABLE $table_name ( 129 129 id bigint(20) NOT NULL AUTO_INCREMENT, … … 141 141 $table_name = $wpdb->prefix . 'wpdr_ext_notice_log'; 142 142 143 // Related post, user, e -mail sent (Time stamp), e-mail address, Status (successful/failed).143 // Related post, user, email sent (Time stamp), email address, Status (successful/failed). 144 144 $sql[] = "CREATE TABLE $table_name ( 145 145 id bigint(20) NOT NULL AUTO_INCREMENT, … … 290 290 // create custom post type. 291 291 $labels = array( 292 'name' => _x( 'Document External Lists', 'post type general name', ' wpdr-email-notice' ),293 'singular_name' => _x( 'Document External List', 'post type singular name', ' wpdr-email-notice' ),294 'add_new' => __( 'Add Document External List', ' wpdr-email-notice' ),295 'add_new_item' => __( 'Add New Document External List', ' wpdr-email-notice' ),296 'edit_item' => __( 'Edit Document External List', ' wpdr-email-notice' ),297 'new_item' => __( 'New Document External List', ' wpdr-email-notice' ),298 'view_item' => __( 'View Document External List', ' wpdr-email-notice' ),299 'view_items' => __( 'View Document External Lists', ' wpdr-email-notice' ),300 'search_items' => __( 'Search Document External Lists', ' wpdr-email-notice' ),301 'not_found' => __( 'No Document External List found', ' wpdr-email-notice' ),302 'not_found_in_trash' => __( 'No Document External Lists found in Trash', ' wpdr-email-notice' ),292 'name' => _x( 'Document External Lists', 'post type general name', 'email-notice-wp-document-revisions' ), 293 'singular_name' => _x( 'Document External List', 'post type singular name', 'email-notice-wp-document-revisions' ), 294 'add_new' => __( 'Add Document External List', 'email-notice-wp-document-revisions' ), 295 'add_new_item' => __( 'Add New Document External List', 'email-notice-wp-document-revisions' ), 296 'edit_item' => __( 'Edit Document External List', 'email-notice-wp-document-revisions' ), 297 'new_item' => __( 'New Document External List', 'email-notice-wp-document-revisions' ), 298 'view_item' => __( 'View Document External List', 'email-notice-wp-document-revisions' ), 299 'view_items' => __( 'View Document External Lists', 'email-notice-wp-document-revisions' ), 300 'search_items' => __( 'Search Document External Lists', 'email-notice-wp-document-revisions' ), 301 'not_found' => __( 'No Document External List found', 'email-notice-wp-document-revisions' ), 302 'not_found_in_trash' => __( 'No Document External Lists found in Trash', 'email-notice-wp-document-revisions' ), 303 303 'parent_item_colon' => '', 304 'menu_name' => __( 'Document Emails', ' wpdr-email-notice' ),305 'all_items' => __( 'All Document External Lists', ' wpdr-email-notice' ),304 'menu_name' => __( 'Document Emails', 'email-notice-wp-document-revisions' ), 305 'all_items' => __( 'All Document External Lists', 'email-notice-wp-document-revisions' ), 306 306 ); 307 307 … … 381 381 382 382 // support languages. 383 load_plugin_textdomain( ' wpdr-email-notice', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );383 load_plugin_textdomain( 'email-notice-wp-document-revisions', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 384 384 385 385 // Adding settings to Settings->General. 386 add_settings_section( 'wpdr_en_general_settings', __( 'Document Email Settings', 'wpdr-email-notice' ), array( $this, 'general_settings' ), 'general' ); 387 add_settings_field( 'wpdr_en_set_email_from', __( 'Email From', 'wpdr-email-notice' ), array( $this, 'set_email_from' ), 'general', 'wpdr_en_general_settings' ); 388 add_settings_field( 'wpdr_en_set_email_from_address', __( 'Email Address', 'wpdr-email-notice' ), array( $this, 'set_email_from_address' ), 'general', 'wpdr_en_general_settings' ); 389 register_setting( 'general', 'wpdr_en_set_email_from' ); 390 register_setting( 'general', 'wpdr_en_set_email_from_address' ); 386 register_setting( 387 'general', 388 'wpdr_en_set_email_from', 389 array( 390 'type' => 'string', 391 'sanitize_callback' => 'sanitize_text_field', 392 ), 393 ); 394 register_setting( 395 'general', 396 'wpdr_en_set_email_from_address', 397 array( 398 'type' => 'string', 399 'sanitize_callback' => 'sanitize_email', 400 ), 401 ); 402 add_settings_section( 'wpdr_en_general_settings', __( 'Document Email Settings', 'email-notice-wp-document-revisions' ), array( $this, 'general_settings' ), 'general' ); 403 add_settings_field( 'wpdr_en_set_email_from', __( 'Email From', 'email-notice-wp-document-revisions' ), array( $this, 'set_email_from' ), 'general', 'wpdr_en_general_settings' ); 404 add_settings_field( 'wpdr_en_set_email_from_address', __( 'Email Address', 'email-notice-wp-document-revisions' ), array( $this, 'set_email_from_address' ), 'general', 'wpdr_en_general_settings' ); 405 391 406 // Adding settings to Settings->Writing. 392 add_settings_section( 'wpdr_en_writing_settings', __( 'Document Email Settings - ', 'wpdr-email-notice' ) . __( 'Notifications', 'wpdr-email-notice' ), array( $this, 'writing_settings' ), 'writing' ); 393 add_settings_field( 'wpdr_en_set_notification_mode', __( 'Internal Notice mode', 'wpdr-email-notice' ), array( $this, 'set_notification_mode' ), 'writing', 'wpdr_en_writing_settings' ); 394 add_settings_field( 'wpdr_en_set_notification_about', __( 'Notify internal users about', 'wpdr-email-notice' ), array( $this, 'set_notification_about' ), 'writing', 'wpdr_en_writing_settings' ); 395 add_settings_field( 'wpdr_en_set_subject', __( 'Notification e-mail subject', 'wpdr-email-notice' ), array( $this, 'set_subject' ), 'writing', 'wpdr_en_writing_settings' ); 396 add_settings_field( 'wpdr_en_set_content', __( 'Internal Notice e-mail content', 'wpdr-email-notice' ), array( $this, 'set_content' ), 'writing', 'wpdr_en_writing_settings' ); 397 add_settings_field( 'wpdr_en_set_exttext', __( 'External Notice e-mail content', 'wpdr-email-notice' ), array( $this, 'set_exttext' ), 'writing', 'wpdr_en_writing_settings' ); 407 register_setting( 408 'writing', 409 'wpdr_en_set_notification_mode', 410 array( 411 'type' => 'integer', 412 'sanitize_callback' => 'intval', 413 ), 414 ); 415 register_setting( 416 'writing', 417 'wpdr_en_set_notification_about', 418 array( 419 'type' => 'string', 420 'sanitize_callback' => 'sanitize_text_field', 421 ), 422 ); 423 register_setting( 424 'writing', 425 'wpdr_en_set_subject', 426 array( 427 'type' => 'string', 428 'sanitize_callback' => 'sanitize_text_field', 429 ), 430 ); 431 register_setting( 432 'writing', 433 'wpdr_en_set_content', 434 array( 435 'type' => 'string', 436 'sanitize_callback' => 'wp_kses_post', 437 ), 438 ); 439 register_setting( 440 'writing', 441 'wpdr_en_set_exttext', 442 array( 443 'type' => 'string', 444 'sanitize_callback' => 'wp_kses_post', 445 ), 446 ); 447 register_setting( 448 'writing', 449 'wpdr_en_set_ext_attach', 450 array( 451 'type' => 'integer', 452 'sanitize_callback' => 'intval', 453 ), 454 ); 455 register_setting( 456 'writing', 457 'wpdr_en_set_repeat', 458 array( 459 'type' => 'string', 460 'sanitize_callback' => 'wp_kses_post', 461 ), 462 ); 463 add_settings_section( 'wpdr_en_writing_settings', __( 'Document Email Settings - ', 'email-notice-wp-document-revisions' ) . __( 'Notifications', 'email-notice-wp-document-revisions' ), array( $this, 'writing_settings' ), 'writing' ); 464 add_settings_field( 'wpdr_en_set_notification_mode', __( 'Internal Notice mode', 'email-notice-wp-document-revisions' ), array( $this, 'set_notification_mode' ), 'writing', 'wpdr_en_writing_settings' ); 465 add_settings_field( 'wpdr_en_set_notification_about', __( 'Notify internal users about', 'email-notice-wp-document-revisions' ), array( $this, 'set_notification_about' ), 'writing', 'wpdr_en_writing_settings' ); 466 add_settings_field( 'wpdr_en_set_subject', __( 'Notification email subject', 'email-notice-wp-document-revisions' ), array( $this, 'set_subject' ), 'writing', 'wpdr_en_writing_settings' ); 467 add_settings_field( 'wpdr_en_set_content', __( 'Internal Notice email content', 'email-notice-wp-document-revisions' ), array( $this, 'set_content' ), 'writing', 'wpdr_en_writing_settings' ); 468 add_settings_field( 'wpdr_en_set_exttext', __( 'External Notice email content', 'email-notice-wp-document-revisions' ), array( $this, 'set_exttext' ), 'writing', 'wpdr_en_writing_settings' ); 398 469 add_settings_field( 'wpdr_en_set_ext_attach', '', array( $this, 'set_ext_attach' ), 'writing', 'wpdr_en_writing_settings' ); 399 add_settings_field( 'wpdr_en_set_repeat', __( 'Notification e -mail repeat', 'wpdr-email-notice' ), array( $this, 'set_repeat' ), 'writing', 'wpdr_en_writing_settings' );470 add_settings_field( 'wpdr_en_set_repeat', __( 'Notification email repeat', 'email-notice-wp-document-revisions' ), array( $this, 'set_repeat' ), 'writing', 'wpdr_en_writing_settings' ); 400 471 // phpcs:disable 401 472 // #TODO: purge. 402 // add_settings_field( 'wpdr_en_set_notification_log', __( 'Logging', ' wpdr-email-notice' ), array( $this, 'set_notification_log' ), 'writing', 'wpdr_en_writing_settings' );473 // add_settings_field( 'wpdr_en_set_notification_log', __( 'Logging', 'email-notice-wp-document-revisions' ), array( $this, 'set_notification_log' ), 'writing', 'wpdr_en_writing_settings' ); 403 474 // phpcs:enable 404 register_setting( 'writing', 'wpdr_en_set_notification_mode' );405 register_setting( 'writing', 'wpdr_en_set_notification_about' );406 register_setting( 'writing', 'wpdr_en_set_subject' );407 register_setting( 'writing', 'wpdr_en_set_content' );408 register_setting( 'writing', 'wpdr_en_set_exttext' );409 register_setting( 'writing', 'wpdr_en_set_ext_attach' );410 register_setting( 'writing', 'wpdr_en_set_repeat' );411 475 // phpcs:disable 412 476 // #TODO: purge. … … 470 534 add_action( 'admin_notices', array( $this, 'check_error_state' ) ); 471 535 472 // Overwrite default e -mail address only if user set new value.536 // Overwrite default email address only if user set new value. 473 537 if ( get_option( 'wpdr_en_set_email_from_address' ) ) { 474 538 add_filter( 'wp_mail_from', array( $this, 'wp_mail_from' ) ); 475 539 } 476 // Overwrite default e -mail from text only if user set new value.540 // Overwrite default email from text only if user set new value. 477 541 if ( get_option( 'wpdr_en_set_email_from' ) ) { 478 542 add_filter( 'wp_mail_from_name', array( $this, 'wp_mail_from_name' ) ); … … 510 574 // phpcs:disable WordPress.Security.EscapeOutput, WordPress.WP.I18n 511 575 // translators: For this group, text surroundedby % symbols (like %recipient_name%) should not be translated. 512 self::$default_content = __( 'Dear %recipient_name%,<br/><br/>', ' wpdr-email-notice' ) .513 __( 'A new document is published. Check it out!<br/><br/><strong>%title_with_permalink%</strong><br/>%words_50%%extra%%repeat%<br/>', ' wpdr-email-notice' ) .576 self::$default_content = __( 'Dear %recipient_name%,<br/><br/>', 'email-notice-wp-document-revisions' ) . 577 __( 'A new document is published. Check it out!<br/><br/><strong>%title_with_permalink%</strong><br/>%words_50%%extra%%repeat%<br/>', 'email-notice-wp-document-revisions' ) . 514 578 // translators: %s is the link address of the user's profile. Do not translate. 515 sprintf( __( '<small>In case you do not want to receive this kind of notification you can turn it off in your <a href="%s">profile</a>. </small>', 'wpdr-email-notice' ), admin_url( 'profile.php' ) ) .516 __( '< small><br/>Also go there if you wish to change whether you will receive the document as an attachment.</small>', 'wpdr-email-notice' );517 self::$default_exttext = __( 'Dear %recipient_name%,<br/><br/>', ' wpdr-email-notice' ) .518 __( 'A new document is published. Check it out!<br/><br/><strong>%title_with_permalink%</strong><br/>%words_50%%extra%%repeat%<br/>', ' wpdr-email-notice' ) .519 __( '<small>In case you do not want to receive this kind of notification you can reply with the message "Unsubscribe".</small>', ' wpdr-email-notice' );520 self::$default_repeat = __( '<p>This document has previously been sent to you %num% time(s), with the latest sent on %last_date%.</p>', ' wpdr-email-notice' );579 sprintf( __( '<small>In case you do not want to receive this kind of notification you can turn it off in your <a href="%s">profile</a>.', 'email-notice-wp-document-revisions' ), admin_url( 'profile.php' ) ) . 580 __( '<br/>Also go there if you wish to change whether you will receive the document as an attachment.</small>', 'email-notice-wp-document-revisions' ); 581 self::$default_exttext = __( 'Dear %recipient_name%,<br/><br/>', 'email-notice-wp-document-revisions' ) . 582 __( 'A new document is published. Check it out!<br/><br/><strong>%title_with_permalink%</strong><br/>%words_50%%extra%%repeat%<br/>', 'email-notice-wp-document-revisions' ) . 583 __( '<small>In case you do not want to receive this kind of notification you can reply with the message "Unsubscribe".</small>', 'email-notice-wp-document-revisions' ); 584 self::$default_repeat = __( '<p>This document has previously been sent to you %num% time(s), with the latest sent on %last_date%.</p>', 'email-notice-wp-document-revisions' ); 521 585 // phpcs:enable WordPress.Security.EscapeOutput, WordPress.WP.I18n 522 586 self::$default_content = wp_kses_post( self::$default_content ); … … 544 608 'wpdr_en_nonce' => wp_create_nonce( 'wpdr_en_nonce' ), 545 609 'ajaxurl' => admin_url( 'admin-ajax.php' ), 546 'sending_mails' => __( 'Sending email notifications...', ' wpdr-email-notice' ),547 'error_sending' => __( 'Error sending emails.', ' wpdr-email-notice' ),548 'resend' => __( 'Re-send notification email(s)', ' wpdr-email-notice' ),549 'email_out_of' => __( 'email(s) out of', ' wpdr-email-notice' ),550 'notif_sent_check' => __( 'notification(s) sent. Check', ' wpdr-email-notice' ),551 'sent_with' => __( 'sent with', ' wpdr-email-notice' ),552 'log_issues' => __( 'log issues. Check', ' wpdr-email-notice' ),553 'log' => __( 'log', ' wpdr-email-notice' ),554 'for_details' => __( 'for details.', ' wpdr-email-notice' ),610 'sending_mails' => __( 'Sending email notifications...', 'email-notice-wp-document-revisions' ), 611 'error_sending' => __( 'Error sending emails.', 'email-notice-wp-document-revisions' ), 612 'resend' => __( 'Re-send notification email(s)', 'email-notice-wp-document-revisions' ), 613 'email_out_of' => __( 'email(s) out of', 'email-notice-wp-document-revisions' ), 614 'notif_sent_check' => __( 'notification(s) sent. Check', 'email-notice-wp-document-revisions' ), 615 'sent_with' => __( 'sent with', 'email-notice-wp-document-revisions' ), 616 'log_issues' => __( 'log issues. Check', 'email-notice-wp-document-revisions' ), 617 'log' => __( 'log', 'email-notice-wp-document-revisions' ), 618 'for_details' => __( 'for details.', 'email-notice-wp-document-revisions' ), 555 619 ); 556 620 } elseif ( 'doc_ext_list' === $post->post_type ) { … … 561 625 'ajaxurl' => admin_url( 'admin-ajax.php' ), 562 626 'user' => get_current_user_id(), 563 'add_address' => __( 'Add Address to List', ' wpdr-email-notice' ),564 'edit_address' => __( 'Edit existing Address', ' wpdr-email-notice' ),627 'add_address' => __( 'Add Address to List', 'email-notice-wp-document-revisions' ), 628 'edit_address' => __( 'Edit existing Address', 'email-notice-wp-document-revisions' ), 565 629 ); 566 630 } else { … … 614 678 $sitename = substr( $sitename, 4 ); 615 679 } 616 echo esc_html__( 'By default all notification e -mails received from "WordPress" < wordpress@', 'wpdr-email-notice' ) . esc_url( $sitename ) . ' >. ' . esc_html__( 'You can change these below.', 'wpdr-email-notice' );680 echo esc_html__( 'By default all notification emails received from "WordPress" < wordpress@', 'email-notice-wp-document-revisions' ) . esc_url( $sitename ) . ' >. ' . esc_html__( 'You can change these below.', 'email-notice-wp-document-revisions' ); 617 681 } 618 682 … … 652 716 */ 653 717 public function writing_settings() { 654 esc_html_e( 'Tags available to make e -mail subject and/or content dynamic:', 'wpdr-email-notice' );718 esc_html_e( 'Tags available to make email subject and/or content dynamic:', 'email-notice-wp-document-revisions' ); 655 719 echo '<br/>'; 656 echo '<strong>%title%</strong> ' . esc_html__( 'means title of the post', ' wpdr-email-notice' ) . '<br/>';657 echo '<strong>%permalink%</strong> ' . esc_html__( 'means URL of the post', ' wpdr-email-notice' ) . '<br/>';658 echo '<strong>%title_with_permalink%</strong> ' . esc_html__( 'means URL with title of the post', ' wpdr-email-notice' ) . '<br/>';659 echo '<strong>%author_name%</strong> ' . esc_html__( 'means the name of the post author', ' wpdr-email-notice' ) . '<br/>';660 echo '<strong>%excerpt%</strong> ' . esc_html__( 'means excerpt of the post', ' wpdr-email-notice' ) . ' ' . esc_html__( 'Only available to those who can edit the document', 'wpdr-email-notice' ) . '<br/>';661 echo '<strong>%words_n%</strong> ' . esc_html__( 'means the first n (must be an integer number) number of word(s) extracted from the post', ' wpdr-email-notice' ) . '<br/>';662 echo '<strong>%recipient_name%</strong> ' . esc_html__( 'means display name of the user who receives the e -mail', 'wpdr-email-notice' ) . '<br/>';663 echo '<strong>%repeat%</strong> ' . esc_html__( 'means output the phrase if the document has been previously e -mailed.', 'wpdr-email-notice' ) . '<br/>';720 echo '<strong>%title%</strong> ' . esc_html__( 'means title of the post', 'email-notice-wp-document-revisions' ) . '<br/>'; 721 echo '<strong>%permalink%</strong> ' . esc_html__( 'means URL of the post', 'email-notice-wp-document-revisions' ) . '<br/>'; 722 echo '<strong>%title_with_permalink%</strong> ' . esc_html__( 'means URL with title of the post', 'email-notice-wp-document-revisions' ) . '<br/>'; 723 echo '<strong>%author_name%</strong> ' . esc_html__( 'means the name of the post author', 'email-notice-wp-document-revisions' ) . '<br/>'; 724 echo '<strong>%excerpt%</strong> ' . esc_html__( 'means excerpt of the post', 'email-notice-wp-document-revisions' ) . ' ' . esc_html__( 'Only available to those who can edit the document', 'email-notice-wp-document-revisions' ) . '<br/>'; 725 echo '<strong>%words_n%</strong> ' . esc_html__( 'means the first n (must be an integer number) number of word(s) extracted from the post', 'email-notice-wp-document-revisions' ) . '<br/>'; 726 echo '<strong>%recipient_name%</strong> ' . esc_html__( 'means display name of the user who receives the email', 'email-notice-wp-document-revisions' ) . '<br/>'; 727 echo '<strong>%repeat%</strong> ' . esc_html__( 'means output the phrase if the document has been previously emailed.', 'email-notice-wp-document-revisions' ) . '<br/>'; 664 728 echo '<br/>'; 665 echo esc_html__( 'Tags available within the tag', ' wpdr-email-notice' ) . ' <strong>%repeat%</strong>';729 echo esc_html__( 'Tags available within the tag', 'email-notice-wp-document-revisions' ) . ' <strong>%repeat%</strong>'; 666 730 echo '<br/>'; 667 echo '<strong>%num%</strong> ' . esc_html__( 'means the number of times the document has been previously e -mailed.', 'wpdr-email-notice' ) . '<br/>';668 echo '<strong>%last_date%</strong> ' . esc_html__( 'means the last date that the document was e -mailed.', 'wpdr-email-notice' ) . '<br/>';669 echo '<strong>%last_time%</strong> ' . esc_html__( 'means the last date incuding time that the document was e -mailed.', 'wpdr-email-notice' ) . '<br/>';731 echo '<strong>%num%</strong> ' . esc_html__( 'means the number of times the document has been previously emailed.', 'email-notice-wp-document-revisions' ) . '<br/>'; 732 echo '<strong>%last_date%</strong> ' . esc_html__( 'means the last date that the document was emailed.', 'email-notice-wp-document-revisions' ) . '<br/>'; 733 echo '<strong>%last_time%</strong> ' . esc_html__( 'means the last date incuding time that the document was emailed.', 'email-notice-wp-document-revisions' ) . '<br/>'; 670 734 echo '<br/>'; 671 echo '<strong>%extra%</strong> ' . esc_html__( 'means output an optional extra phrase entered at the time of mailing.', ' wpdr-email-notice' ) . '<br/>';735 echo '<strong>%extra%</strong> ' . esc_html__( 'means output an optional extra phrase entered at the time of mailing.', 'email-notice-wp-document-revisions' ) . '<br/>'; 672 736 } 673 737 … … 683 747 $opt = 'Manual'; 684 748 } 685 echo '<input type="radio" name="wpdr_en_set_notification_mode" value="Auto" ' . checked( 'Auto', $opt, false ) . '>' . esc_html__( 'Auto', ' wpdr-email-notice' ) . '</input> ' . esc_html__( '(send e-mails automatically when you publish a post)', 'wpdr-email-notice' ) . '<br/>';686 echo '<input type="radio" name="wpdr_en_set_notification_mode" value="Manual" ' . checked( 'Manual', $opt, false ) . '>' . esc_html__( 'Manual', ' wpdr-email-notice' ) . '</input> ' . esc_html__( '(you need to press a button to send notification)', 'wpdr-email-notice' );749 echo '<input type="radio" name="wpdr_en_set_notification_mode" value="Auto" ' . checked( 'Auto', $opt, false ) . '>' . esc_html__( 'Auto', 'email-notice-wp-document-revisions' ) . '</input> ' . esc_html__( '(send emails automatically when you publish a post)', 'email-notice-wp-document-revisions' ) . '<br/>'; 750 echo '<input type="radio" name="wpdr_en_set_notification_mode" value="Manual" ' . checked( 'Manual', $opt, false ) . '>' . esc_html__( 'Manual', 'email-notice-wp-document-revisions' ) . '</input> ' . esc_html__( '(you need to press a button to send notification)', 'email-notice-wp-document-revisions' ); 687 751 } 688 752 … … 709 773 } 710 774 } 711 echo '<input type="checkbox" id="Chkbx_Public" name="wpdr_en_set_notification_about[Chkbx_Public]" value="Public" ' . esc_attr( $public_checked ) . '>' . esc_html__( 'Public posts', ' wpdr-email-notice' ) . '</input><br/>';712 echo '<input type="checkbox" id="Chkbx_Password" name="wpdr_en_set_notification_about[Chkbx_Password]" value="Password"' . esc_attr( $password_checked ) . '>' . esc_html__( 'Password', ' wpdr-email-notice' ) . '</input> ' . esc_html__( 'protected posts (password will', 'wpdr-email-notice' ) . ' <strong>' . esc_html__( 'NOT', 'wpdr-email-notice' ) . '</strong> ' . esc_html__( 'be included in notification e-mail)', 'wpdr-email-notice' ) . '<br/>';713 echo '<input type="checkbox" id="Chkbx_Private" name="wpdr_en_set_notification_about[Chkbx_Private]" value="Private"' . esc_attr( $private_checked ) . '>' . esc_html__( 'Private posts', ' wpdr-email-notice' ) . '</input> ';714 echo '<br />' . esc_html__( 'Notifications are sent only to those Internal users who can read the document', ' wpdr-email-notice' );715 echo '<br />' . esc_html__( 'Notifications can only be sent to External users for Public documents.', ' wpdr-email-notice' );775 echo '<input type="checkbox" id="Chkbx_Public" name="wpdr_en_set_notification_about[Chkbx_Public]" value="Public" ' . esc_attr( $public_checked ) . '>' . esc_html__( 'Public posts', 'email-notice-wp-document-revisions' ) . '</input><br/>'; 776 echo '<input type="checkbox" id="Chkbx_Password" name="wpdr_en_set_notification_about[Chkbx_Password]" value="Password"' . esc_attr( $password_checked ) . '>' . esc_html__( 'Password', 'email-notice-wp-document-revisions' ) . '</input> ' . esc_html__( 'protected posts (password will', 'email-notice-wp-document-revisions' ) . ' <strong>' . esc_html__( 'NOT', 'email-notice-wp-document-revisions' ) . '</strong> ' . esc_html__( 'be included in notification email)', 'email-notice-wp-document-revisions' ) . '<br/>'; 777 echo '<input type="checkbox" id="Chkbx_Private" name="wpdr_en_set_notification_about[Chkbx_Private]" value="Private"' . esc_attr( $private_checked ) . '>' . esc_html__( 'Private posts', 'email-notice-wp-document-revisions' ) . '</input> '; 778 echo '<br />' . esc_html__( 'Notifications are sent only to those Internal users who can read the document', 'email-notice-wp-document-revisions' ); 779 echo '<br />' . esc_html__( 'Notifications can only be sent to External users for Public documents.', 'email-notice-wp-document-revisions' ); 716 780 } 717 781 … … 724 788 public function set_subject() { 725 789 echo '<input class="regular-text ltr" type="text" id="wpdr_en_set_subject" name="wpdr_en_set_subject" placeholder="New document: %title%" value="' . esc_html( get_option( 'wpdr_en_set_subject' ) ) . '"></input>'; 726 echo '<br/><br/>' . esc_html__( 'Hint: HTML tags are not allowed here, e.g.: %title_with_permalink% will revert to %title%.', ' wpdr-email-notice' );790 echo '<br/><br/>' . esc_html__( 'Hint: HTML tags are not allowed here, e.g.: %title_with_permalink% will revert to %title%.', 'email-notice-wp-document-revisions' ); 727 791 } 728 792 … … 743 807 placeholder = "' . $place . '">' . $text . '</textarea>'; 744 808 // phpcs:enable WordPress.Security.EscapeOutput 745 echo '<br/><br/>' . esc_html__( 'Hint: HTML tags are welcome here to make your notification e -mails more personalized.', 'wpdr-email-notice' );809 echo '<br/><br/>' . esc_html__( 'Hint: HTML tags are welcome here to make your notification emails more personalized.', 'email-notice-wp-document-revisions' ); 746 810 } 747 811 … … 762 826 placeholder = "' . $place . '">' . $text . '</textarea>'; 763 827 // phpcs:enable WordPress.Security.EscapeOutput 764 echo '<br/><br/>' . esc_html__( 'Hint: HTML tags are welcome here to make your notification e -mails more personalized.', 'wpdr-email-notice' );828 echo '<br/><br/>' . esc_html__( 'Hint: HTML tags are welcome here to make your notification emails more personalized.', 'email-notice-wp-document-revisions' ); 765 829 } 766 830 … … 775 839 <label for="wpdr_en_set_ext_attach"> 776 840 <input name="wpdr_en_set_ext_attach" type="checkbox" id="wpdr_en_set_ext_attach" value="1" <?php checked( '1', get_option( 'wpdr_en_set_ext_attach' ) ); ?> /> 777 <?php esc_html_e( 'Attach the document in emails to external users.', 'wpdr-email-notice' ); ?></label><br />841 <?php esc_html_e( 'Attach the Document in emails to external users.', 'email-notice-wp-document-revisions' ); ?></label><br /> 778 842 <?php 779 echo '<br/>' . esc_html__( ' Remember that Public documents may not always be accessible, so these may need to be attached.', 'wpdr-email-notice' );843 echo '<br/>' . esc_html__( 'Public documents may not always be accessible to External users, so these may need to be attached.', 'email-notice-wp-document-revisions' ); 780 844 } 781 845 … … 791 855 placeholder = "' . self::$default_repeat . '">' . wp_kses_post( get_option( 'wpdr_en_set_repeat' ) ) . '</textarea>'; 792 856 // phpcs:enable WordPress.Security.EscapeOutput 793 echo '<br/><br/>' . esc_html__( 'Hint: HTML tags are welcome here to make your notification e -mails more personalized.', 'wpdr-email-notice' );857 echo '<br/><br/>' . esc_html__( 'Hint: HTML tags are welcome here to make your notification emails more personalized.', 'email-notice-wp-document-revisions' ); 794 858 } 795 859 … … 847 911 // Header. 848 912 echo '<div class="wpdr_en-header">'; 849 echo '<h3>' . esc_html__( 'Document Email Settings', ' wpdr-email-notice' ) . '</h3>';913 echo '<h3>' . esc_html__( 'Document Email Settings', 'email-notice-wp-document-revisions' ) . '</h3>'; 850 914 echo '</div>'; // wpdr_en-header end. 851 915 … … 858 922 859 923 echo '<div class="wpdr_en-content">'; 860 echo '<input type="checkbox" name="wpdr_en_user_notification" value="1" ' . esc_attr( $wpdr_en_user_notification ) . '>' . esc_html__( 'Notify me by e -mail when a new document is published', 'wpdr-email-notice' ) . '</input><br/>';861 862 echo '<input type="checkbox" name="wpdr_en_user_attachment" value="1" ' . esc_attr( $wpdr_en_user_attachment ) . '>' . esc_html__( 'Also send me the document as an attachment by e -mail when a new document is published', 'wpdr-email-notice' ) . '</input><br/>';924 echo '<input type="checkbox" name="wpdr_en_user_notification" value="1" ' . esc_attr( $wpdr_en_user_notification ) . '>' . esc_html__( 'Notify me by email when a new document is published', 'email-notice-wp-document-revisions' ) . '</input><br/>'; 925 926 echo '<input type="checkbox" name="wpdr_en_user_attachment" value="1" ' . esc_attr( $wpdr_en_user_attachment ) . '>' . esc_html__( 'Also send me the document as an attachment by email when a new document is published', 'email-notice-wp-document-revisions' ) . '</input><br/>'; 863 927 echo '</div>'; // wpdr_en-content end. 864 928 echo '</div>'; // wpdr_en-wrapper end. … … 967 1031 */ 968 1032 public function add_metabox_head() { 969 add_meta_box( 'wpdr_en_sectionid', __( 'Document Email Notifications', ' wpdr-email-notice' ), array( $this, 'add_metabox' ), 'document', 'side', 'high' );1033 add_meta_box( 'wpdr_en_sectionid', __( 'Document Email Notifications', 'email-notice-wp-document-revisions' ), array( $this, 'add_metabox' ), 'document', 'side', 'high' ); 970 1034 } 971 1035 … … 981 1045 wp_nonce_field( 'wpdr_en_meta_box', 'wpdr_en_meta_box_nonce' ); 982 1046 $pstatus = $this->post_status( $document_id ); 1047 1048 // Is extra text possible? 1049 $extra_int = str_contains( $this->get_content( -1 ), '%extra%' ); 1050 $extra_ext = str_contains( $this->get_content( 0 ), '%extra%' ); 1051 $extra = $extra_int || $extra_ext; 1052 1053 echo '<div class="wpdr-en-add-meta"><div>'; 1054 if ( $extra ) { 1055 echo '<div>' . esc_html__( 'Optional Extra text for this specific mailing', 'email-notice-wp-document-revisions' ) . '<fieldset>'; 1056 echo '<textarea rows="4" cols="30" name="wpdr-en-extra" id="wpdr-en-extra"' . ( $extra ? '' : ' disabled' ) . '></textarea><br />'; 1057 echo '<label class="screen-reader-text" for="wpdr-en-extra">' . esc_html__( 'Optional Extra text', 'email-notice-wp-document-revisions' ) . '</label>'; 1058 esc_html_e( 'Enter any extra text and click Add Extra text before (re)sending.', 'email-notice-wp-document-revisions' ); 1059 echo '</fieldset></div><br />'; 1060 } else { 1061 echo '<div>' . esc_html__( 'Optional Extra text not configured in templates', 'email-notice-wp-document-revisions' ) . '</div><br />'; 1062 } 983 1063 // Internal user lists box. 984 1064 if ( self::$internal_list_needed ) { … … 986 1066 $recipients = $this->prepare_mail_recipients( $document_id ); 987 1067 $hasrecipient = ! empty( $recipients ); 988 echo '<div class="wpdr-en-add-meta"><div>';989 1068 echo '<div class="wpdr-en-add-text"><div>'; 990 1069 if ( ( ! empty( $notification_sent ) || '1' === $notification_sent ) && in_array( $pstatus, array( 'Public', 'Password protected', 'Private' ), true ) && $hasrecipient ) { 991 echo '<input type="button" id="wpdr-en-notify" class="button-secondary" value="' . esc_html__( 'Re-send notification email(s)', ' wpdr-email-notice' ) . '" />';1070 echo '<input type="button" id="wpdr-en-notify" class="button-secondary" value="' . esc_html__( 'Re-send notification email(s)', 'email-notice-wp-document-revisions' ) . '" />'; 992 1071 } elseif ( in_array( $pstatus, array( 'Public', 'Password protected', 'Private' ), true ) && ( empty( $notification_sent ) || '0' === $notification_sent ) && $hasrecipient ) { 993 echo '<input type="button" id="wpdr-en-notify" class="button-secondary" value="' . esc_html__( 'Send notification email(s)', ' wpdr-email-notice' ) . '"/>';1072 echo '<input type="button" id="wpdr-en-notify" class="button-secondary" value="' . esc_html__( 'Send notification email(s)', 'email-notice-wp-document-revisions' ) . '"/>'; 994 1073 } elseif ( empty( $notification_sent ) || '0' === $notification_sent ) { 995 echo '<input type="button" id="wpdr-en-notify" class="button-secondary" value="' . esc_html__( 'Send notification email(s)', ' wpdr-email-notice' ) . '" disabled/>';1074 echo '<input type="button" id="wpdr-en-notify" class="button-secondary" value="' . esc_html__( 'Send notification email(s)', 'email-notice-wp-document-revisions' ) . '" disabled/>'; 996 1075 } elseif ( ! empty( $notification_sent ) || '1' === $notification_sent ) { 997 echo '<input type="button" id="wpdr-en-notify" class="button-secondary" value="' . esc_html__( 'Re-send notification email(s)', 'wpdr-email-notice' ) . '" disabled/>'; 998 } 999 echo '</div><div style="margin-left: 5px;"><label>'; 1000 // Is extra text available for internal. 1001 if ( str_contains( $this->get_content( -1 ), '%extra%' ) ) { 1002 echo '<input type="checkbox" id="wpdr-en-int-extra" value="0" disabled />'; 1003 $extra = true; 1004 } else { 1005 echo '<input type="checkbox" id="wpdr-en-int-extra" value="0" class="wpdr_en_not_use" disabled />'; 1006 $extra = false; 1007 } 1008 echo esc_html__( 'Add Extra text', 'wpdr-email-notice' ) . '</label></div></div>'; 1076 echo '<input type="button" id="wpdr-en-notify" class="button-secondary" value="' . esc_html__( 'Re-send notification email(s)', 'email-notice-wp-document-revisions' ) . '" disabled/>'; 1077 } 1078 echo '</div>'; 1079 if ( $extra ) { 1080 echo '<div style="margin-left: 5px;"><label>'; 1081 // Is extra text available for internal. 1082 if ( $extra_int ) { 1083 echo '<input type="checkbox" id="wpdr-en-int-extra" value="0" disabled />'; 1084 } else { 1085 echo '<input type="checkbox" id="wpdr-en-int-extra" value="0" class="wpdr_en_not_use" disabled />'; 1086 } 1087 echo esc_html__( 'Add Extra text', 'email-notice-wp-document-revisions' ) . '</label></div></div>'; 1088 } 1009 1089 } 1010 1090 // Pass document id to jQuery. … … 1017 1097 /* To debug uncomment the following. 1018 1098 if ( in_array( $pstatus, array( 'Public','Password protected','Private' ), true ) ) { 1019 _e( 'Can send mail', ' wpdr-email-notice' );1099 _e( 'Can send mail', 'email-notice-wp-document-revisions' ); 1020 1100 } else { 1021 _e( 'Should not send mail', ' wpdr-email-notice' );1101 _e( 'Should not send mail', 'email-notice-wp-document-revisions' ); 1022 1102 } 1023 1103 echo '<br/>'; 1024 1104 if ( empty($notification_sent ) || '0' === $notification_sent ) { 1025 _e( 'Not yet sent', ' wpdr-email-notice' );1105 _e( 'Not yet sent', 'email-notice-wp-document-revisions' ); 1026 1106 } else { 1027 _e( 'Already sent', ' wpdr-email-notice' );1107 _e( 'Already sent', 'email-notice-wp-document-revisions' ); 1028 1108 } 1029 1109 echo '<br/>'; 1030 1110 if ( $hasrecipient ) { 1031 _e( 'Recipient exists', ' wpdr-email-notice' );1111 _e( 'Recipient exists', 'email-notice-wp-document-revisions' ); 1032 1112 } else { 1033 _e( 'No recipient', ' wpdr-email-notice' );1113 _e( 'No recipient', 'email-notice-wp-document-revisions' ); 1034 1114 } 1035 1115 */ 1036 1116 // phpcs:enable 1037 echo '<span id="wpdr-en-message" style="display: none; margin-left: 5px;">' . esc_html__( 'Sending email notifications...', ' wpdr-email-notice' ) . '</span>';1117 echo '<span id="wpdr-en-message" style="display: none; margin-left: 5px;">' . esc_html__( 'Sending email notifications...', 'email-notice-wp-document-revisions' ) . '</span>'; 1038 1118 echo '</span></div>'; 1039 1119 // external users. … … 1046 1126 if ( ( ! empty( $ext_notice_sent ) || '1' === $ext_notice_sent ) && 'Public' === $pstatus && $hasextrecipient ) { 1047 1127 echo '<div class="wpdr-en-add-text"><div>'; 1048 echo '<input type="button" id="wpdr-en-ext-note" class="button-secondary" value="' . esc_html__( 'Re-send external list email(s)', 'wpdr-email-notice' ) . '" />'; 1128 echo '<input type="button" id="wpdr-en-ext-note" class="button-secondary" value="' . esc_html__( 'Re-send external list email(s)', 'email-notice-wp-document-revisions' ) . '" />'; 1129 echo '</div>'; 1049 1130 // Is extra text available for external. 1050 echo '</div><div style="margin-left: 5px; margin-right: 5px;"><label>'; 1051 if ( str_contains( $this->get_content( 0 ), '%extra%' ) ) { 1052 echo '<input type="checkbox" id="wpdr-en-ext-extra" value="0" disabled />'; 1053 $extra = true; 1054 } else { 1055 echo '<input type="checkbox" id="wpdr-en-ext-extra" value="0" class="wpdr_en_not_use" disabled />'; 1056 } 1057 echo esc_html__( 'Add Extra text', 'wpdr-email-notice' ) . '</label></div></div>'; 1131 if ( $extra ) { 1132 echo '<div style="margin-left: 5px; margin-right: 5px;"><label>'; 1133 if ( $extra_ext ) { 1134 echo '<input type="checkbox" id="wpdr-en-ext-extra" value="0" disabled />'; 1135 } else { 1136 echo '<input type="checkbox" id="wpdr-en-ext-extra" value="0" class="wpdr_en_not_use" disabled />'; 1137 } 1138 echo esc_html__( 'Add Extra text', 'email-notice-wp-document-revisions' ) . '</label></div>'; 1139 } 1140 echo '</div>'; 1058 1141 // output the list(s) available (text box readonly if cannot edit the lists). 1059 1142 foreach ( $ext_lists as $list ) { … … 1064 1147 } elseif ( 'Public' === $pstatus && ( empty( $ext_notice_sent ) || '0' === $ext_notice_sent ) && $hasextrecipient ) { 1065 1148 echo '<div class="wpdr-en-add-text"><div>'; 1066 echo '<input type="button" id="wpdr-en-ext-note" class="button-secondary" value="' . esc_html__( 'Send external list email(s)', ' wpdr-email-notice' ) . '"/>';1149 echo '<input type="button" id="wpdr-en-ext-note" class="button-secondary" value="' . esc_html__( 'Send external list email(s)', 'email-notice-wp-document-revisions' ) . '"/>'; 1067 1150 // Is extra text available for external. 1068 1151 echo '</div><div style=" 5px; margin-right: 5px;"><label>'; … … 1073 1156 echo '<input type="checkbox" id="wpdr-en-ext-extra" value="0" class="wpdr_en_not_use" disabled />'; 1074 1157 } 1075 echo esc_html__( 'Add Extra text', ' wpdr-email-notice' ) . '</label></div>';1158 echo esc_html__( 'Add Extra text', 'email-notice-wp-document-revisions' ) . '</label></div>'; 1076 1159 // output the list(s) available (text box readonly if cannot edit the lists). 1077 1160 foreach ( $ext_lists as $list ) { … … 1081 1164 } 1082 1165 } elseif ( empty( $ext_notice_sent ) || '0' === $ext_notice_sent ) { 1083 echo '<input type="button" id="wpdr-en-ext-note" class="button-secondary" value="' . esc_html__( 'Send external list email(s)', ' wpdr-email-notice' ) . '" disabled/>';1166 echo '<input type="button" id="wpdr-en-ext-note" class="button-secondary" value="' . esc_html__( 'Send external list email(s)', 'email-notice-wp-document-revisions' ) . '" disabled/>'; 1084 1167 } elseif ( ! empty( $ext_notice_sent ) || '1' === $ext_notice_sent ) { 1085 echo '<input type="button" id="wpdr-en-ext-note" class="button-secondary" value="' . esc_html__( 'Re-send external list email(s)', 'wpdr-email-notice' ) . '" disabled/>'; 1086 } 1087 echo '</div><div><p>' . esc_html__( 'Optional Extra text', 'wpdr-email-notice' ) . '</p><fieldset>'; 1088 echo '<textarea rows="4" cols="30" name="wpdr-en-extra" id="wpdr-en-extra"' . ( $extra ? '' : ' disabled' ) . '></textarea><br />'; 1089 echo '<label class="screen-reader-text" for="wpdr-en-extra">' . esc_html__( 'Optional Extra text', 'wpdr-email-notice' ) . '</label>'; 1090 esc_html_e( 'Enter any extra text for this specific mailing and click Add Extra text.', 'wpdr-email-notice' ); 1091 echo '</fieldset></div></div>'; 1168 echo '<input type="button" id="wpdr-en-ext-note" class="button-secondary" value="' . esc_html__( 'Re-send external list email(s)', 'email-notice-wp-document-revisions' ) . '" disabled/>'; 1169 } 1170 echo '</div>'; 1171 echo '</div>'; 1092 1172 } 1093 1173 … … 1103 1183 */ 1104 1184 public function notification_log_menu() { 1105 add_submenu_page( 'edit.php?post_type=doc_ext_list', __( 'External User Email Log', ' wpdr-email-notice' ), __( 'External User Email Log', 'wpdr-email-notice' ), 'edit_documents', 'wpdr_en_ext_notice_log', array( $this, 'ext_notice_log_list' ) );1185 add_submenu_page( 'edit.php?post_type=doc_ext_list', __( 'External User Email Log', 'email-notice-wp-document-revisions' ), __( 'External User Email Log', 'email-notice-wp-document-revisions' ), 'edit_documents', 'wpdr_en_ext_notice_log', array( $this, 'ext_notice_log_list' ) ); 1106 1186 // internal list menu item may be removed later. 1107 add_submenu_page( 'edit.php?post_type=doc_ext_list', __( 'Internal User Email Log', ' wpdr-email-notice' ), __( 'Internal User Email Log', 'wpdr-email-notice' ), 'edit_documents', 'wpdr_en_notification_log', array( $this, 'notification_log_list' ) );1187 add_submenu_page( 'edit.php?post_type=doc_ext_list', __( 'Internal User Email Log', 'email-notice-wp-document-revisions' ), __( 'Internal User Email Log', 'email-notice-wp-document-revisions' ), 'edit_documents', 'wpdr_en_notification_log', array( $this, 'notification_log_list' ) ); 1108 1188 } 1109 1189 … … 1120 1200 $result = array( 1121 1201 'error' => true, 1122 'error_msg' => __( 'Something went wrong', ' wpdr-email-notice' ),1202 'error_msg' => __( 'Something went wrong', 'email-notice-wp-document-revisions' ), 1123 1203 'error_code' => 'F-11', 1124 1204 ); … … 1131 1211 $result = array( 1132 1212 'error' => true, 1133 'error_msg' => __( 'Something went wrong', ' wpdr-email-notice' ),1213 'error_msg' => __( 'Something went wrong', 'email-notice-wp-document-revisions' ), 1134 1214 'error_code' => 'F-12', 1135 1215 ); … … 1142 1222 $result = array( 1143 1223 'error' => true, 1144 'error_msg' => __( 'Something went wrong', ' wpdr-email-notice' ),1224 'error_msg' => __( 'Something went wrong', 'email-notice-wp-document-revisions' ), 1145 1225 'error_code' => 'F-13', 1146 1226 ); … … 1166 1246 $result = array( 1167 1247 'error' => true, 1168 'error_msg' => __( 'Something went wrong', ' wpdr-email-notice' ),1248 'error_msg' => __( 'Something went wrong', 'email-notice-wp-document-revisions' ), 1169 1249 'error_code' => 'F-14', 1170 1250 ); … … 1238 1318 $result = array( 1239 1319 'error' => true, 1240 'error_msg' => __( 'Something went wrong', ' wpdr-email-notice' ),1320 'error_msg' => __( 'Something went wrong', 'email-notice-wp-document-revisions' ), 1241 1321 'error_code' => 'F-11', 1242 1322 ); … … 1249 1329 $result = array( 1250 1330 'error' => true, 1251 'error_msg' => __( 'Something went wrong', ' wpdr-email-notice' ),1331 'error_msg' => __( 'Something went wrong', 'email-notice-wp-document-revisions' ), 1252 1332 'error_code' => 'F-12', 1253 1333 ); … … 1260 1340 $result = array( 1261 1341 'error' => true, 1262 'error_msg' => __( 'Something went wrong', ' wpdr-email-notice' ),1342 'error_msg' => __( 'Something went wrong', 'email-notice-wp-document-revisions' ), 1263 1343 'error_code' => 'F-13', 1264 1344 ); … … 1276 1356 $result = array( 1277 1357 'error' => true, 1278 'error_msg' => __( 'Something went wrong', ' wpdr-email-notice' ),1358 'error_msg' => __( 'Something went wrong', 'email-notice-wp-document-revisions' ), 1279 1359 'error_code' => 'F-14', 1280 1360 ); … … 1288 1368 $result = array( 1289 1369 'error' => true, 1290 'error_msg' => __( 'Something went wrong', ' wpdr-email-notice' ),1370 'error_msg' => __( 'Something went wrong', 'email-notice-wp-document-revisions' ), 1291 1371 'error_code' => 'F-15', 1292 1372 ); … … 1311 1391 $result = array( 1312 1392 'error' => true, 1313 'error_msg' => __( 'Something went wrong', ' wpdr-email-notice' ),1393 'error_msg' => __( 'Something went wrong', 'email-notice-wp-document-revisions' ), 1314 1394 'error_code' => 'F-16', 1315 1395 ); … … 1355 1435 $result = array( 1356 1436 'error' => true, 1357 'error_msg' => __( 'Something went wrong', ' wpdr-email-notice' ),1437 'error_msg' => __( 'Something went wrong', 'email-notice-wp-document-revisions' ), 1358 1438 'logged_count' => 0, 1359 1439 'sent_count' => 0, … … 1443 1523 public function notification_log_list() { 1444 1524 if ( ! current_user_can( 'edit_documents' ) ) { 1445 wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', ' wpdr-email-notice' ) );1525 wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'email-notice-wp-document-revisions' ) ); 1446 1526 } 1447 1527 … … 1451 1531 // #TODO: add filter/search. 1452 1532 echo '<div class="wrap">'; 1453 echo '<h1 class="wp-heading-inline">' . esc_html__( 'Document Email Notification Log', ' wpdr-email-notice' ) . '</h1>';1533 echo '<h1 class="wp-heading-inline">' . esc_html__( 'Document Email Notification Log', 'email-notice-wp-document-revisions' ) . '</h1>'; 1454 1534 $wpdr_en_notification_log_table = new WPDR_EN_User_Log_Table(); 1455 1535 $wpdr_en_notification_log_table->screen = convert_to_screen( null ); … … 1458 1538 echo '<input type="hidden" name="post_type" value="doc_ext_list" />'; 1459 1539 echo '<input type="hidden" name="page" value="wpdr_en_notification_log" />'; 1460 $wpdr_en_notification_log_table->search_box( esc_html__( 'Search', ' wpdr-email-notice' ), 'search_id' );1540 $wpdr_en_notification_log_table->search_box( esc_html__( 'Search', 'email-notice-wp-document-revisions' ), 'search_id' ); 1461 1541 echo '</form>'; 1462 1542 $wpdr_en_notification_log_table->display(); 1463 echo '<p>' . esc_html__( 'Note: Success denotes that the mail was successfully received by your e-mail system.', 'wpdr-email-notice' ) . '</p>';1464 echo '<p>' . esc_html__( 'The mail delivery process to the recipient is managed within your e -mail system.', 'wpdr-email-notice' ) . '</p>';1543 echo '<p>' . esc_html__( 'Note: Success denotes that the email was successfully received by your email system.', 'email-notice-wp-document-revisions' ) . '</p>'; 1544 echo '<p>' . esc_html__( 'The mail delivery process to the recipient is managed within your email system.', 'email-notice-wp-document-revisions' ) . '</p>'; 1465 1545 echo '</div>'; 1466 1546 } … … 1474 1554 public function ext_notice_log_list() { 1475 1555 if ( ! current_user_can( 'edit_documents' ) ) { 1476 wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', ' wpdr-email-notice' ) );1556 wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'email-notice-wp-document-revisions' ) ); 1477 1557 } 1478 1558 … … 1482 1562 // #TODO: add filter/search. 1483 1563 echo '<div class="wrap">'; 1484 echo '<h1 class="wp-heading-inline">' . esc_html__( 'Document Email External Notice Log', ' wpdr-email-notice' ) . '</h1>';1564 echo '<h1 class="wp-heading-inline">' . esc_html__( 'Document Email External Notice Log', 'email-notice-wp-document-revisions' ) . '</h1>'; 1485 1565 $wpdr_en_ext_notice_log_table = new WPDR_EN_Ext_Log_Table(); 1486 1566 $wpdr_en_ext_notice_log_table->screen = convert_to_screen( null ); … … 1489 1569 echo '<input type="hidden" name="post_type" value="doc_ext_list" />'; 1490 1570 echo '<input type="hidden" name="page" value="wpdr_en_ext_notice_log" />'; 1491 $wpdr_en_ext_notice_log_table->search_box( esc_html__( 'Search', ' wpdr-email-notice' ), 'search_id' );1571 $wpdr_en_ext_notice_log_table->search_box( esc_html__( 'Search', 'email-notice-wp-document-revisions' ), 'search_id' ); 1492 1572 echo '</form>'; 1493 1573 $wpdr_en_ext_notice_log_table->display(); 1494 echo '<p>' . esc_html__( 'Note: Success denotes that the mail was successfully received by your e -mail system.', 'wpdr-email-notice' ) . '</p>';1495 echo '<p>' . esc_html__( 'The delivery process to the recipient is managed within your e -mail system.', 'wpdr-email-notice' ) . '</p>';1574 echo '<p>' . esc_html__( 'Note: Success denotes that the mail was successfully received by your email system.', 'email-notice-wp-document-revisions' ) . '</p>'; 1575 echo '<p>' . esc_html__( 'The delivery process to the recipient is managed within your email system.', 'email-notice-wp-document-revisions' ) . '</p>'; 1496 1576 echo '</div>'; 1497 1577 } … … 1508 1588 private static function ext_user_list( $post_id = null ) { 1509 1589 if ( ! current_user_can( 'edit_doc_ext_lists' ) ) { 1510 wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', ' wpdr-email-notice' ) );1590 wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'email-notice-wp-document-revisions' ) ); 1511 1591 } 1512 1592 … … 1525 1605 add_filter( 'set_url_scheme', array( __CLASS__, 'set_url_scheme' ), 10, 3 ); 1526 1606 echo '<div class="wrap" id="user-list">'; 1527 echo '<h2 class="wp-heading-inline">' . esc_html__( 'User Addressee List', ' wpdr-email-notice' ) . '</h2>';1607 echo '<h2 class="wp-heading-inline">' . esc_html__( 'User Addressee List', 'email-notice-wp-document-revisions' ) . '</h2>'; 1528 1608 $wpdr_en_ext_user_table = new WPDR_EN_Ext_User_Table(); 1529 1609 $wpdr_en_ext_user_table->prepare_items(); 1530 $wpdr_en_ext_user_table->search_box( esc_html__( 'Search', ' wpdr-email-notice' ), 'search_id' );1610 $wpdr_en_ext_user_table->search_box( esc_html__( 'Search', 'email-notice-wp-document-revisions' ), 'search_id' ); 1531 1611 $wpdr_en_ext_user_table->display(); 1532 1612 echo '<input id="empty_addr" type="hidden" value="' . esc_attr( $wpdr_en_ext_user_table::$no_addr ) . '">'; … … 1595 1675 // replace standard excerpt metabox with adapted one. 1596 1676 remove_meta_box( 'postexcerpt', 'doc_ext_list', 'normal' ); 1597 add_meta_box( 'del_parms', __( 'List Attributes', ' wpdr-email-notice' ), array( &$this, 'del_attrs_meta_box' ), 'doc_ext_list', 'normal', 'high' );1598 1599 add_meta_box( 'doc_ext_list', __( 'Document External User List', ' wpdr-email-notice' ), array( &$this, 'doc_ext_list_metabox' ), 'doc_ext_list', 'normal', 'high' );1677 add_meta_box( 'del_parms', __( 'List Attributes', 'email-notice-wp-document-revisions' ), array( &$this, 'del_attrs_meta_box' ), 'doc_ext_list', 'normal', 'high' ); 1678 1679 add_meta_box( 'doc_ext_list', __( 'Document External User List', 'email-notice-wp-document-revisions' ), array( &$this, 'doc_ext_list_metabox' ), 'doc_ext_list', 'normal', 'high' ); 1600 1680 } 1601 1681 … … 1608 1688 public function doc_ext_list_metabox() { 1609 1689 if ( ! current_user_can( 'edit_doc_ext_lists' ) ) { 1610 wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', ' wpdr-email-notice' ) );1690 wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'email-notice-wp-document-revisions' ) ); 1611 1691 } 1612 1692 … … 1618 1698 <tr> 1619 1699 <td>User Name</td> 1620 <td><input type="text" id="wpdr-en-user-name" name="user-name" value="" onblur="check_address()" /></td>1700 <td><input type="text" id="wpdr-en-user-name" name="user-name" value="" onblur="check_address()" size=30 /></td> 1621 1701 </tr> 1622 1702 <tr> 1623 1703 <td>Email Address</td> 1624 <td><input type="text" id="wpdr-en-email" name="email" value="" onblur="check_address()" /></td>1704 <td><input type="text" id="wpdr-en-email" name="email" value="" onblur="check_address()" size=30 /></td> 1625 1705 </tr> 1626 1706 <tr> … … 1630 1710 <tr> 1631 1711 <td><div id="clear_address" name="clear_address" style="display:none;" > 1632 <input type="submit" class="button button-large" value="<?php echo esc_html_e( 'Clear values', ' wpdr-email-notice' ); ?>" onclick="wpdr_en_clear()"/>1712 <input type="submit" class="button button-large" value="<?php echo esc_html_e( 'Clear values', 'email-notice-wp-document-revisions' ); ?>" onclick="wpdr_en_clear()"/> 1633 1713 </div></td> 1634 <td><input type="submit" id="add_address" name="add_address" class="button button-large" value="<?php echo esc_html_e( 'Add Address to List', ' wpdr-email-notice' ); ?>" onclick="wpdr_en_insert()" disabled /></td>1714 <td><input type="submit" id="add_address" name="add_address" class="button button-large" value="<?php echo esc_html_e( 'Add Address to List', 'email-notice-wp-document-revisions' ); ?>" onclick="wpdr_en_insert()" disabled /></td> 1635 1715 </tr> 1636 1716 <tr> … … 1657 1737 public function del_attrs_meta_box() { 1658 1738 if ( ! current_user_can( 'edit_doc_ext_lists' ) ) { 1659 wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', ' wpdr-email-notice' ) );1739 wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'email-notice-wp-document-revisions' ) ); 1660 1740 } 1661 1741 … … 1667 1747 $pause = (int) get_post_meta( $post->ID, 'wpdr_en_pause', true ); 1668 1748 ?> 1669 <h3 id="tm_label" class="hndle" style="padding-left: 0;"><?php esc_html_e( 'Match Rule', ' wpdr-email-notice' ); ?></h3>1670 <div id="tm_descr"><?php esc_html_e( 'Choose whether any or all of this lists taxonomy elements must match those on the document to be considered a match.', ' wpdr-email-notice' ); ?></div>1749 <h3 id="tm_label" class="hndle" style="padding-left: 0;"><?php esc_html_e( 'Match Rule', 'email-notice-wp-document-revisions' ); ?></h3> 1750 <div id="tm_descr"><?php esc_html_e( 'Choose whether any or all of this lists taxonomy elements must match those on the document to be considered a match.', 'email-notice-wp-document-revisions' ); ?></div> 1671 1751 <div id="tm_ruled" role="radiogroup" aria-labelledby="tm_label" aria-describedby="tm_descr"> 1672 1752 <fieldset> 1673 <label><input type="radio" id="tm_any" name="tm_rule" <?php checked( 0, $tm_rule, true ); ?> value="0"><?php esc_html_e( 'Any taxonomy element', ' wpdr-email-notice' ); ?></label><br />1674 <label><input type="radio" id="tm_all" name="tm_rule" <?php checked( 1, $tm_rule, true ); ?> value="1"><?php esc_html_e( 'All taxonomy elements', ' wpdr-email-notice' ); ?></label>1753 <label><input type="radio" id="tm_any" name="tm_rule" <?php checked( 0, $tm_rule, true ); ?> value="0"><?php esc_html_e( 'Any taxonomy element', 'email-notice-wp-document-revisions' ); ?></label><br /> 1754 <label><input type="radio" id="tm_all" name="tm_rule" <?php checked( 1, $tm_rule, true ); ?> value="1"><?php esc_html_e( 'All taxonomy elements', 'email-notice-wp-document-revisions' ); ?></label> 1675 1755 </fieldset> 1676 1756 </div> 1677 <h3 id="attach_label" class="hndle" style="padding-left: 0;"><?php esc_html_e( 'Document Attach', ' wpdr-email-notice' ); ?></h3>1757 <h3 id="attach_label" class="hndle" style="padding-left: 0;"><?php esc_html_e( 'Document Attach', 'email-notice-wp-document-revisions' ); ?></h3> 1678 1758 <fieldset> 1679 1759 <input type="checkbox" id="wpdr_en_attach" name="wpdr_en_attach" value="<?php echo esc_attr( $attach ) . '" ' . checked( 1, $attach, false ); ?>> 1680 <label for="wpdr_en_attach"><?php esc_html_e( 'Attach Document to Notification E -mails', 'wpdr-email-notice' ); ?></label>1760 <label for="wpdr_en_attach"><?php esc_html_e( 'Attach Document to Notification Emails', 'email-notice-wp-document-revisions' ); ?></label> 1681 1761 </fieldset> 1682 <h3 id="pause_label" class="hndle" style="padding-left: 0;"><?php esc_html_e( 'Pause Mail', ' wpdr-email-notice' ); ?></h3>1762 <h3 id="pause_label" class="hndle" style="padding-left: 0;"><?php esc_html_e( 'Pause Mail', 'email-notice-wp-document-revisions' ); ?></h3> 1683 1763 <fieldset> 1684 1764 <input type="checkbox" id="wpdr_en_pause" name="wpdr_en_pause" value="<?php echo esc_attr( $pause ) . '" ' . checked( 1, $pause, false ); ?>> 1685 <label for="wpdr_en_pause"><?php esc_html_e( 'Pause this List', ' wpdr-email-notice' ); ?></label>1765 <label for="wpdr_en_pause"><?php esc_html_e( 'Pause this List', 'email-notice-wp-document-revisions' ); ?></label> 1686 1766 </fieldset> 1687 <h3 id="note_label" class="hndle" style="padding-left: 0;"><?php esc_html_e( 'Document List Notes', ' wpdr-email-notice' ); ?></h3>1767 <h3 id="note_label" class="hndle" style="padding-left: 0;"><?php esc_html_e( 'Document List Notes', 'email-notice-wp-document-revisions' ); ?></h3> 1688 1768 <fieldset> 1689 1769 <textarea rows="4" cols="40" name="excerpt" id="excerpt"><?php echo $post->post_excerpt; // phpcs:ignore. ?></textarea> 1690 <label class="screen-reader-text" for="excerpt"><?php esc_html_e( 'Document List Notes', ' wpdr-email-notice' ); ?></label>1691 <?php esc_html_e( 'You can use this to hold any notes for this list entry.', ' wpdr-email-notice' ); ?>1770 <label class="screen-reader-text" for="excerpt"><?php esc_html_e( 'Document List Notes', 'email-notice-wp-document-revisions' ); ?></label> 1771 <?php esc_html_e( 'You can use this to hold any notes for this list entry.', 'email-notice-wp-document-revisions' ); ?> 1692 1772 </fieldset> 1693 1773 <?php … … 1707 1787 1708 1788 /** 1709 * Replace default <[email protected]> e -mail address.1789 * Replace default <[email protected]> email address. 1710 1790 * 1711 1791 * @since 1.0 … … 1729 1809 1730 1810 /** 1731 * Replace default e -mail from "WordPress".1811 * Replace default email from "WordPress". 1732 1812 * 1733 1813 * @since 1.0 … … 1822 1902 %words_n% means the first n (must be an integer number) number of word(s) extracted from the post 1823 1903 %recipient_name% means display name of the user who receives the email 1824 %repeat% means output a sentence if the document has been previously e -mailed1904 %repeat% means output a sentence if the document has been previously emailed 1825 1905 %extra% means output a mailing specific set of extra text. 1826 1906 */ … … 1877 1957 * 1878 1958 * @param int $post_id Document ID. 1879 * @return object[] array1959 * @return object[] 1880 1960 */ 1881 1961 private function prepare_mail_recipients( $post_id ) { … … 1937 2017 * @param int[] $lists Array of Ext_lists to process. (Empty means all matches). 1938 2018 * @param bool $all Full or simply to know of there are users. 1939 * @return object[]array2019 * @return mixed[] 1940 2020 */ 1941 2021 private function prepare_mail_ext_users( $post_id, $lists, $all ) { … … 1945 2025 // Public post only. 1946 2026 if ( 'Public' !== $pstatus ) { 1947 return $result;1948 }1949 1950 // Can non-signed on user read it?1951 /**1952 * Filter to force notification for external users for a not publically readable document.1953 *1954 * Special case for normally private site but where certain non-users may be sent documents..1955 *1956 * @since 2.01957 * @param bool false Expect normal permissions to determine accessibility.1958 * @param int $post_id Post ID.1959 * @return boolean1960 */1961 if ( apply_filters( 'wpdr_en_ext_force_notice', false, $post_id ) && ! user_can( 0, 'read_document', $post_id ) ) {1962 2027 return $result; 1963 2028 } … … 2094 2159 remove_filter( 'the_title', 'wptexturize' ); 2095 2160 if ( empty( $template ) ) { 2096 $template = __( 'New document: ', ' wpdr-email-notice' ) . get_the_title( $post_id );2161 $template = __( 'New document: ', 'email-notice-wp-document-revisions' ) . get_the_title( $post_id ); 2097 2162 } 2098 2163 // %extra% is not supported herev as makes no sense. … … 2196 2261 // if there is no subject or content then do not send mail. 2197 2262 if ( empty( $mail_subject ) || empty( $mail_content ) ) { 2198 if ( $this->log_mail_sent( $value->user_id, $post_id, $value->user_email, __( 'Empty mail subject and/or content.', ' wpdr-email-notice' ), $extra_id ) ) {2263 if ( $this->log_mail_sent( $value->user_id, $post_id, $value->user_email, __( 'Empty mail subject and/or content.', 'email-notice-wp-document-revisions' ), $extra_id ) ) { 2199 2264 ++$sending_error_count; 2200 2265 ++$logged_count; … … 2211 2276 } 2212 2277 if ( empty( $attachments ) ) { 2213 $mail_content .= '<p>' . __( 'Document not attached.', ' wpdr-email-notice' ) . '</p>';2278 $mail_content .= '<p>' . __( 'Document not attached.', 'email-notice-wp-document-revisions' ) . '</p>'; 2214 2279 /** 2215 2280 * Filters whether to attach the file depending on its size and type of user. … … 2220 2285 */ 2221 2286 } elseif ( apply_filters( 'wpdr_en_filesize', true, filesize( $attachments[0] ), true ) ) { 2222 $mail_content .= '<p>' . __( 'Document attached.', ' wpdr-email-notice' ) . '</p>';2287 $mail_content .= '<p>' . __( 'Document attached.', 'email-notice-wp-document-revisions' ) . '</p>'; 2223 2288 } else { 2224 $mail_content .= '<p>' . __( 'Document too large to be attached.', ' wpdr-email-notice' ) . '</p>';2289 $mail_content .= '<p>' . __( 'Document too large to be attached.', 'email-notice-wp-document-revisions' ) . '</p>'; 2225 2290 $attachments = array(); 2226 2291 } … … 2234 2299 */ 2235 2300 if ( apply_filters( 'wpdr_en_no_send_email', false ) ) { 2236 // test sending process. 2237 $status_text = __( 'Test', 'wpdr-email-notice' ) . ' ' . ( empty( $attachments ) ? __( 'Successful', 'wpdr-email-notice' ) : __( 'Success Attachment', 'wpdr-email-notice' ) );2301 // test sending process. Note Test is not translated. 2302 $status_text = 'Test ' . ( empty( $attachments ) ? __( 'Successful', 'email-notice-wp-document-revisions' ) : __( 'Success Attachment', 'email-notice-wp-document-revisions' ) ); 2238 2303 ++$sent_count; 2239 2304 } else { … … 2246 2311 // set status message. 2247 2312 if ( $mail_status ) { 2248 $status_text = ( empty( $attachments ) ? __( 'Successful', ' wpdr-email-notice' ) : __( 'Success Attachment', 'wpdr-email-notice' ) );2313 $status_text = ( empty( $attachments ) ? __( 'Successful', 'email-notice-wp-document-revisions' ) : __( 'Success Attachment', 'email-notice-wp-document-revisions' ) ); 2249 2314 ++$sent_count; 2250 2315 } else { 2251 $status_text = __( 'Failed', ' wpdr-email-notice' );2316 $status_text = __( 'Failed', 'email-notice-wp-document-revisions' ); 2252 2317 ++$sending_error_count; 2253 2318 } … … 2310 2375 // if there is no subject or content then do not send mail. 2311 2376 if ( empty( $mail_subject ) || empty( $mail_content ) ) { 2312 $status = __( 'Empty mail subject and/or content.', ' wpdr-email-notice' );2377 $status = __( 'Empty mail subject and/or content.', 'email-notice-wp-document-revisions' ); 2313 2378 if ( $this->log_mail_sent( $value->user_name, $post_id, $value->user_email, $status, $extra_id, $value->list_id ) ) { 2314 2379 ++$sending_error_count; … … 2323 2388 $attachments = $this->get_attachment( $post_id ); 2324 2389 if ( empty( $attachments ) ) { 2325 $mail_content .= '<p>' . __( 'Document not attached.', ' wpdr-email-notice' ) . '</p>';2390 $mail_content .= '<p>' . __( 'Document not attached.', 'email-notice-wp-document-revisions' ) . '</p>'; 2326 2391 /** 2327 2392 * Filters whether to attach the file depending on its size and type of user. … … 2332 2397 */ 2333 2398 } elseif ( apply_filters( 'wpdr_en_filesize', true, filesize( $attachments[0] ), false ) ) { 2334 $mail_content .= '<p>' . __( 'Document attached.', ' wpdr-email-notice' ) . '</p>';2399 $mail_content .= '<p>' . __( 'Document attached.', 'email-notice-wp-document-revisions' ) . '</p>'; 2335 2400 } else { 2336 $mail_content .= '<p>' . __( 'Document too large to be attached.', ' wpdr-email-notice' ) . '</p>';2401 $mail_content .= '<p>' . __( 'Document too large to be attached.', 'email-notice-wp-document-revisions' ) . '</p>'; 2337 2402 $attachments = array(); 2338 2403 } … … 2347 2412 */ 2348 2413 if ( apply_filters( 'wpdr_en_no_send_email', false ) ) { 2349 // test sending process. 2350 $status_text = __( 'Test', 'wpdr-email-notice' ) . ' ' . ( empty( $attachments ) ? __( 'Successful', 'wpdr-email-notice' ) : __( 'Success Attachment', 'wpdr-email-notice' ) );2414 // test sending process. Note Test is not translated. 2415 $status_text = 'Test ' . ( empty( $attachments ) ? __( 'Successful', 'email-notice-wp-document-revisions' ) : __( 'Success Attachment', 'email-notice-wp-document-revisions' ) ); 2351 2416 ++$sent_count; 2352 2417 } else { … … 2362 2427 // set status message. 2363 2428 if ( $mail_status ) { 2364 $status_text = ( empty( $attachments ) ? __( 'Successful', ' wpdr-email-notice' ) : __( 'Success Attachment', 'wpdr-email-notice' ) );2429 $status_text = ( empty( $attachments ) ? __( 'Successful', 'email-notice-wp-document-revisions' ) : __( 'Success Attachment', 'email-notice-wp-document-revisions' ) ); 2365 2430 ++$sent_count; 2366 2431 } else { 2367 $status_text = __( 'Failed', ' wpdr-email-notice' );2432 $status_text = __( 'Failed', 'email-notice-wp-document-revisions' ); 2368 2433 ++$sending_error_count; 2369 2434 } … … 2466 2531 private function resolve_repeat( $user_id, $post_id, $user_email = null ) { 2467 2532 global $wpdb; 2468 // Ignore test mails in log. 2469 $test = __( 'Test', 'wpdr-email-notice' ) . '%';2533 // Ignore test mails in log. Note Test is not translated. 2534 $test = 'Test %'; 2470 2535 // phpcs:disable WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared 2471 2536 if ( is_null( $user_email ) ) { … … 2583 2648 $result = array( 2584 2649 'error' => true, 2585 'error_msg' => __( 'Not logged and/or sent out successfully no mails.', ' wpdr-email-notice' ),2650 'error_msg' => __( 'Not logged and/or sent out successfully no mails.', 'email-notice-wp-document-revisions' ), 2586 2651 'logged_count' => $logged_count, 2587 2652 'sent_count' => $sent_count, … … 2602 2667 $result = array( 2603 2668 'error' => true, 2604 'error_msg' => __( 'Something went wrong', ' wpdr-email-notice' ),2669 'error_msg' => __( 'Something went wrong', 'email-notice-wp-document-revisions' ), 2605 2670 'logged_count' => $logged_count, 2606 2671 'sent_count' => $sent_count, … … 2618 2683 $result = array( 2619 2684 'error' => true, 2620 'error_msg' => __( 'Something went wrong', ' wpdr-email-notice' ),2685 'error_msg' => __( 'Something went wrong', 'email-notice-wp-document-revisions' ), 2621 2686 'logged_count' => $logged_count, 2622 2687 'sent_count' => $sent_count, … … 2670 2735 $result = array( 2671 2736 'error' => true, 2672 'error_msg' => __( 'Not logged and/or sent out successfully any mails.', ' wpdr-email-notice' ),2737 'error_msg' => __( 'Not logged and/or sent out successfully any mails.', 'email-notice-wp-document-revisions' ), 2673 2738 'logged_count' => $logged_count, 2674 2739 'sent_count' => $sent_count, … … 2689 2754 $result = array( 2690 2755 'error' => true, 2691 'error_msg' => __( 'Something went wrong', ' wpdr-email-notice' ),2756 'error_msg' => __( 'Something went wrong', 'email-notice-wp-document-revisions' ), 2692 2757 'logged_count' => $logged_count, 2693 2758 'sent_count' => $sent_count, … … 2705 2770 $result = array( 2706 2771 'error' => true, 2707 'error_msg' => __( 'Something went wrong', ' wpdr-email-notice' ),2772 'error_msg' => __( 'Something went wrong', 'email-notice-wp-document-revisions' ), 2708 2773 'logged_count' => $logged_count, 2709 2774 'sent_count' => $sent_count, … … 2737 2802 $result = array( 2738 2803 'error' => true, 2739 'error_msg' => __( 'Something went wrong', ' wpdr-email-notice' ),2804 'error_msg' => __( 'Something went wrong', 'email-notice-wp-document-revisions' ), 2740 2805 'logged_count' => 0, 2741 2806 'sent_count' => 0, … … 2775 2840 $result = array( 2776 2841 'error' => true, 2777 'error_msg' => __( 'Something went wrong', ' wpdr-email-notice' ),2842 'error_msg' => __( 'Something went wrong', 'email-notice-wp-document-revisions' ), 2778 2843 'logged_count' => 0, 2779 2844 'sent_count' => 0, … … 2851 2916 // Error. 2852 2917 if ( 0 === $result['logged_count'] || 0 === $result['sent_count'] ) { 2853 $message = '<br>' . __( 'Error sending notifications.', ' wpdr-email-notice' ) . '<a href="' . $result['log_page_url'] . '">' . __( 'Check log', 'wpdr-email-notice' ) . '</a> ' . __( 'for details.', 'wpdr-email-notice' );2918 $message = '<br>' . __( 'Error sending notifications.', 'email-notice-wp-document-revisions' ) . '<a href="' . $result['log_page_url'] . '">' . __( 'Check log', 'email-notice-wp-document-revisions' ) . '</a> ' . __( 'for details.', 'email-notice-wp-document-revisions' ); 2854 2919 } else { 2855 2920 // Warning. 2856 2921 set_transient( 'auto_notification_result', 'update-nag' ); 2857 $message = '<br>' . $result['sent_count'] . ' ' . __( 'email(s) out of', ' wpdr-email-notice' ) . ' ' . ( $result['sent_count'] + $result['sending_error_count'] ) . ' ' . __( 'sent with', 'wpdr-email-notice' ) . ' ' . ( $result['sent_count'] + $result['sending_error_count'] - $result['logged_count'] ) . ' ' . __( 'log issues.', 'wpdr-email-notice' ) . '<a href="' . $result['log_page_url'] . '">' . __( 'Check log', 'wpdr-email-notice' ) . '</a> ' . __( 'for details.', 'wpdr-email-notice' );2922 $message = '<br>' . $result['sent_count'] . ' ' . __( 'email(s) out of', 'email-notice-wp-document-revisions' ) . ' ' . ( $result['sent_count'] + $result['sending_error_count'] ) . ' ' . __( 'sent with', 'email-notice-wp-document-revisions' ) . ' ' . ( $result['sent_count'] + $result['sending_error_count'] - $result['logged_count'] ) . ' ' . __( 'log issues.', 'email-notice-wp-document-revisions' ) . '<a href="' . $result['log_page_url'] . '">' . __( 'Check log', 'email-notice-wp-document-revisions' ) . '</a> ' . __( 'for details.', 'email-notice-wp-document-revisions' ); 2858 2923 } 2859 2924 } else { 2860 2925 // Emails sent successfully. 2861 2926 set_transient( 'auto_notification_result', 'updated' ); 2862 $message = '<br>' . $result['sent_count'] . ' ' . __( 'notification(s) sent.', ' wpdr-email-notice' ) . ' <a href="' . $result['log_page_url'] . '">' . __( 'Check log', 'wpdr-email-notice' ) . '</a> ' . __( 'for details.', 'wpdr-email-notice' );2927 $message = '<br>' . $result['sent_count'] . ' ' . __( 'notification(s) sent.', 'email-notice-wp-document-revisions' ) . ' <a href="' . $result['log_page_url'] . '">' . __( 'Check log', 'email-notice-wp-document-revisions' ) . '</a> ' . __( 'for details.', 'email-notice-wp-document-revisions' ); 2863 2928 } 2864 2929 set_transient( 'auto_notification_message', $message ); … … 2968 3033 $output = array_slice( $defaults, 0, 2 ); 2969 3034 // splice in columns.. 2970 $output['tm_rule'] = __( 'Match Rule', ' wpdr-email-notice' );2971 $output['wpdr_en_attach'] = __( 'Document Attach', ' wpdr-email-notice' );2972 $output['wpdr_en_pause'] = __( 'List Paused', ' wpdr-email-notice' );3035 $output['tm_rule'] = __( 'Match Rule', 'email-notice-wp-document-revisions' ); 3036 $output['wpdr_en_attach'] = __( 'Document Attach', 'email-notice-wp-document-revisions' ); 3037 $output['wpdr_en_pause'] = __( 'List Paused', 'email-notice-wp-document-revisions' ); 2973 3038 2974 3039 // get the rest of the columns. … … 2989 3054 $tm_rule = (int) get_post_meta( $post_id, 'wpdr_en_tm', true ); 2990 3055 echo '<input type="hidden" id="tm-rule-' . esc_attr( $post_id ) . '" value ="' . esc_attr( $tm_rule ) . '" >'; 2991 ( 0 === $tm_rule ? esc_html_e( 'Any taxonomy element', ' wpdr-email-notice' ) : esc_html_e( 'All taxonomy elements', 'wpdr-email-notice' ) );3056 ( 0 === $tm_rule ? esc_html_e( 'Any taxonomy element', 'email-notice-wp-document-revisions' ) : esc_html_e( 'All taxonomy elements', 'email-notice-wp-document-revisions' ) ); 2992 3057 } 2993 3058 if ( 'wpdr_en_attach' === $column_name ) { … … 3022 3087 <fieldset class="inline-edit-col-left"> 3023 3088 <div id="tm_ruled" class="inline-edit-group wp-clearfix column-tm_rule" role="radiogroup" aria-labelledby="tm_label" aria-describedby="tm_descr"> 3024 <label id="tm_label" class="alignleft"><?php esc_html_e( 'Match Rule :', ' wpdr-email-notice' ); ?></label>3025 <label class="alignleft"><input type="radio" id="tm_any" name="tm_rule" value="0"><?php esc_html_e( 'Any taxonomy element', ' wpdr-email-notice' ); ?> </label>3026 <label class="alignleft"><input type="radio" id="tm_all" name="tm_rule" value="1"><?php esc_html_e( 'All taxonomy elements', ' wpdr-email-notice' ); ?></label>3089 <label id="tm_label" class="alignleft"><?php esc_html_e( 'Match Rule :', 'email-notice-wp-document-revisions' ); ?></label> 3090 <label class="alignleft"><input type="radio" id="tm_any" name="tm_rule" value="0"><?php esc_html_e( 'Any taxonomy element', 'email-notice-wp-document-revisions' ); ?> </label> 3091 <label class="alignleft"><input type="radio" id="tm_all" name="tm_rule" value="1"><?php esc_html_e( 'All taxonomy elements', 'email-notice-wp-document-revisions' ); ?></label> 3027 3092 </div> 3028 <p id="tm_descr" class="howto"><?php esc_html_e( 'Choose whether Any or All of these taxonomy elements must match for the list to be used to send e -mails.', 'wpdr-email-notice' ); ?></p>3093 <p id="tm_descr" class="howto"><?php esc_html_e( 'Choose whether Any or All of these taxonomy elements must match for the list to be used to send emails.', 'email-notice-wp-document-revisions' ); ?></p> 3029 3094 </fieldset> 3030 3095 <?php … … 3035 3100 <div class="inline-edit-group wp-clearfix column-attach"> 3036 3101 <input type="checkbox" id="wpdr_en_attach" name="wpdr_en_attach" value= ""> 3037 <label class="alignleft" for="wpdr_en_attach"><?php esc_html_e( 'Document Attach :', ' wpdr-email-notice' ); ?> </label>3102 <label class="alignleft" for="wpdr_en_attach"><?php esc_html_e( 'Document Attach :', 'email-notice-wp-document-revisions' ); ?> </label> 3038 3103 </div> 3039 3104 </fieldset> … … 3045 3110 <div class="inline-edit-group wp-clearfix column-pause"> 3046 3111 <input type="checkbox" id="wpdr_en_pause" name="wpdr_en_pause" value= ""> 3047 <label class="alignleft" for="wpdr_en_pause"><?php esc_html_e( 'Pause Mail :', ' wpdr-email-notice' ); ?> </label>3112 <label class="alignleft" for="wpdr_en_pause"><?php esc_html_e( 'Pause Mail :', 'email-notice-wp-document-revisions' ); ?> </label> 3048 3113 </div> 3049 3114 </fieldset> … … 3072 3137 <div class="inline-edit-group wp-clearfix"> 3073 3138 <label class="inline-edit-tm-rule alignleft"> 3074 <span class="title"><?php esc_html_e( 'Match Rule :', ' wpdr-email-notice' ); ?> </span>3139 <span class="title"><?php esc_html_e( 'Match Rule :', 'email-notice-wp-document-revisions' ); ?> </span> 3075 3140 <select name="tm_ruleb"> 3076 <option value="-1"><?php esc_html_e( '-- No Change --', ' wpdr-email-notice' ); ?></option>3077 <option value="0"><?php esc_html_e( 'Any taxonomy element', ' wpdr-email-notice' ); ?></option>3078 <option value="1"><?php esc_html_e( 'All taxonomy elements-', ' wpdr-email-notice' ); ?></option>3141 <option value="-1"><?php esc_html_e( '-- No Change --', 'email-notice-wp-document-revisions' ); ?></option> 3142 <option value="0"><?php esc_html_e( 'Any taxonomy element', 'email-notice-wp-document-revisions' ); ?></option> 3143 <option value="1"><?php esc_html_e( 'All taxonomy elements-', 'email-notice-wp-document-revisions' ); ?></option> 3079 3144 </select> 3080 3145 </label> 3081 3146 </div> 3082 <p id="tm_descr" class="howto"><?php esc_html_e( 'Choose whether Any or All of these taxonomy elements must match for the lists to be used to send e -mails.', 'wpdr-email-notice' ); ?></p>3147 <p id="tm_descr" class="howto"><?php esc_html_e( 'Choose whether Any or All of these taxonomy elements must match for the lists to be used to send emails.', 'email-notice-wp-document-revisions' ); ?></p> 3083 3148 </div> 3084 3149 </fieldset> … … 3091 3156 <div class="inline-edit-group wp-clearfix"> 3092 3157 <label class="inline-edit-attach alignleft"> 3093 <span class="title" style="width: auto;"><?php esc_html_e( 'Document Attach :', ' wpdr-email-notice' ); ?> </span>3158 <span class="title" style="width: auto;"><?php esc_html_e( 'Document Attach :', 'email-notice-wp-document-revisions' ); ?> </span> 3094 3159 <select name="attachb"> 3095 <option value="-1"><?php esc_html_e( '-- No Change --', ' wpdr-email-notice' ); ?></option>3096 <option value="0"><?php esc_html_e( 'Do not Attach Document', ' wpdr-email-notice' ); ?></option>3097 <option value="1"><?php esc_html_e( 'Attach Document', ' wpdr-email-notice' ); ?></option>3160 <option value="-1"><?php esc_html_e( '-- No Change --', 'email-notice-wp-document-revisions' ); ?></option> 3161 <option value="0"><?php esc_html_e( 'Do not Attach Document', 'email-notice-wp-document-revisions' ); ?></option> 3162 <option value="1"><?php esc_html_e( 'Attach Document', 'email-notice-wp-document-revisions' ); ?></option> 3098 3163 </select> 3099 3164 </label> … … 3109 3174 <div class="inline-edit-group wp-clearfix"> 3110 3175 <label class="inline-edit-pause alignleft"> 3111 <span class="title" style="width: auto;"><?php esc_html_e( 'Pause Mail :', ' wpdr-email-notice' ); ?> </span>3176 <span class="title" style="width: auto;"><?php esc_html_e( 'Pause Mail :', 'email-notice-wp-document-revisions' ); ?> </span> 3112 3177 <select name="list_pauseb"> 3113 <option value="-1"><?php esc_html_e( '-- No Change --', ' wpdr-email-notice' ); ?></option>3114 <option value="0"><?php esc_html_e( 'Do not Pause Mail', ' wpdr-email-notice' ); ?></option>3115 <option value="1"><?php esc_html_e( 'Pause Mail', ' wpdr-email-notice' ); ?></option>3178 <option value="-1"><?php esc_html_e( '-- No Change --', 'email-notice-wp-document-revisions' ); ?></option> 3179 <option value="0"><?php esc_html_e( 'Do not Pause Mail', 'email-notice-wp-document-revisions' ); ?></option> 3180 <option value="1"><?php esc_html_e( 'Pause Mail', 'email-notice-wp-document-revisions' ); ?></option> 3116 3181 </select> 3117 3182 </label> … … 3318 3383 3319 3384 $messages['doc_ext_list'] = array( 3320 1 => __( 'Document External List updated.', ' wpdr-email-notice' ),3321 2 => __( 'Custom field updated.', ' wpdr-email-notice' ),3322 3 => __( 'Custom field deleted.', ' wpdr-email-notice' ),3323 4 => __( 'Document External List updated.', ' wpdr-email-notice' ),3385 1 => __( 'Document External List updated.', 'email-notice-wp-document-revisions' ), 3386 2 => __( 'Custom field updated.', 'email-notice-wp-document-revisions' ), 3387 3 => __( 'Custom field deleted.', 'email-notice-wp-document-revisions' ), 3388 4 => __( 'Document External List updated.', 'email-notice-wp-document-revisions' ), 3324 3389 // phpcs:disable WordPress.Security.NonceVerification.Recommended 3325 3390 // translators: %s is the revision ID. 3326 5 => isset( $_GET['revision'] ) ? sprintf( __( 'Document External List restored to revision from %s', ' wpdr-email-notice' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,3391 5 => isset( $_GET['revision'] ) ? sprintf( __( 'Document External List restored to revision from %s', 'email-notice-wp-document-revisions' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, 3327 3392 // phpcs:enable WordPress.Security.NonceVerification.Recommended 3328 6 => __( 'Document External List published.', ' wpdr-email-notice' ),3329 7 => __( 'Document External List saved.', ' wpdr-email-notice' ),3330 8 => __( 'Document External List submitted.', ' wpdr-email-notice' ),3393 6 => __( 'Document External List published.', 'email-notice-wp-document-revisions' ), 3394 7 => __( 'Document External List saved.', 'email-notice-wp-document-revisions' ), 3395 8 => __( 'Document External List submitted.', 'email-notice-wp-document-revisions' ), 3331 3396 // translators: %1$s is the date, %2$s is the preview link. 3332 9 => sprintf( __( 'Document External List scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview document list</a>', ' wpdr-email-notice' ), date_i18n( sprintf( _x( '%1$s @ %2$s', '%1$s: date; %2$s: time', 'wpdr-email-notice' ), get_option( 'date_format' ), get_option( 'time_format' ) ), strtotime( $post->post_date ) ), esc_url( get_permalink( $post->ID ) ) ),3333 10 => __( 'Document External List draft updated.', ' wpdr-email-notice' ),3397 9 => sprintf( __( 'Document External List scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview document list</a>', 'email-notice-wp-document-revisions' ), date_i18n( sprintf( _x( '%1$s @ %2$s', '%1$s: date; %2$s: time', 'email-notice-wp-document-revisions' ), get_option( 'date_format' ), get_option( 'time_format' ) ), strtotime( $post->post_date ) ), esc_url( get_permalink( $post->ID ) ) ), 3398 10 => __( 'Document External List draft updated.', 'email-notice-wp-document-revisions' ), 3334 3399 ); 3335 3400 … … 3381 3446 $help = array( 3382 3447 'doc_ext_list' => array( 3383 __( 'Usage', ' wpdr-email-notice' ) =>3384 '<p>' . __( 'This screen allows a user to define a list of email users that will receive an email (generally with the document attached) if any taxonomy value of the list matches that on the document requested.', ' wpdr-email-notice' ) . '</p><p>' .3385 __( 'The List is available for this processing once the List is published.', ' wpdr-email-notice' ) . '</p><p>' .3386 __( 'When editing is completed, simply click <code>Update</code> or <code>Publish</code> to save your changes.', ' wpdr-email-notice' ) . '</p><p>' .3387 __( 'There are three main areas associated with the List:', ' wpdr-email-notice' ) . '</p><ul><li>' .3388 __( 'List Attributes', ' wpdr-email-notice' ) . '</li><li>' .3389 __( 'Document External User List', ' wpdr-email-notice' ) . '</li><li>' .3390 __( 'Taxonomies', ' wpdr-email-notice' ) . '</li></ul>',3391 __( 'List Attributes', ' wpdr-email-notice' ) =>3392 '<p><strong>' . __( 'Taxonomy Match Rule', ' wpdr-email-notice' ) . '</strong></p><p>' .3393 __( 'See the section <strong>Document Taxonomies</strong> for the process to determine whether an individual External List term matches that on the Document.', ' wpdr-email-notice' ) . '</p><p>' .3394 __( 'This flag indicates whether all the terms on the External List or at least one must match those on the Document for the External List to be considered matching the Document.', ' wpdr-email-notice' ) . '</p><p><strong>' .3395 __( 'Document Attach', ' wpdr-email-notice' ) . '</strong></p><p>' .3396 __( 'This is a text area where optional comment or information can be made about the External List.', ' wpdr-email-notice' ) . '</p><p><strong><p><strong>' .3397 __( 'Pause Mail', ' wpdr-email-notice' ) . '</strong></p><p>' .3398 __( 'This allows the External List to be paused from matching Documents.', ' wpdr-email-notice' ) . '</p><p>' .3399 __( 'It is provided so that an External List can be withdrawn from processing temporarily without simply changing its status.', ' wpdr-email-notice' ) . '</p><p><strong><p><strong>' .3400 __( 'List Notes', ' wpdr-email-notice' ) . '</strong></p><p>' .3401 '<p>' . __( 'This is a text area where optional comment or information can be held about the External List.', ' wpdr-email-notice' ) . '</p><p>' .3402 __( 'Use is made of the excerpt field as it intended to be a simple aide-memoire to administrators of the External Lists.', ' wpdr-email-notice' ) . '</p>',3403 __( 'Document External User List', ' wpdr-email-notice' ) =>3404 '<p>' . __( 'This panel consists of two parts. First are the elements to create or edit an individual user record into the table of email addresses, followed by a searchable list of the email addresses associated with the list.', ' wpdr-email-notice' ) . '</p><p>' .3405 __( 'Note that changes made to this User List are stored immediately. There is no separate process to update the data permanently or to cancel the edits made so far.', ' wpdr-email-notice' ) . '</p><p>' .3406 __( 'This holds a list of individual users that will be sent an email when the External List is selected.', ' wpdr-email-notice' ) . '</p><p>' .3407 __( 'Each user record will contain the user name and email address and an optional pause attribute that pauses the sending of emails to the user.', ' wpdr-email-notice' ) . '</p><p>' .3408 __( 'This pause attribute allows the user details to be retained in the User List but notification emails will not be sent to the specific user.', ' wpdr-email-notice' ) . '</p>',3409 __( 'Document Taxonomies', ' wpdr-email-notice' ) =>3410 '<p>' . __( 'These taxonomies are generally shown on the right part of the screen. They are the taxonomies that can be applied to Documents.', ' wpdr-email-notice' ) . '</p><p>' .3411 __( 'At least one taxonomy term is required to be entered, although several can be.', ' wpdr-email-notice' ) . '</p><p>' .3412 __( 'If there are multiple terms on the External List then the matching rule will used to determine whether just one term is needed for the External List to be selected or all terms present must match for notification.', ' wpdr-email-notice' ) . '</p><p>' .3413 __( 'For hierarchical taxonomies, a term on the External List is considered matched if the term on the Document is either the same as that on the External List or is a child of the External List term.', ' wpdr-email-notice' ) . '</p><p>' .3414 __( 'Because of this, it is not permitted to publish an External List when the terms entered contains a term and its parent since the term matching process means that the child term would be redundant.', ' wpdr-email-notice' ) . '</p><p>' .3415 __( 'A Document can have additional terms present, i.e. it is not necessary that all Document terms must match.', ' wpdr-email-notice' ) . '</p>',3416 __( 'Publish', ' wpdr-email-notice' ) =>3417 '<p>' . __( 'By default, Documents are only accessible to logged in users. Documents can be published, thus making them accessible to the world, by toggling their visibility in the "Publish" box in the top right corner. Any document marked as published will be accessible to anyone with the proper URL.', ' wpdr-email-notice' ) . '</p><p>' .3418 __( 'Similarly these user lists need to be published for the list to be eligible to be selected for sending emails to its users.', ' wpdr-email-notice' ) . '</p>',3419 __( 'Permissions', ' wpdr-email-notice' ) =>3420 '<p>' . __( 'It is expected that the emailing administration process will be centralised with only a handful of External Lists being created. Therefore the full WordPress set of access permissions is not required.', ' wpdr-email-notice' ) . '</p><p>' .3421 __( 'The permission <strong>edit_doc_ext_lists</strong> is supplied that allows users to create, update, and publish any External List.', ' wpdr-email-notice' ) . '</p><p>' .3422 __( 'The permission <strong>delete_doc_ext_lists</strong> is supplied that allows users to delete any External List.', ' wpdr-email-notice' ) . '</p><p>' .3423 __( 'Users with <strong>edit_documents</strong> permission can read any External List since its use is from within the Document editing screen.', ' wpdr-email-notice' ) . '</p>',3448 __( 'Usage', 'email-notice-wp-document-revisions' ) => 3449 '<p>' . __( 'This screen allows a user to define a list of email users that will receive an email (generally with the document attached) if any taxonomy value of the list matches that on the document requested.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3450 __( 'The List is available for this processing once the List is published.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3451 __( 'When editing is completed, simply click <code>Update</code> or <code>Publish</code> to save your changes.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3452 __( 'There are three main areas associated with the List:', 'email-notice-wp-document-revisions' ) . '</p><ul><li>' . 3453 __( 'List Attributes', 'email-notice-wp-document-revisions' ) . '</li><li>' . 3454 __( 'Document External User List', 'email-notice-wp-document-revisions' ) . '</li><li>' . 3455 __( 'Taxonomies', 'email-notice-wp-document-revisions' ) . '</li></ul>', 3456 __( 'List Attributes', 'email-notice-wp-document-revisions' ) => 3457 '<p><strong>' . __( 'Taxonomy Match Rule', 'email-notice-wp-document-revisions' ) . '</strong></p><p>' . 3458 __( 'See the section <strong>Document Taxonomies</strong> for the process to determine whether an individual External List term matches that on the Document.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3459 __( 'This flag indicates whether all the terms on the External List or at least one must match those on the Document for the External List to be considered matching the Document.', 'email-notice-wp-document-revisions' ) . '</p><p><strong>' . 3460 __( 'Document Attach', 'email-notice-wp-document-revisions' ) . '</strong></p><p>' . 3461 __( 'This is a text area where optional comment or information can be made about the External List.', 'email-notice-wp-document-revisions' ) . '</p><p><strong><p><strong>' . 3462 __( 'Pause Mail', 'email-notice-wp-document-revisions' ) . '</strong></p><p>' . 3463 __( 'This allows the External List to be paused from matching Documents.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3464 __( 'It is provided so that an External List can be withdrawn from processing temporarily without simply changing its status.', 'email-notice-wp-document-revisions' ) . '</p><p><strong><p><strong>' . 3465 __( 'List Notes', 'email-notice-wp-document-revisions' ) . '</strong></p><p>' . 3466 '<p>' . __( 'This is a text area where optional comment or information can be held about the External List.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3467 __( 'Use is made of the excerpt field as it intended to be a simple aide-memoire to administrators of the External Lists.', 'email-notice-wp-document-revisions' ) . '</p>', 3468 __( 'Document External User List', 'email-notice-wp-document-revisions' ) => 3469 '<p>' . __( 'This panel consists of two parts. First are the elements to create or edit an individual user record into the table of email addresses, followed by a searchable list of the email addresses associated with the list.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3470 __( 'Note that changes made to this User List are stored immediately. There is no separate process to update the data permanently or to cancel the edits made so far.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3471 __( 'This holds a list of individual users that will be sent an email when the External List is selected.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3472 __( 'Each user record will contain the user name and email address and an optional pause attribute that pauses the sending of emails to the user.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3473 __( 'This pause attribute allows the user details to be retained in the User List but notification emails will not be sent to the specific user.', 'email-notice-wp-document-revisions' ) . '</p>', 3474 __( 'Document Taxonomies', 'email-notice-wp-document-revisions' ) => 3475 '<p>' . __( 'These taxonomies are generally shown on the right part of the screen. They are the taxonomies that can be applied to Documents.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3476 __( 'At least one taxonomy term is required to be entered, although several can be.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3477 __( 'If there are multiple terms on the External List then the matching rule will used to determine whether just one term is needed for the External List to be selected or all terms present must match for notification.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3478 __( 'For hierarchical taxonomies, a term on the External List is considered matched if the term on the Document is either the same as that on the External List or is a child of the External List term.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3479 __( 'Because of this, it is not permitted to publish an External List when the terms entered contains a term and its parent since the term matching process means that the child term would be redundant.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3480 __( 'A Document can have additional terms present, i.e. it is not necessary that all Document terms must match.', 'email-notice-wp-document-revisions' ) . '</p>', 3481 __( 'Publish', 'email-notice-wp-document-revisions' ) => 3482 '<p>' . __( 'By default, Documents are only accessible to logged in users. Documents can be published, thus making them accessible to the world, by toggling their visibility in the "Publish" box in the top right corner. Any document marked as published will be accessible to anyone with the proper URL.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3483 __( 'Similarly these user lists need to be published for the list to be eligible to be selected for sending emails to its users.', 'email-notice-wp-document-revisions' ) . '</p>', 3484 __( 'Permissions', 'email-notice-wp-document-revisions' ) => 3485 '<p>' . __( 'It is expected that the emailing administration process will be centralised with only a handful of External Lists being created. Therefore the full WordPress set of access permissions is not required.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3486 __( 'The permission <strong>edit_doc_ext_lists</strong> is supplied that allows users to create, update, and publish any External List.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3487 __( 'The permission <strong>delete_doc_ext_lists</strong> is supplied that allows users to delete any External List.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3488 __( 'Users with <strong>edit_documents</strong> permission can read any External List since its use is from within the Document editing screen.', 'email-notice-wp-document-revisions' ) . '</p>', 3424 3489 ), 3425 3490 'edit-doc_ext_list' => array( 3426 __( 'Document External Lists', ' wpdr-email-notice' ) =>3427 '<p>' . __( 'Below is a list of all Document External Lists used to send email notifications to external users on an update to a Document. Click the list title to edit the document list.', ' wpdr-email-notice' ) . '</p><p>' .3428 __( 'To add a new Document External List, click <strong>Add Document External List</strong> at the top of the screen.', ' wpdr-email-notice' ) . '</p><p>' .3429 __( 'Note that whilst this functionality is primarily intended for people that are not users of this site, any email address can be used.', ' wpdr-email-notice' ) . '</p>',3491 __( 'Document External Lists', 'email-notice-wp-document-revisions' ) => 3492 '<p>' . __( 'Below is a list of all Document External Lists used to send email notifications to external users on an update to a Document. Click the list title to edit the document list.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3493 __( 'To add a new Document External List, click <strong>Add Document External List</strong> at the top of the screen.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3494 __( 'Note that whilst this functionality is primarily intended for people that are not users of this site, any email address can be used.', 'email-notice-wp-document-revisions' ) . '</p>', 3430 3495 ), 3431 3496 'document' => array( 3432 __( 'Document Email Notifications', ' wpdr-email-notice' ) =>3433 '<p>' . __( 'Notification emails can be sent (or re-sent) for published Documents by clicking on the button "Send notification emails" (to internal users) or "Send external emails" (to external users).', ' wpdr-email-notice' ) . '</p><p>' .3434 __( 'Internal users are those with user-ids on the site. They can decide whether they wish to receive these notifications or not and whether a copy of the document should be attached the mail.', ' wpdr-email-notice' ) . ' ' .3435 __( 'This data can also be updated by Administrators (also using Bulk Editing functions).', ' wpdr-email-notice' ) . '</p><p>' .3436 __( 'External users normally do not have a sign-on. Notifications are based on the concept of External Lists. A list will contain one or more taxonomy terms that will be matched again the document terms.', ' wpdr-email-notice' ) . '</p><p>' .3437 __( 'Every published External List (except those marked as Paused) will be tested to see whether its terms match those on the Document.', ' wpdr-email-notice' ) . '</p><p>' .3438 __( 'Those that match are listed below the button. If the user can maintain the External List, then they can choose to not send the mail to a List by unchecking the List before sending the Notification.', ' wpdr-email-notice' ) . '</p><p>' .3439 __( 'A term on the list matches with one on the Document if they are same or, for hierarchical taxonomies, the List term is a parent of the Document term.', 'wpdr-email-notice' ) . '</p><p>' .3440 __( ' If there are several terms on the List, it can be set so that the List is matched if either any term matches or all terms must match.', 'wpdr-email-notice' ) . '</p><p>' .3441 __( 'Potentially several Lists may match the Document. Emails will be sent to every user (except those individually paused) on each list that is matched.', ' wpdr-email-notice' ) . '</p>',3442 __( 'Document Email Extra Text', ' wpdr-email-notice' ) =>3443 '<p>' . __( 'You can include some message-specific additional text with the notification emails.', ' wpdr-email-notice' ) . '</p><p>' .3497 __( 'Document Email Notifications', 'email-notice-wp-document-revisions' ) => 3498 '<p>' . __( 'Notification emails can be sent (or re-sent) for published Documents by clicking on the button "Send notification emails" (to internal users) or "Send external emails" (to external users).', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3499 __( 'Internal users are those with user-ids on the site. They can decide whether they wish to receive these notifications or not and whether a copy of the document should be attached the mail.', 'email-notice-wp-document-revisions' ) . ' ' . 3500 __( 'This data can also be updated by Administrators (also using Bulk Editing functions).', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3501 __( 'External users normally do not have a sign-on. Notifications are based on the concept of External Lists. A list will contain one or more taxonomy terms that will be matched again the document terms.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3502 __( 'Every published External List (except those marked as Paused) will be tested to see whether its terms match those on the Document.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3503 __( 'Those that match are listed below the button. If the user can maintain the External List, then they can choose to not send the mail to a List by unchecking the List before sending the Notification.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3504 __( 'A term on the List matches with one on the Document if they are same or, for hierarchical taxonomies, the List term is a parent of the Document term.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3505 __( 'When there are several terms on the List, a rule can be set so that the List is matched if either any term matches or all terms on the List must match.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3506 __( 'Potentially several Lists may match the Document. Emails will be sent to every user (except those individually paused) on each list that is matched.', 'email-notice-wp-document-revisions' ) . '</p>', 3507 __( 'Document Email Extra Text', 'email-notice-wp-document-revisions' ) => 3508 '<p>' . __( 'You can include some message-specific additional text with the notification emails.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3444 3509 // phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment 3445 __( 'The template used (Internal or External) has to contain the tag "%extra%" in it to use this capability.', 'wpdr-email-notice' ) . '</p><p>' . 3446 __( 'A checkbox which is initially disabled with label "Add Extra Text" is placed next to each Send button.', 'wpdr-email-notice' ) . '</p><p>' . 3447 __( 'On entering some text in the text field, these checkboxes will become active if the template allows it.', 'wpdr-email-notice' ) . '</p><p>' . 3448 __( 'The extra text will only be included if the corresponding checkbox is checked when the send button is clicked. It can contains html tags to better format the output.', 'wpdr-email-notice' ) . '</p>', 3510 __( 'The template used (Internal or External) has to contain the tag "%extra%" in it to use this capability.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3511 __( 'If neither template contains the tag then the various options are not shown.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3512 __( 'A checkbox which is initially disabled with label "Add Extra Text" is placed next to each Send button.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3513 __( 'On entering some text in the text field, the checkboxes will become active if the template allows it.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3514 __( 'The extra text will only be included if the corresponding checkbox is checked when the send button is clicked.', 'email-notice-wp-document-revisions' ) . '</p><p>' . 3515 __( 'The Extra text can contains html tags to better format the output.', 'email-notice-wp-document-revisions' ) . '</p>', 3449 3516 ), 3450 3517 ); … … 3490 3557 } 3491 3558 if ( $err_exists ) { 3492 $messages = '<p>' . esc_html__( 'There are no terms defined for matching with this list. Please add at least one.', ' wpdr-email-notice' ) . '</p>';3559 $messages = '<p>' . esc_html__( 'There are no terms defined for matching with this list. Please add at least one.', 'email-notice-wp-document-revisions' ) . '</p>'; 3493 3560 } 3494 3561 // Are there users. … … 3503 3570 } 3504 3571 if ( 0 === count( $users ) ) { 3505 $messages .= '<p>' . esc_html__( 'There are no addressees defined for matching with this list. Please add at least one.', ' wpdr-email-notice' ) . '</p>';3572 $messages .= '<p>' . esc_html__( 'There are no addressees defined for matching with this list. Please add at least one.', 'email-notice-wp-document-revisions' ) . '</p>'; 3506 3573 $err_exists = true; 3507 3574 } … … 3521 3588 $oclass = 'notice-error'; 3522 3589 if ( 0 === $err[0] ) { 3523 $messages .= '<p>' . esc_html__( 'There are no terms defined for matching with this list. Please add at least one.', ' wpdr-email-notice' ) . '</p>';3590 $messages .= '<p>' . esc_html__( 'There are no terms defined for matching with this list. Please add at least one.', 'email-notice-wp-document-revisions' ) . '</p>'; 3524 3591 } else { 3525 3592 $tax_l = get_taxonomy( $err[0] )->label; … … 3527 3594 $child = esc_attr( get_term( $err[2], $err[0] )->name ); 3528 3595 // translators: %1$s is the taxonomy name, %2$s is the parent term, %2$s is the child term. 3529 $messages .= '<p>' . sprintf( __( 'Taxonomy: %1$s. Cannot have both parent (%2$s) and child terms (%3$s). Remove child term as parent term will match.', ' wpdr-email-notice' ), $tax_l, $parent, $child ) . '</p>';3596 $messages .= '<p>' . sprintf( __( 'Taxonomy: %1$s. Cannot have both parent (%2$s) and child terms (%3$s). Remove child term as parent term will match.', 'email-notice-wp-document-revisions' ), $tax_l, $parent, $child ) . '</p>'; 3530 3597 // make sure js methods have been loaded in case we add something after. 3531 3598 if ( ! self::$js_loaded ) { … … 3550 3617 } else { 3551 3618 // translators: %s is the taxonomy name. 3552 $messages .= '<p>' . sprintf( __( 'Taxonomy: %s. You must redo your non-hierarchical changes manually.', ' wpdr-email-notice' ), $tax_o->label );3619 $messages .= '<p>' . sprintf( __( 'Taxonomy: %s. You must redo your non-hierarchical changes manually.', 'email-notice-wp-document-revisions' ), $tax_o->label ); 3553 3620 foreach ( $terms as $term ) { 3554 3621 if ( $term > 0 ) { 3555 3622 // term added, must be checked. 3556 3623 // translators: %1$s is the taxonomy term name. 3557 $messages .= '<br /> ' . sprintf( __( 'Add Term: %1$s ', ' wpdr-email-notice' ), get_term( $term, $tax )->name );3624 $messages .= '<br /> ' . sprintf( __( 'Add Term: %1$s ', 'email-notice-wp-document-revisions' ), get_term( $term, $tax )->name ); 3558 3625 } else { 3559 3626 // term removed, must be unchecked. 3560 3627 // translators: %1$s is the taxonomy term name. 3561 $messages .= '<br /> ' . sprintf( __( 'Remove Term: %1$s ', ' wpdr-email-notice' ), get_term( -$term, $tax )->name );3628 $messages .= '<br /> ' . sprintf( __( 'Remove Term: %1$s ', 'email-notice-wp-document-revisions' ), get_term( -$term, $tax )->name ); 3562 3629 } 3563 3630 } -
email-notice-wp-document-revisions/trunk/includes/class-wpdr-en-all-users-bulk-action.php
r2967036 r3276769 9 9 // No direct access allowed to plugin php file. 10 10 if ( ! defined( 'ABSPATH' ) ) { 11 die( esc_html__( 'You are not allowed to call this file directly.', ' wpdr-email-notice' ) );11 die( esc_html__( 'You are not allowed to call this file directly.', 'email-notice-wp-document-revisions' ) ); 12 12 } 13 13 … … 39 39 */ 40 40 public function custom_bulk_action_option( $bulk_actions ) { 41 $bulk_actions['wpdr_subscribe'] = __( 'Subscribe to Document Email notifications', ' wpdr-email-notice' );42 $bulk_actions['wpdr_unsubscribe'] = __( 'Unsubscribe from Document Email notifications', ' wpdr-email-notice' );41 $bulk_actions['wpdr_subscribe'] = __( 'Subscribe to Document Email notifications', 'email-notice-wp-document-revisions' ); 42 $bulk_actions['wpdr_unsubscribe'] = __( 'Unsubscribe from Document Email notifications', 'email-notice-wp-document-revisions' ); 43 43 return $bulk_actions; 44 44 } … … 67 67 foreach ( $user_ids as $user_id ) { 68 68 if ( ! $this->perform_subscribe( $user_id ) ) { 69 wp_die( esc_html__( 'Error subscribing users.', ' wpdr-email-notice' ) );69 wp_die( esc_html__( 'Error subscribing users.', 'email-notice-wp-document-revisions' ) ); 70 70 } 71 71 ++$subscribed; … … 76 76 foreach ( $user_ids as $user_id ) { 77 77 if ( ! $this->perform_unsubscribe( $user_id ) ) { 78 wp_die( esc_html__( 'Error unsubscribing users.', ' wpdr-email-notice' ) );78 wp_die( esc_html__( 'Error unsubscribing users.', 'email-notice-wp-document-revisions' ) ); 79 79 } 80 80 ++$subscribed; -
email-notice-wp-document-revisions/trunk/includes/class-wpdr-en-ext-log-table.php
r3212640 r3276769 30 30 $args, 31 31 array( 32 'singular' => __( 'External Notification email sent', ' wpdr-email-notice' ), // singular name of the listed records.33 'plural' => __( 'External Notification emails sent', ' wpdr-email-notice' ), // plural name of the listed records.32 'singular' => __( 'External Notification email sent', 'email-notice-wp-document-revisions' ), // singular name of the listed records. 33 'plural' => __( 'External Notification emails sent', 'email-notice-wp-document-revisions' ), // plural name of the listed records. 34 34 'ajax' => false, 35 35 'screen' => null, … … 48 48 $columns = array( 49 49 'id' => '#', 50 'post_title' => __( 'Post Title', ' wpdr-email-notice' ),51 'list_title' => __( 'List Title', ' wpdr-email-notice' ),52 'time_mail_sent' => __( 'E -mail sent', 'wpdr-email-notice' ),53 'user_name' => __( 'User Name', ' wpdr-email-notice' ),54 'user_email' => __( 'User E -mail', 'wpdr-email-notice' ),55 'status' => __( 'Status', ' wpdr-email-notice' ),50 'post_title' => __( 'Post Title', 'email-notice-wp-document-revisions' ), 51 'list_title' => __( 'List Title', 'email-notice-wp-document-revisions' ), 52 'time_mail_sent' => __( 'Email sent', 'email-notice-wp-document-revisions' ), 53 'user_name' => __( 'User Name', 'email-notice-wp-document-revisions' ), 54 'user_email' => __( 'User Email', 'email-notice-wp-document-revisions' ), 55 'status' => __( 'Status', 'email-notice-wp-document-revisions' ), 56 56 ); 57 57 return $columns; … … 119 119 } 120 120 $actions = array( 121 'view' => '<button onclick="wpdr_en_extra( ' . $item['id'] . ' )">' . __( 'Extra Text', ' wpdr-email-notice' ) . '</button> ' .121 'view' => '<button onclick="wpdr_en_extra( ' . $item['id'] . ' )">' . __( 'Extra Text', 'email-notice-wp-document-revisions' ) . '</button> ' . 122 122 '<textarea id="extra_' . $item['id'] . '" onclick="wpdr_en_extra( ' . $item['id'] . ' )" rows="3" cols="40" style="display: none">' . 123 123 $item['extra_text'] . '</textarea>', … … 220 220 */ 221 221 public function no_items() { 222 esc_html_e( 'No e -mails sent out, yet.', 'wpdr-email-notice' );222 esc_html_e( 'No emails sent out, yet.', 'email-notice-wp-document-revisions' ); 223 223 } 224 224 -
email-notice-wp-document-revisions/trunk/includes/class-wpdr-en-ext-user-table.php
r3140478 r3276769 60 60 $args, 61 61 array( 62 'singular' => __( 'External User Address', ' wpdr-email-notice' ), // singular name of the listed records.63 'plural' => __( 'External User Addresses', ' wpdr-email-notice' ), // plural name of the listed records.62 'singular' => __( 'External User Address', 'email-notice-wp-document-revisions' ), // singular name of the listed records. 63 'plural' => __( 'External User Addresses', 'email-notice-wp-document-revisions' ), // plural name of the listed records. 64 64 'ajax' => false, 65 65 'screen' => 'doc_ext_list', … … 102 102 $columns = array( 103 103 'rec_num' => '#', 104 'user_name' => __( 'User Name', ' wpdr-email-notice' ),105 'email' => __( 'E -mail Address', 'wpdr-email-notice' ),106 'pause' => __( 'Pause Mail', ' wpdr-email-notice' ),104 'user_name' => __( 'User Name', 'email-notice-wp-document-revisions' ), 105 'email' => __( 'Email Address', 'email-notice-wp-document-revisions' ), 106 'pause' => __( 'Pause Mail', 'email-notice-wp-document-revisions' ), 107 107 ); 108 108 return $columns; … … 151 151 public function column_rec_num( $item ) { 152 152 $actions = array( 153 'edit' => '<button onclick=\'wpdr_en_edit( "' . $item['user_name'] . '", "' . $item['email'] . '", "' . $item['pause'] . '" )\'>' . __( 'Edit', ' wpdr-email-notice' ) . '</button>',154 'delete' => sprintf( '<button onclick="wpdr_en_delete(%s, %s)">' . __( 'Delete', ' wpdr-email-notice' ) . '</button>', self::$post_id, $item['rec_num'] ),153 'edit' => '<button onclick=\'wpdr_en_edit( "' . $item['user_name'] . '", "' . $item['email'] . '", "' . $item['pause'] . '" )\'>' . __( 'Edit', 'email-notice-wp-document-revisions' ) . '</button>', 154 'delete' => sprintf( '<button onclick="wpdr_en_delete(%s, %s)">' . __( 'Delete', 'email-notice-wp-document-revisions' ) . '</button>', self::$post_id, $item['rec_num'] ), 155 155 ); 156 156 … … 261 261 public function no_items() { 262 262 if ( self::$no_addr ) { 263 esc_html_e( 'No addressees created yet.', ' wpdr-email-notice' );263 esc_html_e( 'No addressees created yet.', 'email-notice-wp-document-revisions' ); 264 264 } else { 265 esc_html_e( 'No matching addressees found.', ' wpdr-email-notice' );265 esc_html_e( 'No matching addressees found.', 'email-notice-wp-document-revisions' ); 266 266 } 267 267 } -
email-notice-wp-document-revisions/trunk/includes/class-wpdr-en-user-log-table.php
r3212640 r3276769 9 9 // No direct access allowed to plugin php file. 10 10 if ( ! defined( 'ABSPATH' ) ) { 11 die( esc_html__( 'You are not allowed to call this file directly.', ' wpdr-email-notice' ) );11 die( esc_html__( 'You are not allowed to call this file directly.', 'email-notice-wp-document-revisions' ) ); 12 12 } 13 13 … … 35 35 $args, 36 36 array( 37 'singular' => __( 'Notification email sent', ' wpdr-email-notice' ), // singular name of the listed records.38 'plural' => __( 'Notification emails sent', ' wpdr-email-notice' ), // plural name of the listed records.37 'singular' => __( 'Notification email sent', 'email-notice-wp-document-revisions' ), // singular name of the listed records. 38 'plural' => __( 'Notification emails sent', 'email-notice-wp-document-revisions' ), // plural name of the listed records. 39 39 'ajax' => false, 40 40 'screen' => null, … … 53 53 $columns = array( 54 54 'id' => '#', 55 'post_title' => __( 'Post Title', ' wpdr-email-notice' ),56 'time_mail_sent' => __( 'E -mail sent', 'wpdr-email-notice' ),57 'user_display_name' => __( 'User Name', ' wpdr-email-notice' ),58 'user_email' => __( 'User E -mail', 'wpdr-email-notice' ),59 'status' => __( 'Status', ' wpdr-email-notice' ),55 'post_title' => __( 'Post Title', 'email-notice-wp-document-revisions' ), 56 'time_mail_sent' => __( 'Email sent', 'email-notice-wp-document-revisions' ), 57 'user_display_name' => __( 'User Name', 'email-notice-wp-document-revisions' ), 58 'user_email' => __( 'User Email', 'email-notice-wp-document-revisions' ), 59 'status' => __( 'Status', 'email-notice-wp-document-revisions' ), 60 60 ); 61 61 return $columns; … … 120 120 } 121 121 $actions = array( 122 'view' => '<button onclick="wpdr_en_extra( ' . $item['id'] . ' )">' . __( 'Extra Text', ' wpdr-email-notice' ) . '</button> ' .122 'view' => '<button onclick="wpdr_en_extra( ' . $item['id'] . ' )">' . __( 'Extra Text', 'email-notice-wp-document-revisions' ) . '</button> ' . 123 123 '<textarea id="extra_' . $item['id'] . '" onclick="wpdr_en_extra( ' . $item['id'] . ' )" rows="3" cols="40" style="display: none">' . 124 124 $item['extra_text'] . '</textarea>', … … 225 225 */ 226 226 public function no_items() { 227 esc_html_e( 'No e -mails sent out, yet.', 'wpdr-email-notice' );227 esc_html_e( 'No emails sent out, yet.', 'email-notice-wp-document-revisions' ); 228 228 } 229 229 -
email-notice-wp-document-revisions/trunk/js/wpdr-email-notice.js
r3212640 r3276769 42 42 } 43 43 44 //Send e -mails44 //Send emails 45 45 jQuery.ajax({ 46 46 type : 'POST', … … 126 126 } 127 127 128 //Send e -mails128 //Send emails 129 129 jQuery.ajax({ 130 130 type : 'POST', -
email-notice-wp-document-revisions/trunk/js/wpdr-en-address.js
r3140478 r3276769 20 20 success : function(response) { 21 21 if (response.error) { 22 document.getElementById('wpdr-en-message').innerHTML =response.error_msg + ' ( ' + response.error_code + ' )';22 document.getElementById('wpdr-en-message').innerHTML = response.error_msg + ' ( ' + response.error_code + ' )'; 23 23 } else { 24 24 //Emails sent successfully … … 57 57 success : function(response) { 58 58 if (response.error) { 59 document.getElementById('wpdr-en-message').innerHTML =response.error_msg + ' ( ' + response.error_code + ' )';59 document.getElementById('wpdr-en-message').innerHTML = response.error_msg + ' ( ' + response.error_code + ' )'; 60 60 } else { 61 61 //Emails sent successfully -
email-notice-wp-document-revisions/trunk/languages/wpdr-email-notice.pot
r3212640 r3276769 1 # Copyright (C) 202 4 Email Notice WP Document Revisions 3.12 # This file is distributed under the same license as the Email Notice WP Document Revisions 3. 1package.1 # Copyright (C) 2025 Email Notice WP Document Revisions 3.2 2 # This file is distributed under the same license as the Email Notice WP Document Revisions 3.2 package. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Email Notice WP Document Revisions 3. 1\n"5 "Project-Id-Version: Email Notice WP Document Revisions 3.2\n" 6 6 "MIME-Version: 1.0\n" 7 7 "Content-Type: text/plain; charset=UTF-8\n" 8 8 "Content-Transfer-Encoding: 8bit\n" 9 "POT-Creation-Date: 202 4-12-24 12:03+0000\n"9 "POT-Creation-Date: 2025-04-18 11:31+0000\n" 10 10 "X-Poedit-Basepath: ..\n" 11 11 "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n" … … 15 15 "Plural-Forms: nplurals=2; plural=(n != 1);\n" 16 16 17 #: includes/class-wpdr-email-notice.php:11, includes/class-wpdr-en-all-users-bulk-action.php:11, includes/class-wpdr-en-user-log-table.php:1118 msgid "You are not allowed to call this file directly."19 msgstr ""20 21 #: includes/class-wpdr-email-notice.php:29222 msgctxt "post type general name"23 msgid "Document External Lists"24 msgstr ""25 26 #: includes/class-wpdr-email-notice.php:29327 msgctxt "post type singular name"28 msgid "Document External List"29 msgstr ""30 31 #: includes/class-wpdr-email-notice.php:29432 msgid "Add Document External List"33 msgstr ""34 35 #: includes/class-wpdr-email-notice.php:29536 msgid "Add New Document External List"37 msgstr ""38 39 #: includes/class-wpdr-email-notice.php:29640 msgid "Edit Document External List"41 msgstr ""42 43 #: includes/class-wpdr-email-notice.php:29744 msgid "New Document External List"45 msgstr ""46 47 #: includes/class-wpdr-email-notice.php:29848 msgid "View Document External List"49 msgstr ""50 51 #: includes/class-wpdr-email-notice.php:29952 msgid "View Document External Lists"53 msgstr ""54 55 #: includes/class-wpdr-email-notice.php:30056 msgid "Search Document External Lists"57 msgstr ""58 59 #: includes/class-wpdr-email-notice.php:30160 msgid "No Document External List found"61 msgstr ""62 63 #: includes/class-wpdr-email-notice.php:30264 msgid "No Document External Lists found in Trash"65 msgstr ""66 67 #: includes/class-wpdr-email-notice.php:30468 msgid "Document Emails"69 msgstr ""70 71 #: includes/class-wpdr-email-notice.php:30572 msgid "All Document External Lists"73 msgstr ""74 75 #: includes/class-wpdr-email-notice.php:386, includes/class-wpdr-email-notice.php:84976 msgid "Document Email Settings"77 msgstr ""78 79 #: includes/class-wpdr-email-notice.php:38780 msgid "Email From"81 msgstr ""82 83 #: includes/class-wpdr-email-notice.php:38884 msgid "Email Address"85 msgstr ""86 87 #: includes/class-wpdr-email-notice.php:39288 msgid "Document Email Settings - "89 msgstr ""90 91 #: includes/class-wpdr-email-notice.php:39292 msgid "Notifications"93 msgstr ""94 95 #: includes/class-wpdr-email-notice.php:39396 msgid "Internal Notice mode"97 msgstr ""98 99 #: includes/class-wpdr-email-notice.php:394100 msgid "Notify internal users about"101 msgstr ""102 103 #: includes/class-wpdr-email-notice.php:395104 msgid "Notification e-mail subject"105 msgstr ""106 107 #: includes/class-wpdr-email-notice.php:396108 msgid "Internal Notice e-mail content"109 msgstr ""110 111 #: includes/class-wpdr-email-notice.php:397112 msgid "External Notice e-mail content"113 msgstr ""114 115 #: includes/class-wpdr-email-notice.php:399116 msgid "Notification e-mail repeat"117 msgstr ""118 119 #. translators: For this group, text surroundedby % symbols (like %recipient_name%) should not be translated.120 #: includes/class-wpdr-email-notice.php:512, includes/class-wpdr-email-notice.php:517121 msgid "Dear %recipient_name%,<br/><br/>"122 msgstr ""123 124 #: includes/class-wpdr-email-notice.php:513, includes/class-wpdr-email-notice.php:518125 msgid "A new document is published. Check it out!<br/><br/><strong>%title_with_permalink%</strong><br/>%words_50%%extra%%repeat%<br/>"126 msgstr ""127 128 #. translators: %s is the link address of the user's profile. Do not translate.129 #: includes/class-wpdr-email-notice.php:515130 msgid "<small>In case you do not want to receive this kind of notification you can turn it off in your <a href=\"%s\">profile</a>.</small>"131 msgstr ""132 133 #: includes/class-wpdr-email-notice.php:516134 msgid "<small><br/>Also go there if you wish to change whether you will receive the document as an attachment.</small>"135 msgstr ""136 137 #: includes/class-wpdr-email-notice.php:519138 msgid "<small>In case you do not want to receive this kind of notification you can reply with the message \"Unsubscribe\".</small>"139 msgstr ""140 141 #: includes/class-wpdr-email-notice.php:520142 msgid "<p>This document has previously been sent to you %num% time(s), with the latest sent on %last_date%.</p>"143 msgstr ""144 145 #: includes/class-wpdr-email-notice.php:563, includes/class-wpdr-email-notice.php:1634146 msgid "Add Address to List"147 msgstr ""148 149 #: includes/class-wpdr-email-notice.php:564150 msgid "Edit existing Address"151 msgstr ""152 153 #: includes/class-wpdr-email-notice.php:546, includes/class-wpdr-email-notice.php:1037154 msgid "Sending email notifications..."155 msgstr ""156 157 #: includes/class-wpdr-email-notice.php:547158 msgid "Error sending emails."159 msgstr ""160 161 #: includes/class-wpdr-email-notice.php:548, includes/class-wpdr-email-notice.php:997, includes/class-wpdr-email-notice.php:991162 msgid "Re-send notification email(s)"163 msgstr ""164 165 #: includes/class-wpdr-email-notice.php:549, includes/class-wpdr-email-notice.php:2857166 msgid "email(s) out of"167 msgstr ""168 169 #: includes/class-wpdr-email-notice.php:550170 msgid "notification(s) sent. Check"171 msgstr ""172 173 #: includes/class-wpdr-email-notice.php:551, includes/class-wpdr-email-notice.php:2857174 msgid "sent with"175 msgstr ""176 177 #: includes/class-wpdr-email-notice.php:552178 msgid "log issues. Check"179 msgstr ""180 181 #: includes/class-wpdr-email-notice.php:553182 msgid "log"183 msgstr ""184 185 #: includes/class-wpdr-email-notice.php:554, includes/class-wpdr-email-notice.php:2862, includes/class-wpdr-email-notice.php:2857, includes/class-wpdr-email-notice.php:2853186 msgid "for details."187 msgstr ""188 189 #: includes/class-wpdr-email-notice.php:616190 msgid "By default all notification e-mails received from \"WordPress\" < wordpress@"191 msgstr ""192 193 #: includes/class-wpdr-email-notice.php:616194 msgid "You can change these below."195 msgstr ""196 197 #: includes/class-wpdr-email-notice.php:654198 msgid "Tags available to make e-mail subject and/or content dynamic:"199 msgstr ""200 201 #: includes/class-wpdr-email-notice.php:656202 msgid "means title of the post"203 msgstr ""204 205 #: includes/class-wpdr-email-notice.php:657206 msgid "means URL of the post"207 msgstr ""208 209 #: includes/class-wpdr-email-notice.php:658210 msgid "means URL with title of the post"211 msgstr ""212 213 #: includes/class-wpdr-email-notice.php:659214 msgid "means the name of the post author"215 msgstr ""216 217 #: includes/class-wpdr-email-notice.php:660218 msgid "means excerpt of the post"219 msgstr ""220 221 #: includes/class-wpdr-email-notice.php:660222 msgid "Only available to those who can edit the document"223 msgstr ""224 225 #: includes/class-wpdr-email-notice.php:661226 msgid "means the first n (must be an integer number) number of word(s) extracted from the post"227 msgstr ""228 229 #: includes/class-wpdr-email-notice.php:662230 msgid "means display name of the user who receives the e-mail"231 msgstr ""232 233 #: includes/class-wpdr-email-notice.php:663234 msgid "means output the phrase if the document has been previously e-mailed."235 msgstr ""236 237 #: includes/class-wpdr-email-notice.php:665238 msgid "Tags available within the tag"239 msgstr ""240 241 #: includes/class-wpdr-email-notice.php:667242 msgid "means the number of times the document has been previously e-mailed."243 msgstr ""244 245 #: includes/class-wpdr-email-notice.php:668246 msgid "means the last date that the document was e-mailed."247 msgstr ""248 249 #: includes/class-wpdr-email-notice.php:669250 msgid "means the last date incuding time that the document was e-mailed."251 msgstr ""252 253 #: includes/class-wpdr-email-notice.php:671254 msgid "means output an optional extra phrase entered at the time of mailing."255 msgstr ""256 257 #: includes/class-wpdr-email-notice.php:685258 msgid "Auto"259 msgstr ""260 261 #: includes/class-wpdr-email-notice.php:685262 msgid "(send e-mails automatically when you publish a post)"263 msgstr ""264 265 #: includes/class-wpdr-email-notice.php:686266 msgid "Manual"267 msgstr ""268 269 #: includes/class-wpdr-email-notice.php:686270 msgid "(you need to press a button to send notification)"271 msgstr ""272 273 #: includes/class-wpdr-email-notice.php:711274 msgid "Public posts"275 msgstr ""276 277 #: includes/class-wpdr-email-notice.php:712278 msgid "Password"279 msgstr ""280 281 #: includes/class-wpdr-email-notice.php:712282 msgid "protected posts (password will"283 msgstr ""284 285 #: includes/class-wpdr-email-notice.php:712286 msgid "NOT"287 msgstr ""288 289 #: includes/class-wpdr-email-notice.php:712290 msgid "be included in notification e-mail)"291 msgstr ""292 293 #: includes/class-wpdr-email-notice.php:713294 msgid "Private posts"295 msgstr ""296 297 #: includes/class-wpdr-email-notice.php:714298 msgid "Notifications are sent only to those Internal users who can read the document"299 msgstr ""300 301 #: includes/class-wpdr-email-notice.php:715302 msgid "Notifications can only be sent to External users for Public documents."303 msgstr ""304 305 #: includes/class-wpdr-email-notice.php:726306 msgid "Hint: HTML tags are not allowed here, e.g.: %title_with_permalink% will revert to %title%."307 msgstr ""308 309 #: includes/class-wpdr-email-notice.php:745, includes/class-wpdr-email-notice.php:764, includes/class-wpdr-email-notice.php:793310 msgid "Hint: HTML tags are welcome here to make your notification e-mails more personalized."311 msgstr ""312 313 #: includes/class-wpdr-email-notice.php:777314 msgid "Attach the document in emails to external users."315 msgstr ""316 317 #: includes/class-wpdr-email-notice.php:779318 msgid "Remember that Public documents may not always be accessible, so these may need to be attached."319 msgstr ""320 321 #: includes/class-wpdr-email-notice.php:860322 msgid "Notify me by e-mail when a new document is published"323 msgstr ""324 325 #: includes/class-wpdr-email-notice.php:862326 msgid "Also send me the document as an attachment by e-mail when a new document is published"327 msgstr ""328 329 #: includes/class-wpdr-email-notice.php:969, includes/class-wpdr-email-notice.php:3432330 msgid "Document Email Notifications"331 msgstr ""332 333 #: includes/class-wpdr-email-notice.php:995, includes/class-wpdr-email-notice.php:993334 msgid "Send notification email(s)"335 msgstr ""336 337 #: includes/class-wpdr-email-notice.php:1008, includes/class-wpdr-email-notice.php:1075, includes/class-wpdr-email-notice.php:1057338 msgid "Add Extra text"339 msgstr ""340 341 #: includes/class-wpdr-email-notice.php:1085, includes/class-wpdr-email-notice.php:1048342 msgid "Re-send external list email(s)"343 msgstr ""344 345 #: includes/class-wpdr-email-notice.php:1083, includes/class-wpdr-email-notice.php:1066346 msgid "Send external list email(s)"347 msgstr ""348 349 #: includes/class-wpdr-email-notice.php:1087, includes/class-wpdr-email-notice.php:1089350 msgid "Optional Extra text"351 msgstr ""352 353 #: includes/class-wpdr-email-notice.php:1090354 msgid "Enter any extra text for this specific mailing and click Add Extra text."355 msgstr ""356 357 #: includes/class-wpdr-email-notice.php:1105, includes/class-wpdr-email-notice.php:1105358 msgid "External User Email Log"359 msgstr ""360 361 #: includes/class-wpdr-email-notice.php:1107, includes/class-wpdr-email-notice.php:1107362 msgid "Internal User Email Log"363 msgstr ""364 365 #: includes/class-wpdr-email-notice.php:1122, includes/class-wpdr-email-notice.php:1133, includes/class-wpdr-email-notice.php:1144, includes/class-wpdr-email-notice.php:1168, includes/class-wpdr-email-notice.php:1240, includes/class-wpdr-email-notice.php:1251, includes/class-wpdr-email-notice.php:1262, includes/class-wpdr-email-notice.php:1278, includes/class-wpdr-email-notice.php:1290, includes/class-wpdr-email-notice.php:1313, includes/class-wpdr-email-notice.php:1357, includes/class-wpdr-email-notice.php:2604, includes/class-wpdr-email-notice.php:2620, includes/class-wpdr-email-notice.php:2691, includes/class-wpdr-email-notice.php:2707, includes/class-wpdr-email-notice.php:2739, includes/class-wpdr-email-notice.php:2777366 msgid "Something went wrong"367 msgstr ""368 369 #: includes/class-wpdr-email-notice.php:1445, includes/class-wpdr-email-notice.php:1476, includes/class-wpdr-email-notice.php:1510, includes/class-wpdr-email-notice.php:1610, includes/class-wpdr-email-notice.php:1659370 msgid "You do not have sufficient permissions to access this page."371 msgstr ""372 373 #: includes/class-wpdr-email-notice.php:1453374 msgid "Document Email Notification Log"375 msgstr ""376 377 #: includes/class-wpdr-email-notice.php:1460, includes/class-wpdr-email-notice.php:1491, includes/class-wpdr-email-notice.php:1530378 msgid "Search"379 msgstr ""380 381 #: includes/class-wpdr-email-notice.php:1463, includes/class-wpdr-email-notice.php:1494382 msgid "Note: Success denotes that the mail was successfully received by your e-mail system."383 msgstr ""384 385 #: includes/class-wpdr-email-notice.php:1464386 msgid "The mail delivery process to the recipient is managed within your e-mail system."387 msgstr ""388 389 #: includes/class-wpdr-email-notice.php:1484390 msgid "Document Email External Notice Log"391 msgstr ""392 393 #: includes/class-wpdr-email-notice.php:1495394 msgid "The delivery process to the recipient is managed within your e-mail system."395 msgstr ""396 397 #: includes/class-wpdr-email-notice.php:1527398 msgid "User Addressee List"399 msgstr ""400 401 #: includes/class-wpdr-email-notice.php:1597, includes/class-wpdr-email-notice.php:3388, includes/class-wpdr-email-notice.php:3391402 msgid "List Attributes"403 msgstr ""404 405 #: includes/class-wpdr-email-notice.php:1599, includes/class-wpdr-email-notice.php:3389, includes/class-wpdr-email-notice.php:3403406 msgid "Document External User List"407 msgstr ""408 409 #: includes/class-wpdr-email-notice.php:1632410 msgid "Clear values"411 msgstr ""412 413 #: includes/class-wpdr-email-notice.php:1669, includes/class-wpdr-email-notice.php:2970414 msgid "Match Rule"415 msgstr ""416 417 #: includes/class-wpdr-email-notice.php:1670418 msgid "Choose whether any or all of this lists taxonomy elements must match those on the document to be considered a match."419 msgstr ""420 421 #: includes/class-wpdr-email-notice.php:1673, includes/class-wpdr-email-notice.php:2991, includes/class-wpdr-email-notice.php:3025, includes/class-wpdr-email-notice.php:3077422 msgid "Any taxonomy element"423 msgstr ""424 425 #: includes/class-wpdr-email-notice.php:1674, includes/class-wpdr-email-notice.php:2991, includes/class-wpdr-email-notice.php:3026426 msgid "All taxonomy elements"427 msgstr ""428 429 #: includes/class-wpdr-email-notice.php:1677, includes/class-wpdr-email-notice.php:2971, includes/class-wpdr-email-notice.php:3395430 msgid "Document Attach"431 msgstr ""432 433 #: includes/class-wpdr-email-notice.php:1680434 msgid "Attach Document to Notification E-mails"435 msgstr ""436 437 #: includes/class-wpdr-email-notice.php:1682, includes/class-wpdr-email-notice.php:3115, includes/class-wpdr-email-notice.php:3397, includes/class-wpdr-en-ext-user-table.php:106438 msgid "Pause Mail"439 msgstr ""440 441 #: includes/class-wpdr-email-notice.php:1685442 msgid "Pause this List"443 msgstr ""444 445 #: includes/class-wpdr-email-notice.php:1687, includes/class-wpdr-email-notice.php:1690446 msgid "Document List Notes"447 msgstr ""448 449 #: includes/class-wpdr-email-notice.php:1691450 msgid "You can use this to hold any notes for this list entry."451 msgstr ""452 453 #: includes/class-wpdr-email-notice.php:2096454 msgid "New document: "455 msgstr ""456 457 #: includes/class-wpdr-email-notice.php:2224, includes/class-wpdr-email-notice.php:2336458 msgid "Document too large to be attached."459 msgstr ""460 461 #: includes/class-wpdr-email-notice.php:2222, includes/class-wpdr-email-notice.php:2334462 msgid "Document attached."463 msgstr ""464 465 #: includes/class-wpdr-email-notice.php:2213, includes/class-wpdr-email-notice.php:2325466 msgid "Document not attached."467 msgstr ""468 469 #: includes/class-wpdr-email-notice.php:2251, includes/class-wpdr-email-notice.php:2367470 msgid "Failed"471 msgstr ""472 473 #: includes/class-wpdr-email-notice.php:2248, includes/class-wpdr-email-notice.php:2237, includes/class-wpdr-email-notice.php:2364, includes/class-wpdr-email-notice.php:2350474 msgid "Successful"475 msgstr ""476 477 #: includes/class-wpdr-email-notice.php:2248, includes/class-wpdr-email-notice.php:2237, includes/class-wpdr-email-notice.php:2364, includes/class-wpdr-email-notice.php:2350478 msgid "Success Attachment"479 msgstr ""480 481 #: includes/class-wpdr-email-notice.php:2237, includes/class-wpdr-email-notice.php:2350, includes/class-wpdr-email-notice.php:2469482 msgid "Test"483 msgstr ""484 485 #: includes/class-wpdr-email-notice.php:2312486 msgid "Empty mail subject and/or content."487 msgstr ""488 489 #: includes/class-wpdr-email-notice.php:2585490 msgid "Not logged and/or sent out successfully no mails."491 msgstr ""492 493 #: includes/class-wpdr-email-notice.php:2672494 msgid "Not logged and/or sent out successfully any mails."495 msgstr ""496 497 #: includes/class-wpdr-email-notice.php:2862498 msgid "notification(s) sent."499 msgstr ""500 501 #: includes/class-wpdr-email-notice.php:2862, includes/class-wpdr-email-notice.php:2857, includes/class-wpdr-email-notice.php:2853502 msgid "Check log"503 msgstr ""504 505 #: includes/class-wpdr-email-notice.php:2857506 msgid "log issues."507 msgstr ""508 509 #: includes/class-wpdr-email-notice.php:2853510 msgid "Error sending notifications."511 msgstr ""512 513 #: includes/class-wpdr-email-notice.php:2972514 msgid "List Paused"515 msgstr ""516 517 #: includes/class-wpdr-email-notice.php:3024, includes/class-wpdr-email-notice.php:3074518 msgid "Match Rule :"519 msgstr ""520 521 #: includes/class-wpdr-email-notice.php:3028522 msgid "Choose whether Any or All of these taxonomy elements must match for the list to be used to send e-mails."523 msgstr ""524 525 #: includes/class-wpdr-email-notice.php:3037, includes/class-wpdr-email-notice.php:3093526 msgid "Document Attach :"527 msgstr ""528 529 #: includes/class-wpdr-email-notice.php:3047, includes/class-wpdr-email-notice.php:3111530 msgid "Pause Mail :"531 msgstr ""532 533 #: includes/class-wpdr-email-notice.php:3076, includes/class-wpdr-email-notice.php:3095, includes/class-wpdr-email-notice.php:3113534 msgid "-- No Change --"535 msgstr ""536 537 #: includes/class-wpdr-email-notice.php:3078538 msgid "All taxonomy elements-"539 msgstr ""540 541 #: includes/class-wpdr-email-notice.php:3082542 msgid "Choose whether Any or All of these taxonomy elements must match for the lists to be used to send e-mails."543 msgstr ""544 545 #: includes/class-wpdr-email-notice.php:3096546 msgid "Do not Attach Document"547 msgstr ""548 549 #: includes/class-wpdr-email-notice.php:3097550 msgid "Attach Document"551 msgstr ""552 553 #: includes/class-wpdr-email-notice.php:3114554 msgid "Do not Pause Mail"555 msgstr ""556 557 #: includes/class-wpdr-email-notice.php:3320, includes/class-wpdr-email-notice.php:3323558 msgid "Document External List updated."559 msgstr ""560 561 #: includes/class-wpdr-email-notice.php:3321562 msgid "Custom field updated."563 msgstr ""564 565 #: includes/class-wpdr-email-notice.php:3322566 msgid "Custom field deleted."567 msgstr ""568 569 #. translators: %s is the revision ID.570 #: includes/class-wpdr-email-notice.php:3326571 msgid "Document External List restored to revision from %s"572 msgstr ""573 574 #: includes/class-wpdr-email-notice.php:3328575 msgid "Document External List published."576 msgstr ""577 578 #: includes/class-wpdr-email-notice.php:3329579 msgid "Document External List saved."580 msgstr ""581 582 #: includes/class-wpdr-email-notice.php:3330583 msgid "Document External List submitted."584 msgstr ""585 586 #. translators: %1$s is the date, %2$s is the preview link.587 #: includes/class-wpdr-email-notice.php:3332588 msgid "Document External List scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview document list</a>"589 msgstr ""590 591 #: includes/class-wpdr-email-notice.php:3332592 msgctxt "%1$s: date; %2$s: time"593 msgid "%1$s @ %2$s"594 msgstr ""595 596 #: includes/class-wpdr-email-notice.php:3333597 msgid "Document External List draft updated."598 msgstr ""599 600 #: includes/class-wpdr-email-notice.php:3383601 msgid "Usage"602 msgstr ""603 604 #: includes/class-wpdr-email-notice.php:3384605 msgid "This screen allows a user to define a list of email users that will receive an email (generally with the document attached) if any taxonomy value of the list matches that on the document requested."606 msgstr ""607 608 #: includes/class-wpdr-email-notice.php:3385609 msgid "The List is available for this processing once the List is published."610 msgstr ""611 612 #: includes/class-wpdr-email-notice.php:3386613 msgid "When editing is completed, simply click <code>Update</code> or <code>Publish</code> to save your changes."614 msgstr ""615 616 #: includes/class-wpdr-email-notice.php:3387617 msgid "There are three main areas associated with the List:"618 msgstr ""619 620 #: includes/class-wpdr-email-notice.php:3390621 msgid "Taxonomies"622 msgstr ""623 624 #: includes/class-wpdr-email-notice.php:3392625 msgid "Taxonomy Match Rule"626 msgstr ""627 628 #: includes/class-wpdr-email-notice.php:3393629 msgid "See the section <strong>Document Taxonomies</strong> for the process to determine whether an individual External List term matches that on the Document."630 msgstr ""631 632 #: includes/class-wpdr-email-notice.php:3394633 msgid "This flag indicates whether all the terms on the External List or at least one must match those on the Document for the External List to be considered matching the Document."634 msgstr ""635 636 #: includes/class-wpdr-email-notice.php:3396637 msgid "This is a text area where optional comment or information can be made about the External List."638 msgstr ""639 640 #: includes/class-wpdr-email-notice.php:3398641 msgid "This allows the External List to be paused from matching Documents."642 msgstr ""643 644 #: includes/class-wpdr-email-notice.php:3399645 msgid "It is provided so that an External List can be withdrawn from processing temporarily without simply changing its status."646 msgstr ""647 648 #: includes/class-wpdr-email-notice.php:3400649 msgid "List Notes"650 msgstr ""651 652 #: includes/class-wpdr-email-notice.php:3401653 msgid "This is a text area where optional comment or information can be held about the External List."654 msgstr ""655 656 #: includes/class-wpdr-email-notice.php:3402657 msgid "Use is made of the excerpt field as it intended to be a simple aide-memoire to administrators of the External Lists."658 msgstr ""659 660 #: includes/class-wpdr-email-notice.php:3404661 msgid "This panel consists of two parts. First are the elements to create or edit an individual user record into the table of email addresses, followed by a searchable list of the email addresses associated with the list."662 msgstr ""663 664 #: includes/class-wpdr-email-notice.php:3405665 msgid "Note that changes made to this User List are stored immediately. There is no separate process to update the data permanently or to cancel the edits made so far."666 msgstr ""667 668 #: includes/class-wpdr-email-notice.php:3406669 msgid "This holds a list of individual users that will be sent an email when the External List is selected."670 msgstr ""671 672 #: includes/class-wpdr-email-notice.php:3407673 msgid "Each user record will contain the user name and email address and an optional pause attribute that pauses the sending of emails to the user."674 msgstr ""675 676 #: includes/class-wpdr-email-notice.php:3408677 msgid "This pause attribute allows the user details to be retained in the User List but notification emails will not be sent to the specific user."678 msgstr ""679 680 #: includes/class-wpdr-email-notice.php:3409681 msgid "Document Taxonomies"682 msgstr ""683 684 #: includes/class-wpdr-email-notice.php:3410685 msgid "These taxonomies are generally shown on the right part of the screen. They are the taxonomies that can be applied to Documents."686 msgstr ""687 688 #: includes/class-wpdr-email-notice.php:3411689 msgid "At least one taxonomy term is required to be entered, although several can be."690 msgstr ""691 692 #: includes/class-wpdr-email-notice.php:3412693 msgid "If there are multiple terms on the External List then the matching rule will used to determine whether just one term is needed for the External List to be selected or all terms present must match for notification."694 msgstr ""695 696 #: includes/class-wpdr-email-notice.php:3413697 msgid "For hierarchical taxonomies, a term on the External List is considered matched if the term on the Document is either the same as that on the External List or is a child of the External List term."698 msgstr ""699 700 #: includes/class-wpdr-email-notice.php:3414701 msgid "Because of this, it is not permitted to publish an External List when the terms entered contains a term and its parent since the term matching process means that the child term would be redundant."702 msgstr ""703 704 #: includes/class-wpdr-email-notice.php:3415705 msgid "A Document can have additional terms present, i.e. it is not necessary that all Document terms must match."706 msgstr ""707 708 #: includes/class-wpdr-email-notice.php:3416709 msgid "Publish"710 msgstr ""711 712 #: includes/class-wpdr-email-notice.php:3417713 msgid "By default, Documents are only accessible to logged in users. Documents can be published, thus making them accessible to the world, by toggling their visibility in the \"Publish\" box in the top right corner. Any document marked as published will be accessible to anyone with the proper URL."714 msgstr ""715 716 #: includes/class-wpdr-email-notice.php:3418717 msgid "Similarly these user lists need to be published for the list to be eligible to be selected for sending emails to its users."718 msgstr ""719 720 #: includes/class-wpdr-email-notice.php:3419721 msgid "Permissions"722 msgstr ""723 724 #: includes/class-wpdr-email-notice.php:3420725 msgid "It is expected that the emailing administration process will be centralised with only a handful of External Lists being created. Therefore the full WordPress set of access permissions is not required."726 msgstr ""727 728 #: includes/class-wpdr-email-notice.php:3421729 msgid "The permission <strong>edit_doc_ext_lists</strong> is supplied that allows users to create, update, and publish any External List."730 msgstr ""731 732 #: includes/class-wpdr-email-notice.php:3422733 msgid "The permission <strong>delete_doc_ext_lists</strong> is supplied that allows users to delete any External List."734 msgstr ""735 736 #: includes/class-wpdr-email-notice.php:3423737 msgid "Users with <strong>edit_documents</strong> permission can read any External List since its use is from within the Document editing screen."738 msgstr ""739 740 #: includes/class-wpdr-email-notice.php:3426741 msgid "Document External Lists"742 msgstr ""743 744 #: includes/class-wpdr-email-notice.php:3427745 msgid "Below is a list of all Document External Lists used to send email notifications to external users on an update to a Document. Click the list title to edit the document list."746 msgstr ""747 748 #: includes/class-wpdr-email-notice.php:3428749 msgid "To add a new Document External List, click <strong>Add Document External List</strong> at the top of the screen."750 msgstr ""751 752 #: includes/class-wpdr-email-notice.php:3429753 msgid "Note that whilst this functionality is primarily intended for people that are not users of this site, any email address can be used."754 msgstr ""755 756 #: includes/class-wpdr-email-notice.php:3433757 msgid "Notification emails can be sent (or re-sent) for published Documents by clicking on the button \"Send notification emails\" (to internal users) or \"Send external emails\" (to external users)."758 msgstr ""759 760 #: includes/class-wpdr-email-notice.php:3434761 msgid "Internal users are those with user-ids on the site. They can decide whether they wish to receive these notifications or not and whether a copy of the document should be attached the mail."762 msgstr ""763 764 #: includes/class-wpdr-email-notice.php:3435765 msgid "This data can also be updated by Administrators (also using Bulk Editing functions)."766 msgstr ""767 768 #: includes/class-wpdr-email-notice.php:3436769 msgid "External users normally do not have a sign-on. Notifications are based on the concept of External Lists. A list will contain one or more taxonomy terms that will be matched again the document terms."770 msgstr ""771 772 #: includes/class-wpdr-email-notice.php:3437773 msgid "Every published External List (except those marked as Paused) will be tested to see whether its terms match those on the Document."774 msgstr ""775 776 #: includes/class-wpdr-email-notice.php:3438777 msgid "Those that match are listed below the button. If the user can maintain the External List, then they can choose to not send the mail to a List by unchecking the List before sending the Notification."778 msgstr ""779 780 #: includes/class-wpdr-email-notice.php:3439781 msgid "A term on the list matches with one on the Document if they are same or, for hierarchical taxonomies, the List term is a parent of the Document term."782 msgstr ""783 784 #: includes/class-wpdr-email-notice.php:3440785 msgid "If there are several terms on the List, it can be set so that the List is matched if either any term matches or all terms must match."786 msgstr ""787 788 #: includes/class-wpdr-email-notice.php:3441789 msgid "Potentially several Lists may match the Document. Emails will be sent to every user (except those individually paused) on each list that is matched."790 msgstr ""791 792 #: includes/class-wpdr-email-notice.php:3442793 msgid "Document Email Extra Text"794 msgstr ""795 796 #: includes/class-wpdr-email-notice.php:3443797 msgid "You can include some message-specific additional text with the notification emails."798 msgstr ""799 800 #: includes/class-wpdr-email-notice.php:3445801 msgid "The template used (Internal or External) has to contain the tag \"%extra%\" in it to use this capability."802 msgstr ""803 804 #: includes/class-wpdr-email-notice.php:3446805 msgid "A checkbox which is initially disabled with label \"Add Extra Text\" is placed next to each Send button."806 msgstr ""807 808 #: includes/class-wpdr-email-notice.php:3447809 msgid "On entering some text in the text field, these checkboxes will become active if the template allows it."810 msgstr ""811 812 #: includes/class-wpdr-email-notice.php:3448813 msgid "The extra text will only be included if the corresponding checkbox is checked when the send button is clicked. It can contains html tags to better format the output."814 msgstr ""815 816 #: includes/class-wpdr-email-notice.php:3492, includes/class-wpdr-email-notice.php:3523817 msgid "There are no terms defined for matching with this list. Please add at least one."818 msgstr ""819 820 #: includes/class-wpdr-email-notice.php:3505821 msgid "There are no addressees defined for matching with this list. Please add at least one."822 msgstr ""823 824 #. translators: %1$s is the taxonomy name, %2$s is the parent term, %2$s is the child term.825 #: includes/class-wpdr-email-notice.php:3529826 msgid "Taxonomy: %1$s. Cannot have both parent (%2$s) and child terms (%3$s). Remove child term as parent term will match."827 msgstr ""828 829 #. translators: %s is the taxonomy name.830 #: includes/class-wpdr-email-notice.php:3552831 msgid "Taxonomy: %s. You must redo your non-hierarchical changes manually."832 msgstr ""833 834 #. translators: %1$s is the taxonomy term name.835 #: includes/class-wpdr-email-notice.php:3561836 msgid "Remove Term: %1$s "837 msgstr ""838 839 #: includes/class-wpdr-email-notice.php:3557840 msgid "Add Term: %1$s "841 msgstr ""842 843 #: includes/class-wpdr-en-all-users-bulk-action.php:41844 msgid "Subscribe to Document Email notifications"845 msgstr ""846 847 #: includes/class-wpdr-en-all-users-bulk-action.php:42848 msgid "Unsubscribe from Document Email notifications"849 msgstr ""850 851 #: includes/class-wpdr-en-all-users-bulk-action.php:69852 msgid "Error subscribing users."853 msgstr ""854 855 #: includes/class-wpdr-en-all-users-bulk-action.php:78856 msgid "Error unsubscribing users."857 msgstr ""858 859 #: includes/class-wpdr-en-ext-log-table.php:32860 msgid "External Notification email sent"861 msgstr ""862 863 #: includes/class-wpdr-en-ext-log-table.php:33864 msgid "External Notification emails sent"865 msgstr ""866 867 #: includes/class-wpdr-en-ext-log-table.php:50, includes/class-wpdr-en-user-log-table.php:55868 msgid "Post Title"869 msgstr ""870 871 #: includes/class-wpdr-en-ext-log-table.php:51872 msgid "List Title"873 msgstr ""874 875 #: includes/class-wpdr-en-ext-log-table.php:52, includes/class-wpdr-en-user-log-table.php:56876 msgid "E-mail sent"877 msgstr ""878 879 #: includes/class-wpdr-en-ext-log-table.php:53, includes/class-wpdr-en-ext-user-table.php:104, includes/class-wpdr-en-user-log-table.php:57880 msgid "User Name"881 msgstr ""882 883 #: includes/class-wpdr-en-ext-log-table.php:54, includes/class-wpdr-en-user-log-table.php:58884 msgid "User E-mail"885 msgstr ""886 887 #: includes/class-wpdr-en-ext-log-table.php:55, includes/class-wpdr-en-user-log-table.php:59888 msgid "Status"889 msgstr ""890 891 #: includes/class-wpdr-en-ext-log-table.php:121, includes/class-wpdr-en-user-log-table.php:122892 msgid "Extra Text"893 msgstr ""894 895 #: includes/class-wpdr-en-ext-log-table.php:222, includes/class-wpdr-en-user-log-table.php:227896 msgid "No e-mails sent out, yet."897 msgstr ""898 899 #: includes/class-wpdr-en-ext-user-table.php:62900 msgid "External User Address"901 msgstr ""902 903 #: includes/class-wpdr-en-ext-user-table.php:63904 msgid "External User Addresses"905 msgstr ""906 907 #: includes/class-wpdr-en-ext-user-table.php:105908 msgid "E-mail Address"909 msgstr ""910 911 #: includes/class-wpdr-en-ext-user-table.php:153912 msgid "Edit"913 msgstr ""914 915 #: includes/class-wpdr-en-ext-user-table.php:154916 msgid "Delete"917 msgstr ""918 919 #: includes/class-wpdr-en-ext-user-table.php:265920 msgid "No matching addressees found."921 msgstr ""922 923 #: includes/class-wpdr-en-ext-user-table.php:263924 msgid "No addressees created yet."925 msgstr ""926 927 #: includes/class-wpdr-en-user-log-table.php:37928 msgid "Notification email sent"929 msgstr ""930 931 #: includes/class-wpdr-en-user-log-table.php:38932 msgid "Notification emails sent"933 msgstr ""934 935 #. translators: Do not translate Email Notice WP Document Revisions or WP Document Revisions.936 #: wpdr-email-notice.php:28937 msgid "Plugin Email Notice WP Document Revisions is activated but its required plugin WP Document Revisions is not."938 msgstr ""939 940 #. translators: Do not translate Email Notice WP Document Revisions.941 #: wpdr-email-notice.php:31942 msgid "Plugin Email Notice WP Document Revisions will not activate its functionality."943 msgstr "" -
email-notice-wp-document-revisions/trunk/readme.txt
r3212642 r3276769 5 5 Requires PHP: 7.4 6 6 Requires Plugins: wp-document-revisions 7 Tested up to: 6. 7.18 Stable tag: 3. 17 Tested up to: 6.8.0 8 Stable tag: 3.2 9 9 License: GPLv3 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 13 13 == Description == 14 14 15 This plugin is an add-on to WP Document Revisions. This supports sending out e -mail notifications about newly published documents to users who are interested to receive notifications either automatically (on publish) or manually.15 This plugin is an add-on to WP Document Revisions. This supports sending out email notifications about newly published documents to users who are interested to receive notifications either automatically (on publish) or manually. 16 16 17 By default when you send any notification from your blog (including many of the plugins as well) sender is "WordPress" and the sender e -mail address is <[email protected]>.17 By default when you send any notification from your blog (including many of the plugins as well) sender is "WordPress" and the sender email address is <[email protected]>. 18 18 19 19 This plugin will enable you to … … 23 23 * Create lists of email users that can be sent email notifications of updates to your published documents 24 24 25 * Easily customize notification e -mail subject and content templates25 * Easily customize notification email subject and content templates 26 26 27 * Re-send e-mail notifications manually as well 27 * Re-send email notifications manually as well 28 29 * You can add a notification-specific message in the email. 28 30 29 31 * When a notification is resent to a user, then you can include information that it is a resend and when previously sent 30 32 31 * Maintain e -mail log about sent e-mail notifications.33 * Maintain email logs about sent email notifications. 32 34 33 * Replace default <[email protected]> to any e -mail address35 * Replace default <[email protected]> to any email address 34 36 35 * Replace default e -mail from "WordPress" name to anything you want37 * Replace default email from "WordPress" name to anything you want 36 38 37 * Administration forms contain pulldown Help information.39 * Administration forms contain significant pulldown Help information. 38 40 39 41 For your WordPress users: 40 42 41 * Send notifications about password protected posts as well to those that can read it (password will NOT be included in notification e -mail)43 * Send notifications about password protected posts as well to those that can read it (password will NOT be included in notification email) 42 44 43 * Users can opt-out if they don't want to receive e -mails (they can choose to get all/nothing)45 * Users can opt-out if they don't want to receive emails (they can choose to get all/nothing) 44 46 45 * Bulk subscribe/unsubscribe users to/from e -mail notifications (go to Users->All Users and see bulk actions)47 * Bulk subscribe/unsubscribe users to/from email notifications (go to Users->All Users and see bulk actions) 46 48 47 49 For your External users: … … 51 53 * Matching rule can be set to either match one term or all terms on the list. 52 54 53 Initial release based on plugin "WP JV Custom Email Settings" by Janos Ver.55 Initial release was based on plugin "WP JV Custom Email Settings" by Janos Ver. 54 56 55 57 … … 70 72 = How does the plugin work? = 71 73 72 When enabled a metabox will be added to the Document Admin screen. This can contain two buttons to send emails. One will be for internal users (although you can filter this capability out) and the other for Document Lists. The Document List define a set of email names and addresses that will be sent the notifications; together with a list of Taxonomy matching rules.74 When enabled a metabox will be added to the Document Admin screen. This can contain two buttons to send emails. One will be for Internal users (although you can filter this capability out) and the other for Document Lists. The Document List define a set of email names and addresses that will be sent the notifications; together with a list of Taxonomy matching rules. 73 75 74 There is information in the Document and DocumentList Help pulldowns found on the top right hand corner of their Admin screens.76 Significant information is held in the Document and Document External List Help pulldowns found on the top right hand corner of their Admin screens. 75 77 76 Go to Settings -> General -> "Document Email Settings" section. 78 Please make use of them to see how to use them and where you can see the data in context. 79 80 Also additional information is held in the [usage documentation](../docs/usage.md) 77 81 78 82 = Where can I define new "Email From" name and from "Email Address"? = … … 81 85 82 86 = How does this work? What is the difference between Auto/Manual notification mode? = 83 In Settings -> Writing -> "Document Email Settings - Notifications" section you can select to send notifications automatically or manually. If it is set to Auto whenever you publish a document notification e -mails will be sent out automatically for users with access to the document and opted to receive such notifications. In case of Manual you will be provided a "Send/Re-send notification email(s)" button to notify your readers.87 In Settings -> Writing -> "Document Email Settings - Notifications" section you can select to send notifications automatically or manually. If it is set to Auto whenever you publish a document notification emails will be sent out automatically for users with access to the document and opted to receive such notifications. In case of Manual you will be provided a "Send/Re-send notification email(s)" button to notify your readers. 84 88 85 = I'm not getting any notification e -mails, what is wrong? =86 In order to receive notification e -mails users have to go to their profile and check “Notify me by e-mail when a new post is published” checkbox in "Document Email Settings" section (or an admin has to do it for them).89 = I'm not getting any notification emails, what is wrong? = 90 In order to receive notification emails users have to go to their profile and check “Notify me by email when a new post is published” checkbox in "Document Email Settings" section (or an admin has to do it for them). 87 91 88 92 It will check that the WordPress User can read the Document before sending a mail, it may be just that you cannot access the document. 89 93 90 = I would like the document attached to the e -mail (WordPress user)91 Even though the user should have access to the document via the front-end, as well, the user can choose to have the document attached to the e -mail (subject to size limitations) by checking "Also send me the document as an attachment by e-mail when a new document is published" checkbox in "Document Email Settings" section (or an admin has to do it for them).94 = I would like the document attached to the email (WordPress user) 95 Even though the user should have access to the document via the front-end, as well, the user can choose to have the document attached to the email (subject to size limitations) by checking "Also send me the document as an attachment by email when a new document is published" checkbox in "Document Email Settings" section (or an admin has to do it for them). 92 96 93 = I have a site that requires a log-on but would like to send the External Users a copy of the document attached to the notification e -mail.97 = I have a site that requires a log-on but would like to send the External Users a copy of the document attached to the notification email. 94 98 This is a convenience when the document has public read access, but is necessary if the site requires users to log on to access a document. 95 99 96 A filter *wpdr_en_ext_force_attach* can be set to return true to force this. Individual lists can be defined to attach the document or not. 100 In Settings -> Writing -> "Document Email Settings - Notifications" section, there is a checkbox to attach the Document to the email. 101 102 Individual lists can be defined to attach the document or not. 97 103 98 104 = What kind of tags I can use and for what? = 99 You can customize notification e -mail template (both subject and content) In the content you can use any standard html tags as well on top of the following ones:105 You can customize notification email template (both subject and content) In the content you can use any standard html tags as well on top of the following ones: 100 106 101 Details are given in the [tags documentation]( https://github.com/NeilWJames/email-notice-wp-document-revisions/blob/main/docs/tags.md).107 Details are given in the [tags documentation](../docs/tags.md). 102 108 103 109 = Where are the logs? = 104 Logs of notifications are available at Document Emails -> Internal User Email Log (for WordPress users) or Document Emails -> External User Email Log, where you can view which users were notified about which post and if e -mail sending was successful or not (please note that bounce messages are not processed).110 Logs of notifications are available at Document Emails -> Internal User Email Log (for WordPress users) or Document Emails -> External User Email Log, where you can view which users were notified about which post and if email sending was successful or not (please note that bounce messages are not processed). 105 111 106 = I've multisite. Does this plugin work sfor me as well? =112 = I've multisite. Does this plugin work for me as well? = 107 113 Yes, it does, but in that case each site will have its own log in Document Emails. 108 114 … … 110 116 Yes, there are a number of these. 111 117 112 These are listed and described at [filters.md]( https://github.com/NeilWJames/email-notice-wp-document-revisions/blob/main/docs/filters.md).118 These are listed and described at [filters.md](../docs/filters.md). 113 119 114 120 == Changelog == 121 122 = 3.2 = 123 Release date: April 18, 2025 124 125 * NEW: GitHub documentation included in plugin and explicitly linked. 126 * NEW: Text domain changed as plugin_check plugin complains. 127 * FIX: Settings sanitized on update. 128 * FIX: Notification-specific text message metabox reviewed. 129 * FIX: Filter wpdr_en_ext_attach_notice withdrawn as effectively replaced by global setting. 130 * FIX: Consistent use of word email (rather than e-mail) 131 * FIX: Review uninstall process 115 132 116 133 = 3.1 = -
email-notice-wp-document-revisions/trunk/uninstall.php
r3212640 r3276769 35 35 delete_option( 'wpdr_en_set_subject' ); 36 36 delete_option( 'wpdr_en_set_content' ); 37 // phpcs:ignore Squiz.PHP.CommentedOutCode 38 // #TODO: purge 37 delete_option( 'wpdr_en_set_exttext' ); 38 delete_option( 'wpdr_en_set_ext_attach' ); 39 delete_option( 'wpdr_en_set_repeat' ); 40 41 // Remove DEL posts. 42 $dels = get_posts( 43 array( 44 'post_type' => 'doc_ext_list', 45 'numberposts' => -1, 46 ) 47 ); 48 foreach ( $dels as &$del ) { 49 wp_delete_post( $del->ID, true ); 50 } 39 51 40 52 // delete wpdr_en_notification_sent flags. … … 118 130 foreach ( $wp_roles->role_names as $wrole => $label ) { 119 131 $role_caps = $wp_roles->roles[ $wrole ]['capabilities']; 120 if ( array_key_exists( 'edit_doc_ext_list', $role_caps ) ) { 121 $wp_roles->remove_cap( $wrole, 'edit_doc_ext_list' ); 132 if ( array_key_exists( 'edit_doc_ext_lists', $role_caps ) ) { 133 $wp_roles->remove_cap( $wrole, 'edit_doc_ext_lists' ); 134 } 135 if ( array_key_exists( 'delete_doc_ext_lists', $role_caps ) ) { 136 $wp_roles->remove_cap( $wrole, 'delete_doc_ext_lists' ); 122 137 } 123 138 } -
email-notice-wp-document-revisions/trunk/wpdr-email-notice.php
r3212640 r3276769 4 4 * Plugin URI: http://github.com/NeilWJames/email-notice-wp-document-revisions 5 5 * Description: Add-on plugin to WP Document Revisions to notify users about new documents published. 6 * Version: 3. 16 * Version: 3.2 7 7 * Author: Neil James 8 8 * Author URI: http://github.com/NeilWJames … … 10 10 * Requires at least: 4.9 11 11 * Requires PHP: 7.4 12 * Text Domain: wpdr-email-notice12 * Text Domain: email-notice-wp-document-revisions 13 13 * Domain Path: /languages 14 14 * … … 26 26 echo wp_kses_post( '<div class="notice notice-warning is-dismissible"><p>' ); 27 27 // translators: Do not translate Email Notice WP Document Revisions or WP Document Revisions. 28 esc_html_e( 'Plugin Email Notice WP Document Revisions is activated but its required plugin WP Document Revisions is not.', ' wpdr-email-notice' );28 esc_html_e( 'Plugin Email Notice WP Document Revisions is activated but its required plugin WP Document Revisions is not.', 'email-notice-wp-document-revisions' ); 29 29 echo wp_kses_post( '</p><p>' ); 30 30 // translators: Do not translate Email Notice WP Document Revisions. 31 esc_html_e( 'Plugin Email Notice WP Document Revisions will not activate its functionality.', ' wpdr-email-notice' );31 esc_html_e( 'Plugin Email Notice WP Document Revisions will not activate its functionality.', 'email-notice-wp-document-revisions' ); 32 32 echo wp_kses_post( '</p></div>' ); 33 33 }
Note: See TracChangeset
for help on using the changeset viewer.