Пример #1
0
?>
/i/right.png" />
					<?php 
if ($show_all) {
    ?>
					<a  href="<?php 
    echo get_permalink($pageId);
    ?>
">All</a>
					<?php 
}
?>
  </div> 
	<div id="wallcomments">
			<?php 
echo WPWall_ShowComments();
?>
	</div> 

	
	
	<?php 
if ($rss_feed) {
    ?>
	
		<p><a href="<?php 
    echo get_post_comments_feed_link($pageId);
    ?>
" id="wall_rss"><img src="<?php 
    echo $wp_wall_plugin_url;
    ?>
Пример #2
0
                wp_die('Sorry, you must be logged in to post a comment.');
            }
        }
    }
    // check if the fields are filled
    if ('' == $comment_author) {
        wp_die('Error: please type a name.');
    }
    if ('' == $comment_content) {
        wp_die('Error: please type a comment.');
    }
    if ($options['clickable_links']) {
        $comment_content = WPWall_MakeClickable($comment_content);
    }
    // insert the comment
    $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_content', 'user_ID');
    $comment_id = wp_new_comment($commentdata);
    // check if the comment is approved
    $comment = get_comment($comment_id);
    if ($comment->comment_approved == 0) {
        wp_die('Your comment is awaiting moderation.');
    }
    // return status
    nocache_headers();
    die(WPWall_ShowComments());
} else {
    if ($_GET['refresh']) {
        nocache_headers();
        die(WPWall_ShowComments($_GET['refresh']));
    }
}