PhP help (again!!!)

by endlesspsych

Hello can anyone help me here? Want to alter this code so that my sidebar doesn’t appear on any page other than the front page of my blog

</div><!-- #container -->

<?php wp_reset_query() ?>

<div id="primary" class="aside main-aside sidebar">
<?php arras_above_sidebar() ?>  
	<ul class="xoxo">
		<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Primary Sidebar') ) : ?>
			<li class="widgetcontainer clearfix">
				<h5 class="widgettitle"><?php _e('Welcome to Arras!', 'arras') ?></h5>
				<div class="widgetcontent">
				<div class="textwidget">
					<p><?php _e('Arras is a WordPress theme designed for news or review sites with lots of customisable features.', 'arras') ?></p>
				</div>
				</div>
			</li>
			<li class="widgetcontainer clearfix">
				<h5 class="widgettitle"><?php _e('Recent Posts', 'arras') ?></h5>
				<div class="widgetcontent">
<?php 
				$r = new WP_Query(array('showposts' => 10, 'what_to_show' => 'posts', 'nopaging' => 0, 'post_status' => 'publish', 'caller_get_posts' => 1));
				if ($r->have_posts()) :
?>
				<ul>
				<?php while ($r->have_posts()) : $r->the_post(); ?>
				<li><a href="<?php the_permalink() ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?> </a></li>
				<?php endwhile ?>			
				</ul>
<?php
				wp_reset_query();
				endif;
?>
				</div>
			</li>
			<li class="widgetcontainer clearfix">
				<h5 class="widgettitle"><?php _e('Tag Cloud', 'arras') ?></h5>
				<div class="tags widgetcontent">
				<?php wp_tag_cloud(); ?>
				</div>
			</li>
		<?php endif; ?>
	</ul>		
</div><!-- #primary -->
<div id="secondary" class="aside main-aside sidebar">
    <ul class="xoxo">
        <!-- Widgetized sidebar, if you have the plugin installed.  -->
        <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Secondary Sidebar #1') ) : ?>
		<li></li>		
        <?php endif; ?>
    </ul>
	<?php arras_below_sidebar() ?>  
</div><!-- #secondary -->
Or is this something I should do from where this is called rather than in the sidebar file itself?
As it is appears here?
<?php get_header(); ?>

<div id="content" class="section">
<?php arras_above_content() ?>

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
	<?php arras_above_post() ?>
	<div id="post-<?php the_ID() ?>" <?php arras_single_post_class() ?>>

        <?php arras_postheader() ?>
        
        <div class="entry-content clearfix">
		<?php the_content( __('<p>Read the rest of this entry &raquo;</p>', 'arras') ); ?>  
        <?php wp_link_pages(array('before' => __('<p><strong>Pages:</strong> ', 'arras'), 
			'after' => '</p>', 'next_or_number' => 'number')); ?>
		</div>

		<?php arras_postfooter() ?>

        <?php 
		if ( arras_get_option('display_author') ) {
			arras_post_aboutauthor();
		}
        ?>
    </div>
    
	<?php arras_below_post() ?>
	<a name="comments"></a>
    <?php comments_template('', true); ?>
	<?php arras_below_comments() ?>
    
<?php endwhile; else: ?>

<?php arras_post_notfound() ?>

<?php endif; ?>

<?php arras_below_content() ?>
</div><!-- #content -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>
Advertisements