Ja, ich habe das sharebuttons_default-template folgendermaßen angepasst:
PHP-Code:
<!-- indexer::stop -->
<!-- Änderungen in Zeilen 03, 12, 18, 21 und 26 -->
<br><br>
<div class="sharebuttons">
<ul<?php if ($this->theme): ?> class="theme <?= $this->theme ?>"<?php endif ?>>
<?php foreach ($this->networks as $network): ?>
<?php if ($network == 'facebook'): ?>
<li><a class="facebook" href="https://www.facebook.com/sharer/sharer.php?u=<?= $this->url ?>&t=<?= $this->title ?>" rel="nofollow" title="<?= $this->lang['share_on_facebook'] ?>" onclick="return shd.open(this.href,600,300);">Facebook</a></li>
<?php elseif ($network == 'twitter'): ?>
<li><a class="twitter" href="https://twitter.com/intent/tweet?url=<?= $this->url ?>&text=<?= $this->title ?>" rel="nofollow" title="<?= $this->lang['share_on_twitter'] ?>" onclick="return shd.open(this.href,500,260);">Twitter</a></li>
<?php elseif ($network == 'gplus'): ?>
<li><a class="instagram" href="https://www.instagram.com/share?url=<?= $this->url ?>" rel="nofollow" title="<?= $this->lang['share_on_instagram'] ?>" onclick="return shd.open(this.href,520,450);">Instagram</a></li>
<?php elseif ($network == 'linkedin'): ?>
<li><a class="linkedin" href="http://www.linkedin.com/shareArticle?mini=true&url=<?= $this->url ?>&title=<?= $this->title ?>" rel="nofollow" title="<?= $this->lang['share_on_linkedin'] ?>" onclick="return shd.open(this.href,520,570);">LinkedIn</a></li>
<?php elseif ($network == 'xing'): ?>
<li><a class="xing" href="https://www.xing.com/social_plugins/share/new?sc_p=xing-share&h=1&url=<?= $this->url ?>" rel="nofollow" title="<?= $this->lang['share_on_xing'] ?>" onclick="return shd.open(this.href,460,460);">Xing</a></li>
<?php elseif ($network == 'mail'): ?>
<li><a class="mail" href="mailto:?subject=<?= $this->lang['mail_subject'] ?>:%20<?= $this->title ?>&body=<?= $this->url ?>" title="<?= $this->lang['share_per_mail'] ?>">Mail</a></li>
<?php elseif ($network == 'tumblr'): ?>
<li><a class="tumblr" href="http://www.tumblr.com/share?v=3&u=<?= $this->url ?>&t=<?= $this->title ?>&s=<?= $this->description ?>" rel="nofollow" title="<?= $this->lang['share_on_tumblr'] ?>" onclick="return shd.open(this.href,800,450);">tumblr</a></li>
<?php elseif ($network == 'pinterest'): ?>
<li><a class="pinterest" href="http://pinterest.com/pin/create/button/?url=<?= $this->url ?>&media=<?= $this->image ?>&description=<?= $this->description ?>" rel="nofollow" title="<?= $this->lang['share_on_pinterest'] ?>" onclick="return shd.open(this.href,460,460);">Pinterest</a></li>
<?php endif ;?>
<?php if ($network == 'reddit'): ?>
<li><a class="reddit" href="http://www.reddit.com/submit?url=<?= $this->url ?>&title=<?= $this->title ?>" rel="nofollow" title="<?= $this->lang['share_on_reddit'] ?>" onclick="return shd.open(this.href,855,900);">Reddit</a></li>
<?php elseif ($network == 'whatsapp'): ?>
<li><a class="whatsapp" href="whatsapp://send?text=<?= $this->description ? $this->description . '%0A%0A' : '' ?><?= $this->url ?>" data-action="share/whatsapp/share" rel="nofollow" title="<?= $this->lang['share_on_whatsapp'] ?>">WhatsApp</a></li>
<?php elseif ($network == 'print'): ?>
<li><a class="print" href="#" rel="nofollow" title="<?= $this->lang['print_page'] ?>" onclick="window.print();return false"><?= $this->lang['print_page'] ?></a></li>
<?php elseif ($network == 'pdf' && $this->pdfLink): ?>
<li><a class="pdf" href="<?= $this->pdfLink ?>" rel="nofollow" title="<?= $this->lang['create_pdf'] ?>"><?= $this->lang['create_pdf'] ?></a></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
</div>
<!-- indexer::continue -->
in zeile 12 habe ich aus google-plus instagram gemacht, obwohl ich weiß, dass instagram keine richtige teilen-funktion hat. wenn das schlecht war, kann ich natürlich die funktion für instagram auch wieder ganz rausnehmen.
die änderung in zeile 18 ist von einem freund, damit bei der mail-funktion die beschreibende anzeige beim mouseover auch kommt (war vorher nicht der fall).
und die änderungen in zeile 21 und 26 habe ich glaube ich nach deinen vorgaben gemacht, spooky, weil ich die buttons von pinterest und whatsapp unabhängig vom endgerät angezeigt haben wollte.
möglicherweise habe ich dabei auch irgendwo "mist" gebaut...
Lesezeichen