31 public $scriptRelPath =
'Classes/Controller/AccessibilityLinkController.php';
60 if (substr($content, 0, 3) !==
'<a ' && substr($content, 0, 5) ===
'<img ') {
63 if (preg_match(
'/^<img .*>/', $content, $matches) === 1) {
65 if ($attributes[
'src']) {
67 $pageTSConfig =
$GLOBALS[
'TSFE']->getPagesTSconfig();
68 if (is_array($pageTSConfig) && is_array($pageTSConfig[
'RTE.'])) {
69 $classesAnchorConfiguration = $pageTSConfig[
'RTE.'][
'classesAnchor.'];
70 if (is_array($classesAnchorConfiguration)) {
74 $attributes[
'src'] = substr($attributes[
'src'], strlen($siteUrl));
77 foreach ($classesAnchorConfiguration as $item =>
$conf) {
79 $imagePath = $this->
getFullFileName(trim(str_replace(
'\'',
'', str_replace(
'"',
'',
$conf[
'image']))));
80 if ($attributes[
'src'] === $imagePath) {
82 $content = substr($content, strlen($matches[0]));
98 if (substr($filename, 0, 4) ==
'EXT:') {
99 list(
$extKey, $local) = explode(
'/', substr($filename, 4), 2);
104 } elseif ($filename[0] !==
'/') {
105 $newFilename = $filename;
107 $newFilename = substr($filename, 1);
109 return \TYPO3\CMS\Core\Utility\GeneralUtility::resolveBackPath($newFilename);
getFullFileName($filename)
static isFirstPartOfStr($str, $partStr)
static getIndpEnv($getEnvName)
static get_tag_attributes($tag)
static isLoaded($key, $exitOnError=FALSE)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
removeAccessibilityIcon($content, $conf)