Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
fee14197 | 3 | | CiviCRM version 5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
6b83d5bd | 5 | | Copyright CiviCRM LLC (c) 2004-2019 | |
6a488035 TO |
6 | +--------------------------------------------------------------------+ |
7 | | This file is a part of CiviCRM. | | |
8 | | | | |
9 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
10 | | under the terms of the GNU Affero General Public License | | |
11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
12 | | | | |
13 | | CiviCRM is distributed in the hope that it will be useful, but | | |
14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
16 | | See the GNU Affero General Public License for more details. | | |
17 | | | | |
18 | | You should have received a copy of the GNU Affero General Public | | |
19 | | License and the CiviCRM Licensing Exception along | | |
20 | | with this program; if not, contact CiviCRM LLC | | |
21 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
22 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
24 | +--------------------------------------------------------------------+ | |
25 | *} | |
26 | {* Adds social networking buttons (Facebook like, Twitter tweet, Google +1, LinkedIn) to public pages (online contributions, event info) *} | |
baef101a | 27 | |
6a488035 TO |
28 | <div class="crm-section crm-socialnetwork help"> |
29 | <h3 class="nobackground">{ts}Help spread the word{/ts}</h3> | |
30 | <div class="description"> | |
f813f78e | 31 | {ts}Please help us and let your friends, colleagues and followers know about our page{/ts}{if $title}: |
6a488035 TO |
32 | <span class="bold"><a href="{$pageURL}">{$title}</a></span> |
33 | {else}.{/if} | |
34 | </div> | |
35 | <div class="crm-fb-tweet-buttons"> | |
36 | {if $emailMode eq true} | |
37 | {*use images for email*} | |
37c283b6 | 38 | <a href="https://twitter.com/share?url={$url|escape:'url'}&text={$title}" id="crm_tweet"> |
46bdc72a | 39 | <img title="Twitter Tweet Button" src="{$config->userFrameworkResourceURL|replace:'https://':'http://'}/i/tweet.png" width="55px" height="20px" alt="Tweet Button"> |
6a488035 | 40 | </a> |
37c283b6 | 41 | <a href="https://www.facebook.com/plugins/like.php?href={$url}" target="_blank"> |
46bdc72a | 42 | <img title="Facebook Like Button" src="{$config->userFrameworkResourceURL|replace:'https://':'http://'}/i/fblike.png" alt="Facebook Button" /> |
6a488035 TO |
43 | </a> |
44 | {else} | |
baef101a | 45 | <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> |
6a488035 TO |
46 | {*use advanced buttons for pages*} |
47 | <div class="label"> | |
48 | <iframe allowtransparency="true" frameborder="0" scrolling="no" | |
34904148 | 49 | src="https://platform.twitter.com/widgets/tweet_button.html?text={$title}&url={$url|escape:'url'}" |
6a488035 TO |
50 | style="width:100px; height:20px;"> |
51 | </iframe> | |
52 | </div> | |
53 | <div class="label"> | |
54 | <g:plusone href={$url}></g:plusone> | |
55 | </div> | |
56 | <div class="label" style="width:300px;"> | |
34904148 | 57 | <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 |
58 | </iframe> |
59 | </div> | |
60 | <div class="label"> | |
34904148 | 61 | <script src="https://platform.linkedin.com/in.js" type="text/javascript"></script> |
6a488035 TO |
62 | <script type="IN/Share" data-url={$url} data-counter="right"></script> |
63 | </div> | |
64 | {/if} | |
65 | </div> | |
66 | {if $pageURL} | |
67 | {if $emailMode neq true} | |
68 | <br/> | |
69 | {/if} | |
70 | <br/> | |
71 | <div class="clear"></div> | |
72 | <div> | |
73 | <span class="bold">{ts}You can also share the below link in an email or on your website.{/ts}</span> | |
74 | <br/> | |
75 | <a href="{$pageURL}">{$pageURL}</a> | |
76 | </div> | |
77 | {else} | |
78 | <div class="clear"></div> | |
79 | {/if} | |
80 | </div> | |
81 | ||
82 |