|
@@ 161-165 (lines=5) @@
|
| 158 |
|
$xot = new XoopsObjectTree($this->_comments, 'com_id', 'com_pid', 'com_rootid'); |
| 159 |
|
$tree =& $xot->getTree(); |
| 160 |
|
|
| 161 |
|
if (false != $this->_useIcons) { |
| 162 |
|
$title = $this->_getTitleIcon($tree[$comment_id]['obj']->getVar('com_icon')) . ' ' . $tree[$comment_id]['obj']->getVar('com_title'); |
| 163 |
|
} else { |
| 164 |
|
$title = $tree[$comment_id]['obj']->getVar('com_title'); |
| 165 |
|
} |
| 166 |
|
if (false != $show_nav && $tree[$comment_id]['obj']->getVar('com_pid') != 0) { |
| 167 |
|
$this->_tpl->assign('lang_top', _CM_TOP); |
| 168 |
|
$this->_tpl->assign('lang_parent', _CM_PARENT); |
|
@@ 233-237 (lines=5) @@
|
| 230 |
|
public function _renderThreadReplies(&$thread, $key, &$replies, $prefix, $admin_view, $depth = 0, $current_prefix = '') |
| 231 |
|
{ |
| 232 |
|
if ($depth > 0) { |
| 233 |
|
if (false != $this->_useIcons) { |
| 234 |
|
$title = $this->_getTitleIcon($thread[$key]['obj']->getVar('com_icon')) . ' ' . $thread[$key]['obj']->getVar('com_title'); |
| 235 |
|
} else { |
| 236 |
|
$title = $thread[$key]['obj']->getVar('com_title'); |
| 237 |
|
} |
| 238 |
|
$title = (false != $admin_view) ? $title . ' ' . $this->_statusText[$thread[$key]['obj']->getVar('com_status')] : $title; |
| 239 |
|
// Start edit by voltan |
| 240 |
|
$replies[] = array( |
|
@@ 282-286 (lines=5) @@
|
| 279 |
|
include_once $GLOBALS['xoops']->path('class/tree.php'); |
| 280 |
|
$xot = new XoopsObjectTree($this->_comments, 'com_id', 'com_pid', 'com_rootid'); |
| 281 |
|
$tree =& $xot->getTree(); |
| 282 |
|
if (false != $this->_useIcons) { |
| 283 |
|
$title = $this->_getTitleIcon($tree[$comment_id]['obj']->getVar('com_icon')) . ' ' . $tree[$comment_id]['obj']->getVar('com_title'); |
| 284 |
|
} else { |
| 285 |
|
$title = $tree[$comment_id]['obj']->getVar('com_title'); |
| 286 |
|
} |
| 287 |
|
if (false != $admin_view) { |
| 288 |
|
$com_email = $tree[$comment_id]['obj']->getVar('com_email'); |
| 289 |
|
$text = $tree[$comment_id]['obj']->getVar('com_text'); |
|
@@ 343-347 (lines=5) @@
|
| 340 |
|
public function _renderNestReplies(&$thread, $key, &$replies, $prefix, $admin_view, $depth = 0) |
| 341 |
|
{ |
| 342 |
|
if ($depth > 0) { |
| 343 |
|
if (false != $this->_useIcons) { |
| 344 |
|
$title = $this->_getTitleIcon($thread[$key]['obj']->getVar('com_icon')) . ' ' . $thread[$key]['obj']->getVar('com_title'); |
| 345 |
|
} else { |
| 346 |
|
$title = $thread[$key]['obj']->getVar('com_title'); |
| 347 |
|
} |
| 348 |
|
$text = (false != $admin_view) ? $thread[$key]['obj']->getVar('com_text') . '<div style="text-align:right; margin-top: 2px; margin-right: 2px;">' . _CM_STATUS . ': ' . $this->_statusText[$thread[$key]['obj']->getVar('com_status')] . '<br />IP: <span style="font-weight: bold;">' . $thread[$key]['obj']->getVar('com_ip') . '</span><br />' . _CM_EMAIL . ' :<span style="font-weight: bold;">' . $thread[$key]['obj']->getVar('com_email') . '</span></div>' : $thread[$key]['obj']->getVar('com_text'); |
| 349 |
|
// Start edit by voltan |
| 350 |
|
$replies[] = array( |