1
jimbofoxman
XoopsGallery

Trying to adjust the layout of the XOOPSGallery Recent Images Block. Basically it left justifys the images and I would like the images centered.

Below is the code, I think I would need to change the 7th line down (starts with < div style="float........)

What do you all think?


<{if (
$block.debug_info) }>
    
<{/if}>
<
div><{foreach item=image from=$block.images}>
<{if (
$block.format=='wide')}>
  <
div style="float: left;">
    <
div class="item" style="padding: 2px; margin: 2px;">
     <
div style="text-align: center; height: <{$block.imageHeight}>px; width: <{$block.imageWidth}>px; ">
        <
a href="<{$image.link}>"><img src="<{$image.src}>" width="<{$image.width}>" height="<{$image.height}>" alt="" />a><br />
     div>
     <
div style="text-align: center; width: <{$block.imageWidth}>px; ">
<{else}>
  <
div style="width: 100%;">
  <
div class="item" style="padding: 2px; margin: 2px;">
    <
div style="text-align: center; width: 100%; ">
        <
a href="<{$image.link}>"><img src="<{$image.src}>" width="<{$image.width}>" height="<{$image.height}>" alt="" />a><br />
    div>
    <
div style="text-align: center; width: 100%; ">
<{/if}>
<{if (
$block.showCreated)}>
        <{
$image.created}>
<{/if}>
    div>
  div>
  div>
<{/foreach}><
div style="clear:both;">div>div>

Login

Who's Online

378 user(s) are online (62 user(s) are browsing Support Forums)


Members: 0


Guests: 378


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits