0
我正在使用wordpress訂閱評論&我想在'$ message。= __(「評論:\ n」,'subscribe-to-comments')後面加一個hr行。 $ comment-> comment_content。 「\ n \ n」;」如何在php代碼之間插入樣式代碼
如果你有一些想法,請告訴我如何風格輸出?我是新的PHP
if ($comment->comment_approved == '1' && $comment->comment_type == '') {
// Comment has been approved and isn't a trackback or a pingback, so we should send out notifications
$message = sprintf(__("There is a new comment on the post \"%s\"", 'subscribe-to-comments') . ". \n%s\n\n", $post->post_title, get_permalink($comment->comment_post_ID));
$message .= sprintf(__("Author: %s\n", 'subscribe-to-comments'), $comment->comment_author);
$message .= __("Comment:\n", 'subscribe-to-comments') . $comment->comment_content . "\n\n";
$message .= __("See all comments on this post here:\n", 'subscribe-to-comments');
$message .= get_permalink($comment->comment_post_ID) . "#comments\n\n";
//add link to manage comment notifications
$message .= __("To manage your subscriptions or to block all notifications from this site, click the link below:\n", 'subscribe-to-comments');
$message .= get_settings('home') . '/?wp-subscription-manager=1&email=[email]&key=[key]';
$subject = sprintf(__('New Comment On: %s', 'subscribe-to-comments'), $post->post_title);
}