ModXBlog theme problem
-
I have a problem with this theme. When I am logged in, the sidebar displays correctly on a single post view. When I’m logged off, the sidebar for a single post view displays incorrectly below the post. Anyone have any suggestions as to why this would be doing this?
Code from the single.php reads as follows:
[code]
<?php get_header(); ?><div id="content">
<?php if (class_exists('bcn_breadcrumb'))
{ echo '<div class="breadcrumb">';
// New breadcrumb object
$mybreadcrumb = new bcn_breadcrumb;
// Assemble the breadcrumb
$mybreadcrumb->assemble();
// Display the breadcrumb
$mybreadcrumb->display(); echo '</div>';
} ?> <div class="postwrap">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?><div class="post" id="post-<?php the_ID(); ?>">
<div class="posthead">
<h1>" href="<?php the_permalink() ?>" rel="bookmark">
<?php the_title(); ?>
</h1>
<div class="authorbox">-
<li class="postauthor">Written by
<?php the_author() ?>
<?php edit_post_link('Edit'); ?><li class="postdate">Posted <?php the_date(); ?> at <?php the_time(); ?>
</div>
</div>
<div style="clear:left;"></div>
<div class="postcontent"><?php the_content('Read the rest of this entry »'); ?></div>
<div class="postinfo">
<div class="postcat" style="width:560px;">Filed under:
<?php the_category(', ') ?>
</div>
</div>
</div>
<br clear="all" />
<?php
if (function_exists('similar_posts')) {
echo ('<h4>Related Posts</h4><div class="rel-posts">');
similar_posts();
echo ('</div>');
}
?>
<ul class="Note">
<li class="NoteRss">
<?php comments_rss_link(__('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post')); ?><?php if ( pings_open() ) : ?>
<li class="NoteTrackBack">" rel="trackback">
<?php _e('TrackBack <abbr title="Uniform Resource Identifier">URI</abbr>'); ?>
<?php endif; ?>
<?php comments_template(); ?>
<?php endwhile; else : ?>
<h2>
<?php _e('Not Found'); ?>
</h2>
<p>
<?php _e('Sorry, but the page you requested cannot be found.'); ?>
</p>
<?php endif; ?>
</div></div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
[/code]
- The topic ‘ModXBlog theme problem’ is closed to new replies.