HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/shaping-sar.ru/public_html/wp-content/themes/beauty spa/content-single-video.php
<?php
/**
 * The default template for displaying content
 *
 * Used for both single and index/archive/search.
 *
 * @package WordPress
 * @subpackage forty_eight
 * @since forty_eight
 */
$getCat = get_the_category ( get_the_ID () );
$cat = '';
foreach ( $getCat as $key => $value ) {
	if ($key == (count ( $getCat ) - 1)) {
		$cat .= '<a href="'.get_category_link( $value->term_id  ).'">'.esc_html($value->name).'</a>';
	} else {
		$cat .= '<a href="'.get_category_link( $value->term_id  ).'">'.esc_html($value->name).'</a>, ';
	}
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<article class="post-wrap">
	<?php if(get_post_meta(get_the_ID(),'bautySpa_video_url',true)!=null){?>
	<div class="post-media">
		<div class="embed-responsive embed-responsive-16by9">
			<iframe class="embed-responsive-item"
				src="<?php echo htmlspecialchars(get_post_meta(get_the_ID(),'bautySpa_video_url',true));?>"></iframe>
		</div>
	</div>
	<?php }?>
            <div class="post-header">
			<h2 class="post-title">
				<a href="<?php echo get_the_permalink();?>"><?php echo get_the_title()?></a>
			</h2>
			<div class="post-meta">
				<ul>
					<li><i class="fa fa-user"></i> <a
						href="<?php  echo get_author_posts_url(get_the_author_meta( 'ID'));?>"><?php echo get_the_author_meta( 'user_nicename');?></a></li>
					<li><i class="fa fa-calendar"></i> <?php echo get_the_time(get_option( 'date_format' ));?></li>
					<li><i class="fa fa-folder-open"></i><?php echo $cat;?></li>
					<li><i class="fa fa-comments"></i><a
						href="<?php echo get_permalink()?>/#comments"><?php comments_number('0  Comment', '1  Comment', '%  Comments' );?></a></li>
				</ul>
			</div>
		</div>
		<div class="post-body">
			<div class="post-excerpt">
				 <?php the_content();?>
				                     <?php
																									wp_link_pages( array (
																											'before' => '<div class="page-links"><span class="page-links-title">' . __ ( 'Pages:', 'gilas' ) . '</span>',
																											'after' => '</div>',
																											'link_before' => '<span>',
																											'link_after' => '</span>',
																											'pagelink' => '<span class="screen-reader-text">' . __ ( 'Page', 'gilas' ) . ' </span>%',
																											'separator' => '<span class="screen-reader-text">, </span>' 
																									) );
									?>
				<footer class="entry-footer"> <?php edit_post_link( __( 'Edit', 'forty_eight' ), '<span class="edit-link">', '</span>' ); ?>
</footer>
			</div>
		</div>
	</article>
	<!-- About the author -->
	<div class="about-the-author clearfix">
		<div class="media">
			<?php echo get_avatar( get_the_author_meta( 'email'), '120' ); ?> 
			<div class="media-body">
				<p class="media-category"><?php esc_html_e('Author','beautySpa')?></p>
				<h4 class="media-heading">
					<a
						href="<?php  echo get_author_posts_url(get_the_author_meta( 'ID'));?>"><?php echo get_the_author_meta( 'user_nicename');?></a>
				</h4>
				<p><?php  echo wp_kses_post(get_the_author_meta( 'description'));?></p>
			</div>
		</div>
	</div>

	<?php
	if (comments_open () || get_comments_number ()) :
		comments_template ();
	
			endif;
	?>
</article>