3 function glossary_show_entry_fullwithauthor($course, $cm, $glossary, $entry, $mode="", $hook="", $printicons=1, $ratings=NULL, $aliases=true) {
7 $user = get_record('user', 'id', $entry->userid
);
8 $strby = get_string('writtenby', 'glossary');
12 echo '<table class="glossarypost fullwithauthor" cellspacing="0">';
13 echo '<tr valign="top">';
15 echo '<td class="picture">';
16 print_user_picture($user->id
, $course->id
, $user->picture
);
19 echo '<td class="entryheader">';
21 echo '<span class="concept">';
22 glossary_print_entry_concept($entry);
25 $fullname = fullname($user);
26 $by->name
= '<a href="'.$CFG->wwwroot
.'/user/view.php?id='.$user->id
.'&course='.$course->id
.'">'.$fullname.'</a>';
27 $by->date
= userdate($entry->timemodified
);
28 echo '<span class="author">'.get_string('bynameondate', 'forum', $by).'</span>';
31 echo '<td class="entryattachment">';
33 glossary_print_entry_approval($cm, $entry, $mode);
34 glossary_print_entry_attachment($entry,'html','right');
39 echo '<tr valign="top">';
40 echo '<td class="left"> </td>';
41 echo '<td colspan="2" class="entry">';
43 glossary_print_entry_definition($entry);
46 echo '<tr valign="top">';
47 echo '<td class="left"> </td>';
48 echo '<td colspan="2" class="entrylowersection">';
50 $return = glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $ratings, $aliases);
55 echo '<div style="text-align:center">';
56 print_string('noentry', 'glossary');
62 function glossary_print_entry_fullwithauthor($course, $cm, $glossary, $entry, $mode="", $hook="", $printicons=1, $ratings=NULL) {
64 //The print view for this format is exactly the normal view, so we use it
66 //Take out autolinking in definitions un print view
67 $entry->definition
= '<span class="nolink">'.$entry->definition
.'</span>';
69 //Call to view function (without icons, ratings and aliases) and return its result
70 return glossary_show_entry_fullwithauthor($course, $cm, $glossary, $entry, $mode, $hook, false, false, false);