-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage-default.php
More file actions
59 lines (54 loc) · 1.87 KB
/
page-default.php
File metadata and controls
59 lines (54 loc) · 1.87 KB
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
<?php
/*
Template Name: Обычная страница
*/
get_header();
?>
<main id="main" class="site-main">
<!-- Page Header -->
<section class="page-header">
<div class="container">
<div class="page-header-content">
<h1><?php echo get_the_title(); ?></h1>
<?php if (get_post_meta(get_the_ID(), '_page_subtitle', true)) : ?>
<p><?php echo esc_html(get_post_meta(get_the_ID(), '_page_subtitle', true)); ?></p>
<?php endif; ?>
</div>
</div>
</section>
<!-- Page Content -->
<section class="page-content">
<div class="container">
<div class="content-wrapper">
<?php
if (have_posts()) :
while (have_posts()) : the_post();
?>
<article class="page-article">
<?php if (has_post_thumbnail()) : ?>
<div class="page-featured-image">
<?php the_post_thumbnail('large'); ?>
</div>
<?php endif; ?>
<div class="page-content-text">
<?php the_content(); ?>
</div>
</article>
<?php
endwhile;
else :
?>
<div class="no-content">
<h3>Контент не найден</h3>
<p>Запрашиваемая страница не содержит контента.</p>
</div>
<?php
endif;
?>
</div>
</div>
</section>
</main>
<?php
get_footer();
?>