Hallo,
ich möchte aus Datenschutzgründen (& Geschwindigkeit) statische Share-Buttons auf meiner Seite einbinden. Den Code hab ich schon im Netz gefunden, aber ich hab keine Ahnung, wie ich Counter für die Buttons bewerkstelligen kann.
Weiß das jemand? :-)
PHP
<a title="Bei Twitter empfehlen" href="https://twitter.com/intent/tweet?source=webclient&text=<?php echo rawurlencode(strip_tags(get_the_title())) ?> <?php echo wp_get_shortlink(); ?>" target="blank"><img style="width: 24px; height: 20px;" src="<?php bloginfo('template_url')?>/images/tweet.png" alt="Twittern" /></a>
<a title="Bei Facebook teilen" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo urlencode(get_permalink($post->ID)); ?>&t=<?php echo rawurlencode(strip_tags(get_the_title())) ?>" target="blank"><img style="width: 24px; height: 20px;" src="<?php bloginfo('template_url')?>/images/share.png" alt="Facebook Share" /></a>
<a href="https://plusone.google.com/_/+1/confirm?hl=de&url=<?php echo urlencode(get_permalink($post->ID)); ?>&title=<?php echo rawurlencode(strip_tags(get_the_title())) ?>" target="blank"<img style="width: 24px; height: 20px;" src="<?php bloginfo('template_url')?>/images/google.png" alt="Facebook Share" /></a>
Vielen Dank im Voraus!