diff --git a/functions/syndication.php b/functions/syndication.php
deleted file mode 100644
index 3c847a3..0000000
--- a/functions/syndication.php
+++ /dev/null
@@ -1,59 +0,0 @@
-
\ No newline at end of file
diff --git a/js/pre.js b/js/pre.js
new file mode 100644
index 0000000..c36e940
--- /dev/null
+++ b/js/pre.js
@@ -0,0 +1,20 @@
+// JavaScript Document
+
+$j("pre").hover(function() {
+ var codeInnerWidth = $j("code", this).width() + 10;
+ if (codeInnerWidth > 550) {
+ $j(this)
+ .stop(true, false)
+ .css({
+ zIndex: "100",
+ position: "relative"
+ })
+ .animate({
+ width: codeInnerWidth + "px"
+ });
+ }
+}, function() {
+ $j(this).stop(true, false).animate({
+ width: 550
+ });
+});
\ No newline at end of file
diff --git a/options/comment-functions.php b/options/comment-functions.php
new file mode 100644
index 0000000..583a16e
--- /dev/null
+++ b/options/comment-functions.php
@@ -0,0 +1,232 @@
+';
+
+ if(function_exists('get_avatar') && $comment_type != 'pingback' && $comment_type != 'trackback' ) {
+ echo str_replace("alt='", "alt='".wp_specialchars(get_comment_author(), 1)."' title='".wp_specialchars(get_comment_author(), 1), get_avatar(get_comment_author_email(), 64));
+ } else {
+ if ($comment_type == 'pingback' || $comment_type == 'trackback') {
+ echo '
';
+ } else {
+ echo '
';
+ }
+ }
+
+ if($url == true && $url != 'http://')
+ echo '';
+}
+
+/**
+* Properly displays comment author name/link
+* bbPress and other external systems sometimes don't set a display name for registrations
+* WP has problems if no display name is set
+* WP gives registered users URL of 'http://' if none is set
+*
+* @since 0.2.2
+*/
+function comicpress_comment_author() {
+ global $comment;
+
+ $author = get_comment_author();
+ $url = get_comment_author_url();
+
+ /*
+ * Registered members w/o URL defaults to 'http://'
+ */
+ if($url == 'http://')
+ $url = false;
+
+ /*
+ * Registered through bbPress sometimes leaves no display name
+ * Bug with bbPress 0.9 series and WP 2.5 (no later testing)
+ * 'Anonymous' should be localized according to WP, not the theme
+ */
+ if($comment->user_id > 0) :
+ $user = get_userdata($comment->user_id);
+ if($user->display_name)
+ $author = $user->display_name;
+ elseif($user->user_nickname)
+ $author = $user->nickname;
+ elseif($user->user_nicename)
+ $author = $user->user_nicename;
+ else
+ $author = $user->user_login;
+ endif;
+
+ /*
+ * Display link and cite if URL is set
+ * Also properly cites trackbacks/pingbacks
+ */
+ if($url) :
+ $output = '
';
+ $output .= '' . $author . '';
+ $output .= '';
+ else :
+ $output = '
';
+ $output .= $author;
+ $output .= '';
+ endif;
+
+ echo $output;
+}
+
+/**
+* Displays individual comments
+* Uses the callback parameter for wp_list_comments
+* Overwrites the default display of comments
+*
+* @since 0.2.3
+*
+* @param $comment The comment variable
+* @param $args Array of arguments passed from wp_list_comments
+* @param $depth What level the particular comment is
+*/
+function comicpress_comments_callback($comment, $args, $depth) {
+ $GLOBALS['comment'] = $comment;
+ $GLOBALS['comment_depth'] = $depth;
+ ?>
+
+
+
\ No newline at end of file
diff --git a/options/custom-image-header.php b/options/custom-image-header.php
new file mode 100644
index 0000000..cd06f21
--- /dev/null
+++ b/options/custom-image-header.php
@@ -0,0 +1,68 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/options/wp-pagenavi.php b/options/wp-pagenavi.php
new file mode 100644
index 0000000..5d5078c
--- /dev/null
+++ b/options/wp-pagenavi.php
@@ -0,0 +1,162 @@
+request;
+ $posts_per_page = intval(get_query_var('posts_per_page'));
+ $paged = intval(get_query_var('paged'));
+ $pagenavi_options = get_option('pagenavi_options');
+ $numposts = $wp_query->found_posts;
+ $max_page = $wp_query->max_num_pages;
+ /*
+ $numposts = 0;
+ if(strpos(get_query_var('tag'), " ")) {
+ preg_match('#^(.*)\sLIMIT#siU', $request, $matches);
+ $fromwhere = $matches[1];
+ $results = $wpdb->get_results($fromwhere);
+ $numposts = count($results);
+ } else {
+ preg_match('#FROM\s*+(.+?)\s+(GROUP BY|ORDER BY)#si', $request, $matches);
+ $fromwhere = $matches[1];
+ $numposts = $wpdb->get_var("SELECT COUNT(DISTINCT ID) FROM $fromwhere");
+ }
+ $max_page = ceil($numposts/$posts_per_page);
+ */
+ if(empty($paged) || $paged == 0) {
+ $paged = 1;
+ }
+ $pages_to_show = intval($pagenavi_options['num_pages']);
+ $pages_to_show_minus_1 = $pages_to_show-1;
+ $half_page_start = floor($pages_to_show_minus_1/2);
+ $half_page_end = ceil($pages_to_show_minus_1/2);
+ $start_page = $paged - $half_page_start;
+ if($start_page <= 0) {
+ $start_page = 1;
+ }
+ $end_page = $paged + $half_page_end;
+ if(($end_page - $start_page) != $pages_to_show_minus_1) {
+ $end_page = $start_page + $pages_to_show_minus_1;
+ }
+ if($end_page > $max_page) {
+ $start_page = $max_page - $pages_to_show_minus_1;
+ $end_page = $max_page;
+ }
+ if($start_page <= 0) {
+ $start_page = 1;
+ }
+ if($max_page > 1 || intval($pagenavi_options['always_show']) == 1) {
+ $pages_text = str_replace("%CURRENT_PAGE%", number_format_i18n($paged), $pagenavi_options['pages_text']);
+ $pages_text = str_replace("%TOTAL_PAGES%", number_format_i18n($max_page), $pages_text);
+ echo $before.'
'."\n";
+ switch(intval($pagenavi_options['style'])) {
+ case 1:
+ if(!empty($pages_text)) {
+ echo '- '.$pages_text.'
';
+ }
+ if ($start_page >= 2 && $pages_to_show < $max_page) {
+ $first_page_text = str_replace("%TOTAL_PAGES%", number_format_i18n($max_page), $pagenavi_options['first_text']);
+ echo '- '.$first_page_text.'
';
+ if(!empty($pagenavi_options['dotleft_text'])) {
+ echo '- '.$pagenavi_options['dotleft_text'].'
';
+ }
+ }
+ echo '- ';
+ previous_posts_link($pagenavi_options['prev_text']);
+ echo '
';
+ for($i = $start_page; $i <= $end_page; $i++) {
+ if($i == $paged) {
+ $current_page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['current_text']);
+ echo '- '.$current_page_text.'
';
+ } else {
+ $page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['page_text']);
+ echo '- '.$page_text.'
';
+ }
+ }
+ echo '- ';
+ next_posts_link($pagenavi_options['next_text'], $max_page);
+ echo '
';
+ if ($end_page < $max_page) {
+ if(!empty($pagenavi_options['dotright_text'])) {
+ echo '- '.$pagenavi_options['dotright_text'].'
';
+ }
+ $last_page_text = str_replace("%TOTAL_PAGES%", number_format_i18n($max_page), $pagenavi_options['last_text']);
+ echo '- '.$last_page_text.'
';
+ }
+ break;
+ case 2;
+ echo '
\n";
+ break;
+ }
+ echo '
'.$after."\n";
+ }
+ }
+}
+
+
+### Function: Page Navigation Options
+add_action('activate_wp-pagenavi/wp-pagenavi.php', 'pagenavi_init');
+function pagenavi_init() {
+ // Add Options
+ $pagenavi_options = array();
+ $pagenavi_options['pages_text'] = __('Page %CURRENT_PAGE% of %TOTAL_PAGES%','wp-pagenavi');
+ $pagenavi_options['current_text'] = '%PAGE_NUMBER%';
+ $pagenavi_options['page_text'] = '%PAGE_NUMBER%';
+ $pagenavi_options['first_text'] = __('« First','wp-pagenavi');
+ $pagenavi_options['last_text'] = __('Last »','wp-pagenavi');
+ $pagenavi_options['next_text'] = __('»','wp-pagenavi');
+ $pagenavi_options['prev_text'] = __('«','wp-pagenavi');
+ $pagenavi_options['dotright_text'] = __('...','wp-pagenavi');
+ $pagenavi_options['dotleft_text'] = __('...','wp-pagenavi');
+ $pagenavi_options['style'] = 1;
+ $pagenavi_options['num_pages'] = 5;
+ $pagenavi_options['always_show'] = 0;
+ add_option('pagenavi_options', $pagenavi_options, 'PageNavi Options');
+}
+?>
\ No newline at end of file
diff --git a/style.css b/style.css
index 73dfdd6..f570a3a 100644
--- a/style.css
+++ b/style.css
@@ -98,6 +98,15 @@ acronym, abbr {
border-bottom: 1px dashed #000;
}
+pre {
+ background: #eee;
+ padding: 5px;
+ border: 1px solid #999;
+ overflow: hidden;
+ margin: 0 0 15px 0;
+ font-family: Courier, Monospace;
+}
+
form {
margin: 0;
}
diff --git a/widgets/comicdate.php b/widgets/comicdate.php
index 9db5830..8bd9ac2 100644
--- a/widgets/comicdate.php
+++ b/widgets/comicdate.php
@@ -22,22 +22,27 @@ class widget_comicpress_comic_date extends WP_Widget {
echo $before_widget;
$title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
- if ( !empty( $title ) ) { echo $title; } ?>
+ if ( !empty( $title ) ) { echo $title; } ?>
'' ) );
+ $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'format' => '' ) );
$title = strip_tags($instance['title']);
+ $format = strip_tags($instance['format']);
+ if (empty($format)) $format = 'F jS, Y';
?>
-
+
+
+
+ + +