@@ 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 | } |
@@ 487-507 (lines=21) @@ | ||
484 | ); |
|
485 | } |
|
486 | // If additional content information is set |
|
487 | if($add_content_info) |
|
488 | { |
|
489 | $memberSrl = $this->get('member_srl'); |
|
490 | if($memberSrl < 0) |
|
491 | { |
|
492 | $memberSrl = 0; |
|
493 | } |
|
494 | $content = sprintf( |
|
495 | '<!--BeforeDocument(%d,%d)--><div class="document_%d_%d xe_content">%s</div><!--AfterDocument(%d,%d)-->', |
|
496 | $this->document_srl, $memberSrl, |
|
497 | $this->document_srl, $memberSrl, |
|
498 | $content, |
|
499 | $this->document_srl, $memberSrl, |
|
500 | $this->document_srl, $memberSrl |
|
501 | ); |
|
502 | // Add xe_content class although accessing content is not required |
|
503 | } |
|
504 | else |
|
505 | { |
|
506 | if($add_xe_content_class) $content = sprintf('<div class="xe_content">%s</div>', $content); |
|
507 | } |
|
508 | // Change the image path to a valid absolute path if resource_realpath is true |
|
509 | if($resource_realpath) |
|
510 | { |