Beispiel #1
0
        $edited_Item = $Item;
        // COPY or it will be out of scope for display funcs
        require dirname(__FILE__) . '/inc/_item_links.inc.php';
        echo '</div>';
        // ---------- comments ----------
        ?>
			<div class="bFeedback">
			<a id="comments"></a>
			<h4><?php 
        echo T_('Comments'), ', ', T_('Trackbacks'), ', ', T_('Pingbacks');
        ?>
:</h4>
			<?php 
        global $CommentList;
        $CommentList = new CommentList(NULL, "'comment','trackback','pingback'", array(), $Item->ID, '', 'ASC');
        $CommentList->display_if_empty(array('before' => '<div class="bComment"><p>', 'after' => '</p></div>', 'msg_empty' => T_('No feedback for this post yet...')));
        // Display list of comments:
        require $inc_path . 'comments/views/_comment_list.inc.php';
        if ($Item->can_comment()) {
            // User can leave a comment
            ?>
			<!-- ========== FORM to add a comment ========== -->
			<h4><?php 
            echo T_('Leave a comment');
            ?>
:</h4>

			<?php 
            $Form =& new Form($htsrv_url . 'comment_post.php', 'comment_checkchanges');
            $Form->begin_form('bComment');
            $Form->hidden('comment_post_ID', $Item->ID);