From: willcast Date: Tue, 18 Nov 2003 00:46:02 +0000 (+0000) Subject: - New display format: Entry list (please, fix the translation if it is wrong). X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1f8ab702812750f86d21eb95387fc8dc3947ea6e;p=moodle.git - New display format: Entry list (please, fix the translation if it is wrong). --- diff --git a/lang/en/glossary.php b/lang/en/glossary.php index 7d4b65e41d..1ac0f142dc 100644 --- a/lang/en/glossary.php +++ b/lang/en/glossary.php @@ -59,6 +59,7 @@ $string['displayformat2'] = "Full with author"; $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"; diff --git a/mod/glossary/formats/6.php b/mod/glossary/formats/6.php new file mode 100644 index 0000000000..d9e23569c4 --- /dev/null +++ b/mod/glossary/formats/6.php @@ -0,0 +1,28 @@ +"; + + echo "\n"; + echo ""; + if ($entry) { + echo "id&mode=entry&hook=$entry->id&displayformat=0\">"; + + glossary_print_entry_concept($entry); + echo '
'; + } else { + echo "
"; + print_string("noentry", "glossary"); + echo "
"; + } + echo ""; + + echo "\n"; + +} + +?>