-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent-archive.php
More file actions
58 lines (52 loc) · 1.89 KB
/
content-archive.php
File metadata and controls
58 lines (52 loc) · 1.89 KB
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
<div <?php post_class(); ?>>
<article>
<?php do_action( 'archive_post_before' ); ?>
<?php ct_period_featured_image(); ?>
<div class="post-container">
<div class='post-header'>
<?php do_action( 'sticky_post_status' ); ?>
<h2 class='post-title'>
<a href="<?php echo esc_url( get_permalink() ); ?>"><?php
if(in_array('Virtual', get_field('class_format'))):
?>
<span class="dashicons dashicons-laptop"></span>
<?php
endif;
if(in_array('In Person', get_field('class_format'))):
?>
<span class="dashicons dashicons-admin-users"></span>
<?php
endif;
the_title();
?>
</a>
</h2>
</div>
<div class="post-content">
<ul class="no-bullets">
<li><b>Address:</b> <?php the_field('address'); ?> <?php the_field('city'); ?>, <?php the_field('state'); ?> <?php the_field('zip'); ?></li>
<?php if( get_field('class_format') ): ?>
<li><b>Format:</b> <?php the_field('class_format'); ?></li>
<?php endif ?>
<?php if( get_field('class_type') ): ?>
<li><b>Type:</b> <?php the_field('class_type'); ?></li>
<?php endif ?>
<?php if( get_field('level') ): ?>
<li><b>Level:</b> <?php the_field('level'); ?></li>
<?php endif ?>
<?php if( get_field('cost') ): ?>
<li><b>Cost:</b> <?php the_field('cost'); ?></li>
<?php endif ?>
<?php if( get_field('days_offered') ): ?>
<li><b>Days:</b> <?php the_field('days_offered'); ?></li>
<?php endif ?>
<?php if( get_field('time_of_day') ): ?>
<li><b>Times:</b> <?php the_field('time_of_day'); ?></li>
<?php endif ?>
</ul>
<a href="<?php echo esc_url( get_permalink() ); ?>">More details...</a>
</div>
</div>
</article>
<?php do_action( 'archive_post_after' ); ?>
</div>