Quiz And Survey Master (Formerly Quiz Master Next) - Version 4.6.5

Version Description

(January 9, 2015) = * Fixes timer bug that caused the timer to continue counting down after quiz has been submitted * Fixes theme conflict between QSM and some Bootstrap based themes * Fixes Quizzes/Surveys page table width issue * Fixes but preventing editing of quiz post settings * Minor design changes

Download this release

Release Info

Developer fpcorso
Plugin Icon 128x128 Quiz And Survey Master (Formerly Quiz Master Next)
Version 4.6.5
Comparing to
See all releases

Code changes from version 4.6.4 to 4.6.5

css/qmn_admin.css CHANGED
@@ -6,20 +6,21 @@ Quizzes/Surveys Page
6
  font-size: 16px !important;
7
  }
8
 
 
 
 
 
 
 
9
  .qsm-quiz-page-wrapper {
10
- width: 100%;
11
- float: left;
12
  }
13
 
14
  .qsm-quiz-page-wrapper-with-ads {
15
- width: 85%;
16
- float: left;
17
  }
18
 
19
  .qsm-news-ads {
20
- width: 13%;
21
- float: right;
22
- padding: 1%;
23
  background-color: white;
24
  }
25
 
@@ -28,6 +29,15 @@ Quizzes/Surveys Page
28
  border-bottom: 1px solid black;
29
  }
30
 
 
 
 
 
 
 
 
 
 
31
  .qsm-edit-name {
32
  font-size: 12px !important;
33
  }
@@ -55,6 +65,20 @@ Quizzes/Surveys Page
55
  padding-right: 30px;
56
  }
57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
59
 
60
  /********************
6
  font-size: 16px !important;
7
  }
8
 
9
+ .qsm-quizzes-page-content {
10
+ display: flex;
11
+ flex-direction: column;
12
+ justify-content: space-between;
13
+ }
14
+
15
  .qsm-quiz-page-wrapper {
16
+ flex-grow: 1;
 
17
  }
18
 
19
  .qsm-quiz-page-wrapper-with-ads {
20
+ flex-grow: 1;
 
21
  }
22
 
23
  .qsm-news-ads {
 
 
 
24
  background-color: white;
25
  }
26
 
29
  border-bottom: 1px solid black;
30
  }
31
 
32
+ .qsm-news-ads-widget {
33
+ text-align: center;
34
+ border-top: 2px solid black;
35
+ border-bottom: 5px solid black;
36
+ margin: 10px 0;
37
+ background: #ddd;
38
+ padding: 10px 5px;
39
+ }
40
+
41
  .qsm-edit-name {
42
  font-size: 12px !important;
43
  }
65
  padding-right: 30px;
66
  }
67
 
68
+ @media screen and (min-width: 1200px) {
69
+ .qsm-quizzes-page-content {
70
+ flex-direction: row;
71
+ }
72
+
73
+ .qsm-quiz-page-wrapper-with-ads {
74
+ margin-right: 10px;
75
+ }
76
+
77
+ .qsm-news-ads {
78
+ flex-basis: 15%;
79
+ }
80
+ }
81
+
82
 
83
 
84
  /********************
js/qmn_quiz.js CHANGED
@@ -85,6 +85,7 @@ function qmnValidation( element, quiz_form_id ) {
85
  }
86
 
87
  function qmnFormSubmit( quiz_form_id ) {
 
88
  var container = jQuery( '#' + quiz_form_id ).closest( '.qmn_quiz_container' );
89
  var result = qmnValidation( '#' + quiz_form_id + ' *', quiz_form_id );
90
 
@@ -97,6 +98,7 @@ function qmnFormSubmit( quiz_form_id ) {
97
  jQuery( '.mlw_answer_open_text' ).attr( 'disabled', false );
98
 
99
  clearInterval( qsmTimerInterval );
 
100
 
101
  var data = {
102
  action: 'qmn_process_quiz',
@@ -175,7 +177,7 @@ function qmnActivateTimer( quiz_id ) {
175
  window.amount = minutes * 60;
176
  window.titleText = window.document.title;
177
  jQuery( '#quizForm' + quiz_id + ' .mlw_qmn_timer').html( window.amount );
178
- window.counter = setInterval( qmnTimer, 1000, quiz_id );
179
  }
180
 
181
  function qmnTimer( quiz_id ) {
@@ -202,8 +204,10 @@ function qmnTimer( quiz_id ) {
202
  }
203
 
204
  function qmnEndTimer( quiz_id ) {
205
- window.sessionStorage.setItem('mlw_time_quiz' + qmn_quiz_id, 'completed');
206
- window.sessionStorage.setItem('mlw_started_quiz' + qmn_quiz_id, 'no');
 
 
207
  }
208
 
209
  function qmnInitTimer( quiz_id ) {
85
  }
86
 
87
  function qmnFormSubmit( quiz_form_id ) {
88
+ var quiz_id = +jQuery( '#' + quiz_form_id ).find( '.qmn_quiz_id' ).val();
89
  var container = jQuery( '#' + quiz_form_id ).closest( '.qmn_quiz_container' );
90
  var result = qmnValidation( '#' + quiz_form_id + ' *', quiz_form_id );
91
 
98
  jQuery( '.mlw_answer_open_text' ).attr( 'disabled', false );
99
 
100
  clearInterval( qsmTimerInterval );
101
+ qmnEndTimer( quiz_id );
102
 
103
  var data = {
104
  action: 'qmn_process_quiz',
177
  window.amount = minutes * 60;
178
  window.titleText = window.document.title;
179
  jQuery( '#quizForm' + quiz_id + ' .mlw_qmn_timer').html( window.amount );
180
+ window.qsmCounter = setInterval( qmnTimer, 1000, quiz_id );
181
  }
182
 
183
  function qmnTimer( quiz_id ) {
204
  }
205
 
206
  function qmnEndTimer( quiz_id ) {
207
+ window.sessionStorage.setItem('mlw_time_quiz' + quiz_id, 'completed');
208
+ window.sessionStorage.setItem('mlw_started_quiz' + quiz_id, 'no');
209
+ window.document.title = window.titleText;
210
+ clearInterval( qsmCounter );
211
  }
212
 
213
  function qmnInitTimer( quiz_id ) {
mlw_quizmaster2.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Quiz And Survey Master
4
  * Description: Easily and quickly add quizzes and surveys to your website.
5
- * Version: 4.6.4
6
  * Author: Frank Corso
7
  * Author URI: http://www.quizandsurveymaster.com/
8
  * Plugin URI: http://www.quizandsurveymaster.com/
@@ -10,7 +10,7 @@
10
  * Domain Path: /languages
11
  *
12
  * @author Frank Corso
13
- * @version 4.6.4
14
  */
15
  if ( ! defined( 'ABSPATH' ) ) exit;
16
  /**
@@ -28,7 +28,7 @@ class MLWQuizMasterNext
28
  * @var string
29
  * @since 4.0.0
30
  */
31
- public $version = '4.6.4';
32
 
33
  /**
34
  * QMN Alert Manager Object
@@ -195,7 +195,8 @@ class MLWQuizMasterNext
195
  $cpt_slug = trim(strtolower(str_replace(" ", "-", $settings['cpt_slug'])));
196
  }
197
  $quiz_args = array(
198
- 'show_ui' => false,
 
199
  'show_in_nav_menus' => true,
200
  'labels' => $quiz_labels,
201
  'publicly_queryable' => true,
2
  /**
3
  * Plugin Name: Quiz And Survey Master
4
  * Description: Easily and quickly add quizzes and surveys to your website.
5
+ * Version: 4.6.5
6
  * Author: Frank Corso
7
  * Author URI: http://www.quizandsurveymaster.com/
8
  * Plugin URI: http://www.quizandsurveymaster.com/
10
  * Domain Path: /languages
11
  *
12
  * @author Frank Corso
13
+ * @version 4.6.5
14
  */
15
  if ( ! defined( 'ABSPATH' ) ) exit;
16
  /**
28
  * @var string
29
  * @since 4.0.0
30
  */
31
+ public $version = '4.6.5';
32
 
33
  /**
34
  * QMN Alert Manager Object
195
  $cpt_slug = trim(strtolower(str_replace(" ", "-", $settings['cpt_slug'])));
196
  }
197
  $quiz_args = array(
198
+ 'show_ui' => true,
199
+ 'show_in_menu' => false,
200
  'show_in_nav_menus' => true,
201
  'labels' => $quiz_labels,
202
  'publicly_queryable' => true,
php/about-page.php CHANGED
@@ -60,15 +60,17 @@ function mlw_generate_about_page()
60
  </div>
61
  <div id="mlw_quiz_changelog" class="qmn_tab" style="display: none;">
62
  <h2>Changelog</h2>
63
- <h3><?php echo $mlw_quiz_version; ?> (December 15, 2015)</h3>
64
  <ul class="changelog">
65
  <!--
66
  Examples:
67
  <li class="add"><div class="two">Add</div>Some feature was added</li>
68
  <li class="fixed"><div class="two">Fixed</div>Fixed some bug</li>
69
  -->
70
- <li class="fixed"><div class="two">Fixed</div>* Fixes undefined results notice displayed on admin results for some users</li>
71
- <li class="fixed"><div class="two">Fixed</div>* Fixes bug that was causing the disable radio buttons option to not work in all browsers</li>
 
 
72
  <li class="fixed"><div class="two">Fixed</div>* Minor design changes</li>
73
  </ul>
74
  </div>
60
  </div>
61
  <div id="mlw_quiz_changelog" class="qmn_tab" style="display: none;">
62
  <h2>Changelog</h2>
63
+ <h3><?php echo $mlw_quiz_version; ?> (January 9, 2015)</h3>
64
  <ul class="changelog">
65
  <!--
66
  Examples:
67
  <li class="add"><div class="two">Add</div>Some feature was added</li>
68
  <li class="fixed"><div class="two">Fixed</div>Fixed some bug</li>
69
  -->
70
+ <li class="fixed"><div class="two">Fixed</div>* Fixes timer bug that caused the timer to continue counting down after quiz has been submitted</li>
71
+ <li class="fixed"><div class="two">Fixed</div>* Fixes theme conflict between QSM and some Bootstrap based themes</li>
72
+ <li class="fixed"><div class="two">Fixed</div>* Fixes Quizzes/Surveys page table width issue</li>
73
+ <li class="fixed"><div class="two">Fixed</div>* Fixes but preventing editing of quiz post settings</li>
74
  <li class="fixed"><div class="two">Fixed</div>* Minor design changes</li>
75
  </ul>
76
  </div>
php/class-qmn-quiz-manager.php CHANGED
@@ -1348,7 +1348,7 @@ function mlwDisplayContactInfo($mlw_quiz_options)
1348
  {
1349
  $mlw_contact_class = "class=\"mlwRequiredText\"";
1350
  }
1351
- $mlw_contact_display .= "<span class='mlw_qmn_question'>".htmlspecialchars_decode($mlw_quiz_options->name_field_text, ENT_QUOTES)."</span><br />";
1352
  $mlw_contact_display .= "<input type='text' $mlw_contact_class x-webkit-speech name='mlwUserName' value='".$current_user->display_name."' />";
1353
  $mlw_contact_display .= "<br /><br />";
1354
 
@@ -1360,7 +1360,7 @@ function mlwDisplayContactInfo($mlw_quiz_options)
1360
  {
1361
  $mlw_contact_class = "class=\"mlwRequiredText\"";
1362
  }
1363
- $mlw_contact_display .= "<span class='mlw_qmn_question'>".htmlspecialchars_decode($mlw_quiz_options->business_field_text, ENT_QUOTES)."</span><br />";
1364
  $mlw_contact_display .= "<input type='text' $mlw_contact_class x-webkit-speech name='mlwUserComp' value='' />";
1365
  $mlw_contact_display .= "<br /><br />";
1366
  }
@@ -1371,7 +1371,7 @@ function mlwDisplayContactInfo($mlw_quiz_options)
1371
  {
1372
  $mlw_contact_class = "class=\"mlwEmail mlwRequiredText\"";
1373
  }
1374
- $mlw_contact_display .= "<span class='mlw_qmn_question'>".htmlspecialchars_decode($mlw_quiz_options->email_field_text, ENT_QUOTES)."</span><br />";
1375
  $mlw_contact_display .= "<input type='text' $mlw_contact_class x-webkit-speech name='mlwUserEmail' value='".$current_user->user_email."' />";
1376
  $mlw_contact_display .= "<br /><br />";
1377
  }
@@ -1382,7 +1382,7 @@ function mlwDisplayContactInfo($mlw_quiz_options)
1382
  {
1383
  $mlw_contact_class = "class=\"mlwRequiredText\"";
1384
  }
1385
- $mlw_contact_display .= "<span class='mlw_qmn_question'>".htmlspecialchars_decode($mlw_quiz_options->phone_field_text, ENT_QUOTES)."</span><br />";
1386
  $mlw_contact_display .= "<input type='text' $mlw_contact_class x-webkit-speech name='mlwUserPhone' value='' />";
1387
  $mlw_contact_display .= "<br /><br />";
1388
  }
@@ -1403,7 +1403,7 @@ function mlwDisplayContactInfo($mlw_quiz_options)
1403
  {
1404
  $mlw_contact_class = "class=\"mlwRequiredText\"";
1405
  }
1406
- $mlw_contact_display .= "<span class='mlw_qmn_question'>".htmlspecialchars_decode($mlw_quiz_options->name_field_text, ENT_QUOTES)."</span><br />";
1407
  $mlw_contact_display .= "<input type='text' $mlw_contact_class x-webkit-speech name='mlwUserName' value='' />";
1408
  $mlw_contact_display .= "<br /><br />";
1409
  }
@@ -1414,7 +1414,7 @@ function mlwDisplayContactInfo($mlw_quiz_options)
1414
  {
1415
  $mlw_contact_class = "class=\"mlwRequiredText\"";
1416
  }
1417
- $mlw_contact_display .= "<span class='mlw_qmn_question'>".htmlspecialchars_decode($mlw_quiz_options->business_field_text, ENT_QUOTES)."</span><br />";
1418
  $mlw_contact_display .= "<input type='text' $mlw_contact_class x-webkit-speech name='mlwUserComp' value='' />";
1419
  $mlw_contact_display .= "<br /><br />";
1420
  }
@@ -1425,7 +1425,7 @@ function mlwDisplayContactInfo($mlw_quiz_options)
1425
  {
1426
  $mlw_contact_class = "class=\"mlwEmail mlwRequiredText\"";
1427
  }
1428
- $mlw_contact_display .= "<span class='mlw_qmn_question'>".htmlspecialchars_decode($mlw_quiz_options->email_field_text, ENT_QUOTES)."</span><br />";
1429
  $mlw_contact_display .= "<input type='text' $mlw_contact_class x-webkit-speech name='mlwUserEmail' value='' />";
1430
  $mlw_contact_display .= "<br /><br />";
1431
  }
@@ -1436,7 +1436,7 @@ function mlwDisplayContactInfo($mlw_quiz_options)
1436
  {
1437
  $mlw_contact_class = "class=\"mlwRequiredText\"";
1438
  }
1439
- $mlw_contact_display .= "<span class='mlw_qmn_question'>".htmlspecialchars_decode($mlw_quiz_options->phone_field_text, ENT_QUOTES)."</span><br />";
1440
  $mlw_contact_display .= "<input type='text' $mlw_contact_class x-webkit-speech name='mlwUserPhone' value='' />";
1441
  $mlw_contact_display .= "<br /><br />";
1442
  }
1348
  {
1349
  $mlw_contact_class = "class=\"mlwRequiredText\"";
1350
  }
1351
+ $mlw_contact_display .= "<span class='mlw_qmn_question'>".htmlspecialchars_decode($mlw_quiz_options->name_field_text, ENT_QUOTES)."</span>";
1352
  $mlw_contact_display .= "<input type='text' $mlw_contact_class x-webkit-speech name='mlwUserName' value='".$current_user->display_name."' />";
1353
  $mlw_contact_display .= "<br /><br />";
1354
 
1360
  {
1361
  $mlw_contact_class = "class=\"mlwRequiredText\"";
1362
  }
1363
+ $mlw_contact_display .= "<span class='mlw_qmn_question'>".htmlspecialchars_decode($mlw_quiz_options->business_field_text, ENT_QUOTES)."</span>";
1364
  $mlw_contact_display .= "<input type='text' $mlw_contact_class x-webkit-speech name='mlwUserComp' value='' />";
1365
  $mlw_contact_display .= "<br /><br />";
1366
  }
1371
  {
1372
  $mlw_contact_class = "class=\"mlwEmail mlwRequiredText\"";
1373
  }
1374
+ $mlw_contact_display .= "<span class='mlw_qmn_question'>".htmlspecialchars_decode($mlw_quiz_options->email_field_text, ENT_QUOTES)."</span>";
1375
  $mlw_contact_display .= "<input type='text' $mlw_contact_class x-webkit-speech name='mlwUserEmail' value='".$current_user->user_email."' />";
1376
  $mlw_contact_display .= "<br /><br />";
1377
  }
1382
  {
1383
  $mlw_contact_class = "class=\"mlwRequiredText\"";
1384
  }
1385
+ $mlw_contact_display .= "<span class='mlw_qmn_question'>".htmlspecialchars_decode($mlw_quiz_options->phone_field_text, ENT_QUOTES)."</span>";
1386
  $mlw_contact_display .= "<input type='text' $mlw_contact_class x-webkit-speech name='mlwUserPhone' value='' />";
1387
  $mlw_contact_display .= "<br /><br />";
1388
  }
1403
  {
1404
  $mlw_contact_class = "class=\"mlwRequiredText\"";
1405
  }
1406
+ $mlw_contact_display .= "<span class='mlw_qmn_question'>".htmlspecialchars_decode($mlw_quiz_options->name_field_text, ENT_QUOTES)."</span>";
1407
  $mlw_contact_display .= "<input type='text' $mlw_contact_class x-webkit-speech name='mlwUserName' value='' />";
1408
  $mlw_contact_display .= "<br /><br />";
1409
  }
1414
  {
1415
  $mlw_contact_class = "class=\"mlwRequiredText\"";
1416
  }
1417
+ $mlw_contact_display .= "<span class='mlw_qmn_question'>".htmlspecialchars_decode($mlw_quiz_options->business_field_text, ENT_QUOTES)."</span>";
1418
  $mlw_contact_display .= "<input type='text' $mlw_contact_class x-webkit-speech name='mlwUserComp' value='' />";
1419
  $mlw_contact_display .= "<br /><br />";
1420
  }
1425
  {
1426
  $mlw_contact_class = "class=\"mlwEmail mlwRequiredText\"";
1427
  }
1428
+ $mlw_contact_display .= "<span class='mlw_qmn_question'>".htmlspecialchars_decode($mlw_quiz_options->email_field_text, ENT_QUOTES)."</span>";
1429
  $mlw_contact_display .= "<input type='text' $mlw_contact_class x-webkit-speech name='mlwUserEmail' value='' />";
1430
  $mlw_contact_display .= "<br /><br />";
1431
  }
1436
  {
1437
  $mlw_contact_class = "class=\"mlwRequiredText\"";
1438
  }
1439
+ $mlw_contact_display .= "<span class='mlw_qmn_question'>".htmlspecialchars_decode($mlw_quiz_options->phone_field_text, ENT_QUOTES)."</span>";
1440
  $mlw_contact_display .= "<input type='text' $mlw_contact_class x-webkit-speech name='mlwUserPhone' value='' />";
1441
  $mlw_contact_display .= "<br /><br />";
1442
  }
php/question-types.php CHANGED
@@ -29,7 +29,7 @@ function qmn_multiple_choice_display($id, $question, $answers)
29
  global $mlwQuizMasterNext;
30
  $required = $mlwQuizMasterNext->pluginHelper->get_question_setting($id, 'required');
31
  if ($required == 0) {$mlw_requireClass = "mlwRequiredRadio";} else {$mlw_requireClass = "";}
32
- $question_display .= "<span class='mlw_qmn_question'>".do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES))."</span><br />";
33
  $question_display .= "<div class='qmn_radio_answers $mlw_requireClass'>";
34
  if (is_array($answers))
35
  {
@@ -120,7 +120,7 @@ function qmn_horizontal_multiple_choice_display($id, $question, $answers)
120
  global $mlwQuizMasterNext;
121
  $required = $mlwQuizMasterNext->pluginHelper->get_question_setting($id, 'required');
122
  if ($required == 0) {$mlw_requireClass = "mlwRequiredRadio";} else {$mlw_requireClass = "";}
123
- $question_display .= "<span class='mlw_qmn_question'>".do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES))."</span><br />";
124
  $question_display .= "<div class='qmn_radio_answers $mlw_requireClass'>";
125
  if (is_array($answers))
126
  {
@@ -136,7 +136,6 @@ function qmn_horizontal_multiple_choice_display($id, $question, $answers)
136
  $question_display .= "<input type='radio' style='display: none;' name='question".$id."' id='question".$id."_none' checked='checked' value='No Answer Provided' />";
137
  }
138
  $question_display .= "</div>";
139
- $question_display .= "<br />";
140
  return $question_display;
141
  }
142
 
@@ -208,7 +207,7 @@ function qmn_drop_down_display($id, $question, $answers)
208
  {
209
  $question_display = '';
210
  global $mlwQuizMasterNext;
211
- $question_display .= "<span class='mlw_qmn_question'>".do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES))."</span><br />";
212
  $question_display .= "<select name='question".$id."'>";
213
  if (is_array($answers))
214
  {
@@ -223,7 +222,6 @@ function qmn_drop_down_display($id, $question, $answers)
223
  }
224
  }
225
  $question_display .= "</select>";
226
- $question_display .= "<br />";
227
  return $question_display;
228
  }
229
 
@@ -297,9 +295,8 @@ function qmn_small_open_display($id, $question, $answers)
297
  global $mlwQuizMasterNext;
298
  $required = $mlwQuizMasterNext->pluginHelper->get_question_setting($id, 'required');
299
  if ($required == 0) {$mlw_requireClass = "mlwRequiredText";} else {$mlw_requireClass = "";}
300
- $question_display .= "<span class='mlw_qmn_question'>".do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES))."</span><br />";
301
  $question_display .= "<input type='text' class='mlw_answer_open_text $mlw_requireClass' name='question".$id."' />";
302
- $question_display .= "<br />";
303
  return $question_display;
304
  }
305
 
@@ -368,7 +365,7 @@ function qmn_multiple_response_display($id, $question, $answers)
368
  global $mlwQuizMasterNext;
369
  $required = $mlwQuizMasterNext->pluginHelper->get_question_setting($id, 'required');
370
  if ($required == 0) {$mlw_requireClass = "mlwRequiredCheck";} else {$mlw_requireClass = "";}
371
- $question_display .= "<span class='mlw_qmn_question'>".do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES))."</span><br />";
372
  $question_display .= "<div class='qmn_check_answers $mlw_requireClass'>";
373
  if (is_array($answers))
374
  {
@@ -380,7 +377,6 @@ function qmn_multiple_response_display($id, $question, $answers)
380
  {
381
  $question_display .= "<input type='hidden' name='question".$id."' value='This value does not matter' />";
382
  $question_display .= "<input type='checkbox' name='question".$id."_".$mlw_answer_total."' id='question".$id."_".$mlw_answer_total."' value='".esc_attr($answer[0])."' /> <label for='question".$id."_".$mlw_answer_total."'>".htmlspecialchars_decode($answer[0], ENT_QUOTES)."</label>";
383
- $question_display .= "<br />";
384
  }
385
  }
386
  }
@@ -467,9 +463,8 @@ function qmn_large_open_display($id, $question, $answers)
467
  global $mlwQuizMasterNext;
468
  $required = $mlwQuizMasterNext->pluginHelper->get_question_setting($id, 'required');
469
  if ($required == 0) {$mlw_requireClass = "mlwRequiredText";} else {$mlw_requireClass = "";}
470
- $question_display .= "<span class='mlw_qmn_question'>".do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES))."</span><br />";
471
  $question_display .= "<textarea class='mlw_answer_open_text $mlw_requireClass' cols='70' rows='5' name='question".$id."' /></textarea>";
472
- $question_display .= "<br />";
473
  return $question_display;
474
  }
475
 
@@ -545,7 +540,6 @@ function qmn_text_block_display($id, $question, $answers)
545
  {
546
  $question_display = '';
547
  $question_display .= do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES));
548
- $question_display .= "<br />";
549
  return $question_display;
550
  }
551
 
@@ -582,9 +576,8 @@ function qmn_number_display($id, $question, $answers)
582
  global $mlwQuizMasterNext;
583
  $required = $mlwQuizMasterNext->pluginHelper->get_question_setting($id, 'required');
584
  if ($required == 0) {$mlw_requireClass = "mlwRequiredNumber";} else {$mlw_requireClass = "";}
585
- $question_display .= "<span class='mlw_qmn_question'>".do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES))."</span><br />";
586
  $question_display .= "<input type='number' class='mlw_answer_number $mlw_requireClass' name='question".$id."' />";
587
- $question_display .= "<br />";
588
  return $question_display;
589
  }
590
 
@@ -713,10 +706,9 @@ function qmn_captcha_display($id, $question, $answers)
713
  $question_display .= "<canvas alt='' id='mlw_captcha' class='mlw_captcha' width='100' height='50'></canvas>";
714
  $question_display .= "</div>";
715
  $question_display .= "<span class='mlw_qmn_question'>";
716
- $question_display .= do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES))."</span><br />";
717
  $question_display .= "<input type='text' class='mlw_answer_open_text $mlw_requireClass' id='mlw_captcha_text' name='mlw_user_captcha'/>";
718
  $question_display .= "<input type='hidden' name='mlw_code_captcha' id='mlw_code_captcha' value='none' />";
719
- $question_display .= "<br />";
720
  $question_display .= "<script>
721
  var mlw_code = '';
722
  var mlw_chars = '0123456789ABCDEFGHIJKL!@#$%^&*()MNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
@@ -767,7 +759,7 @@ function qmn_horizontal_multiple_response_display($id, $question, $answers)
767
  global $mlwQuizMasterNext;
768
  $required = $mlwQuizMasterNext->pluginHelper->get_question_setting($id, 'required');
769
  if ($required == 0) {$mlw_requireClass = "mlwRequiredCheck";} else {$mlw_requireClass = "";}
770
- $question_display .= "<span class='mlw_qmn_question'>".do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES))."</span><br />";
771
  $question_display .= "<div class='qmn_check_answers $mlw_requireClass'>";
772
  if (is_array($answers))
773
  {
@@ -887,9 +879,8 @@ function qmn_fill_blank_display($id, $question, $answers)
887
  {
888
  $question = str_replace( "%BLANK%", $input_text, do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES)));
889
  }
890
- $question_display = "<span class='mlw_qmn_question'>$question</span><br />";
891
 
892
- $question_display .= "<br />";
893
  return $question_display;
894
  }
895
 
29
  global $mlwQuizMasterNext;
30
  $required = $mlwQuizMasterNext->pluginHelper->get_question_setting($id, 'required');
31
  if ($required == 0) {$mlw_requireClass = "mlwRequiredRadio";} else {$mlw_requireClass = "";}
32
+ $question_display .= "<span class='mlw_qmn_question'>".do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES))."</span>";
33
  $question_display .= "<div class='qmn_radio_answers $mlw_requireClass'>";
34
  if (is_array($answers))
35
  {
120
  global $mlwQuizMasterNext;
121
  $required = $mlwQuizMasterNext->pluginHelper->get_question_setting($id, 'required');
122
  if ($required == 0) {$mlw_requireClass = "mlwRequiredRadio";} else {$mlw_requireClass = "";}
123
+ $question_display .= "<span class='mlw_qmn_question'>".do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES))."</span>";
124
  $question_display .= "<div class='qmn_radio_answers $mlw_requireClass'>";
125
  if (is_array($answers))
126
  {
136
  $question_display .= "<input type='radio' style='display: none;' name='question".$id."' id='question".$id."_none' checked='checked' value='No Answer Provided' />";
137
  }
138
  $question_display .= "</div>";
 
139
  return $question_display;
140
  }
141
 
207
  {
208
  $question_display = '';
209
  global $mlwQuizMasterNext;
210
+ $question_display .= "<span class='mlw_qmn_question'>".do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES))."</span>";
211
  $question_display .= "<select name='question".$id."'>";
212
  if (is_array($answers))
213
  {
222
  }
223
  }
224
  $question_display .= "</select>";
 
225
  return $question_display;
226
  }
227
 
295
  global $mlwQuizMasterNext;
296
  $required = $mlwQuizMasterNext->pluginHelper->get_question_setting($id, 'required');
297
  if ($required == 0) {$mlw_requireClass = "mlwRequiredText";} else {$mlw_requireClass = "";}
298
+ $question_display .= "<span class='mlw_qmn_question'>".do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES))."</span>";
299
  $question_display .= "<input type='text' class='mlw_answer_open_text $mlw_requireClass' name='question".$id."' />";
 
300
  return $question_display;
301
  }
302
 
365
  global $mlwQuizMasterNext;
366
  $required = $mlwQuizMasterNext->pluginHelper->get_question_setting($id, 'required');
367
  if ($required == 0) {$mlw_requireClass = "mlwRequiredCheck";} else {$mlw_requireClass = "";}
368
+ $question_display .= "<span class='mlw_qmn_question'>".do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES))."</span>";
369
  $question_display .= "<div class='qmn_check_answers $mlw_requireClass'>";
370
  if (is_array($answers))
371
  {
377
  {
378
  $question_display .= "<input type='hidden' name='question".$id."' value='This value does not matter' />";
379
  $question_display .= "<input type='checkbox' name='question".$id."_".$mlw_answer_total."' id='question".$id."_".$mlw_answer_total."' value='".esc_attr($answer[0])."' /> <label for='question".$id."_".$mlw_answer_total."'>".htmlspecialchars_decode($answer[0], ENT_QUOTES)."</label>";
 
380
  }
381
  }
382
  }
463
  global $mlwQuizMasterNext;
464
  $required = $mlwQuizMasterNext->pluginHelper->get_question_setting($id, 'required');
465
  if ($required == 0) {$mlw_requireClass = "mlwRequiredText";} else {$mlw_requireClass = "";}
466
+ $question_display .= "<span class='mlw_qmn_question'>".do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES))."</span>";
467
  $question_display .= "<textarea class='mlw_answer_open_text $mlw_requireClass' cols='70' rows='5' name='question".$id."' /></textarea>";
 
468
  return $question_display;
469
  }
470
 
540
  {
541
  $question_display = '';
542
  $question_display .= do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES));
 
543
  return $question_display;
544
  }
545
 
576
  global $mlwQuizMasterNext;
577
  $required = $mlwQuizMasterNext->pluginHelper->get_question_setting($id, 'required');
578
  if ($required == 0) {$mlw_requireClass = "mlwRequiredNumber";} else {$mlw_requireClass = "";}
579
+ $question_display .= "<span class='mlw_qmn_question'>".do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES))."</span>";
580
  $question_display .= "<input type='number' class='mlw_answer_number $mlw_requireClass' name='question".$id."' />";
 
581
  return $question_display;
582
  }
583
 
706
  $question_display .= "<canvas alt='' id='mlw_captcha' class='mlw_captcha' width='100' height='50'></canvas>";
707
  $question_display .= "</div>";
708
  $question_display .= "<span class='mlw_qmn_question'>";
709
+ $question_display .= do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES))."</span>";
710
  $question_display .= "<input type='text' class='mlw_answer_open_text $mlw_requireClass' id='mlw_captcha_text' name='mlw_user_captcha'/>";
711
  $question_display .= "<input type='hidden' name='mlw_code_captcha' id='mlw_code_captcha' value='none' />";
 
712
  $question_display .= "<script>
713
  var mlw_code = '';
714
  var mlw_chars = '0123456789ABCDEFGHIJKL!@#$%^&*()MNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
759
  global $mlwQuizMasterNext;
760
  $required = $mlwQuizMasterNext->pluginHelper->get_question_setting($id, 'required');
761
  if ($required == 0) {$mlw_requireClass = "mlwRequiredCheck";} else {$mlw_requireClass = "";}
762
+ $question_display .= "<span class='mlw_qmn_question'>".do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES))."</span>";
763
  $question_display .= "<div class='qmn_check_answers $mlw_requireClass'>";
764
  if (is_array($answers))
765
  {
879
  {
880
  $question = str_replace( "%BLANK%", $input_text, do_shortcode(htmlspecialchars_decode($question, ENT_QUOTES)));
881
  }
882
+ $question_display = "<span class='mlw_qmn_question'>$question</span>";
883
 
 
884
  return $question_display;
885
  }
886
 
php/quizzes-page.php CHANGED
@@ -170,151 +170,160 @@ function mlw_generate_quiz_admin()
170
  <div class="wrap qsm-quizes-page">
171
  <h1><?php _e('Quizzes/Surveys', 'quiz-master-next'); ?><a id="new_quiz_button" href="javascript:();" class="add-new-h2"><?php _e('Add New', 'quiz-master-next'); ?></a></h1>
172
  <?php $mlwQuizMasterNext->alertManager->showAlerts(); ?>
173
- <div class="<?php if ( get_option( 'mlw_advert_shows' ) ) { echo 'qsm-quiz-page-wrapper-with-ads'; } else { echo 'qsm-quiz-page-wrapper'; } ?>">
174
- <div class="tablenav top">
175
- <div class="tablenav-pages">
176
- <span class="displaying-num"><?php echo sprintf(_n('One quiz or survey', '%s quizzes or surveys', $mlw_qmn_quiz_count, 'quiz-master-next'), number_format_i18n($mlw_qmn_quiz_count)); ?></span>
177
- <span class="pagination-links">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
178
  <?php
179
- $mlw_qmn_previous_page = 0;
180
- $mlw_current_page = $mlw_qmn_quiz_page+1;
181
- $mlw_total_pages = ceil($mlw_qmn_quiz_count/$mlw_qmn_table_limit);
182
- if( $mlw_qmn_quiz_page > 0 )
183
- {
184
- $mlw_qmn_previous_page = $mlw_qmn_quiz_page - 2;
185
- echo "<a class=\"prev-page\" title=\"Go to the previous page\" href=\"?page=quiz-master-next/mlw_quizmaster2.php&&mlw_quiz_page=$mlw_qmn_previous_page\"><</a>";
186
- echo "<span class=\"paging-input\">$mlw_current_page of $mlw_total_pages</span>";
187
- if( $mlw_qmn_quiz_left > $mlw_qmn_table_limit )
188
- {
189
- echo "<a class=\"next-page\" title=\"Go to the next page\" href=\"?page=quiz-master-next/mlw_quizmaster2.php&&mlw_quiz_page=$mlw_qmn_quiz_page\">></a>";
190
- }
 
 
 
 
 
 
 
 
 
 
191
  else
192
  {
193
- echo "<a class=\"next-page disabled\" title=\"Go to the next page\" href=\"?page=quiz-master-next/mlw_quizmaster2.php&&mlw_quiz_page=$mlw_qmn_quiz_page\">></a>";
194
- }
 
 
 
 
 
 
195
  }
196
- else if( $mlw_qmn_quiz_page == 0 )
197
- {
198
- if( $mlw_qmn_quiz_left > $mlw_qmn_table_limit )
199
- {
200
- echo "<a class=\"prev-page disabled\" title=\"Go to the previous page\" href=\"?page=quiz-master-next/mlw_quizmaster2.php&&mlw_quiz_page=$mlw_qmn_previous_page\"><</a>";
201
- echo "<span class=\"paging-input\">$mlw_current_page of $mlw_total_pages</span>";
202
- echo "<a class=\"next-page\" title=\"Go to the next page\" href=\"?page=quiz-master-next/mlw_quizmaster2.php&&mlw_quiz_page=$mlw_qmn_quiz_page\">></a>";
203
- }
204
- }
205
- else if( $mlw_qmn_quiz_left < $mlw_qmn_table_limit )
206
- {
207
- $mlw_qmn_previous_page = $mlw_qmn_quiz_page - 2;
208
- echo "<a class=\"prev-page\" title=\"Go to the previous page\" href=\"?page=quiz-master-next/mlw_quizmaster2.php&&mlw_quiz_page=$mlw_qmn_previous_page\"><</a>";
209
- echo "<span class=\"paging-input\">$mlw_current_page of $mlw_total_pages</span>";
210
- echo "<a class=\"next-page disabled\" title=\"Go to the next page\" href=\"?page=quiz-master-next/mlw_quizmaster2.php&&mlw_quiz_page=$mlw_qmn_quiz_page\">></a>";
211
- }
212
- ?>
213
- </span>
214
- <br class="clear">
215
- </div>
216
  </div>
217
- <table class="widefat">
218
- <thead>
219
- <tr>
220
- <th>ID</th>
221
- <th><?php _e('Name', 'quiz-master-next'); ?></th>
222
- <th><?php _e('URL', 'quiz-master-next'); ?></th>
223
- <th><?php _e('Shortcode', 'quiz-master-next'); ?></th>
224
- <th><?php _e('Leaderboard Shortcode', 'quiz-master-next'); ?></th>
225
- <th><?php _e('Views', 'quiz-master-next'); ?></th>
226
- <th><?php _e('Taken', 'quiz-master-next'); ?></th>
227
- <th><?php _e('Last Modified', 'quiz-master-next'); ?></th>
228
- </tr>
229
- </thead>
230
- <tbody id="the-list">
231
  <?php
232
- $quotes_list = "";
233
- $display = "";
234
- $alternate = "";
235
- foreach($mlw_quiz_data as $mlw_quiz_info) {
236
- if($alternate) $alternate = "";
237
- else $alternate = " class=\"alternate\"";
238
- $quotes_list .= "<tr{$alternate}>";
239
- $quotes_list .= "<td>" . $mlw_quiz_info->quiz_id . "</td>";
240
- $quotes_list .= "<td class='post-title column-title'>" . esc_html($mlw_quiz_info->quiz_name) ." <a class='qsm-edit-name' onclick=\"editQuizName('".$mlw_quiz_info->quiz_id."','".esc_js($mlw_quiz_info->quiz_name)."')\" href='javascript:();'>(".__('Edit Name', 'quiz-master-next').")</a>";
241
- $quotes_list .= "<div class=\"row-actions\">
242
- <a class='qsm-action-link' href='admin.php?page=mlw_quiz_options&&quiz_id=".$mlw_quiz_info->quiz_id."'>".__('Edit', 'quiz-master-next')."</a>
243
- | <a class='qsm-action-link' href='admin.php?page=mlw_quiz_results&&quiz_id=".$mlw_quiz_info->quiz_id."'>".__('Results', 'quiz-master-next')."</a>
244
- | <a href='javascript:();' class='qsm-action-link' onclick=\"duplicateQuiz('".$mlw_quiz_info->quiz_id."','".esc_js($mlw_quiz_info->quiz_name)."')\">".__('Duplicate', 'quiz-master-next')."</a>
245
- | <a class='qsm-action-link qsm-action-link-delete' onclick=\"deleteQuiz('".$mlw_quiz_info->quiz_id."','".esc_js($mlw_quiz_info->quiz_name)."')\" href='javascript:();'>".__('Delete', 'quiz-master-next')."</a>
246
- </div></td>";
247
- if (isset($post_to_quiz_array[$mlw_quiz_info->quiz_id]))
248
- {
249
- $quotes_list .= "<td>
250
- <a href='".$post_to_quiz_array[$mlw_quiz_info->quiz_id]['link']."'>" . __( 'View Quiz/Survey', 'quiz-master-next' ) . "</a>
251
- <div class=\"row-actions\"><a class='linkOptions' href='post.php?post=".$post_to_quiz_array[$mlw_quiz_info->quiz_id]['id']."&action=edit'>Edit Post Settings</a></a>
252
- </td>";
253
- }
254
- else
255
- {
256
- $quotes_list .= "<td></td>";
257
  }
258
- $quotes_list .= "<td>[mlw_quizmaster quiz=".$mlw_quiz_info->quiz_id."]</td>";
259
- $quotes_list .= "<td>[mlw_quizmaster_leaderboard mlw_quiz=".$mlw_quiz_info->quiz_id."]</td>";
260
- $quotes_list .= "<td>" . $mlw_quiz_info->quiz_views . "</td>";
261
- $quotes_list .= "<td>" . $mlw_quiz_info->quiz_taken ."</td>";
262
- $quotes_list .= "<td>" . $mlw_quiz_info->last_activity ."</td>";
263
- $quotes_list .= "</tr>";
264
  }
265
- echo $quotes_list; ?>
266
- </tbody>
267
- <tfoot>
268
- <tr>
269
- <th>ID</th>
270
- <th><?php _e('Name', 'quiz-master-next'); ?></th>
271
- <th><?php _e('URL', 'quiz-master-next'); ?></th>
272
- <th><?php _e('Shortcode', 'quiz-master-next'); ?></th>
273
- <th><?php _e('Leaderboard Shortcode', 'quiz-master-next'); ?></th>
274
- <th><?php _e('Views', 'quiz-master-next'); ?></th>
275
- <th><?php _e('Taken', 'quiz-master-next'); ?></th>
276
- <th><?php _e('Last Modified', 'quiz-master-next'); ?></th>
277
- </tr>
278
- </tfoot>
279
- </table>
280
- </div>
281
- <?php
282
- if ( get_option('mlw_advert_shows') == 'true' )
283
- {
284
- ?>
285
- <div class="qsm-news-ads">
286
- <h3 class="qsm-news-ads-title">Quiz And Survey Master News</h3>
287
- <?php
288
- $qmn_rss = array();
289
- $qmn_feed = fetch_feed('http://quizandsurveymaster.com/feed');
290
- if (!is_wp_error($qmn_feed)) {
291
- $qmn_feed_items = $qmn_feed->get_items(0, 5);
292
- foreach ($qmn_feed_items as $feed_item) {
293
- $qmn_rss[] = array(
294
- 'link' => $feed_item->get_link(),
295
- 'title' => $feed_item->get_title(),
296
- 'description' => $feed_item->get_description(),
297
- 'date' => $feed_item->get_date( 'F j Y' ),
298
- 'author' => $feed_item->get_author()->get_name()
299
- );
300
  }
301
- }
302
- foreach($qmn_rss as $item)
303
- {
304
  ?>
305
- <h3><a target='_blank' href="<?php echo $item['link']; ?>"><?php echo $item['title']; ?></a></h3>
306
- <p>By <?php echo $item['author']; ?> on <?php echo $item['date']; ?></p>
307
- <div>
308
- <?php echo $item['description']; ?>
309
- </div>
310
- <?php
311
- }
312
- ?>
313
- </div>
314
- <?php
315
- }
316
- ?>
317
- <div style="clear: both;"></div>
318
  <!--Dialogs-->
319
 
320
  <!--New Quiz Dialog-->
170
  <div class="wrap qsm-quizes-page">
171
  <h1><?php _e('Quizzes/Surveys', 'quiz-master-next'); ?><a id="new_quiz_button" href="javascript:();" class="add-new-h2"><?php _e('Add New', 'quiz-master-next'); ?></a></h1>
172
  <?php $mlwQuizMasterNext->alertManager->showAlerts(); ?>
173
+ <div class="qsm-quizzes-page-content">
174
+ <div class="<?php if ( get_option( 'mlw_advert_shows' ) != 'false' ) { echo 'qsm-quiz-page-wrapper-with-ads'; } else { echo 'qsm-quiz-page-wrapper'; } ?>">
175
+ <div class="tablenav top">
176
+ <div class="tablenav-pages">
177
+ <span class="displaying-num"><?php echo sprintf(_n('One quiz or survey', '%s quizzes or surveys', $mlw_qmn_quiz_count, 'quiz-master-next'), number_format_i18n($mlw_qmn_quiz_count)); ?></span>
178
+ <span class="pagination-links">
179
+ <?php
180
+ $mlw_qmn_previous_page = 0;
181
+ $mlw_current_page = $mlw_qmn_quiz_page+1;
182
+ $mlw_total_pages = ceil($mlw_qmn_quiz_count/$mlw_qmn_table_limit);
183
+ if( $mlw_qmn_quiz_page > 0 )
184
+ {
185
+ $mlw_qmn_previous_page = $mlw_qmn_quiz_page - 2;
186
+ echo "<a class=\"prev-page\" title=\"Go to the previous page\" href=\"?page=quiz-master-next/mlw_quizmaster2.php&&mlw_quiz_page=$mlw_qmn_previous_page\"><</a>";
187
+ echo "<span class=\"paging-input\">$mlw_current_page of $mlw_total_pages</span>";
188
+ if( $mlw_qmn_quiz_left > $mlw_qmn_table_limit )
189
+ {
190
+ echo "<a class=\"next-page\" title=\"Go to the next page\" href=\"?page=quiz-master-next/mlw_quizmaster2.php&&mlw_quiz_page=$mlw_qmn_quiz_page\">></a>";
191
+ }
192
+ else
193
+ {
194
+ echo "<a class=\"next-page disabled\" title=\"Go to the next page\" href=\"?page=quiz-master-next/mlw_quizmaster2.php&&mlw_quiz_page=$mlw_qmn_quiz_page\">></a>";
195
+ }
196
+ }
197
+ else if( $mlw_qmn_quiz_page == 0 )
198
+ {
199
+ if( $mlw_qmn_quiz_left > $mlw_qmn_table_limit )
200
+ {
201
+ echo "<a class=\"prev-page disabled\" title=\"Go to the previous page\" href=\"?page=quiz-master-next/mlw_quizmaster2.php&&mlw_quiz_page=$mlw_qmn_previous_page\"><</a>";
202
+ echo "<span class=\"paging-input\">$mlw_current_page of $mlw_total_pages</span>";
203
+ echo "<a class=\"next-page\" title=\"Go to the next page\" href=\"?page=quiz-master-next/mlw_quizmaster2.php&&mlw_quiz_page=$mlw_qmn_quiz_page\">></a>";
204
+ }
205
+ }
206
+ else if( $mlw_qmn_quiz_left < $mlw_qmn_table_limit )
207
+ {
208
+ $mlw_qmn_previous_page = $mlw_qmn_quiz_page - 2;
209
+ echo "<a class=\"prev-page\" title=\"Go to the previous page\" href=\"?page=quiz-master-next/mlw_quizmaster2.php&&mlw_quiz_page=$mlw_qmn_previous_page\"><</a>";
210
+ echo "<span class=\"paging-input\">$mlw_current_page of $mlw_total_pages</span>";
211
+ echo "<a class=\"next-page disabled\" title=\"Go to the next page\" href=\"?page=quiz-master-next/mlw_quizmaster2.php&&mlw_quiz_page=$mlw_qmn_quiz_page\">></a>";
212
+ }
213
+ ?>
214
+ </span>
215
+ <br class="clear">
216
+ </div>
217
+ </div>
218
+ <table class="widefat">
219
+ <thead>
220
+ <tr>
221
+ <th>ID</th>
222
+ <th><?php _e('Name', 'quiz-master-next'); ?></th>
223
+ <th><?php _e('URL', 'quiz-master-next'); ?></th>
224
+ <th><?php _e('Shortcode', 'quiz-master-next'); ?></th>
225
+ <th><?php _e('Leaderboard Shortcode', 'quiz-master-next'); ?></th>
226
+ <th><?php _e('Views', 'quiz-master-next'); ?></th>
227
+ <th><?php _e('Taken', 'quiz-master-next'); ?></th>
228
+ <th><?php _e('Last Modified', 'quiz-master-next'); ?></th>
229
+ </tr>
230
+ </thead>
231
+ <tbody id="the-list">
232
  <?php
233
+ $quotes_list = "";
234
+ $display = "";
235
+ $alternate = "";
236
+ foreach($mlw_quiz_data as $mlw_quiz_info) {
237
+ if($alternate) $alternate = "";
238
+ else $alternate = " class=\"alternate\"";
239
+ $quotes_list .= "<tr{$alternate}>";
240
+ $quotes_list .= "<td>" . $mlw_quiz_info->quiz_id . "</td>";
241
+ $quotes_list .= "<td class='post-title column-title'>" . esc_html($mlw_quiz_info->quiz_name) ." <a class='qsm-edit-name' onclick=\"editQuizName('".$mlw_quiz_info->quiz_id."','".esc_js($mlw_quiz_info->quiz_name)."')\" href='javascript:();'>(".__('Edit Name', 'quiz-master-next').")</a>";
242
+ $quotes_list .= "<div class=\"row-actions\">
243
+ <a class='qsm-action-link' href='admin.php?page=mlw_quiz_options&&quiz_id=".$mlw_quiz_info->quiz_id."'>".__('Edit', 'quiz-master-next')."</a>
244
+ | <a class='qsm-action-link' href='admin.php?page=mlw_quiz_results&&quiz_id=".$mlw_quiz_info->quiz_id."'>".__('Results', 'quiz-master-next')."</a>
245
+ | <a href='javascript:();' class='qsm-action-link' onclick=\"duplicateQuiz('".$mlw_quiz_info->quiz_id."','".esc_js($mlw_quiz_info->quiz_name)."')\">".__('Duplicate', 'quiz-master-next')."</a>
246
+ | <a class='qsm-action-link qsm-action-link-delete' onclick=\"deleteQuiz('".$mlw_quiz_info->quiz_id."','".esc_js($mlw_quiz_info->quiz_name)."')\" href='javascript:();'>".__('Delete', 'quiz-master-next')."</a>
247
+ </div></td>";
248
+ if (isset($post_to_quiz_array[$mlw_quiz_info->quiz_id]))
249
+ {
250
+ $quotes_list .= "<td>
251
+ <a href='".$post_to_quiz_array[$mlw_quiz_info->quiz_id]['link']."'>" . __( 'View Quiz/Survey', 'quiz-master-next' ) . "</a>
252
+ <div class=\"row-actions\"><a class='linkOptions' href='post.php?post=".$post_to_quiz_array[$mlw_quiz_info->quiz_id]['id']."&action=edit'>Edit Post Settings</a></a>
253
+ </td>";
254
+ }
255
  else
256
  {
257
+ $quotes_list .= "<td></td>";
258
+ }
259
+ $quotes_list .= "<td>[mlw_quizmaster quiz=".$mlw_quiz_info->quiz_id."]</td>";
260
+ $quotes_list .= "<td>[mlw_quizmaster_leaderboard mlw_quiz=".$mlw_quiz_info->quiz_id."]</td>";
261
+ $quotes_list .= "<td>" . $mlw_quiz_info->quiz_views . "</td>";
262
+ $quotes_list .= "<td>" . $mlw_quiz_info->quiz_taken ."</td>";
263
+ $quotes_list .= "<td>" . $mlw_quiz_info->last_activity ."</td>";
264
+ $quotes_list .= "</tr>";
265
  }
266
+ echo $quotes_list; ?>
267
+ </tbody>
268
+ <tfoot>
269
+ <tr>
270
+ <th>ID</th>
271
+ <th><?php _e('Name', 'quiz-master-next'); ?></th>
272
+ <th><?php _e('URL', 'quiz-master-next'); ?></th>
273
+ <th><?php _e('Shortcode', 'quiz-master-next'); ?></th>
274
+ <th><?php _e('Leaderboard Shortcode', 'quiz-master-next'); ?></th>
275
+ <th><?php _e('Views', 'quiz-master-next'); ?></th>
276
+ <th><?php _e('Taken', 'quiz-master-next'); ?></th>
277
+ <th><?php _e('Last Modified', 'quiz-master-next'); ?></th>
278
+ </tr>
279
+ </tfoot>
280
+ </table>
 
 
 
 
 
281
  </div>
282
+ <?php
283
+ if ( get_option('mlw_advert_shows') == 'true' )
284
+ {
285
+ ?>
286
+ <div class="qsm-news-ads">
287
+ <h3 class="qsm-news-ads-title">Quiz And Survey Master News</h3>
288
+ <div class="qsm-news-ads-widget">
289
+ <h3>Subscribe to our newsletter!</h3>
290
+ <p>Join our mailing list and recevie a 20% off coupon off your next purchase! Learn about our newest features, receive email-only promotions, receive tips and guides, and more!</p>
291
+ <a target="_blank" href="http://quizandsurveymaster.com/subscribe-to-our-newsletter/?utm_source=qsm-quizzes-page&utm_medium=plugin&utm_campaign=qsm_plugin&utm_content=subscribe-to-newsletter" class="button-primary">Subscribe Now</a>
292
+ </div>
 
 
 
293
  <?php
294
+ $qmn_rss = array();
295
+ $qmn_feed = fetch_feed('http://quizandsurveymaster.com/feed');
296
+ if (!is_wp_error($qmn_feed)) {
297
+ $qmn_feed_items = $qmn_feed->get_items(0, 5);
298
+ foreach ($qmn_feed_items as $feed_item) {
299
+ $qmn_rss[] = array(
300
+ 'link' => $feed_item->get_link(),
301
+ 'title' => $feed_item->get_title(),
302
+ 'description' => $feed_item->get_description(),
303
+ 'date' => $feed_item->get_date( 'F j Y' ),
304
+ 'author' => $feed_item->get_author()->get_name()
305
+ );
 
 
 
 
 
 
 
 
 
 
 
 
 
306
  }
 
 
 
 
 
 
307
  }
308
+ foreach($qmn_rss as $item)
309
+ {
310
+ ?>
311
+ <div class="qsm-news-ads-widget">
312
+ <h3><?php echo $item['title']; ?></h3>
313
+ <p>By <?php echo $item['author']; ?></p>
314
+ <div>
315
+ <?php echo $item['description']; ?>
316
+ </div>
317
+ <a target='_blank' href="<?php echo $item['link']; ?>" class="button-primary">Read More</a>
318
+ </div>
319
+ <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
320
  }
 
 
 
321
  ?>
322
+ </div>
323
+ <?php
324
+ }
325
+ ?>
326
+ </div>
 
 
 
 
 
 
 
 
327
  <!--Dialogs-->
328
 
329
  <!--New Quiz Dialog-->
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: mylocalwebstop, fpcorso, elrath
3
  Donate link: http://mylocalwebstop.com/downloads/donation-service-payment/
4
  Tags: quiz, survey, quizzes, surveys, test, score, exam, questionnaire, email, answer, question, certificate, points, results, math, mailchimp, newsletter, optin
5
  Requires at least: 4.0.1
6
- Tested up to: 4.4
7
- Stable tag: 4.6.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -113,6 +113,13 @@ This is usually a theme conflict. You can [checkout out our common conflict solu
113
 
114
  == Changelog ==
115
 
 
 
 
 
 
 
 
116
  = 4.6.4 (December 15, 2015) =
117
  * Fixes undefined results notice displayed on admin results for some users
118
  * Fixes bug that was causing the disable radio buttons option to not work in all browsers
@@ -130,5 +137,5 @@ This is usually a theme conflict. You can [checkout out our common conflict solu
130
 
131
  == Upgrade Notice ==
132
 
133
- = 4.6.4 =
134
- Upgrade to fix minor bugs
3
  Donate link: http://mylocalwebstop.com/downloads/donation-service-payment/
4
  Tags: quiz, survey, quizzes, surveys, test, score, exam, questionnaire, email, answer, question, certificate, points, results, math, mailchimp, newsletter, optin
5
  Requires at least: 4.0.1
6
+ Tested up to: 4.4.1
7
+ Stable tag: 4.6.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
113
 
114
  == Changelog ==
115
 
116
+ = 4.6.5 (January 9, 2015) =
117
+ * Fixes timer bug that caused the timer to continue counting down after quiz has been submitted
118
+ * Fixes theme conflict between QSM and some Bootstrap based themes
119
+ * Fixes Quizzes/Surveys page table width issue
120
+ * Fixes but preventing editing of quiz post settings
121
+ * Minor design changes
122
+
123
  = 4.6.4 (December 15, 2015) =
124
  * Fixes undefined results notice displayed on admin results for some users
125
  * Fixes bug that was causing the disable radio buttons option to not work in all browsers
137
 
138
  == Upgrade Notice ==
139
 
140
+ = 4.6.5 =
141
+ Upgrade to fix timer bug, theme conflict bug, table width bug, and more minor bugs. Also has some minor design changes to admin pages.
templates/qmn_amethyst.css CHANGED
@@ -83,6 +83,7 @@ label.inline .mlw_qmn_question,
83
  .quiz_section input[type="email"],
84
  .quiz_section input[type="number"] {
85
  width: 70%;
 
86
  display: inline-block;
87
  padding: 10px 8px 10px 8px;
88
  font-size: 14px;
83
  .quiz_section input[type="email"],
84
  .quiz_section input[type="number"] {
85
  width: 70%;
86
+ min-height: 35px;
87
  display: inline-block;
88
  padding: 10px 8px 10px 8px;
89
  font-size: 14px;
templates/qmn_emerald.css CHANGED
@@ -83,6 +83,7 @@ label.inline .mlw_qmn_question,
83
  .quiz_section input[type="email"],
84
  .quiz_section input[type="number"] {
85
  width: 70%;
 
86
  display: inline-block;
87
  padding: 10px 8px 10px 8px;
88
  font-size: 14px;
83
  .quiz_section input[type="email"],
84
  .quiz_section input[type="number"] {
85
  width: 70%;
86
+ min-height: 35px;
87
  display: inline-block;
88
  padding: 10px 8px 10px 8px;
89
  font-size: 14px;
templates/qmn_gray.css CHANGED
@@ -83,6 +83,7 @@ label.inline .mlw_qmn_question,
83
  .quiz_section input[type="email"],
84
  .quiz_section input[type="number"] {
85
  width: 70%;
 
86
  display: inline-block;
87
  padding: 10px 8px 10px 8px;
88
  font-size: 14px;
83
  .quiz_section input[type="email"],
84
  .quiz_section input[type="number"] {
85
  width: 70%;
86
+ min-height: 35px;
87
  display: inline-block;
88
  padding: 10px 8px 10px 8px;
89
  font-size: 14px;
templates/qmn_primary.css CHANGED
@@ -83,6 +83,7 @@ label.inline .mlw_qmn_question,
83
  .quiz_section input[type="email"],
84
  .quiz_section input[type="number"] {
85
  width: 70%;
 
86
  display: inline-block;
87
  padding: 10px 8px 10px 8px;
88
  font-size: 14px;
83
  .quiz_section input[type="email"],
84
  .quiz_section input[type="number"] {
85
  width: 70%;
86
+ min-height: 35px;
87
  display: inline-block;
88
  padding: 10px 8px 10px 8px;
89
  font-size: 14px;
templates/qmn_turquoise.css CHANGED
@@ -83,6 +83,7 @@ label.inline .mlw_qmn_question,
83
  .quiz_section input[type="email"],
84
  .quiz_section input[type="number"] {
85
  width: 70%;
 
86
  display: inline-block;
87
  padding: 10px 8px 10px 8px;
88
  font-size: 14px;
83
  .quiz_section input[type="email"],
84
  .quiz_section input[type="number"] {
85
  width: 70%;
86
+ min-height: 35px;
87
  display: inline-block;
88
  padding: 10px 8px 10px 8px;
89
  font-size: 14px;