Add banner to be compliance GDPR (youtube and google)

Change-Id: I02d976d8fdc81ffaac1a9adff7105687a4337375
Signed-off-by: Faycal Abka <abka.faycal@gmail.com>
diff --git a/download.html b/download.html
index 9286b15..ecee5ac 100644
--- a/download.html
+++ b/download.html
@@ -114,17 +114,22 @@
 	<!-- Add jQuery library -->
 	<script type="text/javascript" src="//code.jquery.com/jquery-latest.min.js"></script>
 	
-
-	
-	<script>
-		  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-		  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
-		  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
-		  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-		
-		  ga('create', 'UA-60944796-1', 'auto');
-		  ga('send', 'pageview');
-	</script>
+	<?php
+		require_once ($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php");
+		$App = new App();
+		$Theme = $App->getThemeClass("quicksilver");
+		if ($Theme->hasCookieConsent()) {
+			<script>
+				  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+				  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+				  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+				  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+				
+				  ga('create', 'UA-60944796-1', 'auto');
+				  ga('send', 'pageview');
+			</script>
+		}
+	?>
 	
 </head>
 <body>
diff --git a/index.html b/index.html
index c1412d3..ebbda42 100644
--- a/index.html
+++ b/index.html
@@ -183,27 +183,43 @@
 					href="//www.polarsys.org/projects/polarsys.kitalpha">About This
 						Project</a> <br /> </li>
 				<li class="jsonly"><br />
-					<h4>Related videos</h4>
-					<ul>
-						<li><iframe width="210" height="157.5"
-								src="//www.youtube.com/embed/ju2SNG1u2t8?rel=0&autoplay=0&loop=0&wmode=opaque&controls=1&showinfo=0&theme=light&vq=hd720&color=white"
-								frameborder="0" allowfullscreen></iframe>
-							<p>
-								<b>Viewpoint the making of with Kitalpha</b>
-							</p></li>
-						<li><iframe width="210" height="157.5"
-								src="//www.youtube.com/embed/qHFS3x2WLfU?rel=0&autoplay=0&loop=0&wmode=opaque&controls=1&showinfo=0&theme=light&vq=hd720&color=white"
-								frameborder="0" allowfullscreen></iframe>
-							<p>
-								<b>Viewpoint Creation with Kitalpha</b>
-							</p></li>
-						<li><iframe width="210" height="157.5"
-								src="//www.youtube.com/embed/NWCyKsPfc2Y?rel=0&autoplay=0&loop=0&wmode=opaque&controls=1&showinfo=0&theme=light&vq=hd720&color=white"
-								frameborder="0" allowfullscreen></iframe>
-							<p>
-								<b>Viewpoint Creation with Capella Studio</b>
-							</p></li>
-					</ul></li>
+					<?php
+						require_once ($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php");
+						$App = new App();
+						$Theme = $App->getThemeClass("quicksilver");
+						if ($Theme->hasCookieConsent()) {
+							<h4>Related videos</h4>
+							<ul>
+								<li>
+									<iframe width="210" height="157.5"
+										src="//www.youtube.com/embed/ju2SNG1u2t8?rel=0&autoplay=0&loop=0&wmode=opaque&controls=1&showinfo=0&theme=light&vq=hd720&color=white"
+										frameborder="0" allowfullscreen></iframe>
+									<p>
+										<b>Viewpoint the making of with Kitalpha</b>
+									</p>
+								</li>
+								<li>
+									<iframe width="210" height="157.5"
+										src="//www.youtube.com/embed/qHFS3x2WLfU?rel=0&autoplay=0&loop=0&wmode=opaque&controls=1&showinfo=0&theme=light&vq=hd720&color=white"
+										frameborder="0" allowfullscreen></iframe>
+									<p>
+										<b>Viewpoint Creation with Kitalpha</b>
+									</p>
+								</li>
+								<li>
+									<iframe width="210" height="157.5"
+										src="//www.youtube.com/embed/NWCyKsPfc2Y?rel=0&autoplay=0&loop=0&wmode=opaque&controls=1&showinfo=0&theme=light&vq=hd720&color=white"
+										frameborder="0" allowfullscreen></iframe>
+									<p>
+										<b>Viewpoint Creation with Capella Studio</b>
+									</p>
+								</li>
+							</ul>
+						} else {
+							<b>You must accept to see the content</b>
+						}
+				?>
+				</li>
 			</ul>
 		</aside>