Example #1
0
function builder_comments_popup_link($before, $after, $format, $zero = '(0)', $one = '(1)', $multi = '(%)')
{
    if (!builder_show_comments() || !comments_open() && !pings_open() || post_password_required()) {
        return;
    }
    ob_start();
    comments_popup_link($zero, $one, $multi);
    $comments = ob_get_contents();
    ob_end_clean();
    echo $before;
    printf($format, $comments);
    echo $after;
}
Example #2
0
<?php

// Important, please do not delete
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' === basename($_SERVER['SCRIPT_FILENAME'])) {
    die('Please do not load this page directly. Thanks!');
}
if (!builder_show_comments()) {
    return;
}
$login_url = wp_login_url(apply_filters('the_permalink', get_permalink()));
$logout_url = wp_logout_url(apply_filters('the_permalink', get_permalink()));
$req = get_option('require_name_email');
$aria_req = $req ? ' aria-required="true"' : '';
$commenter = wp_get_current_commenter();
if (post_password_required()) {
    return;
}
?>


<?php 
if (have_comments()) {
    ?>
	<div id="comments">
		<h3><?php 
    _e('Comments', 'it-l10n-Builder-Paige');
    ?>
</h3>

		<ol class="commentlist">
			<?php