-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
79 lines (66 loc) · 2.51 KB
/
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
<?php
wp_reset_query();
get_header();
query_posts('post_type=page');
if ( have_posts() ) : while ( have_posts() ) : the_post();
if( 'Galleries' === $post->post_title) {
echo '<section id="'.get_the_title().'" class="">';
}
else if( 'News' === $post->post_title) {
echo '<section id="'.get_the_title().'" class="content-center">';
}
else {
echo '<section id="'. get_the_title().'" class="content-center align-justify">';
}
?>
<h2><?php the_title(); ?></h2>
<?php the_content();
if( 'Galleries' === $post->post_title ) {
echo '<div class="galery panel-table">';
echo do_shortcode("[ic_add_posts category='galeries' template='template_gallery.php']");
echo '</div>';
}
if( 'News' === $post->post_title ) {
echo '<div class="news panel-table">';
echo do_shortcode("[ic_add_posts category='news' template='template_news.php']");
echo '</div>';
} ?>
</section>
<?php endwhile; endif; ?>
<section id="Contact">
<h2>Contact</h2>
<div class="form" id="section4">
<form class="contact form-style" action="mailing.php" method="post">
<div class="form-group">
<p class="description">Last name(*)</p>
<input type="text" name="last_name" required >
</div>
<div class="form-group">
<p class="description">First name</p>
<input type="text" name="first_name">
</div>
<div class="form-group">
<p class="description">Mail(*)</p>
<input type="email" name="email" required >
</div>
<div class="form-group">
<p class="description">Message(*)</p>
<textarea rows="8" name="message" cols="30" required ></textarea>
<p class="description info" style="margin: 0">Fields with (*) are mandatories.</p>
</div>
<button class="btn-style" type="submit" name="submit" value="Submit">Send</button>
</form>
</div>
</section>
<footer>
<div class="footer-comp">
<p style="margin-top: 30px"><b style="color: #333"><?php bloginfo('name'); ?></b><br/>Dream with your eyes open.</p>
<p style="margin-top: 20px">Contact me: <a href="#" style="color: #222222">[email protected]</a></p>
<div class="social-section">
<?php wp_nav_menu( array( 'theme_location' => 'menu_social' ) ); ?>
</div>
</div>
</footer>
</div>
</body>
</html>