summaryrefslogtreecommitdiffstats
path: root/templates/theme.html
blob: bb961b8de89adbc58249fd5076842b5ca0e7e30a (plain)
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
{% load i18n %}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="{{ site_base }}{{ STATIC_URL }}css/style.css">
    <link rel="shortcut icon" href="{{ site_base }}{{ STATIC_URL }}img/favicon.ico" />
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <link href="{{ site_base }}{{ STATIC_URL }}css/font-awesome.css" rel="stylesheet">
        <link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
        <link rel="stylesheet" href="{{ site_base }}{{ STATIC_URL }}css/bootstrap.min.css">
        <link rel="stylesheet" href="{{ site_base }}{{ STATIC_URL }}css/bootstrap-theme.css">
        <link rel="stylesheet" href="{{ site_base }}{{ STATIC_URL }}css/slick.css">
        <link rel="stylesheet" href="{{ site_base }}{{ STATIC_URL }}css/app.css">
        <link rel="stylesheet" href="{{ site_base }}{{ STATIC_URL }}css/hack.css">
        <link rel="stylesheet" href="{{ site_base }}{{ STATIC_URL }}css/entrouvert.css" >
        <link rel="stylesheet" href="{{ site_base }}{{ STATIC_URL }}css/surclass.css">
        <link rel="stylesheet" href="{{ site_base }}{{ STATIC_URL }}css/more.css">
        <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
    <title>{% block title %}Compte Citoyen{% endblock %}</title>
    {{ openid_meta }}
    {% block extra_scripts %}
    {% endblock %}
   
</head>

<body {% block bodyargs %}{% endblock %}  style="background: url({{ site_base }}{{ STATIC_URL }}img/Background-par-defaut.jpg) no-repeat;background-size: 100% auto; background-position: center top;">
  <div class="body">
    <div id="wrap" class="container">
   
     {% include "header.html" %}
                           
    <div class="row">     
    <div id="main-content-wrapper">
         <div id="single-title">Portail citoyen</div>
       
        <!-- colonne gauche -->
{% load blurp_tags %}
<div id="nav">
	<div class="col-sm-16">
		<div class="box box-full account-panel panel panel-default">
			<div class="panel-heading" id="toplinks">
				<span class="logged-in">
					<h4 class="panel-title user fullname">
						{% block user-name %}{% endblock %}
					</h4>
				</span>
			</div>
			<div class="panel-body">
				<ul>
					{% block left-menu-links %}
					{% endblock %}
				</ul>
			</div>
		</div>
	</div>

	<div class="col-sm-16">
		<div class="box box-full nav-panel panel panel-default">
			<div class="panel-heading">
				<h4 class="panel-title">
					Vos démarches
				</h4>
			</div>
			<div class="panel-body">
				<ul>
                {% blurp "services" %}
                    {% for item in menu %}
                         <li><a href="{{ item.link }}">{{ item.title }}</a></li>
                         {% if item.sub_items %}
                             <ul>
                             {% for subitem in item.sub_items %}
                                <li><a href="{{ subitem.link }}">{{ subitem.title }}</a></li>
                             {% endfor %}
                             </ul>
                         {% endif %}
                     {% endfor %}
                 {% endblurp %}
				</ul>
			</div>
		</div>
	</div>
	<div id="access" class="col-sm-5 col-md-16">
<div class="access panel-group" id="access-menu">
    <div class="box box-full access--directs panel panel-default">
        <div class="panel-heading">
            <h4 class="panel-title"><a data-toggle="collapse" data-parent="#access-menu" href="#access-toggle">Accès directs<i class="fa fa-caret-square-o-down"></i></a></h4>
        </div>
        <div id="access-toggle" class="panel-collapse collapse in">
            <div class="panel-body">
                <ul>
                {% blurp "acces-directs" %}
                    {% for item in menu %}
                     <li><a href="{{ item.link }}">{{ item.title }}</a></li>
                     {% if item.sub_items %}
                         <ul>
                         {% for subitem in item.sub_items %}
                            <li><a href="{{ subitem.link }}">{{ subitem.title }}</a></li>
                         {% endfor %} 
                         </ul>
                     {% endif %}
                     {% endfor %}
                 {% endblurp %}
                </ul>
            </div>
        </div>
    </div>
    <div class="box box-full access--kiosque panel panel-default">
        <div class="panel-heading">
            <h4 class="panel-title"><a data-toggle="collapse" data-parent="#access-menu" href="#kiosque-toggle">Kiosque<i class="fa fa-caret-square-o-down"></i></a></h4>
        </div>
        <div id="kiosque-toggle" class="panel-collapse collapse">
            <div class="panel-body">
                <ul>
               {% blurp "kiosque" %}
                    {% for item in menu %}
                     <li><a href="{{ item.link }}">{{ item.title }}</a></li>
                     {% if item.sub_items %}
                         <ul>
                         {% for subitem in item.sub_items %}
                            <li><a href="{{ subitem.link }}">{{ subitem.title }}</a></li>
                         {% endfor %}
                         </ul>
                     {% endif %}
                     {% endfor %}
                 {% endblurp %}
                </ul>
            </div>
        </div>
    </div>
    <div class="box box-full access--projects panel panel-default">
        <div class="panel-heading" id="projets">
            <h4 class="panel-title"><a data-toggle="collapse" data-parent="#access-menu" href="#projects-toggle">Grands projets<i class="fa fa-caret-square-o-down"></i></a></h4>
        </div>
        <div id="projects-toggle" class="panel-collapse collapse">
            <div class="panel-body">
                <ul>
               {% blurp "grand-projets" %}
                    {% for item in menu %}
                     <li><a href="{{ item.link }}">{{ item.title }}</a></li>
                     {% if item.sub_items %}
                         <ul>
                         {% for subitem in item.sub_items %}
                            <li><a href="{{ subitem.link }}">{{ subitem.title }}</a></li>
                         {% endfor %}
                         </ul>
                     {% endif %}
                     {% endfor %}
                 {% endblurp %}
                </ul>
            </div>
        </div>
    </div>
</div>
	</div>
</div>


        <!-- fin colonne gauche -->
       

         <div id="main-content">
            <div id="content" class="large">
                <div id="real-content">
                    {% block messages %}
                      {% if messages %}
                      <ul class="messages">
                          {% for message in messages %}
                          <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
                          {% endfor %}
                      </ul>
                      {% endif %}
                    {% endblock %}
                    
                    {% block content %}{% endblock %}
                    
                </div><!-- real content -->
             </div> <!-- content -->
        </div> <!-- main content -->
        <!-- right colonne -->
        <div id="col-right" class="col-md-3 hidden-xs hidden-sm">
          <div class="row">
          {% block right-column %}
          {% endblock %}
          {% include "right-col.html" %}
          </div>
        </div>
    </div> <!-- #main-content-wrapper -->
 </div></div>
 <div id="footer" class="footer hidden-print">
    {% include "footer.html" %}   
 </div></div>
    <script src="{{ site_base }}{{ STATIC_URL }}js/jquery.stellar.min.js" ></script>
    <script src="{{ site_base }}{{ STATIC_URL }}js/bootstrap.min.js" ></script>
    <script src="{{ site_base }}{{ STATIC_URL }}js/app.js" ></script>
    <script src="{{ site_base }}{{ STATIC_URL }}js/combo.back.js" ></script>

<script>
gaProperty = '';

// Désactive le tracking si le cookie d’Opt-out existe déjà.
var disableStr = 'ga-disable-' + gaProperty;
if (document.cookie.indexOf('hasConsent=false') > -1) {window[disableStr] = true;}
//Cette fonction retourne la date d’expiration du cookie de consentement
function getCookieExpireDate() {
 var cookieTimeout = 34214400000;// Le nombre de millisecondes que font 13 mois
 var date = new Date();
date.setTime(date.getTime()+cookieTimeout);
var expires = "; expires="+date.toGMTString();
return expires;
}
// Cette fonction est appelée pour afficher la demande de consentement
function askConsent(){
    var bodytag = document.getElementsByTagName('body')[0];
    var div = document.createElement('div');
    div.setAttribute('id','cookie-banner');
    div.setAttribute('width','70%');
    // Le code HTML de la demande de consentement. Vous pouvez modifier le contenu ainsi que le style
    div.innerHTML =  '<div style="border-color:#f8c253;border-bottom:1px solid #ccc;background:#fefbc0;color:#C09853;padding:5px 0px 5px;font-size:13px;text-align:center">En poursuivant votre navigation sur ce site, vous acceptez l’utilisation de cookies à des fins de mesure d\'audience. <a href="javascript:closeMessage()">Accepter le suivi</a> / <a href="javascript:gaOptout()">M\'opposer au suivi</a> <button type="button" style="float: right;font-size: 21px;font-weight: 700;line-height: 1;color: #000;text-shadow: 0 1px 0 #fff;opacity: .2;filter: alpha(opacity=20);padding: 0;cursor: pointer;background: 0;border: 0;-webkit-appearance: none;top: -2px;right: 10px;position: relative;" onclick="javascript:closeMessage()" title="Utiliser ce bouton signifie acceptation du suivi">×</button></div>';
    //.
    //<a href="javascript:gaOptout()">
    // Ajoute la bannière juste au début de la page
    bodytag.insertBefore(div,bodytag.firstChild);
    document.getElementsByTagName('body')[0].className+=' cookiebanner';
}

function closeMessage(){
  var div = document.getElementById('cookie-banner');
  /* closing the message is accepting */
  document.cookie = 'hasConsent=true; '+ getCookieExpireDate() +' ; path=/';
  div.style.display = 'none';
}


// Retourne la chaine de caractère correspondant à nom=valeur
function getCookie(NomDuCookie)  {
    if (document.cookie.length > 0) {
        begin = document.cookie.indexOf(NomDuCookie+"=");
        if (begin != -1)  {
            begin += NomDuCookie.length+1;
            end = document.cookie.indexOf(";", begin);
            if (end == -1) end = document.cookie.length;
            return unescape(document.cookie.substring(begin, end));
        }
     }
    return null;
}
// Fonction d'effacement des cookies
function delCookie(name )   {
    path = ";path=" + "/";
    domain = ";domain=" + "."+document.location.hostname;
    var expiration = "Thu, 01-Jan-1970 00:00:01 GMT";
    document.cookie = name + "=" + path + domain + ";expires=" + expiration;
}
// Efface tous les types de cookies utilisés par Google Analytics
function deleteAnalyticsCookies() {
    var cookieNames = ["__utma","__utmb","__utmc","__utmz","_ga"]
    for (var i=0; i<cookieNames.length; i++)
        delCookie(cookieNames[i])
}
// La fonction d'opt-out
function gaOptout() {
    document.cookie = disableStr + '=true;'+ getCookieExpireDate() +' ; path=/';
    document.cookie = 'hasConsent=false;'+ getCookieExpireDate() +' ; path=/';
    var div = document.getElementById('cookie-banner');
    // Ci dessous le code de la bannière affichée une fois que l'utilisateur s'est opposé au dépôt
    // Vous pouvez modifier le contenu et le style
    if ( div!= null ) div.innerHTML = '<div id="cookie-refusal" style="border-color:#f8c253;border-bottom:1px solid #ccc;background:#fefbc0;color:#C09853;padding:5px 0px 5px;font-size:13px;text-align:center"> Vous vous êtes opposé \
    au dépôt de cookies de mesures d\'audience dans votre navigateur. </div>'
    window.setTimeout(function() { document.getElementById('cookie-refusal').style.display = 'none'; return true; }, 5000);
    window[disableStr] = true;
    deleteAnalyticsCookies();
}
//Ce bout de code vérifie que le consentement n'a pas déjà été obtenu avant d'afficher la baniére
var consentCookie =  getCookie('hasConsent');
if (!consentCookie) {//L'utilisateur n'a pas encore de cookie de consentement
 var referrer_host = document.referrer.split('/')[2];

   if ( referrer_host != document.location.hostname ) { //si il vient d'un autre site
   //on désactive le tracking et on affiche la demande de consentement
     window[disableStr] = true;
     window.onload = askConsent;
   } else { //sinon on lui dépose un cookie
      document.cookie = 'hasConsent=true; '+ getCookieExpireDate() +' ; path=/';
   }
}
</script>

<!-- Piwik -->
<script type="text/javascript">
if (consentCookie) {
  var _paq = _paq || [];
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//piwik.monitoring.entrouvert.org/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', 3]);
    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>
<!-- End Piwik Code -->

</body>

</html>