[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/glossary/formats/fullwithoutauthor/ -> fullwithoutauthor_format.php (source)

   1  <?php
   2  
   3  function glossary_show_entry_fullwithoutauthor($course, $cm, $glossary, $entry, $mode="", $hook="", $printicons=1, $aliases=true) {
   4      global $CFG, $USER;
   5  
   6  
   7      if ($entry) {
   8          echo '<table class="glossarypost fullwithoutauthor" cellspacing="0">';
   9          echo '<tr valign="top">';
  10  
  11          echo '<th class="entryheader">';
  12  
  13          echo '<div class="concept">';
  14          glossary_print_entry_concept($entry);
  15          echo '</div>';
  16  
  17          echo '<span class="time">('.get_string('lastedited').': '.
  18               userdate($entry->timemodified).')</span>';
  19          echo '</th>';
  20          echo '<td class="entryattachment">';
  21  
  22          glossary_print_entry_approval($cm, $entry, $mode);
  23          echo '</td>';
  24  
  25          echo '</tr>';
  26  
  27          echo '<tr valign="top">';
  28          echo '<td width="100%" colspan="2" class="entry">';
  29  
  30          glossary_print_entry_definition($entry, $glossary, $cm);
  31          glossary_print_entry_attachment($entry, $cm, 'html');
  32  
  33          echo '</td></tr>';
  34          echo '<tr valign="top"><td colspan="2" class="entrylowersection">';
  35          glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $aliases);
  36  
  37          echo ' ';
  38          echo '</td></tr>';
  39          echo "</table>\n";
  40      } else {
  41          echo '<center>';
  42          print_string('noentry', 'glossary');
  43          echo '</center>';
  44      }
  45  }
  46  
  47  function glossary_print_entry_fullwithoutauthor($course, $cm, $glossary, $entry, $mode="", $hook="", $printicons=1) {
  48  
  49      //The print view for this format is exactly the normal view, so we use it
  50  
  51      //Take out autolinking in definitions un print view
  52      $entry->definition = '<span class="nolink">'.$entry->definition.'</span>';
  53  
  54      //Call to view function (without icons, ratings and aliases) and return its result
  55      return glossary_show_entry_fullwithoutauthor($course, $cm, $glossary, $entry, $mode, $hook, false, false, false);
  56  
  57  }
  58  
  59  


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