Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 39 and 311]

   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, false);
  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