[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/glossary/formats/dictionary/ -> dictionary_format.php (source)

   1  <?php
   2  
   3  function glossary_show_entry_dictionary($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1, $aliases=true) {
   4  
   5      global $CFG, $USER;
   6  
   7      echo '<table class="glossarypost dictionary" 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      echo '</td></tr>';
  17      echo '<tr valign="top"><td class="entrylowersection">';
  18      glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $aliases);
  19      echo '</td>';
  20      echo '</tr>';
  21      echo "</table>\n";
  22  }
  23  
  24  function glossary_print_entry_dictionary($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1) {
  25  
  26      //The print view for this format is exactly the normal view, so we use it
  27  
  28      //Take out autolinking in definitions in print view
  29      $entry->definition = '<span class="nolink">'.$entry->definition.'</span>';
  30  
  31      //Call to view function (without icons, ratings and aliases) and return its result
  32      return glossary_show_entry_dictionary($course, $cm, $glossary, $entry, $mode, $hook, false, false, false);
  33  }
  34  
  35  


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1