Files
moodle/mod/glossary/formats/continuous/continuous_format.php
T

39 lines
1.3 KiB
PHP

<?php
function glossary_show_entry_continuous($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1, $aliases=false) {
global $USER;
echo '<table class="glossarypost continuous" cellspacing="0">';
echo '<tr valign="top">';
echo '<td class="entry">';
glossary_print_entry_approval($cm, $entry, $mode);
glossary_print_entry_attachment($entry, $cm, 'html', 'right');
echo '<div class="concept">';
glossary_print_entry_concept($entry);
echo '</div> ';
glossary_print_entry_definition($entry, $glossary, $cm);
$entry->alias = '';
echo '</td></tr>';
echo '<tr valign="top"><td class="entrylowersection">';
glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $aliases);
echo '</td>';
echo '</tr>';
echo "</table>\n";
}
function glossary_print_entry_continuous($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1) {
//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 = '<span class="nolink">'.$entry->definition.'</span>';
//Call to view function (without icons, ratings and aliases) and return its result
glossary_show_entry_continuous($course, $cm, $glossary, $entry, $mode, $hook, false, false, false);
}