forked from andreondra/stcblog
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage.php
executable file
·41 lines (37 loc) · 1.44 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
<?php
/**
* Static page.
* @copyright Copyright (C) 2020 Ondrej Golasowski, Petr Kucera
* @license GPL(GPLv3)
*/
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="<?php echo get_bloginfo('template_directory') . get_css_name();?>"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title><?php wp_title('', true,'left'); ?> | <?php echo get_bloginfo('name'); ?></title>
<?php wp_head(); ?>
</head>
<body class="ms-Fabric">
<?php get_header(); ?>
<?php
if(is_subpage("adventni-kalendar")){
include 'specific-pages/advent-banner.php';
}
?>
<main class="main post">
<header class="main__header post__header <?php if(is_page( 'adventni-kalendar' )) echo "advent-header";?> <?php if(is_subpage("adventni-kalendar")) echo "advent-content"; ?>">
<h1><?php the_post(); the_title(); ?></h1>
</header>
<article class="post__content <?php if(is_subpage("adventni-kalendar")) echo "advent-content"; ?> <?php if(is_page( 'adventni-kalendar' )) echo "advent-content";?>">
<?php if(is_page( 'adventni-kalendar' )){
include 'specific-pages/advent.php';
}
?>
<?php the_content(); ?>
</article>
</main>
<?php get_footer(); ?>
</body>
</html>