This repository was archived by the owner on Mar 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgracias.php
More file actions
137 lines (116 loc) · 6.46 KB
/
Copy pathgracias.php
File metadata and controls
137 lines (116 loc) · 6.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?php
include_once ("includes/config.php");
$site_name = SITE_NAME;
$site_title = SITE_TITLE;
$page_title = SITE_TITLE . SEPARATOR . SITE_NAME ;
$description = '¡Muchas gracias por firmar y defender el derechos de los niños y niñas a disfrutar de un mundo libre de acoso escolar!';
$img_fb_url = URL_SITE . 'images/social/compartir-fb-generico.jpg';
$img_tw_url = URL_SITE . 'images/social/compartir-tw-generico.jpg';
$page_url = URL_SITE . 'gracias';
$share_fb = 'Yo ya he firmado para llenar todos los colegios de #PupitresLibres de acoso escolar.';
$share_tw = 'Una recogida de firmas de @amnistiaespana bien necesaria para conseguir #PupitresLibres de acoso escolar. ¡Me ha encantado!';
$share_wh = 'Yo ya he firmado para lograr que todos los colegios se llenen de #PupitresLibres de acoso escolar. ¡Súmate tú también!';
$url_share_fb = 'http://bit.ly/2I3Fo5Z';
$url_share_tw = 'http://bit.ly/2I4WArH';
$url_share_wh = 'http://bit.ly/2I1jn82';
$caso = $_GET['caso'];
if($caso) {
$segmentacion_origen = "?origen=pupitres_libres&caso=".$casos[$caso][2];
}else {
$segmentacion_origen = "?origen=pupitres_libres";
}
?>
<!DOCTYPE html>
<html lang="es">
<head>
<?php include_once ("includes/head.php"); ?>
</head>
<body class="gracias gracias1">
<!--Header-->
<?php include_once ("includes/header.php"); ?>
<?php
// Pixels de retargetting de FB, Google, Twitter,...
//include_once("includes/pixelretgracias.php");
?>
<main>
<!--Modulo gracias-->
<section class="modulo-gracias bcolor-grey-section text-center">
<div class="grid-container-small grid">
<h1 class="black">¡Muchas gracias!</h1>
<p class="p-big black">Por firmar y defender el derechos de los niños y niñas a disfrutar de un mundo libre de acoso escolar.</p>
</div>
</section>
<!--Modulo compartir-->
<section class="modulo-compartir bcolor-white-section text-center">
<div class="grid-container-medium modulo-compartir-inside grid">
<h2 class="black">Comparte</h2>
<img src="<?php echo URL_SITE; ?>images/icono-compartir.png">
<p class="p-small black">Ahora puedes llegar mucho más lejos y multiplicar tu acción: comparte esta petición en tus redes sociales o en tus grupos de Whatsapp para que más personas de tu entorno firmen la campaña. <br><br/> Cuántos más seamos más fuerza tendremos para llenar los colegios de pupitres libres de acoso escolar.</p>
<div class="container-botones-compartir">
<a data-e_c="<?php echo EVENT_CATEGORY; ?>" data-e_a="<?php echo $casos[$caso][2]?> comp FB" data-e_l="<?php echo $casos[$caso][2]?> comp FB" data-shareurl="<?php echo $url_share_fb; ?>" class="white bcolor-green-section facebook facebook-share send-piwik-event" href="#">Comparte en facebook</a>
<a data-e_c="<?php echo EVENT_CATEGORY; ?>" data-e_a="<?php echo $casos[$caso][2]?> comp TW" data-e_l="<?php echo $casos[$caso][2]?> comp TW" data-shareurl="<?php echo urlencode($url_share_tw); ?>" data-texto="<?php echo $share_tw; ?>" class="white bcolor-green-section twitter twitter-share send-piwik-event" href="#">Comparte en twitter</a>
<?php
if($isMobile) {
?>
<a data-e_c="<?php echo EVENT_CATEGORY; ?>" data-e_a="<?php echo $casos[$caso][2]?> comp WH" data-e_l="<?php echo $casos[$caso][2]?> comp WH" data-enlace="<?php echo $page_url; ?>" data-action="share/whatsapp/share" href="whatsapp://send?text=<?=urlencode($share_wh . ' ' . $url_share_wh);?>" class="white bcolor-green-section whatsapp send-piwik-event">Comparte en Whatsapp</a>
<?php
}
?>
</div>
<p class="p-small black">¡No te vayas todavía! Aún puedes hacer mucho más por los niños y niñas que sufren acoso escolar.</p>
<a data-e_c="<?php echo EVENT_CATEGORY; ?>" data-e_a="gracias boton continuar" data-e_l="gracias boton continuar" class="bcolor-yellow black continuar-btn send-piwik-event" href="<?php echo URL_SITE; ?>paso-g-2">Continuar</a>
</div>
</section>
</main>
<!-- FOOTER -->
<footer class="bcolor-green-section text-center clear">
<div class="grid">
<p class="white">© 2019 AMNISTÍA INTERNACIONAL ESPAÑA</p>
<p class="white">Más información sobre el uso de los datos en <a target="_blank" href="https://www.es.amnesty.org/politica-de-privacidad" class="underline" >https://www.es.amnesty.org/politica-de-privacidad</a></p>
</div>
</footer>
<!--Boton Firma-->
<a data-e_c="<?php echo EVENT_CATEGORY; ?>" data-e_a="<?php echo $first_string_ga_event;?> boton footer firma" data-e_l="<?php echo $first_string_ga_event;?> boton footer firma" href="#firma" class="btn-fijo-firma boton black bcolor-yellow send-piwik-event">Firma</a>
<!--Boton Descarga-->
<a data-e_c="<?php echo EVENT_CATEGORY; ?>" data-e_a="<?php echo $first_string_ga_event;?> boton footer descarga" data-e_l="<?php echo $first_string_ga_event;?> boton footer descarga" href="#descarga" class="btn-fijo-descarga boton black bcolor-yellow send-piwik-event">Descarga</a>
<?php #include_once ("includes/footer.php"); ?>
<!-- Matomo -->
<script type="text/javascript">
var nuevoFirmante = <?php echo $_GET['s']; ?>;
var casoPiwik = <?php echo $_GET['caso']; ?>;
//console.log('nuevoFirmante: '+nuevoFirmante);
var _paq = _paq || [];
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setCookieDomain", "*.es.amnesty.org"]);
_paq.push(["setDomains", ["*.es.amnesty.org",]]);
/*cookie consent*/
_paq.push(['requireCookieConsent']);
document.addEventListener('trackPage', function(){
_paq.push(['trackPageView']);
stats_allowed = document.cookie.search(/omCookieConsent=[^;]+group-1.1/) > -1? 1: 0;
/*cookie consent*/
if(stats_allowed === 1){
_paq.push(['setCookieConsentGiven']);
} else {
_paq.push(['forgetCookieConsentGiven']);
}
_paq.push(['enableLinkTracking']);
// marcamos los goals, tanto geneŕicos como especiales de la micro
_paq.push(["trackGoal", 6]);
_paq.push(["trackGoal", 33]);
if (nuevoFirmante == 2) {
_paq.push(["trackGoal", 8]);
}
(function() {
var u="//estadisticas.es.amnesty.org/piwik/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
});
</script>
<noscript><p><img src="//estadisticas.es.amnesty.org/piwik/matomo.php?idsite=1" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
</body>
</html>