add menus
This commit is contained in:
57
single.php
57
single.php
@@ -1,10 +1,49 @@
|
||||
<?php get_header();?>
|
||||
<?while(have_posts()):
|
||||
the_post();?>
|
||||
<h1 class="my-4 page-title"><?wp_title();?></h1>
|
||||
<img class="img-fluid rounded" src="<?php echo get_the_post_thumbnail_url(null, 'full');?>" alt="<?the_title();?>">
|
||||
<p><small class="text-muted"><?the_time('j F Y');?> <?php the_tags('');?></small></p>
|
||||
<?the_content();?>
|
||||
<?php comments_template(); ?>
|
||||
<?endwhile;?>
|
||||
<?php get_footer();?>
|
||||
|
||||
<div id="main">
|
||||
<div>
|
||||
<?//while(have_posts()):?>
|
||||
|
||||
<?php $category = get_the_category();
|
||||
$category_id = $category[0]->term_id;
|
||||
$category_link = get_category_link($category_id);
|
||||
?>
|
||||
|
||||
<div class="post_info">
|
||||
<a href="<?=$category_link?>"><?=$category['0']->name;?></a>, <?php the_time('j F Y, G:i');?>
|
||||
</div>
|
||||
<h1 class="my-4"><?php wp_title('');?></h1>
|
||||
<div class="publ_expert"><?php the_excerpt();?></div>
|
||||
<img class="img-fluid rounded" src="<?php echo get_the_post_thumbnail_url(null, 'full');?>" alt="<?the_title();?>">
|
||||
<div class="post_img_title"><?the_post_thumbnail_caption()?></div>
|
||||
<?the_content();?>
|
||||
<!--<p><small class="text-muted"><?php the_tags('');?></small></p> -->
|
||||
<?//endwhile;?>
|
||||
|
||||
<div class="post_author">
|
||||
Автор: <?php the_author(); ?>
|
||||
</div>
|
||||
|
||||
<div class="post_panel_info">
|
||||
<a href="<?=$category_link?>"><?=$category['0']->name;?></a>, <?php the_time('j F Y, G:i');?> Поделиться
|
||||
</div>
|
||||
|
||||
<?php include get_template_directory().'/blocks/moread.php';?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php get_footer();?>
|
||||
|
||||
Reference in New Issue
Block a user