mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 03:24:20 +02:00
Menu Template fixes and enhancements. Related News now has a template.
This commit is contained in:
@@ -32,11 +32,13 @@ class news_related // include plugin-folder in the name.
|
||||
{
|
||||
while($row = $sql->fetch())
|
||||
{
|
||||
$thumbs = !empty($row['news_thumbnail']) ? explode(",",$row['news_thumbnail']) : array();
|
||||
|
||||
$items[] = array(
|
||||
'title' => varset($row['news_title']),
|
||||
'url' => e107::getUrl()->create('news/view/item',$row), // '{e_BASE}news.php?extend.'.$row['news_id'],
|
||||
'body' => varset($row['news_summary']),
|
||||
'image' => varset($row['news_image'])
|
||||
'summary' => varset($row['news_summary']),
|
||||
'image' => $thumbs[0]
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user