getCommentData(intval($menu_pref['comment_display'])); $text = ''; // no posts yet .. if (empty($data) || !is_array($data)) { $text = CM_L1; } foreach ($data as $row) { e107::setRegistry('plugin/comment_menu/current', $row); $text .= $tp->parseTemplate($COMMENT_MENU_TEMPLATE, true, $comment_menu_shortcodes); } e107::setRegistry('plugin/comment_menu/current', null); $title = e107::getConfig('menu')->get('comment_caption'); e107::getRender()->tablerender(defset($title, $title), $text, 'comment_menu'); ?>