getCommentData(intval($menu_pref['comment_display'])); $text = ''; // no posts yet .. if (empty($data) || !is_array($data)) { $text = CM_L1; } if(!is_array($COMMENT_MENU_TEMPLATE)) // Convert to v2.x standard. { $TEMPLATE = array(); $TEMPLATE['start'] = ""; $TEMPLATE['item'] = $COMMENT_MENU_TEMPLATE; $TEMPLATE['end'] = ""; } else { $TEMPLATE = $COMMENT_MENU_TEMPLATE; } $comment_menu_shortcodes = new comment_menu_shortcodes; $text .= $tp->parseTemplate($TEMPLATE['start'], true, $comment_menu_shortcodes); foreach ($data as $row) { //e107::setRegistry('plugin/comment_menu/current', $row); $comment_menu_shortcodes->setVars($row); $text .= $tp->parseTemplate($TEMPLATE['item'], true, $comment_menu_shortcodes); } $text .= $tp->parseTemplate($TEMPLATE['end'], 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'); ?>