@@ 122-132 (lines=11) @@ | ||
119 | /** |
|
120 | * @param $content |
|
121 | */ |
|
122 | public static function metaKeywords($content): void |
|
123 | { |
|
124 | global $xoopsTpl, $xoTheme; |
|
125 | $myts = \MyTextSanitizer::getInstance(); |
|
126 | $content = $myts->undoHtmlSpecialChars($myts->displayTarea($content)); |
|
127 | if (\is_object($xoTheme)) { |
|
128 | $xoTheme->addMeta('meta', 'keywords', \strip_tags($content)); |
|
129 | } else { // Compatibility for old Xoops versions |
|
130 | $xoopsTpl->assign('xoops_metaKeywords', \strip_tags($content)); |
|
131 | } |
|
132 | } |
|
133 | ||
134 | /** |
|
135 | * @param $content |
|
@@ 137-147 (lines=11) @@ | ||
134 | /** |
|
135 | * @param $content |
|
136 | */ |
|
137 | public static function metaDescription($content): void |
|
138 | { |
|
139 | global $xoopsTpl, $xoTheme; |
|
140 | $myts = \MyTextSanitizer::getInstance(); |
|
141 | $content = $myts->undoHtmlSpecialChars($myts->displayTarea($content)); |
|
142 | if (\is_object($xoTheme)) { |
|
143 | $xoTheme->addMeta('meta', 'description', \strip_tags($content)); |
|
144 | } else { // Compatibility for old Xoops versions |
|
145 | $xoopsTpl->assign('xoops_metaDescription', \strip_tags($content)); |
|
146 | } |
|
147 | } |
|
148 | ||
149 | /** |
|
150 | * @param string $tableName |