Skip to content
Snippets Groups Projects
Commit 7956fb91 authored by Kevin von Spiczak's avatar Kevin von Spiczak
Browse files

[TASK] add missing alt-attribute & text for news author img

parent a9de3716
No related branches found
No related tags found
No related merge requests found
......@@ -153,6 +153,10 @@
<source><![CDATA[read more]]></source>
<target><![CDATA[weiterlesen]]></target>
</trans-unit>
<trans-unit id="frontend.authorImage.altText" approved="yes">
<source><![CDATA[Photo of the author]]></source>
<target><![CDATA[Foto des Authors]]></target>
</trans-unit>
<trans-unit id="mlang_labels_tabdescr" approved="yes">
<source><![CDATA[News]]></source>
<target><![CDATA[News]]></target>
......
......@@ -117,6 +117,9 @@
<trans-unit id="frontend.teaser.readMore">
<source><![CDATA[read more]]></source>
</trans-unit>
<trans-unit id="frontend.authorImage.altText">
<source><![CDATA[Photo of the author]]></source>
</trans-unit>
<trans-unit id="mlang_labels_tabdescr">
<source><![CDATA[News]]></source>
</trans-unit>
......
{namespace sg=SGalinski\SgNews\ViewHelpers}
<f:layout name="Default" />
<f:layout name="Default"/>
<f:section name="main">
<f:render partial="ListByCategorySchema" arguments="{_all}" />
<f:render partial="ListByCategorySchema" arguments="{_all}"/>
<section class="content">
<f:for each="{authors}" as="author">
......@@ -15,7 +15,9 @@
<f:if condition="{settings.showDetails}">
<div class="tx-sgnews-author">
<f:if condition="{author.image}">
<f:image class="tx-sgnews-author-image" image="{author.image}" width="150c" height="150px" loading="lazy" />
<f:image class="tx-sgnews-author-image" image="{author.image}"
alt="{f:translate(key: 'frontend.authorImage.altText')}" width="150c"
height="150px" loading="lazy"/>
</f:if>
<div class="tx-sgnews-author-information">
......@@ -23,7 +25,8 @@
<div class="tx-sgnews-author-information-bar">
<f:if condition="{author.email}">
<div class="tx-sgnews-author-information-email">
<span class="glyphicon glyphicon-envelope" aria-hidden="true"></span>
<span class="glyphicon glyphicon-envelope"
aria-hidden="true"></span>
<f:link.email email="{author.email}" target="_blank">
{author.email}
</f:link.email>
......@@ -63,7 +66,7 @@
closingHeaderTag: '</h2>',
showCategory: 1,
author: author
}" />
}"/>
</li>
</f:if>
</f:for>
......
......@@ -92,10 +92,10 @@
</div>
</section>
<f:if condition="{breadcrumbPath}">
<f:cObject typoscriptObjectPath="lib.navigation.breadcrumb" />
<f:cObject typoscriptObjectPath="lib.navigation.breadcrumb"/>
</f:if>
<f:if condition="{breadcrumbSchemaPath}">
<f:cObject typoscriptObjectPath="lib.navigation.breadcrumb_schema" />
<f:cObject typoscriptObjectPath="lib.navigation.breadcrumb_schema"/>
</f:if>
</div>
......@@ -129,7 +129,9 @@
<f:for each="{newsMetaData.news.newsAuthor}" as="newsAuthor" iteration="iterator">
<div id="author{newsAuthor.uid}" class="tx-sgnews-author">
<f:if condition="{newsAuthor.image}">
<f:image class="tx-sgnews-author-image" image="{newsAuthor.image}" width="150c"
<f:image class="tx-sgnews-author-image"
alt="{f:translate(key: 'frontend.authorImage.altText')}"
image="{newsAuthor.image}" width="150c"
height="150px"/>
</f:if>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment