[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 <?php 2 3 function glossary_show_entry_entrylist($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1, $aliases=true) { 4 global $USER, $OUTPUT; 5 6 $return = false; 7 8 echo '<table class="glossarypost entrylist" cellspacing="0">'; 9 10 echo '<tr valign="top">'; 11 echo '<td class="entry">'; 12 if ($entry) { 13 glossary_print_entry_approval($cm, $entry, $mode); 14 15 $anchortagcontents = glossary_print_entry_concept($entry, true); 16 17 $link = new moodle_url('/mod/glossary/showentry.php', array('courseid' => $course->id, 18 'eid' => $entry->id, 'displayformat' => 'dictionary')); 19 $anchor = html_writer::link($link, $anchortagcontents); 20 21 echo "<div class=\"concept\">$anchor</div> "; 22 echo '</td><td align="right" class="entrylowersection">'; 23 if ($printicons) { 24 glossary_print_entry_icons($course, $cm, $glossary, $entry, $mode, $hook,'print'); 25 } 26 if (!empty($entry->rating)) { 27 echo '<br />'; 28 echo '<span class="ratings">'; 29 $return = glossary_print_entry_ratings($course, $entry); 30 echo '</span>'; 31 } 32 echo '<br />'; 33 } else { 34 echo '<div style="text-align:center">'; 35 print_string('noentry', 'glossary'); 36 echo '</div>'; 37 } 38 echo '</td></tr>'; 39 40 echo "</table>\n"; 41 return $return; 42 } 43 44 function glossary_print_entry_entrylist($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1) { 45 //Take out autolinking in definitions un print view 46 // TODO use <nolink> tags MDL-15555. 47 $entry->definition = '<span class="nolink">'.$entry->definition.'</span>'; 48 49 echo html_writer::start_tag('table', array('class' => 'glossarypost entrylist mod-glossary-entrylist')); 50 echo html_writer::start_tag('tr'); 51 echo html_writer::start_tag('td', array('class' => 'entry mod-glossary-entry')); 52 echo html_writer::start_tag('div', array('class' => 'mod-glossary-concept')); 53 glossary_print_entry_concept($entry); 54 echo html_writer::end_tag('div'); 55 echo html_writer::start_tag('div', array('class' => 'mod-glossary-definition')); 56 glossary_print_entry_definition($entry, $glossary, $cm); 57 echo html_writer::end_tag('div'); 58 echo html_writer::start_tag('div', array('class' => 'mod-glossary-lower-section')); 59 glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, false, false); 60 echo html_writer::end_tag('div'); 61 echo html_writer::end_tag('td'); 62 echo html_writer::end_tag('tr'); 63 echo html_writer::end_tag('table'); 64 } 65 66
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |