[TwitterBridgeExtended] Use inline-blocks to format HTML output

This commit is contained in:
logmanoriginal 2016-08-09 22:05:42 +02:00
parent 0683457eb3
commit faacbda027

View file

@ -78,9 +78,12 @@ class TwitterBridgeExtended extends BridgeAbstract{
$cleanedTweet = str_replace('href="/', 'href="https://twitter.com/', $tweet->find('p.js-tweet-text', 0)->innertext);
$item->content = <<<EOD
<a href="https://twitter.com/{$item->username}"><img style="align:top;width:75px;" alt="{$item->username}" src="{$item->avatar}" /></a>
<p>{$item->fullname}</p><br/>
<blockquote>{$cleanedTweet}</blockquote>
<div style="display: inline-block; vertical-align: top;">
<a href="https://twitter.com/{$item->username}"><img style="align: top; width:75 px;" alt="{$item->username}" src="{$item->avatar}" title="{$item->fullname}" /></a>
</div>
<div style="display: inline-block; vertical-align: top;">
<blockquote>{$cleanedTweet}</blockquote>
</div>
EOD;
// generate the title