From 1f8ab702812750f86d21eb95387fc8dc3947ea6e Mon Sep 17 00:00:00 2001 From: willcast Date: Tue, 18 Nov 2003 00:46:02 +0000 Subject: [PATCH] - New display format: Entry list (please, fix the translation if it is wrong). --- lang/en/glossary.php | 1 + mod/glossary/formats/6.php | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 mod/glossary/formats/6.php 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"; + +} + +?> -- 2.39.5