Merge pull request #5490 from rohankatkar/CRM-16170
[civicrm-core.git] / templates / CRM / common / SocialNetwork.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
39de6fd5 3 | CiviCRM version 4.6 |
6a488035 4 +--------------------------------------------------------------------+
e7112fa7 5 | Copyright CiviCRM LLC (c) 2004-2015 |
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}&amp;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>
34904148 41 <a href="http://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}
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}&amp;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&amp;href={$url|escape:'url'}&amp;send=false&amp;layout=standard&amp;show_faces=false&amp;action=like&amp;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