-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·150 lines (148 loc) · 10 KB
/
index.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
140
141
142
143
144
145
146
147
148
149
<?php
/**
* The main template file
*
* @package FTS 2015
* @since 0.1.0
*/
get_header();
$args = array(
'post_type' => 'page',
'orderby' => 'menu_order',
'order' => 'ASC',
'meta_key' => 'fts_2015_one_page',
'meta_value' => '1'
);
$pages_query = new WP_Query($args);
?>
<div class="main">
<div class="sidebar-hover">
<p class="pagination">
<span class="page">01</span> / <span class="total-pages"><?php echo ($pages_query->post_count < 10 ? '0' . $pages_query->post_count : $pages_query->post_count); ?></span>
</p>
<p class="social-icons">
<a href="#" class="svg-icon">
<svg version="1.1" id="facebook" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="24px" height="24px" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve">
<path d="M58.828,0.05c-30.051,0-27.276,25.117-27.276,25.117H22.46v25.89h9.091V100h29.125V51.057h12.481v-23.27l4.932-23.268
C68.534,0.513,58.828,0.05,58.828,0.05z M67.919,18.849c0,0-9.862-1.735-12.175,1.059c-3.396,1.703-2.311,12.657-2.311,12.657H65.76
v11.094H53.434v49.159H38.795V43.659h-9.093V32.564c0,0,9.232,0,9.246,0c-0.844-0.002,0.459-10.859,0.558-11.885
c0.522-5.447,4.54-10.247,9.708-12.03C56.292,6.21,62.76,7.552,69.768,9.294C69.152,12.478,68.532,15.675,67.919,18.849z"/>
</svg>
</a>
<a href="#" class="svg-icon">
<svg version="1.1" id="twitter" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="24px" height="24px" viewBox="3.014 7.2 44.051 36.858" enable-background="new 3.014 7.2 44.051 36.858"
xml:space="preserve">
<g id="twitter">
<path d="M45.88,11.416c0.327-1.106-0.047-2.302-0.953-3.022c-0.514-0.411-1.136-0.618-1.767-0.618c-0.498,0-0.996,0.13-1.443,0.397
C40.829,8.694,39.9,9.112,38.93,9.407C37.076,7.989,34.777,7.2,32.414,7.2c-5.416,0-9.903,4.04-10.61,9.264
c-4.318-0.924-8.252-3.303-11.086-6.779c-0.54-0.666-1.35-1.046-2.196-1.046c-0.071,0-0.146,0.005-0.222,0.01
c-0.928,0.073-1.757,0.596-2.226,1.398c-0.952,1.631-1.453,3.491-1.453,5.386c0,1.28,0.227,2.525,0.647,3.688
c-0.452,0.514-0.714,1.18-0.714,1.884c0,2.808,1.06,5.39,2.826,7.33c-0.109,0.483-0.092,0.996,0.067,1.485
c0.611,1.914,1.729,3.562,3.175,4.818c-0.939,0.213-1.911,0.322-2.897,0.322c-0.511,0-1.028-0.033-1.549-0.092
c-0.11-0.014-0.22-0.021-0.332-0.021c-1.186,0-2.26,0.742-2.663,1.885c-0.447,1.24,0.026,2.627,1.134,3.341
c4.071,2.606,8.775,3.985,13.602,3.985c15.655,0,25.063-12.6,25.231-24.898c1.274-1.085,2.395-2.334,3.345-3.728
c0.358-0.474,0.571-1.063,0.571-1.708C47.064,12.775,46.598,11.933,45.88,11.416z M40.292,17.801
c0.019,0.337,0.024,0.677,0.024,1.018c0,10.404-7.918,22.4-22.399,22.4c-4.445,0-8.584-1.303-12.07-3.537
c0.613,0.068,1.243,0.111,1.878,0.111c3.689,0,7.083-1.26,9.779-3.373c-3.449-0.061-6.354-2.34-7.357-5.467
c0.481,0.092,0.975,0.143,1.478,0.143c0.72,0,1.416-0.098,2.075-0.277c-3.602-0.727-6.317-3.904-6.317-7.722
c0-0.034,0-0.065,0-0.098c1.062,0.588,2.277,0.942,3.567,0.982c-2.112-1.412-3.5-3.824-3.5-6.554c0-1.442,0.388-2.793,1.066-3.956
c3.88,4.763,9.683,7.896,16.227,8.224c-0.136-0.574-0.202-1.178-0.202-1.795c0-4.344,3.523-7.869,7.87-7.869
c2.266,0,4.313,0.956,5.749,2.483c1.791-0.351,3.479-1.006,4.999-1.909c-0.589,1.837-1.839,3.38-3.461,4.354
c1.591-0.188,3.106-0.611,4.52-1.24C43.165,15.305,41.832,16.691,40.292,17.801z"/>
</g>
</svg>
</a>
<a href="#" class="svg-icon">
<svg version="1.1" id="instagram" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="24px" height="24px" viewBox="103.167 -11.528 68.693 67.695"
enable-background="new 103.167 -11.528 68.693 67.695" xml:space="preserve">
<g display="none">
<path display="inline" fill="none" d="M42.536,15.065c2.645-5.732,8.429-9.721,15.127-9.721c6.699,0,12.483,3.989,15.128,9.721
h13.16V-0.973c0-3.123-2.533-5.665-5.646-5.665H49.427v8.231c0,1.078-0.871,1.952-1.945,1.952c-1.074,0-1.945-0.874-1.945-1.952
v-8.231h-1.402v8.231c0,1.078-0.871,1.952-1.945,1.952c-1.074,0-1.945-0.874-1.945-1.952v-8.231H38.58v8.231
c0,1.078-0.871,1.952-1.945,1.952s-1.945-0.874-1.945-1.952v-8.207c-2.897,0.237-5.184,2.674-5.184,5.641v16.038H42.536
L42.536,15.065z M70.59,1.174c0-1.337,1.081-2.421,2.413-2.421h5.067c1.333,0,2.414,1.084,2.414,2.421v5.084
c0,1.337-1.081,2.421-2.414,2.421h-5.067c-1.332,0-2.413-1.084-2.413-2.421V1.174z"/>
<path display="inline" fill="none" d="M74.283,20.92c0.026,0.378,0.045,0.758,0.045,1.143c0,9.219-7.477,16.719-16.665,16.719
c-9.188,0-16.663-7.5-16.663-16.719c0-0.385,0.018-0.765,0.043-1.143H29.505v23.412c0,3.123,2.533,5.665,5.646,5.665h45.153
c3.113,0,5.646-2.542,5.646-5.665V20.92H74.283z"/>
<path display="inline" d="M80.305-14.119H35.151c-7.225,0-13.103,5.897-13.103,13.146v45.305c0,7.248,5.878,13.146,13.103,13.146
h45.153c7.225,0,13.103-5.898,13.103-13.146V-0.973C93.408-8.221,87.529-14.119,80.305-14.119z M32.705-7.546v8.914
c0,1.17,0.946,2.12,2.112,2.12c1.167,0,2.113-0.949,2.113-2.12v-8.94h1.807v8.94c0,1.17,0.946,2.12,2.112,2.12
c1.167,0,2.113-0.949,2.113-2.12v-8.94h1.523v8.94c0,1.17,0.946,2.12,2.112,2.12c1.167,0,2.113-0.949,2.113-2.12v-8.94h33.537
c3.382,0,6.132,2.76,6.132,6.152V16H73.088c-2.872-6.226-8.154-9.559-15.431-9.559C50.382,6.441,45.1,9.774,42.227,16H27.075
V-1.419C27.075-4.642,29.558-7.288,32.705-7.546z M68.793,22.063c0,6.157-4.993,11.166-11.13,11.166s-11.129-5.009-11.129-11.166
s4.992-11.166,11.129-11.166S68.793,15.906,68.793,22.063z M82.171,51.198H33.285c-3.371,0-6.113-2.751-6.113-6.133V19.719h14.492
c-0.028,0.41-0.047,0.821-0.047,1.238c0,9.981,6.093,17.102,16.04,17.102c9.948,0,16.043-7.121,16.043-17.102
c0-0.417-0.02-0.828-0.049-1.238h14.633v25.347C88.284,48.447,85.542,51.198,82.171,51.198z"/>
<path display="inline" d="M73.003,8.679h5.067c1.333,0,2.414-1.084,2.414-2.421V1.174c0-1.337-1.081-2.421-2.414-2.421h-5.067
c-1.332,0-2.413,1.084-2.413,2.421v5.084C70.59,7.595,71.671,8.679,73.003,8.679z"/>
</g>
<path d="M160.36,57.167h-44.695c-6.893,0-12.5-5.607-12.5-12.5V-0.028c0-6.893,5.607-12.5,12.5-12.5h44.695
c6.893,0,12.5,5.607,12.5,12.5v44.695C172.86,51.56,167.253,57.167,160.36,57.167z M108.165,20.333v24.333
c0,4.136,3.364,7.5,7.5,7.5h44.695c4.136,0,7.5-3.364,7.5-7.5V20.333H152.56c0.088,0.649,0.134,1.313,0.134,1.986
c0,8.095-6.586,14.681-14.681,14.681s-14.681-6.586-14.681-14.681c0-0.673,0.046-1.336,0.134-1.986H108.165z M138.013,12.639
c-5.338,0-9.681,4.343-9.681,9.681S132.675,32,138.013,32s9.681-4.343,9.681-9.681S143.351,12.639,138.013,12.639z M115.665-7.528
c-4.136,0-7.5,3.364-7.5,7.5v15.362h16.938c2.487-4.579,7.342-7.695,12.909-7.695s10.422,3.116,12.909,7.695h16.938V-0.028
c0-4.136-3.364-7.5-7.5-7.5H115.665z M162.74-2.247h-9.927v9.926h9.927V-2.247z M128.702-7.528V4.5c0,1.1,0.854,2,1.899,2
c1.044,0,1.898-0.9,1.898-2V-7.528 M122.443-7.528V4.5c0,1.1,0.854,2,1.898,2s1.898-0.9,1.898-2V-7.528 M116.184-7.528h3.798
M119.981-7.528V4.5c0,1.1-0.854,2-1.899,2c-1.044,0-1.898-0.9-1.898-2V-7.528"/>
</svg>
</a>
</p>
</div>
<nav class="sidebar-real" itemscope itemtype="http://schema.org/SiteNavigationElement">
<ul>
<?php if($pages_query->have_posts()):
$i = 0;
while($pages_query->have_posts()):
$pages_query->the_post();
$i++;
$fts_2015_bg_id = get_post_meta(get_the_ID(), 'fts_2015_background_image', true);
$bg_img = wp_get_attachment_image_src($fts_2015_bg_id, 'full', true );
?>
<li data-page="<?php echo $i; ?>" class="nav-elem nav-<?php echo $i; ?>" style="background-image: url('<?php echo esc_url($bg_img[0]);?>');"><meta property="url" content="<?php echo get_bloginfo('url'); ?>/#section-<?php echo get_the_ID(); ?>"></meta><h2 itemprop="name" class="menu-titles section-heading"><?php the_title(); ?></h2></li>
<?php endwhile; endif; ?>
</ul>
</nav>
<div class="sections">
<?php if($pages_query->have_posts()):
$i = 0;
while($pages_query->have_posts()):
$pages_query->the_post();
$i++;
?>
<div id="section-<?php echo get_the_ID(); ?>" class="section section-<?php echo $i; ?>">
<?php
$fts_2015_bg_id = get_post_meta(get_the_ID(), 'fts_2015_background_image', true);
$fts_2015_subtitle = get_post_meta(get_the_ID(), 'fts_2015_subtitle', true);
$bg_img = wp_get_attachment_image_src($fts_2015_bg_id, 'full', true );
?>
<div class="left-part" style="background-image: url('<?php echo esc_url($bg_img[0]);?>');"></div>
<div class="content">
<div class="bg-part" style="background-image: url('<?php echo esc_url($bg_img[0]);?>');"></div>
<div class="bg-part" style="background-image: url('<?php echo esc_url($bg_img[0]);?>');"></div>
<div class="bg-part" style="background-image: url('<?php echo esc_url($bg_img[0]);?>');"></div>
<div class="bg-part" style="background-image: url('<?php echo esc_url($bg_img[0]);?>');"></div>
<div class="bg-part" style="background-image: url('<?php echo esc_url($bg_img[0]);?>');"></div>
<div class="bg-part" style="background-image: url('<?php echo esc_url($bg_img[0]);?>');"></div>
<div class="bg-part" style="background-image: url('<?php echo esc_url($bg_img[0]);?>');"></div>
<div class="bg-part" style="background-image: url('<?php echo esc_url($bg_img[0]);?>');"></div>
<div class="heading-container">
<h2 class="section-heading"><?php the_title(); ?></h2>
<p class="additional-text"><?php echo esc_html($fts_2015_subtitle); ?></p>
</div>
<div class="page-content">
<?php the_content(); ?>
</div>
</div>
</div>
<?php endwhile; endif; ?>
</div>
<?php if($pages_query->post_count > 1): ?>
<h2 class="scroll-down">Scroll down</h2>
<?php endif; ?>
</div>
<?php get_footer(); ?>