Skip to content

Commit

Permalink
Set browse record images to role="presentation".
Browse files Browse the repository at this point in the history
  • Loading branch information
kimisgold committed Jul 2, 2024
1 parent c177dd1 commit 1dc0021
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion admin/themes/default/collections/browse.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<?php foreach (loop('Collection') as $collection): ?>
<tr class="collection<?php if(++$key%2==1) echo ' odd'; else echo ' even'; ?>">
<td class="title<?php if ($collection->featured) { echo ' featured';} ?>">
<?php if ($collectionImage = record_image('collection', 'square_thumbnail')): ?>
<?php if ($collectionImage = record_image('collection', 'square_thumbnail', array('role' => 'presentation'))): ?>
<?php echo link_to_collection($collectionImage, array('class' => 'image')); ?>
<?php endif; ?>

Expand Down
2 changes: 1 addition & 1 deletion admin/themes/default/items/browse.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<td class="item-info">

<?php if (metadata('item', 'has files')): ?>
<?php echo link_to_item(item_image('square_thumbnail', array(), 0, $item), array('class' => 'item-thumbnail'), 'show', $item); ?>
<?php echo link_to_item(item_image('square_thumbnail', array('role' => 'presentation'), 0, $item), array('class' => 'item-thumbnail'), 'show', $item); ?>
<?php endif; ?>

<span class="title">
Expand Down
2 changes: 1 addition & 1 deletion application/views/scripts/collections/browse.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<h2><?php echo link_to_collection(); ?></h2>
<?php if ($collectionImage = record_image('collection')): ?>
<?php echo link_to_collection($collectionImage, array('class' => 'image')); ?>
<?php echo link_to_collection($collectionImage, array('class' => 'image', 'role' => 'presentation')); ?>
<?php endif; ?>

<?php if (metadata('collection', array('Dublin Core', 'Description'))): ?>
Expand Down
2 changes: 1 addition & 1 deletion application/views/scripts/items/browse.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<div class="item-meta">
<?php if (metadata('item', 'has files')): ?>
<div class="item-img">
<?php echo link_to_item(item_image()); ?>
<?php echo link_to_item(item_image(null, array('role' => 'presentation'))); ?>
</div>
<?php endif; ?>

Expand Down

0 comments on commit 1dc0021

Please sign in to comment.