-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmpl-processes.php
63 lines (44 loc) · 1.76 KB
/
tmpl-processes.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
<?php
/*
Template Name: Process Page
*/
get_header(); ?>
<div id="content">
<header class="article-header">
<div class="wrap">
<h1 class="page-title" itemprop="headline"><?php the_title(); ?></h1>
</div>
</header> <?php // end article header ?>
<div id="inner-content" class="wrap cf">
<?php if ( function_exists('get_field')) {
if( have_rows('processes') ) {
echo '<div class="process-tiles">';
while ( have_rows('processes') ) : the_row();
$slug = preg_replace('/\s+/', '', get_sub_field('process_title')); ?>
<a class="process-title show" target="<?php echo $slug; ?>">
<img src="<?php the_sub_field('process_icon'); ?>" alt="<?php the_sub_field('process_title'); ?>" />
<h2><?php the_sub_field('process_title'); ?></h2>
<button class="button" href="">View Process</button>
</a>
<?php
endwhile;
echo '</div>';
}
} ?>
<div id="main" class="main-content full cf" role="main">
<?php if ( function_exists('get_field')) {
if( have_rows('processes') ) {
while ( have_rows('processes') ) : the_row();
$slug = preg_replace('/\s+/', '', get_sub_field('process_title')); ?>
<div class="process-info" id="div<?php echo $slug; ?>">
<img usemap="#map-<?php echo $slug; ?>" src="<?php the_sub_field('process_image'); ?>" class="noborder" alt="<?php the_sub_field('process_title'); ?>" />
<?php the_sub_field('image_map'); ?>
</div>
<?php
endwhile;
}
} ?>
</div>
</div>
</div>
<?php get_footer(); ?>