Help! I just copied the Kubrick theme and started modifying from there and all of the sudden the sidebar and footer do not load up. No error message, nothing.. if you look at the source you will see that the output just gets cut clean after index.php
http://krcla.org/blog/?wptheme=krc09
index.php
<?php get_header(); ?>
<body class="mediawiki ns-0 ltr home">
<div id="globalWrapper">
<div id="column-content">
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div id="bodyContent">
<?php edit_post_link('edit', '<div class="editsection" style="float:right;margin-left:5px;">
[', ']</div>'); ?>
<h3>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h3>
<div id="contentSub">/"><?php the_time('F jS'); ?>, /"><?php the_time('Y'); ?> | <?php if ('open' == $post->ping_status) { ?>" rel="trackback" title="<?php trackback_url(true); ?>">Trackback<?php } ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></div>
<?php the_excerpt('Read the rest of this entry »'); ?>
<p class="postmetadata"><?php the_tags('Tags: ', ', ', '
'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
<br clear="both" />
</div></div>
<div class="visualClear"></div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
sidebar.php
<div id="column-one">
<?php /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
<div class="portlet" id="p-personal">
<h5>Personal tools</h5>
<div class="pBody">
-
<?php wp_register('<li id="pt-preferences">,''); ?>
<?php global $user_login; get_currentuserinfo();
if ($user_login) { ?>
<li id="pt-logout"> ">Log out
<?php } else { ?>
<?php
// find out the domain:
$domain = $_SERVER['HTTP_HOST'];
// find out the path to the current file:
$path = $_SERVER['SCRIPT_NAME'];
// find out the QueryString:
$queryString = $_SERVER['QUERY_STRING'];
// put it all together:
$url = "http://" . $domain . $_SERVER['REQUEST_URI'];
?>
<li id="pt-anonlogin">">Log in
<?php } ?>
</div>
</div>
<div class="portlet" id="p-logo">
</div>
<script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
<div class='generated-sidebar portlet' id='p-navigation'>
<h5>Navigation</h5>
<div class='pBody'>
-
<li id="n-Get-Active">Get Active
<li id="n-Get-Help">Get Help
<li id="n-Resources">Resources
</div>
</div>
<div class='generated-sidebar portlet' id='p-smallmenu'>
<h5>smallmenu</h5>
<div class='pBody'>
-
<li id="n-About-KRC">About KRC
<li id="n-Contact">Contact
<li id="n-Media-Room">Media Room
</div>
</div>
<div id="p-search" class="portlet">
<h5><label for="searchInput">Search</label></h5>
<div id="searchBody" class="pBody">
<form action="/en2/Special:Search" id="searchform"><div>
<input id="searchInput" name="search" type="text" title="Search Korean Resource Center [f]" accesskey="f" value="" />
<input type='submit' name="go" class="searchButton" id="searchGoButton" value="Go" title="Go to a page with this exact name if exists" />
<input type='submit' name="fulltext" class="searchButton" id="mw-searchButton" value="Search" title="Search the pages for this text" />
</div></form>
</div>
</div>
<div id="p-lang" class="portlet">
<h5>In other languages</h5>
<div class="pBody">
</div>
</div>
<div class='generated-sidebar portlet' id='p-Toolbox2'>
<h5>Toolbox2</h5>
<div class='pBody'>
-
<li id="n-Tools">Tools
</div>
</div>
<?php endif; ?>
</div>
functions.php
<?php
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '<div id="p-%1$s" class="porlet">',
'after_widget' => '</div>',
'before_title' => '<h5><div class="pBody">',
'after_title' => '</div></h5>',
));
function is_lang($lang_tested)
{
if ($lang_tested=='') {
if ( (is_category('2')) OR (is_category('8')) ) { return true; }
}
elseif
(is_home()) {
if ($lang_test=='ko') { return true; } else {return false; }
}
elseif
( (is_single()) OR (is_page('immigrant')) OR (is_page('health')) OR (is_page('civic')) OR (is_page('media')) )
{
if ( ($lang_tested=='ko') AND (in_category('2')) ) { return true; }
elseif (($lang_tested=='en') AND (in_category('8')) ) { return true; }
else { return false; }
} elseif
(is_category())
{
if (($lang_tested=='ko') AND (is_category('2')) ) { return true; }
elseif (($lang_tested=='en') AND (is_category('8')) ) { return true; }
else { return false; }
} elseif
(is_page())
{
if (($lang_tested=='ko') AND ( (is_page('korean')) OR (is_page('calendar-ko')) OR (is_page('media-ko')) )) { return true; }
elseif (($lang_tested=='en') AND ( (is_page('english')) OR (is_page('calendar-en')) OR (is_page('media-en')) )) { return true; }
else { return false; }
}
}
function lang ($ko, $en)
{
if (is_lang('ko')) { echo $ko; }
elseif (is_lang('en')) { echo $en; }
else { echo $en; }
}
?>