-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive-services.php
54 lines (42 loc) · 1.24 KB
/
archive-services.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
<?php
/**
* Services archives template
*
* @package Sydney
*/
get_header(); ?>
<?php do_action('sydney_before_content'); ?>
<div id="primary" class="content-area">
<main id="main" class="post-wrap" role="main">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php $icon = get_post_meta( get_the_ID(), 'wpcf-service-icon', true ); ?>
<?php $link = get_post_meta( get_the_ID(), 'wpcf-service-link', true ); ?>
<div class="service col-md-4">
<div class="roll-icon-box">
<?php if ($icon) : ?>
<div class="icon">
<?php echo '<i class="fa ' . esc_html($icon) . '"></i>'; ?>
</div>
<?php endif; ?>
<div class="content">
<h3>
<?php if ($link) : ?>
<a href="<?php echo esc_url($link); ?>"><?php the_title(); ?></a>
<?php else : ?>
<?php the_title(); ?>
<?php endif; ?>
</h3>
<?php the_content(); ?>
</div>
</div>
</div>
<?php endwhile; ?>
<?php the_posts_navigation(); ?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php do_action('sydney_after_content'); ?>
<?php get_footer(); ?>