Project

General

Profile

Support #4026 » single-evaluation.php

Paul Hebert, 2015-04-28 12:53 PM

 
1
<?php get_header(); ?>
2

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

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

    
10
        <h1 class="entry-title"><?php single_post_title( ); ?>
11
</h1>
12
<h3><font color="grey">
13
<?php
14
// in post loop, display taxonomy 'Professor' terms for each post
15
$terms = wp_get_post_terms( $post->ID , 'Professor', '');
16
if ( !is_wp_error($terms) && $terms ) {
17
$term_text = 'Professor ';
18
    foreach ($terms as $term) {
19
      $term_text .='<a href="' . esc_attr(get_term_link($term, $taxonomy)) . '" title="' . sprintf( __( "View all posts in %s" ), $term->name ) . '" ' . '>' . $term->name.'</a> ';
20
    }
21
echo $term_text;
22
}
23
?>
24
</font></h3>
25
<h3><font color="grey">
26
<?php
27
// in post loop, display taxonomy 'Semester' terms for each post
28
$terms = wp_get_post_terms( $post->ID , 'Semester', '');
29
if ( !is_wp_error($terms) && $terms ) {
30
$term_text = '';
31
    foreach ($terms as $term) {
32
      $term_text .='<a href="' . esc_attr(get_term_link($term, $taxonomy)) . '" title="' . sprintf( __( "View all posts in %s" ), $term->name ) . '" ' . '>' . $term->name.'</a> ';
33
    }
34
echo $term_text;
35
}
36
?>
37
</font></h3> 
38
<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>
39
        
40
        <div class="entry-content clearfix">
41
		<?php the_content( __('<p>Read the rest of this entry &raquo;</p>', 'arras') ); ?>  
42
        <?php wp_link_pages(array('before' => __('<p><strong>Pages:</strong> ', 'arras'), 
43
			'after' => '</p>', 'next_or_number' => 'number')); ?>
44
		</div>
45

    
46
		<?php arras_postfooter() ?>
47

    
48
    </div>
49
    
50
	<?php arras_below_post() ?>
51
	
52
<?php endwhile; else: ?>
53

    
54
<?php arras_post_notfound() ?>
55

    
56
<?php endif; ?>
57

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

    
61
<?php get_sidebar(); ?>
62
<?php get_footer(); ?>
(2-2/2)