Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

removed comicpress debug

removed copyright.php
added a comic-id-# class with the comic-wrap
fixed an error message with custom-image-header.php
removed some commented out code in the syndication.php
removed comicpress_load_config() commented out section will get the rest next update

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
  • Loading branch information...
commit dd960a013d6447abd156050439f0bc0aa46367d1 1 parent 4059cb9
Philip M. Hofer (Frumph) authored
2  addons/custom-image-header.php
@@ -3,7 +3,7 @@
3 3 add_theme_support( 'custom-header' );
4 4
5 5 // Custom Image Header Defaults
6   -// define('HEADER_TEXTCOLOR', '000');
  6 +define('HEADER_TEXTCOLOR', '');
7 7 // define('HEADER_IMAGE', ''); // %s is theme dir
8 8 define('HEADER_IMAGE_WIDTH', comicpress_themeinfo('custom_image_header_width'));
9 9 define('HEADER_IMAGE_HEIGHT', comicpress_themeinfo('custom_image_header_height'));
3  changelog.txt
... ... @@ -1,6 +1,9 @@
1 1 2.9.2.24
2 2 Removed the tabindex from the comments.php field for textarea
3 3 adding comic-id-# ($post->id) as a wrap with #comic-wrap so that it can be targeted for the current comic post
  4 +added check to see if on the comic_next for hovering over to see if its empty or not, if it is do a # instead of empty ""
  5 +Removed comicpress-debug.php, so no debug messages anymore
  6 +Removed copyright.php, it hasnt been in use in a long time
4 7
5 8 2.9.2.23
6 9 Adjusted "The Footer" back to just "Footer" the browsers that can't handle it will just have to be SOL
133 comicpress-debug.php
... ... @@ -1,133 +0,0 @@
1   -<?php
2   -
3   -function comicpress_notice_debug() {
4   - global $current_user, $wpdb;
5   -
6   - if( substr( $_SERVER[ 'PHP_SELF' ], -19 ) != '/wp-admin/index.php' || !comicpress_themeinfo('enable_comicpress_debug'))
7   - return;
8   -
9   - $error = array();
10   - // need to write an OR here or use a better reference
11   - if (count(get_all_category_ids()) < 2) {
12   - $error[] = array('header', __('Congratulations! A new install of ComicPress!','comicpress'));
13   - $error[] =
14   - __('<i>Now that ComicPress is installed on your machine, make sure you follow these installation directions.</i>','comicpress') .
15   - __('<h2>New Install</h2>','comicpress') .
16   - __('<ul><ol><li><strong>Create two categories in the (DASHBOARD) -> Posts -> Categories</strong><br />The two categories you are going to create is a primary WebComic and Blog category. Do NOT rename the uncategorized category, just add 2 more categories. Once those categories are created this message will no longer be displayed on the dashboard.</li>','comicpress') .
17   - __('<li>Make sure ComicPress Manager is installed and set the categories in the ComicPress Manager -> ComicPress Config</li>','comicpress') .
18   - __('<li>ComicPress Manager -> Manager Config, click the create directories button, then verify the directories are created in the ComicPress Config</li>','comicpress') .
19   - __('</ol></ul>');
20   - }
21   -
22   - if (floatval(phpversion()) < 5.0) {
23   - $phpversion = phpversion();
24   - $error[] = array('header', __('You are using PHP version: ','comicpress'). $phpversion);
25   - $error[] = __('Version 5 or higher is required for this theme to work correctly. Please check with your host about upgrading to a newer version.','comicpress');
26   - }
27   -
28   - $post_cat_link = get_bloginfo('wpurl') . '/wp-admin/edit-tags.php?taxonomy=category';
29   -
30   - // Check Categories
31   - $comiccat = comicpress_themeinfo('comiccat');
32   - if (empty($comiccat) && empty($error)) {
33   - $error[] = array('header', __('Primary Comic and Blog categories are not configured properly.','comicpress'));
34   - $error[] = __('ComicPress requires 2 categories to be added to the ','comicpress') . '<a href="'.$post_cat_link.'">' . __('post categories.','comicpress') . '</a>' .
35   - __(' It is necessary to have 2 more categories in addition to the uncategorized category, a Blog and Comic primary categories. These two additional categories will be the root categories that seperate the difference between the comic and blog posts. When you post a new comic you will be posting it into the comic category or heirarchal children of the comic category. When posting a new blog post you need to set it into the blog category or child of the blog category. Uncategorized will act as a blog post category (do not rename uncategorized). You can configure the categories to set as the primary blog and comic category from within the ComicPress Manager plugin.','comicpress');
36   - }
37   -
38   - if (empty($error)) {
39   - // Check Comics Folder
40   -
41   - if (!is_dir(comicpress_themeinfo('basedir') .'/'. comicpress_themeinfo('comic_folder'))) {
42   - $error[] = array('header', __('Comics Folder is not configured and is unable to be found.','comicpress'));
43   - $error[] = __('ComicPress stores the files it uses inside a specific directory and that directory is set from within ComicPress Manager. When this error is present it means that the theme is unable to find the appropriate directory to read the comics from.','comicpress');
44   - $error[] = __('ComicPress Manager - Manager Config will allow you to create the directories needed.');
45   - }
46   - }
47   -
48   - if (empty($error)) {
49   - // Make sure the ComicPress theme is installed in themes/comicpress
50   - if (ABSPATH . 'wp-content/themes/comicpress' != get_template_directory()) {
51   - $error[] = array('header', __('ComicPress theme is not installed into the correct folder.','comicpress'));
52   - $error[] = __('As of version 2.9, the ComicPress main core theme is required to be installed into the wp-content/themes/comicpress directory. It is currently not installed into that directory.','comicpress');
53   - }
54   - }
55   -
56   - if (empty($error) && comicpress_themeinfo('enable_full_post_check')) {
57   - // Check to make sure posts are not in blogcat and comiccat both
58   - $founderror = false;
59   - $blog_query = '&show_posts=-1&posts_per_page=-1&cat='.comicpress_all_blog_categories_string();
60   -
61   - $posts = &query_posts($blog_query);
62   - if (have_posts()) {
63   - while (have_posts()) : the_post();
64   - if (comicpress_in_comic_category()) {
65   - $founderrorpostlist .= '<a href="'.get_bloginfo('wpurl').'/wp-admin/post.php?action=edit&post='.get_the_ID().'">'.get_the_title().'</a> - Error: Category Crossover<br />';
66   - $founderror = true;
67   - }
68   - endwhile;
69   - }
70   - if ($founderror) {
71   - $error[] = array('header', __('Post\'s are in both a comic category and blog category.','comicpress'));
72   - $error[] = __('The following posts are set both in a comic category and a blog category, with ComicPress the designations of categories is very important. The rule of thumb is to make sure that all posts are only in a single category. If a post is in both the comic category and blog category there will be issues with both navigation and execution of the ComicPress code.','comicpress');
73   - $error[] = $founderrorpostlist;
74   - }
75   - }
76   -
77   - if (empty($error) && comicpress_themeinfo('enable_full_post_check')) {
78   - $founderror = false;
79   - $blog_query = '&show_posts=-1&posts_per_page=-1';
80   - $posts = &query_posts($blog_query);
81   - if (!empty($posts)) {
82   - foreach ($posts as $post) {
83   - setup_postdata($post);
84   - $post_title_slug = $post->post_name;
85   - if (is_numeric($post_title_slug)) {
86   - $founderror = true;
87   - $founderrorpostname .= '<a href="'.get_bloginfo('wpurl').'/wp-admin/post.php?action=edit&post='.$post->ID.'">'.get_the_title($post->ID).'</a> - Error: Post Slug (Permalink) is Numeric<br />';
88   - }
89   - }
90   - }
91   - if ($founderror) {
92   - $error[] = array('header', __('Post\'s slug is a numeric.','comicpress'));
93   - $error[] = __('The following posts have a post slug (permalink) that is numeric. This will cause problems with permalinks. Post slugs must have at least one alphabetic character in them for Wordpress to handle correctly.','comicpress');
94   - $error[] = $founderrorpostname;
95   - }
96   - }
97   -
98   - if (!empty($error)) {
99   - ?>
100   - <div class="error">
101   - <h2>ComicPress Debug</h2>
102   - ComicPress doesn't seem to be fully installed at this time, check out these messages.<br />
103   - <br />
104   - <?php
105   - foreach ($error as $info) {
106   - unset($text);
107   - if (is_array($info)) {
108   - list($type, $text) = $info;
109   - } else {
110   - if (is_string($info)) {
111   - $text = $info;
112   - $type = 'paragraph';
113   - }
114   - }
115   - if (!empty($text) && !empty($type)) {
116   - switch ($type) {
117   - case 'header': echo "<h3>${text}</h3>"; break;
118   - case 'raw': echo $text; break;
119   - default: echo "<p>${text}</p>"; break;
120   - }
121   - }
122   - }
123   - ?>
124   - <br />
125   - <br />
126   - </div>
127   -<?php
128   - }
129   -}
130   -
131   -add_action( 'admin_notices', 'comicpress_notice_debug' );
132   -
133   -?>
33 functions.php
@@ -95,7 +95,6 @@
95 95 // Dashboard Menu Comicpress Options and ComicPress CSS
96 96 if (is_admin()) {
97 97 @require_once(get_template_directory() . '/comicpress-admin.php');
98   - @require_once(get_template_directory() . '/comicpress-debug.php');
99 98 }
100 99
101 100 // Register Sidebar and Define Widgets
@@ -201,6 +200,8 @@ function comicpress_remove_blogpostcount_filter() {
201 200 }
202 201 }
203 202
  203 +add_action('init', '__comicpress_init');
  204 +
204 205 add_action('wp_head','comicpress_add_head');
205 206
206 207 function comicpress_add_head() {
@@ -213,33 +214,6 @@ function comicpress_add_head() {
213 214 <?php }
214 215 }
215 216
216   -add_action('init', '__comicpress_init');
217   -
218   -/*
219   -function comicpress_load_config() {
220   -
221   - $comicpress_config = get_option('comicpress-config');
222   - if (empty($comicpress_config)) {
223   -
224   - foreach (array(
225   - 'comiccat' => '2',
226   - 'blogcat' => '3',
227   - 'comic_folder' => 'comics',
228   - 'rss_comic_folder' => 'comics-rss',
229   - 'archive_comic_folder' => 'comics-archive',
230   - 'mini_comic_folder' => 'comics-mini',
231   - 'rss_comic_width' => '400',
232   - 'archive_comic_width' => '280',
233   - 'mini_comic_width' => '178'
234   - ) as $field => $value) {
235   - $comicpress_config[$field] = $value;
236   - }
237   -
238   - add_option('comicpress-config', $comicpress_config, '', true);
239   - }
240   - return $comicpress_config;
241   -}
242   -*/
243 217
244 218 if (!function_exists('is_cp_theme_layout')) {
245 219 function is_cp_theme_layout($choices) {
@@ -330,9 +304,6 @@ function comicpress_in_comic_category($cat = null) {
330 304 function comicpress_create_category_tree() {
331 305 global $category_tree, $comiccat;
332 306 if (empty($category_tree)) {
333   -// $comicpress_config = comicpress_load_config();
334   -// $comiccat = comicpress_themeinfo('comiccat');
335   -
336 307 $categories_by_id = comicpress_get_comic_category_objects_by_id();
337 308 if (empty($categories_by_id)) return false;
338 309 foreach (array_keys($categories_by_id) as $category_id) {
27 functions/copyright.php
... ... @@ -1,27 +0,0 @@
3  functions/displaycomic.php
@@ -31,7 +31,7 @@
31 31 if (!function_exists('comicpress_display_comic_area')) {
32 32 function comicpress_display_comic_area() {
33 33 global $post; ?>
34   - <div id="comic-wrap" class="comic-id-<?php the_ID(); ?>">
  34 + <div id="comic-wrap" class="comic-id-<?php echo $post->ID; ?>">
35 35 <div id="comic-head"><?php if (is_active_sidebar('over-comic')) get_sidebar('over'); ?></div>
36 36 <div class="clear"></div>
37 37 <?php if (is_active_sidebar('left-of-comic')) get_sidebar('comicleft'); ?>
@@ -246,6 +246,7 @@ function comicpress_rascal_says($output) {
246 246 }
247 247 if (comicpress_themeinfo('comic_clicks_next')) {
248 248 $href_to_use = comicpress_get_next_comic_permalink();
  249 + if (empty($href_to_use)) $href_to_use = "#";
249 250 $output = "<a href=\"{$href_to_use}\" class=\"tt\" title=\"".$post->post_title."\">{$output}</a>";
250 251 } else {
251 252 $output = "<a class=\"tt\" href=\"{$href_to_use}\" title=\"".$post->post_title."\">{$output}</a>";
19 functions/syndication.php
@@ -41,25 +41,6 @@ function comicpress_comic_feed() {
41 41 ?>
42 42 <p><a href="<?php the_permalink(); ?>"><?php echo comicpress_display_comic_thumbnail('rss',$post); ?></a></p>
43 43 <?php
44   -/* $this_permalink = get_permalink();
45   - $latest_comic = get_permalink( comicpress_get_terminal_post_in_category(comicpress_all_comic_categories_string(), false) );
46   - $first = comicpress_get_first_comic_permalink();
47   - $last = comicpress_get_last_comic_permalink();
48   - $prev = comicpress_get_previous_comic_permalink(false);
49   - $next = comicpress_get_next_comic_permalink(false);
50   -
51   - if (!empty($first) && ($first != $this_permalink)) { ?>
52   - <a href="<?php echo $first; ?>">First</a>
53   - <?php }
54   - if (!empty($prev)) { ?>
55   - <a href="<?php echo $prev; ?>">Previous</a>
56   - <?php }
57   - if (!empty($next)) { ?>
58   - <a href="<?php echo $next; ?>">Next</a>
59   - <?php }
60   - if (!empty($last) && ($last != $this_permalink)) { ?>
61   - <a href="<?php echo $last; ?>">Latest</a>
62   - <?php } */
63 44 }
64 45 }
65 46

0 comments on commit dd960a0

Please sign in to comment.
Something went wrong with that request. Please try again.