Skip to content

Commit

Permalink
removed comicpress debug
Browse files Browse the repository at this point in the history
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
Philip M. Hofer (Frumph) committed Nov 18, 2010
1 parent 4059cb9 commit dd960a0
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 212 deletions.
2 changes: 1 addition & 1 deletion addons/custom-image-header.php
Expand Up @@ -3,7 +3,7 @@
add_theme_support( 'custom-header' );

// Custom Image Header Defaults
// define('HEADER_TEXTCOLOR', '000');
define('HEADER_TEXTCOLOR', '');
// define('HEADER_IMAGE', ''); // %s is theme dir
define('HEADER_IMAGE_WIDTH', comicpress_themeinfo('custom_image_header_width'));
define('HEADER_IMAGE_HEIGHT', comicpress_themeinfo('custom_image_header_height'));
Expand Down
3 changes: 3 additions & 0 deletions changelog.txt
@@ -1,6 +1,9 @@
2.9.2.24
Removed the tabindex from the comments.php field for textarea
adding comic-id-# ($post->id) as a wrap with #comic-wrap so that it can be targeted for the current comic post
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 ""
Removed comicpress-debug.php, so no debug messages anymore
Removed copyright.php, it hasnt been in use in a long time

2.9.2.23
Adjusted "The Footer" back to just "Footer" the browsers that can't handle it will just have to be SOL
Expand Down
133 changes: 0 additions & 133 deletions comicpress-debug.php

This file was deleted.

33 changes: 2 additions & 31 deletions functions.php
Expand Up @@ -95,7 +95,6 @@
// Dashboard Menu Comicpress Options and ComicPress CSS
if (is_admin()) {
@require_once(get_template_directory() . '/comicpress-admin.php');
@require_once(get_template_directory() . '/comicpress-debug.php');
}

// Register Sidebar and Define Widgets
Expand Down Expand Up @@ -201,6 +200,8 @@ function comicpress_remove_blogpostcount_filter() {
}
}

add_action('init', '__comicpress_init');

add_action('wp_head','comicpress_add_head');

function comicpress_add_head() {
Expand All @@ -213,33 +214,6 @@ function comicpress_add_head() {
<?php }
}

add_action('init', '__comicpress_init');

/*
function comicpress_load_config() {
$comicpress_config = get_option('comicpress-config');
if (empty($comicpress_config)) {
foreach (array(
'comiccat' => '2',
'blogcat' => '3',
'comic_folder' => 'comics',
'rss_comic_folder' => 'comics-rss',
'archive_comic_folder' => 'comics-archive',
'mini_comic_folder' => 'comics-mini',
'rss_comic_width' => '400',
'archive_comic_width' => '280',
'mini_comic_width' => '178'
) as $field => $value) {
$comicpress_config[$field] = $value;
}
add_option('comicpress-config', $comicpress_config, '', true);
}
return $comicpress_config;
}
*/

if (!function_exists('is_cp_theme_layout')) {
function is_cp_theme_layout($choices) {
Expand Down Expand Up @@ -330,9 +304,6 @@ function comicpress_in_comic_category($cat = null) {
function comicpress_create_category_tree() {
global $category_tree, $comiccat;
if (empty($category_tree)) {
// $comicpress_config = comicpress_load_config();
// $comiccat = comicpress_themeinfo('comiccat');

$categories_by_id = comicpress_get_comic_category_objects_by_id();
if (empty($categories_by_id)) return false;
foreach (array_keys($categories_by_id) as $category_id) {
Expand Down
27 changes: 0 additions & 27 deletions functions/copyright.php

This file was deleted.

3 changes: 2 additions & 1 deletion functions/displaycomic.php
Expand Up @@ -31,7 +31,7 @@
if (!function_exists('comicpress_display_comic_area')) {
function comicpress_display_comic_area() {
global $post; ?>
<div id="comic-wrap" class="comic-id-<?php the_ID(); ?>">
<div id="comic-wrap" class="comic-id-<?php echo $post->ID; ?>">
<div id="comic-head"><?php if (is_active_sidebar('over-comic')) get_sidebar('over'); ?></div>
<div class="clear"></div>
<?php if (is_active_sidebar('left-of-comic')) get_sidebar('comicleft'); ?>
Expand Down Expand Up @@ -246,6 +246,7 @@ function comicpress_rascal_says($output) {
}
if (comicpress_themeinfo('comic_clicks_next')) {
$href_to_use = comicpress_get_next_comic_permalink();
if (empty($href_to_use)) $href_to_use = "#";
$output = "<a href=\"{$href_to_use}\" class=\"tt\" title=\"".$post->post_title."\">{$output}</a>";
} else {
$output = "<a class=\"tt\" href=\"{$href_to_use}\" title=\"".$post->post_title."\">{$output}</a>";
Expand Down
19 changes: 0 additions & 19 deletions functions/syndication.php
Expand Up @@ -41,25 +41,6 @@ function comicpress_comic_feed() {
?>
<p><a href="<?php the_permalink(); ?>"><?php echo comicpress_display_comic_thumbnail('rss',$post); ?></a></p>
<?php
/* $this_permalink = get_permalink();
$latest_comic = get_permalink( comicpress_get_terminal_post_in_category(comicpress_all_comic_categories_string(), false) );
$first = comicpress_get_first_comic_permalink();
$last = comicpress_get_last_comic_permalink();
$prev = comicpress_get_previous_comic_permalink(false);
$next = comicpress_get_next_comic_permalink(false);
if (!empty($first) && ($first != $this_permalink)) { ?>
<a href="<?php echo $first; ?>">First</a>
<?php }
if (!empty($prev)) { ?>
<a href="<?php echo $prev; ?>">Previous</a>
<?php }
if (!empty($next)) { ?>
<a href="<?php echo $next; ?>">Next</a>
<?php }
if (!empty($last) && ($last != $this_permalink)) { ?>
<a href="<?php echo $last; ?>">Latest</a>
<?php } */
}
}

Expand Down

0 comments on commit dd960a0

Please sign in to comment.