forked from JavierGonzalez/POL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.php
127 lines (100 loc) · 4.52 KB
/
theme.php
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
<?php
// THEME HOME
if ($link) { mysql_close($link); }
if (!$txt) { redirect('http://'.HOST.'/'); }
if (!$txt_description) { $txt_description = $txt_title . ' | VirtualPol | ' . PAIS; }
if ($txt_title) { $txt_title .= ' | VirtualPol'; } else { $txt_title = 'VirtualPol | Red social democrática | Simulador Político Español'; }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?=$txt_title?></title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="language" content="es_ES" />
<meta name="description" content="<?=$txt_description?>" />
<script type="text/javascript">var _sf_startpt=(new Date()).getTime()</script>
<link href="<?=IMG?>style-home.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="/favicon.ico" />
<script type="text/javascript">
menu_ID = 0;
defcon = 5;
window.google_analytics_uacct = "UA-59186-46";
</script>
<script type="text/javascript" src="<?=($_SERVER['HTTPS']?'https://':'http://')?>ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<style type="text/css">
body { background: <?=COLOR_BG?> url('<?=IMG?>vp.gif') repeat fixed top left; }
div#footer, div.column, div.content, div#header {
border: 1px solid #cccccc;
border-width: 0 2px 2px 0;
}
</style>
<?=$txt_header?>
</head>
<body class="fullwidth">
<div id="container">
<div id="header">
<div id="header-in">
<?php
unset($txt_header);
if ($pol['nick']) {
$txt_perfil = '<b><a href="http://' . strtolower($pol['pais']) . '.'.DOMAIN.'/perfil/' . $pol['nick'] . '/">' . $pol['nick'] . '</a></b> | <b class="' . $pol['estado'] . '">' . ucfirst($pol['estado']) . '</b> de <b>' . $pol['pais'] . '</b> | '.boton('Salir', REGISTRAR.'login.php?a=logout');
} else { // sin identificar, sin login
$txt_perfil = boton('Crear ciudadano', REGISTRAR).' | '.boton('Entrar', REGISTRAR.'login.php');
}
?>
<div style="margin:10px 0 2px 0;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="208"><span id="homelogo"><a href="http://www.<?=DOMAIN?>/" class="gris" title="Home"><img src="<?=IMG?>logo-virtualpol-1.gif" width="205" height="60" alt="VirtualPol" style="margin:-12px 0 -9px -6px;" border="0" /></a></td><td><span style="color:grey;font-size:20x;">Red social democrática</span></span></td>
<td align="right"><?=$txt_perfil?></td>
</tr>
</table>
</div>
</div>
</div>
<div id="content-wrap" class="clear lcol">
<div class="content" style="max-width:900px;margin:0 auto;">
<div class="content-in">
<?=$txt?>
</div>
</div>
</div>
<div class="clear"></div>
<center style="margin:5px 0 -2px 0;"><span class="azul" style="padding:6px;color:grey;opacity:0.8;"><a href="/"><b>VirtualPol</b></a> | Plataformas:
<?php foreach ($vp['paises'] AS $pais) { if (!in_array($pais, $vp['paises_congelados'])) { echo '<a href="http://'.strtolower($pais).'.'.DOMAIN.'/">'.$pais.'</a> '; } } ?>
| <a href="/desarrollo">Desarrollo</a> | <a href="/TOS"><b>TOS</b></a>
</span></center>
</div>
<script type="text/javascript" src="<?=IMG?>scripts.js?v=20"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-59186-46']);
_gaq.push(['_setDomainName', '.virtualpol.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript">
var _sf_async_config={uid:26055,domain:"virtualpol.com"};
(function(){
function loadChartbeat() {
window._sf_endpt=(new Date()).getTime();
var e = document.createElement('script');
e.setAttribute('language', 'javascript');
e.setAttribute('type', 'text/javascript');
e.setAttribute('src',
(("https:" == document.location.protocol) ? "https://a248.e.akamai.net/chartbeat.download.akamai.com/102508/" : "http://static.chartbeat.com/") +
"js/chartbeat.js");
document.body.appendChild(e);
}
var oldonload = window.onload;
window.onload = (typeof window.onload != 'function') ?
loadChartbeat : function() { oldonload(); loadChartbeat(); };
})();
</script>
<!--<script type="text/javascript" src="<?=IMG?>lib/efectonieve.js"></script>-->
</body>
</html>