-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-sfwd-assignment.php
59 lines (54 loc) · 1.72 KB
/
single-sfwd-assignment.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/**
* The template for displaying single sfwd topic
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package BuddyBoss_Theme
*/
get_header();
$course_id = get_post_meta($post->ID,"course_id",true);
?>
<div id="primary" class="content-area bb-grid-cell">
<main id="main" class="site-main has-medium-margin-top">
<h1>Tarea de <i><?php echo get_the_author();?> </i></h1>
<table class="table is-bordered">
<thead>
<tr>
<th>Curso</th>
<th>Lección</th>
<th>Instructor</th>
</tr>
</thead>
<tbody>
<tr>
<td><?php echo get_the_title($course_id)?></td>
<td><?php echo get_post_meta($post->ID,"lesson_title",true)?></td>
<td>
<div class="level">
<div class="level-left">
<?php foreach (get_field("teachers",$course_id) as $teacher) { ?>
<div class="level-item">
<div class="teacher-item small">
<?php echo get_the_post_thumbnail( $teacher->ID, 'tiny', array( 'class' => 'circle multi tiny' ) ); ?>
<div class="content">
<h5 class="is-marginless"><strong> <?php echo get_the_title($teacher->ID);?></strong></h5>
<h6 class="is-marginless"><?php echo get_field("subtitle",$teacher->ID);?></h6>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</td>
</tr>
</tbody>
</table>
<?php
the_post();
do_action( THEME_HOOK_PREFIX . '_single_template_part_content', get_post_type() );
?>
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_footer();