function getArrowEnd() { $ext = SugarThemeRegistry::current()->pngSupport ? "png" : "gif"; list($width, $height) = ListView::getArrowImageSize($ext); return "width='{$width}' height='{$height}' align='absmiddle' alt=" . translate('LBL_SORT') . ">"; }
function getArrowEnd() { $imgFileParts = pathinfo(SugarThemeRegistry::current()->getImageURL("arrow.gif")); list($width, $height) = ListView::getArrowImageSize(); return '.' . $imgFileParts['extension'] . "' width='{$width}' height='{$height}' align='absmiddle' alt=" . translate('LBL_SORT') . ">"; }
function getArrowEnd($image_path) { global $png_support; if ($png_support == false) { $ext = "gif"; } else { $ext = "png"; } list($width, $height) = ListView::getArrowImageSize($image_path, $ext); return ".{$ext}' width='{$width}' height='{$height}' align='absmiddle' alt='Sort'>"; }