This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
46 lines (41 loc) · 1.47 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
<?php get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
if (is_page(array('strona-glowna'))) {
echo '<script>page = "index";</script>';
get_template_part( 'page-templates/content', 'strona-glowna' );
}
else if (is_page(array('jak-pomagamy'))) {
echo '<script>page = "help";</script>';
get_template_part( 'page-templates/content', 'jak-pomagamy' );
}
else if (is_page(array('kurs'))) {
get_template_part( 'page-templates/content', 'kurs' );
}
else if (is_page(array('o-nas'))) {
echo '<script>page = "o-nas";</script>';
get_template_part( 'page-templates/content', 'o-nas' );
}
else if (is_page(array('blog'))) {
get_template_part( 'page-templates/content', 'blog' );
}
else if (is_page(array('kontakt'))) {
get_template_part( 'page-templates/content', 'kontakt' );
}
else if (is_page(array('zostaw-e-mail'))) {
get_template_part( 'page-templates/content', 'zostaw-e-mail' );
}
else if ( is_page( [ 'dziekujemy' ] ) ) {
get_template_part( 'page-templates/content', 'dziekujemy' );
}
else if ( is_page( [ 'potwierdz-email' ] ) ) {
get_template_part( 'page-templates/content', 'potwierdz-email' );
} else {
get_template_part( 'page-templates/content', 'general' );
}
?>
</div>
</main><!-- .site-main -->
</div><!-- .content-area -->
<?php get_footer(); ?>