# skip it, we've already seen this post. } else { array_push($assigned_posts, $post); $posts_seen[$post['post_id']] = true; $term_posts_count[$term]++; } } $term_posts[$term] = $assigned_posts; } ?> <div class='sidebar'> <div class='sidebox'> <div class='sidebox_title'>Latest Buzz</div> <div class='sidebox_content'> <?php print_termcloud($all_terms); ?> </div> </div> </div> <div class='content'> <h1>Stories</h1> <div class='newspage_tabs'> <?php # order list of terms by term_posts_count arsort($term_posts_count); $terms = array_keys($term_posts_count); for ($i = 0; $i <= 5; $i++) { if ($terms[$i]) { if (!($i % 2) && $i > 0) { print "<div class='newspage_footer'> </div>\n";
#} ?> <div class='content fullwidth'> <div class='frontpage_welcome'> <?php print get_blurb("frontpage", $safe_category); ?> </div> <div class='frontpage_tabs'> <?php print "<div class='frontpage_tab'>"; print "<div class='tab_padding'>"; print "<div class='tab_title'>Top Terms Today</div>"; $terms = get_terms(32, $safe_category); $terms = clean_terms($terms); print_termcloud($terms); print "</div>"; print "</div>"; print "<div class='frontpage_tab' style='text-align: center; vertical-align: center;'>"; print "<div class='tab_padding'>"; #print "<h3>Top cited journals</h3>"; print "<div class='tab_title'>Latest posts</div>"; print "<div class='slidebox'>"; $slides = print_blogger_slides($safe_category); print "</div>"; #$journal_stats = get_journal_stats($safe_category); #print_journalcloud($journal_stats, 15); print "</div>"; print "</div>"; print "<div class='frontpage_tab'>"; print "<div class='tab_padding'>";
.tagcloud_4 {font-size: 1.1em; color: #E60066;} .status_message { padding: 2px; margin: 4px; } </style> <?php include "functions.php"; $safe_category = mysql_escape_string($_GET['up_category']); # hack to get round the variable parsing done by functions.php if ($safe_category == "any") { $safe_category = "all"; } if (!$safe_category) { $safe_category = "all"; } # print "<div class='status_message'>Showing buzz from <b>$safe_category</b> blogs</div>"; if ($safe_category == "all") { $safe_category = false; } $terms = get_terms(32, $safe_category); $terms = clean_terms($terms); print_termcloud($terms, array("target" => "_main")); # if caching was switched on then save the page we just generated. if ($PAGE_CACHE) { $page = ob_get_contents(); ob_end_flush(); flush(); # put cached page in database cache($PAGE_URL, $page); }
} } } } } } } if ($bloglines_terms) { $valid_terms = validate_terms(array_keys($bloglines_terms)); if (!$valid_terms) { print "<h3>Sorry</h3>"; print "<p>None of the terms in " . $_SAFE['bloglines_username'] . "'s subscriptions are in the Postgenomic index."; print_r($bloglines_terms); } else { print "<h3>Matched Bloglines terms</h3>"; print_termcloud($valid_terms); # try and match up tags with blogs in the database foreach ($valid_terms as $term => $freq) { $post_ids = get_posts_with_term($term); # what blogs are these posts from? if ($post_ids) { $done = array(); $posts = get_posts("cited", array("post_id" => $post_ids)); if ($posts) { foreach ($posts as $post) { if ($done[$post['blog_id']]) { next; } else { if ($_SAFE['use_weighting_bloglines']) { $blog_ids[$post['blog_id']] += $freq; } else {