function display_research_citations(ResearchCitations $research_citations, $type, $hide_controls = false) { global $ENTRADA_TEMPLATE; if ($hide_controls) { $content_file = $ENTRADA_TEMPLATE->absolute() . "/modules/public/mspr/research_citation.xml"; } else { $content_file = $ENTRADA_TEMPLATE->absolute() . "/modules/common/mspr/research_citation.xml"; $class = "priority-list"; } $content_template = new Template($content_file); $contents = ""; if ($research_citations && $research_citations->count() > 0) { foreach ($research_citations as $research_citation) { $content_bind = array("image" => ENTRADA_URL . "/images/arrow_up_down.png", "details" => clean_input($research_citation->getText(), array("notags", "specialchars"))); $content = $content_template->getResult($content_bind, array("lang" => DEFAULT_LANGUAGE)); $id_string = "research_citation_" . $research_citation->getID(); $contents .= item_wrap_content($type, $research_citation, $content, $hide_controls, $research_citation->getComment(), $id_string); } } else { $contents = "<li>None</li>"; } $id = "citations_list"; return list_wrap_content($contents, $class, $id); }