Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
819d0d41 | 3 | | CiviCRM version 4.5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
819d0d41 | 5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
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) *} | |
27 | <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> | |
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*} | |
34904148 | 38 | <a href="http://twitter.com/share?url={$url}&text={$title}" id="crm_tweet"> |
6a488035 TO |
39 | <img title="Twitter Tweet Button" src="{$config->userFrameworkResourceURL}/i/tweet.png" width="55px" height="20px" alt="Tweet Button"> |
40 | </a> | |
34904148 | 41 | <a href="http://www.facebook.com/plugins/like.php?href={$url}" target="_blank"> |
6a488035 TO |
42 | <img title="Facebook Like Button" src="{$config->userFrameworkResourceURL}/i/fblike.png" alt="Facebook Button" /> |
43 | </a> | |
44 | {else} | |
45 | {*use advanced buttons for pages*} | |
46 | <div class="label"> | |
47 | <iframe allowtransparency="true" frameborder="0" scrolling="no" | |
34904148 | 48 | src="https://platform.twitter.com/widgets/tweet_button.html?text={$title}&url={$url|escape:'url'}" |
6a488035 TO |
49 | style="width:100px; height:20px;"> |
50 | </iframe> | |
51 | </div> | |
52 | <div class="label"> | |
53 | <g:plusone href={$url}></g:plusone> | |
54 | </div> | |
55 | <div class="label" style="width:300px;"> | |
34904148 | 56 | <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 |
57 | </iframe> |
58 | </div> | |
59 | <div class="label"> | |
34904148 | 60 | <script src="https://platform.linkedin.com/in.js" type="text/javascript"></script> |
6a488035 TO |
61 | <script type="IN/Share" data-url={$url} data-counter="right"></script> |
62 | </div> | |
63 | {/if} | |
64 | </div> | |
65 | {if $pageURL} | |
66 | {if $emailMode neq true} | |
67 | <br/> | |
68 | {/if} | |
69 | <br/> | |
70 | <div class="clear"></div> | |
71 | <div> | |
72 | <span class="bold">{ts}You can also share the below link in an email or on your website.{/ts}</span> | |
73 | <br/> | |
74 | <a href="{$pageURL}">{$pageURL}</a> | |
75 | </div> | |
76 | {else} | |
77 | <div class="clear"></div> | |
78 | {/if} | |
79 | </div> | |
80 | ||
81 |