source: trunk/client/header.php@ 241

Last change on this file since 241 was 241, checked in by luc, 9 years ago

Aggiunta del widget Privacy e CookieLaw per l'informativa sui cookie - Aggiunto Tema Realistic - Aggiunto Tema Spectral

File size: 2.4 KB
RevLine 
[2]1<?php
2/************************************************************************/
3/* Eleonline - Raccolta e diffusione dei dati elettorali */
4/* by Luciano Apolito & Roberto Gigli */
5/* http://www.eleonline.it */
6/* info@eleonline.it luciano@aniene.net rgigli@libero.it */
7/************************************************************************/
8/* ultima modfifica: aggiunta rotazione 18 marzo 2009 */
9
[20]10if (stristr($PHP_SELF,"header.php")) {
[2]11 Header("Location: index.php");
12 die();
13}
14
[230]15### tema mobile Futura 2
16include("inc/mobile.php"); // riconoscimento mobile
17$is_mobile=is_mobile();
18 if($is_mobile && $nocell!=1){
19 $tema="Futura2";
20 }
21
[2]22include("temi/$tema/index.php");
23include("modules/Elezioni/language/lang-$lang.php");
24
[230]25function head(){
[240]26 global $csv,$tema,$tour,$sitename,$pagetitle,$simbolo,$siteurl,$siteistat;
[2]27 echo '
28 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
29 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">';
30 echo "<head>\n";
31 echo "<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />";
[233]32 //echo "<title>Eleonline - Elezioni on line</title>\n";
33 echo '<title>'.$sitename.' '.$pagetitle.'</title>'."\n";
[240]34 echo "<meta name=\"title\" content=\"$sitename\" />\n";
35 echo "<meta name=\"description\" content=\"$pagetitle\" />\n";
36
37 if(file_exists("modules/Elezioni/images/$siteistat.png")){
38 echo "<link rel=\"image_src\" href=\"modules/Elezioni/images/$siteistat.png\" />\n"; #img fb
39 }else{
40 echo "<link rel=\"image_src\" href=\"modules/Elezioni/images/logo.gif\" />\n"; #img fb
41 }
42
[2]43 echo "<link rel=\"stylesheet\" href=\"temi/$tema/style.css\" type=\"text/css\" />\n\n\n";
[241]44
45
46
47
[2]48 include("inc/javascript.php"); # rotazione (18 marzo 2009) tema tour
[230]49 ##### tema mobile
50 if (file_exists("temi/$tema/themeutils.php")) {
51 include("temi/$tema/themeutils.php"); #incluso x tema mobile
52 }
[240]53
[241]54
55
56
57
58
[2]59 echo "\n\n\n</head>\n";
60 # rotazione per tema tour
61 if (isset($_SESSION['ruota'])){$csv=1; echo "<body onload=\"loadpage()\"";}
[230]62 else echo "<body";
[2]63 if (!$csv) echo " style=\"background-image: url(temi/$tema/images/sfondo.jpg); background-repeat:repeat-x;\"";
64 echo " >\n";
65 include("inc/authors.php");
66
67 include_once("modules/Elezioni/funzioni.php");
[241]68
69
70
[2]71 if (!$csv)testata();
[230]72}
73head();
[2]74
75?>
Note: See TracBrowser for help on using the repository browser.