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 like, Twitter tweet, Google +1, LinkedIn) to public pages (online contributions, event info) *}
12 <div class="crm-section crm-socialnetwork help">
13 <h3 class="nobackground">{ts}Help spread the word{/ts}</h3>
14 <div class="description">
15 {ts}Please help us and let your friends, colleagues and followers know about our page{/ts}{if $title}:
16 <span class="bold"><a href="{$pageURL}">{$title}</a></span>
19 <div class="crm-fb-tweet-buttons">
20 {if $emailMode eq true}
21 {*use images for email*}
22 <a href="https://twitter.com/share?url={$url|escape:'url'}&text={$title}" id="crm_tweet">
23 <img title="Twitter Tweet Button" src="{$config->userFrameworkResourceURL|replace:'https://':'http://'}/i/tweet.png" width="55px" height="20px" alt="Tweet Button">
25 <a href="https://www.facebook.com/plugins/like.php?href={$url}" target="_blank">
26 <img title="Facebook Like Button" src="{$config->userFrameworkResourceURL|replace:'https://':'http://'}/i/fblike.png" alt="Facebook Button" />
29 {*use advanced buttons for pages*}
31 <iframe allowtransparency="true" frameborder="0" scrolling="no"
32 src="https://platform.twitter.com/widgets/tweet_button.html?text={$title}&url={$url|escape:'url'}"
33 style="width:100px; height:20px;">
36 <div class="label" style="width:300px;">
37 <iframe src="https://www.facebook.com/plugins/like.php?app_id=240719639306341&href={$url|escape:'url'}&send=false&layout=standard&show_faces=false&action=like&colorscheme=light" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:300px; height:30px;" allowTransparency="true">
41 <script src="https://platform.linkedin.com/in.js" type="text/javascript"></script>
42 <script type="IN/Share" data-url={$url} data-counter="right"></script>
47 {if $emailMode neq true}
51 <div class="clear"></div>
53 <span class="bold">{ts}You can also share the below link in an email or on your website.{/ts}</span>
55 <a href="{$pageURL}">{$pageURL}</a>
58 <div class="clear"></div>