Last change
on this file since 360 was 347, checked in by roby, 3 years ago |
Aggiornamento per compatibilità con php7.4
|
File size:
1.2 KB
|
Line | |
---|
1 | <?php
|
---|
2 | /************************************************************************/
|
---|
3 | /* Condivisione */
|
---|
4 | /* blocco 2015 */
|
---|
5 | /************************************************************************/
|
---|
6 | echo '<h5>Condividi</h5>';
|
---|
7 |
|
---|
8 | global $descr_com,$descr_cons,$simbolo;
|
---|
9 |
|
---|
10 | $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
|
---|
11 | $url = htmlentities(urlencode($url));
|
---|
12 |
|
---|
13 |
|
---|
14 |
|
---|
15 | echo "
|
---|
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 |
|
---|
33 | echo "</div>";
|
---|
34 |
|
---|
35 |
|
---|
36 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.