mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
Merge branch 'WIP-MDL-35246' of git://github.com/nadavkav/moodle
This commit is contained in:
commit
21ba954e99
1 changed files with 10 additions and 2 deletions
|
@ -548,6 +548,14 @@ abstract class list_item {
|
||||||
$strmovedown = get_string('movedown');
|
$strmovedown = get_string('movedown');
|
||||||
$strmoveleft = get_string('maketoplevelitem', 'question');
|
$strmoveleft = get_string('maketoplevelitem', 'question');
|
||||||
|
|
||||||
|
if (right_to_left()) { // Exchange arrows on RTL
|
||||||
|
$rightarrow = 'left';
|
||||||
|
$leftarrow = 'right';
|
||||||
|
} else {
|
||||||
|
$rightarrow = 'right';
|
||||||
|
$leftarrow = 'left';
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($this->parentlist->parentitem)) {
|
if (isset($this->parentlist->parentitem)) {
|
||||||
$parentitem = $this->parentlist->parentitem;
|
$parentitem = $this->parentlist->parentitem;
|
||||||
if (isset($parentitem->parentlist->parentitem)) {
|
if (isset($parentitem->parentlist->parentitem)) {
|
||||||
|
@ -556,7 +564,7 @@ abstract class list_item {
|
||||||
$action = $strmoveleft;
|
$action = $strmoveleft;
|
||||||
}
|
}
|
||||||
$url = new moodle_url($this->parentlist->pageurl, (array('sesskey'=>sesskey(), 'left'=>$this->id)));
|
$url = new moodle_url($this->parentlist->pageurl, (array('sesskey'=>sesskey(), 'left'=>$this->id)));
|
||||||
$this->icons['left'] = $this->image_icon($action, $url, 'left');
|
$this->icons['left'] = $this->image_icon($action, $url, $leftarrow);
|
||||||
} else {
|
} else {
|
||||||
$this->icons['left'] = $this->image_spacer();
|
$this->icons['left'] = $this->image_spacer();
|
||||||
}
|
}
|
||||||
|
@ -578,7 +586,7 @@ abstract class list_item {
|
||||||
if (!empty($lastitem)) {
|
if (!empty($lastitem)) {
|
||||||
$makechildof = get_string('makechildof', 'question', $lastitem->name);
|
$makechildof = get_string('makechildof', 'question', $lastitem->name);
|
||||||
$url = new moodle_url($this->parentlist->pageurl, (array('sesskey'=>sesskey(), 'right'=>$this->id)));
|
$url = new moodle_url($this->parentlist->pageurl, (array('sesskey'=>sesskey(), 'right'=>$this->id)));
|
||||||
$this->icons['right'] = $this->image_icon($makechildof, $url, 'right');
|
$this->icons['right'] = $this->image_icon($makechildof, $url, $rightarrow);
|
||||||
} else {
|
} else {
|
||||||
$this->icons['right'] = $this->image_spacer();
|
$this->icons['right'] = $this->image_spacer();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue