[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/glossary/formats/continuous/ -> continuous_format.php (source)

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


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