source: trunk/client/modules/Elezioni/blocchi/social.php@ 285

Last change on this file since 285 was 233, checked in by luc, 10 years ago

client: blocco in condivisione per i maggiori social e
immissione titoli della pagina

File size: 1.2 KB
RevLine 
[233]1<?php
2/************************************************************************/
3/* Condivisione */
4/* blocco 2015 */
5/************************************************************************/
6echo '<h5>Condividi</h5>';
7
8global $descr_com,$descr_cons,$simbolo;
9
10$url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
11$url = htmlentities(urlencode($url));
12
13
14
15echo "
16<div id=\"share-buttons\" style=\"text-align:center;\">
17
18<!-- Facebook -->
19<a href=\"http://www.facebook.com/sharer.php?t=modules/Elezioni/images/$simbolo&u=$url\" target=\"_blank\"><img src=\"modules/Elezioni/images/facebook.png\" alt=\"Facebook\" /></a>
20
21
22<!-- Twitter -->
23
24<!-- Twitter -->
25<a href=\"http://twitter.com/share?url=$url&text=$descr_com $descr_cons&hashtags=Eleonline\" target=\"_blank\"><img src=\"modules/Elezioni/images/twitter.png\" alt=\"Twitter\" /></a>
26
27
28
29<!-- Google+ -->
30<a href=\"https://plus.google.com/share?url=$url\" target=\"_blank\"><img src=\"modules/Elezioni/images/google.png\" alt=\"Google\" /></a>";
31
32
33echo "</div>";
34
35
36
Note: See TracBrowser for help on using the repository browser.