Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

$is_comic needed to be set in the archive.php before hand, was giving…

… notice

thanks to @generaltekno for finding bug with footer-text.php with the scroll to top, adjusted it to be enable_scroll_to_top
again thanks to @generaltekno for finding the facebook like widget needing one of the facebook likes active, now changed to check if the widget is active as well
fixed the archive.php to check for non-permalinked cat= properly

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
  • Loading branch information...
commit 2feda70bc550d28f61a53570a0be2de34b32333f 1 parent 502abca
Philip M. Hofer (Frumph) authored
View
3  archive.php
@@ -2,11 +2,12 @@
get_header();
// set to empty
-$order = $post_count = $theCatID = '';
+$order = $post_count = $theCatID = $is_comic = '';
if (is_category()) {
$theCatID = get_term_by( 'slug', $wp_query->query_vars['category_name'], 'category' );
if (!empty($theCatID))
$theCatID = $theCatID->term_id;
+ if (isset($wp_query->query_vars['cat'])) $theCatID = (int)$wp_query->query_vars['cat'];
}
$category_thumbnail_postcount = comicpress_themeinfo('category_thumbnail_postcount');
View
8 changelog.txt
@@ -1,4 +1,10 @@
-2.9.2.29
+2.9.2.29.1
+$is_comic needed to be set in the archive.php before hand, was giving notice
+thanks to @generaltekno for finding bug with footer-text.php with the scroll to top, adjusted it to be enable_scroll_to_top
+again thanks to @generaltekno for finding the facebook like widget needing one of the facebook likes active, now changed to check if the widget is active as well
+fixed the archive.php to check for non-permalinked cat= properly
+
+2.9.2.29
revamped the syndication comic into the rss to allow for a filter that can be used to add info to the syndication
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
View
6 functions.php
@@ -181,7 +181,7 @@ function __comicpress_init() {
wp_enqueue_script('cookiejar', get_template_directory_uri() . '/js/cookiejar.js', array('prototype'));
wp_enqueue_script('bookmark', get_template_directory_uri() . '/js/bookmark.js', array('prototype', 'cookiejar'));
}
- if (comicpress_themeinfo('facebook_like_blog_post') || comicpress_themeinfo('facebook_like_comic_post'))
+ if (is_active_widget('comicpress_facebook_like_widget', false, 'comicpress_facebook_like_widget', true) || comicpress_themeinfo('facebook_like_blog_post') || comicpress_themeinfo('facebook_like_comic_post'))
wp_enqueue_script('facebook', 'http://connect.facebook.net/en_US/all.js#xfbml=1', array(), false, true);
}
@@ -482,7 +482,7 @@ function comicpress_load_options() {
$comicpress_options[$field] = $value;
}
- add_option('comicpress-options', $comicpress_options, '', false);
+ update_option('comicpress-options', $comicpress_options);
}
return $comicpress_options;
}
@@ -498,7 +498,7 @@ function comicpress_themeinfo($whichinfo = null) {
$comicpress_coreinfo = wp_upload_dir();
$comicpress_addinfo = array(
'upload_path' => get_option('upload_path'),
- 'version' => '2.9.2.29',
+ 'version' => '2.9.2.29.1',
'siteurl' => trailingslashit(get_option('siteurl')),
'home' => trailingslashit(home_url()),
'comiccat' => $comiccat,
View
2  functions/footer-text.php
@@ -11,7 +11,7 @@ function comicpress_footer_text() {
$output .= "<span class=\"footer-pipe\">|</span> ";
$output .= "Subscribe: <a href=\"" . get_bloginfo('rss2_url') ."\">RSS</a>\r\n";
$output .= "</span>\r\n";
- if (!comicpress_themeinfo('disable_scroll_to_top')) {
+ if (!comicpress_themeinfo('enable_scroll_to_top"')) {
$output .= "<span class=\"footer-uptotop\">";
$output .= "<span class=\"footer-pipe\">|</span> ";
$output .= "<a href=\"#outside\" onclick=\"scrollup(); return false;\">".__('Back to Top &uarr;','comicpress')."</a>";

0 comments on commit 2feda70

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