Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]

   1  <?php
   2  
   3  function glossary_show_entry_continuous($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1, $aliases=false) {
   4  
   5      global $USER, $OUTPUT;
   6  
   7      echo '<table class="glossarypost continuous" cellspacing="0">';
   8      echo '<tr valign="top">';
   9      echo '<td class="entry">';
  10      glossary_print_entry_approval($cm, $entry, $mode);
  11      echo '<div class="concept">';
  12      glossary_print_entry_concept($entry);
  13      echo '</div> ';
  14      glossary_print_entry_definition($entry, $glossary, $cm);
  15      glossary_print_entry_attachment($entry, $cm, 'html');
  16  
  17      if (core_tag_tag::is_enabled('mod_glossary', 'glossary_entries')) {
  18          echo $OUTPUT->tag_list(core_tag_tag::get_item_tags(
  19              'mod_glossary', 'glossary_entries', $entry->id), null, 'glossary-tags');
  20      }
  21      $entry->alias = '';
  22      echo '</td></tr>';
  23  
  24      echo '<tr valign="top"><td class="entrylowersection">';
  25      glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $aliases);
  26      echo '</td>';
  27      echo '</tr>';
  28      echo "</table>\n";
  29  }
  30  
  31  function glossary_print_entry_continuous($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1) {
  32  
  33      //The print view for this format is exactly the normal view, so we use it
  34  
  35      //Take out autolinking in definitions un print view
  36      $entry->definition = '<span class="nolink">'.$entry->definition.'</span>';
  37  
  38      //Call to view function (without icons, ratings and aliases) and return its result
  39      glossary_show_entry_continuous($course, $cm, $glossary, $entry, $mode, $hook, false, false, false);
  40  
  41  }
  42  
  43