@@ 94-104 (lines=11) @@ | ||
91 | /** |
|
92 | * @param $content |
|
93 | */ |
|
94 | public static function meta_keywords($content) |
|
95 | { |
|
96 | global $xoopsTpl, $xoTheme; |
|
97 | $myts = MyTextSanitizer::getInstance(); |
|
98 | $content = $myts->undoHtmlSpecialChars($myts->displayTarea($content)); |
|
99 | if (null !== $xoTheme && is_object($xoTheme)) { |
|
100 | $xoTheme->addMeta('meta', 'keywords', strip_tags($content)); |
|
101 | } else { // Compatibility for old Xoops versions |
|
102 | $xoopsTpl->assign('xoops_meta_keywords', strip_tags($content)); |
|
103 | } |
|
104 | } |
|
105 | ||
106 | /** |
|
107 | * @param $content |
|
@@ 109-119 (lines=11) @@ | ||
106 | /** |
|
107 | * @param $content |
|
108 | */ |
|
109 | public static function meta_description($content) |
|
110 | { |
|
111 | global $xoopsTpl, $xoTheme; |
|
112 | $myts = MyTextSanitizer::getInstance(); |
|
113 | $content = $myts->undoHtmlSpecialChars($myts->displayTarea($content)); |
|
114 | if (null !== $xoTheme && is_object($xoTheme)) { |
|
115 | $xoTheme->addMeta('meta', 'description', strip_tags($content)); |
|
116 | } else { // Compatibility for old Xoops versions |
|
117 | $xoopsTpl->assign('xoops_meta_description', strip_tags($content)); |
|
118 | } |
|
119 | } |
|
120 | ||
121 | /** |
|
122 | * @param $tableName |