Show description below the thumbnail in the gallery.

Everything to do with Templates and Templating for Admiror Gallery.
Post Reply
Message
Author
rmattson
Posts: 1
Joined: Mon Apr 18, 2011 10:31 pm

Show description below the thumbnail in the gallery.

#1 Post by rmattson »

Is there anyway to have the description show below the thumbnail in the gallery.

Admiror Gallery 5 - Fundraising Campaign

User avatar
kekeljevic
Developer
Developer
Posts: 445
Joined: Tue Aug 17, 2010 2:38 pm
Location: Novi Sad, Serbia
Contact:

Re: Classic Centered Template

#2 Post by kekeljevic »

Code: Select all

$html.= $AG->writePopupThumb($imageName)."<div style='text-align:center;'>".$AG->writeDescription($imageName)."</div>";
This would add captions but it's a question how to handle various sizes of captions. Some captions could go in more than one line and it would make quite a mess. It's possible to make something which will look good only with short captions, like a current Albums style.

User avatar
realovich
Contributor
Contributor
Posts: 12
Joined: Sat Feb 19, 2011 8:25 pm
Location: Russia, Sainkt-Petersburg

Re: Classic Centered Template

#3 Post by realovich »

I have not displayed the caption to the photo.

cjx
Posts: 5
Joined: Mon Sep 19, 2011 11:24 am

Re: Show description below the thumbnail in the gallery.

#4 Post by cjx »

kekeljevic wrote:

Code: Select all

$html.= $AG->writePopupThumb($imageName)."<div style='text-align:center;'>".$AG->writeDescription($imageName)."</div>";
This would add captions but it's a question how to handle various sizes of captions. Some captions could go in more than one line and it would make quite a mess. It's possible to make something which will look good only with short captions, like a current Albums style.
Hi all

Thank you for this great extension.

Which file i have to put this code in ?

Regards

cjx
Posts: 5
Joined: Mon Sep 19, 2011 11:24 am

Re: Show description below the thumbnail in the gallery.

#5 Post by cjx »

found that already
here is
i am using classic template so
plugins\content\admirrorgallery\templates\classic\index.php

find this line

Code: Select all

$html.= $AG->writePopupThumb($imageName);
replace with this

Code: Select all

$html.= $AG->writePopupThumb($imageName)."<div style='text-align:center;'>".$AG->writeDescription($imageName)."</div>";
this is all you need to do

Thank you all

Admiror Gallery 5 - Fundraising Campaign

User avatar
Vasiljevski
Developer
Developer
Posts: 1258
Joined: Sat Aug 14, 2010 9:31 pm
Location: Novi Sad, Serbia
Contact:

Re: Show description below the thumbnail in the gallery.

#6 Post by Vasiljevski »

In the template index.php file. Depending on the template you are using :)
This trick works for classic and listed templates, or any custom template you made :)
Help Admiror Gallery become even better,
give us a review on JED

Post Reply