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, $course->id
, $user->picture
);
19 echo '<th class="entryheader">';
21 echo '<div class="concept">';
22 glossary_print_entry_concept($entry);
25 $fullname = fullname($user);
27 $by->name
= '<a href="'.$CFG->wwwroot
.'/user/view.php?id='.$user->id
.'&course='.$course->id
.'">'.$fullname.'</a>';
28 $by->date
= userdate($entry->timemodified
);
29 echo '<span class="author">'.get_string('bynameondate', 'forum', $by).'</span>';
32 echo '<td class="entryattachment">';
34 glossary_print_entry_approval($cm, $entry, $mode);
35 glossary_print_entry_attachment($entry,'html','right');
40 echo '<tr valign="top">';
41 echo '<td class="left"> </td>';
42 echo '<td colspan="2" class="entry">';
44 glossary_print_entry_definition($entry);
47 echo '<tr valign="top">';
48 echo '<td class="left"> </td>';
49 echo '<td colspan="2" class="entrylowersection">';
51 $return = glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $ratings, $aliases);
56 echo '<div style="text-align:center">';
57 print_string('noentry', 'glossary');
63 function glossary_print_entry_fullwithauthor($course, $cm, $glossary, $entry, $mode="", $hook="", $printicons=1, $ratings=NULL) {
65 //The print view for this format is exactly the normal view, so we use it
67 //Take out autolinking in definitions un print view
68 $entry->definition
= '<span class="nolink">'.$entry->definition
.'</span>';
70 //Call to view function (without icons, ratings and aliases) and return its result
71 return glossary_show_entry_fullwithauthor($course, $cm, $glossary, $entry, $mode, $hook, false, false, false);