UX: Add title to iframe elements

Fixes template linting errors
This commit is contained in:
Jarek Radosz 2021-02-09 19:22:41 +01:00
parent d3730993a6
commit a16ed5f0bf
1 changed files with 18 additions and 2 deletions

View File

@ -1,12 +1,28 @@
{{#if showAd}} {{#if showAd}}
{{#if site.mobileView}} {{#if site.mobileView}}
<div class="amazon-product-links-label" style={{adTitleStyleMobile}}><h2>{{i18n "adplugin.advertisement_label"}}</h2></div> <div class="amazon-product-links-label" style={{adTitleStyleMobile}}><h2>{{i18n "adplugin.advertisement_label"}}</h2></div>
<iframe style={{adWrapperStyleMobile}} marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src={{userInputMobile}}> <iframe
style={{adWrapperStyleMobile}}
marginwidth="0"
marginheight="0"
scrolling="no"
frameborder="0"
src={{userInputMobile}}
title={{i18n "adplugin.advertisement_label"}}
>
</iframe> </iframe>
{{else}} {{else}}
<div class="amazon-product-links-label"><h2>{{i18n "adplugin.advertisement_label"}}</h2></div> <div class="amazon-product-links-label"><h2>{{i18n "adplugin.advertisement_label"}}</h2></div>
<div class="container" align="center"> <div class="container" align="center">
<iframe style={{adWrapperStyle}} marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src={{userInput}}> <iframe
style={{adWrapperStyle}}
marginwidth="0"
marginheight="0"
scrolling="no"
frameborder="0"
src={{userInput}}
title={{i18n "adplugin.advertisement_label"}}
>
</iframe> </iframe>
</div> </div>
{{/if}} {{/if}}