本文整理汇总了PHP中get_trackback_url函数的典型用法代码示例。如果您正苦于以下问题:PHP get_trackback_url函数的具体用法?PHP get_trackback_url怎么用?PHP get_trackback_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_trackback_url函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: rawdata_trackback_link
function rawdata_trackback_link()
{
if (is_single()) {
}
?>
<link rel="trackback" href="<?php
echo get_trackback_url();
?>
" /><?php
}
开发者ID:visual000,项目名称:misc,代码行数:10,代码来源:functions.php
示例2: date_i18n
}
// the following is the extended metadata for a single page
if (is_single()) {
$pdf_output .= '<p class="postmetadata alt">
<span>
Dieser Beitrag wurde publiziert am ' . date_i18n('l', mpdf_mysql2unix($post->post_date)) . ' den ' . date_i18n('j. F Y', mpdf_mysql2unix($post->post_date)) . ' um ' . date_i18n('H:i', mpdf_mysql2unix($post->post_date)) . '
in der Kategorie: ' . $cat_links . '.
Kommentare können über den <a href="' . get_bloginfo('comments_rss2_url') . '">Kommentar (RSS)</a> Feed verfolgt werden.';
if ('open' == $post->comment_status && 'open' == $post->ping_status) {
// Both Comments and Pings are open
$pdf_output .= '
Du kannst ein Kommentar abgeben oder erstelle einen <a href="' . get_trackback_url() . '" rel="trackback">Trackback</a> dieses Beitrages auf deine Webseite.';
} elseif (!('open' == $post->comment_status) && 'open' == $post->ping_status) {
// Only Pings are Open
$pdf_output .= '
Kommentare sind geschlossen aber Du kannst einen <a href="' . get_trackback_url() . '" rel="trackback">Trackback</a> zu diesem Beitrag auf deiner Webseite erstellen.';
} elseif ('open' == $post->comment_status && !('open' == $post->ping_status)) {
// Comments are open, Pings are not
$pdf_output .= '
Du kannst zum Ende springen und ein Kommentar abgeben. Pingen ist momentan nicht erlaubt.';
} elseif (!('open' == $post->comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open
$pdf_output .= '
Kommentare und Pings sind momentan geschlossen.';
}
$pdf_output .= '</span>
</p>';
}
$pdf_output .= '</div> <!-- post -->';
}
} else {
开发者ID:huntercoxIG,项目名称:edc,代码行数:31,代码来源:default_de.php
示例3: previous_comments_link
<nav class="comment-pagination">
<p class="previous-comment"><?php
previous_comments_link();
?>
</p>
<p class="next-comment"><?php
next_comments_link();
?>
</p>
</nav>
<?php
}
?>
<p class="comments-closed pings-open">
<?php
printf(__('Comments are closed, but <a href="%s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', 'founder'), esc_url(get_trackback_url()));
?>
</p>
</section>
<?php
} elseif (!comments_open() && have_comments()) {
?>
<section id="comments" class="comments">
<div class="comments-number">
<h3>
<?php
comments_number(__('Comments', 'founder'), __('One Comment', 'founder'), __('% Comments', 'founder'));
?>
</h3>
</div>
<ol class="comment-list">
开发者ID:jgypsygrrl,项目名称:wordpress-REST-API-test,代码行数:31,代码来源:comments.php
示例4: printf
<?php
if (pings_open() && !comments_open()) {
?>
<p class="comments-closed pings-open">
<?php
// Translators: The two %s are placeholders for HTML. The order can't be changed.
printf(__('Comments are closed, but %strackbacks%s and pingbacks are open.', 'stargazer'), '<a href="' . esc_url(get_trackback_url()) . '">', '</a>');
?>
</p><!-- .comments-closed .pings-open -->
<?php
} elseif (!comments_open()) {
?>
<p class="comments-closed">
<?php
_e('Comments are closed.', 'stargazer');
?>
</p><!-- .comments-closed -->
<?php
}
开发者ID:gruz0,项目名称:stargazer,代码行数:24,代码来源:comments-error.php
示例5: edit_post_link
<?php
edit_post_link(__('Edit this entry.', 'simplr'), '<p>', '</p>');
?>
</div>
<div class="entry-footer">
<?php
if ('open' == $post->comment_status && 'open' == $post->ping_status) {
?>
<?php
printf(__('<a href="#respond" title="Post a comment">Post a comment</a> <span class="meta-sep">|</span> <a href="%s" rel="trackback" title="Trackback URL for your post">Trackback URI</a>', 'simplr'), get_trackback_url());
} elseif (!('open' == $post->comment_status) && 'open' == $post->ping_status) {
?>
<?php
printf(__('Comments closed <span class="meta-sep">|</span> <a href="%s" rel="trackback" title="Trackback URL for your post">Trackback URI</a>', 'simplr'), get_trackback_url());
} elseif ('open' == $post->comment_status && !('open' == $post->ping_status)) {
?>
<?php
printf(__('<a href="#respond" title="Post a comment">Post a comment</a> <span class="meta-sep">|</span> Trackbacks closed', 'simplr'));
} elseif (!('open' == $post->comment_status) && !('open' == $post->ping_status)) {
?>
<?php
_e('Comments closed <span class="meta-sep">|</span> Trackbacks closed', 'simplr');
}
?>
</div>
</div><!-- .post -->
</div><!-- #content .hfeed -->
</div><!-- #container -->
开发者ID:Anks,项目名称:simplr,代码行数:30,代码来源:attachment.php
示例6: trackback_url
function trackback_url($display = true)
{
if ($display) {
echo get_trackback_url();
} else {
return get_trackback_url();
}
}
开发者ID:robertlange81,项目名称:Website,代码行数:8,代码来源:comment-functions.php
示例7: esc_url
?>
</h2>
<p><a href="<?php
echo esc_url(get_post_comments_feed_link($post->ID));
?>
"><?php
_e('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.');
?>
</a></p>
<?php
if (pings_open()) {
?>
<p><?php
printf(__('The <abbr title="Universal Resource Locator">URL</abbr> to TrackBack this entry is: <em>%s</em>'), get_trackback_url());
?>
</p>
<?php
}
?>
<?php
// this line is WordPress' motor, do not delete it.
$commenter = wp_get_current_commenter();
$comments = get_approved_comments($id);
$post = get_post($id);
if (post_password_required($post)) {
// and it doesn't match the cookie
echo get_the_password_form();
} else {
开发者ID:peter-watters,项目名称:yo_WordPressTheme,代码行数:31,代码来源:comments-popup.php
示例8: thematic_postfooter_postconnect
/**
* Create the comments link for the post footer on single posts
*
* Override: childtheme_override_postfooter_postconnect <br>
* Filter: thematic_postfooter_postconnect
*/
function thematic_postfooter_postconnect()
{
if (comments_open() && pings_open()) {
/* Comments are open */
$postconnect = sprintf(_x('%1$sPost a comment%2$s or leave a trackback: %3$s', '1s and 2s are the a href link wrappers, do not reverse them. 3s is trackback url.', 'thematic'), sprintf('<a class="comment-link" title="%s" href="#respond">', esc_attr__('Post a comment', 'thematic')), '</a>', sprintf('<a class="trackback-link" href="%s" title ="%s" rel="trackback">%s</a>.', get_trackback_url(), esc_attr__('Trackback URL for your post', 'thematic'), __('Trackback URL', 'thematic')));
} elseif (!comments_open() && pings_open()) {
/* Only trackbacks are open */
$postconnect = sprintf(_x('Comments are closed, but you can leave a trackback: %s', '%s is trackback url, wrapped in link tags', 'thematic'), sprintf('<a class="trackback-link" href="%s" title="%s" rel="trackback">%s</a>.', get_trackback_url(), esc_attr__('Trackback URL for your post', 'thematic'), __('Trackback URL', 'thematic')));
} elseif (comments_open() && !pings_open()) {
/* Only comments open */
$postconnect = sprintf(__('Trackbacks are closed, but you can %1$spost a comment%2$s.', '1s and 2s are the a href link wrappers, do not reverse them', 'thematic'), sprintf('<a class="comment-link" title="%s" href="#respond">', esc_attr__('Post a comment', 'thematic')), '</a>');
} elseif (!comments_open() && !pings_open()) {
/* Comments and trackbacks closed */
$postconnect = __('Both comments and trackbacks are currently closed.', 'thematic');
}
return apply_filters('thematic_postfooter_postconnect', $postconnect);
}
开发者ID:rowatt,项目名称:Thematic,代码行数:23,代码来源:content-extensions.php
示例9: cf_json_encode
'excerpt': <?php
echo cf_json_encode(str_replace(array("\r\n", "\n", "\r"), '<br />', get_comment_excerpt()));
?>
,
'type': <?php
echo cf_json_encode($comment_type);
?>
}
<?php
$count++;
}
}
?>
],
'trackback_url': <?php
echo cf_json_encode(get_trackback_url());
?>
};
/* ]]> */
</script>
<script type="text/javascript">
/* <![CDATA[ */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript';
dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.' + disqus_domain + '/embed.js?pname=wordpress&pver=<?php
echo DISQUS_VERSION;
?>
';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
开发者ID:jonathansewell,项目名称:Learning-Journal,代码行数:31,代码来源:comments.php
示例10: the_content
</div><!-- .entry-attachment -->
<?php
the_content();
wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'quotient-mobile'), 'after' => '</div>'));
?>
</div><!-- .entry-content -->
<footer class="entry-meta">
<?php
if (comments_open() && pings_open()) {
// Comments and trackbacks open
printf(__('<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'quotient-mobile'), esc_url(get_trackback_url()));
} elseif (!comments_open() && pings_open()) {
// Only trackbacks open
printf(__('Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'quotient-mobile'), esc_url(get_trackback_url()));
} elseif (comments_open() && !pings_open()) {
// Only comments open
_e('Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'quotient-mobile');
} elseif (!comments_open() && !pings_open()) {
// Comments and trackbacks closed
_e('Both comments and trackbacks are currently closed.', 'quotient-mobile');
}
edit_post_link(__('Edit', 'quotient-mobile'), ' <span class="edit-link">', '</span>');
?>
</footer><!-- .entry-meta -->
</article><!-- #post-## -->
<?php
// If comments are open or we have at least one comment, load up the comment template
if (comments_open() || '0' != get_comments_number()) {
开发者ID:eblueprint,项目名称:weneedyoudev,代码行数:31,代码来源:image.php
示例11: fnbx_do_meta_shortcode
//.........这里部分代码省略.........
get cat function that is asking for an ID but is getting an object.
On some PHP CGI systems it doesn't seem to pass through properly.
I want to use:
$cats = explode( '|', get_the_term_list( $post->ID, 'category', '', '|', '' ) );
*/
foreach ($cats as $i => $str) {
if (strstr($str, ">{$current_cat}<")) {
unset($cats[$i]);
break;
}
}
if (empty($cats)) {
return;
}
$meta_content = implode(', ', $cats);
break;
case 'tag':
$meta_content = $content;
break;
case 'tag_text':
if (is_tag()) {
$attr = shortcode_parse_atts($input[2]);
$meta_content = isset($attr['is_tag']) ? $attr['is_tag'] : '';
break;
}
$meta_content = $content;
break;
case 'tag_links':
$current_tag = single_tag_title('', false);
$tags = explode('|', get_the_term_list($post->ID, 'post_tag', '', '|', ''));
foreach ($tags as $i => $str) {
if (strstr($str, ">{$current_tag}<")) {
unset($tags[$i]);
break;
}
}
if (empty($tags)) {
return;
}
$meta_content = implode(', ', $tags);
break;
case 'permalink_link':
$attr = shortcode_parse_atts($input[2]);
$title_prefix = isset($attr['title']) ? $attr['title'] : '';
$meta_content = fnbx_html_tag(array('tag' => 'a', 'class' => 'permalink', 'href' => get_permalink($post->ID), 'title' => $title_prefix . get_the_title($post->ID), 'tag_content' => $content, 'return' => true));
break;
case 'parent_link':
$attr = shortcode_parse_atts($input[2]);
$title_prefix = isset($attr['title']) ? $attr['title'] : '';
$meta_content = fnbx_html_tag(array('tag' => 'a', 'class' => 'permalink-parent', 'href' => get_permalink($post->post_parent), 'title' => $title_prefix . get_the_title($post->post_parent), 'tag_content' => $content, 'return' => true));
break;
case 'comments_rss':
$meta_content = $content;
break;
case 'comments_rss_link':
$title_prefix = isset($attr['title']) ? $attr['title'] : '';
$meta_content = fnbx_html_tag(array('tag' => 'a', 'class' => 'link-rss-comments', 'href' => get_post_comments_feed_link(), 'rel' => 'alternate', 'type' => 'application/rss+xml', 'title' => $title_prefix . the_title_attribute('echo=0'), 'tag_content' => $content, 'return' => true));
break;
case 'feedback':
$meta_content = $content;
break;
case 'feedback_separator':
$meta_content = $content;
break;
case 'comments':
$meta_content = $content;
break;
case 'comments_link':
$attr = shortcode_parse_atts($input[2]);
$title_prefix = isset($attr['title']) ? $attr['title'] : '';
$meta_content = fnbx_html_tag(array('tag' => 'a', 'class' => 'link-comments', 'href' => is_single() ? '#respond' : get_permalink() . '#comments', 'title' => $title_prefix . the_title_attribute('echo=0'), 'tag_content' => $content, 'return' => true));
break;
case 'pings':
$meta_content = $content;
break;
case 'pings_link':
$attr = shortcode_parse_atts($input[2]);
$title_prefix = isset($attr['title']) ? $attr['title'] : '';
$meta_content = fnbx_html_tag(array('tag' => 'a', 'class' => 'link-trackback', 'href' => get_trackback_url(), 'title' => $title_prefix . the_title_attribute('echo=0'), 'tag_content' => $content, 'return' => true));
break;
case 'edit':
$meta_content = $content;
break;
case 'edit_link':
$attr = shortcode_parse_atts($input[2]);
$title_prefix = isset($attr['title']) ? $attr['title'] : '';
$html_tag = isset($attr['tag']) ? $attr['tag'] : 'div';
$edit_link = get_edit_post_link();
if (!strstr($edit_link, 'action=edit')) {
break;
}
$edit_link_tag = fnbx_html_tag(array('tag' => 'a', 'class' => 'link-edit', 'href' => $edit_link, 'title' => $title_prefix . the_title_attribute('echo=0'), 'tag_content' => $content, 'return' => true));
$meta_content = fnbx_html_tag(array('tag' => $html_tag, 'class' => 'link-wrapper-edit', 'tag_content' => $edit_link_tag, 'return' => true));
break;
}
if (isset($meta_content)) {
return $meta_content;
}
}
开发者ID:nicholls-state-university,项目名称:nicholls-2015-core,代码行数:101,代码来源:jacket-core.php
示例12: thematic_postfooter_postconnect
/**
* Create the comments link for the post footer on single posts
*
* Override: childtheme_override_postfooter_postconnect <br>
* Filter: thematic_postfooter_postconnect
*/
function thematic_postfooter_postconnect()
{
if (comments_open() && pings_open()) {
/* 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="' . get_trackback_url() . '" title ="' . __('Trackback URL for your post', 'thematic') . '" rel="trackback">' . __('Trackback URL', 'thematic') . '</a>.';
} elseif (!comments_open() && pings_open()) {
/* Only trackbacks are open */
$postconnect = __(' Comments are closed, but you can leave a trackback: ', 'thematic');
$postconnect .= '<a class="trackback-link" href="' . get_trackback_url() . '" title ="' . __('Trackback URL for your post', 'thematic') . '" rel="trackback">' . __('Trackback URL', 'thematic') . '</a>.';
} elseif (comments_open() && !pings_open()) {
/* 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 (!comments_open() && !pings_open()) {
/* Comments and trackbacks closed */
$postconnect = __(' Both comments and trackbacks are currently closed.', 'thematic');
}
return apply_filters('thematic_postfooter_postconnect', $postconnect);
}
开发者ID:kuberjsr,项目名称:thematic,代码行数:27,代码来源:content-extensions.php
示例13: printf
/**
* A template part to display when comments are closed.
*
* @package Alpha\TemplateParts
* @subpackage Alpha
* @author Robert Neu
* @copyright Copyright (c) 2015, WP Site Care, LLC
* @since 1.0.0
*/
if (pings_open() && !comments_open()) {
?>
<p class="comments-closed pings-open">
<?php
// Translators: The two %s are placeholders for HTML. The order can't be changed.
printf(esc_html__('Comments are closed, but %strackbacks%s and pingbacks are open.', 'alpha'), '<a href="' . esc_url(get_trackback_url()) . '">', '</a>');
?>
</p><!-- .comments-closed .pings-open -->
<?php
} elseif (!comments_open()) {
?>
<p class="comments-closed">
<?php
esc_html_e('Comments are closed.', 'alpha');
?>
</p><!-- .comments-closed -->
<?php
}
开发者ID:macrodreams,项目名称:alpha,代码行数:31,代码来源:error.php
示例14: link_pages
<?php
link_pages('<p><strong>' . __('Pages:', 'chaoticsoul') . '</strong> ', '</p>', 'number');
?>
<p class="postmetadata alt">
<small>
<?php
printf(__('This entry was posted on %s at %s. ', 'chaoticsoul'), get_the_time(get_option('date_format')), get_the_time(get_option('time_format')));
printf(__('You can follow any responses to this entry through the %s feed. ', 'chaoticsoul'), '<a href="' . get_post_comments_feed_link() . '">RSS 2.0</a>');
if ('open' == $post->comment_status && 'open' == $post->ping_status) {
// Both Comments and Pings are open
printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site. ', 'chaoticsoul'), get_trackback_url(true));
} elseif (!('open' == $post->comment_status) && 'open' == $post->ping_status) {
// Only Pings are Open
printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site. ', 'chaoticsoul'), get_trackback_url(true));
} 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. ', 'chaoticsoul');
} elseif (!('open' == $post->comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open
_e('Both comments and pings are currently closed. ', 'chaoticsoul');
}
edit_post_link(__('Edit this entry.', 'chaoticsoul'), '', '');
?>
</small>
</p>
</div>
</div>
开发者ID:rmccue,项目名称:wordpress-unit-tests,代码行数:30,代码来源:attachment.php
示例15: printf
<?php
if (pings_open() && !comments_open()) {
?>
<p class="comments-closed pings-open">
<?php
/* Translators: The two %s are placeholders for HTML. The order can't be changed. */
printf(__('Comments are closed, but %strackbacks%s and pingbacks are open.', 'socially-awkward'), '<a href="' . esc_url(get_trackback_url()) . '">', '</a>');
?>
</p><!-- .comments-closed .pings-open -->
<?php
} elseif (!comments_open()) {
?>
<p class="comments-closed">
<?php
_e('Comments are closed.', 'socially-awkward');
?>
</p><!-- .comments-closed -->
<?php
}
开发者ID:AngryPerm,项目名称:socially-awkward,代码行数:24,代码来源:comments-error.php
示例16: cfct_banner
<?php
// This file is part of the Carrington Theme for WordPress
// http://carringtontheme.com
//
// Copyright (c) 2008 Crowd Favorite, Ltd. All rights reserved.
// http://crowdfavorite.com
//
// Released under the GPL license
// http://www.opensource.org/licenses/gpl-license.php
//
// **********************************************************************
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// **********************************************************************
if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) {
die;
}
if (CFCT_DEBUG) {
cfct_banner(__FILE__);
}
global $post, $user_ID, $user_identity, $comment_author, $comment_author_email, $comment_author_url, $tpl;
$req = get_option('require_name_email');
do_action('comment_form', $post->ID);
$tpl[] = array("wpurl" => get_bloginfo('wpurl'));
$tpl["comment_form"] = array("tpl_file" => "comment.html", "open" => $post->comment_status ? 1 : 0, "logged_in" => $user_ID ? 1 : 0, "must_login" => get_option('comment_registration') && !$user_ID ? 1 : 0, "logged_in_message" => sprintf(__('You must be <a href="%s">logged in</a> to post a comment.', 'carrington'), get_bloginfo('wpurl') . '/wp-login.php?redirect_to=' . get_permalink()), "comment_label" => __('Post a comment', 'carrington'), "allowed_html_attribute" => sprintf(__('You can use: %s', 'carrington'), allowed_tags()), "allowed_html_message" => __('Some HTML is OK', 'carrington'), "logged_in_as" => sprintf(__('Logged in as <a href="%s">%s</a>.', 'carrington'), get_bloginfo('wpurl') . '/wp-admin/profile.php', $user_identity), "log_out_attribute" => __('Log out of this account', 'carrington'), "log_out_message" => __('Logout →', 'carrington'), "author_label" => __('Name', 'carrington'), "author_value" => $comment_author, "required" => $req ? 1 : 0, "required_message" => __('(required)', 'carrington'), "email_label" => __('Email', 'carrington'), "email_value" => $comment_author_email, "required_email_message" => __('(required, but never shared)', 'carrington'), "email_message" => __('(never shared)', 'carrington'), "url_attribute" => __('Your website address', 'carrington'), "url_label" => __('Web', 'carrington'), "url_value" => $comment_author_url, "submit_text" => __('Post comment', 'carrington'), "trackback_message" => sprintf(__('or, reply to this post via <a rel="trackback" href="%s">trackback</a>.', 'carrington'), get_trackback_url()), "post_id" => $post->ID);
开发者ID:alicam,项目名称:vanilla-theme,代码行数:27,代码来源:comment.php
示例17: wp_link_pages
wp_link_pages(array('before' => '<div class="page-links">' . 'Páginas:', 'after' => '</div>'));
?>
</div>
<footer class="entry-meta">
<?php
if (comments_open() && pings_open()) {
?>
<?php
printf('<a class="comment-link" href="#respond" title="Enviar un comentario">Enviar un comentario</a> o dejar un trackback: <a class="trackback-link" href="%s" title="Trackback para tu entrada" rel="trackback">Trackback</a>.', get_trackback_url());
?>
<?php
} elseif (!comments_open() && pings_open()) {
?>
<?php
printf('Los comentarios están cerrados, pero puedes dejar un trackback: <a class="trackback-link" href="%s" title="Trackback para tu entrada" rel="trackback">Trackback URL</a>.', get_trackback_url());
?>
<?php
} elseif (comments_open() && !pings_open()) {
?>
<?php
echo 'Los trackbacks están cerrados, pero puedes <a class="comment-link" href="#respond" title="Enviar un comentario">enviar un comentario</a>.';
?>
<?php
} elseif (!comments_open() && !pings_open()) {
?>
<?php
echo 'Los comentarios y trackbacks están cerrados';
?>
<?php
}
开发者ID:degui,项目名称:eticagnuwptheme,代码行数:31,代码来源:image.php
示例18: printf
</div><!-- .comment-navigation -->
<?php
}
?>
<?php
}
?>
<?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_textdomain()), get_trackback_url());
?>
</p><!-- .comments-closed .pings-open -->
<?php
} elseif (!comments_open()) {
?>
<p class="comments-closed">
<?php
_e('Comments are closed.', hybrid_get_textdomain());
?>
</p><!-- .comments-closed -->
<?php
}
开发者ID:nixter,项目名称:d.school,代码行数:31,代码来源:comments.php
示例19: printf
</div>
<div class="entryBookmark">
<span class="icon iconBookmark"></span>
<?php
printf(__('Bookmark the <a href="%1$s" title="%2$s" rel="bookmark">permalink</a>', 'moov'), get_permalink(), the_title_attribute('echo=0'));
?>
<?php
if ('open' == $post->comment_status && 'open' == $post->ping_status) {
// Comments and trackbacks open
?>
<?php
printf(__(' or leave a <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">trackback</a>.', 'moov'), get_trackback_url());
?>
<?php
} elseif (!('open' == $post->ping_status)) {
// trackbacks closed
?>
<?php
_e(', unfortunately trackbacks are closed.', 'moov');
?>
<?php
}
?>
</div>
</div>
开发者ID:google-code-backups,项目名称:pumpmyvote,代码行数:31,代码来源:single.php
示例20: printf
<p class="postmetadata alt">
<small>
<?php
printf(__('This entry was submited on %1$s at %2$s and is filed under %3$s.', 'WATS'), get_the_time(__('l, F jS, Y', 'WATS')), get_the_time(), get_the_category_list(', '));
?>
<?php
printf(__("You can follow any responses to this entry through the <a href='%s'>RSS 2.0</a> feed.", "WATS"), get_post_comments_feed_link());
?>
<?php
if (comments_open() && pings_open()) {
// Both Comments and Pings are open
?>
<?php
printf(__('You can <a href="#respond">leave an update</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.', 'WATS'), get_trackback_url());
?>
<?php
} elseif (!comments_open() && pings_open()) {
// Only Pings are Open
?>
<?php
printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.', 'WATS'), trackback_url(false));
?>
<?php
} elseif (comments_open() && !pings_open()) {
// Comments are open, Pings are not
?>
<?php
开发者ID:adisonc,项目名称:MaineLearning,代码行数:30,代码来源:single-ticket.php
注:本文中的get_trackback_url函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论