* update icon support.

This commit is contained in:
Catouse
2013-09-18 08:45:18 +08:00
parent 353d636f3a
commit fc2bc9c3d2
2 changed files with 18 additions and 4 deletions

View File

@@ -313,16 +313,18 @@ class common extends control
if($type == 'button')
{
echo "<span class='link-button'>";
echo html::a($link, '&nbsp;', $target, "class='$class' title='$title'", true);
// echo html::a($link, '&nbsp;', $target, "class='$class' title='$title'", true);
if($method != 'edit' and $method != 'copy' and $method != 'delete')
{
echo html::a($link, $title, $target, "class='$extraClass'", true);
// echo html::a($link, $title, $target, "class='$extraClass'", true);
echo html::a($link, "<i class='$class'></i> " . $title, $target, "class='$extraClass'", true);
}
echo "</span>";
}
else
{
echo html::a($link, '&nbsp;', $target, "class='$class' title='$title'", false);
// echo html::a($link, '&nbsp;', $target, "class='$class' title='$title'", false);
echo html::a($link, "<i class='$class'></i>", $target, "class='link-icon' title='$title'", false);
}
}
else