-
Notifications
You must be signed in to change notification settings - Fork 7
/
page-lg.php
145 lines (127 loc) · 4.1 KB
/
page-lg.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?php
/* Template Name: Large Banner Page */
get_header(); ?>
<div id="<?php echo get_field('main_id'); ?>" class="page-largebanner">
<?php if (get_field( "hide_large_banner" )!='yes') { ?>
<div class="<?php
if (get_field( "hide_large_banner" )=='no-overlay') {
echo('banner-no-overlay ');
} else {
echo('banner ');
}
if (get_field( "large_banner_embed" )!=''){
echo 'has-embed';
}
if (get_field( "shorten_large_banner") ){
echo 'banner-short ';
}?>" style="background-image:url(<?php echo get_field( "large_banner_image" ); ?>)">
<?php if ( get_field( "large_banner_embed" )=='' ){?>
<div class="caption-container">
<div class="caption">
<h1><?php echo get_field( "large_banner_title" ); ?></h1>
<p><?php echo get_field( "large_banner_subtitle" ); ?></p>
<?php if ( get_field( "large_banner_button" )!=''){
?>
<br><a href="<?php echo get_field( "large_banner_button_link" )?>"
class="banner-btn btn btn-blue"
target="<?php if ( get_field( "large_banner_button_new_tab" ) ) { echo "_blank"; }?>">
<?php echo get_field( "large_banner_button" )?></a>
<?php
}; ?>
<?php if ( get_field( "large_banner_video" )!='' ){
?>
<a class="playvideo-js" href="<?php echo get_field( "large_banner_video" )?>" data-fancybox>
<i class="icon-el play" title="Play Video"></i>
</a>
<?php
}; ?>
</div>
</div>
<?php } else {
echo get_field( "large_banner_embed" );
}?>
</div>
<?php } ?>
<?php if(get_field('title_banner')==true){ ?>
<div class="banner-shape container pull-up">
<div class="bg bg-gradient-v"></div>
<div class="row flex-lg-wrap">
<div class="d-block col-10 mx-auto">
<img src="<?php echo get_field('title_image'); ?>" alt class="mx-auto w-50 d-block">
<h5 class="d-block text-center mt-2"><?php echo get_field('title_text'); ?></h5>
</div>
</div>
</div>
<?php } else {
if( have_rows('callout_items') ): ?>
<div class="banner-shape container pull-up">
<div class="bg bg-gradient-v"></div>
<div class="row flex-lg-nowrap">
<?php while( have_rows('callout_items') ): the_row();
?>
<div class="col-lg">
<a href="<?php the_sub_field('callout_link')?>">
<div class="callout">
<div class="row align-items-center">
<div class="col-10">
<h3><?php echo get_sub_field('callout_title'); ?></h3>
<p><?php echo get_sub_field('callout_description'); ?></p>
</div>
<div class="col-1">
<span class="icon-inline sm lightblue">
<?php get_template_part('inc/caret.svg'); ?>
</span>
</div>
</div>
</div>
</a>
</div>
<?php endwhile; ?>
</div>
</div>
<?php endif;
} ?>
<!-- section type: plain richtext -->
<?php if ( !empty( get_the_content() ) ){ ?>
<section class="block block-text bg-white">
<div class="container-sm block-pad-v">
<div class="richtext text-lg-center">
<?php the_content(); ?>
</div>
</div>
</section>
<?php }?>
<?php if (have_rows('accordions')){?>
<section class="block block-accordions bg-white">
<div class="container block-pad-v">
<div class="accordion" id="accordion1">
<?php
$i = 0;
while( have_rows('accordions') ): the_row();
$i++;
?>
<div class="card">
<div class="card-header" id="heading<?php echo $i;?>">
<h5 class="mb-0">
<a class="" data-toggle="collapse" data-target="#panel<?php echo $i;?>" aria-expanded="false" aria-controls="panel<?php echo $i;?>">
<?php echo get_sub_field('panel_title');?>
<span class="icon-inline sm blue"><?php get_template_part('inc/caret.svg'); ?></span>
</a>
</h5>
</div>
<div id="panel<?php echo $i;?>" class="collapse" aria-labelledby="heading<?php echo $i;?>" data-parent="#accordion1">
<div class="card-body">
<div class="richtext text-sm">
<?php echo get_sub_field('panel_content')?>
</div>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
</div>
</section>
<?php } ?>
<?php get_template_part('inc/content_lg'); ?>
</div>
<?php get_footer(); ?>