class/utility.php 1 location
|
@@ 816-826 (lines=11) @@
|
| 813 |
|
* @param $text |
| 814 |
|
* @return null |
| 815 |
|
*/ |
| 816 |
|
public static function makeInfotips($text) |
| 817 |
|
{ |
| 818 |
|
$infotips = static::getModuleOption('infotips'); |
| 819 |
|
if ($infotips > 0) { |
| 820 |
|
$myts = MyTextSanitizer::getInstance(); |
| 821 |
|
|
| 822 |
|
return $myts->htmlSpecialChars(xoops_substr(strip_tags($text), 0, $infotips)); |
| 823 |
|
} |
| 824 |
|
|
| 825 |
|
return null; |
| 826 |
|
} |
| 827 |
|
|
| 828 |
|
/** |
| 829 |
|
* @author Monte Ohrt <monte at ohrt dot com>, modified by Amos Robinson |
include/functions.php 1 location
|
@@ 694-704 (lines=11) @@
|
| 691 |
|
* @param $text |
| 692 |
|
* @return null |
| 693 |
|
*/ |
| 694 |
|
function news_make_infotips($text) |
| 695 |
|
{ |
| 696 |
|
$infotips = news_getmoduleoption('infotips'); |
| 697 |
|
if ($infotips > 0) { |
| 698 |
|
$myts = MyTextSanitizer::getInstance(); |
| 699 |
|
|
| 700 |
|
return $myts->htmlSpecialChars(xoops_substr(strip_tags($text), 0, $infotips)); |
| 701 |
|
} |
| 702 |
|
|
| 703 |
|
return null; |
| 704 |
|
} |
| 705 |
|
|
| 706 |
|
/** |
| 707 |
|
* @author Monte Ohrt <monte at ohrt dot com>, modified by Amos Robinson |