get_task($user, $taskId); if ($prefs['feature_community_mouseover'] == 'y') { $description = ""; $my_length = strlen($info['description']); $my_pos = 0; $line = 0; if ($my_length > 0) { do { $line++; $my_pos = strpos($info['description'], "\n", ($my_pos + 1)); } while (($line <= 15) && ($my_pos != '')); } if (($my_length >= 1300) || ($line >= 16)) { if ($line < 15) { $my_pos = 1300; } $description .= substr($info['description'], 0, min(1300, $my_pos + 1)); $append = "
" . tra("Text cut here") . "
"; } else { $description = $info['description']; $append = ''; } // FIXME: Truncated Tiki syntax cannot be parsed. $description = TikiLib::lib('parser')->parse_data($description) . $append; $tooltipContent = tra("Task") . ' ' . tra("from") . ' ' . $info['creator'] . ' ' . tra("for") . ' ' . $info['user'] . '.
' . tra("Priority") . ': ' . $info['priority'] . ', (' . $info['percentage'] . '%) ' . tra('done') . '.
'; if ($info['start'] != 0) { $tooltipContent .= tra("Start date:") . " " . $tikilib->date_format("%H:%M -- %d. %e. %Y", $info['start']) . "
"; } else { $tooltipContent .= tra("Start date:") . " -
"; } if ($info['end']) { $tooltipContent .= tra("End date:") . " " . $tikilib->date_format("%H:%M -- %d. %e. %Y", $info['end']) . "
"; } else { $tooltipContent .= tra("End date:") . " -
"; } $tooltipContent .= "
" . $description; $smarty->loadPlugin('smarty_function_popup'); $popupAttributes = smarty_function_popup(['text' => $tooltipContent, 'fullhtml' => true], $smarty); } else { $popupAttributes = ''; } $content = ""; return $content; }