Skip to content

Commit

Permalink
MDL-16447 move quiz-specific pictures out of theme/standard/pix/
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhunt committed Sep 11, 2008
1 parent 79902e8 commit 5f9c912
Show file tree
Hide file tree
Showing 20 changed files with 13 additions and 19 deletions.
3 changes: 2 additions & 1 deletion mod/quiz/attemptlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -891,9 +891,10 @@ public function __construct(quiz_attempt $attemptobj, $options, $page) {
}

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() {
Expand Down
Binary file removed mod/quiz/pix/de.gif
Binary file not shown.
Binary file removed mod/quiz/pix/ma.gif
Binary file not shown.
Binary file removed mod/quiz/pix/mc.gif
Binary file not shown.
Binary file removed mod/quiz/pix/mu.gif
Binary file not shown.
Binary file removed mod/quiz/pix/nu.gif
Binary file not shown.
Binary file removed mod/quiz/pix/rm.gif
Binary file not shown.
Binary file removed mod/quiz/pix/rs.gif
Binary file not shown.
Binary file removed mod/quiz/pix/sa.gif
Binary file not shown.
Binary file removed mod/quiz/pix/tf.gif
Binary file not shown.
3 changes: 3 additions & 0 deletions mod/quiz/styles.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#quiznavigation .qnbutton.flagged {
background-image: url(<?php echo $CFG->pixpath ?>/i/ne_red_mark.png);
}
File renamed without changes
Binary file removed theme/standard/pix/correctquestionnav.png
Binary file not shown.
Binary file removed theme/standard/pix/flaggedcorrectquestionnav.png
Binary file not shown.
Binary file removed theme/standard/pix/flaggedincorrectquestionnav.png
Binary file not shown.
Binary file removed theme/standard/pix/flaggedpartialquestionnav.png
Binary file not shown.
Binary file removed theme/standard/pix/incorrectquestionnav.png
Binary file not shown.
Binary file removed theme/standard/pix/partialquestionnav.png
Binary file not shown.
24 changes: 7 additions & 17 deletions theme/standard/styles_color.css
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,9 @@ table.flexible .r1 {
color:#999999;
}


#admin-qtypes .disabled {
color: gray;
}
#admin-lang .translator {
border-color: #dddddd;
}
Expand Down Expand Up @@ -1057,7 +1059,7 @@ table.quizreviewsummary td.cell {

#quiznavigation .qnbutton {
color: #00f;
border-color: gray;
border-color: #bbb;
background-color: #ddd;
}
#quiznavigation .qnbutton:hover {
Expand All @@ -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;
}

/***
Expand Down
2 changes: 1 addition & 1 deletion theme/standard/styles_layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5f9c912

Please sign in to comment.