add files
This commit is contained in:
46
page.php
Normal file
46
page.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php get_header(); ?>
|
||||
|
||||
<div class="col-12">
|
||||
<div class="onenews clearfix">
|
||||
<h1 class="onenews__title">
|
||||
<?php the_title(); ?>
|
||||
</h1>
|
||||
<div class="onenews__body">
|
||||
<div class="stick js-stick">
|
||||
<!--div class="ya-share2" data-services="facebook,vkontakte,twitter,telegram,odnoklassniki"></div-->
|
||||
|
||||
</div>
|
||||
<?php if (has_post_thumbnail()): ?>
|
||||
<figure id="attachment_<?php echo get_post_thumbnail_id(); ?>">
|
||||
<?php echo get_the_post_thumbnail($post, 'large'); ?>
|
||||
<?php $thumb = get_post(get_post_thumbnail_id()); ?>
|
||||
<figcaption>
|
||||
<p><?php echo $thumb->post_content; ?></p>
|
||||
<span><?php echo main_photo_caption($thumb->post_excerpt); ?></span>
|
||||
</figcaption>
|
||||
</figure>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
global $more;
|
||||
$more = 1;
|
||||
echo the_content();
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php if(get_queried_object_id() === 1451634): ?>
|
||||
|
||||
<?php if(wp_is_mobile()): ?>
|
||||
<div class="js-setka-media" data-bid="165"></div>
|
||||
<?php else: ?>
|
||||
<?php get_template_part("template-parts/single/post-most-popular") ?>
|
||||
<?php get_template_part("template-parts/partners/smi2") ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?php get_footer(); ?>
|
||||
Reference in New Issue
Block a user