function getArrowUpDownEnd($upDown) { if (!isset($upDown) || empty($upDown)) { $upDown = ""; } $imgFileParts = pathinfo(SugarThemeRegistry::current()->getImageURL("arrow{$upDown}.gif")); list($width, $height) = ListView::getArrowUpDownImageSize($upDown); //get the right alt tag for the sort $sortStr = translate('LBL_ALT_SORT'); if ($upDown == '_down') { $sortStr = translate('LBL_ALT_SORT_DESC'); } elseif ($upDown == '_up') { $sortStr = translate('LBL_ALT_SORT_ASC'); } return " width='{$width}' height='{$height}' align='absmiddle' alt='{$sortStr}'>"; }
function getArrowUpDownEnd($upDown) { if (!isset($upDown) || empty($upDown)) { $upDown = ""; } $imgFileParts = pathinfo(SugarThemeRegistry::current()->getImageURL("arrow{$upDown}.gif")); list($width, $height) = ListView::getArrowUpDownImageSize($upDown); return " width='{$width}' height='{$height}' align='absmiddle' alt=" . translate('LBL_SORT') . ">"; }