$content->setCurrentBlock("BLOCK_COLUMN"); for ($c = $no_articles_in_first_row; $c < count($char_articles); $c++) { $content->setCurrentBlock("BLOCK_ARTICLE"); $content->setVariable("ARTICLE_LINK", PATH_URL . "wiki/" . $char_articles[$c]["OBJ_ID"] . "/"); $content->setVariable("ARTICLE_NAME", str_replace(".wiki", "", h($char_articles[$c]["OBJ_NAME"]))); $content->parse("BLOCK_ARTICLE"); } $content->parse("BLOCK_COLUMN"); $content->parse("BLOCK_CHARACTER"); } foreach ($wiki_entries as $entry) { $content->setCurrentBlock("BLOCK_ARTICLE"); $content->setVariable("VALUE_WIKI_ENTRY", h($entry["OBJ_NAME"])); $content->setVariable("LINK_WIKI_ENTRY", PATH_URL . "wiki/" . $wiki_container->get_id() . "/" . h($entry["OBJ_NAME"])); $content->setVariable("LABEL_LAST_MODIFICATION", gettext("last edited")); $content->setVariable("VALUE_POSTED_BY", $entry["DOC_USER_MODIFIED"]); $content->setVariable("POST_PERMALINK", PATH_URL . "wiki/" . $entry["OBJ_ID"] . "/"); $content->setVariable("VALUE_DATE_TIME", strftime("%x %X", $entry["OBJ_CREATION_TIME"])); $content->setVariable("POST_PERMALINK_LABEL", gettext("permalink")); $content->parse("BLOCK_ARTICLE"); } } $wiki_html_handler->set_widget_latest_comments($latest_comments); $wiki_html_handler->set_widget_last_changed($recently_changed); $wiki_html_handler->set_widget_most_discussed($most_discussed); $wiki_html_handler->set_widget_access($grp); $wiki_html_handler->set_main_html($content->get()); $rootlink = lms_steam::get_link_to_root($wiki_container); $headline = array($rootlink[0], $rootlink[1], array("link" => $rootlink[1]["link"] . "communication/", "name" => gettext("Communication")), array("link" => "", "name" => h($wiki_container->get_name()))); $portal->set_page_main($headline, $wiki_html_handler->get_html()); $portal->show_html();