Category Thumbail Image ALT value is wrong

tcherno
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 15 Nov 2011, 12:20

Category Thumbail Image ALT value is wrong

Post by tcherno »

The thumbnail alt value is not passed correctly in
com_phocagallery/views/categories/tmpl/default_catimg.php
line 24:

Code: Select all

echo JHTML::_( 'image', $this->categories[$i]->linkthumbnailpath, array('style' => 'border:0'));
should be

Code: Select all

echo JHTML::_( 'image', $this->categories[$i]->linkthumbnailpath, str_replace('»','-',$this->categories[$i]->title),array('style' => 'border:0'));
The second parameter is the alt value not the attribute list.

The same problem occurs in the following files also:
com_phocagallery/views/categories/tmpl/default_catimgdesc.php
com_phocagallery/views/categories/tmpl/default_catimgdetail.php
com_phocagallery/views/categories/tmpl/default_catimgdetail_float.php
com_phocagallery/views/categories/tmpl/default_custom.php
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category Thumbail Image ALT value is wrong

Post by Jan »

Hi, thank you for this info. I will take a look at it for next version (seems like this was caused by migration from image.site to image)

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category Thumbail Image ALT value is wrong

Post by Jan »

Fixed in 3.1.2
If you find Phoca extensions useful, please support the project
Post Reply