Permalink
Browse files

new option for the keeping of comments when single comic posts is dis…

…abled

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
  • Loading branch information...
1 parent 7e01153 commit 502abca6f92e1b14300e05a01b80bcf950e241e1 Philip M. Hofer (Frumph) committed Jan 4, 2011
Showing with 17 additions and 6 deletions.
  1. +1 −0 changelog.txt
  2. +1 −0 comicpress-admin.php
  3. +1 −0 functions.php
  4. +9 −0 options/indexoptions.php
  5. +5 −6 single.php
View
@@ -3,6 +3,7 @@ revamped the syndication comic into the rss to allow for a filter that can be us
added extra profile options for MSN, Twitter and Facebook fields - functions/profile-options.php
total rewrite of archive.php - fixed bug with text-links for the archive.php
added new widget "reference" documentation is inside the widget and will be on comicpress.net
+new option on the home tab to keep comments when the single page's comic blog post is disabled
2.9.2.28
change the forum url to http://comicpress.net/forum/ bbpress wasnt working out, so switched to simple:press
View
@@ -97,6 +97,7 @@ function comicpress_admin_options() {
'disable_comic_frontpage',
'disable_comic_blog_frontpage',
'disable_comic_blog_single',
+ 'enable_comments_when_comic_blog_disabled',
'disable_blog_frontpage',
'disable_blogheader'
) as $key) {
View
@@ -385,6 +385,7 @@ function comicpress_load_options() {
'disable_comic_frontpage' => false,
'disable_comic_blog_frontpage' => false,
'disable_comic_blog_single' => false,
+ 'enable_comments_when_comic_blog_disabled' => false,
'disable_blog_frontpage' => false,
'disable_lrsidebars' => false,
'disable_footer_text' => false,
View
@@ -66,6 +66,15 @@
<?php _e('Checkmark this and the blog portion of the comic will not display on the single/archive pages of your site.','comicpress'); ?>
</td>
</tr>
+ <tr>
+ <th scope="row"><label for="enable_comments_when_comic_blog_disabled"><?php _e('Enable comments when comic blog on single pages is disabled','comicpress'); ?></label></th>
+ <td>
+ <input id="enable_comments_when_comic_blog_disabled" name="enable_comments_when_comic_blog_disabled" type="checkbox" value="1" <?php checked(true, comicpress_themeinfo('enable_comments_when_comic_blog_disabled')); ?> />
+ </td>
+ <td>
+ <?php _e('When you have the comic blog disabled on single pages, if you have this checkmarked, the comments will still appear.','comicpress'); ?>
+ </td>
+ </tr>
</table>
<table class="widefat">
View
@@ -19,7 +19,7 @@
UnProtect();
}
-if (have_posts()) :
+if (have_posts()) {
while (have_posts()) : the_post();
$blog_query = 'showposts='.comicpress_themeinfo('blog_postcount').'&order=asc&cat='.comicpress_exclude_comic_categories();
if (!comicpress_in_comic_category() || (comicpress_in_comic_category() && !comicpress_themeinfo('disable_comic_blog_single'))) {
@@ -84,9 +84,9 @@ function filter_where($where = '') {
comicpress_dual_columns(true);
}
}
- }
-else:
-
+ }
+ if (comicpress_in_comic_category() && comicpress_themeinfo('enable_comments_when_comic_blog_disabled') && comicpress_themeinfo('disable_comic_blog_single')) comments_template('', true);
+} else {
?>
<div <?php post_class(); ?>>
<div class="post-head"></div>
@@ -97,8 +97,7 @@ function filter_where($where = '') {
<div class="post-foot"></div>
</div>
<?php
-
-endif;
+}
if (is_active_sidebar('under-blog')) get_sidebar('underblog');

0 comments on commit 502abca

Please sign in to comment.