示例#1
0
function rawdata_trackback_link()
{
    if (is_single()) {
    }
    ?>
		<link rel="trackback" href="<?php 
    echo get_trackback_url();
    ?>
" /><?php 
}
示例#2
0
        }
        // 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 {
			<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
0
<?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
0
<?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 -->
function trackback_url($display = true)
{
    if ($display) {
        echo get_trackback_url();
    } else {
        return get_trackback_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
0
 /**
  * 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);
 }
                '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
0
					</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()) {
function fnbx_do_meta_shortcode($input = '')
{
    global $wp_query, $posts, $post, $authordata;
    if (!isset($post)) {
        return;
    }
    switch ($input[1]) {
        case 'title':
            $tmp_title = get_the_title($post->ID);
            if (empty($tmp_title)) {
                $tmp_title = '<span class="untitled">[untitled]</span>';
            }
            return $tmp_title;
        case 'title_parent':
            return get_the_title($post->post_parent);
        case 'date':
            return mysql2date(get_option('date_format'), $post->post_date);
        case 'time':
            return get_the_time();
        case 'author':
            if (is_author()) {
                $attr = shortcode_parse_atts($input[2]);
                if (!is_array($attr)) {
                    return;
                }
                if ($attr['pagetitle'] != 'true') {
                    return;
                }
            }
            break;
        case 'author_name':
            return get_the_author();
        case 'category':
            $cats = wp_get_object_terms($post->ID, 'category');
            $current_cat = intval(get_query_var('cat'));
            foreach ($cats as $i => $cat_obj) {
                if ($cat_obj->term_id == $current_cat) {
                    unset($cats[$i]);
                    break;
                }
            }
            if (empty($cats)) {
                return;
            }
            break;
        case 'tag':
            $tags = wp_get_object_terms($post->ID, 'post_tag');
            $current_tag = intval(get_query_var('tag_id'));
            foreach ($tags as $i => $tag_obj) {
                if ($tag_obj->term_id == $current_tag) {
                    unset($tags[$i]);
                    break;
                }
            }
            if (empty($tags)) {
                return;
            }
            break;
        case 'comments_rss':
            $attr = shortcode_parse_atts($input[2]);
            if (!('open' == $post->comment_status)) {
                return $attr['closed'];
            }
            break;
        case 'feedback':
            $attr = shortcode_parse_atts($input[2]);
            if (!('open' == $post->comment_status) && !('open' == $post->ping_status)) {
                return $attr['closed'];
            }
            break;
        case 'feedback_separator':
            $attr = shortcode_parse_atts($input[2]);
            if (!('open' == $post->comment_status) && !('open' == $post->ping_status)) {
                return $attr['both_closed'];
            }
            if (!('open' == $post->comment_status)) {
                return $attr['comments_closed'];
            }
            if (!('open' == $post->ping_status)) {
                return $attr['pings_closed'];
            }
            break;
        case 'comments':
            $attr = shortcode_parse_atts($input[2]);
            if (!('open' == $post->comment_status)) {
                return $attr['closed'];
            }
            break;
        case 'comments_number':
            $attr = shortcode_parse_atts($input[2]);
            if (!('open' == $post->comment_status)) {
                return $attr['closed'];
            }
            if ($post->comment_count == 0) {
                return $attr['no_comments'];
            }
            return $post->comment_count;
        case 'comments_link':
            if (!('open' == $post->comment_status)) {
                return;
            }
            break;
        case 'pings':
            $attr = shortcode_parse_atts($input[2]);
            if (!('open' == $post->ping_status)) {
                return $attr['closed'];
            }
            break;
        case 'pings_link':
            if (!('open' == $post->ping_status)) {
                return;
            }
            break;
        case 'edit':
            $edit_link = get_edit_post_link();
            if (!strstr($edit_link, 'action=edit')) {
                return;
            }
            break;
    }
    if (isset($input[4])) {
        $content = fnbx_parse_meta_shortcode($input[4]);
    }
    switch ($input[1]) {
        case 'meta-block':
            $attr = shortcode_parse_atts($input[2]);
            $html_tag = isset($attr['tag']) ? $attr['tag'] : 'span';
            $html_class = isset($attr['class']) ? $attr['class'] : 'meta-block';
            $meta_content = fnbx_html_tag(array('tag' => $html_tag, 'class' => $html_class, 'tag_content' => $content, 'return' => true));
            break;
        case 'separator':
            $meta_content = fnbx_html_tag(array('tag' => 'span', 'class' => 'meta-separator', 'tag_content' => $content, 'return' => true));
            break;
        case 'author':
            $meta_content = $content;
            break;
        case 'date-abbr':
            $meta_content = fnbx_html_tag(array('tag' => 'abbr', 'class' => 'published', 'title' => get_the_time('Y-m-d') . 'T' . get_the_time('H:i:sO'), 'tag_content' => $content, 'return' => true));
            break;
        case 'author_link':
            if (!isset($authordata)) {
                break;
            }
            $attr = shortcode_parse_atts($input[2]);
            $title_prefix = isset($attr['title']) ? $attr['title'] : '';
            $author_link = fnbx_html_tag(array('tag' => 'a', 'class' => 'url fn n', 'href' => get_author_posts_url($authordata->ID, $authordata->user_nicename), 'title' => $title_prefix . $authordata->display_name, 'tag_content' => $content, 'return' => true));
            $meta_content = fnbx_html_tag(array('tag' => 'span', 'class' => 'author vcard author-' . $authordata->user_nicename, 'tag_content' => $author_link, 'return' => true));
            break;
        case 'category':
            $meta_content = $content;
            break;
        case 'category_text':
            if (is_category()) {
                $attr = shortcode_parse_atts($input[2]);
                $meta_content = isset($attr['is_category']) ? $attr['is_category'] : '';
                break;
            }
            $meta_content = $content;
            break;
        case 'category_links':
            $current_cat = single_cat_title('', false);
            $cats = explode('|', get_the_category_list('|', '', $post->ID));
            /*
            ISSUE: Something wrong here... you can send the ID to get_the_term_list, it passes to a
            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
0
 /**
  * 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
0
/**
 * 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
0
				<?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>
<?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 
}
示例#16
0
<?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 &rarr;', '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);
示例#17
0
    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 
    }
示例#18
0
					</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 
}
示例#19
0
						</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>
示例#20
0
 
				<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 
            ?>
" for="url"><?php 
            _e('Web', 'carrington-jam');
            ?>
</label>
        </p>
    	<?php 
        }
        //end if-else
        ?>
        <p class="submit-link">
            <input name="submit" type="submit" id="submit" value="<?php 
        _e('Post comment', 'carrington-jam');
        ?>
" tabindex="5" />
            <?php 
        printf(__('or, reply to this post via <a rel="trackback" href="%s">trackback</a>.', 'carrington-jam'), get_trackback_url());
        ?>
        </p>
		<?php 
        comment_id_fields();
        do_action('comment_form', $post->ID);
        ?>
    </form>
</section>

<?php 
    }
    // If registration required and not logged in
}
// If you delete this the sky will fall on your head
示例#22
0
        <li class="with_icon">
          <img alt="rss" src="http://s1.wordpress.com/wp-content/themes/pub/freshy/images/icons/feed-icon-16x16.gif" class="icon">&nbsp;
          <a href="<?php 
comments_rss();
?>
">Comments RSS</a>
        </li>
        <?php 
if ('open' == $post->ping_status) {
    // Comments or trackbacks open
    ?>
  
        <li class="with_icon">
          <img alt="trackback" src="http://s1.wordpress.com/wp-content/themes/pub/freshy/images/icons/trackback-icon-16x16.gif" class="icon">&nbsp;
          <a title="make a trackback" rel="trackback" href="<?php 
    get_trackback_url();
    ?>
">Trackback</a>
        </li>
        <?php 
}
?>
        <li class="with_icon">
          <img alt="edit" src="http://s1.wordpress.com/wp-content/themes/pub/freshy/images/icons/edit-icon-16x16.gif" class="icon">&nbsp;
          <a title="make a trackback" rel="trackback" href="<?php 
get_permalink();
?>
">Bookmark</a>
        </li>
        <?php 
if (edit_post_link() != NULL) {
示例#23
0
?>

<?php 
link_pages('<div class="page-link">' . __('Pages: ', 'plaintxtblog'), "</div>\n", 'number');
?>
				</div>
				<div class="entry-meta">
<?php 
if ('open' == $post->comment_status && 'open' == $post->ping_status) {
    ?>
					<?php 
    printf(__('<span class="entry-comments"><a href="#respond" title="Post a comment">Post a comment</a></span> <span class="meta-sep">&mdash;</span> <span class="entry-trackbacks"><a href="%s" rel="trackback" title="Trackback URI for your post">Trackback URI</a></span>', 'plaintxtblog'), get_trackback_url());
} elseif (!('open' == $post->comment_status) && 'open' == $post->ping_status) {
    ?>
					<?php 
    printf(__('<span class="entry-comments">Comments closed</span> <span class="meta-sep">&mdash;</span> <span class="entry-trackbacks"><a href="%s" rel="trackback" title="Trackback URL for your post">Trackback URI</a></span>', 'plaintxtblog'), get_trackback_url());
} elseif ('open' == $post->comment_status && !('open' == $post->ping_status)) {
    ?>
					<?php 
    printf(__('<span class="entry-comments"><a href="#respond" title="Post a comment">Post a comment</a></span> <span class="meta-sep">&mdash;</span> <span class="entry-trackbacks">Trackbacks closed</span>', 'plaintxtblog'));
} elseif (!('open' == $post->comment_status) && !('open' == $post->ping_status)) {
    ?>
					<?php 
    _e('<span class="entry-comments">Comments closed</span> <span class="meta-sep">&mdash;</span> <span class="entry-trackbacks">Trackbacks closed</span>', 'plaintxtblog');
}
?>

					<span class="entry-commentslink"><?php 
printf(__('<a href="%1$s" title="%2$s comments RSS feed" rel="alternate" type="application/rss+xml">RSS 2.0 feed</a> for these comments', 'plaintxtblog'), comments_rss(), wp_specialchars(get_the_title(), 'double'));
?>
</span>
示例#24
0
?>

				</div>
				<div class="entry-meta">
					<?php 
printf(__('This entry was written by %1$s and posted on <abbr class="published" title="%2$sT%3$s">%4$s at %5$s</abbr> and filed under %6$s%10$s. Bookmark the <a href="%7$s" title="Permalink to %8$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%9$s" title="Comments RSS to %8$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'sandbox'), '<a class="url fn" href="' . get_author_link(false, $authordata->ID, $authordata->user_nicename) . '" title="View all posts by ' . $authordata->display_name . '">' . get_the_author() . '</a>', get_the_time('Y-m-d'), get_the_time('H:i:sO'), the_date('', '', '', false), get_the_time(), get_the_category_list(', '), get_permalink(), wp_specialchars(get_the_title(), 'double'), comments_rss(), get_the_tag_list(__(' with tags '), ', '));
if (comments_open() && pings_open()) {
    // COMMENTS & PINGS OPEN
    ?>
					<?php 
    printf(__('<a href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a href="%s" rel="trackback" title="Trackback URL for your post">Trackback URL</a>.', 'sandbox'), get_trackback_url());
} elseif (!comments_open() && pings_open()) {
    // PINGS ONLY OPEN
    ?>
					<?php 
    printf(__('Comments are closed, but you can leave a trackback: <a href="%s" rel="trackback" title="Trackback URL for your post">Trackback URL</a>.', 'sandbox'), get_trackback_url());
} elseif (comments_open() && !pings_open()) {
    // COMMENTS OPEN
    ?>
					<?php 
    printf(__('Trackbacks are closed, but you can <a href="#respond" title="Post a comment">post a comment</a>.', 'sandbox'));
} elseif (!comments_open() && !pings_open()) {
    // NOTHING OPEN
    ?>
					<?php 
    _e('Both comments and trackbacks are currently closed.');
}
?>

<?php 
edit_post_link(__('Edit this entry.', 'sandbox'), '', '');
/**
 * Generate and display the RDF for the trackback information of current post.
 *
 * Deprecated in 3.0.0, and restored in 3.0.1.
 *
 * @since 0.71
 *
 * @param int $deprecated Not used (Was $timezone = 0).
 */
function trackback_rdf($deprecated = '')
{
    if (!empty($deprecated)) {
        _deprecated_argument(__FUNCTION__, '2.5');
    }
    if (isset($_SERVER['HTTP_USER_AGENT']) && false !== stripos($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator')) {
        return;
    }
    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('--', '&#x2d;&#x2d;', wptexturize(strip_tags(get_the_title()))) . '"' . "\n";
    echo '    trackback:ping="' . get_trackback_url() . '"' . " />\n";
    echo '</rdf:RDF>';
}
function trackback_url( $display = true ) {
	if ( $display)
		echo get_trackback_url();
	else
		return get_trackback_url();
}
示例#27
0
<?php 
link_pages('<div class="page-link">' . __('Pages: ', 'veryplaintxt'), "</div>\n", 'number');
?>
				</div>

				<div class="entry-meta">
					<?php 
printf(__('This was written by %1$s. Posted on <abbr class="published" title="%2$s">%3$s at %4$s</abbr>. Filed under %5$s. %6$sBookmark the <a href="%7$s" title="Permalink to %8$s" rel="bookmark">permalink</a>. Follow comments here with the <a href="%9$s" title="Comments RSS to %8$s" rel="alternate" type="application/rss+xml">RSS feed</a>.', 'veryplaintxt'), '<span class="vcard"><span class="fn n">' . $authordata->display_name . '</span></span>', get_the_time('Y-m-d\\TH:i:sO'), the_date('l, F j, Y,', '', '', false), get_the_time(), get_the_category_list(', '), get_the_tag_list('Tagged ', ', ', '. '), get_permalink(), wp_specialchars(get_the_title(), 'double'), comments_rss());
if ('open' == $post->comment_status && 'open' == $post->ping_status) {
    ?>
					<?php 
    printf(__('<a href="#respond" title="Post a comment">Post a comment</a> or leave a <a href="%s" rel="trackback" title="Trackback URL for your post">trackback</a>.', 'veryplaintxt'), get_trackback_url());
} elseif (!('open' == $post->comment_status) && 'open' == $post->ping_status) {
    ?>
					<?php 
    printf(__('Comments are closed, but you can leave a <a href="%s" rel="trackback" title="Trackback URL for your post">trackback</a>.', 'veryplaintxt'), get_trackback_url());
} elseif ('open' == $post->comment_status && !('open' == $post->ping_status)) {
    ?>
					<?php 
    printf(__('Trackbacks are closed, but you can <a href="#respond" title="Post a comment">post a comment</a>.', 'veryplaintxt'));
} elseif (!('open' == $post->comment_status) && !('open' == $post->ping_status)) {
    ?>
					<?php 
    _e('Both comments and trackbacks are currently closed.', 'veryplaintxt');
}
?>

<?php 
edit_post_link(__('Edit this entry.', 'veryplaintxt'), '', '');
?>
				</div>
示例#28
0

								<footer class="entry-meta">
									<?php 
    if (comments_open() && pings_open()) {
        // Comments and trackbacks open
        ?>
										<?php 
        printf('<a class="comment-link" href="#respond" title="Post a comment">' . __('Post a comment', 'fresh-lite') . '</a> ' . __('or leave a trackback', 'fresh-lite') . ': <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">' . __('Trackback URL', 'fresh-lite') . '</a>.', get_trackback_url());
        ?>
									<?php 
    } elseif (!comments_open() && pings_open()) {
        // Only trackbacks open
        ?>
										<?php 
        printf(__('Comments are closed, but you can leave a trackback:', 'fresh-lite') . ' <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">' . __('Trackback URL', 'fresh-lite') . '</a>.', get_trackback_url());
        ?>
									<?php 
    } elseif (comments_open() && !pings_open()) {
        // Only comments open
        ?>
										<?php 
        _e('Trackbacks are closed, but you can', 'fresh-lite') . ' <a class="comment-link" href="#respond" title="Post a comment">' . __('post a comment', 'fresh-lite') . '</a>.';
        ?>
									<?php 
    } elseif (!comments_open() && !pings_open()) {
        // Comments and trackbacks closed
        ?>
										<?php 
        _e('Both comments and trackbacks are currently closed.', 'fresh-lite');
        ?>
示例#29
0
文件: image.php 项目: Trideon/gigolo
</div>
<!-- .entry-attachment -->
<?php 
    the_content();
    wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'gridster'), '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>.', 'gridster'), 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>.', 'gridster'), 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>.', 'gridster');
    } elseif (!comments_open() && !pings_open()) {
        // Comments and trackbacks closed
        _e('Both comments and trackbacks are currently closed.', 'gridster');
    }
    edit_post_link(__('Edit', 'gridster'), ' <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
示例#30
0
	</div><!-- #comments -->

<?php 
} else {
    ?>

	<?php 
    if (!comments_open()) {
        ?>
		<?php 
        if (pings_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.', 'buddypress'), get_trackback_url());
            ?>
			</p>
		<?php 
        } else {
            ?>
			<p class="comments-closed">
				<?php 
            _e('Comments are closed.', 'buddypress');
            ?>
			</p>
		<?php 
        }
        ?>
	<?php 
    }