require_once(drupal_get_path('theme','supernova') . '/template.php');
/**********************
* UPDATE THESE VARIABLES
*/
$ad_skyscraper_unit_num = 921; //UPDATE THIS with the proper taxonomy ID for the full banner group
$ad_buttons_unit_num = 922; //UPDATE THIS with the proper taxonomy ID for the bottom med rect group
$adsense_unit = 1; //UPDATE THIS with the proper unit ID from the AdSense module
$adsense_channel = 6; //UPDATE THIS with the proper channel ID for this section from the AdSense module
$blogs_vid = 17;
$ncaa_tid = array(924);
//Load all the NCAA sports stories
$result = db_query_range("SELECT t.nid
FROM {term_node} t
JOIN {node} n ON t.nid = n.nid
LEFT JOIN {sunweight} s ON n.nid = s.nid
WHERE tid IN (%s)
AND n.status=1
ORDER BY n.created DESC, s.weight ASC",
implode(',',$ncaa_tid), 0, 10);
$ncaa = array();
while($n = db_fetch_object($result)) {
if($n->nid == $sports[0]->nid)
continue;
$ncaa[] = node_load($n->nid);
}
?>
//skyscraper ad unit
if(!module_exists(‘ad’) || supernova_num_ads($ad_skyscraper_unit_num) <= 0) { print adsense_display('120x600', $adsense_unit, $adsense_channel); } else { print ad($ad_skyscraper_unit_num,1); } echo '
‘;
//popular stories block
$block = module_invoke(‘views’, ‘block’, ‘view’, ‘popular_blogs’);
echo ‘
‘ . $block[‘subject’] . ‘
‘;
echo $block[‘content’] . ‘
‘;
//buttons ad unit
if(supernova_num_ads($ad_buttons_unit_num) >= 2) {
print ad($ad_buttons_unit_num,2);
} else if (supernova_num_ads($ad_buttons_unit_num) == 1) {
print ad($ad_buttons_unit_num,1);
print “
“;
print adsense_display(‘120×90’, $adsense_unit, $adsense_channel);
} else {
print adsense_display(‘120×90’, $adsense_unit, $adsense_channel);
print “
“;
print adsense_display(‘120×90’, $adsense_unit, $adsense_channel);
}
?>
foreach($ncaa as $node) { ?>
} ?>
=l('See all stories >>’,’taxonomy/term/924′);?>