userid); $strby = get_string('writtenby', 'glossary'); if ($entry) { echo '
';
//Use this function to show author's image
//Comments: Configuration not supported
print_user_picture($user, $course->id, $user->picture);
//Line separator to show this template fine. :-)
echo ' '; //Use this code to show author's name //Comments: Configuration not supported $fullname = fullname($user); $by = new object(); $by->name = ''.$fullname.''; $by->date = userdate($entry->timemodified); echo ' ' . ' '; //Use this code to show modification date //Comments: Configuration not supported echo get_string('lastedited').': '. userdate($entry->timemodified) . ' '; //Use this function to show the approval button. It'll be shown if necessary //Comments: You can configure this parameters: //----Define where to show the approval button $approvalalign = 'right'; //Values: left, center and right (default right) //----Define if the approval button must be showed into a 100% width table $approvalinsidetable = true; //Values: true, false (default true) //Call the function glossary_print_entry_approval($cm, $entry, $mode, $approvalalign, $approvalinsidetable); //Line separator to show this template fine. :-) echo ' '; echo ' | ';
echo '';
//Use this function to show the attachment. It'll be showed if necessary
//Comments: You can configure this parameters:
//----Define how to show the attachment
$attachmentformat = 'html'; //Values: html (link) and NULL (inline image if possible) (default NULL)
//----Define where to show the attachment
$attachmentalign = 'right'; //Values: left, center and right (default right)
//----Define if the attachment must be showed into a 100% width table
$attachmentinsidetable = true; //Values: true, false (default true)
//Call the function
glossary_print_entry_attachment($entry,$attachmentformat,$attachmentalign,$attachmentinsidetable);
//Line separator to show this template fine. :-)
echo " \n"; echo ' |
';
//Use this function to print the concept in a heading
//Comments: Configuration not supported
glossary_print_entry_concept($entry);
//Line separator not normally needed now.
//echo " | ';
echo '