]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16447 move quiz-specific pictures out of theme/standard/pix/
authortjhunt <tjhunt>
Thu, 11 Sep 2008 07:34:51 +0000 (07:34 +0000)
committertjhunt <tjhunt>
Thu, 11 Sep 2008 07:34:51 +0000 (07:34 +0000)
20 files changed:
mod/quiz/attemptlib.php
mod/quiz/pix/de.gif [deleted file]
mod/quiz/pix/ma.gif [deleted file]
mod/quiz/pix/mc.gif [deleted file]
mod/quiz/pix/mu.gif [deleted file]
mod/quiz/pix/nu.gif [deleted file]
mod/quiz/pix/rm.gif [deleted file]
mod/quiz/pix/rs.gif [deleted file]
mod/quiz/pix/sa.gif [deleted file]
mod/quiz/pix/tf.gif [deleted file]
mod/quiz/styles.php [new file with mode: 0644]
pix/i/ne_red_mark.png [moved from theme/standard/pix/flaggedquestionnav.png with 100% similarity]
theme/standard/pix/correctquestionnav.png [deleted file]
theme/standard/pix/flaggedcorrectquestionnav.png [deleted file]
theme/standard/pix/flaggedincorrectquestionnav.png [deleted file]
theme/standard/pix/flaggedpartialquestionnav.png [deleted file]
theme/standard/pix/incorrectquestionnav.png [deleted file]
theme/standard/pix/partialquestionnav.png [deleted file]
theme/standard/styles_color.css
theme/standard/styles_layout.css

index 91ebc960fed2c00f0d2f2588d09ced33303e9ef8..90c913697648d55344137875b57a78a9b4d2c875 100644 (file)
@@ -891,9 +891,10 @@ class quiz_review_nav_panel extends quiz_nav_panel_base {
     }
 
     protected function get_question_button($number, $question) {
+        $strstate = get_string($this->attemptobj->get_question_status($question->id), 'quiz');
         return '<a href="' . $this->attemptobj->review_url($question->id) .
                 '" class="qnbutton ' . $this->get_question_state_classes($question) . '" id="' .
-                $this->get_button_id($question) . '">' . $number . '</a>';
+                $this->get_button_id($question) . '" title="' . $strstate . '">' . $number . '<span class="accesshide">(' . $strstate . '</span></a>';
     }
 
     protected function get_end_bits() {
diff --git a/mod/quiz/pix/de.gif b/mod/quiz/pix/de.gif
deleted file mode 100755 (executable)
index 9c6ec29..0000000
Binary files a/mod/quiz/pix/de.gif and /dev/null differ
diff --git a/mod/quiz/pix/ma.gif b/mod/quiz/pix/ma.gif
deleted file mode 100755 (executable)
index fa1ed50..0000000
Binary files a/mod/quiz/pix/ma.gif and /dev/null differ
diff --git a/mod/quiz/pix/mc.gif b/mod/quiz/pix/mc.gif
deleted file mode 100755 (executable)
index d264c81..0000000
Binary files a/mod/quiz/pix/mc.gif and /dev/null differ
diff --git a/mod/quiz/pix/mu.gif b/mod/quiz/pix/mu.gif
deleted file mode 100755 (executable)
index edaa241..0000000
Binary files a/mod/quiz/pix/mu.gif and /dev/null differ
diff --git a/mod/quiz/pix/nu.gif b/mod/quiz/pix/nu.gif
deleted file mode 100755 (executable)
index 2878042..0000000
Binary files a/mod/quiz/pix/nu.gif and /dev/null differ
diff --git a/mod/quiz/pix/rm.gif b/mod/quiz/pix/rm.gif
deleted file mode 100755 (executable)
index 6854363..0000000
Binary files a/mod/quiz/pix/rm.gif and /dev/null differ
diff --git a/mod/quiz/pix/rs.gif b/mod/quiz/pix/rs.gif
deleted file mode 100755 (executable)
index 46dac35..0000000
Binary files a/mod/quiz/pix/rs.gif and /dev/null differ
diff --git a/mod/quiz/pix/sa.gif b/mod/quiz/pix/sa.gif
deleted file mode 100755 (executable)
index 747eb01..0000000
Binary files a/mod/quiz/pix/sa.gif and /dev/null differ
diff --git a/mod/quiz/pix/tf.gif b/mod/quiz/pix/tf.gif
deleted file mode 100755 (executable)
index 4996433..0000000
Binary files a/mod/quiz/pix/tf.gif and /dev/null differ
diff --git a/mod/quiz/styles.php b/mod/quiz/styles.php
new file mode 100644 (file)
index 0000000..2fde483
--- /dev/null
@@ -0,0 +1,3 @@
+#quiznavigation .qnbutton.flagged {
+  background-image: url(<?php echo $CFG->pixpath ?>/i/ne_red_mark.png);
+}
diff --git a/theme/standard/pix/correctquestionnav.png b/theme/standard/pix/correctquestionnav.png
deleted file mode 100644 (file)
index aef82ba..0000000
Binary files a/theme/standard/pix/correctquestionnav.png and /dev/null differ
diff --git a/theme/standard/pix/flaggedcorrectquestionnav.png b/theme/standard/pix/flaggedcorrectquestionnav.png
deleted file mode 100644 (file)
index 4065573..0000000
Binary files a/theme/standard/pix/flaggedcorrectquestionnav.png and /dev/null differ
diff --git a/theme/standard/pix/flaggedincorrectquestionnav.png b/theme/standard/pix/flaggedincorrectquestionnav.png
deleted file mode 100644 (file)
index a87e838..0000000
Binary files a/theme/standard/pix/flaggedincorrectquestionnav.png and /dev/null differ
diff --git a/theme/standard/pix/flaggedpartialquestionnav.png b/theme/standard/pix/flaggedpartialquestionnav.png
deleted file mode 100644 (file)
index d5d33f1..0000000
Binary files a/theme/standard/pix/flaggedpartialquestionnav.png and /dev/null differ
diff --git a/theme/standard/pix/incorrectquestionnav.png b/theme/standard/pix/incorrectquestionnav.png
deleted file mode 100644 (file)
index 6f2258a..0000000
Binary files a/theme/standard/pix/incorrectquestionnav.png and /dev/null differ
diff --git a/theme/standard/pix/partialquestionnav.png b/theme/standard/pix/partialquestionnav.png
deleted file mode 100644 (file)
index e0041e1..0000000
Binary files a/theme/standard/pix/partialquestionnav.png and /dev/null differ
index cfd786cbda5242dd70556038f39c90f0540524a1..1f7446093cffbb4b9d8e0c259515438fa521cbb6 100644 (file)
@@ -387,7 +387,9 @@ table.flexible .r1 {
   color:#999999;
 }
 
-
+#admin-qtypes .disabled {
+  color: gray;
+}
 #admin-lang .translator {
   border-color: #dddddd;
 }
@@ -1057,7 +1059,7 @@ table.quizreviewsummary td.cell {
 
 #quiznavigation .qnbutton {
   color: #00f;
-  border-color: gray;
+  border-color: #bbb;
   background-color: #ddd;
 }
 #quiznavigation .qnbutton:hover {
@@ -1069,26 +1071,14 @@ table.quizreviewsummary td.cell {
 #quiznavigation .qnbutton.open {
   background-color: white;
 }
-#quiznavigation .qnbutton.flagged {
-  background-image: url(pix/flaggedquestionnav.png);
-}
-#quiznavigation .qnbutton.correct.flagged {
-  background-image: url(pix/flaggedcorrectquestionnav.png);
-}
-#quiznavigation .qnbutton.partiallycorrect.flagged {
-  background-image: url(pix/flaggedpartialquestionnav.png);
-}
-#quiznavigation .qnbutton.incorrect.flagged {
-  background-image: url(pix/flaggedincorrectquestionnav.png);
-}
 #quiznavigation .qnbutton.correct {
-  background-image: url(pix/correctquestionnav.png);
+  background-color: #cfc;
 }
 #quiznavigation .qnbutton.partiallycorrect {
-  background-image: url(pix/partialquestionnav.png);
+  background-color: #ffa;
 }
 #quiznavigation .qnbutton.incorrect {
-  background-image: url(pix/incorrectquestionnav.png);
+  background-color: #fcc;
 }
 
 /***
index 9a424714bf0257c82cdeff67767bda50d0f7612d..7c3d53732f97d95b0cec83266358e52b04cc3e35 100644 (file)
@@ -4199,7 +4199,7 @@ table.quizreviewsummary td.cell {
   overflow: hidden;
   margin: 0.3em 0.3em 0.3em 0;
   padding: 0;
-  border: 1px solid gray;
+  border: 1px solid #bbb;
   background: #eee no-repeat top right;
   text-align: center;
   vertical-align: middle;