HEX
Server: LiteSpeed
System: Linux prometheus.hongkongserver.net 4.18.0-553.134.1.el8_10.x86_64 #1 SMP Tue Jun 16 16:05:57 EDT 2026 x86_64
User: ayxmplky (1112)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/ayxmplky/public_html/wp-content/themes/tactic/single.php
<?php
/**
 * single.php — одиночный пост
 *
 * @package tactic
 */

get_header();
?>
<main id="main-content" class="single-post" role="main">
	<div class="container">
		<div class="single-post__inner">

			<!-- Основной контент -->
			<article <?php post_class( 'single-post__article' ); ?>>
				<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

					<header class="single-post__header">
						<time class="news-item__date" datetime="<?php echo esc_attr( get_the_date( 'Y-m-d' ) ); ?>">
							<?php echo esc_html( get_the_date( 'd.m.Y' ) ); ?>
						</time>
						<h1 class="single-post__title"><?php the_title(); ?></h1>
					</header>

					<?php if ( has_post_thumbnail() ) : ?>
						<div class="single-post__thumbnail">
							<?php the_post_thumbnail( 'tactic-news-thumb' ); ?>
						</div>
					<?php endif; ?>

					<div class="entry-content">
						<?php the_content(); ?>
					</div>

					<nav class="single-post__nav" aria-label="<?php echo esc_attr( tactic_s( 'single_post_nav_aria' ) ); ?>">
						<?php
						$prev = get_previous_post();
						$next = get_next_post();
						if ( $prev ) :
						?>
							<a href="<?php echo esc_url( get_permalink( $prev ) ); ?>" class="btn btn--dark">
								← <?php echo esc_html( $prev->post_title ); ?>
							</a>
						<?php endif; if ( $next ) : ?>
							<a href="<?php echo esc_url( get_permalink( $next ) ); ?>" class="btn btn--dark">
								<?php echo esc_html( $next->post_title ); ?> →
							</a>
						<?php endif; ?>
					</nav>

				<?php endwhile; endif; ?>
			</article>

			<!-- Боковая панель -->
			<aside class="sidebar" role="complementary">
				<?php dynamic_sidebar( 'sidebar-blog' ); ?>
			</aside>

		</div>
	</div>
</main>
<?php get_footer(); ?>