本文整理汇总了PHP中get_trackback_url函数的典型用法代码示例。如果您正苦于以下问题:PHP get_trackback_url函数的具体用法?PHP get_trackback_url怎么用?PHP get_trackback_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_trackback_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rawdata_trackback_link
function rawdata_trackback_link()
{
if (is_single()) {
}
?>
<link rel="trackback" href="<?php
echo get_trackback_url();
?>
" /><?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 {
示例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">
示例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
}
示例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 -->
示例6: trackback_url
function trackback_url($display = true)
{
if ($display) {
echo get_trackback_url();
} else {
return get_trackback_url();
}
}
示例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 {
示例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);
}
示例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);
示例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()) {
示例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;
}
}
示例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);
}
示例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
}
示例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>
示例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
}