comment_status) && ('open' == $post->ping_status))
{
// Both Comments and Pings are open
_e('You can leave a response, or trackback from your own site.');
}
elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status))
{
// Only Pings are Open
_e('Responses are currently closed, but you can trackback from your own site.');
}
elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status))
{
// Comments are open, Pings are not
_e('You can skip to the end and leave a response. Pinging is currently not allowed.');
}
elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status))
{
// Neither Comments, nor Pings are open
_e('Both comments and pings are currently closed.');
}
edit_post_link(' Edit this entry.','',''); ?>
get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
}
else
{
$cats = get_categories("type=link&orderby=name&order=ASC&hierarchical=0");
}
if ($cats) {
foreach ($cats as $cat) {
// Handle each category.
if (substr(get_bloginfo('version'), 0, 3) < 2.1)
{
// Display the category name
echo '
' . $cat->cat_name . "
\n\t
\n";
// Call get_links() with all the appropriate params
get_links($cat->cat_id,'
',"
","\n", TRUE, 'name', FALSE, FALSE, -1, FALSE);
}
else
{
// Display the category name
echo '
' . $cat->cat_name . "
\n\t
\n";
// Call get_links() with all the appropriate params
get_links($cat->cat_ID,'
',"
","\n", TRUE, 'name', FALSE, FALSE, -1, FALSE);
}
// Close the last category
echo "\n\t