Show image description in Slimbox/Thickbox

Article Index

Changes in templates

Now we are coming to the modifications of every template. You can see there always the changed line.
The output should be of the format 'Caption, Space, Description'

As written before: change only the templates necessary for you.

Category view
File '/components/com_joomgallery/views/category/tmpl/default_images.php'
Line 23

<a title="<?php echo $row->imgtitle.
' '.
htmlspecialchars($row->imgtext, ENT_COMPAT, 'UTF-8'); ?>"

Detail view
File '/components/com_joomgallery/views/detail/tmpl/default.php'
Line 19 (click at detail image) and line 105 (click at the lens)

<a title="<?php echo $this->image->imgtitle.
' '.
htmlspecialchars($this->image->imgtext, ENT_COMPAT, 'UTF-8'); ?>"

Favourites view
File '/components/com_joomgallery/views/favourites/tmpl/default.php'
Line 35
here you have to add the 'title' attribute completely.

<a title="<?php echo $row->imgtitle.
' '.
htmlspecialchars($row->imgtext, ENT_COMPAT, 'UTF-8'); ?>"

Search view
File '/components/com_joomgallery/views/search/tmpl/default.php'
Line 26

<a title="<?php echo $row->imgtitle.
' '.
htmlspecialchars($row->imgtext, ENT_COMPAT, 'UTF-8'); ?>"

Toplists view
File '/components/com_joomgallery/views/toplist/tmpl/default.php'
Line 28

<a title="<?php echo $row->imgtitle.
' '.
htmlspecialchars($row->imgtext, ENT_COMPAT, 'UTF-8'); ?>"

'My Gallery' - Images overview
File '/components/com_joomgallery/views/userpanel/tmpl/default.php'
Line 93 (Click at link of image)

<a title="<?php echo $row->imgtitle.
' '.
htmlspecialchars($row->imgtext, ENT_COMPAT, 'UTF-8'); ?>"

For the minithumb you have to modify the line 1161 in file '/components/com_joomgallery/helpers/html/joomgallery.php'.

$html .= '<a title="'.$img->imgtitle.
' '.
htmlspecialchars($img->imgtext, ENT_QUOTES, 'UTF-8').
'" href="'.$link.'">';

Joomla!®

Joom::Gallery is not affiliated with or endorsed by the Joomla! Project or Open Source Matters. The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.