Wp-Pro-Quiz - Version 0.15

Version Description

  • Typo corrected
  • Adjustment of admin template
  • Internal changes
  • Capability added
  • Support for BuddyPress achievements added
  • Support for "User Role Editor" etc. added
  • Statistic function expanded
  • Points now can be entered per correct answer instead of correct question
  • Translation for Russian have been added (Thanks Sergei B.)
  • Translation for Swedish have been added (Thanks Martin J.)
Download this release

Release Info

Developer xeno010
Plugin Icon 128x128 Wp-Pro-Quiz
Version 0.15
Comparing to
See all releases

Code changes from version 0.14 to 0.15

Files changed (44) hide show
  1. css/wpProQuiz_front.css +1 -0
  2. css/wpProQuiz_front.min.css +1 -1
  3. js/wpProQuiz_admin.js +150 -9
  4. js/wpProQuiz_admin.min.js +32 -26
  5. js/wpProQuiz_front.js +51 -8
  6. js/wpProQuiz_front.min.js +23 -22
  7. languages/wp-pro-quiz-ar.mo +0 -0
  8. languages/wp-pro-quiz-ar.po +257 -170
  9. languages/wp-pro-quiz-de_DE.mo +0 -0
  10. languages/wp-pro-quiz-de_DE.po +261 -170
  11. languages/wp-pro-quiz-ru_RU.mo +0 -0
  12. languages/wp-pro-quiz-ru_RU.po +1172 -0
  13. languages/wp-pro-quiz-sv_SE.mo +0 -0
  14. languages/wp-pro-quiz-sv_SE.po +1171 -0
  15. lib/controller/WpProQuiz_Controller_Admin.php +4 -77
  16. lib/controller/WpProQuiz_Controller_Front.php +6 -38
  17. lib/controller/WpProQuiz_Controller_GlobalSettings.php +5 -0
  18. lib/controller/WpProQuiz_Controller_ImportExport.php +9 -0
  19. lib/controller/WpProQuiz_Controller_Preview.php +2 -11
  20. lib/controller/WpProQuiz_Controller_Question.php +77 -2
  21. lib/controller/WpProQuiz_Controller_Quiz.php +29 -0
  22. lib/controller/WpProQuiz_Controller_Statistics.php +80 -11
  23. lib/controller/WpProQuiz_Controller_StyleManager.php +1 -3
  24. lib/helper/WpProQuiz_Helper_DbUpgrade.php +26 -1
  25. lib/helper/WpProQuiz_Helper_Export.php +1 -2
  26. lib/helper/WpProQuiz_Helper_Import.php +7 -2
  27. lib/helper/WpProQuiz_Helper_Upgrade.php +54 -0
  28. lib/model/WpProQuiz_Model_GlobalSettings.php +10 -0
  29. lib/model/WpProQuiz_Model_GlobalSettingsMapper.php +7 -1
  30. lib/model/WpProQuiz_Model_Question.php +46 -32
  31. lib/model/WpProQuiz_Model_QuestionMapper.php +11 -4
  32. lib/model/WpProQuiz_Model_Statistic.php +50 -10
  33. lib/model/WpProQuiz_Model_StatisticMapper.php +61 -4
  34. lib/plugin/WpProQuiz_Plugin_BpAchievementsV2.php +58 -0
  35. lib/view/WpProQuiz_View_FrontQuiz.php +29 -2
  36. lib/view/WpProQuiz_View_GobalSettings.php +25 -0
  37. lib/view/WpProQuiz_View_QuestionEdit.php +36 -16
  38. lib/view/WpProQuiz_View_QuestionOverall.php +27 -4
  39. lib/view/WpProQuiz_View_QuizEdit.php +4 -4
  40. lib/view/WpProQuiz_View_QuizOverall.php +12 -0
  41. lib/view/WpProQuiz_View_Statistics.php +84 -7
  42. readme.txt +20 -14
  43. uninstall.php +2 -1
  44. wp-pro-quiz.php +71 -11
css/wpProQuiz_front.css CHANGED
@@ -29,6 +29,7 @@
29
  border: 1px solid #13455B !important;
30
  box-shadow: 1px 1px 1px #333 !important;
31
  text-shadow: none !important;
 
32
  }
33
 
34
  .wpProQuiz_question_page {
29
  border: 1px solid #13455B !important;
30
  box-shadow: 1px 1px 1px #333 !important;
31
  text-shadow: none !important;
32
+ filter: none !important;
33
  }
34
 
35
  .wpProQuiz_question_page {
css/wpProQuiz_front.min.css CHANGED
@@ -1 +1 @@
1
- .wpProQuiz_answerCorrect{background:#6DB46D!important;font-weight:700!important;}.wpProQuiz_answerCorrect label{font-weight:700!important;}.wpProQuiz_answerIncorrect{background:#FF9191!important;font-weight:700!important;}.wpProQuiz_content{margin-top:10px!important;margin-bottom:10px!important;}.wpProQuiz_content h2{margin-bottom:10px!important;}.wpProQuiz_content input[type=button],.wpProQuiz_content input[type=button]:hover{margin:0!important;padding:5px 10px!important;background:#13455B!important;border-radius:11px!important;color:#FFF!important;font-weight:700!important;border:1px solid #13455B!important;box-shadow:1px 1px 1px #333!important;text-shadow:none!important;}.wpProQuiz_question_page{margin-bottom:10px!important;}.wpProQuiz_question_page span{font-weight:700!important;}.wpProQuiz_questionListItem{padding:3px!important;margin-bottom:5px!important;background-image:none!important;margin-left:0!important;list-style:none!important;}.wpProQuiz_questionListItem > table{border-collapse:collapse!important;margin:0!important;padding:0!important;width:100%;}.wpProQuiz_questionListItem:last-child{padding:3px!important;margin-bottom:0!important;}.wpProQuiz_list,.wpProQuiz_listItem,.wpProQuiz_questionList,.wpProQuiz_sortStringList,.wpProQuiz_sortStringList,.wpProQuiz_maxtrixSortCriterion,.wpProQuiz_resultsList{list-style:none!important;padding:0!important;margin:0!important;}.wpProQuiz_questionList{margin-bottom:10px!important;background:#F8FAF5!important;border:1px solid #C3D1A3!important;padding:5px!important;list-style:none!important;}.wpProQuiz_listItem{position:relative!important;}.wpProQuiz_response{background:#F8FAF5!important;border:1px solid #C4C4C4!important;padding:5px!important;margin-bottom:15px!important;box-shadow:1px 1px 2px #AAA!important;}.wpProQuiz_response span{font-weight:700!important;}.wpProQuiz_sort{width:25px!important;}.wpProQuiz_results h3{margin-bottom:10px!important;}.wpProQuiz_sort_correct_answer{font-weight:700!important;margin-right:5px!important;display:none!important;}.wpProQuiz_sortable,.wpProQuiz_sortStringItem{padding:5px!important;border:1px solid #D3D3D3!important;box-shadow:2px 2px 1px #EEE;background-color:#F8FAF5!important;cursor:move;}.wpProQuiz_time_limit .time{font-weight:700!important;margin-top:5px!important;margin-bottom:5px!important;}.wpProQuiz_time_limit .progress{height:10px!important;background-color:blue!important;margin-bottom:5px!important;}.wpProQuiz_time_limit_expired{font-weight:700!important;font-size:15px!important;text-align:center!important;}.wpProQuiz_question_text{margin-bottom:10px!important;}.wpProQuiz_tipp{padding:10px!important;background-color:#DDECFF!important;border:1px dotted #363636!important;border-radius:10px!important;position:absolute!important;bottom:35px!important;left:5px!important;right:5px!important;box-shadow:2px 2px 5px 0 #313131!important;z-index:99999!important;}.wpProQuiz_matrixSortString,.wpProQuiz_matrixSortString > h3{margin-bottom:10px!important;margin-top:0!important;}.wpProQuiz_matrixSortString{background:#F8FAF5!important;border:1px solid #C3D1A3!important;padding:5px!important;}.wpProQuiz_sortStringList{padding:10px!important;}.wpProQuiz_sortStringList > li{float:left!important;margin-left:5px!important;margin-right:5px!important;margin-bottom:5px!important;}.wpProQuiz_sortStringItem{margin:0!important;background-image:none!important;list-style:none!important;}.wpProQuiz_maxtrixSortCriterion{padding:5px!important;}.wpProQuiz_placehold{background-color:#FFFFC2!important;list-style:none!important;background-image:none!important;padding:5px!important;height:30px!important;min-width:50px!important;margin:0!important;}.wpProQuiz_maxtrixSortText{padding:5px!important;}.wpProQuiz_mextrixTr > td{border:1px solid #D1D1D1!important;padding:5px!important;vertical-align:middle!important;}.wpProQuiz_points{font-weight:700!important;text-align:center!important;margin-bottom:20px!important;}.wpProQuiz_cloze input{background:transparent;border:0!important;border-bottom:1px solid!important;height:18px!important;margin:0!important;padding:0 4px!important;color:#000!important;border-radius:0!important;box-shadow:0 0!important;}.wpProQuiz_cloze input:focus{outline:none!important;}.wpProQuiz_questionListItem input,.wpProQuiz_questionListItem label{margin:0!important;font-weight:400;}.wpProQuiz_resultsList > li{background-image:none!important;padding:0!important;margin:0!important;}.wpProQuiz_lock{border:1px dotted #FFC3C3!important;background-color:#FFF7F7!important;}.wpProQuiz_lock p{margin:20px!important;}
1
+ .wpProQuiz_answerCorrect{background:#6DB46D!important;font-weight:700!important;}.wpProQuiz_answerCorrect label{font-weight:700!important;}.wpProQuiz_answerIncorrect{background:#FF9191!important;font-weight:700!important;}.wpProQuiz_content{margin-top:10px!important;margin-bottom:10px!important;}.wpProQuiz_content h2{margin-bottom:10px!important;}.wpProQuiz_content input[type=button],.wpProQuiz_content input[type=button]:hover{margin:0!important;padding:5px 10px!important;background:#13455B!important;border-radius:11px!important;color:#FFF!important;font-weight:700!important;border:1px solid #13455B!important;box-shadow:1px 1px 1px #333!important;text-shadow:none!important;filter:none!important;}.wpProQuiz_question_page{margin-bottom:10px!important;}.wpProQuiz_question_page span{font-weight:700!important;}.wpProQuiz_questionListItem{padding:3px!important;margin-bottom:5px!important;background-image:none!important;margin-left:0!important;list-style:none!important;}.wpProQuiz_questionListItem > table{border-collapse:collapse!important;margin:0!important;padding:0!important;width:100%;}.wpProQuiz_questionListItem:last-child{padding:3px!important;margin-bottom:0!important;}.wpProQuiz_list,.wpProQuiz_listItem,.wpProQuiz_questionList,.wpProQuiz_sortStringList,.wpProQuiz_sortStringList,.wpProQuiz_maxtrixSortCriterion,.wpProQuiz_resultsList{list-style:none!important;padding:0!important;margin:0!important;}.wpProQuiz_questionList{margin-bottom:10px!important;background:#F8FAF5!important;border:1px solid #C3D1A3!important;padding:5px!important;list-style:none!important;}.wpProQuiz_listItem{position:relative!important;}.wpProQuiz_response{background:#F8FAF5!important;border:1px solid #C4C4C4!important;padding:5px!important;margin-bottom:15px!important;box-shadow:1px 1px 2px #AAA!important;}.wpProQuiz_response span{font-weight:700!important;}.wpProQuiz_sort{width:25px!important;}.wpProQuiz_results h3{margin-bottom:10px!important;}.wpProQuiz_sort_correct_answer{font-weight:700!important;margin-right:5px!important;display:none!important;}.wpProQuiz_sortable,.wpProQuiz_sortStringItem{padding:5px!important;border:1px solid #D3D3D3!important;box-shadow:2px 2px 1px #EEE;background-color:#F8FAF5!important;cursor:move;}.wpProQuiz_time_limit .time{font-weight:700!important;margin-top:5px!important;margin-bottom:5px!important;}.wpProQuiz_time_limit .progress{height:10px!important;background-color:blue!important;margin-bottom:5px!important;}.wpProQuiz_time_limit_expired{font-weight:700!important;font-size:15px!important;text-align:center!important;}.wpProQuiz_question_text{margin-bottom:10px!important;}.wpProQuiz_tipp{padding:10px!important;background-color:#DDECFF!important;border:1px dotted #363636!important;border-radius:10px!important;position:absolute!important;bottom:35px!important;left:5px!important;right:5px!important;box-shadow:2px 2px 5px 0 #313131!important;z-index:99999!important;}.wpProQuiz_matrixSortString,.wpProQuiz_matrixSortString > h3{margin-bottom:10px!important;margin-top:0!important;}.wpProQuiz_matrixSortString{background:#F8FAF5!important;border:1px solid #C3D1A3!important;padding:5px!important;}.wpProQuiz_sortStringList{padding:10px!important;}.wpProQuiz_sortStringList > li{float:left!important;margin-left:5px!important;margin-right:5px!important;margin-bottom:5px!important;}.wpProQuiz_sortStringItem{margin:0!important;background-image:none!important;list-style:none!important;}.wpProQuiz_maxtrixSortCriterion{padding:5px!important;}.wpProQuiz_placehold{background-color:#FFFFC2!important;list-style:none!important;background-image:none!important;padding:5px!important;height:30px!important;min-width:50px!important;margin:0!important;}.wpProQuiz_maxtrixSortText{padding:5px!important;}.wpProQuiz_mextrixTr > td{border:1px solid #D1D1D1!important;padding:5px!important;vertical-align:middle!important;}.wpProQuiz_points{font-weight:700!important;text-align:center!important;margin-bottom:20px!important;}.wpProQuiz_cloze input{background:transparent;border:0!important;border-bottom:1px solid!important;height:18px!important;margin:0!important;padding:0 4px!important;color:#000!important;border-radius:0!important;box-shadow:0 0!important;}.wpProQuiz_cloze input:focus{outline:none!important;}.wpProQuiz_questionListItem input,.wpProQuiz_questionListItem label{margin:0!important;font-weight:400;}.wpProQuiz_resultsList > li{background-image:none!important;padding:0!important;margin:0!important;}.wpProQuiz_lock{border:1px dotted #FFC3C3!important;background-color:#FFF7F7!important;}.wpProQuiz_lock p{margin:20px!important;}
js/wpProQuiz_admin.js CHANGED
@@ -122,6 +122,7 @@ jQuery(document).ready(function($) {
122
  $('input[name="answerType"]:checked').click();
123
  $('#wpProQuiz_correctSameText').change();
124
  $('#wpProQuiz_tip').change();
 
125
  };
126
 
127
  var formListener = {
@@ -184,6 +185,14 @@ jQuery(document).ready(function($) {
184
  $('#wpProQuiz_tipBox').hide();
185
  });
186
 
 
 
 
 
 
 
 
 
187
  },
188
 
189
  displaySingle: function(type) {
@@ -700,6 +709,7 @@ jQuery(document).ready(function($) {
700
 
701
  $.fn.wpProQuiz_statistics = function() {
702
  var currectTab = 'wpProQuiz_typeAnonymeUser';
 
703
 
704
  var methode = {
705
  loadStatistics: function(userId) {
@@ -711,7 +721,7 @@ jQuery(document).ready(function($) {
711
  };
712
 
713
  $('#wpProQuiz_loadData').show();
714
- $('#wpProQuiz_statistics_content').hide();
715
 
716
  $.post(
717
  url,
@@ -727,10 +737,15 @@ jQuery(document).ready(function($) {
727
  var points = 0;
728
  var gPoints = 0;
729
 
 
 
 
 
730
  var setItem = function(i, j, r) {
731
- i.find('.wpProQuiz_cCorrect').text(j.cCorrect + ' (' + j.pCorrect + '%)');;
732
- i.find('.wpProQuiz_cIncorrect').text(j.cIncorrect + ' (' + j.pIncorrect + '%)');;
733
  i.find('.wpProQuiz_cTip').text(j.cTip);
 
734
 
735
  if(r == true) {
736
  if(gPoints > 0) {
@@ -741,8 +756,8 @@ jQuery(document).ready(function($) {
741
  $table.find('.wpProQuiz_cResult').text("0%");
742
  }
743
  } else {
744
- points += j.cCorrect * i.find('.wpProQuiz_points').text();
745
- gPoints += (j.cCorrect + j.cIncorrect )* i.find('.wpProQuiz_points').text();
746
  }
747
  };
748
 
@@ -755,7 +770,78 @@ jQuery(document).ready(function($) {
755
  setItem($table.find('tfoot'), json.global, true);
756
 
757
  $('#wpProQuiz_loadData').hide();
758
- $('#wpProQuiz_statistics_content').show();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
759
  },
760
 
761
  changeTab: function(id) {
@@ -766,7 +852,7 @@ jQuery(document).ready(function($) {
766
  } else if( id == 'wpProQuiz_typeAnonymeUser') {
767
  methode.loadStatistics(0);
768
  } else {
769
-
770
  }
771
  },
772
 
@@ -783,6 +869,25 @@ jQuery(document).ready(function($) {
783
  $.post(url, data, function(e) {
784
  methode.changeTab(currectTab);
785
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
786
  }
787
  };
788
 
@@ -812,7 +917,7 @@ jQuery(document).ready(function($) {
812
  methode.changeTab('wpProQuiz_typeRegisteredUser');
813
  });
814
 
815
- $('#wpProQuiz_update').click(function() {
816
  methode.changeTab(currectTab);
817
 
818
  return false;
@@ -830,7 +935,7 @@ jQuery(document).ready(function($) {
830
  return false;
831
  });
832
 
833
- $('#wpProQuiz_resetComplete').click(function() {
834
 
835
  var c =confirm(wpProQuizLocalize.reset_statistics_msg);
836
 
@@ -841,7 +946,43 @@ jQuery(document).ready(function($) {
841
  return false;
842
  });
843
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
844
 
 
 
 
 
 
 
845
 
846
  methode.changeTab('wpProQuiz_typeAnonymeUser');
847
  };
122
  $('input[name="answerType"]:checked').click();
123
  $('#wpProQuiz_correctSameText').change();
124
  $('#wpProQuiz_tip').change();
125
+ $('input[name="pointsPerAnswer"]').change();
126
  };
127
 
128
  var formListener = {
185
  $('#wpProQuiz_tipBox').hide();
186
  });
187
 
188
+ $('input[name="pointsPerAnswer"]').change(function() {
189
+ if(this.checked) {
190
+ $('#wpProQuiz_showPointsBox').show();
191
+ } else {
192
+ $('#wpProQuiz_showPointsBox').hide();
193
+ }
194
+ });
195
+
196
  },
197
 
198
  displaySingle: function(type) {
709
 
710
  $.fn.wpProQuiz_statistics = function() {
711
  var currectTab = 'wpProQuiz_typeAnonymeUser';
712
+ var changePageNav = true;
713
 
714
  var methode = {
715
  loadStatistics: function(userId) {
721
  };
722
 
723
  $('#wpProQuiz_loadData').show();
724
+ $('#wpProQuiz_statistics_content, #wpProQuiz_statistics_overview').hide();
725
 
726
  $.post(
727
  url,
737
  var points = 0;
738
  var gPoints = 0;
739
 
740
+ if(currectTab == 'wpProQuiz_typeOverview') {
741
+ return;
742
+ }
743
+
744
  var setItem = function(i, j, r) {
745
+ i.find('.wpProQuiz_cCorrect').text(j.cCorrect + ' (' + j.pCorrect + '%)');
746
+ i.find('.wpProQuiz_cIncorrect').text(j.cIncorrect + ' (' + j.pIncorrect + '%)');
747
  i.find('.wpProQuiz_cTip').text(j.cTip);
748
+ i.find('.wpProQuiz_cCorrectAnswerPoints').text(j.cCorrectAnswerPoints * i.find('.wpProQuiz_pointsAnswer').text());
749
 
750
  if(r == true) {
751
  if(gPoints > 0) {
756
  $table.find('.wpProQuiz_cResult').text("0%");
757
  }
758
  } else {
759
+ points += (j.cCorrectAnswerPoints * i.find('.wpProQuiz_pointsAnswer').text());
760
+ gPoints += (j.cCorrect + j.cIncorrect ) * i.find('.wpProQuiz_points').text();
761
  }
762
  };
763
 
770
  setItem($table.find('tfoot'), json.global, true);
771
 
772
  $('#wpProQuiz_loadData').hide();
773
+ $('#wpProQuiz_statistics_content, .wpProQuiz_statistics_table').show();
774
+ },
775
+
776
+ loadOverview: function() {
777
+ $('.wpProQuiz_statistics_table, #wpProQuiz_statistics_content, #wpProQuiz_statistics_overview').hide();
778
+ $('#wpProQuiz_loadData').show();
779
+
780
+ var location = window.location.pathname + window.location.search;
781
+ var url = location.replace('admin.php', 'admin-ajax.php') + '&action=load_statistics';
782
+ var data = {
783
+ action: 'wp_pro_quiz_load_statistics',
784
+ overview: true,
785
+ pageLimit: $('#wpProQuiz_pageLimit').val(),
786
+ onlyCompleted: Number($('#wpProQuiz_onlyCompleted').is(':checked')),
787
+ page: $('#wpProQuiz_currentPage').val(),
788
+ generatePageNav: Number(changePageNav)
789
+ };
790
+
791
+ $.post(
792
+ url,
793
+ data,
794
+ function(json) {
795
+ $('#wpProQuiz_statistics_overview_data').empty();
796
+
797
+ if(currectTab != 'wpProQuiz_typeOverview') {
798
+ return;
799
+ }
800
+
801
+ var item = $( '<tr>'
802
+ + '<th><a href="#">---</a></th>'
803
+ + '<th class="wpProQuiz_points">---</th>'
804
+ + '<th class="wpProQuiz_cCorrect" style="color: green;">---</th>'
805
+ + '<th class="wpProQuiz_cIncorrect" style="color: red;">---</th>'
806
+ + '<th class="wpProQuiz_cTip">---</th>'
807
+ + '<th class="wpProQuiz_cResult" style="font-weight: bold;">---</th>'
808
+ + '</tr>'
809
+ );
810
+
811
+ $.each(json.items, function(i, v) {
812
+ var d = item.clone();
813
+
814
+ d.find('a').text(v.userName).data('userId', v.userId).click(function() {
815
+ $('#userSelect').val($(this).data('userId'));
816
+
817
+ $('#wpProQuiz_typeRegisteredUser').click();
818
+
819
+ return false;
820
+ });
821
+
822
+ if(v.completed) {
823
+ d.find('.wpProQuiz_points').text(v.cPoints);
824
+ d.find('.wpProQuiz_cCorrect').text(v.cCorrect + ' (' + v.pCorrect + '%)');
825
+ d.find('.wpProQuiz_cIncorrect').text(v.cIncorrect + ' (' + v.pIncorrect + '%)');
826
+ d.find('.wpProQuiz_cTip').text(v.cTip);
827
+ d.find('.wpProQuiz_cResult').text((Math.round(v.cPoints / v.totalPoints * 100 * 100) / 100) + '%');
828
+ } else {
829
+ d.find('th').removeAttr('style');
830
+ }
831
+
832
+ $('#wpProQuiz_statistics_overview_data').append(d);
833
+ });
834
+
835
+ if(json.page != undefined) {
836
+ methode.setPageNav(json.page);
837
+ changePageNav = false;
838
+ }
839
+
840
+ $('#wpProQuiz_loadData').hide();
841
+ $('#wpProQuiz_statistics_overview').show();
842
+ },
843
+ 'json'
844
+ );
845
  },
846
 
847
  changeTab: function(id) {
852
  } else if( id == 'wpProQuiz_typeAnonymeUser') {
853
  methode.loadStatistics(0);
854
  } else {
855
+ methode.loadOverview();
856
  }
857
  },
858
 
869
  $.post(url, data, function(e) {
870
  methode.changeTab(currectTab);
871
  });
872
+ },
873
+
874
+ setPageNav: function(page) {
875
+ page = Math.ceil(page / $('#wpProQuiz_pageLimit').val());
876
+ $('#wpProQuiz_currentPage').empty();
877
+
878
+ for(var i = 1; i <= page; i++) {
879
+ $(document.createElement('option'))
880
+ .val(i)
881
+ .text(i)
882
+ .appendTo($('#wpProQuiz_currentPage'));
883
+ }
884
+
885
+ $('#wpProQuiz_pageLeft, #wpProQuiz_pageRight').hide();
886
+
887
+ if($('#wpProQuiz_currentPage option').length > 1) {
888
+ $('#wpProQuiz_pageRight').show();
889
+
890
+ }
891
  }
892
  };
893
 
917
  methode.changeTab('wpProQuiz_typeRegisteredUser');
918
  });
919
 
920
+ $('.wpProQuiz_update').click(function() {
921
  methode.changeTab(currectTab);
922
 
923
  return false;
935
  return false;
936
  });
937
 
938
+ $('.wpProQuiz_resetComplete').click(function() {
939
 
940
  var c =confirm(wpProQuizLocalize.reset_statistics_msg);
941
 
946
  return false;
947
  });
948
 
949
+ $('#wpProQuiz_pageLimit, #wpProQuiz_onlyCompleted').change(function() {
950
+ $('#wpProQuiz_currentPage').val(0);
951
+ changePageNav = true;
952
+ methode.changeTab(currectTab);
953
+
954
+ return false;
955
+ });
956
+
957
+ $('#wpProQuiz_currentPage').change(function() {
958
+ $('#wpProQuiz_pageLeft, #wpProQuiz_pageRight').hide();
959
+
960
+ if($('#wpProQuiz_currentPage option').length == 1) {
961
+
962
+ } else if($('#wpProQuiz_currentPage option:first-child:selected').length) {
963
+ $('#wpProQuiz_pageRight').show();
964
+ } else if($('#wpProQuiz_currentPage option:last-child:selected').length) {
965
+ $('#wpProQuiz_pageLeft').show();
966
+ }else {
967
+ $('#wpProQuiz_pageLeft, #wpProQuiz_pageRight').show();
968
+ }
969
+
970
+ methode.changeTab(currectTab);
971
+ });
972
+
973
+ $('#wpProQuiz_pageRight').click(function() {
974
+ $('#wpProQuiz_currentPage option:selected').next().attr('selected', 'selected');
975
+ $('#wpProQuiz_currentPage').change();
976
+
977
+ return false;
978
+ });
979
 
980
+ $('#wpProQuiz_pageLeft').click(function() {
981
+ $('#wpProQuiz_currentPage option:selected').prev().attr('selected', 'selected');
982
+ $('#wpProQuiz_currentPage').change();
983
+
984
+ return false;
985
+ });
986
 
987
  methode.changeTab('wpProQuiz_typeAnonymeUser');
988
  };
js/wpProQuiz_admin.min.js CHANGED
@@ -1,27 +1,33 @@
1
- jQuery(document).ready(function(a){a.fn.wpProQuiz_preview=function(){var c={openPreview:function(d){window.open(a(d).attr("href"),"wpProQuizPreview","width=900,height=900")}};a(".wpProQuiz_prview").click(function(a){c.openPreview(this);a.preventDefault()})};a.fn.wpProQuiz_quizOverall=function(){var c={changeExport:function(d){$input=a(d);$export=a(".wpProQuiz_exportList");$ul=$export.find("ul").first();$export.find("li").remove();a('input[name="exportItems"]').each(function(){$this=a(this);if(this.checked){var b=
2
  $this.parent().parent().find(".wpProQuiz_quizName").text();a("<li>"+b+"</li>").appendTo($ul)}})},startExport:function(){$ele=a('input[name="exportItems"]:checked');if(1>$ele.length)return alert(wpProQuizLocalize.no_selected_quiz),!1;$hidden=a("#exportHidden");$hidden.html("");a('input[name="exportItems"]').each(function(){$this=a(this);this.checked&&a('<input type="hidden" value="'+this.value+'" name="exportIds[]">').appendTo($hidden)});return!0}};a(".wpProQuiz_delete").click(function(a){return!confirm(wpProQuizLocalize.delete_msg)?
3
- (a.preventDefault(),!1):!0});a(".wpProQuiz_import").click(function(d){d.preventDefault();a(".wpProQuiz_importList").toggle("fast");a(".wpProQuiz_exportList").hide();a(".wpProQuiz_exportCheck").hide()});a(".wpProQuiz_export").click(function(d){d.preventDefault();a(".wpProQuiz_exportList").toggle("fast");a(".wpProQuiz_exportCheck").toggle("fast");a(".wpProQuiz_importList").hide()});a('input[name="exportItems"]').change(function(){c.changeExport(this)});a('input[name="exportItemsAll"]').change(function(){var d=
4
- a('input[name="exportItems"]');this.checked?d.attr("checked",!0):d.attr("checked",!1);d.change()});a("#exportStart").click(function(a){c.startExport()||a.preventDefault()})};a.fn.wpProQuiz_questionEdit=function(){var c={setup:function(){a('input[name="answerType"]').click(function(){a(".answer_felder").children().css("display","none");switch(this.value){case "single":c.displaySingle("radio");break;case "multiple":c.displaySingle("checkbox");break;case "free_answer":c.displayFreeAnswer();break;case "sort_answer":c.displaySortAnswer();
5
- break;case "matrix_sort_answer":c.displayMatrixSortAnswer();break;case "cloze_answer":c.displayClozeAnswer()}});a(".addAnswer").click(function(){c.addAnswer(this)});a(".deleteAnswer").click(function(){c.deleteAnswer(this)});a("#saveQuestion").click(function(){return d()});a(".sort_answer ul, .classic_answer ul, .matrix_sort_answer ul").sortable({handle:".wpProQuiz_move",update:function(){c.setValueClassicAnswer()}});a("#wpProQuiz_correctSameText").change(function(){this.checked?a("#wpProQuiz_incorrectMassageBox").hide():
6
- a("#wpProQuiz_incorrectMassageBox").show()});a("#wpProQuiz_tip").change(function(){this.checked?a("#wpProQuiz_tipBox").show():a("#wpProQuiz_tipBox").hide()})},displaySingle:function(b){a(".classic_answer").find('input[name="answerJson[classic_answer][correct][]"]').each(function(){a("<input type="+b+" />").attr({name:this.name,value:this.value,checked:this.checked}).insertBefore(this)}).remove();a(".classic_answer").css("display","block")},displayFreeAnswer:function(){a(".free_answer").css("display",
7
- "block")},displaySortAnswer:function(){a(".sort_answer").css("display","block")},displayMatrixSortAnswer:function(){a(".matrix_sort_answer").show()},displayClozeAnswer:function(){a(".cloze_answer").show()},addAnswer:function(b){a(b).siblings("ul").children().first().clone().css("display","block").appendTo(a(b).siblings("ul"));c.setValueClassicAnswer();a(".deleteAnswer").click(function(){c.deleteAnswer(this)})},deleteAnswer:function(b){a(b).parent("li").remove();c.setValueClassicAnswer()},setValueClassicAnswer:function(){var b=
8
- 0;a('input[name="answerJson[classic_answer][correct][]"]').each(function(){this.value=b++});b=0;a('input[name="answerJson[answer_matrix_sort][sort_string_html][]"]').each(function(){this.value=b++});b=0;a('input[name="answerJson[answer_matrix_sort][answer_html][]"]').each(function(){this.value=b++})}},d=function(){var d="",c=a('input[name="answerType"]:checked'),f=a('input[name="points"]'),d=void 0!=tinymce.editors.question&&!tinymce.editors.question.isHidden()?tinymce.editors.question.getContent():
9
- a('textarea[name="question"]').val();if(isNaN(f.val())||1>f.val())return alert(wpProQuizLocalize.no_nummber_points),f.focus(),!1;if(b(d))return alert(wpProQuizLocalize.no_question_msg),!1;if("single"==c.val()||"multiple"==c.val()){var e=!0;if(1>a('input[name="answerJson[classic_answer][correct][]"]:checked').each(function(){e=""!=a.trim(a(this).parent().siblings("textarea").val())?e&1:!1}).size())return alert(wpProQuizLocalize.no_correct_msg),!1;if(!e)return alert(wpProQuizLocalize.no_answer_msg),
10
- !1}else if("sort_answer"==c.val()){if(e=!1,a('textarea[name="answerJson[answer_sort][answer][]"]').each(function(){e=b(a(this).val())?e|0:!0}),!e)return alert(wpProQuizLocalize.no_answer_msg),!1}else if("matrix_sort_answer"==c.val()){if(e=!1,a('textarea[name="answerJson[answer_matrix_sort][answer][]"]').each(function(){if(b(a(this).val()))e|=0;else{var d=a(this).parent().parent().find('textarea[name="answerJson[answer_matrix_sort][sort_string][]"]');e=b(d.val())?e|0:!0}}),!e)return alert(wpProQuizLocalize.no_answer_msg),
11
- !1}else if("cloze_answer"==c.val()){if(d="",d=void 0!=tinymce.editors.cloze&&!tinymce.editors.cloze.isHidden()?tinymce.editors.cloze.getContent():a('textarea[name="answerJson[answer_cloze][text]"]').val(),b(d))return alert(wpProQuizLocalize.no_answer_msg),!1}else if("free_answer"==c.val()&&(d=a('textarea[name="answerJson[free_answer][correct]"]').val(),b(d)))return alert(wpProQuizLocalize.no_answer_msg),!1;return!0},b=function(b){b=a.trim(b);return!b||0===b.length};c.setup();1>a('input[name="answerType"][checked="checked"]').size()&&
12
- a('input[name="answerType"][value="single"]').attr({checked:"checked"});a('input[name="answerType"]:checked').click();a("#wpProQuiz_correctSameText").change();a("#wpProQuiz_tip").change()};a.fn.wpProQuiz_questionOverall=function(){var c={saveSort:function(){var d={action:"wp_pro_quiz_update_sort",sort:c.parseSortArray()},b=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=save_sort";a.post(b,d,function(){a("#sortMsg").show(400).delay(1E3).hide(400)})},
13
- parseSortArray:function(){var d=[];a("tbody tr").each(function(){d.push(this.id.replace("wpProQuiz_questionId_",""))});return d},sortUpdate:function(){a(".wpProQuiz_questionOverall tbody").children().each(function(){$t=a(this).children().first().text(a(this).index()+1)})},loadQuestionCopy:function(){var d=a("#questionCopySelect"),b=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=load_question";d.hide();d.empty();a("#loadDataImg").show();a.post(b,{action:"wp_pro_quiz_load_question",
14
- excludeId:1},function(b){a.each(b,function(b,c){var e=a(document.createElement("optgroup"));e.attr("label",c.name);a.each(c.question,function(b,d){a(document.createElement("option")).val(d.id).text(d.name).appendTo(e)});d.append(e)});a("#loadDataImg").hide();d.show()},"json")}};a(".wp-list-table tbody").sortable({handle:".wpProQuiz_move",update:c.sortUpdate});a(".wpProQuiz_delete").click(function(a){return!confirm(wpProQuizLocalize.delete_msg)?(a.preventDefault(),!1):!0});a("#wpProQuiz_saveSort").click(function(a){a.preventDefault();
15
- c.saveSort()});a("#wpProQuiz_questionCopy").click(function(d){var b=a(".wpProQuiz_questionCopy");b.is(":visible")?b.hide():(b.show(),c.loadQuestionCopy());d.preventDefault()})};a.fn.wpProQuiz_quizEdit=function(){var c={addResult:function(){a("#resultList").children().each(function(){if("none"==a(this).css("display")){var b=a(this),d=b.find('textarea[name="resultTextGrade[text][]"]'),c=d.attr("id"),f=!0;b.find('input[name="resultTextGrade[prozent][]"]').val("0");b.find('input[name="resultTextGrade[activ][]"]').val("1").keyup();
16
- void 0!=tinymce.editors[c]&&!tinymce.editors[c].isHidden()&&(f=!1);void 0!=switchEditors&&!f&&(switchEditors.go(c,"toggle"),switchEditors.go(c,"toggle"));void 0!=tinymce.editors[c]?tinymce.editors[c].setContent(""):d.val("");void 0!=tinymce.editors[c]&&!f&&tinyMCE.execCommand("mceRemoveControl",!1,c);b.parent().children(":visible").last().after(b);void 0!=tinymce.editors[c]&&!f&&tinyMCE.execCommand("mceAddControl",!1,c);a(this).show();void 0!=switchEditors&&!f&&switchEditors.go(c,"toggle");return!1}})},
17
- deleteResult:function(b){a(b).parent().parent().hide();a(b).siblings('input[name="resultTextGrade[activ][]"]').val("0")},changeResult:function(b){b=a(b);if(c.validResultInput(b.val()))return b.siblings(".resultProzent").text(b.val()),b.removeAttr("style"),!0;b.css("background-color","#FF9696");return!1},validResultInput:function(a){if(d(a))return!1;a=a.replace(/\,/,".");return!isNaN(a)&&100>=Number(a)&&0<=Number(a)?null!=a.match(/\./)?3>a.split(".")[1].length:!0:!1},validInput:function(){if(d(a("#wpProQuiz_title").val()))return alert(wpProQuizLocalize.no_title_msg),
18
- !1;var b="",b=void 0!=tinymce.editors.text&&!tinymce.editors.text.isHidden()?tinymce.editors.text.getContent():a('textarea[name="text"]').val();if(d(b))return alert(wpProQuizLocalize.no_quiz_start_msg),!1;if(a("#wpProQuiz_resultGradeEnabled:checked").length){var g=!0;a("#resultList").children().each(function(){if(a(this).is(":visible")&&!c.validResultInput(a(this).find('input[name="resultTextGrade[prozent][]"]').val()))return g=!1});if(!g)return alert(wpProQuizLocalize.fail_grade_result),!1}return!0},
19
- resetLock:function(){var b=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php"),b=b.replace("action=edit","action=reset_lock");a.post(b,{action:"wp_pro_quiz_reset_lock"},function(){a("#resetLockMsg").show("fast").delay(2E3).hide("fast")})}},d=function(b){b=a.trim(b);return!b||0===b.length};a("#statistics_on").change(function(){this.checked?a("#statistics_ip_lock_tr").show():a("#statistics_ip_lock_tr").hide()});a(".addResult").click(function(){c.addResult()});a(".deleteResult").click(function(){c.deleteResult(this)});
20
- a('input[name="resultTextGrade[prozent][]"]').keyup(function(){c.changeResult(this)}).keydown(function(a){13==a.which&&a.preventDefault()});a("#wpProQuiz_resultGradeEnabled").change(function(){this.checked?(a("#resultGrade").show(),a("#resultNormal").hide()):(a("#resultGrade").hide(),a("#resultNormal").show())});a("#wpProQuiz_save").click(function(a){c.validInput()||a.preventDefault()});a('input[name="quizRunOnce"]').change(function(){this.checked?(a("#wpProQuiz_quiz_run_once_type").show(),a('input[name="quizRunOnceType"]:checked').change()):
21
- a("#wpProQuiz_quiz_run_once_type").hide()});a('input[name="quizRunOnceType"]').change(function(){this.checked&&("1"==this.value||"3"==this.value)?a("#wpProQuiz_quiz_run_once_cookie").show():a("#wpProQuiz_quiz_run_once_cookie").hide()});a('input[name="resetQuizLock"]').click(function(){c.resetLock();return!1});a(".wpProQuiz_demoBox a").mouseover(function(){a(this).next().show()}).mouseout(function(){a(this).next().hide()}).click(function(){return!1});a("#statistics_on").change();a("#wpProQuiz_resultGradeEnabled").change();
22
- a('input[name="quizRunOnce"]').change();a('input[name="quizRunOnceType"]:checked').change()};a.fn.wpProQuiz_statistics=function(){var c="wpProQuiz_typeAnonymeUser",d={loadStatistics:function(b){var c=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=load_statistics",b={action:"wp_pro_quiz_load_statistics",userId:b};a("#wpProQuiz_loadData").show();a("#wpProQuiz_statistics_content").hide();a.post(c,b,d.setStatistics,"json")},setStatistics:function(b){var c=
23
- a(".wpProQuiz_statistics_table"),d=c.find("tbody"),f=0,e=0,h=function(a,b,d){a.find(".wpProQuiz_cCorrect").text(b.cCorrect+" ("+b.pCorrect+"%)");a.find(".wpProQuiz_cIncorrect").text(b.cIncorrect+" ("+b.pIncorrect+"%)");a.find(".wpProQuiz_cTip").text(b.cTip);!0==d?0<e?c.find(".wpProQuiz_cResult").text(Math.round(1E4*(f/e))/100+"%"):c.find(".wpProQuiz_cResult").text("0%"):(f+=b.cCorrect*a.find(".wpProQuiz_points").text(),e+=(b.cCorrect+b.cIncorrect)*a.find(".wpProQuiz_points").text())};h(c,b.clear,
24
- !1);a.each(b.items,function(a,b){h(d.find("#wpProQuiz_tr_"+b.id),b,!1)});h(c.find("tfoot"),b.global,!0);a("#wpProQuiz_loadData").hide();a("#wpProQuiz_statistics_content").show()},changeTab:function(b){c=b;"wpProQuiz_typeRegisteredUser"==b?d.loadStatistics(a("#userSelect").val()):"wpProQuiz_typeAnonymeUser"==b&&d.loadStatistics(0)},resetStatistic:function(b){var g="wpProQuiz_typeRegisteredUser"==c?a("#userSelect").val():0,i=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+
25
- "&action=reset";a.post(i,{action:"wp_pro_quiz_statistics",userId:g,complete:b},function(){d.changeTab(c)})}};a(".wpProQuiz_tab").click(function(){var b=a(this);if(b.hasClass("button-primary"))return!1;"wpProQuiz_typeRegisteredUser"==b.attr("id")?a("#wpProQuiz_userBox").show():a("#wpProQuiz_userBox").hide();a(".wpProQuiz_tab").removeClass("button-primary").addClass("button-secondary");b.removeClass("button-secondary").addClass("button-primary");d.changeTab(b.attr("id"));return!1});a("#userSelect").change(function(){d.changeTab("wpProQuiz_typeRegisteredUser")});
26
- a("#wpProQuiz_update").click(function(){d.changeTab(c);return!1});a("#wpProQuiz_reset").click(function(){confirm(wpProQuizLocalize.reset_statistics_msg)&&d.resetStatistic(!1);return!1});a("#wpProQuiz_resetComplete").click(function(){confirm(wpProQuizLocalize.reset_statistics_msg)&&d.resetStatistic(!0);return!1});d.changeTab("wpProQuiz_typeAnonymeUser")};a(".wpProQuiz_quizOverall").length&&a(".wpProQuiz_quizOverall").wpProQuiz_preview();a(".wpProQuiz_quizOverall").length&&a(".wpProQuiz_quizOverall").wpProQuiz_quizOverall();
27
- a(".wpProQuiz_quizEdit").length&&a(".wpProQuiz_quizEdit").wpProQuiz_quizEdit();a(".wpProQuiz_questionEdit").length&&a(".wpProQuiz_questionEdit").wpProQuiz_questionEdit();a(".wpProQuiz_questionOverall").length&&a(".wpProQuiz_questionOverall").wpProQuiz_questionOverall();a(".wpProQuiz_statistics").length&&a(".wpProQuiz_statistics").wpProQuiz_statistics()});
 
 
 
 
 
 
1
+ jQuery(document).ready(function(a){a.fn.wpProQuiz_preview=function(){var c={openPreview:function(e){window.open(a(e).attr("href"),"wpProQuizPreview","width=900,height=900")}};a(".wpProQuiz_prview").click(function(a){c.openPreview(this);a.preventDefault()})};a.fn.wpProQuiz_quizOverall=function(){var c={changeExport:function(e){$input=a(e);$export=a(".wpProQuiz_exportList");$ul=$export.find("ul").first();$export.find("li").remove();a('input[name="exportItems"]').each(function(){$this=a(this);if(this.checked){var b=
2
  $this.parent().parent().find(".wpProQuiz_quizName").text();a("<li>"+b+"</li>").appendTo($ul)}})},startExport:function(){$ele=a('input[name="exportItems"]:checked');if(1>$ele.length)return alert(wpProQuizLocalize.no_selected_quiz),!1;$hidden=a("#exportHidden");$hidden.html("");a('input[name="exportItems"]').each(function(){$this=a(this);this.checked&&a('<input type="hidden" value="'+this.value+'" name="exportIds[]">').appendTo($hidden)});return!0}};a(".wpProQuiz_delete").click(function(a){return!confirm(wpProQuizLocalize.delete_msg)?
3
+ (a.preventDefault(),!1):!0});a(".wpProQuiz_import").click(function(c){c.preventDefault();a(".wpProQuiz_importList").toggle("fast");a(".wpProQuiz_exportList").hide();a(".wpProQuiz_exportCheck").hide()});a(".wpProQuiz_export").click(function(c){c.preventDefault();a(".wpProQuiz_exportList").toggle("fast");a(".wpProQuiz_exportCheck").toggle("fast");a(".wpProQuiz_importList").hide()});a('input[name="exportItems"]').change(function(){c.changeExport(this)});a('input[name="exportItemsAll"]').change(function(){var c=
4
+ a('input[name="exportItems"]');this.checked?c.attr("checked",!0):c.attr("checked",!1);c.change()});a("#exportStart").click(function(a){c.startExport()||a.preventDefault()})};a.fn.wpProQuiz_questionEdit=function(){var c={setup:function(){a('input[name="answerType"]').click(function(){a(".answer_felder").children().css("display","none");switch(this.value){case "single":c.displaySingle("radio");break;case "multiple":c.displaySingle("checkbox");break;case "free_answer":c.displayFreeAnswer();break;case "sort_answer":c.displaySortAnswer();
5
+ break;case "matrix_sort_answer":c.displayMatrixSortAnswer();break;case "cloze_answer":c.displayClozeAnswer()}});a(".addAnswer").click(function(){c.addAnswer(this)});a(".deleteAnswer").click(function(){c.deleteAnswer(this)});a("#saveQuestion").click(function(){return e()});a(".sort_answer ul, .classic_answer ul, .matrix_sort_answer ul").sortable({handle:".wpProQuiz_move",update:function(){c.setValueClassicAnswer()}});a("#wpProQuiz_correctSameText").change(function(){this.checked?a("#wpProQuiz_incorrectMassageBox").hide():
6
+ a("#wpProQuiz_incorrectMassageBox").show()});a("#wpProQuiz_tip").change(function(){this.checked?a("#wpProQuiz_tipBox").show():a("#wpProQuiz_tipBox").hide()});a('input[name="pointsPerAnswer"]').change(function(){this.checked?a("#wpProQuiz_showPointsBox").show():a("#wpProQuiz_showPointsBox").hide()})},displaySingle:function(b){a(".classic_answer").find('input[name="answerJson[classic_answer][correct][]"]').each(function(){a("<input type="+b+" />").attr({name:this.name,value:this.value,checked:this.checked}).insertBefore(this)}).remove();
7
+ a(".classic_answer").css("display","block")},displayFreeAnswer:function(){a(".free_answer").css("display","block")},displaySortAnswer:function(){a(".sort_answer").css("display","block")},displayMatrixSortAnswer:function(){a(".matrix_sort_answer").show()},displayClozeAnswer:function(){a(".cloze_answer").show()},addAnswer:function(b){a(b).siblings("ul").children().first().clone().css("display","block").appendTo(a(b).siblings("ul"));c.setValueClassicAnswer();a(".deleteAnswer").click(function(){c.deleteAnswer(this)})},
8
+ deleteAnswer:function(b){a(b).parent("li").remove();c.setValueClassicAnswer()},setValueClassicAnswer:function(){var b=0;a('input[name="answerJson[classic_answer][correct][]"]').each(function(){this.value=b++});b=0;a('input[name="answerJson[answer_matrix_sort][sort_string_html][]"]').each(function(){this.value=b++});b=0;a('input[name="answerJson[answer_matrix_sort][answer_html][]"]').each(function(){this.value=b++})}},e=function(){var c="",d=a('input[name="answerType"]:checked'),e=a('input[name="points"]'),
9
+ c=void 0!=tinymce.editors.question&&!tinymce.editors.question.isHidden()?tinymce.editors.question.getContent():a('textarea[name="question"]').val();if(isNaN(e.val())||1>e.val())return alert(wpProQuizLocalize.no_nummber_points),e.focus(),!1;if(b(c))return alert(wpProQuizLocalize.no_question_msg),!1;if("single"==d.val()||"multiple"==d.val()){var f=!0;if(1>a('input[name="answerJson[classic_answer][correct][]"]:checked').each(function(){f=""!=a.trim(a(this).parent().siblings("textarea").val())?f&1:!1}).size())return alert(wpProQuizLocalize.no_correct_msg),
10
+ !1;if(!f)return alert(wpProQuizLocalize.no_answer_msg),!1}else if("sort_answer"==d.val()){if(f=!1,a('textarea[name="answerJson[answer_sort][answer][]"]').each(function(){f=b(a(this).val())?f|0:!0}),!f)return alert(wpProQuizLocalize.no_answer_msg),!1}else if("matrix_sort_answer"==d.val()){if(f=!1,a('textarea[name="answerJson[answer_matrix_sort][answer][]"]').each(function(){if(b(a(this).val()))f|=0;else{var c=a(this).parent().parent().find('textarea[name="answerJson[answer_matrix_sort][sort_string][]"]');
11
+ f=b(c.val())?f|0:!0}}),!f)return alert(wpProQuizLocalize.no_answer_msg),!1}else if("cloze_answer"==d.val()){if(c="",c=void 0!=tinymce.editors.cloze&&!tinymce.editors.cloze.isHidden()?tinymce.editors.cloze.getContent():a('textarea[name="answerJson[answer_cloze][text]"]').val(),b(c))return alert(wpProQuizLocalize.no_answer_msg),!1}else if("free_answer"==d.val()&&(c=a('textarea[name="answerJson[free_answer][correct]"]').val(),b(c)))return alert(wpProQuizLocalize.no_answer_msg),!1;return!0},b=function(b){b=
12
+ a.trim(b);return!b||0===b.length};c.setup();1>a('input[name="answerType"][checked="checked"]').size()&&a('input[name="answerType"][value="single"]').attr({checked:"checked"});a('input[name="answerType"]:checked').click();a("#wpProQuiz_correctSameText").change();a("#wpProQuiz_tip").change();a('input[name="pointsPerAnswer"]').change()};a.fn.wpProQuiz_questionOverall=function(){var c={saveSort:function(){var e={action:"wp_pro_quiz_update_sort",sort:c.parseSortArray()},b=(window.location.pathname+window.location.search).replace("admin.php",
13
+ "admin-ajax.php")+"&action=save_sort";a.post(b,e,function(){a("#sortMsg").show(400).delay(1E3).hide(400)})},parseSortArray:function(){var c=[];a("tbody tr").each(function(){c.push(this.id.replace("wpProQuiz_questionId_",""))});return c},sortUpdate:function(){a(".wpProQuiz_questionOverall tbody").children().each(function(){$t=a(this).children().first().text(a(this).index()+1)})},loadQuestionCopy:function(){var c=a("#questionCopySelect"),b=(window.location.pathname+window.location.search).replace("admin.php",
14
+ "admin-ajax.php")+"&action=load_question";c.hide();c.empty();a("#loadDataImg").show();a.post(b,{action:"wp_pro_quiz_load_question",excludeId:1},function(b){a.each(b,function(b,g){var f=a(document.createElement("optgroup"));f.attr("label",g.name);a.each(g.question,function(b,c){a(document.createElement("option")).val(c.id).text(c.name).appendTo(f)});c.append(f)});a("#loadDataImg").hide();c.show()},"json")}};a(".wp-list-table tbody").sortable({handle:".wpProQuiz_move",update:c.sortUpdate});a(".wpProQuiz_delete").click(function(a){return!confirm(wpProQuizLocalize.delete_msg)?
15
+ (a.preventDefault(),!1):!0});a("#wpProQuiz_saveSort").click(function(a){a.preventDefault();c.saveSort()});a("#wpProQuiz_questionCopy").click(function(e){var b=a(".wpProQuiz_questionCopy");b.is(":visible")?b.hide():(b.show(),c.loadQuestionCopy());e.preventDefault()})};a.fn.wpProQuiz_quizEdit=function(){var c={addResult:function(){a("#resultList").children().each(function(){if("none"==a(this).css("display")){var b=a(this),c=b.find('textarea[name="resultTextGrade[text][]"]'),d=c.attr("id"),e=!0;b.find('input[name="resultTextGrade[prozent][]"]').val("0");
16
+ b.find('input[name="resultTextGrade[activ][]"]').val("1").keyup();void 0!=tinymce.editors[d]&&!tinymce.editors[d].isHidden()&&(e=!1);void 0!=switchEditors&&!e&&(switchEditors.go(d,"toggle"),switchEditors.go(d,"toggle"));void 0!=tinymce.editors[d]?tinymce.editors[d].setContent(""):c.val("");void 0!=tinymce.editors[d]&&!e&&tinyMCE.execCommand("mceRemoveControl",!1,d);b.parent().children(":visible").last().after(b);void 0!=tinymce.editors[d]&&!e&&tinyMCE.execCommand("mceAddControl",!1,d);a(this).show();
17
+ void 0!=switchEditors&&!e&&switchEditors.go(d,"toggle");return!1}})},deleteResult:function(b){a(b).parent().parent().hide();a(b).siblings('input[name="resultTextGrade[activ][]"]').val("0")},changeResult:function(b){b=a(b);if(c.validResultInput(b.val()))return b.siblings(".resultProzent").text(b.val()),b.removeAttr("style"),!0;b.css("background-color","#FF9696");return!1},validResultInput:function(a){if(e(a))return!1;a=a.replace(/\,/,".");return!isNaN(a)&&100>=Number(a)&&0<=Number(a)?null!=a.match(/\./)?
18
+ 3>a.split(".")[1].length:!0:!1},validInput:function(){if(e(a("#wpProQuiz_title").val()))return alert(wpProQuizLocalize.no_title_msg),!1;var b="",b=void 0!=tinymce.editors.text&&!tinymce.editors.text.isHidden()?tinymce.editors.text.getContent():a('textarea[name="text"]').val();if(e(b))return alert(wpProQuizLocalize.no_quiz_start_msg),!1;if(a("#wpProQuiz_resultGradeEnabled:checked").length){var g=!0;a("#resultList").children().each(function(){if(a(this).is(":visible")&&!c.validResultInput(a(this).find('input[name="resultTextGrade[prozent][]"]').val()))return g=
19
+ !1});if(!g)return alert(wpProQuizLocalize.fail_grade_result),!1}return!0},resetLock:function(){var b=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php"),b=b.replace("action=edit","action=reset_lock");a.post(b,{action:"wp_pro_quiz_reset_lock"},function(){a("#resetLockMsg").show("fast").delay(2E3).hide("fast")})}},e=function(b){b=a.trim(b);return!b||0===b.length};a("#statistics_on").change(function(){this.checked?a("#statistics_ip_lock_tr").show():a("#statistics_ip_lock_tr").hide()});
20
+ a(".addResult").click(function(){c.addResult()});a(".deleteResult").click(function(){c.deleteResult(this)});a('input[name="resultTextGrade[prozent][]"]').keyup(function(){c.changeResult(this)}).keydown(function(a){13==a.which&&a.preventDefault()});a("#wpProQuiz_resultGradeEnabled").change(function(){this.checked?(a("#resultGrade").show(),a("#resultNormal").hide()):(a("#resultGrade").hide(),a("#resultNormal").show())});a("#wpProQuiz_save").click(function(a){c.validInput()||a.preventDefault()});a('input[name="quizRunOnce"]').change(function(){this.checked?
21
+ (a("#wpProQuiz_quiz_run_once_type").show(),a('input[name="quizRunOnceType"]:checked').change()):a("#wpProQuiz_quiz_run_once_type").hide()});a('input[name="quizRunOnceType"]').change(function(){this.checked&&("1"==this.value||"3"==this.value)?a("#wpProQuiz_quiz_run_once_cookie").show():a("#wpProQuiz_quiz_run_once_cookie").hide()});a('input[name="resetQuizLock"]').click(function(){c.resetLock();return!1});a(".wpProQuiz_demoBox a").mouseover(function(){a(this).next().show()}).mouseout(function(){a(this).next().hide()}).click(function(){return!1});
22
+ a("#statistics_on").change();a("#wpProQuiz_resultGradeEnabled").change();a('input[name="quizRunOnce"]').change();a('input[name="quizRunOnceType"]:checked').change()};a.fn.wpProQuiz_statistics=function(){var c="wpProQuiz_typeAnonymeUser",e=!0,b={loadStatistics:function(c){var d=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=load_statistics",c={action:"wp_pro_quiz_load_statistics",userId:c};a("#wpProQuiz_loadData").show();a("#wpProQuiz_statistics_content, #wpProQuiz_statistics_overview").hide();
23
+ a.post(d,c,b.setStatistics,"json")},setStatistics:function(b){var d=a(".wpProQuiz_statistics_table"),e=d.find("tbody"),f=0,h=0;if("wpProQuiz_typeOverview"!=c){var i=function(a,b,c){a.find(".wpProQuiz_cCorrect").text(b.cCorrect+" ("+b.pCorrect+"%)");a.find(".wpProQuiz_cIncorrect").text(b.cIncorrect+" ("+b.pIncorrect+"%)");a.find(".wpProQuiz_cTip").text(b.cTip);a.find(".wpProQuiz_cCorrectAnswerPoints").text(b.cCorrectAnswerPoints*a.find(".wpProQuiz_pointsAnswer").text());!0==c?0<h?d.find(".wpProQuiz_cResult").text(Math.round(1E4*
24
+ (f/h))/100+"%"):d.find(".wpProQuiz_cResult").text("0%"):(f+=b.cCorrectAnswerPoints*a.find(".wpProQuiz_pointsAnswer").text(),h+=(b.cCorrect+b.cIncorrect)*a.find(".wpProQuiz_points").text())};i(d,b.clear,!1);a.each(b.items,function(a,b){i(e.find("#wpProQuiz_tr_"+b.id),b,!1)});i(d.find("tfoot"),b.global,!0);a("#wpProQuiz_loadData").hide();a("#wpProQuiz_statistics_content, .wpProQuiz_statistics_table").show()}},loadOverview:function(){a(".wpProQuiz_statistics_table, #wpProQuiz_statistics_content, #wpProQuiz_statistics_overview").hide();
25
+ a("#wpProQuiz_loadData").show();var g=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=load_statistics",d={action:"wp_pro_quiz_load_statistics",overview:!0,pageLimit:a("#wpProQuiz_pageLimit").val(),onlyCompleted:Number(a("#wpProQuiz_onlyCompleted").is(":checked")),page:a("#wpProQuiz_currentPage").val(),generatePageNav:Number(e)};a.post(g,d,function(d){a("#wpProQuiz_statistics_overview_data").empty();if("wpProQuiz_typeOverview"==c){var f=a('<tr><th><a href="#">---</a></th><th class="wpProQuiz_points">---</th><th class="wpProQuiz_cCorrect" style="color: green;">---</th><th class="wpProQuiz_cIncorrect" style="color: red;">---</th><th class="wpProQuiz_cTip">---</th><th class="wpProQuiz_cResult" style="font-weight: bold;">---</th></tr>');
26
+ a.each(d.items,function(b,c){var d=f.clone();d.find("a").text(c.userName).data("userId",c.userId).click(function(){a("#userSelect").val(a(this).data("userId"));a("#wpProQuiz_typeRegisteredUser").click();return!1});c.completed?(d.find(".wpProQuiz_points").text(c.cPoints),d.find(".wpProQuiz_cCorrect").text(c.cCorrect+" ("+c.pCorrect+"%)"),d.find(".wpProQuiz_cIncorrect").text(c.cIncorrect+" ("+c.pIncorrect+"%)"),d.find(".wpProQuiz_cTip").text(c.cTip),d.find(".wpProQuiz_cResult").text(Math.round(1E4*
27
+ (c.cPoints/c.totalPoints))/100+"%")):d.find("th").removeAttr("style");a("#wpProQuiz_statistics_overview_data").append(d)});void 0!=d.page&&(b.setPageNav(d.page),e=!1);a("#wpProQuiz_loadData").hide();a("#wpProQuiz_statistics_overview").show()}},"json")},changeTab:function(e){c=e;"wpProQuiz_typeRegisteredUser"==e?b.loadStatistics(a("#userSelect").val()):"wpProQuiz_typeAnonymeUser"==e?b.loadStatistics(0):b.loadOverview()},resetStatistic:function(e){var d="wpProQuiz_typeRegisteredUser"==c?a("#userSelect").val():
28
+ 0,j=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=reset";a.post(j,{action:"wp_pro_quiz_statistics",userId:d,complete:e},function(){b.changeTab(c)})},setPageNav:function(b){b=Math.ceil(b/a("#wpProQuiz_pageLimit").val());a("#wpProQuiz_currentPage").empty();for(var c=1;c<=b;c++)a(document.createElement("option")).val(c).text(c).appendTo(a("#wpProQuiz_currentPage"));a("#wpProQuiz_pageLeft, #wpProQuiz_pageRight").hide();1<a("#wpProQuiz_currentPage option").length&&
29
+ a("#wpProQuiz_pageRight").show()}};a(".wpProQuiz_tab").click(function(){var c=a(this);if(c.hasClass("button-primary"))return!1;"wpProQuiz_typeRegisteredUser"==c.attr("id")?a("#wpProQuiz_userBox").show():a("#wpProQuiz_userBox").hide();a(".wpProQuiz_tab").removeClass("button-primary").addClass("button-secondary");c.removeClass("button-secondary").addClass("button-primary");b.changeTab(c.attr("id"));return!1});a("#userSelect").change(function(){b.changeTab("wpProQuiz_typeRegisteredUser")});a(".wpProQuiz_update").click(function(){b.changeTab(c);
30
+ return!1});a("#wpProQuiz_reset").click(function(){confirm(wpProQuizLocalize.reset_statistics_msg)&&b.resetStatistic(!1);return!1});a(".wpProQuiz_resetComplete").click(function(){confirm(wpProQuizLocalize.reset_statistics_msg)&&b.resetStatistic(!0);return!1});a("#wpProQuiz_pageLimit, #wpProQuiz_onlyCompleted").change(function(){a("#wpProQuiz_currentPage").val(0);e=!0;b.changeTab(c);return!1});a("#wpProQuiz_currentPage").change(function(){a("#wpProQuiz_pageLeft, #wpProQuiz_pageRight").hide();1!=a("#wpProQuiz_currentPage option").length&&
31
+ (a("#wpProQuiz_currentPage option:first-child:selected").length?a("#wpProQuiz_pageRight").show():a("#wpProQuiz_currentPage option:last-child:selected").length?a("#wpProQuiz_pageLeft").show():a("#wpProQuiz_pageLeft, #wpProQuiz_pageRight").show());b.changeTab(c)});a("#wpProQuiz_pageRight").click(function(){a("#wpProQuiz_currentPage option:selected").next().attr("selected","selected");a("#wpProQuiz_currentPage").change();return!1});a("#wpProQuiz_pageLeft").click(function(){a("#wpProQuiz_currentPage option:selected").prev().attr("selected",
32
+ "selected");a("#wpProQuiz_currentPage").change();return!1});b.changeTab("wpProQuiz_typeAnonymeUser")};a(".wpProQuiz_quizOverall").length&&a(".wpProQuiz_quizOverall").wpProQuiz_preview();a(".wpProQuiz_quizOverall").length&&a(".wpProQuiz_quizOverall").wpProQuiz_quizOverall();a(".wpProQuiz_quizEdit").length&&a(".wpProQuiz_quizEdit").wpProQuiz_quizEdit();a(".wpProQuiz_questionEdit").length&&a(".wpProQuiz_questionEdit").wpProQuiz_questionEdit();a(".wpProQuiz_questionOverall").length&&a(".wpProQuiz_questionOverall").wpProQuiz_questionOverall();
33
+ a(".wpProQuiz_statistics").length&&a(".wpProQuiz_statistics").wpProQuiz_statistics()});
js/wpProQuiz_front.js CHANGED
@@ -10,6 +10,7 @@
10
  var statistics = new Object();
11
  var points = 0;
12
  var pointsTotal = 0;
 
13
 
14
  var isLock = false;
15
  var locked = false;
@@ -201,7 +202,9 @@
201
  $(this).parent().parent()
202
  .data('type', j.answer_type)
203
  .data('questionId', j.id)
204
- .data('points', j.points);
 
 
205
 
206
  $(this).find('.wpProQuiz_questionInput').each(function() {
207
  switch(j.answer_type) {
@@ -244,6 +247,7 @@
244
  var correct = false;
245
  var checked = $question.find('.wpProQuiz_questionInput');
246
  var type = $question.data('type');
 
247
 
248
  $question.find('input[name="tip"]').hide();
249
 
@@ -258,10 +262,12 @@
258
  if($(this).data('correct') == '1') {
259
  $(this).parent().parent().addClass('wpProQuiz_answerCorrect');
260
 
261
- if(this.checked)
262
  check &= true;
263
- else
 
264
  check &= false;
 
265
  } else {
266
  if(this.checked) {
267
  $(this).parent().parent().addClass('wpProQuiz_answerIncorrect');
@@ -283,6 +289,7 @@
283
  if(correct == index) {
284
  $div.parent().addClass('wpProQuiz_answerCorrect');
285
  check &= true;
 
286
  } else {
287
  $div.parent().addClass('wpProQuiz_answerIncorrect');
288
  check = false;
@@ -309,6 +316,7 @@
309
 
310
  if($.inArray(value, checked.data('correct')) >= 0) {
311
  correct = true;
 
312
  checked.parent().parent().addClass('wpProQuiz_answerCorrect');
313
  } else {
314
  checked.parent().parent().addClass('wpProQuiz_answerIncorrect');
@@ -325,6 +333,7 @@
325
 
326
  if(item.data('correct') == index) {
327
  check &= true;
 
328
  $par.addClass('wpProQuiz_answerCorrect');
329
  } else {
330
  check = false;
@@ -357,6 +366,7 @@
357
 
358
  if(cloze == iText) {
359
  check &= true;
 
360
  input.css('background-color', '#B0DAB0');
361
  } else {
362
  check = false;
@@ -381,11 +391,23 @@
381
  statistics[$question.data('questionId')].correct = Number(correct);
382
 
383
  $question.find('.wpProQuiz_response').show();
384
-
 
 
 
 
 
 
 
385
  if(correct) {
386
  $question.find('.wpProQuiz_correct').show();
387
  correctAnswer++;
388
- points += $question.data('points');
 
 
 
 
 
389
  } else {
390
  $question.find('.wpProQuiz_incorrect').show();
391
  }
@@ -454,7 +476,7 @@
454
  $element.find('.wpProQuiz_resultsList').children().eq(index).show();
455
  }
456
 
457
- plugin.methode.scrollTo($('.wpProQuiz_results'), true);
458
 
459
  plugin.methode.sendCompletedQuiz();
460
  },
@@ -462,12 +484,20 @@
462
  sendCompletedQuiz: function() {
463
  if(config.preview)
464
  return;
465
-
 
 
 
 
466
  $.post(config.url, {
467
  action : 'wp_pro_quiz_completed_quiz',
468
  'results' : statistics,
469
  'quizId' : config.quizId
470
- });
 
 
 
 
471
  },
472
 
473
  findResultIndex: function(p) {
@@ -569,6 +599,10 @@
569
 
570
  loadLocked = true;
571
 
 
 
 
 
572
  $.post(config.url, {
573
  action: 'wp_pro_quiz_check_lock',
574
  quizId: config.quizId
@@ -585,10 +619,19 @@
585
  plugin.methode.startQuiz();
586
  }
587
  }, 'json');
 
 
 
 
588
  }
589
  };
590
 
591
  plugin.init = function() {
 
 
 
 
 
592
  correctAnswer = 0;
593
 
594
  if(config.lock && !config.preview) {
10
  var statistics = new Object();
11
  var points = 0;
12
  var pointsTotal = 0;
13
+ var cors = false;
14
 
15
  var isLock = false;
16
  var locked = false;
202
  $(this).parent().parent()
203
  .data('type', j.answer_type)
204
  .data('questionId', j.id)
205
+ .data('points', j.points)
206
+ .data('pointsPerAnswer', j.pointsPerAnswer)
207
+ .data('pointsAnswer', j.pointsAnswer);
208
 
209
  $(this).find('.wpProQuiz_questionInput').each(function() {
210
  switch(j.answer_type) {
247
  var correct = false;
248
  var checked = $question.find('.wpProQuiz_questionInput');
249
  var type = $question.data('type');
250
+ var correctCount = 0;
251
 
252
  $question.find('input[name="tip"]').hide();
253
 
262
  if($(this).data('correct') == '1') {
263
  $(this).parent().parent().addClass('wpProQuiz_answerCorrect');
264
 
265
+ if(this.checked) {
266
  check &= true;
267
+ correctCount++;
268
+ } else {
269
  check &= false;
270
+ }
271
  } else {
272
  if(this.checked) {
273
  $(this).parent().parent().addClass('wpProQuiz_answerIncorrect');
289
  if(correct == index) {
290
  $div.parent().addClass('wpProQuiz_answerCorrect');
291
  check &= true;
292
+ correctCount++;
293
  } else {
294
  $div.parent().addClass('wpProQuiz_answerIncorrect');
295
  check = false;
316
 
317
  if($.inArray(value, checked.data('correct')) >= 0) {
318
  correct = true;
319
+ correctCount++;
320
  checked.parent().parent().addClass('wpProQuiz_answerCorrect');
321
  } else {
322
  checked.parent().parent().addClass('wpProQuiz_answerIncorrect');
333
 
334
  if(item.data('correct') == index) {
335
  check &= true;
336
+ correctCount++;
337
  $par.addClass('wpProQuiz_answerCorrect');
338
  } else {
339
  check = false;
366
 
367
  if(cloze == iText) {
368
  check &= true;
369
+ correctCount++;
370
  input.css('background-color', '#B0DAB0');
371
  } else {
372
  check = false;
391
  statistics[$question.data('questionId')].correct = Number(correct);
392
 
393
  $question.find('.wpProQuiz_response').show();
394
+
395
+ if($question.data('pointsPerAnswer')) {
396
+ points += $question.data('pointsAnswer') * correctCount;
397
+ statistics[$question.data('questionId')].correct_answer_count = correctCount;
398
+ }
399
+
400
+ $question.find('.wpProQuiz_responsePoints').text($question.data('pointsAnswer') * correctCount);
401
+
402
  if(correct) {
403
  $question.find('.wpProQuiz_correct').show();
404
  correctAnswer++;
405
+
406
+ if(!$question.data('pointsPerAnswer')) {
407
+ points += $question.data('points');
408
+ statistics[$question.data('questionId')].correct_answer_count = 1;
409
+ }
410
+
411
  } else {
412
  $question.find('.wpProQuiz_incorrect').show();
413
  }
476
  $element.find('.wpProQuiz_resultsList').children().eq(index).show();
477
  }
478
 
479
+ plugin.methode.scrollTo($element.find('.wpProQuiz_results'), true);
480
 
481
  plugin.methode.sendCompletedQuiz();
482
  },
484
  sendCompletedQuiz: function() {
485
  if(config.preview)
486
  return;
487
+
488
+ if(cors) {
489
+ jQuery.support.cors = true;
490
+ }
491
+
492
  $.post(config.url, {
493
  action : 'wp_pro_quiz_completed_quiz',
494
  'results' : statistics,
495
  'quizId' : config.quizId
496
+ });
497
+
498
+ if(cors) {
499
+ jQuery.support.cors = false;
500
+ }
501
  },
502
 
503
  findResultIndex: function(p) {
599
 
600
  loadLocked = true;
601
 
602
+ if(cors) {
603
+ jQuery.support.cors = true;
604
+ }
605
+
606
  $.post(config.url, {
607
  action: 'wp_pro_quiz_check_lock',
608
  quizId: config.quizId
619
  plugin.methode.startQuiz();
620
  }
621
  }, 'json');
622
+
623
+ if(cors) {
624
+ jQuery.support.cors = false;
625
+ }
626
  }
627
  };
628
 
629
  plugin.init = function() {
630
+
631
+ if(config.cors && jQuery.support != undefined && jQuery.support.cors != undefined && jQuery.support.cors == false) {
632
+ cors = true;
633
+ }
634
+
635
  correctAnswer = 0;
636
 
637
  if(config.lock && !config.preview) {
js/wpProQuiz_front.min.js CHANGED
@@ -1,22 +1,23 @@
1
- (function(b){b.wpProQuizFront=function(p,d){var a=b(p),f=this,n=0,j=0,s=0,k={},m=0,l=0,t=!1,u=!1,q=!1,r=!1;f.methode={preStartQuiz:function(){k={};d.questionRandom&&f.methode.questionRandom();d.answerRandom?f.methode.answerRandom(".wpProQuiz_questionList"):f.methode.answerRandom(a.find(".wpProQuiz_sortable").parent().parent());f.methode.answerRandom(".wpProQuiz_sortStringList");m=n=0;d.questionOnSinglePage||(d.checkAnswer?a.find('input[name="check"]').show():a.find('input[name="next"]').show());!t||
2
- !q?f.methode.startQuiz():r=!0;d.numberedAnswer&&f.methode.numberedAnswer()},startQuiz:function(){a.find(".wpProQuiz_text").hide();u?a.find(".wpProQuiz_lock").show():(s=new Date,d.timeLimit&&f.methode.setTimeLimit(),d.questionOnSinglePage&&a.find(".wpProQuiz_listItem").show(),a.find(".wpProQuiz_listItem").first().show(),a.find(".wpProQuiz_quiz").fadeIn(200),a.find(".wpProQuiz_sortable").parent().parent().sortable().disableSelection(),a.find(".wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion").sortable({connectWith:".wpProQuiz_maxtrixSortCriterion:not(:has(li)), .wpProQuiz_sortStringList",
3
- placeholder:"wpProQuiz_placehold"}).disableSelection())},scrollTo:function(c,e){var a=c.offset().top-100;e?(window.pageYOffset||document.body.scrollTop)>a&&b("html,body").animate({scrollTop:a},300):b("html,body").animate({scrollTop:a},300)},reStartQuiz:function(){a.find(".wpProQuiz_answerCorrect").removeClass("wpProQuiz_answerCorrect");a.find(".wpProQuiz_answerIncorrect").removeClass("wpProQuiz_answerIncorrect");a.find('.wpProQuiz_text, input[name="tip"]').show();a.find(".wpProQuiz_quiz, .wpProQuiz_results, .wpProQuiz_response, .wpProQuiz_correct, .wpProQuiz_incorrect").hide();
4
- a.find(".wpProQuiz_time_limit, .wpProQuiz_time_limit_expired, .wpProQuiz_sort_correct_answer").hide();a.find(".wpProQuiz_quiz").children().first().children().hide();a.find(".wpProQuiz_sortable, .wpProQuiz_sortStringItem").removeAttr("style");a.find('input[name="check"]').hide();a.find('input[name="next"]').hide();a.find(".wpProQuiz_questionInput").removeAttr("disabled").removeAttr("checked");a.find('input.wpProQuiz_questionInput[type="text"]').removeAttr("value");a.find(".wpProQuiz_resultsList").children().hide();
5
- a.find(".wpProQuiz_cloze input").removeAttr("disabled").removeAttr("value").css("background-color","");a.find(".wpProQuiz_cloze span").hide();a.find('input[name="checkSingle"]').show();d.questionOnSinglePage||a.find(".wpProQuiz_question_page").show();f.methode.resetMatrix();a.find(".wpProQuiz_listItem").data("isChecked",!1)},numberedAnswer:function(){a.find(".wpProQuiz_listItem").each(function(){var c=b(this),e=c.data("type"),a=1;("multiple"==e||"single"==e)&&c.find(".WpProQuiz_numberedAnswer").each(function(){b(this).text(a++ +
6
- ". ")})})},resetMatrix:function(){a.find(".wpProQuiz_question").each(function(){var c=b(this),e=c.find(".wpProQuiz_sortStringList");c.find(".wpProQuiz_sortStringItem").each(function(){e.append(b(this))})})},setTimeLimit:function(){var c=a.find(".wpProQuiz_time_limit"),e=c.find("span"),b=d.timeLimit;c.css({width:"100%",display:"block"});e.html(f.methode.parseTime(b));c.find(".progress").css("width","100%").animate({width:"0%"},1E3*d.timeLimit);j=setInterval(function(){e.html(f.methode.parseTime(b--));
7
- 0>b&&(clearInterval(j),j=0,c.find(".progress").clearQueue().stop(),a.find('input[name="check"]').click().parent().hide(),a.find(".wpProQuiz_time_limit_expired").show(),f.methode.showResult())},1E3)},parseTime:function(c){var e=parseInt(c%60),a=parseInt(c/60%60),c=parseInt(c/3600%24);return(9<c?"":"0")+c+":"+((9<a?"":"0")+a)+":"+((9<e?"":"0")+e)},setQuizTime:function(){var c=((new Date).getTime()-s.getTime())/1E3;a.find(".wpProQuiz_quiz_time span").first().html(f.methode.parseTime(c))},setData:function(){var c=
8
- 0;a.find(".wpProQuiz_questionList").each(function(){var e=d.json[c],a=0;l+=e.points;b(this).parent().parent().data("type",e.answer_type).data("questionId",e.id).data("points",e.points);b(this).find(".wpProQuiz_questionInput").each(function(){switch(e.answer_type){case "single":case "multiple":0<=b.inArray(this.value,e.correct)?b(this).data("correct","1"):b(this).data("correct","0");break;case "free_answer":b(this).data("correct",e.correct)}});a=0;b(this).find(".wpProQuiz_sortable").each(function(){b(this).data("correct",
9
- e.correct[a++])});a=0;b(this).parent().find(".wpProQuiz_sortStringList").children().each(function(){b(this).data("correct",e.correct[a++])});"matrix_sort_answer"==e.answer_type&&b(this).children().each(function(){b(this).data("correct",b(this).index())});c++})},checkAnswer:function(c){var a=b(c).parent(),d=!1,i=a.find(".wpProQuiz_questionInput"),h=a.data("type");a.find('input[name="tip"]').hide();if(!a.data("isChecked")){if("multiple"==h||"single"==h){var g=!0;i.each(function(){"1"==b(this).data("correct")?
10
- (b(this).parent().parent().addClass("wpProQuiz_answerCorrect"),g=this.checked?g&1:g&0):this.checked&&(b(this).parent().parent().addClass("wpProQuiz_answerIncorrect"),g&=0)});d=g}else if("sort_answer"==h){g=!0;a.find(".wpProQuiz_sortable").each(function(){var a=b(this),c=a.parent().index();a.data("correct")==c?(a.parent().addClass("wpProQuiz_answerCorrect"),g&=1):(a.parent().addClass("wpProQuiz_answerIncorrect"),g=!1);a.css({"box-shadow":"0 0",cursor:"auto"})});var j=a.find(".wpProQuiz_sortable").parent().parent(),
11
- d=j.children("li");j.sortable("destroy");d.sort(function(a,c){return b(a).children("div").data("correct")-b(c).children("div").data("correct")});b.each(d,function(a,c){j.append(c)});d=g}else if("free_answer"==h)h=b.trim(i.val()).toLowerCase(),0<=b.inArray(h,i.data("correct"))?(d=!0,i.parent().parent().addClass("wpProQuiz_answerCorrect")):i.parent().parent().addClass("wpProQuiz_answerIncorrect");else if("matrix_sort_answer"==h){var g=!0,l={};a.find(".wpProQuiz_questionList").children().each(function(){var a=
12
- b(this).data("correct"),c=b(this).find(".wpProQuiz_maxtrixSortCriterion");c.children().first().data("correct")==a?(g&=1,c.addClass("wpProQuiz_answerCorrect")):(g=!1,c.addClass("wpProQuiz_answerIncorrect"));l[a]=b(this)});a.find(".wpProQuiz_sortStringItem").each(function(){l[b(this).data("correct")].find(".wpProQuiz_maxtrixSortCriterion").append(this)}).css({"box-shadow":"0 0",cursor:"auto"});a.find(".wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion").sortable("destroy");d=g}else"cloze_answer"==
13
- h&&(g=!0,a.find(".wpProQuiz_cloze").each(function(){var a=b(this).children(),c=a.first(),e=c.val().toLowerCase(),d=a.last().text().toLowerCase(),d=b.trim(d.substr(1,d.length-2)),d=f.methode.cleanupCurlyQuotes(d),e=f.methode.cleanupCurlyQuotes(b.trim(e));d==e?(g&=1,c.css("background-color","#B0DAB0")):(g=!1,c.css("background-color","#FFBABA"),a.last().show());c.attr("disabled","disabled")}),d=g);b(c).hide();i.attr("disabled","disabled");void 0==k[a.data("questionId")]&&(k[a.data("questionId")]={});
14
- k[a.data("questionId")].correct=Number(d);a.find(".wpProQuiz_response").show();d?(a.find(".wpProQuiz_correct").show(),n++,m+=a.data("points")):a.find(".wpProQuiz_incorrect").show();a.find('input[name="next"]').show();a.data("isChecked",!0)}},nextQuestion:function(c){var c=b(c).parent(),e=c.next();c.hide();e.length?(e.show(),d.backButton&&!d.checkAnswer&&e.find('input[name="back"]').show(),f.methode.scrollTo(e,!0)):(d.questionOnSinglePage&&a.find('.wpProQuiz_listItem, input[name="checkSingle"]').hide(),
15
- (!d.checkAnswer||d.questionOnSinglePage)&&a.find('input[name="check"]').click(),f.methode.showResult())},backQuestion:function(a){var a=b(a).parent(),e=a.prev();a.hide();e.show();f.methode.scrollTo(e,!0)},showResult:function(){clearInterval(j);var c=a.find(".wpProQuiz_points span");a.find(".wpProQuiz_time_limit .progress").clearQueue().stop();a.find(".wpProQuiz_correct_answer").html(n);a.find(".wpProQuiz_results").show();a.find('.wpProQuiz_time_limit, input[name="checkSingle"]').hide();f.methode.setQuizTime();
16
- var e=Math.round(1E4*(m/l))/100;c.eq(0).text(m);c.eq(1).text(l);c.eq(2).text(e);c=f.methode.findResultIndex(e);-1<c&&a.find(".wpProQuiz_resultsList").children().eq(c).show();f.methode.scrollTo(b(".wpProQuiz_results"),!0);f.methode.sendCompletedQuiz()},sendCompletedQuiz:function(){d.preview||b.post(d.url,{action:"wp_pro_quiz_completed_quiz",results:k,quizId:d.quizId})},findResultIndex:function(a){for(var b=d.resultsGrade,f=-1,i=999999,h=0;h<b.length;h++){var g=b[h];a>=g&&a-g<i&&(i=a-g,f=h)}return f},
17
- cleanupCurlyQuotes:function(a){a=a.replace(/\u2018/,"'");a=a.replace(/\u2019/,"'");a=a.replace(/\u201C/,'"');return a=a.replace(/\u201D/,'"')},reShowQuestion:function(){a.find('input[name="next"], input[name="check"], input[name="back"], input[name="checkSingle"]').hide();a.find(".wpProQuiz_quiz").children().first().children().show();a.find(".wpProQuiz_question_page").hide()},answerRandom:function(c){a.find(c).each(function(){var a=b(this).children(),a=a.sort(function(){return Math.round(Math.random())-
18
- 0.5}).slice(0,a.length);b(a).appendTo(a[0].parentNode).show()})},questionRandom:function(){var c=a.find(".wpProQuiz_quiz ol").children(),c=c.sort(function(){return Math.round(Math.random())-0.5}).slice(0,c.length);b(c).appendTo(c[0].parentNode);var e=1;b(c).each(function(){b(this).find(".wpProQuiz_question_page span").eq(0).html(e);b(this).find("h3 span").html(e++)})},showTip:function(a){$tip=b(a).siblings(".wpProQuiz_tipp");$par=b(a).parent();void 0==k[$par.data("questionId")]&&(k[$par.data("questionId")]=
19
- {});k[$par.data("questionId")].tip=1;$tip.toggle("fast")},setClozeStyle:function(){a.find(".wpProQuiz_cloze").each(function(){var a=b(this).children(),e=a.first(),a=a.last().clone();a.css("visibility","hidden");b("body").append(a);var d=a.width();a.remove();e.width(d+10)})},checkLock:function(){q=!0;b.post(d.url,{action:"wp_pro_quiz_check_lock",quizId:d.quizId},function(c){u=c.is;q=!1;c.pre&&a.find('input[name="restartQuiz"]').hide();r&&(r=!1,f.methode.startQuiz())},"json")}};f.init=function(){n=
20
- 0;d.lock&&!d.preview&&(t=!0,f.methode.checkLock());void 0==d.resultsGrade&&(d.resultsGrade=[0]);a.find(".wpProQuiz_quiz, .wpProQuiz_results").hide();a.find(".wpProQuiz_quiz").children().first().children().hide();f.methode.setData();f.methode.setClozeStyle();a.find('input[name="startQuiz"]').click(function(a){a.preventDefault();f.methode.preStartQuiz()});a.find('input[name="check"]').click(function(a){a.preventDefault();f.methode.checkAnswer(this)});a.find('input[name="next"]').click(function(a){a.preventDefault();
21
- f.methode.nextQuestion(this)});a.find('input[name="restartQuiz"]').click(function(a){a.preventDefault();f.methode.reStartQuiz()});a.find('input[name="reShowQuestion"]').click(function(a){a.preventDefault();f.methode.reShowQuestion(this)});a.find('input[name="back"]').click(function(){f.methode.backQuestion(this)});a.find('input[name="tip"]').click(function(){f.methode.showTip(this)});a.find('input[name="checkSingle"]').click(function(){a.find('input[name="next"]').last().click()});b(document).mouseup(function(c){var b=
22
- a.find(".wpProQuiz_tipp"),d=a.find('input[name="tip"]');!b.is(c.target)&&(0==b.has(c.target).length&&!d.is(c.target))&&b.hide("fast")})};f.init()};b.fn.wpProQuizFront=function(p){return this.each(function(){void 0==b(this).data("wpProQuizFront")&&b(this).data("wpProQuizFront",new b.wpProQuizFront(this,p))})}})(jQuery);
 
1
+ (function(d){d.wpProQuizFront=function(q,e){var b=d(q),f=this,n=0,l=0,t=0,j={},m=0,p=0,k=!1,u=!1,v=!1,r=!1,s=!1;f.methode={preStartQuiz:function(){j={};e.questionRandom&&f.methode.questionRandom();e.answerRandom?f.methode.answerRandom(".wpProQuiz_questionList"):f.methode.answerRandom(b.find(".wpProQuiz_sortable").parent().parent());f.methode.answerRandom(".wpProQuiz_sortStringList");m=n=0;e.questionOnSinglePage||(e.checkAnswer?b.find('input[name="check"]').show():b.find('input[name="next"]').show());
2
+ !u||!r?f.methode.startQuiz():s=!0;e.numberedAnswer&&f.methode.numberedAnswer()},startQuiz:function(){b.find(".wpProQuiz_text").hide();v?b.find(".wpProQuiz_lock").show():(t=new Date,e.timeLimit&&f.methode.setTimeLimit(),e.questionOnSinglePage&&b.find(".wpProQuiz_listItem").show(),b.find(".wpProQuiz_listItem").first().show(),b.find(".wpProQuiz_quiz").fadeIn(200),b.find(".wpProQuiz_sortable").parent().parent().sortable().disableSelection(),b.find(".wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion").sortable({connectWith:".wpProQuiz_maxtrixSortCriterion:not(:has(li)), .wpProQuiz_sortStringList",
3
+ placeholder:"wpProQuiz_placehold"}).disableSelection())},scrollTo:function(a,c){var b=a.offset().top-100;c?(window.pageYOffset||document.body.scrollTop)>b&&d("html,body").animate({scrollTop:b},300):d("html,body").animate({scrollTop:b},300)},reStartQuiz:function(){b.find(".wpProQuiz_answerCorrect").removeClass("wpProQuiz_answerCorrect");b.find(".wpProQuiz_answerIncorrect").removeClass("wpProQuiz_answerIncorrect");b.find('.wpProQuiz_text, input[name="tip"]').show();b.find(".wpProQuiz_quiz, .wpProQuiz_results, .wpProQuiz_response, .wpProQuiz_correct, .wpProQuiz_incorrect").hide();
4
+ b.find(".wpProQuiz_time_limit, .wpProQuiz_time_limit_expired, .wpProQuiz_sort_correct_answer").hide();b.find(".wpProQuiz_quiz").children().first().children().hide();b.find(".wpProQuiz_sortable, .wpProQuiz_sortStringItem").removeAttr("style");b.find('input[name="check"]').hide();b.find('input[name="next"]').hide();b.find(".wpProQuiz_questionInput").removeAttr("disabled").removeAttr("checked");b.find('input.wpProQuiz_questionInput[type="text"]').removeAttr("value");b.find(".wpProQuiz_resultsList").children().hide();
5
+ b.find(".wpProQuiz_cloze input").removeAttr("disabled").removeAttr("value").css("background-color","");b.find(".wpProQuiz_cloze span").hide();b.find('input[name="checkSingle"]').show();e.questionOnSinglePage||b.find(".wpProQuiz_question_page").show();f.methode.resetMatrix();b.find(".wpProQuiz_listItem").data("isChecked",!1)},numberedAnswer:function(){b.find(".wpProQuiz_listItem").each(function(){var a=d(this),c=a.data("type"),b=1;("multiple"==c||"single"==c)&&a.find(".WpProQuiz_numberedAnswer").each(function(){d(this).text(b++ +
6
+ ". ")})})},resetMatrix:function(){b.find(".wpProQuiz_question").each(function(){var a=d(this),c=a.find(".wpProQuiz_sortStringList");a.find(".wpProQuiz_sortStringItem").each(function(){c.append(d(this))})})},setTimeLimit:function(){var a=b.find(".wpProQuiz_time_limit"),c=a.find("span"),d=e.timeLimit;a.css({width:"100%",display:"block"});c.html(f.methode.parseTime(d));a.find(".progress").css("width","100%").animate({width:"0%"},1E3*e.timeLimit);l=setInterval(function(){c.html(f.methode.parseTime(d--));
7
+ 0>d&&(clearInterval(l),l=0,a.find(".progress").clearQueue().stop(),b.find('input[name="check"]').click().parent().hide(),b.find(".wpProQuiz_time_limit_expired").show(),f.methode.showResult())},1E3)},parseTime:function(a){var c=parseInt(a%60),b=parseInt(a/60%60),a=parseInt(a/3600%24);return(9<a?"":"0")+a+":"+((9<b?"":"0")+b)+":"+((9<c?"":"0")+c)},setQuizTime:function(){var a=((new Date).getTime()-t.getTime())/1E3;b.find(".wpProQuiz_quiz_time span").first().html(f.methode.parseTime(a))},setData:function(){var a=
8
+ 0;b.find(".wpProQuiz_questionList").each(function(){var c=e.json[a],b=0;p+=c.points;d(this).parent().parent().data("type",c.answer_type).data("questionId",c.id).data("points",c.points).data("pointsPerAnswer",c.pointsPerAnswer).data("pointsAnswer",c.pointsAnswer);d(this).find(".wpProQuiz_questionInput").each(function(){switch(c.answer_type){case "single":case "multiple":0<=d.inArray(this.value,c.correct)?d(this).data("correct","1"):d(this).data("correct","0");break;case "free_answer":d(this).data("correct",
9
+ c.correct)}});b=0;d(this).find(".wpProQuiz_sortable").each(function(){d(this).data("correct",c.correct[b++])});b=0;d(this).parent().find(".wpProQuiz_sortStringList").children().each(function(){d(this).data("correct",c.correct[b++])});"matrix_sort_answer"==c.answer_type&&d(this).children().each(function(){d(this).data("correct",d(this).index())});a++})},checkAnswer:function(a){var c=d(a).parent(),b=!1,e=c.find(".wpProQuiz_questionInput"),h=c.data("type"),i=0;c.find('input[name="tip"]').hide();if(!c.data("isChecked")){if("multiple"==
10
+ h||"single"==h){var g=!0;e.each(function(){"1"==d(this).data("correct")?(d(this).parent().parent().addClass("wpProQuiz_answerCorrect"),this.checked?(g&=1,i++):g&=0):this.checked&&(d(this).parent().parent().addClass("wpProQuiz_answerIncorrect"),g&=0)});b=g}else if("sort_answer"==h){g=!0;c.find(".wpProQuiz_sortable").each(function(){var a=d(this),b=a.parent().index();a.data("correct")==b?(a.parent().addClass("wpProQuiz_answerCorrect"),g&=1,i++):(a.parent().addClass("wpProQuiz_answerIncorrect"),g=!1);
11
+ a.css({"box-shadow":"0 0",cursor:"auto"})});var k=c.find(".wpProQuiz_sortable").parent().parent(),b=k.children("li");k.sortable("destroy");b.sort(function(a,b){return d(a).children("div").data("correct")-d(b).children("div").data("correct")});d.each(b,function(a,b){k.append(b)});b=g}else if("free_answer"==h)h=d.trim(e.val()).toLowerCase(),0<=d.inArray(h,e.data("correct"))?(b=!0,i++,e.parent().parent().addClass("wpProQuiz_answerCorrect")):e.parent().parent().addClass("wpProQuiz_answerIncorrect");else if("matrix_sort_answer"==
12
+ h){var g=!0,l={};c.find(".wpProQuiz_questionList").children().each(function(){var a=d(this).data("correct"),b=d(this).find(".wpProQuiz_maxtrixSortCriterion");b.children().first().data("correct")==a?(g&=1,i++,b.addClass("wpProQuiz_answerCorrect")):(g=!1,b.addClass("wpProQuiz_answerIncorrect"));l[a]=d(this)});c.find(".wpProQuiz_sortStringItem").each(function(){l[d(this).data("correct")].find(".wpProQuiz_maxtrixSortCriterion").append(this)}).css({"box-shadow":"0 0",cursor:"auto"});c.find(".wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion").sortable("destroy");
13
+ b=g}else"cloze_answer"==h&&(g=!0,c.find(".wpProQuiz_cloze").each(function(){var a=d(this).children(),b=a.first(),c=b.val().toLowerCase(),e=a.last().text().toLowerCase(),e=d.trim(e.substr(1,e.length-2)),e=f.methode.cleanupCurlyQuotes(e),c=f.methode.cleanupCurlyQuotes(d.trim(c));e==c?(g&=1,i++,b.css("background-color","#B0DAB0")):(g=!1,b.css("background-color","#FFBABA"),a.last().show());b.attr("disabled","disabled")}),b=g);d(a).hide();e.attr("disabled","disabled");void 0==j[c.data("questionId")]&&
14
+ (j[c.data("questionId")]={});j[c.data("questionId")].correct=Number(b);c.find(".wpProQuiz_response").show();c.data("pointsPerAnswer")&&(m+=c.data("pointsAnswer")*i,j[c.data("questionId")].correct_answer_count=i);c.find(".wpProQuiz_responsePoints").text(c.data("pointsAnswer")*i);b?(c.find(".wpProQuiz_correct").show(),n++,c.data("pointsPerAnswer")||(m+=c.data("points"),j[c.data("questionId")].correct_answer_count=1)):c.find(".wpProQuiz_incorrect").show();c.find('input[name="next"]').show();c.data("isChecked",
15
+ !0)}},nextQuestion:function(a){var a=d(a).parent(),c=a.next();a.hide();c.length?(c.show(),e.backButton&&!e.checkAnswer&&c.find('input[name="back"]').show(),f.methode.scrollTo(c,!0)):(e.questionOnSinglePage&&b.find('.wpProQuiz_listItem, input[name="checkSingle"]').hide(),(!e.checkAnswer||e.questionOnSinglePage)&&b.find('input[name="check"]').click(),f.methode.showResult())},backQuestion:function(a){var a=d(a).parent(),b=a.prev();a.hide();b.show();f.methode.scrollTo(b,!0)},showResult:function(){clearInterval(l);
16
+ var a=b.find(".wpProQuiz_points span");b.find(".wpProQuiz_time_limit .progress").clearQueue().stop();b.find(".wpProQuiz_correct_answer").html(n);b.find(".wpProQuiz_results").show();b.find('.wpProQuiz_time_limit, input[name="checkSingle"]').hide();f.methode.setQuizTime();var c=Math.round(1E4*(m/p))/100;a.eq(0).text(m);a.eq(1).text(p);a.eq(2).text(c);a=f.methode.findResultIndex(c);-1<a&&b.find(".wpProQuiz_resultsList").children().eq(a).show();f.methode.scrollTo(b.find(".wpProQuiz_results"),!0);f.methode.sendCompletedQuiz()},
17
+ sendCompletedQuiz:function(){e.preview||(k&&(jQuery.support.cors=!0),d.post(e.url,{action:"wp_pro_quiz_completed_quiz",results:j,quizId:e.quizId}),k&&(jQuery.support.cors=!1))},findResultIndex:function(a){for(var b=e.resultsGrade,d=-1,f=999999,h=0;h<b.length;h++){var i=b[h];a>=i&&a-i<f&&(f=a-i,d=h)}return d},cleanupCurlyQuotes:function(a){a=a.replace(/\u2018/,"'");a=a.replace(/\u2019/,"'");a=a.replace(/\u201C/,'"');return a=a.replace(/\u201D/,'"')},reShowQuestion:function(){b.find('input[name="next"], input[name="check"], input[name="back"], input[name="checkSingle"]').hide();
18
+ b.find(".wpProQuiz_quiz").children().first().children().show();b.find(".wpProQuiz_question_page").hide()},answerRandom:function(a){b.find(a).each(function(){var a=d(this).children(),a=a.sort(function(){return Math.round(Math.random())-0.5}).slice(0,a.length);d(a).appendTo(a[0].parentNode).show()})},questionRandom:function(){var a=b.find(".wpProQuiz_quiz ol").children(),a=a.sort(function(){return Math.round(Math.random())-0.5}).slice(0,a.length);d(a).appendTo(a[0].parentNode);var c=1;d(a).each(function(){d(this).find(".wpProQuiz_question_page span").eq(0).html(c);
19
+ d(this).find("h3 span").html(c++)})},showTip:function(a){$tip=d(a).siblings(".wpProQuiz_tipp");$par=d(a).parent();void 0==j[$par.data("questionId")]&&(j[$par.data("questionId")]={});j[$par.data("questionId")].tip=1;$tip.toggle("fast")},setClozeStyle:function(){b.find(".wpProQuiz_cloze").each(function(){var a=d(this).children(),b=a.first(),a=a.last().clone();a.css("visibility","hidden");d("body").append(a);var e=a.width();a.remove();b.width(e+10)})},checkLock:function(){r=!0;k&&(jQuery.support.cors=
20
+ !0);d.post(e.url,{action:"wp_pro_quiz_check_lock",quizId:e.quizId},function(a){v=a.is;r=!1;a.pre&&b.find('input[name="restartQuiz"]').hide();s&&(s=!1,f.methode.startQuiz())},"json");k&&(jQuery.support.cors=!1)}};f.init=function(){e.cors&&(void 0!=jQuery.support&&void 0!=jQuery.support.cors&&!1==jQuery.support.cors)&&(k=!0);n=0;e.lock&&!e.preview&&(u=!0,f.methode.checkLock());void 0==e.resultsGrade&&(e.resultsGrade=[0]);b.find(".wpProQuiz_quiz, .wpProQuiz_results").hide();b.find(".wpProQuiz_quiz").children().first().children().hide();
21
+ f.methode.setData();f.methode.setClozeStyle();b.find('input[name="startQuiz"]').click(function(a){a.preventDefault();f.methode.preStartQuiz()});b.find('input[name="check"]').click(function(a){a.preventDefault();f.methode.checkAnswer(this)});b.find('input[name="next"]').click(function(a){a.preventDefault();f.methode.nextQuestion(this)});b.find('input[name="restartQuiz"]').click(function(a){a.preventDefault();f.methode.reStartQuiz()});b.find('input[name="reShowQuestion"]').click(function(a){a.preventDefault();
22
+ f.methode.reShowQuestion(this)});b.find('input[name="back"]').click(function(){f.methode.backQuestion(this)});b.find('input[name="tip"]').click(function(){f.methode.showTip(this)});b.find('input[name="checkSingle"]').click(function(){b.find('input[name="next"]').last().click()});d(document).mouseup(function(a){var c=b.find(".wpProQuiz_tipp"),d=b.find('input[name="tip"]');!c.is(a.target)&&(0==c.has(a.target).length&&!d.is(a.target))&&c.hide("fast")})};f.init()};d.fn.wpProQuizFront=function(q){return this.each(function(){void 0==
23
+ d(this).data("wpProQuizFront")&&d(this).data("wpProQuizFront",new d.wpProQuizFront(this,q))})}})(jQuery);
languages/wp-pro-quiz-ar.mo CHANGED
Binary file
languages/wp-pro-quiz-ar.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
- "POT-Creation-Date: 2012-12-26 17:50+0100\n"
5
- "PO-Revision-Date: 2012-12-26 17:50+0100\n"
6
  "Last-Translator: Julius Fischer <julius.f@gmx.net>\n"
7
  "Language-Team: abuhassan <sajja2002@hotmail.com>\n"
8
  "Language: Arabic\n"
@@ -14,51 +14,67 @@ msgstr ""
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
- #: lib/controller/WpProQuiz_Controller_Admin.php:91
18
  msgid "Do you really want to delete the quiz/question?"
19
  msgstr "هل تريد حقاً ان تحذف هذا الاختبار/السؤال؟"
20
 
21
- #: lib/controller/WpProQuiz_Controller_Admin.php:92
22
  msgid "Title is not filled!"
23
  msgstr "لم يتم تعبئة هذا!"
24
 
25
- #: lib/controller/WpProQuiz_Controller_Admin.php:93
26
  msgid "No question deposited!"
27
  msgstr "لم يتم وضع سؤال!"
28
 
29
- #: lib/controller/WpProQuiz_Controller_Admin.php:94
30
  msgid "Correct answer was not selected!"
31
  msgstr "لم يتم اختيار اجابة صحيحة!"
32
 
33
- #: lib/controller/WpProQuiz_Controller_Admin.php:95
34
  msgid "No answer deposited!"
35
  msgstr "لم يتم وضع اجابة!"
36
 
37
- #: lib/controller/WpProQuiz_Controller_Admin.php:96
38
  msgid "No quiz description filled!"
39
  msgstr "لم يتم تعبئة وصف للاختبار!"
40
 
41
- #: lib/controller/WpProQuiz_Controller_Admin.php:97
42
  msgid "The percent values in result text are incorrect."
43
  msgstr "النسبة المئوية في نص النتائج غير صحيحة."
44
 
45
- #: lib/controller/WpProQuiz_Controller_Admin.php:98
46
  msgid "No number in the field \"Points\" or less than 1"
47
  msgstr "لا يوجد رقم في حقل /\"النقاط/\" أو أقل من 1"
48
 
49
- #: lib/controller/WpProQuiz_Controller_Admin.php:99
50
  msgid "No quiz selected"
51
  msgstr "لم يتم اختيار اختبار"
52
 
53
- #: lib/controller/WpProQuiz_Controller_Admin.php:100
54
  msgid "Do you really want to reset the statistic?"
55
  msgstr ""
56
 
57
- #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  msgid "Settings saved"
59
  msgstr ""
60
 
61
- #: lib/controller/WpProQuiz_Controller_ImportExport.php:70
62
  #: lib/helper/WpProQuiz_Helper_Import.php:54
63
  #: lib/helper/WpProQuiz_Helper_Import.php:63
64
  #: lib/helper/WpProQuiz_Helper_Import.php:70
@@ -67,59 +83,60 @@ msgstr "لا يمكن استكمال الملف"
67
 
68
  #: lib/controller/WpProQuiz_Controller_Question.php:9
69
  #: lib/controller/WpProQuiz_Controller_Question.php:19
70
- #: lib/controller/WpProQuiz_Controller_Quiz.php:63
71
  msgid "Quiz not found"
72
  msgstr "لم يتم العثور على الاختبار"
73
 
74
- #: lib/controller/WpProQuiz_Controller_Question.php:60
75
  msgid "questions copied"
76
  msgstr ""
77
 
78
- #: lib/controller/WpProQuiz_Controller_Question.php:121
79
  msgid "Edit question"
80
  msgstr "تحرير السؤال"
81
 
82
- #: lib/controller/WpProQuiz_Controller_Question.php:125
83
  msgid "Question not found"
84
  msgstr "لم يتم العثور على السؤال"
85
 
86
- #: lib/controller/WpProQuiz_Controller_Question.php:138
87
  #: lib/controller/WpProQuiz_Controller_Question.php:164
 
88
  #, php-format
89
  msgid "Question: %d"
90
  msgstr "السؤال: %d"
91
 
92
- #: lib/controller/WpProQuiz_Controller_Question.php:142
93
  msgid "Question edited"
94
  msgstr "تم تحرير السؤال"
95
 
96
- #: lib/controller/WpProQuiz_Controller_Question.php:151
97
  msgid "New question"
98
  msgstr "سؤال جديد"
99
 
100
- #: lib/controller/WpProQuiz_Controller_Question.php:169
101
  msgid "Question added"
102
  msgstr "تم اضافة سؤال"
103
 
104
- #: lib/controller/WpProQuiz_Controller_Quiz.php:58
 
105
  msgid "Edit quiz"
106
  msgstr "تحرير الاختبار"
107
 
108
- #: lib/controller/WpProQuiz_Controller_Quiz.php:78
109
  msgid "Quiz edited"
110
  msgstr "تم تحرير الاختبار"
111
 
112
- #: lib/controller/WpProQuiz_Controller_Quiz.php:87
113
- #: lib/controller/WpProQuiz_Controller_Quiz.php:115
114
  msgid "Quiz title or quiz description are not filled"
115
  msgstr "لم يتم تعبئة عنوان او وصف الاختبار"
116
 
117
- #: lib/controller/WpProQuiz_Controller_Quiz.php:98
118
- #: lib/controller/WpProQuiz_Controller_Quiz.php:109
119
  msgid "Create quiz"
120
  msgstr "انشاء اختبار"
121
 
122
- #: lib/controller/WpProQuiz_Controller_Quiz.php:135
123
  msgid "Quiz deleted"
124
  msgstr "تم حذف الاختبار"
125
 
@@ -131,104 +148,123 @@ msgstr "لم يتم رفع الملف"
131
  msgid "File have wrong format"
132
  msgstr "صيغة الملف خاطئة"
133
 
134
- #: lib/view/WpProQuiz_View_FrontQuiz.php:80
 
 
 
 
135
  msgid "Start quiz"
136
  msgstr "بدأ الاختبار"
137
 
138
- #: lib/view/WpProQuiz_View_FrontQuiz.php:85
139
  msgid ""
140
  "You have already completed the quiz before. Hence you can not start it again."
141
  msgstr ""
142
 
143
- #: lib/view/WpProQuiz_View_FrontQuiz.php:89
144
- #: lib/view/WpProQuiz_View_Statistics.php:58
 
145
  msgid "Results"
146
  msgstr "النتائج"
147
 
148
- #: lib/view/WpProQuiz_View_FrontQuiz.php:91
149
  #, php-format
150
  msgid "%s of %s questions answered correctly"
151
  msgstr "تم اجابة %s من %s اسئلة بشكل صحيح"
152
 
153
- #: lib/view/WpProQuiz_View_FrontQuiz.php:94
154
  msgid "Your time: <span></span>"
155
  msgstr "وقتك: <span></span>"
156
 
157
- #: lib/view/WpProQuiz_View_FrontQuiz.php:97
158
  msgid "Time has elapsed"
159
  msgstr "مضى من الوقت"
160
 
161
- #: lib/view/WpProQuiz_View_FrontQuiz.php:100
162
  msgid ""
163
  "You have reached <span></span> of <span></span> points, (<span></span>%)"
164
  msgstr "لقد وصلت الي <span></span> من <span></span> لنقاط, (<span></span>%)"
165
 
166
- #: lib/view/WpProQuiz_View_FrontQuiz.php:115
167
  msgid "Restart quiz"
168
  msgstr "اعادة الاختبار"
169
 
170
- #: lib/view/WpProQuiz_View_FrontQuiz.php:117
171
  msgid "View questions"
172
  msgstr "استعراض الاسئلة"
173
 
174
- #: lib/view/WpProQuiz_View_FrontQuiz.php:122
175
  #: lib/view/WpProQuiz_View_QuizEdit.php:132
176
  #: lib/view/WpProQuiz_View_QuizEdit.php:137
177
  msgid "Time limit"
178
  msgstr "الوقت المحدد"
179
 
180
- #: lib/view/WpProQuiz_View_FrontQuiz.php:135
181
  #, php-format
182
  msgid "Question %s of %s"
183
  msgstr "اسئلة %s من %s "
184
 
185
- #: lib/view/WpProQuiz_View_FrontQuiz.php:138
186
- #: lib/view/WpProQuiz_View_QuestionEdit.php:35
187
  #: lib/view/WpProQuiz_View_Statistics.php:53
188
  msgid "Question"
189
  msgstr "اسئلة"
190
 
191
- #: lib/view/WpProQuiz_View_FrontQuiz.php:142
192
  #, php-format
193
  msgid "%d points"
194
  msgstr "%d درجات"
195
 
196
- #: lib/view/WpProQuiz_View_FrontQuiz.php:152
197
- #: lib/view/WpProQuiz_View_QuestionEdit.php:235
198
- #: lib/view/WpProQuiz_View_QuestionEdit.php:273
199
- #: lib/view/WpProQuiz_View_QuestionEdit.php:308
200
  msgid "Sort elements"
201
  msgstr "ترتيب العناصر"
202
 
203
- #: lib/view/WpProQuiz_View_FrontQuiz.php:232
 
204
  #: lib/view/WpProQuiz_View_Statistics.php:55
 
205
  msgid "Correct"
206
  msgstr "صحيح"
207
 
208
- #: lib/view/WpProQuiz_View_FrontQuiz.php:240
 
 
 
 
 
 
 
 
 
 
 
209
  #: lib/view/WpProQuiz_View_Statistics.php:56
 
210
  msgid "Incorrect"
211
  msgstr "خطأ"
212
 
213
- #: lib/view/WpProQuiz_View_FrontQuiz.php:256
214
- #: lib/view/WpProQuiz_View_FrontQuiz.php:266
215
- #: lib/view/WpProQuiz_View_QuestionEdit.php:71
216
  msgid "Hint"
217
  msgstr "تلميح"
218
 
219
- #: lib/view/WpProQuiz_View_FrontQuiz.php:263
220
  msgid "Check"
221
  msgstr "التحقق"
222
 
223
- #: lib/view/WpProQuiz_View_FrontQuiz.php:264
224
  msgid "Back"
225
  msgstr "العودة"
226
 
227
- #: lib/view/WpProQuiz_View_FrontQuiz.php:268
228
  msgid "Next exercise"
229
  msgstr "التمرين التالي"
230
 
231
- #: lib/view/WpProQuiz_View_FrontQuiz.php:281
232
  msgid "Finish quiz"
233
  msgstr ""
234
 
@@ -242,7 +278,7 @@ msgstr ""
242
 
243
  #: lib/view/WpProQuiz_View_GobalSettings.php:14
244
  #: lib/view/WpProQuiz_View_GobalSettings.php:25
245
- #: lib/view/WpProQuiz_View_QuizOverall.php:47
246
  msgid "Settings in case of problems"
247
  msgstr ""
248
 
@@ -257,8 +293,8 @@ msgstr ""
257
 
258
  #: lib/view/WpProQuiz_View_GobalSettings.php:21
259
  #: lib/view/WpProQuiz_View_Import.php:22
260
- #: lib/view/WpProQuiz_View_QuestionEdit.php:13
261
- #: lib/view/WpProQuiz_View_QuestionOverall.php:18
262
  #: lib/view/WpProQuiz_View_QuizEdit.php:8
263
  #: lib/view/WpProQuiz_View_Statistics.php:18
264
  #: lib/view/WpProQuiz_View_StyleManager.php:11
@@ -272,6 +308,7 @@ msgstr ""
272
 
273
  #: lib/view/WpProQuiz_View_GobalSettings.php:40
274
  #: lib/view/WpProQuiz_View_GobalSettings.php:62
 
275
  #: lib/view/WpProQuiz_View_QuizEdit.php:33
276
  #: lib/view/WpProQuiz_View_QuizEdit.php:52
277
  #: lib/view/WpProQuiz_View_QuizEdit.php:71
@@ -352,15 +389,32 @@ msgstr ""
352
  msgid "If you have any problems with the Touch Library, please deactivate it."
353
  msgstr ""
354
 
355
- #: lib/view/WpProQuiz_View_GobalSettings.php:107
356
- #: lib/view/WpProQuiz_View_QuestionEdit.php:353
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
357
  #: lib/view/WpProQuiz_View_QuizEdit.php:430
358
  msgid "Save"
359
  msgstr "حفظ"
360
 
361
  #: lib/view/WpProQuiz_View_Import.php:21
362
- #: lib/view/WpProQuiz_View_QuizOverall.php:81
363
- #: lib/view/WpProQuiz_View_QuizOverall.php:96
364
  msgid "Import"
365
  msgstr "استيراد"
366
 
@@ -381,28 +435,28 @@ msgid "Quiz name"
381
  msgstr "اسم الاختبار"
382
 
383
  #: lib/view/WpProQuiz_View_Import.php:44
384
- #: lib/view/WpProQuiz_View_QuizOverall.php:69
385
  msgid "Questions"
386
  msgstr "اسئلة"
387
 
388
  #: lib/view/WpProQuiz_View_Import.php:67
389
- #: lib/view/WpProQuiz_View_QuizOverall.php:107
390
  msgid "Start import"
391
  msgstr "ابدأ الاستيراد"
392
 
393
- #: lib/view/WpProQuiz_View_QuestionEdit.php:17
394
  msgid "Title"
395
  msgstr "العنوان"
396
 
397
- #: lib/view/WpProQuiz_View_QuestionEdit.php:17
398
- #: lib/view/WpProQuiz_View_QuestionEdit.php:43
399
- #: lib/view/WpProQuiz_View_QuestionEdit.php:60
400
- #: lib/view/WpProQuiz_View_QuestionEdit.php:71
401
  #: lib/view/WpProQuiz_View_QuizEdit.php:362
402
  msgid "(optional)"
403
  msgstr "(اختيار)"
404
 
405
- #: lib/view/WpProQuiz_View_QuestionEdit.php:20
406
  msgid ""
407
  "The title is used for overview, it is not visible in quiz. If you leave the "
408
  "title field empty, a title will be generated."
@@ -410,29 +464,38 @@ msgstr ""
410
  "يتم استخدام العنوان للعرض، وهو غير مرئيا في الاختبار. إذا تركت حقل العنوان "
411
  "فارغا، سيتم إنشاء عنوان."
412
 
413
- #: lib/view/WpProQuiz_View_QuestionEdit.php:26
414
- #: lib/view/WpProQuiz_View_QuestionEdit.php:31
415
- #: lib/view/WpProQuiz_View_Statistics.php:54
416
- msgid "Points"
417
- msgstr "درجات"
418
-
419
- #: lib/view/WpProQuiz_View_QuestionEdit.php:26
420
- #: lib/view/WpProQuiz_View_QuestionEdit.php:35
421
- #: lib/view/WpProQuiz_View_QuestionEdit.php:123
422
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
423
  #: lib/view/WpProQuiz_View_QuizEdit.php:351
424
  msgid "(required)"
425
  msgstr "(مطلوب)"
426
 
427
- #: lib/view/WpProQuiz_View_QuestionEdit.php:29
428
  msgid "Points for this question (Standard is 1 point)"
429
  msgstr "درجات هذا السؤال (عادة 1 درجة)"
430
 
 
 
 
 
 
 
 
 
 
 
 
431
  #: lib/view/WpProQuiz_View_QuestionEdit.php:43
 
 
 
 
432
  msgid "Message with the correct answer"
433
  msgstr "رسالة مع الاجابة الصحيحة"
434
 
435
- #: lib/view/WpProQuiz_View_QuestionEdit.php:46
436
  msgid ""
437
  "This text will be visible if answered correctly. It can be used as "
438
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
@@ -441,15 +504,15 @@ msgstr ""
441
  "وهذا النص مرئية إذا أجاب بشكل صحيح. ويمكن استخدامه كدليل شرح للمسائل "
442
  "المعقدة. الرسالة\"صحيح \" أو\" خطأ\" دائما يتم عرضها تلقائيا."
443
 
444
- #: lib/view/WpProQuiz_View_QuestionEdit.php:50
445
  msgid "Same text for correct- and incorrect-message?"
446
  msgstr "نفس النص مع رسالة الاجابة الصحيحة - و الغير صحيحة؟"
447
 
448
- #: lib/view/WpProQuiz_View_QuestionEdit.php:60
449
  msgid "Message with the incorrect answer"
450
  msgstr "رسالة مع الاجابة الغير صحيحة"
451
 
452
- #: lib/view/WpProQuiz_View_QuestionEdit.php:63
453
  msgid ""
454
  "This text will be visible if answered incorrectly. It can be used as "
455
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
@@ -458,53 +521,53 @@ msgstr ""
458
  "وهذا النص مرئية إذا أجاب بشكل غير صحيح. ويمكن استخدامه كدليل شرح للمسائل "
459
  "المعقدة. الرسالة\"صحيح \" أو\" خطأ\" دائما يتم عرضها تلقائيا."
460
 
461
- #: lib/view/WpProQuiz_View_QuestionEdit.php:74
462
  msgid "Here you can enter solution hint."
463
  msgstr "يمكنك وضع هنا تلميح للأجابة."
464
 
465
- #: lib/view/WpProQuiz_View_QuestionEdit.php:78
466
  msgid "Activate hint for this question?"
467
  msgstr "تفعيل التلميح لهذا السؤال؟"
468
 
469
- #: lib/view/WpProQuiz_View_QuestionEdit.php:90
470
  msgid "Answer type"
471
  msgstr "نوع السؤال؟"
472
 
473
- #: lib/view/WpProQuiz_View_QuestionEdit.php:98
474
  msgid "Single choice"
475
  msgstr "اختيار واحد"
476
 
477
- #: lib/view/WpProQuiz_View_QuestionEdit.php:102
478
  msgid "Multiple choice"
479
  msgstr "أختيار متعدد"
480
 
481
- #: lib/view/WpProQuiz_View_QuestionEdit.php:106
482
  msgid "\"Free\" choice"
483
  msgstr "\"حر\" اختيار"
484
 
485
- #: lib/view/WpProQuiz_View_QuestionEdit.php:110
486
  msgid "\"Sorting\" choice"
487
  msgstr "\"ترتيب\" اختيار"
488
 
489
- #: lib/view/WpProQuiz_View_QuestionEdit.php:114
490
  msgid "\"Matrix Sorting\" choice"
491
  msgstr "\"ترتيب منظمي\" اختيار"
492
 
493
- #: lib/view/WpProQuiz_View_QuestionEdit.php:118
494
  msgid "Cloze"
495
  msgstr "اكمل"
496
 
497
- #: lib/view/WpProQuiz_View_QuestionEdit.php:123
498
  msgid "Answers"
499
  msgstr "اجابات"
500
 
501
- #: lib/view/WpProQuiz_View_QuestionEdit.php:128
502
- #: lib/view/WpProQuiz_View_QuestionEdit.php:132
503
  msgid ""
504
  "correct answers (one per line) (answers will be converted to lower case)"
505
  msgstr "الإجابات الصحيحة (واحد في كل سطر) (يتم تحويل الإجابات إلى أحرف صغيرة)"
506
 
507
- #: lib/view/WpProQuiz_View_QuestionEdit.php:138
508
  msgid ""
509
  "Please sort the answers in right order with the \"Move\" - Button. The "
510
  "answers will be displayed randomly."
@@ -512,59 +575,59 @@ msgstr ""
512
  "يرجى فرز الإجابات في بالترتيب الصحيح بزر \"نقل\" - . سوف يتم عرض الإجابات "
513
  "بشكل عشوائي."
514
 
515
- #: lib/view/WpProQuiz_View_QuestionEdit.php:144
516
- #: lib/view/WpProQuiz_View_QuestionEdit.php:156
517
- #: lib/view/WpProQuiz_View_QuestionEdit.php:166
518
- #: lib/view/WpProQuiz_View_QuestionEdit.php:185
519
- #: lib/view/WpProQuiz_View_QuestionEdit.php:201
520
  #: lib/view/WpProQuiz_View_QuestionEdit.php:215
521
- #: lib/view/WpProQuiz_View_QuestionEdit.php:263
522
- #: lib/view/WpProQuiz_View_QuestionEdit.php:301
523
- #: lib/view/WpProQuiz_View_QuestionEdit.php:336
 
524
  msgid "Delete answer"
525
  msgstr "حذف الاجابة"
526
 
527
- #: lib/view/WpProQuiz_View_QuestionEdit.php:145
528
- #: lib/view/WpProQuiz_View_QuestionEdit.php:157
529
- #: lib/view/WpProQuiz_View_QuestionEdit.php:167
530
- #: lib/view/WpProQuiz_View_QuestionEdit.php:186
531
- #: lib/view/WpProQuiz_View_QuestionEdit.php:202
532
  #: lib/view/WpProQuiz_View_QuestionEdit.php:216
533
- #: lib/view/WpProQuiz_View_QuestionEdit.php:262
534
- #: lib/view/WpProQuiz_View_QuestionEdit.php:300
535
- #: lib/view/WpProQuiz_View_QuestionEdit.php:335
536
- #: lib/view/WpProQuiz_View_QuestionOverall.php:38
 
537
  msgid "Move"
538
  msgstr "تحريك"
539
 
540
- #: lib/view/WpProQuiz_View_QuestionEdit.php:147
541
- #: lib/view/WpProQuiz_View_QuestionEdit.php:159
542
- #: lib/view/WpProQuiz_View_QuestionEdit.php:169
543
- #: lib/view/WpProQuiz_View_QuestionEdit.php:188
544
- #: lib/view/WpProQuiz_View_QuestionEdit.php:204
545
  #: lib/view/WpProQuiz_View_QuestionEdit.php:218
546
- #: lib/view/WpProQuiz_View_QuestionEdit.php:249
547
- #: lib/view/WpProQuiz_View_QuestionEdit.php:255
548
- #: lib/view/WpProQuiz_View_QuestionEdit.php:287
549
- #: lib/view/WpProQuiz_View_QuestionEdit.php:293
550
- #: lib/view/WpProQuiz_View_QuestionEdit.php:322
551
- #: lib/view/WpProQuiz_View_QuestionEdit.php:328
 
552
  msgid "Allow HTML"
553
  msgstr "السماح بــ HTML"
554
 
555
- #: lib/view/WpProQuiz_View_QuestionEdit.php:175
556
- #: lib/view/WpProQuiz_View_QuestionEdit.php:224
557
- #: lib/view/WpProQuiz_View_QuestionEdit.php:340
558
  msgid "Add new answer"
559
  msgstr "اضف اجابة جديدة"
560
 
561
- #: lib/view/WpProQuiz_View_QuestionEdit.php:183
562
- #: lib/view/WpProQuiz_View_QuestionEdit.php:199
563
  #: lib/view/WpProQuiz_View_QuestionEdit.php:213
 
564
  msgid "correct?"
565
  msgstr "صحيح؟"
566
 
567
- #: lib/view/WpProQuiz_View_QuestionEdit.php:228
568
  msgid ""
569
  "In this mode, not a list have to be sorted, but elements must be assigned to "
570
  "matching criterion."
@@ -572,13 +635,13 @@ msgstr ""
572
  "في هذا الوضع، لا يوجد قائمة لا بد من فرزها، ولكن يجب تعيين عناصر مطابقة "
573
  "لمعيار."
574
 
575
- #: lib/view/WpProQuiz_View_QuestionEdit.php:234
576
- #: lib/view/WpProQuiz_View_QuestionEdit.php:272
577
- #: lib/view/WpProQuiz_View_QuestionEdit.php:307
578
  msgid "Criterion"
579
  msgstr "معيار"
580
 
581
- #: lib/view/WpProQuiz_View_QuestionEdit.php:344
582
  msgid ""
583
  "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
584
  "small letters will be ignored."
@@ -590,51 +653,56 @@ msgstr ""
590
  msgid "Questions sorted"
591
  msgstr "ترتيب الاسئلة"
592
 
593
- #: lib/view/WpProQuiz_View_QuestionOverall.php:23
594
- #: lib/view/WpProQuiz_View_QuizOverall.php:55
595
  msgid "Name"
596
  msgstr "الاسم"
597
 
598
- #: lib/view/WpProQuiz_View_QuestionOverall.php:24
599
- #: lib/view/WpProQuiz_View_QuizOverall.php:56
600
  msgid "Action"
601
  msgstr "الحدث"
602
 
603
- #: lib/view/WpProQuiz_View_QuestionOverall.php:36
604
- #: lib/view/WpProQuiz_View_QuizOverall.php:70
605
  msgid "Edit"
606
  msgstr "تحرير"
607
 
608
- #: lib/view/WpProQuiz_View_QuestionOverall.php:37
609
- #: lib/view/WpProQuiz_View_QuizOverall.php:71
610
  msgid "Delete"
611
  msgstr "حذف"
612
 
613
- #: lib/view/WpProQuiz_View_QuestionOverall.php:45
 
 
 
 
 
614
  msgid "Add question"
615
  msgstr "اضافة سؤال"
616
 
617
- #: lib/view/WpProQuiz_View_QuestionOverall.php:46
618
  msgid "Save order"
619
  msgstr "حفظ الترتيب"
620
 
621
- #: lib/view/WpProQuiz_View_QuestionOverall.php:47
622
- #: lib/view/WpProQuiz_View_QuestionOverall.php:51
623
  msgid "Copy questions from another Quiz"
624
  msgstr ""
625
 
626
- #: lib/view/WpProQuiz_View_QuestionOverall.php:52
627
  msgid ""
628
  "Here you can copy questions from another quiz into this quiz. (Multiple "
629
  "selection enabled)"
630
  msgstr ""
631
 
632
- #: lib/view/WpProQuiz_View_QuestionOverall.php:56
633
  #: lib/view/WpProQuiz_View_Statistics.php:45
634
  msgid "Loading"
635
  msgstr ""
636
 
637
- #: lib/view/WpProQuiz_View_QuestionOverall.php:64
638
  msgid "Copy questions"
639
  msgstr ""
640
 
@@ -762,7 +830,7 @@ msgstr ""
762
 
763
  #: lib/view/WpProQuiz_View_QuizEdit.php:250
764
  #: lib/view/WpProQuiz_View_QuizEdit.php:255
765
- #: lib/view/WpProQuiz_View_QuizOverall.php:73
766
  msgid "Statistics"
767
  msgstr "احصائيات"
768
 
@@ -935,42 +1003,42 @@ msgstr "إذا الاختبار لا يعمل في الواجهة الأمامي
935
  msgid "Style Manager"
936
  msgstr ""
937
 
938
- #: lib/view/WpProQuiz_View_QuizOverall.php:53
939
  msgid "ID"
940
  msgstr "الرقم"
941
 
942
- #: lib/view/WpProQuiz_View_QuizOverall.php:54
943
  msgid "Shortcode"
944
  msgstr "الكود"
945
 
946
- #: lib/view/WpProQuiz_View_QuizOverall.php:72
947
  msgid "Preview"
948
  msgstr "استعراض"
949
 
950
- #: lib/view/WpProQuiz_View_QuizOverall.php:80
951
  msgid "Add quiz"
952
  msgstr "اضف اختبار"
953
 
954
- #: lib/view/WpProQuiz_View_QuizOverall.php:82
955
- #: lib/view/WpProQuiz_View_QuizOverall.php:86
956
  msgid "Export"
957
  msgstr "تصدير"
958
 
959
- #: lib/view/WpProQuiz_View_QuizOverall.php:87
960
  msgid ""
961
  "Choose the respective question, which you would like to export and press on "
962
  "\"Start export\""
963
  msgstr "اختار سؤال، الذي تود أن تقوم بتصديره و اضغط على \"ابدأ التصدير\""
964
 
965
- #: lib/view/WpProQuiz_View_QuizOverall.php:91
966
  msgid "Start export"
967
  msgstr "ابدأ التصدير"
968
 
969
- #: lib/view/WpProQuiz_View_QuizOverall.php:97
970
  msgid "Import only *.wpq files from known and trusted sources."
971
  msgstr "استورد ملفات *.wpq فقط من مصدر معروف او موثوق به"
972
 
973
- #: lib/view/WpProQuiz_View_QuizOverall.php:105
974
  #, php-format
975
  msgid "Maximal %d MiB"
976
  msgstr "الحد الاقصى من %d MIB"
@@ -993,7 +1061,7 @@ msgid "Anonymous users"
993
  msgstr ""
994
 
995
  #: lib/view/WpProQuiz_View_Statistics.php:28
996
- msgid "Registered useres"
997
  msgstr ""
998
 
999
  #: lib/view/WpProQuiz_View_Statistics.php:29
@@ -1005,25 +1073,44 @@ msgid "Please select user name:"
1005
  msgstr ""
1006
 
1007
  #: lib/view/WpProQuiz_View_Statistics.php:57
 
1008
  msgid "Hints used"
1009
  msgstr "التلميحات مستخدمة"
1010
 
1011
- #: lib/view/WpProQuiz_View_Statistics.php:82
1012
- msgid "Total"
1013
- msgstr "المجموع"
1014
 
1015
- #: lib/view/WpProQuiz_View_Statistics.php:94
1016
  msgid "Reset statistics"
1017
  msgstr "اعادة ضبط الاحصائيات"
1018
 
1019
- #: lib/view/WpProQuiz_View_Statistics.php:95
 
1020
  msgid "Refresh"
1021
  msgstr ""
1022
 
1023
- #: lib/view/WpProQuiz_View_Statistics.php:98
 
1024
  msgid "Reset entire statistic"
1025
  msgstr ""
1026
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1027
  #: lib/view/WpProQuiz_View_StyleManager.php:15
1028
  msgid "Front"
1029
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
+ "POT-Creation-Date: 2013-01-07 23:42+0100\n"
5
+ "PO-Revision-Date: 2013-01-07 23:42+0100\n"
6
  "Last-Translator: Julius Fischer <julius.f@gmx.net>\n"
7
  "Language-Team: abuhassan <sajja2002@hotmail.com>\n"
8
  "Language: Arabic\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
+ #: lib/controller/WpProQuiz_Controller_Admin.php:54
18
  msgid "Do you really want to delete the quiz/question?"
19
  msgstr "هل تريد حقاً ان تحذف هذا الاختبار/السؤال؟"
20
 
21
+ #: lib/controller/WpProQuiz_Controller_Admin.php:55
22
  msgid "Title is not filled!"
23
  msgstr "لم يتم تعبئة هذا!"
24
 
25
+ #: lib/controller/WpProQuiz_Controller_Admin.php:56
26
  msgid "No question deposited!"
27
  msgstr "لم يتم وضع سؤال!"
28
 
29
+ #: lib/controller/WpProQuiz_Controller_Admin.php:57
30
  msgid "Correct answer was not selected!"
31
  msgstr "لم يتم اختيار اجابة صحيحة!"
32
 
33
+ #: lib/controller/WpProQuiz_Controller_Admin.php:58
34
  msgid "No answer deposited!"
35
  msgstr "لم يتم وضع اجابة!"
36
 
37
+ #: lib/controller/WpProQuiz_Controller_Admin.php:59
38
  msgid "No quiz description filled!"
39
  msgstr "لم يتم تعبئة وصف للاختبار!"
40
 
41
+ #: lib/controller/WpProQuiz_Controller_Admin.php:60
42
  msgid "The percent values in result text are incorrect."
43
  msgstr "النسبة المئوية في نص النتائج غير صحيحة."
44
 
45
+ #: lib/controller/WpProQuiz_Controller_Admin.php:61
46
  msgid "No number in the field \"Points\" or less than 1"
47
  msgstr "لا يوجد رقم في حقل /\"النقاط/\" أو أقل من 1"
48
 
49
+ #: lib/controller/WpProQuiz_Controller_Admin.php:62
50
  msgid "No quiz selected"
51
  msgstr "لم يتم اختيار اختبار"
52
 
53
+ #: lib/controller/WpProQuiz_Controller_Admin.php:63
54
  msgid "Do you really want to reset the statistic?"
55
  msgstr ""
56
 
57
+ #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:11
58
+ #: lib/controller/WpProQuiz_Controller_ImportExport.php:23
59
+ #: lib/controller/WpProQuiz_Controller_ImportExport.php:43
60
+ #: lib/controller/WpProQuiz_Controller_Question.php:51
61
+ #: lib/controller/WpProQuiz_Controller_Question.php:128
62
+ #: lib/controller/WpProQuiz_Controller_Question.php:143
63
+ #: lib/controller/WpProQuiz_Controller_Question.php:189
64
+ #: lib/controller/WpProQuiz_Controller_Question.php:284
65
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:55
66
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:69
67
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:114
68
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:147
69
+ #: lib/controller/WpProQuiz_Controller_Statistics.php:138
70
+ msgid "You do not have sufficient permissions to access this page."
71
+ msgstr ""
72
+
73
+ #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:19
74
  msgid "Settings saved"
75
  msgstr ""
76
 
77
+ #: lib/controller/WpProQuiz_Controller_ImportExport.php:79
78
  #: lib/helper/WpProQuiz_Helper_Import.php:54
79
  #: lib/helper/WpProQuiz_Helper_Import.php:63
80
  #: lib/helper/WpProQuiz_Helper_Import.php:70
83
 
84
  #: lib/controller/WpProQuiz_Controller_Question.php:9
85
  #: lib/controller/WpProQuiz_Controller_Question.php:19
86
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:78
87
  msgid "Quiz not found"
88
  msgstr "لم يتم العثور على الاختبار"
89
 
90
+ #: lib/controller/WpProQuiz_Controller_Question.php:65
91
  msgid "questions copied"
92
  msgstr ""
93
 
94
+ #: lib/controller/WpProQuiz_Controller_Question.php:147
95
  msgid "Edit question"
96
  msgstr "تحرير السؤال"
97
 
98
+ #: lib/controller/WpProQuiz_Controller_Question.php:151
99
  msgid "Question not found"
100
  msgstr "لم يتم العثور على السؤال"
101
 
 
102
  #: lib/controller/WpProQuiz_Controller_Question.php:164
103
+ #: lib/controller/WpProQuiz_Controller_Question.php:206
104
  #, php-format
105
  msgid "Question: %d"
106
  msgstr "السؤال: %d"
107
 
108
+ #: lib/controller/WpProQuiz_Controller_Question.php:174
109
  msgid "Question edited"
110
  msgstr "تم تحرير السؤال"
111
 
112
+ #: lib/controller/WpProQuiz_Controller_Question.php:193
113
  msgid "New question"
114
  msgstr "سؤال جديد"
115
 
116
+ #: lib/controller/WpProQuiz_Controller_Question.php:217
117
  msgid "Question added"
118
  msgstr "تم اضافة سؤال"
119
 
120
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:73
121
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:21
122
  msgid "Edit quiz"
123
  msgstr "تحرير الاختبار"
124
 
125
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:93
126
  msgid "Quiz edited"
127
  msgstr "تم تحرير الاختبار"
128
 
129
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:102
130
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:135
131
  msgid "Quiz title or quiz description are not filled"
132
  msgstr "لم يتم تعبئة عنوان او وصف الاختبار"
133
 
134
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:118
135
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:129
136
  msgid "Create quiz"
137
  msgstr "انشاء اختبار"
138
 
139
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:160
140
  msgid "Quiz deleted"
141
  msgstr "تم حذف الاختبار"
142
 
148
  msgid "File have wrong format"
149
  msgstr "صيغة الملف خاطئة"
150
 
151
+ #: lib/plugin/WpProQuiz_Plugin_BpAchievementsV2.php:33
152
+ msgid "The user completed a quiz."
153
+ msgstr ""
154
+
155
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:86
156
  msgid "Start quiz"
157
  msgstr "بدأ الاختبار"
158
 
159
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:91
160
  msgid ""
161
  "You have already completed the quiz before. Hence you can not start it again."
162
  msgstr ""
163
 
164
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:95
165
+ #: lib/view/WpProQuiz_View_Statistics.php:59
166
+ #: lib/view/WpProQuiz_View_Statistics.php:150
167
  msgid "Results"
168
  msgstr "النتائج"
169
 
170
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:97
171
  #, php-format
172
  msgid "%s of %s questions answered correctly"
173
  msgstr "تم اجابة %s من %s اسئلة بشكل صحيح"
174
 
175
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:100
176
  msgid "Your time: <span></span>"
177
  msgstr "وقتك: <span></span>"
178
 
179
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:103
180
  msgid "Time has elapsed"
181
  msgstr "مضى من الوقت"
182
 
183
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:106
184
  msgid ""
185
  "You have reached <span></span> of <span></span> points, (<span></span>%)"
186
  msgstr "لقد وصلت الي <span></span> من <span></span> لنقاط, (<span></span>%)"
187
 
188
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:121
189
  msgid "Restart quiz"
190
  msgstr "اعادة الاختبار"
191
 
192
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:123
193
  msgid "View questions"
194
  msgstr "استعراض الاسئلة"
195
 
196
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:128
197
  #: lib/view/WpProQuiz_View_QuizEdit.php:132
198
  #: lib/view/WpProQuiz_View_QuizEdit.php:137
199
  msgid "Time limit"
200
  msgstr "الوقت المحدد"
201
 
202
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:141
203
  #, php-format
204
  msgid "Question %s of %s"
205
  msgstr "اسئلة %s من %s "
206
 
207
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:144
208
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:49
209
  #: lib/view/WpProQuiz_View_Statistics.php:53
210
  msgid "Question"
211
  msgstr "اسئلة"
212
 
213
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:148
214
  #, php-format
215
  msgid "%d points"
216
  msgstr "%d درجات"
217
 
218
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:158
219
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:250
220
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:290
221
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:327
222
  msgid "Sort elements"
223
  msgstr "ترتيب العناصر"
224
 
225
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:240
226
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:247
227
  #: lib/view/WpProQuiz_View_Statistics.php:55
228
+ #: lib/view/WpProQuiz_View_Statistics.php:147
229
  msgid "Correct"
230
  msgstr "صحيح"
231
 
232
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:242
233
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:260
234
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:21
235
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:28
236
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:29
237
+ #: lib/view/WpProQuiz_View_Statistics.php:54
238
+ #: lib/view/WpProQuiz_View_Statistics.php:146
239
+ msgid "Points"
240
+ msgstr "درجات"
241
+
242
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:258
243
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:265
244
  #: lib/view/WpProQuiz_View_Statistics.php:56
245
+ #: lib/view/WpProQuiz_View_Statistics.php:148
246
  msgid "Incorrect"
247
  msgstr "خطأ"
248
 
249
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:282
250
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:292
251
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:85
252
  msgid "Hint"
253
  msgstr "تلميح"
254
 
255
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:289
256
  msgid "Check"
257
  msgstr "التحقق"
258
 
259
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:290
260
  msgid "Back"
261
  msgstr "العودة"
262
 
263
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:294
264
  msgid "Next exercise"
265
  msgstr "التمرين التالي"
266
 
267
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:307
268
  msgid "Finish quiz"
269
  msgstr ""
270
 
278
 
279
  #: lib/view/WpProQuiz_View_GobalSettings.php:14
280
  #: lib/view/WpProQuiz_View_GobalSettings.php:25
281
+ #: lib/view/WpProQuiz_View_QuizOverall.php:48
282
  msgid "Settings in case of problems"
283
  msgstr ""
284
 
293
 
294
  #: lib/view/WpProQuiz_View_GobalSettings.php:21
295
  #: lib/view/WpProQuiz_View_Import.php:22
296
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:8
297
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:19
298
  #: lib/view/WpProQuiz_View_QuizEdit.php:8
299
  #: lib/view/WpProQuiz_View_Statistics.php:18
300
  #: lib/view/WpProQuiz_View_StyleManager.php:11
308
 
309
  #: lib/view/WpProQuiz_View_GobalSettings.php:40
310
  #: lib/view/WpProQuiz_View_GobalSettings.php:62
311
+ #: lib/view/WpProQuiz_View_GobalSettings.php:114
312
  #: lib/view/WpProQuiz_View_QuizEdit.php:33
313
  #: lib/view/WpProQuiz_View_QuizEdit.php:52
314
  #: lib/view/WpProQuiz_View_QuizEdit.php:71
389
  msgid "If you have any problems with the Touch Library, please deactivate it."
390
  msgstr ""
391
 
392
+ #: lib/view/WpProQuiz_View_GobalSettings.php:105
393
+ #: lib/view/WpProQuiz_View_GobalSettings.php:110
394
+ msgid "jQuery support cors"
395
+ msgstr ""
396
+
397
+ #: lib/view/WpProQuiz_View_GobalSettings.php:117
398
+ msgid "Is required only in rare cases."
399
+ msgstr ""
400
+
401
+ #: lib/view/WpProQuiz_View_GobalSettings.php:120
402
+ msgid "If you have problems with the front ajax, please activate it."
403
+ msgstr ""
404
+
405
+ #: lib/view/WpProQuiz_View_GobalSettings.php:123
406
+ msgid "e.g. Domain with special characters in combination with IE"
407
+ msgstr ""
408
+
409
+ #: lib/view/WpProQuiz_View_GobalSettings.php:132
410
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:373
411
  #: lib/view/WpProQuiz_View_QuizEdit.php:430
412
  msgid "Save"
413
  msgstr "حفظ"
414
 
415
  #: lib/view/WpProQuiz_View_Import.php:21
416
+ #: lib/view/WpProQuiz_View_QuizOverall.php:91
417
+ #: lib/view/WpProQuiz_View_QuizOverall.php:108
418
  msgid "Import"
419
  msgstr "استيراد"
420
 
435
  msgstr "اسم الاختبار"
436
 
437
  #: lib/view/WpProQuiz_View_Import.php:44
438
+ #: lib/view/WpProQuiz_View_QuizOverall.php:71
439
  msgid "Questions"
440
  msgstr "اسئلة"
441
 
442
  #: lib/view/WpProQuiz_View_Import.php:67
443
+ #: lib/view/WpProQuiz_View_QuizOverall.php:119
444
  msgid "Start import"
445
  msgstr "ابدأ الاستيراد"
446
 
447
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:12
448
  msgid "Title"
449
  msgstr "العنوان"
450
 
451
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:12
452
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:57
453
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:74
454
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:85
455
  #: lib/view/WpProQuiz_View_QuizEdit.php:362
456
  msgid "(optional)"
457
  msgstr "(اختيار)"
458
 
459
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:15
460
  msgid ""
461
  "The title is used for overview, it is not visible in quiz. If you leave the "
462
  "title field empty, a title will be generated."
464
  "يتم استخدام العنوان للعرض، وهو غير مرئيا في الاختبار. إذا تركت حقل العنوان "
465
  "فارغا، سيتم إنشاء عنوان."
466
 
467
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:21
468
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:49
469
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:137
 
 
 
 
 
 
470
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
471
  #: lib/view/WpProQuiz_View_QuizEdit.php:351
472
  msgid "(required)"
473
  msgstr "(مطلوب)"
474
 
475
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:25
476
  msgid "Points for this question (Standard is 1 point)"
477
  msgstr "درجات هذا السؤال (عادة 1 درجة)"
478
 
479
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:34
480
+ msgid "Points per correct answer"
481
+ msgstr ""
482
+
483
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:37
484
+ msgid ""
485
+ "If you enable this option, for every correct answer user will receive X "
486
+ "points. Otherwise he will receive points only if the question was solved "
487
+ "completely."
488
+ msgstr ""
489
+
490
  #: lib/view/WpProQuiz_View_QuestionEdit.php:43
491
+ msgid "Show reached points in the correct- and incorrect message?"
492
+ msgstr ""
493
+
494
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:57
495
  msgid "Message with the correct answer"
496
  msgstr "رسالة مع الاجابة الصحيحة"
497
 
498
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:60
499
  msgid ""
500
  "This text will be visible if answered correctly. It can be used as "
501
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
504
  "وهذا النص مرئية إذا أجاب بشكل صحيح. ويمكن استخدامه كدليل شرح للمسائل "
505
  "المعقدة. الرسالة\"صحيح \" أو\" خطأ\" دائما يتم عرضها تلقائيا."
506
 
507
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:64
508
  msgid "Same text for correct- and incorrect-message?"
509
  msgstr "نفس النص مع رسالة الاجابة الصحيحة - و الغير صحيحة؟"
510
 
511
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:74
512
  msgid "Message with the incorrect answer"
513
  msgstr "رسالة مع الاجابة الغير صحيحة"
514
 
515
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:77
516
  msgid ""
517
  "This text will be visible if answered incorrectly. It can be used as "
518
  "explanation for complex questions. The message \"Right\" or \"Wrong\" is "
521
  "وهذا النص مرئية إذا أجاب بشكل غير صحيح. ويمكن استخدامه كدليل شرح للمسائل "
522
  "المعقدة. الرسالة\"صحيح \" أو\" خطأ\" دائما يتم عرضها تلقائيا."
523
 
524
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:88
525
  msgid "Here you can enter solution hint."
526
  msgstr "يمكنك وضع هنا تلميح للأجابة."
527
 
528
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:92
529
  msgid "Activate hint for this question?"
530
  msgstr "تفعيل التلميح لهذا السؤال؟"
531
 
532
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:104
533
  msgid "Answer type"
534
  msgstr "نوع السؤال؟"
535
 
536
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:112
537
  msgid "Single choice"
538
  msgstr "اختيار واحد"
539
 
540
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:116
541
  msgid "Multiple choice"
542
  msgstr "أختيار متعدد"
543
 
544
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:120
545
  msgid "\"Free\" choice"
546
  msgstr "\"حر\" اختيار"
547
 
548
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:124
549
  msgid "\"Sorting\" choice"
550
  msgstr "\"ترتيب\" اختيار"
551
 
552
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:128
553
  msgid "\"Matrix Sorting\" choice"
554
  msgstr "\"ترتيب منظمي\" اختيار"
555
 
556
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:132
557
  msgid "Cloze"
558
  msgstr "اكمل"
559
 
560
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:137
561
  msgid "Answers"
562
  msgstr "اجابات"
563
 
564
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:142
565
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:146
566
  msgid ""
567
  "correct answers (one per line) (answers will be converted to lower case)"
568
  msgstr "الإجابات الصحيحة (واحد في كل سطر) (يتم تحويل الإجابات إلى أحرف صغيرة)"
569
 
570
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:152
571
  msgid ""
572
  "Please sort the answers in right order with the \"Move\" - Button. The "
573
  "answers will be displayed randomly."
575
  "يرجى فرز الإجابات في بالترتيب الصحيح بزر \"نقل\" - . سوف يتم عرض الإجابات "
576
  "بشكل عشوائي."
577
 
578
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:158
579
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:170
580
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:180
581
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:199
 
582
  #: lib/view/WpProQuiz_View_QuestionEdit.php:215
583
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:229
584
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:279
585
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:319
586
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:356
587
  msgid "Delete answer"
588
  msgstr "حذف الاجابة"
589
 
590
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:159
591
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:171
592
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:181
593
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:200
 
594
  #: lib/view/WpProQuiz_View_QuestionEdit.php:216
595
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:230
596
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:278
597
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:318
598
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:355
599
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:50
600
  msgid "Move"
601
  msgstr "تحريك"
602
 
603
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:161
604
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:173
605
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:183
606
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:202
 
607
  #: lib/view/WpProQuiz_View_QuestionEdit.php:218
608
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:232
609
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:265
610
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:271
611
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:305
612
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:311
613
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:342
614
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:348
615
  msgid "Allow HTML"
616
  msgstr "السماح بــ HTML"
617
 
618
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:189
619
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:238
620
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:360
621
  msgid "Add new answer"
622
  msgstr "اضف اجابة جديدة"
623
 
624
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:197
 
625
  #: lib/view/WpProQuiz_View_QuestionEdit.php:213
626
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:227
627
  msgid "correct?"
628
  msgstr "صحيح؟"
629
 
630
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:242
631
  msgid ""
632
  "In this mode, not a list have to be sorted, but elements must be assigned to "
633
  "matching criterion."
635
  "في هذا الوضع، لا يوجد قائمة لا بد من فرزها، ولكن يجب تعيين عناصر مطابقة "
636
  "لمعيار."
637
 
638
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:249
639
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:289
640
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:326
641
  msgid "Criterion"
642
  msgstr "معيار"
643
 
644
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:364
645
  msgid ""
646
  "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
647
  "small letters will be ignored."
653
  msgid "Questions sorted"
654
  msgstr "ترتيب الاسئلة"
655
 
656
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:28
657
+ #: lib/view/WpProQuiz_View_QuizOverall.php:57
658
  msgid "Name"
659
  msgstr "الاسم"
660
 
661
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:30
662
+ #: lib/view/WpProQuiz_View_QuizOverall.php:58
663
  msgid "Action"
664
  msgstr "الحدث"
665
 
666
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:46
667
+ #: lib/view/WpProQuiz_View_QuizOverall.php:74
668
  msgid "Edit"
669
  msgstr "تحرير"
670
 
671
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:48
672
+ #: lib/view/WpProQuiz_View_QuizOverall.php:76
673
  msgid "Delete"
674
  msgstr "حذف"
675
 
676
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:59
677
+ #: lib/view/WpProQuiz_View_Statistics.php:84
678
+ msgid "Total"
679
+ msgstr "المجموع"
680
+
681
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:67
682
  msgid "Add question"
683
  msgstr "اضافة سؤال"
684
 
685
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:68
686
  msgid "Save order"
687
  msgstr "حفظ الترتيب"
688
 
689
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:69
690
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:74
691
  msgid "Copy questions from another Quiz"
692
  msgstr ""
693
 
694
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:75
695
  msgid ""
696
  "Here you can copy questions from another quiz into this quiz. (Multiple "
697
  "selection enabled)"
698
  msgstr ""
699
 
700
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:79
701
  #: lib/view/WpProQuiz_View_Statistics.php:45
702
  msgid "Loading"
703
  msgstr ""
704
 
705
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:87
706
  msgid "Copy questions"
707
  msgstr ""
708
 
830
 
831
  #: lib/view/WpProQuiz_View_QuizEdit.php:250
832
  #: lib/view/WpProQuiz_View_QuizEdit.php:255
833
+ #: lib/view/WpProQuiz_View_QuizOverall.php:80
834
  msgid "Statistics"
835
  msgstr "احصائيات"
836
 
1003
  msgid "Style Manager"
1004
  msgstr ""
1005
 
1006
+ #: lib/view/WpProQuiz_View_QuizOverall.php:55
1007
  msgid "ID"
1008
  msgstr "الرقم"
1009
 
1010
+ #: lib/view/WpProQuiz_View_QuizOverall.php:56
1011
  msgid "Shortcode"
1012
  msgstr "الكود"
1013
 
1014
+ #: lib/view/WpProQuiz_View_QuizOverall.php:78
1015
  msgid "Preview"
1016
  msgstr "استعراض"
1017
 
1018
+ #: lib/view/WpProQuiz_View_QuizOverall.php:89
1019
  msgid "Add quiz"
1020
  msgstr "اضف اختبار"
1021
 
1022
+ #: lib/view/WpProQuiz_View_QuizOverall.php:93
1023
+ #: lib/view/WpProQuiz_View_QuizOverall.php:98
1024
  msgid "Export"
1025
  msgstr "تصدير"
1026
 
1027
+ #: lib/view/WpProQuiz_View_QuizOverall.php:99
1028
  msgid ""
1029
  "Choose the respective question, which you would like to export and press on "
1030
  "\"Start export\""
1031
  msgstr "اختار سؤال، الذي تود أن تقوم بتصديره و اضغط على \"ابدأ التصدير\""
1032
 
1033
+ #: lib/view/WpProQuiz_View_QuizOverall.php:103
1034
  msgid "Start export"
1035
  msgstr "ابدأ التصدير"
1036
 
1037
+ #: lib/view/WpProQuiz_View_QuizOverall.php:109
1038
  msgid "Import only *.wpq files from known and trusted sources."
1039
  msgstr "استورد ملفات *.wpq فقط من مصدر معروف او موثوق به"
1040
 
1041
+ #: lib/view/WpProQuiz_View_QuizOverall.php:117
1042
  #, php-format
1043
  msgid "Maximal %d MiB"
1044
  msgstr "الحد الاقصى من %d MIB"
1061
  msgstr ""
1062
 
1063
  #: lib/view/WpProQuiz_View_Statistics.php:28
1064
+ msgid "Registered users"
1065
  msgstr ""
1066
 
1067
  #: lib/view/WpProQuiz_View_Statistics.php:29
1073
  msgstr ""
1074
 
1075
  #: lib/view/WpProQuiz_View_Statistics.php:57
1076
+ #: lib/view/WpProQuiz_View_Statistics.php:149
1077
  msgid "Hints used"
1078
  msgstr "التلميحات مستخدمة"
1079
 
1080
+ #: lib/view/WpProQuiz_View_Statistics.php:58
1081
+ msgid "Points scored"
1082
+ msgstr ""
1083
 
1084
+ #: lib/view/WpProQuiz_View_Statistics.php:98
1085
  msgid "Reset statistics"
1086
  msgstr "اعادة ضبط الاحصائيات"
1087
 
1088
+ #: lib/view/WpProQuiz_View_Statistics.php:100
1089
+ #: lib/view/WpProQuiz_View_Statistics.php:172
1090
  msgid "Refresh"
1091
  msgstr ""
1092
 
1093
+ #: lib/view/WpProQuiz_View_Statistics.php:104
1094
+ #: lib/view/WpProQuiz_View_Statistics.php:174
1095
  msgid "Reset entire statistic"
1096
  msgstr ""
1097
 
1098
+ #: lib/view/WpProQuiz_View_Statistics.php:115
1099
+ msgid "Filter"
1100
+ msgstr ""
1101
+
1102
+ #: lib/view/WpProQuiz_View_Statistics.php:120
1103
+ msgid "Show only users, who solved the quiz:"
1104
+ msgstr ""
1105
+
1106
+ #: lib/view/WpProQuiz_View_Statistics.php:126
1107
+ msgid "How many entries should be shown on one page:"
1108
+ msgstr ""
1109
+
1110
+ #: lib/view/WpProQuiz_View_Statistics.php:145
1111
+ msgid "User"
1112
+ msgstr ""
1113
+
1114
  #: lib/view/WpProQuiz_View_StyleManager.php:15
1115
  msgid "Front"
1116
  msgstr ""
languages/wp-pro-quiz-de_DE.mo CHANGED
Binary file
languages/wp-pro-quiz-de_DE.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
- "POT-Creation-Date: 2012-12-26 17:50+0100\n"
5
- "PO-Revision-Date: 2012-12-26 17:50+0100\n"
6
  "Last-Translator: Julius Fischer <julius.f@gmx.net>\n"
7
  "Language-Team: Julius Fischer\n"
8
  "Language: German\n"
@@ -14,51 +14,68 @@ msgstr ""
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
- #: lib/controller/WpProQuiz_Controller_Admin.php:91
18
  msgid "Do you really want to delete the quiz/question?"
19
  msgstr "Wollen Sie das Quiz/Frage wirklich löschen?"
20
 
21
- #: lib/controller/WpProQuiz_Controller_Admin.php:92
22
  msgid "Title is not filled!"
23
  msgstr "Titel wurde nicht ausgefüllt!"
24
 
25
- #: lib/controller/WpProQuiz_Controller_Admin.php:93
26
  msgid "No question deposited!"
27
  msgstr "Keine Frage hinterlegt!"
28
 
29
- #: lib/controller/WpProQuiz_Controller_Admin.php:94
30
  msgid "Correct answer was not selected!"
31
  msgstr "Keine korrekte Antwort markiert!"
32
 
33
- #: lib/controller/WpProQuiz_Controller_Admin.php:95
34
  msgid "No answer deposited!"
35
  msgstr "Keine Antwort hinterlegt!"
36
 
37
- #: lib/controller/WpProQuiz_Controller_Admin.php:96
38
  msgid "No quiz description filled!"
39
  msgstr "Quiz-Beschreibung nicht ausgefüllt!"
40
 
41
- #: lib/controller/WpProQuiz_Controller_Admin.php:97
42
  msgid "The percent values in result text are incorrect."
43
  msgstr "Die Prozentwerte im Ergebnistext stimmen nicht."
44
 
45
- #: lib/controller/WpProQuiz_Controller_Admin.php:98
46
  msgid "No number in the field \"Points\" or less than 1"
47
  msgstr "Keine Zahl im Feld \"Punkte\" oder kleiner 1"
48
 
49
- #: lib/controller/WpProQuiz_Controller_Admin.php:99
50
  msgid "No quiz selected"
51
  msgstr "Kein Quiz ausgewählt"
52
 
53
- #: lib/controller/WpProQuiz_Controller_Admin.php:100
54
  msgid "Do you really want to reset the statistic?"
55
  msgstr "Soll die Statistik wirklich zurückgesetzt werden?"
56
 
57
- #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  msgid "Settings saved"
59
  msgstr "Einstellungen gespeichert"
60
 
61
- #: lib/controller/WpProQuiz_Controller_ImportExport.php:70
62
  #: lib/helper/WpProQuiz_Helper_Import.php:54
63
  #: lib/helper/WpProQuiz_Helper_Import.php:63
64
  #: lib/helper/WpProQuiz_Helper_Import.php:70
@@ -67,59 +84,60 @@ msgstr "Datei kann nicht verarbeitet werden"
67
 
68
  #: lib/controller/WpProQuiz_Controller_Question.php:9
69
  #: lib/controller/WpProQuiz_Controller_Question.php:19
70
- #: lib/controller/WpProQuiz_Controller_Quiz.php:63
71
  msgid "Quiz not found"
72
  msgstr "Quiz nicht gefunden"
73
 
74
- #: lib/controller/WpProQuiz_Controller_Question.php:60
75
  msgid "questions copied"
76
  msgstr "Fragen kopiert"
77
 
78
- #: lib/controller/WpProQuiz_Controller_Question.php:121
79
  msgid "Edit question"
80
  msgstr "Frage bearbeiten"
81
 
82
- #: lib/controller/WpProQuiz_Controller_Question.php:125
83
  msgid "Question not found"
84
  msgstr "Frage nicht gefunden"
85
 
86
- #: lib/controller/WpProQuiz_Controller_Question.php:138
87
  #: lib/controller/WpProQuiz_Controller_Question.php:164
 
88
  #, php-format
89
  msgid "Question: %d"
90
  msgstr "Frage: %d"
91
 
92
- #: lib/controller/WpProQuiz_Controller_Question.php:142
93
  msgid "Question edited"
94
  msgstr "Frage geändert"
95
 
96
- #: lib/controller/WpProQuiz_Controller_Question.php:151
97
  msgid "New question"
98
  msgstr "Neue Frage"
99
 
100
- #: lib/controller/WpProQuiz_Controller_Question.php:169
101
  msgid "Question added"
102
  msgstr "Frage hinzugefügt"
103
 
104
- #: lib/controller/WpProQuiz_Controller_Quiz.php:58
 
105
  msgid "Edit quiz"
106
  msgstr "Quiz bearbeiten"
107
 
108
- #: lib/controller/WpProQuiz_Controller_Quiz.php:78
109
  msgid "Quiz edited"
110
  msgstr "Quiz bearbeitet"
111
 
112
- #: lib/controller/WpProQuiz_Controller_Quiz.php:87
113
- #: lib/controller/WpProQuiz_Controller_Quiz.php:115
114
  msgid "Quiz title or quiz description are not filled"
115
  msgstr "Quiz Titel oder Quiz Beschreibung nicht ausgefüllt"
116
 
117
- #: lib/controller/WpProQuiz_Controller_Quiz.php:98
118
- #: lib/controller/WpProQuiz_Controller_Quiz.php:109
119
  msgid "Create quiz"
120
  msgstr "Quiz erstellen"
121
 
122
- #: lib/controller/WpProQuiz_Controller_Quiz.php:135
123
  msgid "Quiz deleted"
124
  msgstr "Quiz gelöscht"
125
 
@@ -131,107 +149,126 @@ msgstr "Datei wurde nicht hochgeladen"
131
  msgid "File have wrong format"
132
  msgstr "Datei hat falsches Format"
133
 
134
- #: lib/view/WpProQuiz_View_FrontQuiz.php:80
 
 
 
 
135
  msgid "Start quiz"
136
  msgstr "Quiz starten"
137
 
138
- #: lib/view/WpProQuiz_View_FrontQuiz.php:85
139
  msgid ""
140
  "You have already completed the quiz before. Hence you can not start it again."
141
  msgstr ""
142
  "Sie haben das Quiz schon einmal absolviert. Daher können sie es nicht erneut "
143
  "starten."
144
 
145
- #: lib/view/WpProQuiz_View_FrontQuiz.php:89
146
- #: lib/view/WpProQuiz_View_Statistics.php:58
 
147
  msgid "Results"
148
  msgstr "Ergebnis"
149
 
150
- #: lib/view/WpProQuiz_View_FrontQuiz.php:91
151
  #, php-format
152
  msgid "%s of %s questions answered correctly"
153
  msgstr "%s von %s Frage korrekt beantwortet"
154
 
155
- #: lib/view/WpProQuiz_View_FrontQuiz.php:94
156
  msgid "Your time: <span></span>"
157
  msgstr "Ihre Zeit: <span></span>"
158
 
159
- #: lib/view/WpProQuiz_View_FrontQuiz.php:97
160
  msgid "Time has elapsed"
161
  msgstr "Zeit ist abgelaufen"
162
 
163
- #: lib/view/WpProQuiz_View_FrontQuiz.php:100
164
  msgid ""
165
  "You have reached <span></span> of <span></span> points, (<span></span>%)"
166
  msgstr ""
167
  "Sie haben <span></span> von <span></span> Punkten erreicht (<span></span>%)"
168
 
169
- #: lib/view/WpProQuiz_View_FrontQuiz.php:115
170
  msgid "Restart quiz"
171
  msgstr "Quiz erneut starten"
172
 
173
- #: lib/view/WpProQuiz_View_FrontQuiz.php:117
174
  msgid "View questions"
175
  msgstr "Fragen ansehen"
176
 
177
- #: lib/view/WpProQuiz_View_FrontQuiz.php:122
178
  #: lib/view/WpProQuiz_View_QuizEdit.php:132
179
  #: lib/view/WpProQuiz_View_QuizEdit.php:137
180
  msgid "Time limit"
181
  msgstr "Zeitlimit"
182
 
183
- #: lib/view/WpProQuiz_View_FrontQuiz.php:135
184
  #, php-format
185
  msgid "Question %s of %s"
186
  msgstr "Frage %s von %s"
187
 
188
- #: lib/view/WpProQuiz_View_FrontQuiz.php:138
189
- #: lib/view/WpProQuiz_View_QuestionEdit.php:35
190
  #: lib/view/WpProQuiz_View_Statistics.php:53
191
  msgid "Question"
192
  msgstr "Frage"
193
 
194
- #: lib/view/WpProQuiz_View_FrontQuiz.php:142
195
  #, php-format
196
  msgid "%d points"
197
  msgstr "%d Punkte"
198
 
199
- #: lib/view/WpProQuiz_View_FrontQuiz.php:152
200
- #: lib/view/WpProQuiz_View_QuestionEdit.php:235
201
- #: lib/view/WpProQuiz_View_QuestionEdit.php:273
202
- #: lib/view/WpProQuiz_View_QuestionEdit.php:308
203
  msgid "Sort elements"
204
  msgstr "Sortierelemente"
205
 
206
- #: lib/view/WpProQuiz_View_FrontQuiz.php:232
 
207
  #: lib/view/WpProQuiz_View_Statistics.php:55
 
208
  msgid "Correct"
209
  msgstr "Korrekt"
210
 
211
- #: lib/view/WpProQuiz_View_FrontQuiz.php:240
 
 
 
 
 
 
 
 
 
 
 
212
  #: lib/view/WpProQuiz_View_Statistics.php:56
 
213
  msgid "Incorrect"
214
  msgstr "Inkorrekt"
215
 
216
- #: lib/view/WpProQuiz_View_FrontQuiz.php:256
217
- #: lib/view/WpProQuiz_View_FrontQuiz.php:266
218
- #: lib/view/WpProQuiz_View_QuestionEdit.php:71
219
  msgid "Hint"
220
  msgstr "Tipp"
221
 
222
- #: lib/view/WpProQuiz_View_FrontQuiz.php:263
223
  msgid "Check"
224
  msgstr "Prüfen"
225
 
226
- #: lib/view/WpProQuiz_View_FrontQuiz.php:264
227
  msgid "Back"
228
  msgstr "Zurück"
229
 
230
- #: lib/view/WpProQuiz_View_FrontQuiz.php:268
231
  msgid "Next exercise"
232
  msgstr "Nächste Frage"
233
 
234
- #: lib/view/WpProQuiz_View_FrontQuiz.php:281
235
  msgid "Finish quiz"
236
  msgstr "Quiz abschließen"
237
 
@@ -245,7 +282,7 @@ msgstr "nicht zu aktivieren"
245
 
246
  #: lib/view/WpProQuiz_View_GobalSettings.php:14
247
  #: lib/view/WpProQuiz_View_GobalSettings.php:25
248
- #: lib/view/WpProQuiz_View_QuizOverall.php:47
249
  msgid "Settings in case of problems"
250
  msgstr "Einstellungen bei Problemen"
251
 
@@ -262,8 +299,8 @@ msgstr ""
262
 
263
  #: lib/view/WpProQuiz_View_GobalSettings.php:21
264
  #: lib/view/WpProQuiz_View_Import.php:22
265
- #: lib/view/WpProQuiz_View_QuestionEdit.php:13
266
- #: lib/view/WpProQuiz_View_QuestionOverall.php:18
267
  #: lib/view/WpProQuiz_View_QuizEdit.php:8
268
  #: lib/view/WpProQuiz_View_Statistics.php:18
269
  #: lib/view/WpProQuiz_View_StyleManager.php:11
@@ -277,6 +314,7 @@ msgstr "Automatisch [raw] Shortcode hinzufügen"
277
 
278
  #: lib/view/WpProQuiz_View_GobalSettings.php:40
279
  #: lib/view/WpProQuiz_View_GobalSettings.php:62
 
280
  #: lib/view/WpProQuiz_View_QuizEdit.php:33
281
  #: lib/view/WpProQuiz_View_QuizEdit.php:52
282
  #: lib/view/WpProQuiz_View_QuizEdit.php:71
@@ -369,15 +407,32 @@ msgstr ""
369
  "Wenn Sie Probleme mit der Touch Library haben, können Sie dies hier "
370
  "deaktivieren."
371
 
372
- #: lib/view/WpProQuiz_View_GobalSettings.php:107
373
- #: lib/view/WpProQuiz_View_QuestionEdit.php:353
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
374
  #: lib/view/WpProQuiz_View_QuizEdit.php:430
375
  msgid "Save"
376
  msgstr "Speichern"
377
 
378
  #: lib/view/WpProQuiz_View_Import.php:21
379
- #: lib/view/WpProQuiz_View_QuizOverall.php:81
380
- #: lib/view/WpProQuiz_View_QuizOverall.php:96
381
  msgid "Import"
382
  msgstr "Import"
383
 
@@ -398,28 +453,28 @@ msgid "Quiz name"
398
  msgstr "Quiz-Name"
399
 
400
  #: lib/view/WpProQuiz_View_Import.php:44
401
- #: lib/view/WpProQuiz_View_QuizOverall.php:69
402
  msgid "Questions"
403
  msgstr "Fragen"
404
 
405
  #: lib/view/WpProQuiz_View_Import.php:67
406
- #: lib/view/WpProQuiz_View_QuizOverall.php:107
407
  msgid "Start import"
408
  msgstr "Import starten"
409
 
410
- #: lib/view/WpProQuiz_View_QuestionEdit.php:17
411
  msgid "Title"
412
  msgstr "Titel"
413
 
414
- #: lib/view/WpProQuiz_View_QuestionEdit.php:17
415
- #: lib/view/WpProQuiz_View_QuestionEdit.php:43
416
- #: lib/view/WpProQuiz_View_QuestionEdit.php:60
417
- #: lib/view/WpProQuiz_View_QuestionEdit.php:71
418
  #: lib/view/WpProQuiz_View_QuizEdit.php:362
419
  msgid "(optional)"
420
  msgstr "(Optional)"
421
 
422
- #: lib/view/WpProQuiz_View_QuestionEdit.php:20
423
  msgid ""
424
  "The title is used for overview, it is not visible in quiz. If you leave the "
425
  "title field empty, a title will be generated."
@@ -427,29 +482,41 @@ msgstr ""
427
  "Der Titel dient nur zur Übersicht, es wird nicht im Quiz angezeigt. Wird der "