src/ztfy/myams/templates/fullpage-modal-layout.pt
changeset 92 ac540d79ede9
parent 45 c7cc27ab398f
child 101 8364fb15bfe5
equal deleted inserted replaced
87:d60763890622 92:ac540d79ede9
    22 </head>
    22 </head>
    23 <body tal:attributes="class static/body_css_class">
    23 <body tal:attributes="class static/body_css_class">
    24 
    24 
    25 	<!-- Content -->
    25 	<!-- Content -->
    26 	<div id="content" style="opacity: 1;">
    26 	<div id="content" style="opacity: 1;">
    27 		<!--[if IE 8]>
    27 		<!--[if lt IE 9]>
    28 		<h1>Your browser is too old. Please use Internet Explorer version 9 or later.</h1>
    28 		<h1>Your browser is too old. Please use Internet Explorer version 9 or later.</h1>
    29 		<![endif]-->
    29 		<![endif]-->
    30 		<div class="modal-dialog modal-medium"
    30 		<div class="modal-dialog modal-medium"
    31 			 tal:attributes="class string:modal-dialog ${view/dialog_class}">
    31 			 tal:attributes="class string:modal-dialog ${view/dialog_class}">
    32 			<tal:var replace="structure provider:pagelet" />
    32 			<tal:var replace="structure provider:pagelet" />
    33 		</div>
    33 		</div>
    34 	</div>
    34 	</div>
    35 
    35 
    36 	<tal:if condition="config/google_analytics_key">
    36 	<tal:if condition="config/google_analytics_key">
    37 		<!-- Google Analytics -->
    37 		<!-- Google Analytics -->
    38 		<script type="text/javascript">
    38 		<script type="text/javascript" tal:content="python:'''
    39 
    39 
    40 		  var _gaq = _gaq || [];
    40 		  var _gaq = _gaq || [];
    41 		  _gaq.push(['_setAccount', 'UA-xxxxxx-y']);
    41 		  _gaq.push(['_setAccount', '%(key)s']);
    42 		  _gaq.push(['_trackPageview']);
    42 		  _gaq.push(['_trackPageview']);
    43 
    43 
    44 		  (function() {
    44 		  (function() {
    45 			var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    45 			var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    46 			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    46 			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    47 			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    47 			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    48 		  })();
    48 		  })();
    49 
    49 
    50 		</script>
    50 		''' % {'key': config.google_analytics_key}"></script>
       
    51 		<!-- end Google Analytics -->
    51 	</tal:if>
    52 	</tal:if>
    52 </body>
    53 </body>
    53 </html>
    54 </html>