-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-ececlub_courses.php
39 lines (39 loc) · 1.18 KB
/
single-ececlub_courses.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php get_header(); ?>
<div class="page-container container-fluid">
<div class="row-fluid ">
<div class="col-md-7 col-md-offset-3">
<section class="page">
<div class="page-content">
<h1><?php the_title(); ?></h1>
<hr class="horizontal-rule">
<?php the_content(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<!-- TODO: Reformat -->
<?php
global $post;
$custom = get_post_custom($post->ID);
$course = $custom["course"][0];
$year = $custom["year"][0];
$lecture = $custom["lecture"][0];
$tutorial = $custom["tutorial"][0];
$difficulty = $custom["difficulty"][0];
?>
<table class="rating">
<tbody>
<tr>
<td>Lecture Value: <?php echo $lecture ?>/5</td>
<td>Tutorial Value: <?php echo $tutorial ?>/5</td>
<td>Relative Difficulty: <?php echo $difficulty ?>/5</td>
</tr>
</tbody>
</table>
<?php the_content(); ?>
<?php endwhile; ?>
<?php comments_template( '', true ); ?>
</div>
</section>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>