Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Commit

Permalink
MDL-48286 core_files: Improved accessibility of file management
Browse files Browse the repository at this point in the history
  • Loading branch information
marsh0lion authored and andrewnicols committed Dec 16, 2014
1 parent 81103d1 commit 7eac77a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
21 changes: 15 additions & 6 deletions files/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ private function fm_print_generallayout($fm) {
$strdndnotsupported = get_string('dndnotsupported_insentence', 'moodle').$OUTPUT->help_icon('dndnotsupported');
$strdndenabledinbox = get_string('dndenabled_inbox', 'moodle');
$loading = get_string('loading', 'repository');
$straddfiletext = get_string('addfiletext', 'repository');
$strcreatefolder = get_string('createfolder', 'repository');
$strdownloadallfiles = get_string('downloadallfiles', 'repository');

$html = '
<div id="filemanager-'.$client_id.'" class="filemanager fm-loading">
Expand All @@ -200,25 +203,31 @@ private function fm_print_generallayout($fm) {
<div class="filemanager-toolbar">
<div class="fp-toolbar">
<div class="fp-btn-add">
<a role="button" title="'.$straddfile.'" href="#"><img src="'.$this->pix_url('a/add_file').'" alt="" /></a>
<a role="button" title="' . $straddfile . '" href="#">
<img src="' . $this->pix_url('a/add_file') . '" alt="' . $straddfiletext . '" />
</a>
</div>
<div class="fp-btn-mkdir">
<a role="button" title="'.$strmakedir.'" href="#"><img src="'.$this->pix_url('a/create_folder').'" alt="" /></a>
<a role="button" title="' . $strmakedir . '" href="#">
<img src="' . $this->pix_url('a/create_folder') . '" alt="' . $strcreatefolder . '" />
</a>
</div>
<div class="fp-btn-download">
<a role="button" title="'.$strdownload.'" href="#"><img src="'.$this->pix_url('a/download_all').'" alt="" /></a>
<a role="button" title="' . $strdownload . '" href="#">
<img src="' . $this->pix_url('a/download_all').'" alt="' . $strdownloadallfiles . '" />
</a>
</div>
<img class="fp-img-downloading" src="'.$this->pix_url('i/loading_small').'" alt="" />
</div>
<div class="fp-viewbar">
<a title="'. get_string('displayicons', 'repository') .'" class="fp-vb-icons" href="#">
<img alt="" src="'. $this->pix_url('fp/view_icon_active', 'theme') .'" />
<img alt="'. get_string('displayasicons', 'repository') .'" src="'. $this->pix_url('fp/view_icon_active', 'theme') .'" />
</a>
<a title="'. get_string('displaydetails', 'repository') .'" class="fp-vb-details" href="#">
<img alt="" src="'. $this->pix_url('fp/view_list_active', 'theme') .'" />
<img alt="'. get_string('displayasdetails', 'repository') .'" src="'. $this->pix_url('fp/view_list_active', 'theme') .'" />
</a>
<a title="'. get_string('displaytree', 'repository') .'" class="fp-vb-tree" href="#">
<img alt="" src="'. $this->pix_url('fp/view_tree_active', 'theme') .'" />
<img alt="'. get_string('displayastree', 'repository') .'" src="'. $this->pix_url('fp/view_tree_active', 'theme') .'" />
</a>
</div>
</div>
Expand Down
6 changes: 6 additions & 0 deletions lang/en/repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
$string['activerepository'] = 'Available repository plugins';
$string['add'] = 'Add';
$string['addfile'] = 'Add...';
$string['addfiletext'] = 'Add file';
$string['addplugin'] = 'Add a repository plugin';
$string['allowexternallinks'] = 'Allow external links';
$string['areamainfile'] = 'Main file';
Expand Down Expand Up @@ -87,10 +88,14 @@
$string['detailview'] = 'View details';
$string['dimensions'] = 'Dimensions';
$string['disabled'] = 'Disabled';
$string['displayasdetails'] = 'Display as file details';
$string['displayasicons'] = 'Display as file icons';
$string['displayastree'] = 'Display as file tree';
$string['displaydetails'] = 'Display folder with file details';
$string['displayicons'] = 'Display folder with file icons';
$string['displaytree'] = 'Display folder as file tree';
$string['download'] = 'Download';
$string['downloadallfiles'] = 'Download all files';
$string['downloadfolder'] = 'Download all';
$string['downloadsucc'] = 'The file has been downloaded successfully';
$string['draftareanofiles'] = 'Cannot be downloaded because there is no files attached';
Expand Down Expand Up @@ -128,6 +133,7 @@
$string['help'] = 'Help';
$string['choosealink'] = 'Choose a link...';
$string['chooselicense'] = 'Choose license';
$string['createfolder'] = 'Create folder';
$string['iconview'] = 'View as icons';
$string['imagesize'] = '{$a->width} x {$a->height} px';
$string['instance'] = 'instance';
Expand Down

0 comments on commit 7eac77a

Please sign in to comment.