diff --git a/ceo-config.php b/ceo-config.php
index 5daa844..9ef9bf8 100644
--- a/ceo-config.php
+++ b/ceo-config.php
@@ -1,13 +1,35 @@
@@ -55,7 +55,7 @@ if (!function_exists('ceo_display_comic_navigation')) {
}
function ceo_display_comic_swf($post, $comic) {
- $file_url = ceo_pluginfo('base_url') .'/' . ceo_clean_filename($comic);
+ $file_url = ceo_pluginfo('baseurl') .'/' . ceo_clean_filename($comic);
$height = get_post_meta( $post->ID, "fheight", true );
$width = get_post_meta( $post->ID, "fwidth", true );
if (empty($height)) $height = '300';
@@ -87,10 +87,10 @@ function ceo_init_comic_swf() {
wp_enqueue_script('swfobject', '', array(), false, true);
}
-// This function will let authors who want to use comic easel as a way to output their books/text in a comic area as a page.
+// This function will let authors who want to use comicpress as a way to output their books/text in a comic area as a page.
function ceo_display_comic_text($comic) {
- if (file_exists(ceo_pluginfo('base_path') . '/' .$comic)) {
- $output = nl2br(file_get_contents(ceo_pluginfo('base_path') . '/' .$comic));
+ if (file_exists(ceo_pluginfo('basedir') . '/' .$comic)) {
+ $output = nl2br(file_get_contents(ceo_pluginfo('basedir') . '/' .$comic));
}
return apply_filters('ceo_display_comic_text', $output);
}
@@ -120,7 +120,7 @@ function ceo_display_comic_thumbnail($type = 'small', $override_post = null, $us
$thumbnail = array();
if (!empty($thumb_found)) {
foreach ($thumb_found as $thumb) {
- $thumbnail[] = ceo_pluginfo('base_url') . '/' . ceo_clean_filename($thumb);
+ $thumbnail[] = ceo_pluginfo('baseurl') . '/' . ceo_clean_filename($thumb);
}
}
}
@@ -153,7 +153,7 @@ function ceo_display_comic_thumbnail($type = 'small', $override_post = null, $us
// TODO: Add the hovertext - rascal code and click to next INSIDE this.
function ceo_display_comic_image($post, $comic) {
- $file_url = ceo_pluginfo('base_url') .'/'. ceo_clean_filename($comic);
+ $file_url = ceo_pluginfo('baseurl') .'/'. ceo_clean_filename($comic);
if (ceo_pluginfo('rascal_says')) {
$alt_text = get_the_title($post);
} else {
@@ -167,7 +167,6 @@ function ceo_display_comic_image($post, $comic) {
function ceo_display_comic() {
global $post;
$comics = get_comic_path('comic', $post);
- $output = '';
if (is_array($comics)) {
$count = 1;
$outputlist = '';
@@ -287,7 +286,7 @@ function get_comic_path($folder = 'comic', $override_post = null, $filter = 'def
case "comic": default: $subfolder_to_use = ceo_pluginfo('comic_folder'); break;
}
- $folder_to_use = ceo_pluginfo('base_path') . '/' . $subfolder_to_use;
+ $folder_to_use = ceo_pluginfo('basedir') . '/' . $subfolder_to_use;
// if (!file_exists($folder_to_use . '/' . $comicfile) && $folder !== 'comic')
// $subfolder_to_use = ceo_pluginfo('comic_folder');
@@ -320,25 +319,25 @@ function get_comic_path($folder = 'comic', $override_post = null, $filter = 'def
$newresults = array();
foreach ($results as $result) {
// Strip the base directory off.
- $newresults[] = str_replace(ceo_pluginfo('base_path'), '', $result);
+ $newresults[] = str_replace(ceo_pluginfo('basedir'), '', $result);
}
return $newresults;
} else {
// fallback to the comics directory
- $folder_to_use = ceo_pluginfo('base_path') . '/' . ceo_pluginfo('comic_folder');
+ $folder_to_use = ceo_pluginfo('basedir') . '/' . ceo_pluginfo('comic_folder');
if (count($results = glob("${folder_to_use}/${filter_with_date}")) > 0) {
$newresults = array();
foreach ($results as $result) {
// Strip the base directory off.
- $newresults[] = str_replace(ceo_pluginfo('base_path'), '', $result);
+ $newresults[] = str_replace(ceo_pluginfo('basedir'), '', $result);
}
return $newresults;
}
}
}
- $comic_pathfinding_errors[] = sprintf(__("Unable to find the file in the
%s folder that matched the pattern
%s. Check your WordPress and ComicPress settings.", 'comiceasel'), $folder_to_use, $filter_with_date);
+ $comic_pathfinding_errors[] = sprintf(__("Unable to find the file in the
%s folder that matched the pattern
%s. Check your WordPress and ComicPress settings.", 'comicpress'), $folder_to_use, $filter_with_date);
return false;
}
@@ -354,7 +353,7 @@ function get_comic_url($folder = 'comic', $override_post = null, $filter = 'defa
if (($results = get_comic_path($folder, $override_post, $filter)) !== false) {
$newresults = array();
foreach ($results as $result) {
- $newresults[] = ceo_pluginfo('base_url') .'/'. $result;
+ $newresults[] = ceo_pluginfo('baseurl') .'/'. $result;
}
return $newresults;
}
diff --git a/functions/injections.php b/functions/injections.php
index 2031aca..55bf65f 100644
--- a/functions/injections.php
+++ b/functions/injections.php
@@ -22,7 +22,7 @@ function ceo_edit_post_category($post_category) {
return $post_category;
}
-add_action('easel-content-area', 'ceo_display_comic_area');
+// add_action('easel-content-area', 'ceo_display_comic_area');
function ceo_display_comic_area() {
global $wp_query;
@@ -51,11 +51,9 @@ function ceo_display_comic_wrapper() {
Characters: ';
- $sep = ', ';
- $after = '
';
- $output = get_the_term_list( $post->ID, 'characters', $before, $sep, $after );
- return $output;
-}
-
-function ceo_display_locations() {
- global $post;
- $before = '