?> </div> <div class="social-share"> <!-- <span class="text">Share this:</span> --> <a class="share-icon facebook" title="Recommend on Facebook" href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?> " target="blank" rel="nofollow"><span>Facebook <?php $URL = get_permalink(); function get_shares($URL) { $json_string = file_get_contents('http://graph.facebook.com/?ids=' . $URL); $json = json_decode($json_string, true); return intval($json[$URL]['shares']); } echo get_shares($URL); ?> </span></a> <a class="share-icon twitter" title="Recommend on Twitter" href="https://twitter.com/intent/tweet?source=webclient&amp;text=<?php echo rawurlencode(strip_tags(get_the_title())); ?> <?php echo urlencode(get_permalink($post->ID)); ?> " target="_blank" rel="nofollow"><span>Twitter</span></a> <a class="share-icon google" title="Recommend on Google+" href="https://plusone.google.com/_/+1/confirm?hl=de&amp;url=<?php echo urlencode(get_permalink($post->ID)); ?> &amp;title=<?php echo rawurlencode(strip_tags(get_the_title())); ?>
include('includes/common.php'); parse_config(); if (count($_GET) == 0) { $partitions = get_partitions(); $shares = get_shares(); save_config(); header('Location: ' . $_SERVER['SCRIPT_NAME'] . '?edit=1'); exit(); } $base_url = 'http://' . $_SERVER['HTTP_HOST'] . substr($_SERVER['REQUEST_URI'], 0, strrpos($_SERVER['REQUEST_URI'], '/')+1); $partitions = get_partitions(); $shares = get_shares(); if (isset($_GET['share'])) { if (isset($shares[$_GET['share']])) { $share = $shares[$_GET['share']]; } else { die("Unknown share specified."); } } if (isset($_GET['part'])) { $found = FALSE; foreach ($partitions as $part) { if ($part->path == $_GET['part']) { $found = TRUE; break;