Alignment of description not logically

Phoca Gallery - image gallery extension
rob-van-baal
Phoca Member
Phoca Member
Posts: 27
Joined: 14 Jan 2011, 21:15
Location: Netherlands
Contact:

Alignment of description not logically

Post by rob-van-baal »

Hello Phoca team,

(using Joomla 3.2.0 with Galery 4.0.4)

For the detail window I'm using the no-popup setting (COM_PHOCAGALLERY_NO_POPUP). This shows the pictures as normal html pages. When activating the description on the detail screen I choose the standard setting (COM_PHOCAGALLERY_SHOW_STANDARD).

On the screen, the picture and navigation controls are shown at a centered way, which is ok; but the description is left aligned! Very strange.

In order to solve this, I have edited the defaults.php (components/com_phocagallery/views/detail/tmpl/default.php) and changed:

Code: Select all

// Standard Description
if ($this->tmpl['displaydescriptiondetail'] == 1) {
	echo '<tr>'
	.'<td colspan="6" align="left" valign="top" class="pg-dv-desc">'
into

Code: Select all

// Standard Description
if ($this->tmpl['displaydescriptiondetail'] == 1) {
	echo '<tr>'
	.'<td colspan="6" align="center" valign="top" class="pg-dv-desc">'
And now the description oulines nicely in the center together with the picture and navigation!

Please check this out yourselve and considor taking over this minor change in code...

Regards,

Rob.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Alignment of description not logically

Post by Jan »

Hi, thank you for the info, mostly this should be set by every user for his/her server like you have done. Many users do not like centered alignment, so the standard one (left) is used. I by myself cannot say which one is the right one, if centered like the image or left with centered image, so this mostly needs to be set for the current template.

Anyway thank you for the info and for the guide. I will take a look at it.

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