typo3/sysext/backend/Classes/RecordList/AbstractRecordList.php 1 location
|
@@ 486-499 (lines=14) @@
|
| 483 |
|
* @return string Language icon |
| 484 |
|
* @deprecated since TYPO3 v9, will be removed in TYPO3 v10 |
| 485 |
|
*/ |
| 486 |
|
public function languageFlag($sys_language_uid, $addAsAdditionalText = true) |
| 487 |
|
{ |
| 488 |
|
$out = ''; |
| 489 |
|
$title = htmlspecialchars($this->languageIconTitles[$sys_language_uid]['title']); |
| 490 |
|
if ($this->languageIconTitles[$sys_language_uid]['flagIcon']) { |
| 491 |
|
$out .= '<span title="' . $title . '">' . $this->iconFactory->getIcon($this->languageIconTitles[$sys_language_uid]['flagIcon'], Icon::SIZE_SMALL)->render() . '</span>'; |
| 492 |
|
if (!$addAsAdditionalText) { |
| 493 |
|
return $out; |
| 494 |
|
} |
| 495 |
|
$out .= ' '; |
| 496 |
|
} |
| 497 |
|
$out .= $title; |
| 498 |
|
return $out; |
| 499 |
|
} |
| 500 |
|
|
| 501 |
|
/** |
| 502 |
|
* Gets an instance of TranslationConfigurationProvider |
typo3/sysext/filelist/Classes/FileList.php 1 location
|
@@ 794-810 (lines=17) @@
|
| 791 |
|
* @param bool $addAsAdditionalText If set to true, only the flag is returned |
| 792 |
|
* @return string Language icon |
| 793 |
|
*/ |
| 794 |
|
public function languageFlag($sys_language_uid, $addAsAdditionalText = true) |
| 795 |
|
{ |
| 796 |
|
$out = ''; |
| 797 |
|
$title = htmlspecialchars($this->languageIconTitles[$sys_language_uid]['title']); |
| 798 |
|
if ($this->languageIconTitles[$sys_language_uid]['flagIcon']) { |
| 799 |
|
$out .= '<span title="' . $title . '">' . $this->iconFactory->getIcon( |
| 800 |
|
$this->languageIconTitles[$sys_language_uid]['flagIcon'], |
| 801 |
|
Icon::SIZE_SMALL |
| 802 |
|
)->render() . '</span>'; |
| 803 |
|
if (!$addAsAdditionalText) { |
| 804 |
|
return $out; |
| 805 |
|
} |
| 806 |
|
$out .= ' '; |
| 807 |
|
} |
| 808 |
|
$out .= $title; |
| 809 |
|
return $out; |
| 810 |
|
} |
| 811 |
|
|
| 812 |
|
/** |
| 813 |
|
* If there is a parent folder and user has access to it, return an icon |
typo3/sysext/backend/Classes/View/PageLayoutView.php 1 location
|
@@ 4331-4347 (lines=17) @@
|
| 4328 |
|
* @param bool $addAsAdditionalText If set to true, only the flag is returned |
| 4329 |
|
* @return string Language icon |
| 4330 |
|
*/ |
| 4331 |
|
public function languageFlag($sys_language_uid, $addAsAdditionalText = true) |
| 4332 |
|
{ |
| 4333 |
|
$out = ''; |
| 4334 |
|
$title = htmlspecialchars($this->languageIconTitles[$sys_language_uid]['title']); |
| 4335 |
|
if ($this->languageIconTitles[$sys_language_uid]['flagIcon']) { |
| 4336 |
|
$out .= '<span title="' . $title . '">' . $this->iconFactory->getIcon( |
| 4337 |
|
$this->languageIconTitles[$sys_language_uid]['flagIcon'], |
| 4338 |
|
Icon::SIZE_SMALL |
| 4339 |
|
)->render() . '</span>'; |
| 4340 |
|
if (!$addAsAdditionalText) { |
| 4341 |
|
return $out; |
| 4342 |
|
} |
| 4343 |
|
$out .= ' '; |
| 4344 |
|
} |
| 4345 |
|
$out .= $title; |
| 4346 |
|
return $out; |
| 4347 |
|
} |
| 4348 |
|
|
| 4349 |
|
/** |
| 4350 |
|
* Gets an instance of TranslationConfigurationProvider |
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php 1 location
|
@@ 4190-4206 (lines=17) @@
|
| 4187 |
|
* @param bool $addAsAdditionalText If set to true, only the flag is returned |
| 4188 |
|
* @return string Language icon |
| 4189 |
|
*/ |
| 4190 |
|
public function languageFlag($sys_language_uid, $addAsAdditionalText = true) |
| 4191 |
|
{ |
| 4192 |
|
$out = ''; |
| 4193 |
|
$title = htmlspecialchars($this->languageIconTitles[$sys_language_uid]['title']); |
| 4194 |
|
if ($this->languageIconTitles[$sys_language_uid]['flagIcon']) { |
| 4195 |
|
$out .= '<span title="' . $title . '">' . $this->iconFactory->getIcon( |
| 4196 |
|
$this->languageIconTitles[$sys_language_uid]['flagIcon'], |
| 4197 |
|
Icon::SIZE_SMALL |
| 4198 |
|
)->render() . '</span>'; |
| 4199 |
|
if (!$addAsAdditionalText) { |
| 4200 |
|
return $out; |
| 4201 |
|
} |
| 4202 |
|
$out .= ' '; |
| 4203 |
|
} |
| 4204 |
|
$out .= $title; |
| 4205 |
|
return $out; |
| 4206 |
|
} |
| 4207 |
|
|
| 4208 |
|
/** |
| 4209 |
|
* Sets the script url depending on being a module or script request |