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