| @@ 500-522 (lines=23) @@ | ||
| 497 | } |
|
| 498 | ||
| 499 | // Create pagetitles |
|
| 500 | function lx_create_pagetitle($article='', $topic='') { |
|
| 501 | global $xoopsModule, $xoopsTpl; |
|
| 502 | $myts = MyTextSanitizer::getInstance(); |
|
| 503 | $content=''; |
|
| 504 | if (!empty($article)) $content .= strip_tags($myts->displayTarea($article)); |
|
| 505 | if (!empty($topic)) { |
|
| 506 | if (xoops_trim($content)!='') { |
|
| 507 | $content .= ' - '.strip_tags($myts->displayTarea($topic)); |
|
| 508 | } else { |
|
| 509 | $content .= strip_tags($myts->displayTarea($topic)); |
|
| 510 | } |
|
| 511 | } |
|
| 512 | if (is_object($xoopsModule) && xoops_trim($xoopsModule->name())!='') { |
|
| 513 | if (xoops_trim($content)!='') { |
|
| 514 | $content.=' - '.strip_tags($myts->displayTarea($xoopsModule->name())); |
|
| 515 | } else { |
|
| 516 | $content.=strip_tags($myts->displayTarea($xoopsModule->name())); |
|
| 517 | } |
|
| 518 | } |
|
| 519 | if ($content!='') { |
|
| 520 | $xoopsTpl->assign('xoops_pagetitle', $content); |
|
| 521 | } |
|
| 522 | } |
|
| 523 | ||
| 524 | // clear descriptions |
|
| 525 | function lx_html2text($document) { |
|
| @@ 776-801 (lines=26) @@ | ||
| 773 | * @param string $article |
|
| 774 | * @param string $topic |
|
| 775 | */ |
|
| 776 | public static function createPageTitle($article = '', $topic = '') |
|
| 777 | { |
|
| 778 | global $xoopsModule, $xoopsTpl; |
|
| 779 | $myts = MyTextSanitizer::getInstance(); |
|
| 780 | $content = ''; |
|
| 781 | if (!empty($article)) { |
|
| 782 | $content .= strip_tags($myts->displayTarea($article)); |
|
| 783 | } |
|
| 784 | if (!empty($topic)) { |
|
| 785 | if (xoops_trim($content) != '') { |
|
| 786 | $content .= ' - ' . strip_tags($myts->displayTarea($topic)); |
|
| 787 | } else { |
|
| 788 | $content .= strip_tags($myts->displayTarea($topic)); |
|
| 789 | } |
|
| 790 | } |
|
| 791 | if (is_object($xoopsModule) && xoops_trim($xoopsModule->name()) != '') { |
|
| 792 | if (xoops_trim($content) != '') { |
|
| 793 | $content .= ' - ' . strip_tags($myts->displayTarea($xoopsModule->name())); |
|
| 794 | } else { |
|
| 795 | $content .= strip_tags($myts->displayTarea($xoopsModule->name())); |
|
| 796 | } |
|
| 797 | } |
|
| 798 | if ($content != '') { |
|
| 799 | $xoopsTpl->assign('xoops_pagetitle', $content); |
|
| 800 | } |
|
| 801 | } |
|
| 802 | ||
| 803 | // clear descriptions |
|
| 804 | /** |
|