This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive-activities.php
executable file
·67 lines (59 loc) · 1.93 KB
/
archive-activities.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
60
61
62
63
64
65
66
67
<?php /* Archive */
get_header();
// Vars
$title = get_field('activities_title','options');
$content = get_field('activities_content','options');
$bgimage = get_field('activities_background_image','options');
?>
<section class="activity hero" style="background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url(<?php echo $bgimage['url']; ?>) center center no-repeat; background-size: cover;">
<div class="float">
<div class="container">
<div class="content eight columns offset-by-two">
<h1><?php echo $title; ?></h1>
</div>
</div>
</div>
</section>
<section class="post archive_listing">
<div class="container">
<div class="twelve columns">
<?php if($content) { ?>
<div class="intro_content">
<div class="content ten columns offset-by-one">
<?php echo $content; ?>
</div>
</div>
<?php } ?>
<div class="main_content">
<div class="twelve columns">
<?php
query_posts(array(
'post_type' => 'activities',
'showposts' => -1,
'orderby' => 'title',
'order' => 'ASC',
));
?>
<?php if ( have_posts() ) : while (have_posts()) : the_post(); ?>
<?php get_template_part( 'inc/article' ); ?>
<?php endwhile; ?>
<?php numeric_posts_nav(); ?>
</div>
<?php else : ?>
<!-- No posts found -->
<?php endif; wp_reset_query(); ?>
</div>
</div>
</div>
</section>
<section class="contact_cta">
<div class="container">
<div class="seven columns offset-by-one">
Don’t see what you’re looking for? Make an enquiry to find out about other services we can offer
</div>
<div class="three columns">
<a href="<?php echo get_site_url(); ?>/contact" class="button white">Get in touch</a>
</div>
</div>
</section>
<?php get_footer(); ?>