33 $_EXTKEY = $extensionKey;
36 include($extPath .
'ext_emconf.php');
38 $release =
$EM_CONF[$_EXTKEY][
'version'];
39 list($major, $minor, $_) = explode(
'.', $release, 3);
40 if (($pos = strpos($minor,
'-')) !== FALSE) {
42 $minor = substr($minor, 0, $pos);
44 $EM_CONF[$_EXTKEY][
'version'] = $major .
'.' . $minor;
45 $EM_CONF[$_EXTKEY][
'release'] = $release;
46 $EM_CONF[$_EXTKEY][
'extensionKey'] = $extensionKey;
57 static public function getIcon($documentKey) {
58 $basePath =
'typo3conf/Documentation/';
59 $documentPath = $basePath . $documentKey .
'/';
64 if (\
TYPO3\CMS\Core\Utility\GeneralUtility::isFirstPartOfStr($documentKey,
'typo3cms.extensions.')) {
66 $extensionKey = substr($documentKey, 20);
72 } elseif (is_file(PATH_site . $documentPath .
'icon.png')) {
73 $icon = $documentPath .
'icon.png';
74 } elseif (is_file(PATH_site . $documentPath .
'icon.gif')) {
75 $icon = $documentPath .
'icon.gif';
static getExtensionIcon($extensionPath, $returnFullPath=FALSE)
static extPath($key, $script='')
static getIcon($documentKey)
static isLoaded($key, $exitOnError=FALSE)
static getExtensionMetaData($extensionKey)