Where can I find this code in Gallery?

emosher

Joined: 2006-04-09
Posts: 9
Posted: Fri, 2007-02-09 19:53

When I add this code to my sidebar:

<?php @readfile('http://localhost/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title'); ?>

It creates this code in the browser.

<div class="one-image">
<a href="http://localhost/gallery2/main.php/v/Bear+Mountain+9-16-05/IMG_2588.jpg.html" >
<img src="http://localhost/gallery2/main.php?g2_view=core.DownloadItem&amp;g2_itemId=148&amp;g2_serialNumber=2" width="150" height="113" class="giThumbnail" alt="IMG_2588" longdesc=""/>
</a>
<h4 class="giDescription">
IMG_2588
</h4>
</div>

Where can I find this code to modify it?

I am using Gallery v2.1.2
Wordpress v2.0.7
WPG2 2.0

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2007-02-09 22:44

from the URL: g2_view=imageblock.External

thus it's the 'imageblock' module and the External.inc view file.

-> modules/imageblock/External.inc ExternalView function loadTemplate().
-> modules/imageblock/templates/*.tpl

--------------
Enter the Gallery 2 Theme Contest today!

 
emosher

Joined: 2006-04-09
Posts: 9
Posted: Sat, 2007-02-10 14:33

Thanks valient! I found it a little while after I posted. But now I am trying to figure out how to edit it. I am trying to modify the code to add some of my classes and IDs from my other pages to work with my CSS.

For example this is the code for images:

<div class="imageholder">
<a class="imagelink" rel="lightbox" href="../photos/pics/knockout.jpg" title="knockout"><br />
<img class="100wide" src="../photos/pics/knockout.jpg" alt="knockout" title="knockout" /><br />
</a>
</div>

note the classes within the anchor and within the IMG tag. How can I do this with the imageblock module?