Company Index

Below is a list of companies we have covered on CenterNetworks.

$vid = 8; /* <---- put correct vocabulary ID here */
$num_cols = 3; /* <---- put number of columns here */
$show_pic = module_exists('taxonomy_image');
echo '

‘;
$items = array();
$terms = taxonomy_get_tree($vid);
foreach ( $terms as $term ) {
$count = taxonomy_term_count_nodes($term->tid);
if ($show_pic) { $pic = taxonomy_image_display($term->tid /*, ‘align=”left”‘*/); }
else {$pic = NULL; }
$name_and_count = l($pic . $term->name,’taxonomy/term/’.$term->tid, NULL, NULL, NULL, NULL, TRUE);
$items[] = $name_and_count .”;
} /* end foreach */
if (count($items)) {
if ($num_cols == 1) {
echo theme(’item_list’, $items);
}
else {
$slice = ceil(count($items) / $num_cols);
echo ‘
‘;
for ($i = 0; $i < $num_cols; ++$i) {
$start = $i * $slice;
$class = $i % 2 ? 'even' : 'odd';
echo '

‘;
}
echo ‘

‘;;
echo theme(’item_list’, array_slice($items, $start, $slice));
echo ‘

‘;
}
}
else { echo ‘No terms found’; }
echo ‘

‘;
?>

Become a sponsor

SPONSORS

Loop11
Clicky Web Analytics
CloudContacts
125px
Future of Web Design
Advertise here

STARTUP NEWS

twitter