| 223 | | $content= ( $this->is_auth() ) ? htmlspecialchars( $comment->content ) : htmlspecialchars( $comment->content_atom ); |
| 224 | | |
| 225 | | $item= $xml->addChild( 'entry' ); |
| 226 | | $title= $item->addChild( 'title', htmlspecialchars( sprintf( _t( '%1$s on "%2$s"' ), $comment->name, $comment->post->title ) ) ); |
| 227 | | |
| 228 | | $link= $item->addChild( 'link' ); |
| 229 | | $link->addAttribute( 'rel', 'alternate' ); |
| 230 | | $link->addAttribute( 'href', $comment->post->permalink . '#comment-' . $comment->id ); |
| 231 | | |
| 232 | | $author= $item->addChild( 'author' ); |
| 233 | | $author_name= $author->addChild( 'name', htmlspecialchars( $comment->name ) ); |
| 234 | | |
| 235 | | $id= $item->addChild( 'id', $comment->post->guid . '/' . $comment->id ); |
| 236 | | |
| 237 | | $updated= $item->addChild( 'updated', date( 'c', strtotime( $comment->date ) ) ); |
| 238 | | |
| 239 | | $content= $item->addChild( 'content', $content ); |
| 240 | | $content->addAttribute( 'type', 'html' ); |
| | 221 | $content= ( $this->is_auth() ) ? $comment->content : $comment->content_atom; |
| | 222 | |
| | 223 | $item= $feed->appendChild( $xml->createElement( 'entry' ) ); |
| | 224 | $title= $item->appendChild( $xml->createElement( 'title' ) ); |
| | 225 | $title->appendChild( $xml->createTextNode( sprintf( _t( '%1$s on "%2$s"' ), $comment->name, $comment->post->title ) ) ); |
| | 226 | |
| | 227 | $link= $item->appendChild( $xml->createElement( 'link' ) ); |
| | 228 | $link->setAttribute( 'rel', 'alternate' ); |
| | 229 | $link->setAttribute( 'href', $comment->post->permalink . '#comment-' . $comment->id ); |
| | 230 | |
| | 231 | $author= $item->appendChild( $xml->createElement( 'author' ) ); |
| | 232 | $author_name= $author->appendChild( $xml->createElement( 'name' ) ); |
| | 233 | $author_name->appendChild( $xml->createTextNode( $comment->name ) ); |
| | 234 | |
| | 235 | $id= $item->appendChild( $xml->createElement('id', $comment->post->guid . '/' . $comment->id ) ); |
| | 236 | |
| | 237 | $updated= $item->appendChild( $xml->createElement( 'updated', date( 'c', strtotime( $comment->date ) ) ) ); |
| | 238 | |
| | 239 | $comment_content= $item->appendChild( $xml->createElement( 'content' ) ); |
| | 240 | $comment_content->setAttribute( 'type', 'html' ); |
| | 241 | $comment_content->appendChild( $xml->createTextNode( $content ) ); |