diff --git a/ceo-config.php b/ceo-config.php
index 91de44a..37cf1d4 100644
--- a/ceo-config.php
+++ b/ceo-config.php
@@ -44,6 +44,7 @@ if ( isset($_POST['_wpnonce']) && wp_verify_nonce($_POST['_wpnonce'], 'update-op
$tab = 'general';
update_option('comiceasel-config', $ceo_options);
}
+
if ($_REQUEST['action'] == 'ceo_save_navigation') {
foreach (array(
@@ -70,6 +71,26 @@ if ( isset($_POST['_wpnonce']) && wp_verify_nonce($_POST['_wpnonce'], 'update-op
$tab = 'navigation';
update_option('comiceasel-config', $ceo_options);
}
+
+ if ($_REQUEST['action'] == 'ceo_save_archive') {
+
+/* foreach (array(
+ ) as $key) {
+ if (isset($_REQUEST[$key]))
+ $ceo_options[$key] = wp_filter_nohtml_kses($_REQUEST[$key]);
+ } */
+
+ foreach (array(
+ 'include_comics_in_blog_archive'
+ ) as $key) {
+ if (!isset($_REQUEST[$key])) $_REQUEST[$key] = 0;
+ $ceo_options[$key] = (bool)( $_REQUEST[$key] == 1 ? true : false );
+ }
+
+ $tab = 'archive';
+ update_option('comiceasel-config', $ceo_options);
+ }
+
if ($tab) { ?>
@@ -82,7 +103,8 @@ if ( isset($_POST['_wpnonce']) && wp_verify_nonce($_POST['_wpnonce'], 'update-op
__('General', 'comiceasel'),
- 'navigation' => __('Navigation', 'comiceasel')
+ 'navigation' => __('Navigation', 'comiceasel'),
+ 'archive' => __('Archive', 'comiceasel')
);
if (empty($tab)) { $tab = array_shift(array_keys($tab_info)); }
diff --git a/comiceasel.php b/comiceasel.php
index acbcac7..8f8b772 100644
--- a/comiceasel.php
+++ b/comiceasel.php
@@ -3,7 +3,7 @@
Plugin Name: Comic Easel
Plugin URI: http://comiceasel.com
Description: Comic Easel allows you to incorporate a WebComic using the WordPress Media Library functionality with Navigation into almost all WordPress themes. With just a few modifications of adding injection do_action locations into a theme, you can have the theme of your choice display and manage a webcomic.
-Version: 1.0.11
+Version: 1.0.12
Author: Philip M. Hofer (Frumph)
Author URI: http://frumph.net/
@@ -298,7 +298,8 @@ function ceo_load_options($reset = false) {
'thumbnail_size_for_direct_rss' => 'full',
'thumbnail_size_for_archive' => 'large',
'graphic_navigation_directory' => 'default',
- 'disable_mininav' => false
+ 'disable_mininav' => false,
+ 'include_comics_in_blog_archive' => false
) as $field => $value) {
$ceo_config[$field] = $value;
}
diff --git a/functions/filters.php b/functions/filters.php
index 6d4a52b..eacd8a3 100644
--- a/functions/filters.php
+++ b/functions/filters.php
@@ -4,7 +4,7 @@
add_filter('request', 'ceo_rss_request'); // Add comics to the main RSS
add_filter('the_content_feed','ceo_insert_comic_into_feed'); // Insert the comic image into the rss
add_filter('the_excerpt_rss','ceo_insert_comic_into_feed');
-add_filter('the_content_archive', 'ceo_insert_comic_into_archive'); // Insert the comic into the archive and search pages
+add_filter('the_content', 'ceo_insert_comic_into_archive'); // Insert the comic into the archive and search pages
add_filter('the_excerpt', 'ceo_insert_comic_into_archive');
add_filter('previous_post_rel_link', 'ceo_change_prev_rel_link_two', $link); // change the rel links for comic pages
add_filter('next_post_rel_link', 'ceo_change_next_rel_link_two', $link);
@@ -64,7 +64,7 @@ function ceo_change_next_rel_link_two($link) {
}
function ceo_query_post_type($query) {
- if ( ( is_tag() || is_archive()) && empty( $query->query_vars['suppress_filters'] ) ) {
+ if ( ( is_tag() || (is_archive() && ceo_pluginfo('include_comics_in_blog_archive'))) && empty( $query->query_vars['suppress_filters'] ) ) {
$post_type = get_query_var('post_type');
if ( is_array($post_type) && !empty($post_type) ) {
$post_type = array_merge($post_type, array('comic'));
diff --git a/languages/default.mo b/languages/default.mo
index 45f6312..c2cbdbd 100644
Binary files a/languages/default.mo and b/languages/default.mo differ
diff --git a/languages/default.po b/languages/default.po
index a7e5e79..a4abed6 100644
--- a/languages/default.po
+++ b/languages/default.po
@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Comic Easel\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-07-05 04:12-0800\n"
-"PO-Revision-Date: 2012-07-05 04:12-0800\n"
+"POT-Creation-Date: 2012-07-05 11:07-0800\n"
+"PO-Revision-Date: 2012-07-05 11:07-0800\n"
"Last-Translator: Philip M. Hofer (Frumph) \n"
"Language-Team: Frumph Agencies \n"
"MIME-Version: 1.0\n"
@@ -17,7 +17,7 @@ msgstr ""
"X-Poedit-SearchPath-0: ..\n"
#: ../ceo-admin.php:16
-#: ../ceo-config.php:126
+#: ../ceo-config.php:148
msgid "Comic Easel"
msgstr ""
@@ -42,39 +42,43 @@ msgstr ""
msgid "Comic Easel Settings RESET!"
msgstr ""
-#: ../ceo-config.php:74
+#: ../ceo-config.php:95
msgid "Comic Easel Settings SAVED!"
msgstr ""
-#: ../ceo-config.php:84
+#: ../ceo-config.php:105
msgid "General"
msgstr ""
-#: ../ceo-config.php:85
+#: ../ceo-config.php:106
msgid "Navigation"
msgstr ""
-#: ../ceo-config.php:126
+#: ../ceo-config.php:107
+msgid "Archive"
+msgstr ""
+
+#: ../ceo-config.php:148
msgid "created, developed and maintained by"
msgstr ""
-#: ../ceo-config.php:127
+#: ../ceo-config.php:149
msgid "For technical assistance go to the"
msgstr ""
-#: ../ceo-config.php:127
+#: ../ceo-config.php:149
msgid "Frumph.NET Forums."
msgstr ""
-#: ../ceo-config.php:128
+#: ../ceo-config.php:150
msgid "If you like the Comic Easel plugin, please donate. It will help in developing new features and versions."
msgstr ""
-#: ../ceo-config.php:154
+#: ../ceo-config.php:176
msgid "French Translation by LiAn"
msgstr ""
-#: ../ceo-config.php:162
+#: ../ceo-config.php:184
msgid "German Translation by Sarah Burrini"
msgstr ""
@@ -356,7 +360,7 @@ msgstr ""
msgid "Comic Easel Sidebar Location"
msgstr ""
-#: ../comiceasel.php:354
+#: ../comiceasel.php:355
msgid "Comic Easel - Test Information"
msgstr ""
@@ -489,6 +493,24 @@ msgstr ""
msgid "Permanent Link:"
msgstr ""
+#: ../options/archive.php:11
+msgid "Archive Options"
+msgstr ""
+
+#: ../options/archive.php:15
+msgid "Include the comics in the blog archive?"
+msgstr ""
+
+#: ../options/archive.php:20
+msgid "When this is enabled, when you search through the year/date/month and other archiving WordPress functions, the comic will appear with the regular blog posts. This feature automatically works for all tags already."
+msgstr ""
+
+#: ../options/archive.php:31
+#: ../options/general.php:130
+#: ../options/navigation.php:142
+msgid "Save Settings"
+msgstr ""
+
#: ../options/general.php:11
msgid "Configuration"
msgstr ""
@@ -577,11 +599,6 @@ msgstr ""
msgid "NOTE: Edit a post, click update on it for the feeds to refresh with new copies; to see changes."
msgstr ""
-#: ../options/general.php:130
-#: ../options/navigation.php:142
-msgid "Save Settings"
-msgstr ""
-
#: ../options/navigation.php:11
msgid "Navigation Options"
msgstr ""
@@ -864,31 +881,31 @@ msgstr ""
msgid "Comic Easel - Thumbnail"
msgstr ""
-#: ../widgets/thumbnail.php:77
+#: ../widgets/thumbnail.php:81
msgid "Which Chapter?"
msgstr ""
-#: ../widgets/thumbnail.php:96
+#: ../widgets/thumbnail.php:100
msgid "Get first in chapter instead?"
msgstr ""
-#: ../widgets/thumbnail.php:97
+#: ../widgets/thumbnail.php:101
msgid "Display a random Thumbnail?"
msgstr ""
-#: ../widgets/thumbnail.php:98
+#: ../widgets/thumbnail.php:102
msgid "*note: Random thumbnail overrides the get first in chapter option."
msgstr ""
-#: ../widgets/thumbnail.php:99
+#: ../widgets/thumbnail.php:103
msgid "Display how many thumbnails?"
msgstr ""
-#: ../widgets/thumbnail.php:100
+#: ../widgets/thumbnail.php:104
msgid "Include comic title?"
msgstr ""
-#: ../widgets/thumbnail.php:101
+#: ../widgets/thumbnail.php:105
msgid "Add centering html?"
msgstr ""
diff --git a/options/archive.php b/options/archive.php
new file mode 100644
index 0000000..db7fb40
--- /dev/null
+++ b/options/archive.php
@@ -0,0 +1,40 @@
+
\ No newline at end of file
diff --git a/readme.txt b/readme.txt
index dc5657f..a430a37 100644
--- a/readme.txt
+++ b/readme.txt
@@ -3,7 +3,7 @@ Contributors: frumph
Tags: comiceasel, easel, webcomic, comic, webcomic
Requires at least: 3.0
Tested up to: 3.4
-Stable tag: 1.0.11
+Stable tag: 1.0.12
Donate link: http://frumph.net
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -120,6 +120,9 @@ The comic navigation widget is only seen if you have the comic sidebar's enabled
== Changelog ==
+= 1.0.12 =
+Never program while mad at the world ;/ apparently you make some mistakes in backwards compatibility.
+
= 1.0.11 =
Removed URLRewrite /comic/#date#/ code since it was causing behavior problems
Fixed the click to next and mini navigation to navigate per the setting in the config all chapters or just in chapter
@@ -163,7 +166,7 @@ Updated: 05/26/2012 5:25pm Pacific
== Upgrade Notice ==
-= 1.0.11 =
+= 1.0.12 =
You should go to settings -> permalinks and click save again.