Commit b17baa5e authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review

Merge "Bug 1497411: Display RSS feed's image"

parents d97317f3 4308b06b
......@@ -109,6 +109,7 @@ class PluginBlocktypeExternalfeed extends SystemBlocktype {
$smarty->assign('url', $data->url);
// 'full' won't be set for feeds created before 'full' support was added
$smarty->assign('full', isset($configdata['full']) ? $configdata['full'] : false);
$smarty->assign('feedimage', self::make_feed_image_tag($data->image));
$smarty->assign('link', sanitize_url($data->link));
$smarty->assign('entries', $data->content);
$smarty->assign('lastupdated', get_string('lastupdatedon', 'blocktype.externalfeed', format_date($data->lastupdate)));
......
#blocktype_externalfeed_feed .feedlogoimage {
margin: 10px 0;
}
#blocktype_externalfeed_feed .feedlogoimage img {
max-width: 144px;
max-height: 400px;
}
<div id="blocktype_externalfeed_feed" class="external-feed">
{if $feedimage}<div class="feedlogoimage">{$feedimage|safe}</div>{/if}
<div id="blocktype_externalfeed_title" >
{if $description && $description != $entries[0]->description}
<div class="panel-body">
<div id="blocktype_externalfeed_desc" class="feed-decription text-lighttone text-small">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment