2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
10 {* Adds social networking buttons (Facebook, Twitter, LinkedIn, email) to public pages (online contributions, event info) *}
12 <div class="crm-section crm-socialnetwork alert alert-success status crm-ok" role="alert">
13 <h2>{ts}Help spread the word{/ts}</h2>
14 <p>{ts}Please help us and let your friends, colleagues and followers know about our page{/ts}{if $title}: <strong><a href="{$pageURL}">{$title}</a></strong>{else}.{/if}</p>
15 {if $emailMode eq true}
16 <a href="https://twitter.com/share?url={$url|escape:'url'}&text={$title}" class="btn btn-default" role="button" target="_blank">{ts}Tweet{/ts}</a>
17 <a href="https://facebook.com/sharer/sharer.php?u={$url|escape:'url'}" target="_blank" class="btn btn-default" role="button">{ts}Share on Facebook{/ts}</a>
18 <a href="ttps://www.linkedin.com/shareArticle?mini=true&url={$url|escape:'url'}&title={$title}" target="_blank" rel="noopener" class="btn btn-default">{ts}Share on LinkedIn{/ts}</a>
20 <button onclick="window.open('https://twitter.com/intent/tweet?url={$url|escape:'url'}&text={$title}','_blank')" type="button" class="btn btn-default crm-button" id="crm-tw"><i aria-hidden="true" class="crm-i fa-twitter"></i> {ts}Tweet{/ts}</button>
21 <button onclick="window.open('https://facebook.com/sharer/sharer.php?u={$url|escape:'url'}','_blank')" type="button" class="btn btn-default crm-button" role="button" id="crm-fb"><i aria-hidden="true" class="crm-i fa-facebook"></i> {ts}Share on Facebook{/ts}</button>
22 <button onclick="window.open('https://www.linkedin.com/shareArticle?mini=true&url={$url|escape:'url'}&title={$title}','_blank')" type="button" rel="noopener" class="btn btn-default crm-button" id="crm-li"><i aria-hidden="true" class="crm-i fa-linkedin"></i> {ts}Share on LinkedIn{/ts}</button>
23 <button onclick="window.open('mailto:?subject={$title}&body={$url|escape:'url'}','_self')" type="button" rel="noopener" class="btn btn-default crm-button" id="crm-email"><i aria-hidden="true" class="crm-i fa-envelope"></i> {ts}Email{/ts}</button>
26 {if $emailMode neq true}
30 <p><strong>{ts}You can also share the below link in an email or on your website:{/ts}</strong><br />
31 <a href="{$pageURL}">{$pageURL}</a></p>