Skip to content

Commit ab22617

Browse files
author
Khoa Nguyen Dang
committed
fix icon too large issue
1 parent 2ce1371 commit ab22617

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

renderer.php

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ protected function list_workflows($workflows) {
321321
$add = html_writer::empty_tag('img',
322322
[
323323
'src' => $this->output->image_url('t/add'),
324-
'class' => 'iconsmall',
324+
'class' => 'iconsmall icon',
325325
'title' => get_string('createworkflow', 'block_workflow'),
326326
'alt' => get_string('createworkflow', 'block_workflow'),
327327
]);
@@ -330,7 +330,7 @@ protected function list_workflows($workflows) {
330330
$add = html_writer::empty_tag('img',
331331
[
332332
'src' => $this->output->image_url('t/restore'),
333-
'class' => 'iconsmall',
333+
'class' => 'iconsmall icon',
334334
'title' => get_string('importworkflow', 'block_workflow'),
335335
'alt' => get_string('importworkflow', 'block_workflow'),
336336
]);
@@ -375,7 +375,7 @@ protected function workflow_row(stdClass $workflow) {
375375
$url = new moodle_url('/blocks/workflow/editsteps.php', ['workflowid' => $workflow->id]);
376376
$actions[] = html_writer::link($url, html_writer::empty_tag('img', [
377377
'src' => $this->output->image_url('t/edit'),
378-
'class' => 'iconsmall',
378+
'class' => 'iconsmall icon',
379379
'title' => get_string('vieweditworkflow', 'block_workflow'),
380380
'alt' => get_string('vieweditworkflow', 'block_workflow'),
381381
]));
@@ -384,7 +384,7 @@ protected function workflow_row(stdClass $workflow) {
384384
$url = new moodle_url('/blocks/workflow/export.php', ['sesskey' => sesskey(), 'workflowid' => $workflow->id]);
385385
$actions[] = html_writer::link($url, html_writer::empty_tag('img', [
386386
'src' => $this->output->image_url('t/backup'),
387-
'class' => 'iconsmall',
387+
'class' => 'iconsmall icon',
388388
'title' => get_string('exportworkflow', 'block_workflow'),
389389
'alt' => get_string('exportworkflow', 'block_workflow'),
390390
]));
@@ -393,7 +393,7 @@ protected function workflow_row(stdClass $workflow) {
393393
$url = new moodle_url('/blocks/workflow/clone.php', ['workflowid' => $workflow->id]);
394394
$actions[] = html_writer::link($url, html_writer::empty_tag('img', [
395395
'src' => $this->output->image_url('t/copy'),
396-
'class' => 'iconsmall',
396+
'class' => 'iconsmall icon',
397397
'title' => get_string('cloneworkflow', 'block_workflow'),
398398
'alt' => get_string('cloneworkflow', 'block_workflow'),
399399
]));
@@ -405,7 +405,7 @@ protected function workflow_row(stdClass $workflow) {
405405
['sesskey' => sesskey(), 'workflowid' => $workflow->id]);
406406
$actions[] = html_writer::link($url, html_writer::empty_tag('img', [
407407
'src' => $this->output->image_url('t/hide'),
408-
'class' => 'iconsmall',
408+
'class' => 'iconsmall icon',
409409
'title' => get_string('disableworkflow', 'block_workflow'),
410410
'alt' => get_string('disableworkflow', 'block_workflow'),
411411
]));
@@ -414,7 +414,7 @@ protected function workflow_row(stdClass $workflow) {
414414
['sesskey' => sesskey(), 'workflowid' => $workflow->id]);
415415
$actions[] = html_writer::link($url, html_writer::empty_tag('img', [
416416
'src' => $this->output->image_url('t/show'),
417-
'class' => 'iconsmall',
417+
'class' => 'iconsmall icon',
418418
'title' => get_string('enableworkflow', 'block_workflow'),
419419
'alt' => get_string('enableworkflow', 'block_workflow'),
420420
]));
@@ -425,15 +425,15 @@ protected function workflow_row(stdClass $workflow) {
425425
$url = new moodle_url('/blocks/workflow/delete.php', ['workflowid' => $workflow->id]);
426426
$actions[] = html_writer::link($url, html_writer::empty_tag('img', [
427427
'src' => $this->output->image_url('t/delete'),
428-
'class' => 'iconsmall',
428+
'class' => 'iconsmall icon',
429429
'title' => get_string('removeworkflow', 'block_workflow'),
430430
'alt' => get_string('removeworkflow', 'block_workflow'),
431431
]));
432432
} else {
433433
$a = block_workflow_workflow::in_use_by($workflow->id);
434434
$actions[] = html_writer::empty_tag('img', [
435435
'src' => $this->output->image_url('t/delete'),
436-
'class' => 'iconsmall',
436+
'class' => 'iconsmall icon',
437437
'title' => get_string('cannotdeleteworkflowinuseby', 'block_workflow', $a),
438438
'alt' => get_string('removeworkflow', 'block_workflow'),
439439
]);
@@ -473,7 +473,7 @@ protected function list_emails(array $emails) {
473473
$add = html_writer::empty_tag('img',
474474
[
475475
'src' => $this->output->image_url('t/add'),
476-
'class' => 'iconsmall',
476+
'class' => 'iconsmall icon',
477477
'title' => get_string('addemail', 'block_workflow'),
478478
'alt' => get_string('addemail', 'block_workflow'),
479479
]);
@@ -511,7 +511,7 @@ protected function email_row(stdClass $email) {
511511
$url = new moodle_url('/blocks/workflow/editemail.php', ['emailid' => $email->id]);
512512
$actions[] = html_writer::link($url, html_writer::empty_tag('img', [
513513
'src' => $this->output->image_url('t/edit'),
514-
'class' => 'iconsmall',
514+
'class' => 'iconsmall icon',
515515
'title' => get_string('vieweditemail', 'block_workflow'),
516516
'alt' => get_string('vieweditemail', 'block_workflow'),
517517
]));
@@ -520,15 +520,15 @@ protected function email_row(stdClass $email) {
520520
if ($email->activecount || $email->completecount) {
521521
$actions[] = html_writer::empty_tag('img', [
522522
'src' => $this->output->image_url('t/delete'),
523-
'class' => 'iconsmall',
523+
'class' => 'iconsmall icon',
524524
'title' => get_string('cannotremoveemailinuse', 'block_workflow'),
525525
'alt' => get_string('deleteemail', 'block_workflow'),
526526
]);
527527
} else {
528528
$url = new moodle_url('/blocks/workflow/deleteemail.php', ['emailid' => $email->id]);
529529
$actions[] = html_writer::link($url, html_writer::empty_tag('img', [
530530
'src' => $this->output->image_url('t/delete'),
531-
'class' => 'iconsmall',
531+
'class' => 'iconsmall icon',
532532
'title' => get_string('deleteemail', 'block_workflow'),
533533
'alt' => get_string('deleteemail', 'block_workflow'),
534534
]));
@@ -576,7 +576,7 @@ public function list_steps($workflow) {
576576
$add = html_writer::empty_tag('img',
577577
[
578578
'src' => $this->output->image_url('t/add'),
579-
'class' => 'iconsmall',
579+
'class' => 'iconsmall icon',
580580
'title' => get_string('addstep', 'block_workflow'),
581581
'alt' => get_string('addstep', 'block_workflow'),
582582
]);
@@ -653,7 +653,7 @@ protected function workflow_step($step, $info) {
653653
$actions[] = html_writer::link($url, html_writer::empty_tag('img',
654654
[
655655
'src' => $this->output->image_url('t/edit'),
656-
'class' => 'iconsmall',
656+
'class' => 'iconsmall icon',
657657
'title' => get_string('editstep', 'block_workflow'),
658658
'alt' => get_string('editstep', 'block_workflow'),
659659
]
@@ -664,7 +664,7 @@ protected function workflow_step($step, $info) {
664664
['workflowid' => $info->workflowid, 'beforeafter' => $step->stepno]);
665665
$actions[] = html_writer::link($url, html_writer::empty_tag('img', [
666666
'src' => $this->output->image_url('t/add'),
667-
'class' => 'iconsmall',
667+
'class' => 'iconsmall icon',
668668
'title' => get_string('addstepafter', 'block_workflow'),
669669
'alt' => get_string('addstepafter', 'block_workflow'),
670670
]));
@@ -674,7 +674,7 @@ protected function workflow_step($step, $info) {
674674
$url = new moodle_url('/blocks/workflow/deletestep.php', ['stepid' => $step->id]);
675675
$actions[] = html_writer::link($url, html_writer::empty_tag('img', [
676676
'src' => $this->output->image_url('t/delete'),
677-
'class' => 'iconsmall',
677+
'class' => 'iconsmall icon',
678678
'title' => get_string('removestep', 'block_workflow'),
679679
'alt' => get_string('removestep', 'block_workflow'),
680680
]));
@@ -686,7 +686,7 @@ protected function workflow_step($step, $info) {
686686
['sesskey' => sesskey(), 'id' => $step->id, 'direction' => 'up']);
687687
$actions[] = html_writer::link($url, html_writer::empty_tag('img', [
688688
'src' => $this->output->image_url('t/up'),
689-
'class' => 'iconsmall',
689+
'class' => 'iconsmall icon',
690690
'title' => get_string('moveup', 'block_workflow'),
691691
'alt' => get_string('moveup', 'block_workflow'),
692692
]));
@@ -698,7 +698,7 @@ protected function workflow_step($step, $info) {
698698
['sesskey' => sesskey(), 'id' => $step->id, 'direction' => 'down']);
699699
$actions[] = html_writer::link($url, html_writer::empty_tag('img', [
700700
'src' => $this->output->image_url('t/down'),
701-
'class' => 'iconsmall',
701+
'class' => 'iconsmall icon',
702702
'title' => get_string('movedown', 'block_workflow'),
703703
'alt' => get_string('movedown', 'block_workflow'),
704704
]));
@@ -951,7 +951,7 @@ public function step_todolist($todos, $step) {
951951
$emptycell = new html_table_cell();
952952
$add = html_writer::empty_tag('img', [
953953
'src' => $this->output->image_url('t/add'),
954-
'class' => 'iconsmall',
954+
'class' => 'iconsmall icon',
955955
'title' => get_string('addtask', 'block_workflow'),
956956
'alt' => get_string('addtask', 'block_workflow'),
957957
]);
@@ -981,7 +981,7 @@ protected function step_todolist_item(stdClass $task) {
981981
$url = new moodle_url('/blocks/workflow/edittask.php', ['id' => $task->id]);
982982
$actions[] = html_writer::link($url, html_writer::empty_tag('img', [
983983
'src' => $this->output->image_url('t/edit'),
984-
'class' => 'iconsmall',
984+
'class' => 'iconsmall icon',
985985
'title' => get_string('edittask', 'block_workflow'),
986986
'alt' => get_string('edittask', 'block_workflow'),
987987
]));
@@ -991,14 +991,14 @@ protected function step_todolist_item(stdClass $task) {
991991
if ($task->obsolete == BLOCK_WORKFLOW_ENABLED) {
992992
$actions[] = html_writer::link($url, html_writer::empty_tag('img', [
993993
'src' => $this->output->image_url('t/hide'),
994-
'class' => 'iconsmall',
994+
'class' => 'iconsmall icon',
995995
'title' => get_string('hidetask', 'block_workflow'),
996996
'alt' => get_string('hidetask', 'block_workflow'),
997997
]));
998998
} else {
999999
$actions[] = html_writer::link($url, html_writer::empty_tag('img', [
10001000
'src' => $this->output->image_url('t/show'),
1001-
'class' => 'iconsmall',
1001+
'class' => 'iconsmall icon',
10021002
'title' => get_string('showtask', 'block_workflow'),
10031003
'alt' => get_string('showtask', 'block_workflow'),
10041004
]));
@@ -1010,7 +1010,7 @@ protected function step_todolist_item(stdClass $task) {
10101010
$actions[] = html_writer::link($url,
10111011
html_writer::empty_tag('img', [
10121012
'src' => $this->output->image_url('t/delete'),
1013-
'class' => 'iconsmall',
1013+
'class' => 'iconsmall icon',
10141014
'title' => get_string('removetask', 'block_workflow'),
10151015
'alt' => get_string('removetask', 'block_workflow'),
10161016
]));
@@ -1077,14 +1077,14 @@ protected function step_doer($role, $stepid) {
10771077
if ($role->doer) {
10781078
$actions = html_writer::link($url, html_writer::empty_tag('img', [
10791079
'src' => $this->output->image_url('t/delete'),
1080-
'class' => 'iconsmall',
1080+
'class' => 'iconsmall icon',
10811081
'title' => get_string('removerolefromstep', 'block_workflow'),
10821082
'alt' => get_string('removerolefromstep', 'block_workflow'),
10831083
]));
10841084
} else {
10851085
$actions = html_writer::link($url, html_writer::empty_tag('img', [
10861086
'src' => $this->output->image_url('t/add'),
1087-
'class' => 'iconsmall',
1087+
'class' => 'iconsmall icon',
10881088
'title' => get_string('addroletostep', 'block_workflow'),
10891089
'alt' => get_string('addroletostep', 'block_workflow'),
10901090
]));

0 commit comments

Comments
 (0)