add social share
This commit is contained in:
@@ -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
1
blocks/social-share.php
Normal 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>
|
||||
Reference in New Issue
Block a user