Bug 534514 - Hide twitter if there is no cookie consent

Change-Id: I7edc7c4e4de1ccebf21182156dd663bff935f1ae
Signed-off-by: Eric Poirier <eric.poirier@eclipse-foundation.org>
diff --git a/content/en_index.php b/content/en_index.php
index c79b9a0..2b2eaf9 100644
--- a/content/en_index.php
+++ b/content/en_index.php
@@ -113,20 +113,22 @@
         <a href="/donate" class="btn btn-warning">Donate now</a>
       </p>
     </div>
-    <div class="block-box">
-      <h3>
-        <i class="fa fa-twitter"></i> Recent <span class="fw-700">#eclipseluna</span>
-        tweets
-      </h3>
-      <div class="content">
-        <a class="twitter-timeline"
-          href="https://twitter.com/search?q=%23eclipseluna"
-          data-widget-id="470988115096510464"
-          data-chrome="noheader noscrollbar transparent">Tweets about
-          "#eclipseluna"</a>
-        <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+    <?php if ($Theme->hasCookieConsent()): ?>
+      <div class="block-box">
+        <h3>
+          <i class="fa fa-twitter"></i> Recent <span class="fw-700">#eclipseluna</span>
+          tweets
+        </h3>
+        <div class="content">
+          <a class="twitter-timeline"
+            href="https://twitter.com/search?q=%23eclipseluna"
+            data-widget-id="470988115096510464"
+            data-chrome="noheader noscrollbar transparent">Tweets about
+            "#eclipseluna"</a>
+          <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+        </div>
       </div>
-    </div>
+    <?php endif; ?>
   </div>
 </div>
-</div>
+