|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 00003 function glossary_show_entry_dictionary($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1, $aliases=true) { 00004 00005 global $CFG, $USER; 00006 00007 echo '<table class="glossarypost dictionary" cellspacing="0">'; 00008 echo '<tr valign="top">'; 00009 echo '<td class="entry">'; 00010 glossary_print_entry_approval($cm, $entry, $mode); 00011 glossary_print_entry_attachment($entry, $cm, 'html', 'right'); 00012 echo '<div class="concept">'; 00013 glossary_print_entry_concept($entry); 00014 echo '</div> '; 00015 glossary_print_entry_definition($entry, $glossary, $cm); 00016 echo '</td></tr>'; 00017 echo '<tr valign="top"><td class="entrylowersection">'; 00018 glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $aliases); 00019 echo '</td>'; 00020 echo '</tr>'; 00021 echo "</table>\n"; 00022 } 00023 00024 function glossary_print_entry_dictionary($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1) { 00025 00026 //The print view for this format is exactly the normal view, so we use it 00027 00028 //Take out autolinking in definitions in print view 00029 $entry->definition = '<span class="nolink">'.$entry->definition.'</span>'; 00030 00031 //Call to view function (without icons, ratings and aliases) and return its result 00032 return glossary_show_entry_dictionary($course, $cm, $glossary, $entry, $mode, $hook, false, false, false); 00033 } 00034 00035