silverstripe-elemental-basics/templates/Objects/ShareLinks.ss

30 lines
1.3 KiB
Scheme
Raw Normal View History

2021-06-19 20:27:51 +02:00
<div class="sc-links sc-links-share">
2022-08-25 21:39:26 +02:00
<a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u={$AbsoluteLink}" rel="noreferrer" class="fb" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u={$AbsoluteLink}','sharer','toolbar=0,status=0,width=530,height=520');return false;">
<i class="fa fab fa-facebook-f"></i>
<span class="visually-hidden">Share Facebook</span>
</a>
2021-08-02 22:38:37 +02:00
<a target="_blank" href="https://twitter.com/intent/tweet?url={$AbsoluteLink}" rel="noreferrer" class="tw">
2022-08-25 21:39:26 +02:00
<i class="fa fab fa-twitter"></i>
<span class="visually-hidden">Share Twitter</span>
</a>
<a target="_blank" href="https://www.linkedin.com/sharing/share-offsite/?url={$AbsoluteLink}" rel="noreferrer" class="li">
<i class="fab fa-linkedin-in"></i>
<i class="visually-hidden">Share at LinkedIn</i>
</a>
<a
target="_blank"
href="mailto:?subject=I wanted you to see this site&amp;body=Check out this site {$AbsoluteLink}"
class="ml"
>
<i class="fa fas fa-envelope"></i>
<i class="visually-hidden">Share by Email</i>
</a>
<a onclick="window.print()" title="Print" rel="noreferrer" target="_blank" class="print">
<i class="fas fa-print"></i>
<i class="visually-hidden">Print</i>
2021-06-19 20:27:51 +02:00
</a>
</div>