本文整理汇总了PHP中trackback_url函数的典型用法代码示例。如果您正苦于以下问题:PHP trackback_url函数的具体用法?PHP trackback_url怎么用?PHP trackback_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了trackback_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: miss_comment_tab
/**
*
*/
function miss_comment_tab()
{
global $post;
$get_comments = get_comments('post_id=' . $post->ID);
$separate_comments = separate_comments($get_comments);
$comments_by_type =& $separate_comments;
?>
<div class="blog_tabs_container">
<ul class="blog_tabs">
<li><a href="#" class="current"><?php
printf(_n('%1$s Comment', '%1$s Comments', count($comments_by_type['comment']), MISS_TEXTDOMAIN), number_format_i18n(count($comments_by_type['comment'])));
?>
</a></li>
<li><a href="#" class=""><?php
printf(_n('%1$s Trackback', '%1$s Trackback', count($comments_by_type['pings']), MISS_TEXTDOMAIN), number_format_i18n(count($comments_by_type['pings'])));
?>
</a></li>
<div class="clearboth"></div>
</ul><!-- .blog_tabs -->
<div class="blog_tabs_content">
<ol class="commentlist">
<?php
wp_list_comments(array('type' => 'comment', 'callback' => 'miss_comments_callback'));
?>
</ol>
<?php
if (get_option('page_comments')) {
?>
<div class="comment-navigation paged-navigation">
<?php
paginate_comments_links(miss_portfolio_comment_url($nav = true));
?>
</div><!-- .comment-navigation -->
<?php
}
?>
</div><!-- .blog_tabs_content -->
<div class="blog_tabs_content">
<ol class="commentlist trackbacks_pingbacks">
<!-- <?php
trackback_url();
?>
-->
<?php
wp_list_comments(array('type' => 'pings', 'callback' => 'miss_pings_callback'));
?>
</ol>
</div><!-- .blog_tabs_content -->
</div><!-- .blog_tabs_container -->
<?php
}
示例2: the_time
This entry was posted
<?php /* This is commented, because it requires a little adjusting sometimes.
You'll need to download this plugin, and follow the instructions:
http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
and is filed under <?php the_category(', ') ?>.
You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed.
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site.
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site.
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
You can skip to the end and leave a response. Pinging is currently not allowed.
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
Both comments and pings are currently closed.
<?php } edit_post_link('Edit this entry.','',''); ?>
</small>
</p>
</div>
示例3: do_atomic
<?php do_atomic( 'after_comment_list' ); // After comment list hook ?>
<?php if ( get_option( 'page_comments' ) ) : ?>
<div class="comment-navigation comment-pagination paged-navigation">
<?php paginate_comments_links(); ?>
</div><!-- .comment-navigation -->
<?php endif; ?>
</div><!-- #comments -->
<?php else : ?>
<?php if ( pings_open() && !comments_open() ) : ?>
<p class="comments-closed pings-open">
<?php printf( __( 'Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', hybrid_get_parent_textdomain() ), trackback_url( '0' ) ); ?>
</p><!-- .comments-closed .pings-open -->
<?php endif; ?>
<?php endif; ?>
<?php //modify comment form
$args = array( 'title_reply' => __('Leave a comment'),
'label_submit' => __('Submit'),
);
?>
<?php comment_form( $args ); // Load the comment form. ?>
</div><!-- #comments-template -->
示例4: printf
</div>
<?php
}
?>
</div><!-- #comments -->
<?php
} else {
?>
<?php
if (pings_open() && !comments_open() && (is_single() || is_page())) {
?>
<p class="comments-closed pings-open">
<?php
printf(__('Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', 'framemarket'), trackback_url('0'));
?>
</p>
<?php
} elseif (!comments_open() && (is_single() || is_page())) {
?>
<p class="comments-closed">
<?php
_e('Comments are closed.', 'framemarket');
?>
</p>
<?php
}
?>
<?php
示例5: printf
</div>
<br class="clear" />
<p class="postmetadata alt">
<small>
<?php printf(__('This entry was posted on %1$s at %2$s and is filed under %3$s.', 'xpress'), get_the_time(__('l, F jS, Y', 'xpress')), get_the_time(), get_the_category_list(', ')); ?>
<?php the_taxonomies(); ?>
<?php printf(__("You can follow any responses to this entry through the <a href='%s'>RSS 2.0</a> feed.", "xpress"), get_post_comments_feed_link()); ?>
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
<?php printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.', 'xpress'), trackback_url(false)); ?>
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
<?php printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.', 'xpress'), trackback_url(false)); ?>
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
<?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.', 'xpress'); ?>
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
<?php _e('Both comments and pings are currently closed.', 'xpress'); ?>
<?php } edit_post_link(__('Edit this entry.', 'xpress'),'',''); ?>
</small>
</p>
</div>
示例6: printf
printf(__('Posted in %s', 'xpress'), get_the_category_list(', '));
echo ' | ';
edit_post_link(__('Edit', 'xpress'), '', ' | ');
comments_popup_link(__('No Comments »', 'xpress'), __('1 Comment »', 'xpress'), __('% Comments »', 'xpress'), '', __('Comments Closed', 'xpress'));
?>
</div>
<div id ="xpress-pings-block">
<h3><?php
xpress_pings_number('zero=' . __('No Trackback/Pingback', 'xpress') . '&one=' . __('One Trackback/Pingback', 'xpress') . '&more=' . __('% TrackBack/Pingback', 'xpress'));
?>
</h3>
<p class="xpress_pings_status"><small>
<?php
if ('open' == $post->ping_status) {
printf(__('You can <a href="%s" rel="trackback">trackback</a> from your own site.', 'xpress'), trackback_url(false));
} else {
_e('Pinging is currently not allowed.', 'xpress');
}
?>
</small></p>
<?php
xpress_pings_list('echo=1');
?>
</div>
<div id ="xpress-comments-block">
<?php
if (xpress_is_wp_version('<', '2.7')) {
comments_template();
示例7: recent_posts_list_block
//.........这里部分代码省略.........
if (array_search(0, $selected) === 0) {
$cat_select = 0;
}
$selected_author_id = xpress_selected_author_id('echo=0');
if (!empty($selected_author_id)) {
$author_where = "author={$selected_author_id}&";
} else {
$author_where = '';
}
global $wpdb, $wp_query;
$block = array();
$item_no = 0;
if (!is_null($wpdb)) {
$wp_query->in_the_loop = true;
//for use the_tags() in multi lopp
if ($cat_select) {
$r = new WP_Query($author_where . $tag_where . "cat={$cat_select}&showposts={$disp_count}&what_to_show=posts&nopaging=0&post_status=publish");
} else {
$r = new WP_Query($author_where . $tag_where . "showposts={$disp_count}&what_to_show=posts&nopaging=0&post_status=publish");
}
while ($r->have_posts()) {
$r->the_post();
ob_start();
the_ID();
$post_id = ob_get_contents();
ob_end_clean();
ob_start();
the_title();
$title = ob_get_contents();
ob_end_clean();
ob_start();
the_permalink();
$permalink = ob_get_contents();
ob_end_clean();
ob_start();
the_author_posts_link();
$author = ob_get_contents();
ob_end_clean();
ob_start();
the_category(' • ');
$category = ob_get_contents();
ob_end_clean();
if (function_exists('the_tags')) {
ob_start();
the_tags(__('Tags:', 'xpress') . ' ', ' • ', '');
$tags = ob_get_contents();
ob_end_clean();
} else {
$tags = '';
}
ob_start();
the_modified_date($date_format);
$post_modified_date = ob_get_contents();
ob_end_clean();
ob_start();
the_modified_date($time_format);
$post_modified_time = ob_get_contents();
ob_end_clean();
ob_start();
the_time($date_format);
$post_date = ob_get_contents();
ob_end_clean();
ob_start();
the_time($time_format);
$post_time = ob_get_contents();
ob_end_clean();
ob_start();
comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)'));
$comments_popup_link = ob_get_contents();
ob_end_clean();
$red_sec = $disp_red * 60 * 60 * 24;
$green_sec = $disp_green * 60 * 60 * 24;
ob_start();
the_time('U');
$check_time = ob_get_contents();
ob_end_clean();
$elapse = time() - $check_time;
$new_mark = '';
if ($elapse < $red_sec) {
$new_mark = '<em style="color: red; font-size: small;">New! </em>';
} else {
if ($elapse < $green_sec) {
$new_mark = '<em style="color: green; font-size: small;">New! </em>';
}
}
$post_title = '<a href="' . $permalink . '">' . $title . '</a>';
$post_date_time = $post_date . ' ' . $post_time;
$post_modified_date_time = $post_modified_date . ' ' . $post_modified_time;
$trackback_url = trackback_url(false);
$post_viwes = xpress_post_views_count('post_id=' . $post_id . '&format=' . __('Views :%d', 'xpress') . '&echo=0');
// if (empty($tags)) $tags = __('Not Tag');
$row_data = array('post_id' => $post_id, 'new_mark' => $new_mark, 'post_title' => $post_title, 'post_date' => $post_date, 'post_time' => $post_time, 'post_date_time' => $post_date_time, 'post_modified_date' => $post_modified_date, 'post_modified_time' => $post_modified_time, 'post_modified_date_time' => $post_modified_date_time, 'post_author' => $author, 'post_category' => $category, 'post_tags' => $tags, 'post_views' => $post_viwes, 'comment_link' => $comments_popup_link, 'trackback_url' => $trackback_url);
$block['contents']['item' . $item_no] = $row_data;
$item_no++;
}
$block['data_count'] = $item_no;
//xml unserialise error
}
return $block;
}
示例8: trackback_rdf
function trackback_rdf($timezone = 0, $echo = true)
{
$trackback_rdf = '';
if (!stristr($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator')) {
$trackback_rdf .= '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<rdf:Description rdf:about="' . get_permalink() . '"' . "\n";
$trackback_rdf .= ' dc:identifier="' . get_permalink() . '"' . "\n";
$trackback_rdf .= ' dc:title="' . str_replace('--', '--', wptexturize(strip_tags(get_the_title()))) . '"' . "\n";
$trackback_rdf .= ' trackback:ping="' . trackback_url(0) . '"' . " />\n";
$trackback_rdf .= '</rdf:RDF>';
}
return _echo($trackback_rdf, $echo);
}
示例9: trackback_rdf
function trackback_rdf($timezone = 0)
{
global $pathserver, $id, $HTTP_SERVER_VARS;
if (!stristr($HTTP_SERVER_VARS['HTTP_USER_AGENT'], 'W3C_Validator')) {
echo '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" ' . "\n";
echo ' xmlns:dc="http://purl.org/dc/elements/1.1/"' . "\n";
echo ' xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">' . "\n";
echo '<rdf:Description' . "\n";
echo ' rdf:about="';
permalink_single();
echo '"' . "\n";
echo ' dc:identifier="';
permalink_single();
echo '"' . "\n";
echo ' dc:title="' . addslashes(get_the_title()) . '"' . "\n";
echo ' trackback:ping="' . trackback_url(0) . '"' . " />\n";
echo '</rdf:RDF>';
}
}
示例10: printf
<?php
if (is_single()) {
?>
<?php
printf('<a href="%s">コメントRSS</a>', get_post_comments_feed_link());
?>
|
<?php
}
?>
<?php
if (pings_open()) {
?>
<?php
printf('<a href="%s" rel="trackback">トラックバックURL</a>', trackback_url(false));
?>
<?php
}
?>
</p>
</div><!-- end of entry_inner -->
</div><!-- post_class -->
<!-- コメント -->
<?php
if (is_single()) {
?>
<?php
示例11: paginate_comments_links
<div class="comment-navigation paged-navigation">
<?php paginate_comments_links(); ?>
</div>
<?php endif; ?>
</div><!-- #comments -->
<?php else : ?>
<?php if ( pings_open() && !comments_open() && is_single() ) : ?>
<p class="comments-closed pings-open">
<?php printf( __('Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', 'buddypress'), trackback_url( '0' ) ); ?>
</p>
<?php elseif ( !comments_open() && is_single() ) : ?>
<p class="comments-closed">
<?php _e('Comments are closed.', 'buddypress'); ?>
</p>
<?php endif; ?>
<?php endif; ?>
<?php if ( comments_open() ) : ?>
<div id="respond">
示例12: trackback_rdf
function trackback_rdf($timezone = 0) {
global $id;
if (stripos($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator') === false) {
echo '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<rdf:Description rdf:about="';
the_permalink();
echo '"'."\n";
echo ' dc:identifier="';
the_permalink();
echo '"'."\n";
echo ' dc:title="'.str_replace('--', '--', wptexturize(strip_tags(get_the_title()))).'"'."\n";
echo ' trackback:ping="'.trackback_url(0).'"'." />\n";
echo '</rdf:RDF>';
}
}
示例13: recent_posts_content_block
//.........这里部分代码省略.........
ob_start();
the_modified_date($date_format);
$post_modified_date = ob_get_contents();
ob_end_clean();
ob_start();
the_modified_date($time_format);
$post_modified_time = ob_get_contents();
ob_end_clean();
ob_start();
the_time($date_format);
$post_date = ob_get_contents();
ob_end_clean();
ob_start();
the_time($time_format);
$post_time = ob_get_contents();
ob_end_clean();
ob_start();
comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)'));
$comments_popup_link = ob_get_contents();
ob_end_clean();
// all_in_one
ob_start();
?>
<div class="xpress-post" id="post-<?php the_ID(); ?>">
<div class ="xpress-post-header">
<?php if (function_exists('hotDates')) { hotDates(); }?>
<div class ="xpress-post-title">
<?php if(function_exists('the_title_attribute')) : ?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'xpress'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
<?php else : ?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'xpress'), the_title('','',false)); ?>"><?php the_title(); ?></a></h2>
<?php endif; ?>
</div>
</div>
<div class="xpress-post-entry">
<?php echo $post_content; ?>
</div>
<div class="xpress-link-pages"><?php wp_link_pages() ?></div>
<div class ="xpress-post-footer">
<?php
the_time('Y/m/d l');
echo ' - ';
the_author_posts_link();
echo ' (' . xpress_post_views_count('post_id=' . $post->ID . '&format=' . __('Views :%d', 'xpress'). '&echo=0') . ')';
echo ' | ';
// echo the_tags(__('Tags:', 'xpress') . ' ', ', ', ' | ');
printf(__('Posted in %s', 'xpress'), get_the_category_list(', '));
echo ' | ';
edit_post_link(__('Edit', 'xpress'), '', ' | ');
comments_popup_link(__('No Comments »', 'xpress'), __('1 Comment »', 'xpress'), __('% Comments »', 'xpress'), '', __('Comments Closed', 'xpress') );
?>
</div>
</div>
<?php
$all_in_one = ob_get_contents();
ob_end_clean();
$post_title = '<a href="' . $permalink . '">' . $title . '</a>';
$post_date_time = $post_date . ' ' . $post_time ;
$post_modified_date_time = $post_modified_date . ' ' . $post_modified_time ;
$trackback_url = trackback_url(false);
$post_viwes = xpress_post_views_count('post_id=' . $post_id . '&format=' . __('Views :%d', 'xpress'). '&echo=0');
// if (empty($tags)) $tags = __('Not Tag');
$row_data = array(
'post_id' => $post_id ,
'post_title' => $post_title ,
'post_content' => $post_content ,
'post_date' => $post_date ,
'post_time' => $post_time ,
'post_date_time' => $post_date_time ,
'post_modified_date' => $post_modified_date ,
'post_modified_time' => $post_modified_time ,
'post_modified_date_time' => $post_modified_date_time ,
'post_author' => $author ,
'post_category' => $category ,
'post_tags' => $tags,
'post_views' => $post_viwes,
'comment_link' => $comments_popup_link ,
'trackback_url' => $trackback_url ,
'all_in_one' => $all_in_one
);
$block['contents']['item'.$item_no] = $row_data;
$item_no++;
}
$block['data_count'] = $item_no; //xml unserialise error
}
return $block ;
}
示例14: global_popular_posts_block
//.........这里部分代码省略.........
ob_start();
the_permalink();
$permalink = ob_get_contents();
ob_end_clean();
ob_start();
the_author_posts_link();
$author = ob_get_contents();
ob_end_clean();
ob_start();
the_category(' • ');
$category = ob_get_contents();
ob_end_clean();
if (function_exists('the_tags')){
ob_start();
the_tags(__('Tags:', 'xpress') . ' ',' • ','');
$tags = ob_get_contents();
ob_end_clean();
} else {
$tags = '';
}
ob_start();
the_modified_date($date_format);
$post_modified_date = ob_get_contents();
ob_end_clean();
ob_start();
the_modified_date($time_format);
$post_modified_time = ob_get_contents();
ob_end_clean();
ob_start();
the_time($date_format);
$post_date = ob_get_contents();
ob_end_clean();
ob_start();
the_time($time_format);
$post_time = ob_get_contents();
ob_end_clean();
ob_start();
comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)'));
$comments_popup_link = ob_get_contents();
ob_end_clean();
$post_title = '<a href="' . $permalink . '">' . $title . '</a>';
$post_date_time = $post_date . ' ' . $post_time ;
$post_modified_date_time = $post_modified_date . ' ' . $post_modified_time ;
$trackback_url = trackback_url(false);
$post_views = xpress_post_views_count('post_id=' . $post_id . '&format=' . __('Views :%d', 'xpress'). '&echo=0');
$post_views_num = (int) xpress_post_views_count("post_id={$post_id}&format=%d&echo=0");
$row_data = array(
'blog_title' => $blog_title ,
'blog_link' => $blog_link ,
'blog_title_link' => $blog_title_link ,
'post_id' => $post_id ,
'post_title' => $post_title ,
'post_date' => $post_date ,
'post_time' => $post_time ,
'post_date_time' => $post_date_time ,
'post_modified_date' => $post_modified_date ,
'post_modified_time' => $post_modified_time ,
'post_modified_date_time' => $post_modified_date_time ,
'post_author' => $author ,
'post_category' => $category ,
'post_tags' => $tags,
'post_views' => $post_views,
'post_views_num' => $post_views_num,
'comment_link' => $comments_popup_link ,
'trackback_url' => $trackback_url
);
$data_array[] = $row_data;
}
} // end of foreach
restore_current_blog();
$wp_rewrite->init();
}
usort($data_array, "post_views_cmp");
if (!empty($disp_count)){
$data_array = array_slice($data_array,0,$disp_count);
}
$item_no = 0;
foreach ($data_array as $data) {
$block['contents']['item'.$item_no] = $data;
$item_no++;
}
$block['data_count'] = $item_no;
} else {
$block['err_message'] = __('This blog is not set to the multi blog.', 'xpress');
}
return $block ;
}
示例15: thematic_postfooter
function thematic_postfooter()
{
global $id, $post;
// Create $posteditlink
$posteditlink .= '<span class="edit"><a href="' . get_bloginfo('wpurl') . '/wp-admin/post.php?action=edit&post=' . $id;
$posteditlink .= '" title="' . __('Edit post', 'thematic') . '">';
$posteditlink .= __('Edit', 'thematic') . '</a></span>';
$posteditlink = apply_filters('thematic_postfooter_posteditlink', $posteditlink);
// Display the post categories
$postcategory .= '<span class="cat-links">';
if (is_single()) {
$postcategory .= __('This entry was posted in ', 'thematic') . get_the_category_list(', ');
$postcategory .= '</span>';
} elseif (is_category() && ($cats_meow = thematic_cats_meow(', '))) {
/* Returns categories other than the one queried */
$postcategory .= __('Also posted in ', 'thematic') . $cats_meow;
$postcategory .= '</span> <span class="meta-sep meta-sep-tag-links">|</span>';
} else {
$postcategory .= __('Posted in ', 'thematic') . get_the_category_list(', ');
$postcategory .= '</span> <span class="meta-sep meta-sep-tag-links">|</span>';
}
$postcategory = apply_filters('thematic_postfooter_postcategory', $postcategory);
// Display the tags
if (is_single()) {
$tagtext = __(' and tagged', 'thematic');
$posttags = get_the_tag_list("<span class=\"tag-links\"> {$tagtext} ", ', ', '</span>');
} elseif (is_tag() && ($tag_ur_it = thematic_tag_ur_it(', '))) {
/* Returns tags other than the one queried */
$posttags = '<span class="tag-links">' . __(' Also tagged ', 'thematic') . $tag_ur_it . '</span> <span class="meta-sep meta-sep-comments-link">|</span>';
} else {
$tagtext = __('Tagged', 'thematic');
$posttags = get_the_tag_list("<span class=\"tag-links\"> {$tagtext} ", ', ', '</span> <span class="meta-sep meta-sep-comments-link">|</span>');
}
$posttags = apply_filters('thematic_postfooter_posttags', $posttags);
// Display comments link and edit link
if (comments_open()) {
$postcommentnumber = get_comments_number();
if ($postcommentnumber > '1') {
$postcomments = ' <span class="comments-link"><a href="' . get_permalink() . '#comments" title="' . __('Comment on ', 'thematic') . the_title_attribute('echo=0') . '">';
$postcomments .= get_comments_number() . __(' Comments', 'thematic') . '</a></span>';
} elseif ($postcommentnumber == '1') {
$postcomments = ' <span class="comments-link"><a href="' . get_permalink() . '#comments" title="' . __('Comment on ', 'thematic') . the_title_attribute('echo=0') . '">';
$postcomments .= get_comments_number() . __(' Comment', 'thematic') . '</a></span>';
} elseif ($postcommentnumber == '0') {
$postcomments = ' <span class="comments-link"><a href="' . get_permalink() . '#comments" title="' . __('Comment on ', 'thematic') . the_title_attribute('echo=0') . '">';
$postcomments .= __('Leave a comment', 'thematic') . '</a></span>';
}
} else {
$postcomments = ' <span class="comments-link comments-closed-link">' . __('Comments closed', 'thematic') . '</span>';
}
// Display edit link
if (current_user_can('edit_posts')) {
$postcomments .= ' <span class="meta-sep meta-sep-edit">|</span> ' . $posteditlink;
}
$postcomments = apply_filters('thematic_postfooter_postcomments', $postcomments);
// Display permalink, comments link, and RSS on single posts
$postconnect .= __('. Bookmark the ', 'thematic') . '<a href="' . get_permalink() . '" title="' . __('Permalink to ', 'thematic') . the_title_attribute('echo=0') . '">';
$postconnect .= __('permalink', 'thematic') . '</a>.';
if ('open' == $post->comment_status && 'open' == $post->ping_status) {
/* Comments are open */
$postconnect .= ' <a class="comment-link" href="#respond" title ="' . __('Post a comment', 'thematic') . '">' . __('Post a comment', 'thematic') . '</a>';
$postconnect .= __(' or leave a trackback: ', 'thematic');
$postconnect .= '<a class="trackback-link" href="' . trackback_url(FALSE) . '" title ="' . __('Trackback URL for your post', 'thematic') . '" rel="trackback">' . __('Trackback URL', 'thematic') . '</a>.';
} elseif (!('open' == $post->comment_status) && 'open' == $post->ping_status) {
/* Only trackbacks are open */
$postconnect .= __(' Comments are closed, but you can leave a trackback: ', 'thematic');
$postconnect .= '<a class="trackback-link" href="' . trackback_url(FALSE) . '" title ="' . __('Trackback URL for your post', 'thematic') . '" rel="trackback">' . __('Trackback URL', 'thematic') . '</a>.';
} elseif ('open' == $post->comment_status && !('open' == $post->ping_status)) {
/* Only comments open */
$postconnect .= __(' Trackbacks are closed, but you can ', 'thematic');
$postconnect .= '<a class="comment-link" href="#respond" title ="' . __('Post a comment', 'thematic') . '">' . __('post a comment', 'thematic') . '</a>.';
} elseif (!('open' == $post->comment_status) && !('open' == $post->ping_status)) {
/* Comments and trackbacks closed */
$postconnect .= __(' Both comments and trackbacks are currently closed.', 'thematic');
}
// Display edit link on single posts
if (current_user_can('edit_posts')) {
$postconnect .= ' ' . $posteditlink;
}
$postconnect = apply_filters('thematic_postfooter_postconnect', $postconnect);
// Add it all up
if ($post->post_type == 'page' && current_user_can('edit_posts')) {
/* For logged-in "page" search results */
$postfooter = '<div class="entry-utility">' . '<span class="edit">' . $posteditlink . '</span>';
$postfooter .= "</div><!-- .entry-utility -->\n";
} elseif ($post->post_type == 'page') {
/* For logged-out "page" search results */
$postfooter = '';
} else {
if (is_single()) {
$postfooter = '<div class="entry-utility">' . $postcategory . $posttags . $postconnect;
} else {
$postfooter = '<div class="entry-utility">' . $postcategory . $posttags . $postcomments;
}
$postfooter .= "</div><!-- .entry-utility -->\n";
}
// Put it on the screen
echo apply_filters('thematic_postfooter', $postfooter);
// Filter to override default post footer
}