Page 1 of 1

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

Posted: 15 Dec 2009, 04:35
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 !!!

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

Posted: 16 Dec 2009, 15:52
by Souliman
Please Jan,
I think you are the only one who can answer my question...
Thanks.

Souliman

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

Posted: 16 Dec 2009, 22:06
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

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

Posted: 16 Dec 2009, 23:03
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 !

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

Posted: 19 Dec 2009, 19:43
by Jan
Ok