'; echo ''; echo ''; if ($entry) { glossary_print_entry_approval($cm, $entry, $mode); $anchortagcontents = glossary_print_entry_concept($entry, true); $link = new moodle_url('/mod/glossary/showentry.php', array('courseid' => $course->id, 'eid' => $entry->id, 'displayformat' => 'dictionary')); $anchor = html_writer::link($link, $anchortagcontents); echo "
$anchor
"; echo ''; if ($printicons) { glossary_print_entry_icons($course, $cm, $glossary, $entry, $mode, $hook,'print'); } if (!empty($entry->rating)) { echo '
'; echo ''; $return = glossary_print_entry_ratings($course, $entry); echo ''; } echo '
'; } else { echo '
'; print_string('noentry', 'glossary'); echo '
'; } echo ''; echo "\n"; return $return; } function glossary_print_entry_entrylist($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1) { //Take out autolinking in definitions un print view // TODO use tags MDL-15555. $entry->definition = ''.$entry->definition.''; echo html_writer::start_tag('table', array('class' => 'glossarypost entrylist mod-glossary-entrylist')); echo html_writer::start_tag('tr'); echo html_writer::start_tag('td', array('class' => 'entry mod-glossary-entry')); echo html_writer::start_tag('div', array('class' => 'mod-glossary-concept')); glossary_print_entry_concept($entry); echo html_writer::end_tag('div'); echo html_writer::start_tag('div', array('class' => 'mod-glossary-definition')); glossary_print_entry_definition($entry, $glossary, $cm); echo html_writer::end_tag('div'); echo html_writer::start_tag('div', array('class' => 'mod-glossary-lower-section')); glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, false, false); echo html_writer::end_tag('div'); echo html_writer::end_tag('td'); echo html_writer::end_tag('tr'); echo html_writer::end_tag('table'); }