-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage--designer-frames.php
112 lines (100 loc) · 4.1 KB
/
page--designer-frames.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
<?php
/**
* Template Name: Designer Frames Page
*
* @package WordPress
* @subpackage AG_Eyecare
* @since 1.0.0
*/
get_header();
?>
<body <?php body_class('gradient--active'); ?>>
<?php get_template_part( '/template-parts/content', 'nav' ); ?>
<div class="main-container">
<section class="section-snippet-about-2 bg--secondary container-header imagebg" style="background-image: url(<?php the_field('header_image'); ?>);">
<div class="container">
<div class="row pos-vertical-align-columns">
<div class="col-sm-5">
<?php if( get_field('headline') ): ?>
<?php the_field('headline'); ?>
<?php endif; ?>
<?php if( get_field('subheadline') ): ?>
<?php the_field('subheadline'); ?>
<?php endif; ?>
<?php if( get_field('header_cta_url') ): ?>
<a href="<?php the_field('header_cta_url'); ?>" class="btn btn--white">
<span class="btn__text"><?php the_field('header_cta_text'); ?></span>
<i class="ion-arrow-right-c"></i>
</a>
<?php endif; ?>
</div>
<div class="col-sm-6 col-md-push-1">
<div class="boxed imagebg text-center" data-overlay="3">
<div class="boxed-text">
<span class="h1 color--white">LUX-</span><br>
<span class="h1 color--white">URY</span><br>
<span class="h1 color--white">FRAMES</span>
</div>
</div>
</div>
</div>
</div>
</section>
<?php if( have_rows('brands') ): ?>
<section class="section-snippet-about-2 bg--secondary container-logos">
<div class="container">
<div class="row">
<div class="col-sm-12 text-center">
<h3 style="margin:1.5em 0 0;font-size:2em;">Top brands include:</h3>
<div class="partner-logos">
<?php while ( have_rows('brands') ) : the_row();
$logo = get_sub_field('logo');
?>
<img alt="" src="<?php echo $logo; ?>">
<?php endwhile; ?>
</div>
<h3 style="margin:1.5em 0 0;font-size:1em;">and many more</h3>
</div>
</div>
</div>
</section>
<?php endif; ?>
<?php if( have_rows('slides') ): ?>
<section class="section-hero-3 section--card container-slider add-glasses-2">
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="slider box-shadow" data-animation="slide" data-arrows="true" data-timing="5000">
<ul class="slides">
<?php while ( have_rows('slides') ) : the_row();
$image = get_sub_field('image');
?>
<li class="imagebg" >
<div class="background-image-holder">
<img alt="<?php echo $image['alt']; ?>" src="<?php echo $image['url']; ?>">
</div>
</li>
<?php endwhile; ?>
</ul>
</div>
</div>
</div>
</div>
</section>
<?php endif; ?>
<section class="container-summary bg--primary">
<div class="container">
<div class="row">
<div class="col-sm-12 text-center">
<?php if( get_field('block_text_cta') ): ?>
<?php the_field('block_text_cta'); ?>
<?php endif; ?>
</div>
</div>
</div>
</section>
<?php get_template_part( '/template-parts/content', 'booking' ); ?>
</div>
<?php
get_footer();
?>