-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingle-company.php
43 lines (38 loc) · 975 Bytes
/
single-company.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
<?php
get_header();
if(have_posts()) : while(have_posts()) : the_post();
?>
<main class="company--single__top">
<div class="company--single__top__wrapper">
<?php if ( has_post_thumbnail() ) : ?>
<div class="company--single__thumb">
<?php
the_post_thumbnail(
'large',
array('class' => 'company--single__img')
);
?>
</div>
<?php endif; ?>
<div class="company--single__meta">
<h1 class="company--single__title"><?= the_title(); ?></h1> <?php the_field('company_type'); ?>
</div>
<?php
$company_url = get_field('company_url');
if ( $company_url ): ?>
<div class="company--single__url">
<a target="_blank" class="button"
href="<?php echo $company_url ?>">
<i class="fa fa-link"></i> Company Website
</a>
</div>
<?php endif; ?>
</div>
</main>
<div class="company--single__wrapper">
<?php the_content(); ?>
</div>
<?php
endwhile; endif;
get_footer();
?>