Gitlab CSE Unil
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
M. Chardon
moodle-assignfeedback_editpdfplus
Commits
f1b8a141
Commit
f1b8a141
authored
Apr 16, 2018
by
M. Chardon
Browse files
optimisation fichier
parent
bdf3e193
Changes
1
Hide whitespace changes
Inline
Side-by-side
classes/renderer.php
View file @
f1b8a141
...
...
@@ -113,8 +113,6 @@ class assignfeedback_editpdfplus_renderer extends plugin_renderer_base {
}
$iconhtml
=
html_writer
::
tag
(
"i"
,
""
,
array
(
'class'
=>
'fa '
.
$class
,
'aria-hidden'
=>
'true'
));
//$iconhtml = $this->image_icon($icon, $iconalt, 'assignfeedback_editpdfplus');
$iconparams
=
array
(
'data-tool'
=>
$tool
,
'class'
=>
$tool
.
'button btn btn-default'
,
'type'
=>
'button'
);
if
(
$disabled
)
{
$iconparams
[
'disabled'
]
=
'true'
;
...
...
@@ -216,9 +214,7 @@ class assignfeedback_editpdfplus_renderer extends plugin_renderer_base {
$nav_next
=
'nav_next'
;
}
//$iconalt = get_string('navigateprevious', 'assignfeedback_editpdfplus');
//$iconhtml = $this->image_icon($nav_prev, $iconalt, 'assignfeedback_editpdfplus');
$iconhtmlP
=
html_writer
::
tag
(
"i"
,
""
,
array
(
'class'
=>
'fa fa-caret-left fa-2x'
,
$iconhtmlP
=
html_writer
::
tag
(
"i"
,
""
,
array
(
'class'
=>
'fa fa-caret-left fa-2x'
,
'aria-hidden'
=>
'true'
));
$navigation1
.
=
html_writer
::
tag
(
'button'
,
$iconhtmlP
,
array
(
'disabled'
=>
'true'
,
'class'
=>
'btn btn-default navigate-previous-button'
,
...
...
@@ -228,8 +224,6 @@ class assignfeedback_editpdfplus_renderer extends plugin_renderer_base {
$navigation1
.
=
html_writer
::
tag
(
'select'
,
null
,
array
(
'disabled'
=>
'true'
,
'aria-label'
=>
get_string
(
'gotopage'
,
'assignfeedback_editpdfplus'
),
'class'
=>
'navigate-page-select'
,
'accesskey'
=>
$this
->
get_shortcut
(
'navigate-page-select'
)));
//$iconalt = get_string('navigatenext', 'assignfeedback_editpdfplus');
//$iconhtml = $this->image_icon($nav_next, $iconalt, 'assignfeedback_editpdfplus');
$iconhtmlN
=
html_writer
::
tag
(
"i"
,
""
,
array
(
'class'
=>
'fa fa-caret-right fa-2x'
,
'aria-hidden'
=>
'true'
));
$navigation1
.
=
html_writer
::
tag
(
'button'
,
$iconhtmlN
,
array
(
'disabled'
=>
'true'
,
...
...
@@ -275,14 +269,6 @@ class assignfeedback_editpdfplus_renderer extends plugin_renderer_base {
}
$toolbarCostum
[]
=
html_writer
::
div
(
$toolbartmp
,
'toolbar customtoolbar'
,
array
(
'role'
=>
'toolbar'
,
'id'
=>
'toolbaraxis'
.
$toolbar
[
'axeid'
],
'style'
=>
'display:none;'
));
}
/* usort($axis, function($a, $b) {
$al = substr($a, 4, 5);
$bl = substr($b, 4, 5);
if ($al == $bl) {
return 0;
}
return ($al > $bl) ? +1 : -1;
}); */
$axischoice
=
html_writer
::
div
(
html_writer
::
select
(
$axis
,
'axisselection'
,
0
,
FALSE
),
'toolbar '
,
array
(
'role'
=>
'toolbar'
));
foreach
(
$toolbarCostum
as
$toolbarCostumUnit
)
{
$toolbarCostumdiv
.
=
$toolbarCostumUnit
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment