cleanup for 2.8.1.11

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-09-19 18:28:53 -07:00
parent fcf40e05ed
commit 7f241b7a48
4 changed files with 12 additions and 43 deletions

View File

@ -305,7 +305,7 @@ function get_terminal_post_in_category($categoryID, $first = true) {
* Find the first post in the storyline prior to the current one.
*/
function get_previous_storyline_start() {
if (($category_id = get_adjacent_storyline_category_id(true)) !== false) {
if (($category_id = get_adjacent_storyline_category_id(false)) !== false) {
return get_terminal_post_in_category($category_id);
}
return false;
@ -325,7 +325,7 @@ function get_previous_storyline_start_permalink() {
* Find the first post in the storyline following to the current one.
*/
function get_next_storyline_start() {
if (($category_id = get_adjacent_storyline_category_id()) !== false) {
if (($category_id = get_adjacent_storyline_category_id(true)) !== false) {
return get_terminal_post_in_category($category_id);
}
return false;

View File

@ -8,6 +8,15 @@
function display_blog_post() {
global $post, $wp_query, $authordata, $enable_related_posts, $enable_post_author_gravatar, $enable_post_calendar, $themepack_directory; ?>
<?php if (is_single()) { ?>
<div class="blognav">
<div class="nav-single">
<?php previous_post_link('%link','Previous', TRUE); ?>
<?php next_post_link('%link','Next', TRUE); ?>
</div>
</div>
<?php } ?>
<div class="clear"></div>
<div class="<?php comicpress_post_class(); ?>">
<div class="post-head"></div>
<div class="post" id="post-<?php the_ID() ?>">

View File

@ -1,32 +0,0 @@
<?php
/**
* Raw Format Shortcode
* Displays formatting in a raw output that bypasses the post formatting.
*
* example: [raw]This portion of text will not be automatically formatted by WP.[/raw]
*
* This is useful if you want to paste in your post code and other things.
*/
function my_formatter($content) {
$new_content = '';
$pattern_full = '{(\[raw\].*?\[/raw\])}is';
$pattern_contents = '{\[raw\](.*?)\[/raw\]}is';
$pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE);
foreach ($pieces as $piece) {
if (preg_match($pattern_contents, $piece, $matches)) {
$new_content .= $matches[1];
} else {
$new_content .= wptexturize(wpautop($piece));
}
}
return $new_content;
}
add_filter('the_content', 'my_formatter', 99);
?>

View File

@ -81,14 +81,6 @@ cite {
font-style: normal;
}
code {
padding: 10px;
display: block;
font-family: 'Courier New' , monospace;
border: 1px dotted #000;
overflow: scroll;
}
acronym, abbr, span.caps {
cursor: help;
}
@ -398,7 +390,7 @@ a.navi-comments:hover span {
color:#860b04;
}
.nav {
.nav,.blognav {
float: right;
font-size: 12px;
font-weight: bold;