add template page
This commit is contained in:
44
page.php
Normal file
44
page.php
Normal 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(); ?>
|
||||||
6
template-parts/cookie-consent.php
Normal file
6
template-parts/cookie-consent.php
Normal 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>
|
||||||
7
template-parts/subscripts-promo.php
Normal file
7
template-parts/subscripts-promo.php
Normal 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>
|
||||||
Reference in New Issue
Block a user