diff --git a/mod/glossary/formats/fullwithauthor/fullwithauthor_format.php b/mod/glossary/formats/fullwithauthor/fullwithauthor_format.php index 39b3cb3a680..0af86a89cbe 100644 --- a/mod/glossary/formats/fullwithauthor/fullwithauthor_format.php +++ b/mod/glossary/formats/fullwithauthor/fullwithauthor_format.php @@ -4,49 +4,48 @@ function glossary_show_entry_fullwithauthor($course, $cm, $glossary, $entry, $mo global $CFG, $USER; - $user = get_record("user", "id", $entry->userid); - $strby = get_string("writtenby", "glossary"); + $user = get_record('user', 'id', $entry->userid); + $strby = get_string('writtenby', 'glossary'); - echo "\n
"; + echo '
'; - echo "\n"; - echo "\n'; $return = false; if ($entry) { + echo ''; + + echo '"; - echo ""; - echo "\n'; + echo '"; + glossary_print_entry_attachment($entry,'html','right'); + echo ''; - echo ""; + echo ''; - echo "\n"; - echo "\n"; - echo "\n'; + echo ''; + echo '"; + echo ''; echo "
"; + echo '
'; print_user_picture($user->id, $course->id, $user->picture); + echo ''; - echo ""; - - echo ""; + echo ''; glossary_print_entry_concept($entry); - echo "
"; + echo '

'; - echo "$strby " . fullname($user, isteacher($course->id)) . ""; - echo "  (".get_string("lastedited").": ". - userdate($entry->timemodified).")"; - echo "
"; + echo ''.$strby.' '.fullname($user, isteacher($course->id)); + echo '  ('.get_string('lastedited').': '. + userdate($entry->timemodified).')'; + echo ''; glossary_print_entry_approval($cm, $entry, $mode); - glossary_print_entry_attachment($entry,"html","right"); - echo "
 "; + echo '
 '; glossary_print_entry_definition($entry); $return = glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $ratings, $aliases); echo ' '; } else { - echo "
"; - print_string("noentry", "glossary"); - echo "
"; + echo '
'; + print_string('noentry', 'glossary'); } - echo "
\n"; return $return; diff --git a/mod/glossary/formats/fullwithoutauthor/fullwithoutauthor_format.php b/mod/glossary/formats/fullwithoutauthor/fullwithoutauthor_format.php index 925e650145f..c196c27b241 100644 --- a/mod/glossary/formats/fullwithoutauthor/fullwithoutauthor_format.php +++ b/mod/glossary/formats/fullwithoutauthor/fullwithoutauthor_format.php @@ -4,41 +4,41 @@ function glossary_show_entry_fullwithoutauthor($course, $cm, $glossary, $entry, global $CFG, $USER; - echo "\n
"; + echo "\n".'
'; - echo "\n"; + echo ''; $return = false; if ($entry) { - echo ""; - echo "\n'; + echo '"; + glossary_print_entry_attachment($entry,'html','right'); + echo ''; - echo ""; + echo ''; - echo "\n"; - echo "\n'; + echo '"; + echo ''; echo "
"; + echo ''; - echo ""; + echo ''; glossary_print_entry_concept($entry); - echo "
"; + echo '

'; - echo "(".get_string("lastedited").": ". - userdate($entry->timemodified).")"; - echo "
"; + echo '('.get_string('lastedited').': '. + userdate($entry->timemodified).')'; + echo ''; glossary_print_entry_approval($cm, $entry, $mode); - glossary_print_entry_attachment($entry,"html","right"); - echo "
"; + echo '
'; glossary_print_entry_definition($entry); $return = glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $ratings, $aliases); echo ' '; } else { - echo "
"; - print_string("noentry", "glossary"); - echo "
"; + echo '
'; + print_string('noentry', 'glossary'); + echo '
'; } - echo "
\n"; return $return;