Skip to content

Commit

Permalink
Cleaned up attachment section of view page.
Browse files Browse the repository at this point in the history
  • Loading branch information
mchurch committed Aug 25, 2004
1 parent cbac49a commit d2049a8
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions mod/wiki/ewiki/plugins/moodle/downloads.php
Expand Up @@ -278,7 +278,7 @@ function ewiki_page_filedownload($id, $data, $action, $def_sec="") {

foreach ($sorted as $id=>$uu) {
$row = $files[$id];
$o .= ewiki_entry_downloads($row, $section[0]=="*");
$o .= ewiki_entry_downloads($row, $section[0]=="*", true);
}
}

Expand All @@ -291,7 +291,7 @@ function ewiki_page_filedownload($id, $data, $action, $def_sec="") {



function ewiki_entry_downloads($row, $show_section=0) {
function ewiki_entry_downloads($row, $show_section=0, $fullinfo=false) {

global $ewiki_binary_icons, $ewiki_upload_sections;

Expand Down Expand Up @@ -344,11 +344,20 @@ function ewiki_entry_downloads($row, $show_section=0) {
$info->comment = $p_comment;


$o .= '<a href="'.$info->url.'">'.$info->icon.$info->title.'</a>'.$info->size.'<br>'.
get_string("uploadedon","wiki").": ".$info->time.", ".get_string("downloadtimes","wiki",$info->hits)."<br>".
'(<a href="'.$info->url.'">'.$info->id."</a>)<br>".
$info->section." ".get_string("fileisoftype","wiki").": ".$info->type.
"$info->comment<br><br>";
if ($fullinfo) {
$o .= '<a href="'.$info->url.'">'.$info->icon.$info->title.'</a>'.$info->size.'<br>'.
get_string("uploadedon","wiki").": ".$info->time.", ".
get_string("downloadtimes","wiki",$info->hits)."<br>".
// '(<a href="'.$info->url.'">'.$info->id."</a>)<br>".
$info->section." ".get_string("fileisoftype","wiki").": ".$info->type.
$info->comment.'<br><br>';
}
else {
// global $moodle_format; // from wiki/view.php
$o .= '<a href="'.$info->url.'">'.$info->icon.$info->title.'</a>'.$info->size.'<br>'.
$info->comment.'<br><br>';
// $o = format_text($o, $moodle_format);
}



Expand Down

0 comments on commit d2049a8

Please sign in to comment.