24 $a_my =
"bottom center",
26 $a_use_htmlspecialchars =
true 35 $code = self::getTooltip(
41 $a_use_htmlspecialchars
57 $a_my =
"bottom center",
59 $a_use_htmlspecialchars =
true 66 if ($a_container !=
"") {
67 $addstr .=
", container: '" . $a_container .
"'";
70 if ($a_use_htmlspecialchars) {
71 $a_text = htmlspecialchars(str_replace(array(
"\n",
"\r"),
"", $a_text));
73 $a_text = str_replace(array(
"\n",
"\r",
"'",
'"'), array(
"",
"",
"\'",
'\"'), $a_text);
75 return 'il.Tooltip.add("' . $a_el_id .
'", {' .
76 ' context:"' . $a_el_id .
'",' .
77 ' my:"' . $a_my .
'",' .
78 ' at:"' . $a_at .
'",' .
79 ' text:"' . $a_text .
'" ' . $addstr .
'} );';
85 public static function init()
90 if (!self::$initialized) {
91 $tpl->addCss(
"./libs/bower/bower_components/qtip2/dist/jquery.qtip.min.css");
92 $tpl->addJavascript(
"./libs/bower/bower_components/qtip2/dist/jquery.qtip.min.js");
93 $tpl->addJavascript(
"./Services/UIComponent/Tooltip/js/ilTooltip.js");
94 $tpl->addOnLoadCode(
'il.Tooltip.init();', 3);
95 self::$initialized =
true;
while(count($oldTaskList) > 0) foreach(array_keys($newTaskList) as $task) init()
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.