/** * Button: file info popup * * @param mixed $fileInfo Is a file path or an array containing a file info from tx_dam::file_compileInfo(). * @return string Button HTML code * @todo still in use? */ function btn_infoFile($fileInfo) { global $LANG, $BACK_PATH; $filepath = tx_dam::file_absolutePath($fileInfo); $onClick = 'top.launchView(\'' . $filepath . '\',\'\',\'' . $BACK_PATH . '\');return false;'; $aTagAttribute = ' onclick="' . htmlspecialchars($onClick) . '"'; $label = $LANG->sL('LLL:EXT:lang/locallang_core.xml:cm.info', 1); $iconImgTag = '<img' . t3lib_iconWorks::skinImg($BACK_PATH, 'gfx/zoom2.gif', 'width="12" height="12"') . ' alt="" />'; $hoverText = $LANG->sL('LLL:EXT:lang/locallang_mod_web_list.xml:showInfo', 1); $content = tx_dam_SCbase::button($iconImgTag, $label, $hoverText, $url = '#', $aTagAttribute); return $content; }