Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- New display format: Entry list (please, fix the translation if it i…

…s wrong).
  • Loading branch information...
commit 1f8ab702812750f86d21eb95387fc8dc3947ea6e 1 parent b191803
willcast authored
Showing with 29 additions and 0 deletions.
  1. +1 −0  lang/en/glossary.php
  2. +28 −0 mod/glossary/formats/6.php
View
1  lang/en/glossary.php
@@ -59,6 +59,7 @@
$string['displayformat3'] = "Encyclopedia";
$string['displayformat4'] = "FAQ";
$string['displayformat5'] = "Full without author";
+$string['displayformat6'] = "Entry list";
$string['duplicateentry'] = "Duplicate entry";
$string['editcategories'] = "Edit categories";
$string['editentry'] = "Edit entry";
View
28 mod/glossary/formats/6.php
@@ -0,0 +1,28 @@
+<?PHP // $Id$
+
+function glossary_print_entry_by_format($course, $cm, $glossary, $entry,$mode="",$hook="",$printicons=1) {
+ global $THEME, $USER;
+
+ $colour = "#FFFFFF";
+
+ echo "\n<table class=\"generalbox\" border=0 cellspacing=0 width=95% valign=top cellpadding=10>";
+
+ echo "\n<tr>";
+ echo "<td width=100% bgcolor=\"$colour\">";
+ if ($entry) {
+ echo "<b><a href=\"view.php?id=$cm->id&mode=entry&hook=$entry->id&displayformat=0\">";
+
+ glossary_print_entry_concept($entry);
+ echo '</a></b><br />';
+ } else {
+ echo "<center>";
+ print_string("noentry", "glossary");
+ echo "</center>";
+ }
+ echo "</td></tr>";
+
+ echo "</table>\n";
+
+}
+
+?>
Please sign in to comment.
Something went wrong with that request. Please try again.