<?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() ?>>

        <h1 class="entry-title"><?php single_post_title( ); ?>
</h1>
<h3><font color="grey">
<?php
// in post loop, display taxonomy 'Professor' terms for each post
$terms = wp_get_post_terms( $post->ID , 'Professor', '');
if ( !is_wp_error($terms) && $terms ) {
$term_text = 'Professor ';
    foreach ($terms as $term) {
      $term_text .='<a href="' . esc_attr(get_term_link($term, $taxonomy)) . '" title="' . sprintf( __( "View all posts in %s" ), $term->name ) . '" ' . '>' . $term->name.'</a> ';
    }
echo $term_text;
}
?>
</font></h3>
<h3><font color="grey">
<?php
// in post loop, display taxonomy 'Semester' terms for each post
$terms = wp_get_post_terms( $post->ID , 'Semester', '');
if ( !is_wp_error($terms) && $terms ) {
$term_text = '';
    foreach ($terms as $term) {
      $term_text .='<a href="' . esc_attr(get_term_link($term, $taxonomy)) . '" title="' . sprintf( __( "View all posts in %s" ), $term->name ) . '" ' . '>' . $term->name.'</a> ';
    }
echo $term_text;
}
?>
</font></h3> 
<b>Click on a professor's name to view a list of that professor's evaluated courses OR click on a semester to see other evaluations from that semester</b>
        
        <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() ?>

    </div>
    
	<?php arras_below_post() ?>
	
<?php endwhile; else: ?>

<?php arras_post_notfound() ?>

<?php endif; ?>

<?php arras_below_content() ?>
</div><!-- #content -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>
