Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 46,47c46
- < 'always_notify_admin' => 'off',
- < 'include_post' => 'on',
- ---
- > 'always_notify_admin' => 'off',
- 406a406
- > $body .= sprintf( __( 'Author: %1$s (%2$s)', 'edit-flow' ), $post_author->display_name, $post_author->user_email ) . "\r\n";
- 408,415d407
- < if( 'on' == $this->module->options->include_post ) {
- < $content = get_post($post->ID);
- < $body .= sprintf( __( 'Author: %1$s (%2$s)', 'edit-flow' ), $post_author->display_name, $post_author->user_email ) . "\r\n\r\n";
- < $body .= sprintf( __( 'Summary: %s', 'edit-flow' ), $content->post_content ) . "\r\n\r\n\r\n";
- < } else {
- < $body .= sprintf( __( 'Author: %1$s (%2$s)', 'edit-flow' ), $post_author->display_name, $post_author->user_email ) . "\r\n";
- < }
- <
- 900d891
- < add_settings_field( 'include_post', __( 'Send post in notification', 'edit-flow' ), array( $this, 'settings_include_post_option'), $this->module->options_group_name, $this->module->options_group_name . '_general' );
- 932,951d922
- < /**
- < * Option for whether the email notification should include the post content or not
- < *
- < * @since 0.7.4
- < */
- < function settings_include_post_option() {
- < $options = array(
- < 'off' => __( 'Disabled', 'edit-flow' ),
- < 'on' => __( 'Enabled', 'edit-flow' ),
- < );
- < echo '<select id="include_post" name="' . $this->module->options_group_name . '[include_post]">';
- < foreach ( $options as $value => $label ) {
- < echo '<option value="' . esc_attr( $value ) . '"';
- < echo selected( $this->module->options->include_post, $value );
- < echo '>' . esc_html( $label ) . '</option>';
- < }
- < echo '</select>';
- < }
- <
- <
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement