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

index 59f50e5..2328115 100644 (file)
@@ -8,6 +8,10 @@ class Reddit_Embedly extends HTML_FlexyFramework_Page {
     }
     function get()
     {
+        
+        $this->getTwitter();
+        exit;
+        
         $url = htmlspecialchars($_REQUEST['url']);
         
         echo '<a class="embedly-card" href="'. $url . '">'.$url  . '</a>
@@ -17,5 +21,10 @@ 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>';
+    
     
 }