-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage.php
91 lines (77 loc) · 2.73 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
80
81
82
83
84
85
86
87
88
89
90
91
<!-- Header -->
<header id="header">
<h1 id="logo">
<?php if ($logo): ?>
<span class="logo">
<a href="<?php echo $base_path; ?>">
<img src="<?php echo $logo; ?>" alt="Logo site" class="img-responsive logo">
</a>
</span>
<?php endif; ?>
<a class="logo_a" href="<?php echo $base_path; ?>"><?php echo htmlspecialchars($title); ?></a>
</h1>
<!-- Nav -->
<nav id="nav">
<?php echo $section[ 'main_menu' ]; ?>
</nav>
</header>
<!-- Main -->
<article id="main">
<header class="container">
<h2><?php echo htmlspecialchars($title_main); ?></h2>
<?php if (!empty($section[ 'header' ])): ?>
<?php echo $section[ 'header' ]; ?>
<?php endif; ?>
</header>
<section class="wrapper style4 container">
<div class="row gtr-150">
<?php if (!empty($section[ 'sidebar' ])): ?>
<div class="col-4 col-12-narrower">
<div class="sidebar">
<?php echo $section[ 'sidebar' ]; ?>
</div>
</div>
<?php endif; ?>
<?php
echo empty($section[ 'sidebar' ])
? '<div>'
: '<div class="col-8 col-12-narrower imp-narrower">';
?>
<section>
<div class = "content">
<?php if (!empty($section[ 'messages' ])):
?>
<?php echo $section[ 'messages' ]; ?>
<?php endif; ?>
<?php if (!empty($section[ 'content_header' ])): ?>
<?php echo $section[ 'content_header' ]; ?>
<?php endif; ?>
<?php echo $section[ 'submenu' ]; ?>
<?php echo $section[ 'content' ]; ?>
<?php if (!empty($section[ 'content_footer' ])): ?>
<?php echo $section[ 'content_footer' ]; ?>
<?php endif; ?>
</div>
</section>
<?php echo '</div>'; ?>
</div>
</section>
<?php if (!empty($section[ 'footer_first' ])): ?>
<section class="wrapper style1 container special">
<?php echo $section[ 'footer_first' ]; ?>
</section>
<?php endif; ?>
</article>
<?php if (!empty($section[ 'footer_second' ])): ?>
<!-- CTA -->
<section id="cta">
<?php echo $section[ 'footer_second' ]; ?>
</section>
<?php endif; ?>
<!-- Footer -->
<footer id="footer">
<?php if (!empty($section[ 'footer' ])): ?>
<?php echo $section[ 'footer' ]; ?>
<?php endif; ?>
<?php echo $section[ 'second_menu' ]; ?>
</footer>