From: stronk7 Date: Tue, 27 Jul 2004 17:13:37 +0000 (+0000) Subject: Removed old glossary formats. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=eaa9a0684958f6d6872884fe6cc35f742bca864b;p=moodle.git Removed old glossary formats. Part of the new formats plugin structure. See Bug 936 (http://moodle.org/bugs/bug.php?op=show&bugid=936) --- diff --git a/mod/glossary/formats/1.php b/mod/glossary/formats/1.php deleted file mode 100644 index ad47fcd665..0000000000 --- a/mod/glossary/formats/1.php +++ /dev/null @@ -1,40 +0,0 @@ -cellheading2; - - echo "\n"; - - echo "\n"; - echo ""; - - echo "\n"; - - echo "
"; - if ($entry->attachment) { - $entry->course = $course->id; - echo "
"; - echo glossary_print_attachments($entry, "html"); - echo "
"; - } - echo "$entry->concept
"; - if ($entry) { - echo "  ".get_string("lastedited").": ".userdate($entry->timemodified).""; - } - echo "
cellcontent\">"; - if ($entry) { - glossary_print_entry_definition($entry); - glossary_print_entry_icons($course, $cm, $glossary, $entry, $currentview, $cat); - - } else { - echo "
"; - print_string("noentry", "glossary"); - echo "
"; - } - echo "
\n"; - -} - -?> diff --git a/mod/glossary/formats/2.php b/mod/glossary/formats/2.php deleted file mode 100644 index 8eb95e9343..0000000000 --- a/mod/glossary/formats/2.php +++ /dev/null @@ -1,54 +0,0 @@ -cellheading2; - - $user = get_record("user", "id", $entry->userid); - $strby = get_string("writtenby", "glossary"); - - echo "\n
"; - - echo "\n"; - echo "\n"; - echo ""; - - echo "\n"; - echo "\n"; - echo "\n"; - - echo "
"; - $return = false; - if ($entry) { - print_user_picture($user->id, $course->id, $user->picture); - - echo "cellheading\" class=\"forumpostheader\">"; - - glossary_print_entry_approval($cm, $entry, $mode); - glossary_print_entry_attachment($entry,"html","right"); - - echo ""; - glossary_print_entry_concept($entry); - echo "
"; - - echo "$strby " . fullname($user, isteacher($course->id)) . ""; - echo "  (".get_string("lastedited").": ". - userdate($entry->timemodified).")"; - echo "
 cellcontent\" class=\"forumpostmessage\">"; - - glossary_print_entry_definition($entry); - glossary_print_entry_lower_section($course, $cm, $glossary, $entry,$mode,$hook,$printicons); - echo ' '; - $return = glossary_print_entry_ratings($course, $entry, $ratings); - - } else { - echo "
"; - print_string("noentry", "glossary"); - echo "
"; - } - echo "
\n"; - return $return; -} - -?> diff --git a/mod/glossary/formats/3.php b/mod/glossary/formats/3.php deleted file mode 100644 index 9df16b24b2..0000000000 --- a/mod/glossary/formats/3.php +++ /dev/null @@ -1,60 +0,0 @@ -cellheading2; - - $user = get_record("user", "id", $entry->userid); - $strby = get_string("writtenby", "glossary"); - - echo "\n
"; - - echo "\n"; - echo "\n"; - echo ""; - - echo "\n"; - echo "\n"; - echo "\n"; - - echo "
"; - $return = false; - if ($entry) { - print_user_picture($user->id, $course->id, $user->picture); - echo "cellheading\" class=\"forumpostheader\">"; - glossary_print_entry_approval($cm, $entry, $mode); - echo ""; - glossary_print_entry_concept($entry); - echo "
"; - echo "$strby " . fullname($user, isteacher($course->id)) . ""; - echo "  (".get_string("lastedited").": ". - userdate($entry->timemodified).")"; - echo "
 cellcontent\" class=\"forumpostmessage\">"; - - if ($entry->attachment) { - $entry->course = $course->id; - if (strlen($entry->definition)%2) { - $align = "right"; - } else { - $align = "left"; - } - glossary_print_entry_attachment($entry,"",$align); - } - glossary_print_entry_definition($entry); - - glossary_print_entry_lower_section($course, $cm, $glossary, $entry,$mode,$hook,$printicons); - echo ' '; - $return = glossary_print_entry_ratings($course, $entry, $ratings); - - } else { - echo "
"; - print_string("noentry", "glossary"); - echo "
"; - } - echo "
\n"; - - return $return; -} - -?> diff --git a/mod/glossary/formats/4.php b/mod/glossary/formats/4.php deleted file mode 100644 index 87bc412a9c..0000000000 --- a/mod/glossary/formats/4.php +++ /dev/null @@ -1,38 +0,0 @@ -cellheading2; - - echo '
'; - - echo ''; - echo "'; - echo "
"; - $entry->course = $course->id; - glossary_print_entry_approval($cm, $entry, $mode); - glossary_print_entry_attachment($entry,"html","right"); - - echo '' . get_string("question","glossary") . ': '; - glossary_print_entry_concept($entry) . '
'; - echo '  ' . get_string("lastedited").': '.userdate($entry->timemodified) . '
cellcontent\">"; - echo '' . get_string("answer","glossary") . ': '; - glossary_print_entry_definition($entry); - - - glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook,$printicons); - echo ' '; - $return = glossary_print_entry_ratings($course, $entry, $ratings); - echo '
'; - - } else { - echo '
'; - print_string("noentry", "glossary"); - echo '
'; - } - return $return; -} - -?> diff --git a/mod/glossary/formats/5.php b/mod/glossary/formats/5.php deleted file mode 100644 index 9bf3cb880a..0000000000 --- a/mod/glossary/formats/5.php +++ /dev/null @@ -1,38 +0,0 @@ -cellheading2; - $return = false; - - echo "\n
"; - - echo "\n"; - echo ""; - echo "\n"; - - echo "
cellheading\">"; - glossary_print_entry_approval($cm, $entry, $mode); - if ($entry) { - glossary_print_entry_attachment($entry,"html","right"); - echo ""; - glossary_print_entry_concept($entry); - echo "
"; - echo "".get_string("lastedited").": ".userdate($entry->timemodified).""; - echo "
cellcontent\">"; - - glossary_print_entry_definition($entry); - glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook,$printicons); - echo ' '; - $return = glossary_print_entry_ratings($course, $entry, $ratings); - } else { - echo "
"; - print_string("noentry", "glossary"); - echo "
"; - } - echo "
\n"; - return $return; -} - -?> diff --git a/mod/glossary/formats/6.php b/mod/glossary/formats/6.php deleted file mode 100644 index aacec2fc05..0000000000 --- a/mod/glossary/formats/6.php +++ /dev/null @@ -1,34 +0,0 @@ -"; - - echo "\n"; - echo ""; - if ($entry) { - echo "id\&eid=$entry->id\&displayformat=5\" target=\"_blank\" onClick=\"return openpopup('/mod/glossary/showentry.php?courseid=$course->id\&eid=$entry->id\&displayformat=5', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);\">"; - - glossary_print_entry_concept($entry); - echo ' '; - if ( $return = glossary_print_entry_commentslink($course, $cm, $glossary, $entry,$mode,$hook, 'html') ) { - echo "($return)"; - } - - echo '
'; - } else { - echo "
"; - print_string("noentry", "glossary"); - echo "
"; - } - echo ""; - - echo "\n"; - return $return; -} - -?>