Display recently added items as a gallery instead of a list

I'd like to display 4-5 recently updated items on the front page. Instead of using the vertical unordered list layout, I'd like them to display on the same line, as if they were cells in a table row. Something like this exhibits-gallery-thumbnail view,.

Is there an easy hack for this?

You could change the recent items div in the index php file to only pull images and strip out the styling like this:

<div id="recent-items">
<h2>Recently Added</h2>
<?php set_items_for_loop(recent_items(4)); ?>
<?php if (has_items_for_loop()): ?>
<ul class="items-list">
<?php while (loop_items()): ?>

  • <?php if (item_has_thumbnail()): ?>

    <?php echo link_to_item(item_square_thumbnail()); ?>

    <?php endif; ?>

  • <?php endwhile; ?>

    <?php else: ?>
    <p>No recent items available.</p>
    <?php endif; ?>
    </div><!--end recent-items -->

    Then you could change the screen.css files recent items styling like this-

    /* Recent Items */
    #recent-items img {width: 100px; padding: 10px;}
    #recent-items ul li {list-style-type: none; display:inline;}