Skip to content

Instantly share code, notes, and snippets.

@Robert-IMT
Last active July 11, 2016 05:11
Show Gist options
  • Select an option

  • Save Robert-IMT/87af14e503052ef74209 to your computer and use it in GitHub Desktop.

Select an option

Save Robert-IMT/87af14e503052ef74209 to your computer and use it in GitHub Desktop.
<span class="social">
<a target="_blank" rel="nofollow" onclick="popupWin = window.open(this.href, 'vkontakte', 'width=550,height=400,top='+((screen.height-400)/2)+',left='+((screen.width-550)/2)+',location=no'); popupWin.focus(); return false;" href="http://vk.com/share.php?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>&description=<?php echo strip_tags(get_the_excerpt()); ?>&image=<?php echo $image_url; ?>&noparse=true" title="<?php _e('Поделится в ВК', 'prestigednepr'); ?>">
<i class="fa fa-vk"></i>
</a>
<a target="_blank" rel="nofollow" onclick="popupWin = window.open(this.href, 'vkontakte', 'width=550,height=400,top='+((screen.height-400)/2)+',left='+((screen.width-550)/2)+',location=no'); popupWin.focus(); return false;" href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>" title="<?php _e('Поделится в Facebook', 'prestigednepr'); ?>">
<i class="fa fa-facebook"></i>
</a>
<a target="_blank" rel="nofollow" onclick="popupWin = window.open(this.href, 'vkontakte', 'width=550,height=400,top='+((screen.height-400)/2)+',left='+((screen.width-550)/2)+',location=no'); popupWin.focus(); return false;" rel="nofollow" href="https://twitter.com/share?url=<?php the_permalink(); ?>&text=<?php the_title(); ?>" title="<?php _e('Поделится в Twitter', 'prestigednepr'); ?>">
<i class="fa fa-twitter"></i>
</a>
<a target="_blank" rel="nofollow" onclick="popupWin = window.open(this.href, 'vkontakte', 'width=550,height=400,top='+((screen.height-400)/2)+',left='+((screen.width-550)/2)+',location=no'); popupWin.focus(); return false;" href="https://plus.google.com/share?url=<?php the_permalink(); ?>" title="<?php _e('Поделится в Google+', 'prestigednepr'); ?>">
<i class="fa fa-google-plus"></i>
</a>
<a target="_blank" onclick="popupWin = window.open(this.href, 'vkontakte', 'width=550,height=400,top='+((screen.height-400)/2)+',left='+((screen.width-550)/2)+',location=no'); popupWin.focus(); return false;" href="http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st._surl=<?php the_permalink(); ? rel="nofollow">&st.comments=<?php the_title(); ?>">
<i class="fa fa-odnoklassniki"></i>
</a>
</span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment