Commit 4308b06b authored by Robert Lyon's avatar Robert Lyon Committed by Aaron Wells

Bug 1497411: Display RSS feed's image

behatnotneeded: Can't be checked by behat

Change-Id: Ia0de29f581e515ad5410139f6f0a8ce616ecf71f
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 2389c72b
......@@ -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