ok a dokładniej w którym miejscu?
function home_cat() {
$select_cat = select('categories', 'id, title, sites_active, image, description', 'active = 1', 'position asc, title asc', '');
$row = 0;
if ($GLOBALS['cfg']['home_cat_sub_rand'] == '1') $order = 'rand()';
else $order = 'title asc';
echo '<table width="100%" cellspacing="0" cellpadding="3" border="0">';
for ($i=0; $i<count($select_cat); $i++) {
if ($row == '0') echo '<tr>';
echo '<td valign="top" style="width:'.ceil(100/$GLOBALS['cfg']['home_cat_col']).'%;">';
echo '<h2><a href="https://'.url('cat', $select_cat[$i]['title'], $select_cat[$i]['id']).'" title="'.$GLOBALS['lang'][41].': '.$select_cat[$i]['title'].'">'.$select_cat[$i]['title'].' »</a>';
if ($GLOBALS['cfg']['home_cat_num'] == '1') echo ' <small>('.$select_cat[$i]['sites_active'].')</small>';
echo '</h2>';
if ($GLOBALS['cfg']['home_cat_desc'] == '1' & $select_cat[$i]['description'] != '') echo '<small>'.$select_cat[$i]['description'].'</small><br />';
if ($GLOBALS['cfg']['home_cat_image'] == '1' & $select_cat[$i]['image'] != '') echo '<img src="https://'.$GLOBALS['url'].'/templates/'.$GLOBALS['cfg']['template'].'/images/'.$select_cat[$i]['image'].'" style="float:left;" alt="'.$select_cat[$i]['title'].'" />';
if ($GLOBALS['cfg']['home_cat_sub'] != '0') {
$select_sub = select('subcategories', 'id, id_cat, title, sites_active', 'id_cat = '.$select_cat[$i]['id'].' && active = 1', $order, $GLOBALS['cfg']['home_cat_sub']);
for ($j=0; $j<count($select_sub); $j++) {
echo '<a href="https://'.url('sub', $select_sub[$j]['title'], $select_sub[$j]['id'], $select_sub[$j]['id_cat']).'" title="'.$GLOBALS['lang'][43].': '.$select_sub[$j]['title'].'" class="sub">'.$select_sub[$j]['title'].'</a>';
if ($GLOBALS['cfg']['home_cat_sub_num'] == '1') echo ' <small>('.$select_sub[$j]['sites_active'].')</small>';
if ($GLOBALS['cfg']['home_cat_sub'] != $j+1) {
if ($GLOBALS['cfg']['home_cat_sub_col'] == '1') echo '<br />';
else echo ', ';
}
}
if ($GLOBALS['cfg']['home_cat_more'] == '1') {
echo '<br />';
echo '<small><a href="https://'.url('cat', $select_cat[$i]['title'], $select_cat[$i]['id']).'" title="'.$GLOBALS['lang'][158].'">'.$GLOBALS['lang'][158].' »</a></small>';
}
}
echo '</td>';
$row++;
if ($row == $GLOBALS['cfg']['home_cat_col']) { echo '</tr>'; $row = 0; }
}
if ($row != '0') echo '</tr>';
echo '</table>';
}