Hier nochmal Auszüge des von mir verwendeten Codes in theme.php auf osterburken.net:// HTML template for the category list
$template_cat_list = <<<EOT
<!-- BEGIN header -->
<!-- END header -->
<!-- BEGIN catrow_noalb -->
<tr>
<td class="tableh2" colspan="2">
<table border="0">
<tr>
<td>{CAT_THUMB} {DEBUG}</td>
<td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td>
</tr>
</table>
</td>
</tr>
<!-- END catrow_noalb -->
<!-- BEGIN catrow -->
<td class="tableb" valign="top">
<div style="float:left;margin-right:5px;margin-bottom:5px;">{CAT_THUMB}</div>
<span class="catlink">{CAT_TITLE}</span>{CAT_DESC}<br />
<div align="right" class="small">{ALB_COUNT} Alben, {PIC_COUNT} Bilder</div>
{DEBUG}
</td>
<!-- END catrow -->
<!-- BEGIN catrow_blank -->
<td class="tableb" align="center">{DEBUG}</td>
<!-- END catrow_blank -->
<!-- BEGIN footer -->
<tr>
<td colspan="6" class="tableh1" align="center"><span class="statlink"><b>{STATISTICS}</b></span></td>
</tr>
<!-- END footer -->
<!-- BEGIN spacer -->
<img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->
EOT;
function theme_display_cat_list($breadcrumb, &$cat_data, $statistics)
{
// Taken from http://coppermine-gallery.net/forum/index.php?topic=15400.msg107765#msg107765
global $template_cat_list, $lang_cat_list;
starttable('100%');
if (count($cat_data) > 0) {
$template = template_extract_block($template_cat_list, 'header');
$params = array('{CATEGORY}' => $lang_cat_list['category'],
'{ALBUMS}' => $lang_cat_list['albums'],
'{PICTURES}' => $lang_cat_list['pictures'],
);
echo template_eval($template, $params);
}
$template_noabl = template_extract_block($template_cat_list, 'catrow_noalb');
$template = template_extract_block($template_cat_list, 'catrow');
$template_blank = template_extract_block($template_cat_list, 'catrow_blank');
$count=0;
$columnCount=2;
echo "<tr>";
foreach($cat_data as $category) {
$count++;
if (count($category) == 3) {
if ($count%$columnCount==0) {
$params = array('{DEBUG}' => "");
echo template_eval($template_blank, $params);
}
$params = array('{CAT_TITLE}' => $category[0],
'{CAT_THUMB}' => $category['cat_thumb'],
'{CAT_DESC}' => $category[1],
'{DEBUG}' => ""
);
$count=0;
echo template_eval($template_noabl, $params);
} else {
$params = array('{CAT_TITLE}' => $category[0],
'{CAT_THUMB}' => $category['cat_thumb'],
'{CAT_DESC}' => $category[1],
'{CAT_ALBUMS}' => $category['cat_albums'],
'{ALB_COUNT}' => $category[2],
'{PIC_COUNT}' => $category[3],
'{DEBUG}' => ""
);
echo template_eval($template, $params);
}
if ($count%$columnCount==0) {
echo "</tr>\n\r <tr>";
}
}
echo "</tr>";
if ($statistics && count($cat_data) > 0) {
$template = template_extract_block($template_cat_list, 'footer');
$params = array('{STATISTICS}' => $statistics);
echo template_eval($template, $params);
}
endtable();
if (count($cat_data) > 0)
echo template_extract_block($template_cat_list, 'spacer');
}