Version Description
- Bugfix
Download this release
Release Info
Developer | xeno010 |
Plugin | Wp-Pro-Quiz |
Version | 0.34 |
Comparing to | |
See all releases |
Code changes from version 0.33 to 0.34
- lib/helper/WpProQuiz_Helper_Upgrade.php +1 -0
- lib/view/WpProQuiz_View_FrontQuiz.php +11 -4
- readme.txt +5 -2
- wp-pro-quiz.php +2 -2
lib/helper/WpProQuiz_Helper_Upgrade.php
CHANGED
@@ -30,6 +30,7 @@ class WpProQuiz_Helper_Upgrade {
|
|
30 |
case '0.30':
|
31 |
case '0.31':
|
32 |
case '0.32':
|
|
|
33 |
break;
|
34 |
default:
|
35 |
WpProQuiz_Helper_Upgrade::install();
|
30 |
case '0.30':
|
31 |
case '0.31':
|
32 |
case '0.32':
|
33 |
+
case '0.33':
|
34 |
break;
|
35 |
default:
|
36 |
WpProQuiz_Helper_Upgrade::install();
|
lib/view/WpProQuiz_View_FrontQuiz.php
CHANGED
@@ -21,7 +21,10 @@ class WpProQuiz_View_FrontQuiz extends WpProQuiz_View_View {
|
|
21 |
|
22 |
private $_buttonNames = array();
|
23 |
|
24 |
-
private function
|
|
|
|
|
|
|
25 |
$names = array(
|
26 |
'start_quiz' => __('Start quiz', 'wp-pro-quiz'),
|
27 |
'restart_quiz' => __('Restart quiz', 'wp-pro-quiz'),
|
@@ -33,7 +36,7 @@ class WpProQuiz_View_FrontQuiz extends WpProQuiz_View_View {
|
|
33 |
'prerequisite_msg' => __('You have to finish following quiz, to start this quiz:', 'wp-pro-quiz')
|
34 |
);
|
35 |
|
36 |
-
|
37 |
}
|
38 |
|
39 |
/**
|
@@ -49,7 +52,7 @@ class WpProQuiz_View_FrontQuiz extends WpProQuiz_View_View {
|
|
49 |
}
|
50 |
|
51 |
public function show($preview = false) {
|
52 |
-
$this->
|
53 |
|
54 |
$question_count = count($this->question);
|
55 |
|
@@ -152,6 +155,8 @@ class WpProQuiz_View_FrontQuiz extends WpProQuiz_View_View {
|
|
152 |
}
|
153 |
|
154 |
public function showMaxQuestion() {
|
|
|
|
|
155 |
$question_count = count($this->question);
|
156 |
|
157 |
$result = $this->quiz->getResultText();
|
@@ -213,7 +218,9 @@ class WpProQuiz_View_FrontQuiz extends WpProQuiz_View_View {
|
|
213 |
|
214 |
public function getQuizData() {
|
215 |
ob_start();
|
216 |
-
|
|
|
|
|
217 |
$quizData = $this->showQuizBox(count($this->question));
|
218 |
|
219 |
$quizData['content'] = ob_get_contents();
|
21 |
|
22 |
private $_buttonNames = array();
|
23 |
|
24 |
+
private function loadButtonNames() {
|
25 |
+
if(!empty($this->_buttonNames))
|
26 |
+
return;
|
27 |
+
|
28 |
$names = array(
|
29 |
'start_quiz' => __('Start quiz', 'wp-pro-quiz'),
|
30 |
'restart_quiz' => __('Restart quiz', 'wp-pro-quiz'),
|
36 |
'prerequisite_msg' => __('You have to finish following quiz, to start this quiz:', 'wp-pro-quiz')
|
37 |
);
|
38 |
|
39 |
+
$this->_buttonNames = ((array) apply_filters('wpProQuiz_filter_frontButtonNames', $names, $this)) + $names;
|
40 |
}
|
41 |
|
42 |
/**
|
52 |
}
|
53 |
|
54 |
public function show($preview = false) {
|
55 |
+
$this->loadButtonNames();
|
56 |
|
57 |
$question_count = count($this->question);
|
58 |
|
155 |
}
|
156 |
|
157 |
public function showMaxQuestion() {
|
158 |
+
$this->loadButtonNames();
|
159 |
+
|
160 |
$question_count = count($this->question);
|
161 |
|
162 |
$result = $this->quiz->getResultText();
|
218 |
|
219 |
public function getQuizData() {
|
220 |
ob_start();
|
221 |
+
|
222 |
+
$this->loadButtonNames();
|
223 |
+
|
224 |
$quizData = $this->showQuizBox(count($this->question));
|
225 |
|
226 |
$quizData['content'] = ob_get_contents();
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: quiz, test, answer, question, learning, assessment
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.0
|
7 |
-
Stable tag: 0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -331,4 +331,7 @@ http://www.it-gecko.de/wp-pro-quiz-quiz-plugin-fuer-wordpress.html (scroll to "D
|
|
331 |
= 0.33 =
|
332 |
* Translation for hungarian have been added (Thanks Webstar Csoport Kft.)
|
333 |
* Added "solved" display in statistic-overview
|
334 |
-
* Added option: show custom forms in statistics table
|
|
|
|
|
|
4 |
Tags: quiz, test, answer, question, learning, assessment
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.0
|
7 |
+
Stable tag: 0.34
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
331 |
= 0.33 =
|
332 |
* Translation for hungarian have been added (Thanks Webstar Csoport Kft.)
|
333 |
* Added "solved" display in statistic-overview
|
334 |
+
* Added option: show custom forms in statistics table
|
335 |
+
|
336 |
+
= 0.34 =
|
337 |
+
* Bugfix
|
wp-pro-quiz.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
Plugin Name: WP-Pro-Quiz
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/wp-pro-quiz
|
5 |
Description: A powerful and beautiful quiz plugin for WordPress.
|
6 |
-
Version: 0.
|
7 |
Author: Julius Fischer
|
8 |
Author URI: http://www.it-gecko.de
|
9 |
Text Domain: wp-pro-quiz
|
10 |
Domain Path: /languages
|
11 |
*/
|
12 |
|
13 |
-
define('WPPROQUIZ_VERSION', '0.
|
14 |
|
15 |
define('WPPROQUIZ_DEV', false);
|
16 |
|
3 |
Plugin Name: WP-Pro-Quiz
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/wp-pro-quiz
|
5 |
Description: A powerful and beautiful quiz plugin for WordPress.
|
6 |
+
Version: 0.34
|
7 |
Author: Julius Fischer
|
8 |
Author URI: http://www.it-gecko.de
|
9 |
Text Domain: wp-pro-quiz
|
10 |
Domain Path: /languages
|
11 |
*/
|
12 |
|
13 |
+
define('WPPROQUIZ_VERSION', '0.34');
|
14 |
|
15 |
define('WPPROQUIZ_DEV', false);
|
16 |
|