|
From: <bl...@us...> - 2014-01-15 22:55:21
|
Revision: 12261
http://sourceforge.net/p/xoops/svn/12261
Author: bleekk
Date: 2014-01-15 22:55:17 +0000 (Wed, 15 Jan 2014)
Log Message:
-----------
- for better formatting giving titlelink a css class .titlelink
- separating the who_when smarty into who and when. now you can use the old item.who_when and 2 new smarties: item.who and item.when
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-15 18:02:06 UTC (rev 12260)
+++ XoopsModules/publisher/trunk/publisher/class/item.php 2014-01-15 22:55:17 UTC (rev 12261)
@@ -562,6 +562,24 @@
$postdate = $this->datesub();
return sprintf(_CO_PUBLISHER_POSTEDBY, $posterName, $postdate);
}
+
+ /**
+ * @return string
+ */
+ public function getWho()
+ {
+ $posterName = $this->linkedPosterName();
+ return $posterName;
+ }
+
+ /**
+ * @return string
+ */
+ public function getWhen()
+ {
+ $postdate = $this->datesub();
+ return $postdate;
+ }
/**
* @param null|string $body
@@ -662,7 +680,7 @@
}
$item['itemid'] = $this->itemid();
$item['uid'] = $this->uid();
- $item['titlelink'] = $this->getItemLink(false, $max_char_title);
+ $item['titlelink'] = $this->getItemLink('titlelink', $max_char_title);
$item['subtitle'] = $this->subtitle();
$item['datesub'] = $this->datesub();
$item['counter'] = $this->counter();
@@ -715,6 +733,8 @@
$item['adminlink'] = $this->getAdminLinks();
$item['categoryPath'] = $this->getCategoryPath($this->publisher->getConfig('format_linked_path'));
$item['who_when'] = $this->getWhoAndWhen();
+ $item['who'] = $this->getWho();
+ $item['when'] = $this->getWhen();
$item['category'] = $this->getCategoryName();
$item = $this->getMainImage($item);
return $item;
|