@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | * |
| 271 | 271 | * Verify permissions. Check expected $_POST. Parse args, then send to process_delete_notes |
| 272 | 272 | * |
| 273 | - * @since 1.17 |
|
| 273 | + * @since 1.17 |
|
| 274 | 274 | * |
| 275 | 275 | * @see process_delete_notes |
| 276 | 276 | * |
@@ -423,7 +423,7 @@ discard block |
||
| 423 | 423 | 'subject-label' => __( 'Subject', 'gravityview' ), |
| 424 | 424 | 'subject' => __( 'Email subject', 'gravityview' ), |
| 425 | 425 | 'default-email-subject' => __( 'New entry note', 'gravityview' ), |
| 426 | - 'email-footer' => __( 'This note was sent from {url}', 'gravityview' ), |
|
| 426 | + 'email-footer' => __( 'This note was sent from {url}', 'gravityview' ), |
|
| 427 | 427 | 'also-email' => __( 'Also email this note to', 'gravityview' ), |
| 428 | 428 | 'error-add-note' => __( 'There was an error adding the note.', 'gravityview' ), |
| 429 | 429 | 'error-invalid' => __( 'The request was invalid. Refresh the page and try again.', 'gravityview' ), |
@@ -493,11 +493,11 @@ discard block |
||
| 493 | 493 | |
| 494 | 494 | if ( $context instanceof \GV\Template_Context ) { |
| 495 | 495 | |
| 496 | - ob_start(); |
|
| 497 | - $context->template->get_template_part( 'note', 'detail', true ); |
|
| 498 | - $note_detail_html = ob_get_clean(); |
|
| 496 | + ob_start(); |
|
| 497 | + $context->template->get_template_part( 'note', 'detail', true ); |
|
| 498 | + $note_detail_html = ob_get_clean(); |
|
| 499 | 499 | |
| 500 | - ob_start(); |
|
| 500 | + ob_start(); |
|
| 501 | 501 | $context->template->get_template_part( 'note', $note_row_template, true ); |
| 502 | 502 | $note_row = ob_get_clean(); |
| 503 | 503 | } else { |
@@ -756,7 +756,7 @@ discard block |
||
| 756 | 756 | 'gv-note-to-custom' => '', |
| 757 | 757 | 'gv-note-subject' => '', |
| 758 | 758 | 'gv-note-content' => '', |
| 759 | - 'current-url' => '', |
|
| 759 | + 'current-url' => '', |
|
| 760 | 760 | ); |
| 761 | 761 | |
| 762 | 762 | $current_user = wp_get_current_user(); |
@@ -808,9 +808,9 @@ discard block |
||
| 808 | 808 | $message .= $this->get_email_footer( $email_footer, $is_html, $email_data ); |
| 809 | 809 | |
| 810 | 810 | /** |
| 811 | - * @filter `gravityview/field/notes/wpautop_email` Should the message content have paragraphs added automatically, if using HTML message format |
|
| 811 | + * @filter `gravityview/field/notes/wpautop_email` Should the message content have paragraphs added automatically, if using HTML message format |
|
| 812 | 812 | * @since 1.18 |
| 813 | - * @param bool $wpautop_email True: Apply wpautop() to the email message if using; False: Leave as entered (Default: true) |
|
| 813 | + * @param bool $wpautop_email True: Apply wpautop() to the email message if using; False: Leave as entered (Default: true) |
|
| 814 | 814 | */ |
| 815 | 815 | $wpautop_email = apply_filters( 'gravityview/field/notes/wpautop_email', true ); |
| 816 | 816 | |
@@ -830,12 +830,12 @@ discard block |
||
| 830 | 830 | } |
| 831 | 831 | |
| 832 | 832 | /** |
| 833 | - * Get the footer for Entry Note emails |
|
| 834 | - * |
|
| 835 | - * `{url}` is replaced by the URL of the page where the note form was embedded |
|
| 836 | - * |
|
| 837 | - * @since 1.18 |
|
| 838 | - * @see GravityView_Field_Notes::strings The default value of $message_footer is set here, with the key 'email-footer' |
|
| 833 | + * Get the footer for Entry Note emails |
|
| 834 | + * |
|
| 835 | + * `{url}` is replaced by the URL of the page where the note form was embedded |
|
| 836 | + * |
|
| 837 | + * @since 1.18 |
|
| 838 | + * @see GravityView_Field_Notes::strings The default value of $message_footer is set here, with the key 'email-footer' |
|
| 839 | 839 | * |
| 840 | 840 | * @param string $email_footer The message footer value |
| 841 | 841 | * @param bool $is_html True: Email is being sent as HTML; False: sent as text |
@@ -844,10 +844,10 @@ discard block |
||
| 844 | 844 | */ |
| 845 | 845 | private function get_email_footer( $email_footer = '', $is_html = true, $email_data = array() ) { |
| 846 | 846 | |
| 847 | - $output = ''; |
|
| 847 | + $output = ''; |
|
| 848 | 848 | |
| 849 | 849 | if( ! empty( $email_footer ) ) { |
| 850 | - $url = \GV\Utils::get( $email_data, 'current-url' ); |
|
| 850 | + $url = \GV\Utils::get( $email_data, 'current-url' ); |
|
| 851 | 851 | $url = html_entity_decode( $url ); |
| 852 | 852 | $url = site_url( $url ); |
| 853 | 853 | |