Пример #1
0
<div class='sidebox_title'>Subscribe</div>
<div class='sidebox_content'>
		<?php 
if ($safe_category) {
    print "<p>Subscribe to posts in the " . strtolower($safe_category) . " category:";
}
feedbox("Latest posts", "atom.php?category={$safe_category}&type=latest_posts");
feedbox("Recently popular posts", "atom.php?category={$safe_category}&type=popular_posts");
feedbox("Latest reviews", "atom.php?category={$safe_category}&type=latest_posts&tag=review");
feedbox("Latest conference reports", "atom.php?category={$safe_category}&type=latest_posts&tag=conference");
feedbox("Latest original research", "atom.php?category={$safe_category}&type=latest_posts&tag=original_research");
?>
</div>
</div>
<?php 
print_searchbox("Posts");
?>
</div>
<div class='content'>
<?php 
$this_category_rows = 0;
$every_category_rows = 0;
if ($output_available) {
    if ($safe_term) {
        $subfilters = $filters;
        $subfilters['category'] = false;
        $all_posts = get_posts($safe_order_by, $subfilters);
        if ($all_posts) {
            $every_category_rows = $all_posts[0]["rows_returned"];
        }
    }
Пример #2
0
?>
</div>
</div>
<div class='sidebox'>
<div class='sidebox_title'>Subscribe</div>
<div class='sidebox_content'>
<?php 
if ($safe_category) {
    print "<p>Subscribe to new blogs from the " . strtolower($safe_category) . " category:";
}
feedbox("New blogs", "atom.php?category={$safe_category}&type=latest_blogs");
?>
</div>
</div>
<?php 
print_searchbox("Blogs");
?>
</div>
<div class='content'>
<?php 
$safe_skip = false;
$safe_skip = mysql_escape_string($_GET["skip"]);
if (!is_numeric($safe_skip)) {
    $safe_skip = false;
}
$filters = array();
$filters['limit'] = $GLOBALS["config"]['blogs_per_page'];
if ($safe_skip) {
    $filters['skip'] = $safe_skip;
} else {
    $filters['skip'] = 0;
Пример #3
0
?>
'><img border='0' src='images/bmc_comment.png'/></a></div>
<div class='basic_thumbnail'><a href='<?php 
plinkto("papers.php", $page_vars, array("comment_source" => "Cell"));
?>
'><img border='0' src='images/cell_comment.png'/></a></div>
<div class='basic_thumbnail'><a href='<?php 
plinkto("papers.php", $page_vars, array("comment_source" => "Science"));
?>
'><img border='0' src='images/science_comment.png'/></a></div>
-->
<div class='postbox_footer'>&nbsp;</div>
</div>
</div>
<?php 
print_searchbox("Papers");
?>
</div>
<div class='content'>
<?php 
$papers = get_papers($safe_order_by, $filters);
# pagination control
if ($papers) {
    print_pagination($papers, $safe_skip, "papers.php", $GLOBALS["config"]['papers_per_page']);
    foreach ($papers as $paper) {
        print_paper($paper, array("display" => "minimal"));
    }
    print_pagination($papers, $safe_skip, "papers.php", $GLOBALS["config"]['papers_per_page']);
} else {
    print "No papers found.";
}