Пример #1
0
// 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__);
}
get_header();
?>
<div id="content">
<p><?php 
_e('Sorry, we\'re not sure what you\'re looking for here.', 'carrington-blog');
?>
</p>

<?php 
cfct_form('search');
?>
</div><!--#content-->
<?php 
get_sidebar();
get_footer();
Пример #2
0
<p><?php 
    printf(__('Stay in touch with the conversation, subscribe to the <a class="feed" rel="alternate" href="%s"><acronym title="Really Simple Syndication">RSS</acronym> feed for comments on this post</a>.', 'carrington-blog'), get_post_comments_feed_link($post->ID, ''));
    ?>
</p>

<?php 
    if ($comments) {
        $comment_count = 0;
        $ping_count = 0;
        foreach ($comments as $comment) {
            if (get_comment_type() == 'comment') {
                $comment_count++;
            } else {
                $ping_count++;
            }
        }
        if ($comment_count) {
            cfct_template_file('comments', 'comments-loop');
        }
        if ($ping_count) {
            ?>
<h3 class="pings"><?php 
            _e('Continuing the Discussion', 'carrington-blog');
            ?>
</h3>
<?php 
            cfct_template_file('comments', 'pings-loop');
        }
    }
    cfct_form('comment');
}