2 namespace TYPO3\CMS\Backend\Template\Components;
17 use TYPO3\CMS\Core\Resource\Exception\InsufficientFolderAccessPermissionsException;
18 use TYPO3\CMS\Core\Resource\Exception\ResourceDoesNotExistException;
64 if (is_array($pageRecord) && $pageRecord[
'uid']) {
65 $title = substr($pageRecord[
'_thePathFull'], 0, -1);
67 $pos = strrpos($title, $pageRecord[
'title']);
69 $title = substr($title, 0, $pos);
71 }
elseif (!empty($pageRecord[
'combined_identifier'])) {
74 $title = $resourceObject->getStorage()->getName() .
':';
75 $title .= $resourceObject->getParentFolder()->getReadablePath();
83 $cropLength = empty($beUser->uc[
'titleLen']) ? 50 : $beUser->uc[
'titleLen'];
85 if ($croppedTitle !== $title) {
86 $pagePath =
'<abbr title="' . htmlspecialchars($title) .
'">' . htmlspecialchars($croppedTitle) .
'</abbr>';
88 $pagePath = htmlspecialchars($title);
101 if (empty($pageRecord)) {
108 $additionalInfo = (!empty($pageRecord[
'_additional_info']) ? $pageRecord[
'_additional_info'] :
'');
111 if (is_array($pageRecord) && $pageRecord[
'uid']) {
113 $iconImg =
'<span ' . $toolTip .
'>' . $iconFactory->getIconForRecord(
'pages', $pageRecord,
Icon::SIZE_SMALL)->render() .
'</span>';
116 $uid = $pageRecord[
'uid'];
119 }
elseif (is_array($pageRecord) && !empty($pageRecord[
'combined_identifier'])) {
122 $fileMountTitle = $resourceObject->getStorage()->getFileMounts()[$resourceObject->getIdentifier()][
'title'];
123 $title = $fileMountTitle ?: $resourceObject->getName();
125 if ($resourceObject instanceof
FolderInterface && !$resourceObject->
getStorage()->isWithinFileMountBoundaries($resourceObject)) {
126 $iconImg =
'<span title="' . htmlspecialchars($title) .
'">' . $iconFactory->getIconForResource(
130 array(
'mount-root' =>
true)
131 )->render() .
'</span>';
133 $iconImg =
'<span title="' . htmlspecialchars($title) .
'">' . $iconFactory->getIconForResource(
136 )->render() .
'</span>';
145 $iconImg =
'<span title="' .
146 htmlspecialchars(
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'sitename']) .
148 $iconFactory->getIcon(
'apps-pagetree-root',
Icon::SIZE_SMALL)->render() .
'</span>';
155 $title =
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'sitename'];
159 ' <strong>' . htmlspecialchars($title) . ($uid !==
'' ?
' [' . $uid .
']' :
'') .
'</strong>' .
160 (!empty($additionalInfo) ?
' ' . htmlspecialchars($additionalInfo) :
'');