| @@ 325-343 (lines=19) @@ | ||
| 322 | } |
|
| 323 | ||
| 324 | // if additional information which can access contents is set |
|
| 325 | if($add_content_info) |
|
| 326 | { |
|
| 327 | $memberSrl = $this->get('member_srl'); |
|
| 328 | if($memberSrl < 0) |
|
| 329 | { |
|
| 330 | $memberSrl = 0; |
|
| 331 | } |
|
| 332 | $content = sprintf( |
|
| 333 | '<!--BeforeComment(%d,%d)--><div class="comment_%d_%d xe_content">%s</div><!--AfterComment(%d,%d)-->', $this->comment_srl, $memberSrl, $this->comment_srl, $memberSrl, $content, $this->comment_srl, $memberSrl |
|
| 334 | ); |
|
| 335 | // xe_content class name should be specified although content access is not necessary. |
|
| 336 | } |
|
| 337 | else |
|
| 338 | { |
|
| 339 | if($add_xe_content_class) |
|
| 340 | { |
|
| 341 | $content = sprintf('<div class="xe_content">%s</div>', $content); |
|
| 342 | } |
|
| 343 | } |
|
| 344 | ||
| 345 | return $content; |
|
| 346 | } |
|
| @@ 476-496 (lines=21) @@ | ||
| 473 | ); |
|
| 474 | } |
|
| 475 | // If additional content information is set |
|
| 476 | if($add_content_info) |
|
| 477 | { |
|
| 478 | $memberSrl = $this->get('member_srl'); |
|
| 479 | if($memberSrl < 0) |
|
| 480 | { |
|
| 481 | $memberSrl = 0; |
|
| 482 | } |
|
| 483 | $content = sprintf( |
|
| 484 | '<!--BeforeDocument(%d,%d)--><div class="document_%d_%d xe_content">%s</div><!--AfterDocument(%d,%d)-->', |
|
| 485 | $this->document_srl, $memberSrl, |
|
| 486 | $this->document_srl, $memberSrl, |
|
| 487 | $content, |
|
| 488 | $this->document_srl, $memberSrl, |
|
| 489 | $this->document_srl, $memberSrl |
|
| 490 | ); |
|
| 491 | // Add xe_content class although accessing content is not required |
|
| 492 | } |
|
| 493 | else |
|
| 494 | { |
|
| 495 | if($add_xe_content_class) $content = sprintf('<div class="xe_content">%s</div>', $content); |
|
| 496 | } |
|
| 497 | // Change the image path to a valid absolute path if resource_realpath is true |
|
| 498 | if($resource_realpath) |
|
| 499 | { |
|