class/oledrion_utils.php 1 location
|
@@ 1364-1374 (lines=11) @@
|
| 1361 |
|
* @param $text |
| 1362 |
|
* @return string |
| 1363 |
|
*/ |
| 1364 |
|
public static function makeInfotips($text) |
| 1365 |
|
{ |
| 1366 |
|
$ret = ''; |
| 1367 |
|
$infotips = static::getModuleOption('infotips'); |
| 1368 |
|
if ($infotips > 0) { |
| 1369 |
|
$myts = MyTextSanitizer::getInstance(); |
| 1370 |
|
$ret = $myts->htmlSpecialChars(xoops_substr(strip_tags($text), 0, $infotips)); |
| 1371 |
|
} |
| 1372 |
|
|
| 1373 |
|
return $ret; |
| 1374 |
|
} |
| 1375 |
|
|
| 1376 |
|
/** |
| 1377 |
|
* Mise en place de l'appel à la feuille de style du module dans le template |
class/utility.php 1 location
|
@@ 1507-1517 (lines=11) @@
|
| 1504 |
|
* @param $text |
| 1505 |
|
* @return string |
| 1506 |
|
*/ |
| 1507 |
|
public static function makeInfotips($text) |
| 1508 |
|
{ |
| 1509 |
|
$ret = ''; |
| 1510 |
|
$infotips = self::getModuleOption('infotips'); |
| 1511 |
|
if ($infotips > 0) { |
| 1512 |
|
$myts = MyTextSanitizer::getInstance(); |
| 1513 |
|
$ret = $myts->htmlSpecialChars(xoops_substr(strip_tags($text), 0, $infotips)); |
| 1514 |
|
} |
| 1515 |
|
|
| 1516 |
|
return $ret; |
| 1517 |
|
} |
| 1518 |
|
|
| 1519 |
|
/** |
| 1520 |
|
* Mise en place de l'appel à la feuille de style du module dans le template |