var moveLeft = false;
var moveRight = false;
var updateButton = null;
+
+ // for RTL support
+ var isrtl = (document.getElementsByTagName("html")[0].dir=="rtl");
for (var x=0; x<buttons.length; x++) {
if (buttons[x].className == 'editing_moveleft') {
// Add indentation buttons if needed (move left, move right).
if (moveLeft) {
- var button = main.mk_button('a', '/t/left.gif', main.portal.strings['moveleft'],
+ var button = main.mk_button('a', (isrtl?'/t/right.gif':'/t/left.gif'), main.portal.strings['moveleft'],
[['class', 'editing_moveleft']]);
YAHOO.util.Event.addListener(button, 'click', this.indent_left, this, true);
commandContainer.appendChild(button);
}
if (moveRight) {
- var button = main.mk_button('a', '/t/right.gif', main.portal.strings['moveright'],
+ var button = main.mk_button('a', (isrtl?'/t/left.gif':'/t/right.gif'), main.portal.strings['moveright'],
[['class', 'editing_moveright']]);
YAHOO.util.Event.addListener(button, 'click', this.indent_right, this, true);
commandContainer.appendChild(button);
resource_class.prototype.indent_right = function() {
- var spacer = YAHOO.util.Dom.getElementsByClassName('spacer',
+ // for RTL support
+ var isrtl = (document.getElementsByTagName("html")[0].dir=="rtl");
+
+ var spacer = YAHOO.util.Dom.getElementsByClassName('spacer',
'img', this.getEl())[0];
if (!spacer) {
var spacer = document.createElement('img');
'span', this.getEl())[0];
if (!this.indentLeftButton) {
- var button = main.mk_button('a', '/t/left.gif', main.portal.strings['moveleft'],
+ var button = main.mk_button('a', (isrtl?'/t/right.gif':'/t/left.gif'), main.portal.strings['moveleft'],
[['class', 'editing_moveleft']]);
YAHOO.util.Event.addListener(button, 'click', this.indent_left, this, true);
commandContainer.insertBefore(button, this.indentRightButton);
function module_specific_actions($pageurl, $questionid, $cmid, $canuse){
global $CFG;
if ($canuse){
+ // for RTL languages: switch right and left arrows /****/
+ if (right_to_left()) {
+ $movearrow = 'removeright.gif';
+ } else {
+ $movearrow = 'moveleft.gif';
+ }
$straddtoquiz = get_string("addtoquiz", "quiz");
$out = "<a title=\"$straddtoquiz\" href=\"edit.php?".$pageurl->get_query_string()."&addquestion=$questionid&sesskey=".sesskey()."\"><img
- src=\"$CFG->pixpath/t/moveleft.gif\" alt=\"$straddtoquiz\" /></a> ";
+ src=\"$CFG->pixpath/t/$movearrow\" alt=\"$straddtoquiz\" /></a> ";
return $out;
} else {
return '';
echo "<th style=\"white-space:nowrap;\" class=\"header\" scope=\"col\">$strgrade</th>";
echo "<th align=\"center\" style=\"white-space:nowrap;\" class=\"header\" scope=\"col\">$straction</th>";
echo "</tr>\n";
+
+ // for RTL languages: switch right and left arrows /****/
+ if (right_to_left()) {
+ $movearrow = 'moveleft.gif';
+ } else {
+ $movearrow = 'removeright.gif';
+ }
+
foreach ($order as $i => $qnum) {
if ($qnum and empty($questions[$qnum])) {
}
if ($allowdelete && question_has_capability_on($question, 'use', $question->category)) { // remove from quiz, not question delete.
echo "<a title=\"$strremove\" href=\"".$pageurl->out_action(array('delete'=>$count))."\">
- <img src=\"$CFG->pixpath/t/removeright.gif\" class=\"iconsmall\" alt=\"$strremove\" /></a>";
+ <img src=\"$CFG->pixpath/t/$movearrow\" class=\"iconsmall\" alt=\"$strremove\" /></a>";
}
echo "</td></tr>";
text-align: right;
}
+.categorylist .category.number {
+ text-align: left;
+}
+
.calendar-controls .previous, .calendar-controls .current, .calendar-controls .next {
float: right;
}
direction: ltr;
}
+/* on firefox the main layout-table might be pushed to the right by editing buttons **** */
+
+#layout-table {
+ clear: both;
+}
+
+/* admin > appearance > themes > theme settings */
+
+#adminsettings .form-label {
+ float: right;
+ text-align: left;
+}
+
+#adminsettings .form-setting {
+ text-align: right;
+ margin-right: 13em;
+ margin-left: 0px;
+}
+
+#adminsettings .form-description {
+ margin: 0.5em 13em 0em 0pt;
+ text-align: right;
+}
+
#id_lang {
direction: ltr;
}
}
.mod-forum .indent {
+/* in forums, fix top and bottom navigation bars' buttons */
+li form .invisiblefieldset {
+ display: inline;
+}
+
margin-right: 30px;
margin-left: 0px;
}
direction: ltr;
}
+.block_admin_tree .admintree .depth1 {
+ padding-right:16px;
+}
+
+.block_admin_tree .admintree .depth2 {
+ padding-right:32px;
+}
+
+.block_admin_tree .admintree .depth3 {
+ padding-right:48px;
+}
+
+.block_admin_tree .admintree .depth4 {
+ padding-right:64px;
+}
+
.block_admin_tree .admintree {
text-align: right;
}
/* Admin > Security */
#adminsettings label {
- float: right;
text-align: left;
}
#adminsettings select, #adminsettings input {
- float: right;
- margin: 0pt 10pt 0pt 0px;
+ margin: 0pt 5pt 0pt 5pt;
}
#adminsettings .description {
text-align: right;
}
+.invisiblefieldset {
+ display: block;
+}
+
body#mod-quiz-report table#attempts .header {
text-align: right;
}
+#mod-quiz-mod #reviewoptionshdr fieldset.fgroup span {
+ clear: right;
+ float: right;
+}
+
.logtable th {
text-align: right;
}
border-right-style: none;
}
+.form-setting .form-time {
+ direction: ltr;
+ float:right;
+}
+
/* ========================
for tabs support
======================== */
.tabrow0 {
- overflow: auto;
PADDING-BOTTOM: 2.75em;
}
+/* IE6 requires overflow: auto. IE7 requires overflow: hidden.
+ exploit IE's "star html selector bug" to apply to IE6 ONLY */
+.tabrow0 {
+ #overflow: hidden; /* for IE7. to eliminate extra scroll bars . the # hides from firefox */
+ * html overflow: auto; /* for IE6 only **** */
+}
+
.tabrow0 LI {
float: right;
MARGIN: 0px;
width: 130px;
BACKGROUND: url(pix/tab/rtlbg.gif) no-repeat right top;
+ overflow: hidden; /* for IE7. to prevent long titles from 'falling' 3cm down */
}
.tabrow0 A SPAN {
BACKGROUND-IMAGE: none
}
+.tabrow0 .here A:link,
+.tabrow0 .here A:visited {
+ /* has to override styles.css 'position:relative', otherwise the active tab title disappears on IE6/7 */
+ position: static;
+}
.tabrow0 ul a {
PADDING-LEFT: 0px;
}
+div.tabrow1 {
+/* without that, IE will leave a short line floating, when there's ho secondary menu */
+ #right: 0px; /* IE only */
+ #width: 800px; /* IE only */
+}
+
UL.tabrow1 {
right: 0px;
width: 800px;
float: right;
}
+.tabtree {
+ /* give some space below the tabs row (when there's a secondary row) on firefox */
+ margin-bottom:15px;
+
+ /* has to override 'height:100%' in styles_ie6.css, otherwise it causes a huge height in quiz report overview, e.g.: moodle/mod/quiz/report.php?q=14&mode=overview */
+ height: auto !important;
+}
+
.tabtree * {
width: auto;
}
+/* notify-problem line gets covered by secondary tabs line (tabrow1), add some height to the line **** */
+.notifyproblem {
+ line-height: 40px;
+}
+
/* ========================
overrides styles_ie6
======================== */
direction: rtl;
}
-form#adminsettings div.htmlarea {
- clear: right;
+.htmlarea * select {
+ max-width: 100px;
}