|
From: <bl...@us...> - 2014-01-12 20:37:25
|
Revision: 12255
http://sourceforge.net/p/xoops/svn/12255
Author: bleekk
Date: 2014-01-12 20:37:21 +0000 (Sun, 12 Jan 2014)
Log Message:
-----------
Added category to item template
Now you can use <{$item.category}> in item templates
Modified Paths:
--------------
XoopsModules/publisher/trunk/publisher/class/item.php
Modified: XoopsModules/publisher/trunk/publisher/class/item.php
===================================================================
--- XoopsModules/publisher/trunk/publisher/class/item.php 2014-01-09 21:20:30 UTC (rev 12254)
+++ XoopsModules/publisher/trunk/publisher/class/item.php 2014-01-12 20:37:21 UTC (rev 12255)
@@ -715,6 +715,7 @@
$item['adminlink'] = $this->getAdminLinks();
$item['categoryPath'] = $this->getCategoryPath($this->publisher->getConfig('format_linked_path'));
$item['who_when'] = $this->getWhoAndWhen();
+ $item['category'] = $this->getCategoryName();
$item = $this->getMainImage($item);
return $item;
}
|