How to also show the image 'summary' as well as the 'title' using mediablock?

evobenno

Joined: 2012-02-08
Posts: 18
Posted: Wed, 2012-02-08 04:44

Hi ive got media block display 3 random images on 1 row, using mediablock, to my websites homepage

Using the following code, is there an additional way that can also show the summary of the image

<?php @readfile('http://www.mysite.com/gallery2/mediaBlock.php?g2_itemId=366&limit=3&column=3&showTitle=1&useThumb=1&shuffle=1&noShadow=1&useMicro=70&noLink=1'); ?>

Thanks for any help guys....

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2012-02-08 13:40

mediaBlock line ~505:

$title = '<h4 class="giDescription">'.getTitle($item).'</h4>';

to:

$title = '<h4 class="giDescription">'.getTitle($item).'</h4>'.
'<h5 class="giDescription">'.$item->getSummary().'</h5>';

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2