title, ENT_QUOTES, 'UTF-8', false);
$guid = $task->guid;
$img_class = '';
if (isset($vars['img_class'])) {
$img_class = $vars['img_class'];
}
$use_hover = elgg_extract('use_hover', $vars, $task->canEdit());
if (isset($vars['hover']) ) {
$use_hover = $vars['hover'];
}
$icon_url = elgg_format_url($task->getIconURL($size));
$icon = elgg_view('output/img', array(
'src' => $icon_url,
'alt' => $name,
'title' => $name,
'class' => $img_class,
));
?>
$task,
'guid' => $guid,
'title' => $title,
'class' => 'elgg-menu-hover',
);
echo elgg_view_icon('hover-menu');
echo elgg_view_menu('tasks_hover', $params);
tasks_reset_actions_menu();
}
if ($use_link) {
$class = elgg_extract('link_class', $vars, '');
$url = elgg_extract('href', $vars, $task->getURL());
echo elgg_view('output/url', array(
'href' => $url,
'text' => $icon,
'is_trusted' => true,
'class' => $class,
));
} else {
echo "
$icon";
}
?>