add template page

This commit is contained in:
2026-01-09 18:34:13 +03:00
parent 64a4db8d8e
commit 871b6eb1d1
3 changed files with 57 additions and 0 deletions

44
page.php Normal file
View File

@@ -0,0 +1,44 @@
<?php
defined( 'ABSPATH' ) || exit;
get_header(); ?>
<main class="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="post-header">
<h1 class="post-title"><?php the_title(); ?></h1>
</header>
<?php if ( has_post_thumbnail() ) : ?>
<figure class="single-post__thumb">
<?php the_post_thumbnail('large'); ?>
<?php
$cap = get_the_post_thumbnail_caption();
if ( $cap ) : ?>
<figcaption class="single-post__thumb-caption">
<?php echo esc_html( $cap ); ?>
</figcaption>
<?php endif; ?>
</figure>
<?php endif; ?>
<div class="single-post__content">
<?php the_content(); ?>
</div>
</article>
<?php get_template_part( 'template-parts/share-buttons' ); ?>
<?php get_template_part( 'template-parts/subscripts' ); ?>
<?php endwhile; endif; ?>
</main>
<?php get_template_part('sidebar');?>
<?php get_footer(); ?>

View File

@@ -0,0 +1,6 @@
<div id="cookie-consent-banner" class="cookie-consent" style="display: none;">
<div class="cookie-consent-content">
<p>Мы используем файлы cookie для улучшения работы сайта. Продолжая использование сайта, вы соглашаетесь с <a style="color: white; text-decoration: underline;" href="https://sportpressa.ru/cookie/" target="_blank">условиями</a></p>
<button id="cookie-consent-accept" class="cookie-consent-button">Принять</button>
</div>
</div>

View File

@@ -0,0 +1,7 @@
<div class="subscripts-promo">
<a class="btn_sub_social_wh" href="https://dzen.ru/sportpressa.ru" target="_blank">Дзен</a>
<a class="btn_sub_social_wh" href="https://t.me/sportpressa" target="_blank">Телеграм</a>
<a class="btn_sub_social_wh" href="https://vk.com/sportpressa" target="_blank">ВК</a>
<a class="btn_sub_social_wh" href="https://ok.ru/sportpressa" target="_blank">ОК</a>
+ 1
</div>