-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfront-page.php
139 lines (128 loc) · 5.87 KB
/
front-page.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
<?php get_header() ?>
<?php
$hero = get_field('hero');
?>
<section class="bg-1 h-900x main-slider pos-relative" style="background: url('<?php echo the_post_thumbnail_url(); ?>') no-repeat center; background-size: cover;" >
<div class="triangle-up pos-bottom"></div>
<div class="container h-100">
<div class="dplay-tbl">
<div class="dplay-tbl-cell center-text color-white">
<h5><b><?php echo $hero['small_title'] ?></b></h5>
<h1 class="mt-30 mb-15"><?php echo $hero['main_title'] ?></h1>
<h5><a href="<?php echo $hero['link'] ?>" class="btn-primaryc plr-25"><b><?php echo $hero['link_text'] ?></b></a></h5>
</div><!-- dplay-tbl-cell -->
</div><!-- dplay-tbl -->
</div><!-- container -->
</section>
<section class="story-area left-text center-sm-text pos-relative">
<div class="abs-tbl bg-2 w-20 z--1 dplay-md-none"></div>
<div class="abs-tbr bg-3 w-20 z--1 dplay-md-none"></div>
<div class="container">
<div class="heading">
<img class="heading-img" src="<?php bloginfo('template_directory'); ?>/images/heading_logo.png" alt="">
<h2>Our Story</h2>
</div>
<?php
$story_info = get_field('story_info');
?>
<div class="row">
<div class="col-md-6">
<p class="mb-30"><?php echo $story_info['left_side']?></p>
</div><!-- col-md-6 -->
<div class="col-md-6">
<p class="mb-30"><?php echo $story_info['rigt_side']?></p>
</div><!-- col-md-6 -->
</div><!-- row -->
</div><!-- container -->
</section>
<?php if( have_rows('best_sellers') ): ?>
<section class="story-area bg-seller color-white pos-relative">
<div class="pos-bottom triangle-up"></div>
<div class="pos-top triangle-bottom"></div>
<div class="container">
<div class="heading">
<img class="heading-img" src="<?php bloginfo('template_directory'); ?>/images/heading_logo.png" alt="">
<h2>Best Sellers</h2>
</div>
<div class="row">
<?php while( have_rows('best_sellers') ): the_row();
// vars
$image = get_sub_field('image');
$title = get_sub_field('title');
$price = get_sub_field('price');
$link = get_sub_field('link');
$offer = get_sub_field('offer');
?>
<div class="col-lg-3 col-md-4 col-sm-6 ">
<div class="center-text mb-30">
<div class="ïmg-200x mlr-auto pos-relative">
<?php if($offer): ?>
<h6 class="ribbon-cont"><div class="ribbon primary"></div><b>OFFER</b></h6>
<?php endif; ?>
<img src="<?php echo $image; ?>" alt="">
</div>
<h5 class="mt-20"><?php echo $title ?></h5>
<h4 class="mt-5"><b>$<?php echo $price ?></b></h4>
<h6 class="mt-20"><a href="<?php echo $link ?>" class="btn-brdr-primary plr-25"><b>Order Now</b></a></h6>
</div><!--text-center-->
</div><!-- col-md-3 -->
<?php endwhile; ?>
</div><!-- row -->
<h6 class="center-text mt-40 mt-sm-20 mb-30"><a href="#" class="btn-primaryc plr-25"><b>SEE TODAYS MENU</b></a></h6>
</div><!-- container -->
</section>
<?php endif; ?>
<section>
<div class="container">
<div class="heading">
<img class="heading-img" src="<?php bloginfo('template_directory'); ?>/images/heading_logo.png" alt="">
<h2>Our Menu</h2>
</div>
<?php if( have_rows('our_menu') ): ?>
<div class="row">
<div class="col-sm-12">
<ul class="selecton brdr-b-primary mb-70">
<?php while( have_rows('our_menu') ): the_row();
// vars
$category_name = get_sub_field('category_name');
$menu_items = get_sub_field('category');
?>
<li><a href="#" class="active" data-select="<?php echo sanitize_title($category_name); ?>"><b><?php echo $category_name; ?></b></a></li>
<?php endwhile; ?>
</ul>
</div><!--col-sm-12-->
</div><!--row-->
<?php endif; ?>
<?php if( have_rows('our_menu') ): ?>
<div class="row">
<?php while( have_rows('our_menu') ): the_row();
// vars
$category_name = get_sub_field('category_name');
$menu_items = get_sub_field('category');
?>
<div class="col-md-6 food-menu <?php echo sanitize_title($category_name) ?>">
<?php if( have_rows('category') ): ?>
<?php while( have_rows('category') ): the_row();
// vars
$cat_image = get_sub_field('image');
$title = get_sub_field('title');
$description = get_sub_field('description');
$price = get_sub_field('price');
?>
<div class="sided-90x mb-30 ">
<div class="s-left"><img class="br-3" src="<?php echo $cat_image; ?>" alt="Menu Image"></div><!--s-left-->
<div class="s-right">
<h5 class="mb-10"><b><?php echo $title; ?></b><b class="color-primary float-right">$<?php echo $price; ?></b></h5>
<p class="pr-70"><?php echo $description; ?> </p>
</div><!--s-right-->
</div><!-- sided-90x -->
<?php endwhile; ?>
<?php endif; ?>
</div><!-- food-menu -->
<?php endwhile; ?>
</div>
<?php endif; ?>
<h6 class="center-text mt-40 mt-sm-20 mb-30"><a href="#" class="btn-primaryc plr-25"><b>SEE TODAYS MENU</b></a></h6>
</div><!-- container -->
</section>
<?php get_footer(); ?>