I figured out how to get the recent pictures box to show up in my custom theme. The following code needs to be added to the index.template.php file of your custom theme to get the recent picture thumbnail display from SMF Gallery Pro to work with a custom theme.
//SMF Gallery Recent Images on Index
//Load the language files
if(loadlanguage('Gallery') == false)
loadLanguage('Gallery','english');
//Check if the gallery url has been set if not use the default
if(empty($modSettings['gallery_url']))
{
$modSettings['gallery_url'] = $boardurl . '/gallery/';
}
echo '<table cellspacing="0" cellpadding="5" border="0" align="center" width="90%" class="tborder">
<tr class="titlebg">
<td align="center" colspan="4">', $txt['gallery_main_recent'] ,'</td>
</tr>
';
$rowlevel = 0;
$maxrowlevel = 4;
foreach ($context['gallery_recent'] as $picture)
{
echo '<td align="center"><a href="' . $scripturl . '?action=gallery;sa=view;id=' . $picture['ID_PICTURE'] . '"><img src="' . $modSettings['gallery_url'] . $picture['thumbfilename'] . '" /></a><br />';
echo '<span class="smalltext">' . $txt['gallery_text_views'] . $picture['views'] . '<br />';
echo $txt['gallery_text_comments'] . $picture['commentlink'];
echo $txt['gallery_text_by'] . $picture['profilelink'];
echo '</span></td>';
if($rowlevel < ($maxrowlevel-1))
$rowlevel++;
else
{
echo '</tr>';
$rowlevel = 0;
}
}
if($rowlevel !=0)
{
echo '</tr>';
}
echo '</table>';
//End SMF Gallery Recent Images on Index