userid); $strby = get_string('writtenby', 'glossary'); $return = false; if ($entry) { echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo "
'; print_user_picture($user, $course->id, $user->picture); echo ''; echo '
'; glossary_print_entry_concept($entry); echo '
'; $fullname = fullname($user); $by->name = ''.$fullname.''; $by->date = userdate($entry->timemodified); echo ''.get_string('bynameondate', 'forum', $by).''; echo '
'; glossary_print_entry_approval($cm, $entry, $mode); echo '
 '; if ($entry->attachment) { $entry->course = $course->id; if (strlen($entry->definition)%2) { $align = 'right'; } else { $align = 'left'; } glossary_print_entry_attachment($entry,'',$align,false); } glossary_print_entry_definition($entry); if ($printicons or $ratings or $aliases) { echo '
'; $return = glossary_print_entry_lower_section($course, $cm, $glossary, $entry,$mode,$hook,$printicons,$ratings, $aliases); echo ' '; } echo '
\n"; } else { echo '
'; print_string('noentry', 'glossary'); echo '
'; } return $return; } function glossary_print_entry_encyclopedia($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1, $ratings=NULL) { //The print view for this format is exactly the normal view, so we use it //Take out autolinking in definitions un print view $entry->definition = ''.$entry->definition.''; //Call to view function (without icons, ratings and aliases) and return its result return glossary_show_entry_encyclopedia($course, $cm, $glossary, $entry, $mode, $hook, false, false, false); } ?>