|
@@ 686-690 (lines=5) @@
|
| 683 |
|
} |
| 684 |
|
$tmp = array_slice($tmp, 0, $keywords_count); |
| 685 |
|
if (count($tmp) > 0) { |
| 686 |
|
if (isset($xoTheme) && is_object($xoTheme)) { |
| 687 |
|
$xoTheme->addMeta('meta', 'keywords', implode(',', $tmp)); |
| 688 |
|
} else { // Compatibility for old Xoops versions |
| 689 |
|
$xoopsTpl->assign('xoops_meta_keywords', implode(',', $tmp)); |
| 690 |
|
} |
| 691 |
|
} else { |
| 692 |
|
if (!isset($configHandler) || !is_object($configHandler)) { |
| 693 |
|
$configHandler = xoops_getHandler('config'); |
|
@@ 713-717 (lines=5) @@
|
| 710 |
|
global $xoopsTpl, $xoTheme; |
| 711 |
|
$myts = MyTextSanitizer::getInstance(); |
| 712 |
|
$content = $myts->undoHtmlSpecialChars($myts->displayTarea($content)); |
| 713 |
|
if (isset($xoTheme) && is_object($xoTheme)) { |
| 714 |
|
$xoTheme->addMeta('meta', 'description', strip_tags($content)); |
| 715 |
|
} else { // Compatibility for old Xoops versions |
| 716 |
|
$xoopsTpl->assign('xoops_meta_description', strip_tags($content)); |
| 717 |
|
} |
| 718 |
|
} |
| 719 |
|
|
| 720 |
|
// Create pagetitles |