Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add a twitter widget which only appears for MPs on Twitter.

  • Loading branch information...
commit 205f4521e6ce355a62fa291497146d4626a5c142 1 parent 0bb9fcb
Dave Cross authored July 21, 2013

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. 7  PoliticalWeb/views/constituency.tt
7  PoliticalWeb/views/constituency.tt
@@ -56,9 +56,14 @@ $(document).ready(function () {
56 56
         </div>
57 57
         <div class="tab-pane" id="news">
58 58
         </div>
  59
+[% IF mp.twitter -%]
59 60
         <div class="tab-pane" id="twitter">
60  
-          Twitter here
  61
+<!-- BEGIN: Twitter website widget (http://twitterforweb.com) -->
  62
+<div style="width:520px;font-size:8px;text-align:right;"><script type="text/javascript">
  63
+document.write(unescape("%3Cscript src='http://twitterforweb.com/twitterbox.js?username=[% mp.twitter %]&settings=1,0,3,430,550,f4f4f4,0,c4c4c4,101010,1,1,e78b24' type='text/javascript'%3E%3C/script%3E"));</script>Created by: <a href="http://twitterforweb.com" target="_blank">twitter website widget</a></div>
  64
+<!-- END: Twitter website widget (http://twitterforweb.com) -->
61 65
         </div>
  66
+[% END %]
62 67
         <div class="tab-pane" id="blog">
63 68
           Blog here
64 69
         </div>

0 notes on commit 205f452

Please sign in to comment.
Something went wrong with that request. Please try again.