-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfront-page.php
113 lines (106 loc) · 4.55 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
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Trade Winds">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php bloginfo('name'); ?></title>
<meta name="description" content="N-Two">
<meta name="author" content="Fakhri">
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url') ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<header>
<div class="container__header">
<div class="header-1">
<h1>
<a href="<?php echo home_url('/'); ?>">
<?php bloginfo('name'); ?>
</a>
<small><?php bloginfo('description'); ?></small>
</h1>
<div class="header-right">
<form method="get" action="<?php esc_url(home_url('/')); ?>">
<input type="text" name="form__input" placeholder="Search">
</form>
</div>
</div>
<nav class="nav main-nav">
<div class="container">
<?php
$args = array(
'theme_location' => 'primary',
);
?>
<?php wp_nav_menu($args); ?>
</div>
</nav>
</div>
</header>
<div class="container__one">
<div class="column__one">
<h1><?php echo get_theme_mod('showcase_1_heading', 'Default heading') ?></h1>
<p><?php echo get_theme_mod('showcase_1_text', 'Default paragraph') ?></p>
<div class="three_images">
<div class="img__1">
<img src="<?php echo get_theme_mod('small_image1', get_bloginfo('template_url') . '/img/lunch-1.jpg'); ?>" alt="lunch image">
<p><?php echo get_theme_mod('showcase_1img1_text', 'Default paragraph') ?></p>
</div>
<div class="img__2">
<img src="<?php echo get_theme_mod('small_image2', get_bloginfo('template_url') . '/img/lunch-2.jpg'); ?>" alt="lunch image">
<p><?php echo get_theme_mod('showcase_2img2_text', 'Default paragraph') ?></p>
</div>
<div class="img__3">
<img src="<?php echo get_theme_mod('small_image3', get_bloginfo('template_url') . '/img/lunch-3.jpg'); ?>" alt="lunch image">
<p><?php echo get_theme_mod('showcase_3img3_text', 'Default paragraph') ?></p>
</div>
</div>
<a href="<?php echo get_theme_mod('btn_url', 'www.test.com') ?>"><?php echo get_theme_mod('btn_text') ?></a>
</div>
<div class="column__two">
<style>
.column__two {
background: url(<?php echo get_theme_mod('showcase_2_image', get_bloginfo('template_url') . '/img/showcase.jpg'); ?>) no-repeat center center;
background-size: cover;
}
</style>
</div>
</div>
<!-- Second container, under container__one -->
<div class="container__two">
<button type="button">
<a href="<?php echo get_theme_mod('btn_url_panel01', 'http://www.test.com'); ?>"><?php echo get_theme_mod('btn_text_panel01'); ?></a>
</button>
</div>
<!-- Container three -->
<div class="container__three">
<div class="column__3__1">
<style>
.column__3__1 {
background: url(<?php echo get_theme_mod('showcase_3_image', get_bloginfo('template_url') . '/img/showcase-03.jpg'); ?>) no-repeat center center;
background-size: cover;
}
</style>
</div>
<div class="column__3__2">
<h1><?php echo get_theme_mod('showcase_3_heading', 'Default heading') ?></h1>
<p><?php echo get_theme_mod('showcase_3_text', 'Default paragraph') ?></p>
</div>
</div>
</div>
<footer class="footer">
<div class="container__footer">
<ul>
<li>
<p>© 2020 Fakhri Azzouz</p>
</li>
<li><a href="Home">Home</a></li>
<li><a href="About">About</a></li>
<li><a href="Services">Services</a></li>
</ul>
</div>
</footer>
<?php wp_footer(); ?>
</body>
</html>