<?php
/**
 * The Sidebar containing the primary and secondary widget areas.
 */
?>

<div class="sidebar">

  <?php //get_archives(); ?>
                    <?php //get_archives('monthly', '', 'html', '', '', TRUE); ?>
                    <?php //get_archives('postbypost', '10', 'custom', '', '<br />'); ?>
                    <ul><?php // get_archives('postbypost','10','custom','<li>','</li>'); ?></ul>
                    <?php //wp_get_archives('type=monthly'); ?>
                    <?php //wp_get_archives('type=postbypost&limit=20&format=custom');  ?>

                    <?php /*
						 if( function_exists('collapsArch') ) {
						  collapsArch();
						 } else {
						  echo "<ul>\n";
						  wp_get_archives();
						  echo "</ul>\n";
						 } */
						?>  
    <ul class="testimonials">
    <?php $welcome = new WP_Query( 'category_name=testimonials&showposts=3' ); ?>  
        <?php while( $welcome->have_posts() ) : $welcome->the_post();  ?>
    
                      
            <li>
                <h4><?php the_title(); ?></h4>
                <!--<img src="<?php // echo catch_that_image(); ?>"  />-->
                <p>
                    <?php 
                        $content = get_the_content();
                        $content = strip_tags($content);
                        echo substr($content, 0, 150);
                     ?>
                </p>
           </li>
     
        
     <?php endwhile; wp_reset_postdata(); ?>
    </ul>

		<br class="clear" />
    
        
    <ul class="slist">	
        <?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?>
        <?php dynamic_sidebar( 'sidebar-3' ); ?>
        <?php endif; ?>
        
        <?php if ( !function_exists('dynamic_sidebar')
        || !dynamic_sidebar('sidebar1') ) : ?>
        <?php endif; ?>
        
        <?php if ( !function_exists('dynamic_sidebar')
        || !dynamic_sidebar('sidebar2') ) : ?>
        <?php endif; ?>
    </ul>

</div>