Skip to content

Instantly share code, notes, and snippets.

@thierrypigot
Last active May 25, 2018 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thierrypigot/cbf0a85ce35e99d92729ef5abd498d22 to your computer and use it in GitHub Desktop.
Save thierrypigot/cbf0a85ce35e99d92729ef5abd498d22 to your computer and use it in GitHub Desktop.
Partage social
<?php
$url_site = 'www.wearewp.pro';
$url = 'https://www.wearewp.pro/rgpd-agence-web/';
$compte_twitter = 'WeAre_wp';
$titre = 'Agence Web, qu’est-ce que le RGPD ?';
$description = "Le RGPD c’est quoi ? Quatre lettres qui font tant couler d’encre et tant parler d’elles ! RGPD est l’acronyme de Règlement Général sur la Protection des Données, mais on n’est pas plus avancé. Pourtant, certains d’entre nous vont devoir se pencher sur la question. Pourquoi un nouveau règlement ? Quand va-t-il entrer en vigueur ? Qu’est-ce qui va changer ? Autant de questions qui vont trouver une réponse dans cet article.";
?>
<div id="sharing_box">
<p>Partager :</p>
<ul class="sharing-menu">
<li class="sharing-item">
<a class="sharing-link" target="_blank" rel="nofollow" href="https://www.facebook.com/sharer/sharer.php?t=<?php echo $titre; ?>&amp;u=<?php echo $url; ?>" title="Partager sur Facebook (Ouvre un nouvel onglet)">
<img src="/img/social/facebook-draw-logo.svg" alt="Facebook" class="lazyloading" data-was-processed="true">
</a>
</li>
<li class="sharing-item">
<a class="sharing-link" target="_blank" rel="nofollow" href="https://twitter.com/intent/tweet?text=<?php echo $titre; ?>&amp;related=@<?php echo $compte_twitter; ?>&amp;url=<?php echo $url; ?>" title="Partager sur Twitter (Ouvre un nouvel onglet)">
<img src="/img/social/twitter-draw-logo.svg" alt="Twitter" class="lazyloading" data-was-processed="true">
</a>
</li>
<li class="sharing-item">
<a class="sharing-link" target="_blank" rel="nofollow" href="https://www.linkedin.com/shareArticle?mini=true&amp;url=<?php echo $url; ?>&amp;title=<?php echo $titre; ?>&amp;summary=&nbsp; <?php echo $description; ?>&amp;source=<?php echo $url_site; ?>" title="Partager sur Linkedin (Ouvre un nouvel onglet)">
<img src="/img/social/linkedin-draw-logo.svg" alt="LinkedIn" class="lazyloading" data-was-processed="true">
</a>
</li>
<li class="sharing-item">
<a class="sharing-link" target="_blank" rel="nofollow" title="Cliquer pour envoyer par mail" href="mailto:?subject=J’ai trouvé cet article intéressant : <?php echo $titre; ?>&amp;body=&nbsp; <?php echo $description; ?> <?php echo $url; ?>">
<img src="/img/social/mail-draw-logo.svg" alt="Partager par e-mail" class="lazyloading" data-was-processed="true">
</a>
</li>
<li class="sharing-item">
<a class="sharing-link" href="#" onclick="window.print();return false;">
<img src="/img/social/printer-draw-logo.svg" alt="Imprimer cette page" class="lazyloading" data-was-processed="true">
</a>
</li>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment