This is the home.php file. I want the home page ordered as sidebar-home -- homepage -- sidebar. I was thinking about moving the code (highlighted in red at bottom of file to the move here ?? position).
If I am way off here, I will have to spend some time brushing up on php. Thanks.
<?php get_header(); ?>
<div id="content">
move here ???
<div id="homepage">
<?php /*Check for the 'gallery_styles' function. If it's there, then include it. If not, do nothing*/ ?>
<?php if (function_exists('gallery_styles')) : ?>
<div id="homepagetop">
<div class="featuredtop">
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
</div>
</div>
<?php endif; ?>
<div class="homepagenews">
<h3><?php $featcat = cat_id_to_name(get_theme_mod('featured_top_left')) ; echo $featcat; ?></h3>
<?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_left') ."&showposts=".get_theme_mod('featured_top_left_nu m')); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img class="thumb" src="<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&h=<?php echo get_theme_mod('featured_top_left_thumb_height'); ?>&w=<?php echo get_theme_mod('featured_top_left_thumb_width'); ?>&zc=1" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<?php endif; ?>
<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<?php the_content_limit(175, ""); ?>
<a rel="nofollow" href="<?php the_permalink() ?>"><?php _e("Read more of this article", 'studiopress'); ?></a>
<hr/>
<?php endwhile; ?>
<p class="textright"><b><a href="<?php echo get_category_link(get_theme_mod('featured_top_left ')); ?>" rel="bookmark"><?php _e("Read More Posts in", 'studiopress'); ?> <?php echo $featcat; ?></a></b></p>
</div>
</div>
<?php include(TEMPLATEPATH."/sidebar_home.php");?>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
|