@@ 253-255 (lines=3) @@ | ||
250 | ||
251 | $description = $categoryObj->getVar('description'); |
|
252 | if (!XoopsLocale::isMultiByte()) { |
|
253 | if (strlen($description) >= 100) { |
|
254 | $description = substr($description, 0, (100 - 1)) . "..."; |
|
255 | } |
|
256 | } |
|
257 | $modify = "<a href='category.php?op=mod&categoryid=" . $categoryObj->getVar('categoryid') . "&parentid=" . $categoryObj->getVar('parentid') . "'><img src='" . PUBLISHER_URL . "/images/links/edit.gif' title='" . _AM_PUBLISHER_EDITCOL . "' alt='" . _AM_PUBLISHER_EDITCOL . "' /></a>"; |
|
258 | $delete = "<a href='category.php?op=del&categoryid=" . $categoryObj->getVar('categoryid') . "'><img src='" . PUBLISHER_URL . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETECOL . "' alt='" . _AM_PUBLISHER_DELETECOL . "' /></a>"; |
@@ 94-96 (lines=3) @@ | ||
91 | // generate id from name if not already set |
|
92 | if (!$this->has('id')) { |
|
93 | $id = $this->get('name'); |
|
94 | if (substr($id, -2) === '[]') { |
|
95 | $id = substr($id, 0, strlen($id)-2); |
|
96 | } |
|
97 | $this->set('id', $id); |
|
98 | } |
|
99 | return parent::renderAttributeString(); |