diff --git a/fileresponsefilemanager.php b/fileresponsefilemanager.php index ee935fe..ca08039 100755 --- a/fileresponsefilemanager.php +++ b/fileresponsefilemanager.php @@ -589,41 +589,56 @@ protected function fm_print_generallayout($fm) {
' . $restrictions . ' - - ' . $strdndnotsupported . ' + - ' . + $strdndnotsupported . '
@@ -631,14 +646,18 @@ protected function fm_print_generallayout($fm) {
-
' . $icon_progress . '
+
' . $icon_progress . + '
-
' . $strdndenabledinbox . '
+
' . + $strdndenabledinbox . + '
-
' . $strdroptoupload . '
+
' . + $strdroptoupload . '
' . $icon_progress . '
@@ -673,7 +692,8 @@ protected function fm_js_template_iconfilename() {
-' . $this->pix_icon('i/menu', '▶') . ' +' . + $this->pix_icon('i/menu', '▶') . ' '; return $rv; } @@ -701,7 +721,8 @@ protected function fm_js_template_listfilename() { -' . $this->pix_icon('i/menu', '▶') . ' +' . + $this->pix_icon('i/menu', '▶') . ' '; return $rv; } @@ -724,11 +745,14 @@ protected function fm_js_template_mkdir() { $rv = ' '; return $rv; } @@ -793,71 +817,97 @@ protected function fm_js_template_fileselectlayout() { $rv = '
- +
- + - - ' . $OUTPUT->help_icon('setmainfile', 'repository') . ' - + + ' . + $OUTPUT->help_icon('setmainfile', 'repository') . ' +
- +
- +
- +
- +
- +
- ' . $iconprogress . ' ' . $strloading . ' + ' . + $iconprogress . ' ' . $strloading . + '
- +

- ' . $iconprogress . ' ' . $strloading . ' + ' . + $iconprogress . ' ' . $strloading . + '
    - - + +

    -
    ' . get_string('lastmodified', 'repository') . '
    -
    ' . get_string('datecreated', 'repository') . '
    -
    ' . get_string('size', 'repository') . '
    -
    ' . get_string('dimensions', 'repository') . '
    +
    ' . + get_string('lastmodified', 'repository') . + '
    +
    ' . + get_string('datecreated', 'repository') . + '
    +
    ' . + get_string('size', 'repository') . + '
    +
    ' . + get_string('dimensions', 'repository') . '
    '; @@ -879,9 +929,9 @@ protected function fm_js_template_confirmdialog() { $rv = '
    - - + +
    '; return $rv; } @@ -987,42 +1037,60 @@ protected function fp_js_template_generallayout() {
    - - + + - - + + - - + +
    @@ -1114,7 +1182,7 @@ protected function fp_js_template_nextpage() {
    - +
    '; return $rv; @@ -1152,7 +1220,7 @@ protected function fp_js_template_selectlayout() { $rv = '
    - +
    @@ -1178,39 +1246,58 @@ protected function fp_js_template_selectlayout() {
    - +
    - +
    - +
    - - + +

    -
    ' . get_string('lastmodified', 'repository') . '
    -
    ' . get_string('datecreated', 'repository') . '
    -
    ' . get_string('size', 'repository') . '
    -
    ' . get_string('license', 'repository') . '
    -
    ' . get_string('author', 'repository') . '
    -
    ' . get_string('dimensions', 'repository') . '
    +
    ' . + get_string('lastmodified', 'repository') . + '
    +
    ' . + get_string('datecreated', 'repository') . + '
    +
    ' . + get_string('size', 'repository') . + '
    +
    ' . + get_string('license', 'repository') . + '
    +
    ' . + get_string('author', 'repository') . + '
    +
    ' . + get_string('dimensions', 'repository') . '
    '; @@ -1242,25 +1329,31 @@ protected function fp_js_template_uploadform() {
    - +
    - +
    - +
    - +
    @@ -1268,7 +1361,8 @@ protected function fp_js_template_uploadform() {
    - +
    '; @@ -1285,7 +1379,7 @@ protected function fp_js_template_loading() { return '
    - +
    '; } @@ -1348,9 +1442,11 @@ protected function fp_js_template_processexistingfile() {

    - + - +
    '; return $rv; @@ -1375,13 +1471,17 @@ protected function fp_js_template_processexistingfilemultiple() { $rv = '

    -' . get_string('overwrite', 'repository') . ' -' . get_string('cancel') . ' +' . + get_string('overwrite', 'repository') . ' +' . + get_string('cancel') . '
    ' . - get_string('overwriteall', 'repository') . ' -' . get_string('renameall', 'repository') . ' + get_string('overwriteall', 'repository') . + ' +' . + get_string('renameall', 'repository') . '
    '; return $rv; } @@ -1438,7 +1538,8 @@ protected function fp_js_template_loginform() {
    -

    +

    '; diff --git a/fileresponsesimplifiedfilemanager.php b/fileresponsesimplifiedfilemanager.php index 890b3a9..6ee9b8e 100755 --- a/fileresponsesimplifiedfilemanager.php +++ b/fileresponsesimplifiedfilemanager.php @@ -412,7 +412,8 @@ public function get_nonjsurl() { 'itemid' => $this->options->itemid, 'subdirs' => $this->options->subdirs, 'maxbytes' => $this->options->maxbytes, 'areamaxbytes' => $this->options->areamaxbytes, - 'maxfiles' => $this->options->maxfiles, 'ctx_id' => $PAGE->context->id, // TODO ? + 'maxfiles' => $this->options->maxfiles, 'ctx_id' => $PAGE->context->id, // TODO + // ? 'course' => $PAGE->course->id, // TODO ? 'sesskey' => sesskey() )); @@ -523,8 +524,9 @@ function initialise_fileresponsesimplifiedfilepicker($args) { $templatesinitialized['core'] = true; } if (sizeof($templates)) { - $PAGE->requires->js_init_call('M.core_filepicker.set_templates', array($templates - ), true); + $PAGE->requires->js_init_call('M.core_filepicker.set_templates', + array($templates + ), true); } return $return; } @@ -659,54 +661,38 @@ private function fm_print_generallayout($fm) { $loading = get_string('loading', 'repository'); $html = ' -
    +
    ' . $restrictions . ' - - ' . - $strdndnotsupported . - ' + - ' . $strdndnotsupported . '
    - +
    - +
    - + - +
    @@ -714,18 +700,14 @@ private function fm_print_generallayout($fm) {
    -
    ' . $icon_progress . - '
    +
    ' . $icon_progress . '
    -
    ' . - $strdndenabledinbox . - '
    +
    ' . $strdndenabledinbox . '
    -
    ' . - $strdroptoupload . '
    +
    ' . $strdroptoupload . '
    ' . $icon_progress . '
    @@ -760,8 +742,7 @@ private function fm_js_template_iconfilename() {
    - ' . - $this->pix_icon('i/menu', '▶') . ' + ' . $this->pix_icon('i/menu', '▶') . '
    '; return $rv; } @@ -788,8 +769,7 @@ private function fm_js_template_listfilename() { - ' . - $this->pix_icon('i/menu', '▶') . ' + ' . $this->pix_icon('i/menu', '▶') . ' '; return $rv; } @@ -812,14 +792,11 @@ private function fm_js_template_mkdir() { $rv = ' '; return $rv; } @@ -883,100 +860,74 @@ private function fm_js_template_fileselectlayout() { $rv = '
    - +
    - + - - ' . - $OUTPUT->help_icon('setmainfile', 'repository') . ' - + + ' . $OUTPUT->help_icon('setmainfile', 'repository') . ' +
    - +
    - +
    - ' . - $iconprogress . ' ' . $strloading . - ' + ' . $iconprogress . ' ' . $strloading . '
    - +

    - ' . - $iconprogress . ' ' . $strloading . - ' + ' . $iconprogress . ' ' . $strloading . '
      - - + +

      -
      ' . - get_string('lastmodified', 'repository') . - '
      -
      ' . - get_string('datecreated', 'repository') . - '
      -
      ' . - get_string('size', 'repository') . - '
      -
      ' . - get_string('dimensions', 'repository') . '
      +
      ' . get_string('lastmodified', 'repository') . '
      +
      ' . get_string('datecreated', 'repository') . '
      +
      ' . get_string('size', 'repository') . '
      +
      ' . get_string('dimensions', 'repository') . '
      '; @@ -998,10 +949,8 @@ private function fm_js_template_confirmdialog() { $rv = '
      - - + +
      '; return $rv; } @@ -1107,60 +1056,42 @@ private function fp_js_template_generallayout() {
      - - + + - - + + - - + +
      @@ -1250,9 +1181,11 @@ private function fp_js_template_listfilename() { private function fp_js_template_nextpage() { $rv = '
      - +
      - +
      '; return $rv; @@ -1290,23 +1223,20 @@ private function fp_js_template_selectlayout() { $rv = '
      - +
      + get_string('makefileinternal', 'repository') . '
      + get_string('makefilelink', 'repository') . '
      @@ -1319,26 +1249,21 @@ private function fp_js_template_selectlayout() {
      - +
      - + - -
      ' . - get_string('dimensions', 'repository') . '
      + +
      ' . get_string('dimensions', 'repository') . '
      '; @@ -1406,33 +1318,27 @@ private function fp_js_template_uploadform() {
      - +
      - +