Accessibility

Phoca Gallery - image gallery extension
luisasasi
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 10 May 2011, 21:16

Accessibility

Post by luisasasi »

Phoca Gallery is very beautiful.
I did three galleries of images.
The image with the "back" arrow doesn't have ALT tag. You can put it?
Where?
I think these are lines of code, but I don't know how to correct.

Code: Select all

.' title="'.JText::_( 'Back to category' ).'">'
. JHTML::_('image', 'components/com_phocagallery/assets/images/icon-up-images.' . $tmpl['formaticon'], JText::_( 'Back to category' )).'</a></div>';
Can you help me?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Accessibility

Post by Jan »

Hi, which version you are using?

The: JText::_( 'Back to category') should be the the ALT

Jan
If you find Phoca extensions useful, please support the project
luisasasi
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 10 May 2011, 21:16

Re: Accessibility

Post by luisasasi »

I am using com_phocagallery_v2.7.8.
The: JText::_( 'Back to category') should be the the ALT
The accessibility validator (WAVE) where there is arrow "'Back to category" says:
ERROR: Linked image missing ATL text
Can you help me? In Italy the sites of the schools must pass accessibility validation test.
Phoca Gallery is very nice, but if I cannot resolve the error, I can't use it.
Thanks, I hope your help. I don't know Java script and alone I can't correct
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49190
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Accessibility

Post by Jan »

Hi, the problem is, the ALT is there:

see e.g.:
https://www.phoca.cz/joomlademo/category/1-barcelona

Code: Select all

<a href="/joomlademo/"><img src="/joomlademo/components/com_phocagallery/assets/images/icon-up-images.png" alt="Category List" style="border: 0pt none;"></a>
the alt is "Category List"

See the joomla framework:

Code: Select all

public static function image($file, $alt, $attribs = null, $relative = false, $path_only = false)
The second attribute is $alt, like here implemented:

Code: Select all

.' title="'.JText::_( 'Back to category' ).'">'
. JHTML::_('image', 'components/com_phocagallery/assets/images/icon-up-images.' . $tmpl['formaticon'], JText::_( 'Back to category' )).'</a></div>';
Jan
If you find Phoca extensions useful, please support the project
Post Reply