Fix for the static_blog function to disable commenting for comic blog posts completely.

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-12-02 15:33:52 -08:00
parent 07c3a9e9f2
commit cf53f4e0e0
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ function display_comic_post() {
</div> </div>
<?php } ?> <?php } ?>
<?php <?php
if ('open' == $post->comment_status) { if ('open' == $post->comment_status && !$comicpress_options['static_blog']) {
if (comicpress_check_child_file('partials/commentlink') == false) { ?> if (comicpress_check_child_file('partials/commentlink') == false) { ?>
<div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty">&nbsp;</span> '.__('Comments ','comicpress'), '<span class="comment-balloon">1</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">%</span> '.__('Comments ','comicpress')); ?></div> <div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty">&nbsp;</span> '.__('Comments ','comicpress'), '<span class="comment-balloon">1</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">%</span> '.__('Comments ','comicpress')); ?></div>
<?php } <?php }

View File

@ -264,7 +264,7 @@
<input id="static_blog" name="static_blog" type="checkbox" value="1" <?php checked(true, $comicpress_options['static_blog']); ?> /> <input id="static_blog" name="static_blog" type="checkbox" value="1" <?php checked(true, $comicpress_options['static_blog']); ?> />
</td> </td>
<td> <td>
<?php _e('Blog will stay with the single pages, good to use with comments disabled in the settings.','comicpress'); ?> <?php _e('Blog will stay with the single pages, this will automatically disable any commenting ability for comic blog posts. ','comicpress'); ?>
</td> </td>
</tr> </tr>
<tr class="alternate"> <tr class="alternate">