add social share

This commit is contained in:
2021-10-09 22:59:32 +03:00
parent e9bc2dbd8b
commit 3619ce52d2
8 changed files with 18 additions and 7 deletions

View File

@@ -21,8 +21,8 @@ if( $posts ):
?>
<div class="right_archive">
<img width="280" class="right_archive_img" src="<?php echo get_the_post_thumbnail_url($post, 'left-thumb');?>" alt="<?the_title();?>">
<div class="right_archive_text">Читать газету<br>«Ветеринария и Жизнь»</div>
<a href="<?php the_permalink(); ?>"><img width="280" class="right_archive_img" src="<?php echo get_the_post_thumbnail_url($post, 'left-thumb');?>" alt="<?the_title();?>"></a>
<div class="right_archive_text"><a href="<?php the_permalink(); ?>">Читать газету<br>«Ветеринария и Жизнь»</a></div>
<div class="right_archive_link"><a href="<?php the_permalink(); ?>">cвежий номер</a></div>
</div>

1
blocks/social-share.php Normal file
View File

@@ -0,0 +1 @@
<a href="http://vk.com/share.php?url=<?=get_permalink()?>&<?=get_the_title()?>" target="_blank"><i class="fab fa-vk btn_soc_post"></i></a> <a href="https://www.facebook.com/sharer/sharer.php?u=#<?=get_permalink()?>" target="_blank"><i class="fab fa-facebook-square btn_soc_post"></i></a> <a href="https://telegram.me/share/url?url=<?=get_permalink()?>"><i class="fab fa-telegram-plane btn_soc_post"></i></a>