[SOLVED] Define the width / height of icon-up-images.gif ?

Phoca Gallery - image gallery extension
Souliman
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 28 Aug 2009, 14:51

[SOLVED] Define the width / height of icon-up-images.gif ?

Post by Souliman »

Hello,
on a category view (with thumbnails) the size of the icon-up-images.gif (button to come back to the list of categories) is not defined :

Code: Select all

<img src="/components/com_phocagallery/assets/images/icon-up-images.gif" alt="..."  />
I need to change it to :

Code: Select all

<img src="/components/com_phocagallery/assets/images/icon-up-images.gif" alt="..." width="48px" height="48px"  />
I think that the solution is around the /components/com_phocagallery/models/category.php file :

Code: Select all

				} else { // Back button to categories list if it exists
					if ($itemId > 0 && $display_categories_back_button == 1) {
						$this->_data[$count] = new JObject();
						$item =& $this->_data[$count];
						$item->link = $backLink;
						$item->title= JTEXT::_('Category List');
						$item->item_type = "categorieslist";
						$file_thumbnail = PhocaGalleryHelperFront::displayBackFolder('medium', 1);
						$item->linkthumbnailpath  = $file_thumbnail['rel'];
						$count++;
					}
But how can I precise the size of the image in this code ?
Thanks for your help !!!
Last edited by Souliman on 16 Dec 2009, 23:05, edited 1 time in total.
Souliman
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 28 Aug 2009, 14:51

Re: Define the width / height of icon-up-images.gif ?

Post by Souliman »

Please Jan,
I think you are the only one who can answer my question...
Thanks.

Souliman
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Define the width / height of icon-up-images.gif ?

Post by Jan »

Hi, the image is displayed in:

echo JHTML::_( 'image.site', $value->linkthumbnailpath, '', '', '', $value->title );

cca line 180

in components\com_phocagallery\views\category\tmpl\default.php

Jan
If you find Phoca extensions useful, please support the project
Souliman
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 28 Aug 2009, 14:51

Re: Define the width / height of icon-up-images.gif ?

Post by Souliman »

Excellent !
I changed it to :

Code: Select all

echo JHTML::_( 'image.site', $value->linkthumbnailpath, '', '', '', $value->title, array('width' => 48, 'height' => 48) );
Thanks a lot Jan !
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [SOLVED] Define the width / height of icon-up-images.gif ?

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply