Reddit/Embedly.php
authorAlan Knowles <alan@roojs.com>
Tue, 9 Dec 2014 08:41:58 +0000 (16:41 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 9 Dec 2014 08:41:58 +0000 (16:41 +0800)
Reddit/Embedly.php

index 7eaaaa4..d93968b 100644 (file)
@@ -21,11 +21,14 @@ class Reddit_Embedly extends HTML_FlexyFramework_Page {
         
         
     }
-    echo '<html><head><style type="text/css">html, iframe, body, object, embed, div, span, p { margin: 0; padding: 0; } iframe { max-width: 100%; }</style>
-    </head><body><blockquote class="twitter-tweet" width="485"><p>
-    <a href="https://twitter.com/krislc/status/542228550837747712">December 9, 2014</a>
-    <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script></body></html>';
-    exit;
+    function getTwitter()
+    {
+        echo '<html><head><style type="text/css">html, iframe, body, object, embed, div, span, p { margin: 0; padding: 0; } iframe { max-width: 100%; }</style>
+        </head><body><blockquote class="twitter-tweet" width="485"><p>
+        <a href="https://twitter.com/krislc/status/542228550837747712">December 9, 2014</a>
+        <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script></body></html>';
+        exit;
+    }
     
     
 }