<div id="middlebar">
<?php if (function_exists('dynamic_sidebar')) {dynamic_sidebar(2); } ?>
<?php
// let's generate info appropriate to the page being displayed
if (get_settings('home')) {
// Front page - Main category
query_posts('category_name=main&post_per_page=');
if (have_posts()) : while (have_posts()) : the_post();
echo "<div id='post' class='post'>";
echo "<h1 class='user-6'>";
the_title();
echo "</h1>";
the_content();
echo "</div>";
endwhile;
endif;
} elseif (get_settings('about')) {
//
echo "<h1 class='user-6'><p>about</p></h1>";
} elseif (is_page('downloads')) {
//
echo "<h1 class='user-6'><p>downloads</p></h1>";
} elseif (is_page('gallery')) {
//
echo "<h1 class='user-6'><p>gallery</p></h1>";
} elseif (is_page('press')) {
// Press
query_posts('category_name=press&post_per_page=');
if (have_posts()) : while (have_posts()) : the_post();
echo "<div id='post' class='post'>";
echo "<h1 class='user-6'>";
the_title();
echo "</h1>";
the_content();
echo "</div>";
endwhile;
endif;
} elseif (is_page('contact')) {
// widget on
echo "<h1 class='user-6'><p>contact</p></h1>";
} else {
// catch-all
echo "catch-all";
} //
?>
</div>