|
From: <tr...@us...> - 2013-01-09 22:09:25
|
Revision: 10728
http://sourceforge.net/p/xoops/svn/10728
Author: trabis
Date: 2013-01-09 22:09:22 +0000 (Wed, 09 Jan 2013)
Log Message:
-----------
Fixing bug, summary not truncated in blocks
Modified Paths:
--------------
XoopsModules/publisher/trunk/publisher/class/item.php
Modified: XoopsModules/publisher/trunk/publisher/class/item.php
===================================================================
--- XoopsModules/publisher/trunk/publisher/class/item.php 2013-01-09 22:03:19 UTC (rev 10727)
+++ XoopsModules/publisher/trunk/publisher/class/item.php 2013-01-09 22:09:22 UTC (rev 10728)
@@ -156,7 +156,7 @@
if (!XOOPS_USE_MULTIBYTES) {
if (strlen($ret) >= $maxLength) {
//$ret = publisher_substr($ret , 0, $maxLength);
- //$ret = publisher_truncateTagSafe($ret, $maxLength, $etc = '...', $break_words = false);
+ $ret = publisher_truncateTagSafe($ret, $maxLength, $etc = '...', $break_words = false);
}
}
}
|
|
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;
}
|
|
From: <bl...@us...> - 2014-01-13 21:35:24
|
Revision: 12259
http://sourceforge.net/p/xoops/svn/12259
Author: bleekk
Date: 2014-01-13 21:35:21 +0000 (Mon, 13 Jan 2014)
Log Message:
-----------
delete coded <br/>
item summary and body not divided anymore by <br/><br/> tags
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-13 15:22:31 UTC (rev 12258)
+++ XoopsModules/publisher/trunk/publisher/class/item.php 2014-01-13 21:35:21 UTC (rev 12259)
@@ -245,7 +245,7 @@
if ($this->publisher->getConfig('item_disp_blocks_summary')) {
$summary = $this->summary($maxLength, $format, $stripTags);
if ($summary) {
- $ret = $this->summary() . '<br /><br />' . $ret;
+ $ret = $this->summary() . $ret;
}
}
if (!empty($stripTags)) {
|
|
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;
|
|
From: <bl...@us...> - 2014-01-17 14:47:32
|
Revision: 12266
http://sourceforge.net/p/xoops/svn/12266
Author: bleekk
Date: 2014-01-17 14:47:28 +0000 (Fri, 17 Jan 2014)
Log Message:
-----------
display who, when, category and main image in simple view
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-17 05:38:50 UTC (rev 12265)
+++ XoopsModules/publisher/trunk/publisher/class/item.php 2014-01-17 14:47:28 UTC (rev 12266)
@@ -684,6 +684,10 @@
$item['subtitle'] = $this->subtitle();
$item['datesub'] = $this->datesub();
$item['counter'] = $this->counter();
+ $item['who'] = $this->getWho();
+ $item['when'] = $this->getWhen();
+ $item['category'] = $this->getCategoryName();
+ $item = $this->getMainImage($item);
switch ($display) {
case 'summary':
case 'list':
|
|
From: <bl...@us...> - 2014-01-17 15:19:04
|
Revision: 12267
http://sourceforge.net/p/xoops/svn/12267
Author: bleekk
Date: 2014-01-17 15:19:01 +0000 (Fri, 17 Jan 2014)
Log Message:
-----------
added item.itemurl to simple view
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-17 14:47:28 UTC (rev 12266)
+++ XoopsModules/publisher/trunk/publisher/class/item.php 2014-01-17 15:19:01 UTC (rev 12267)
@@ -680,6 +680,7 @@
}
$item['itemid'] = $this->itemid();
$item['uid'] = $this->uid();
+ $item['itemurl'] = $this->getItemUrl();
$item['titlelink'] = $this->getItemLink('titlelink', $max_char_title);
$item['subtitle'] = $this->subtitle();
$item['datesub'] = $this->datesub();
|