Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
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 | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | {* Adds social networking buttons (Facebook like, Twitter tweet, Google +1, LinkedIn) to public pages (online contributions, event info) *} | |
baef101a | 11 | |
6a488035 TO |
12 | <div class="crm-section crm-socialnetwork help"> |
13 | <h3 class="nobackground">{ts}Help spread the word{/ts}</h3> | |
14 | <div class="description"> | |
f813f78e | 15 | {ts}Please help us and let your friends, colleagues and followers know about our page{/ts}{if $title}: |
6a488035 TO |
16 | <span class="bold"><a href="{$pageURL}">{$title}</a></span> |
17 | {else}.{/if} | |
18 | </div> | |
19 | <div class="crm-fb-tweet-buttons"> | |
20 | {if $emailMode eq true} | |
21 | {*use images for email*} | |
37c283b6 | 22 | <a href="https://twitter.com/share?url={$url|escape:'url'}&text={$title}" id="crm_tweet"> |
46bdc72a | 23 | <img title="Twitter Tweet Button" src="{$config->userFrameworkResourceURL|replace:'https://':'http://'}/i/tweet.png" width="55px" height="20px" alt="Tweet Button"> |
6a488035 | 24 | </a> |
37c283b6 | 25 | <a href="https://www.facebook.com/plugins/like.php?href={$url}" target="_blank"> |
46bdc72a | 26 | <img title="Facebook Like Button" src="{$config->userFrameworkResourceURL|replace:'https://':'http://'}/i/fblike.png" alt="Facebook Button" /> |
6a488035 TO |
27 | </a> |
28 | {else} | |
29 | {*use advanced buttons for pages*} | |
30 | <div class="label"> | |
31 | <iframe allowtransparency="true" frameborder="0" scrolling="no" | |
34904148 | 32 | src="https://platform.twitter.com/widgets/tweet_button.html?text={$title}&url={$url|escape:'url'}" |
6a488035 TO |
33 | style="width:100px; height:20px;"> |
34 | </iframe> | |
35 | </div> | |
6a488035 | 36 | <div class="label" style="width:300px;"> |
34904148 | 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"> |
6a488035 TO |
38 | </iframe> |
39 | </div> | |
40 | <div class="label"> | |
34904148 | 41 | <script src="https://platform.linkedin.com/in.js" type="text/javascript"></script> |
6a488035 TO |
42 | <script type="IN/Share" data-url={$url} data-counter="right"></script> |
43 | </div> | |
44 | {/if} | |
45 | </div> | |
46 | {if $pageURL} | |
47 | {if $emailMode neq true} | |
48 | <br/> | |
49 | {/if} | |
50 | <br/> | |
51 | <div class="clear"></div> | |
52 | <div> | |
53 | <span class="bold">{ts}You can also share the below link in an email or on your website.{/ts}</span> | |
54 | <br/> | |
55 | <a href="{$pageURL}">{$pageURL}</a> | |
56 | </div> | |
57 | {else} | |
58 | <div class="clear"></div> | |
59 | {/if} | |
60 | </div> | |
61 | ||
62 |