Wp-Pro-Quiz - Version 0.13

Version Description

  • Bugfix
  • New screenshots
  • A new Touch Library was added for mobile devices
  • Statistics function has been extended
  • Setting page in case of problems added
  • "Copy questions from another Quiz" function added
  • "Execute quiz only once" option added
Download this release

Release Info

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

Code changes from version 0.12 to 0.13

Files changed (42) hide show
  1. css/wpProQuiz_front.css +7 -0
  2. css/wpProQuiz_front.min.css +1 -1
  3. js/jquery.ui.touch-punch.min.js +11 -0
  4. js/wpProQuiz_admin.js +242 -0
  5. js/wpProQuiz_admin.min.js +27 -19
  6. js/wpProQuiz_front.js +78 -25
  7. js/wpProQuiz_front.min.js +20 -19
  8. languages/wp-pro-quiz-ar.mo +0 -0
  9. languages/wp-pro-quiz-ar.po +370 -160
  10. languages/wp-pro-quiz-de_DE.mo +0 -0
  11. languages/wp-pro-quiz-de_DE.po +391 -158
  12. lib/controller/WpProQuiz_Controller_Admin.php +48 -7
  13. lib/controller/WpProQuiz_Controller_Controller.php +5 -0
  14. lib/controller/WpProQuiz_Controller_Front.php +47 -7
  15. lib/controller/WpProQuiz_Controller_GlobalSettings.php +22 -0
  16. lib/controller/WpProQuiz_Controller_Question.php +60 -0
  17. lib/controller/WpProQuiz_Controller_Quiz.php +152 -0
  18. lib/controller/WpProQuiz_Controller_Statistics.php +83 -14
  19. lib/helper/WpProQuiz_Helper_DbUpgrade.php +100 -7
  20. lib/model/WpProQuiz_Model_GlobalSettings.php +34 -0
  21. lib/model/WpProQuiz_Model_GlobalSettingsMapper.php +34 -0
  22. lib/model/WpProQuiz_Model_Lock.php +23 -0
  23. lib/model/WpProQuiz_Model_LockMapper.php +35 -18
  24. lib/model/WpProQuiz_Model_Mapper.php +4 -0
  25. lib/model/WpProQuiz_Model_QuestionMapper.php +33 -13
  26. lib/model/WpProQuiz_Model_Quiz.php +44 -0
  27. lib/model/WpProQuiz_Model_QuizMapper.php +7 -3
  28. lib/model/WpProQuiz_Model_Statistic.php +63 -0
  29. lib/model/WpProQuiz_Model_StatisticMapper.php +107 -0
  30. lib/view/WpProQuiz_View_FrontQuiz.php +9 -3
  31. lib/view/WpProQuiz_View_GobalSettings.php +114 -0
  32. lib/view/WpProQuiz_View_QuestionOverall.php +28 -0
  33. lib/view/WpProQuiz_View_QuizEdit.php +70 -2
  34. lib/view/WpProQuiz_View_QuizOverall.php +5 -2
  35. lib/view/WpProQuiz_View_Statistics.php +85 -50
  36. readme.txt +11 -2
  37. screenshot-10.png +0 -0
  38. screenshot-6.png +0 -0
  39. screenshot-7.png +0 -0
  40. screenshot-8.png +0 -0
  41. uninstall.php +5 -1
  42. wp-pro-quiz.php +2 -2
css/wpProQuiz_front.css CHANGED
@@ -202,4 +202,11 @@
202
  background-image: none !important;
203
  padding: 0 !important;
204
  margin: 0 !important;
 
 
 
 
 
 
 
205
  }
202
  background-image: none !important;
203
  padding: 0 !important;
204
  margin: 0 !important;
205
+ }
206
+ .wpProQuiz_lock {
207
+ border: 1px dotted #FFC3C3 !important;
208
+ background-color: #FFF7F7 !important;
209
+ }
210
+ .wpProQuiz_lock p {
211
+ margin: 20px !important;
212
  }
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;}
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;}
js/jquery.ui.touch-punch.min.js ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery UI Touch Punch 0.2.2
3
+ *
4
+ * Copyright 2011, Dave Furfero
5
+ * Dual licensed under the MIT or GPL Version 2 licenses.
6
+ *
7
+ * Depends:
8
+ * jquery.ui.widget.js
9
+ * jquery.ui.mouse.js
10
+ */
11
+ (function(b){b.support.touch="ontouchend" in document;if(!b.support.touch){return;}var c=b.ui.mouse.prototype,e=c._mouseInit,a;function d(g,h){if(g.originalEvent.touches.length>1){return;}g.preventDefault();var i=g.originalEvent.changedTouches[0],f=document.createEvent("MouseEvents");f.initMouseEvent(h,true,true,window,1,i.screenX,i.screenY,i.clientX,i.clientY,false,false,false,false,0,null);g.target.dispatchEvent(f);}c._touchStart=function(g){var f=this;if(a||!f._mouseCapture(g.originalEvent.changedTouches[0])){return;}a=true;f._touchMoved=false;d(g,"mouseover");d(g,"mousemove");d(g,"mousedown");};c._touchMove=function(f){if(!a){return;}this._touchMoved=true;d(f,"mousemove");};c._touchEnd=function(f){if(!a){return;}d(f,"mouseup");d(f,"mouseout");if(!this._touchMoved){d(f,"click");}a=false;};c._mouseInit=function(){var f=this;f.element.bind("touchstart",b.proxy(f,"_touchStart")).bind("touchmove",b.proxy(f,"_touchMove")).bind("touchend",b.proxy(f,"_touchEnd"));e.call(f);};})(jQuery);
js/wpProQuiz_admin.js CHANGED
@@ -388,6 +388,50 @@ jQuery(document).ready(function($) {
388
  $('.wpProQuiz_questionOverall tbody').children().each(function() {
389
  $t = $(this).children().first().text($(this).index() + 1);
390
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
391
  }
392
  };
393
 
@@ -409,6 +453,19 @@ jQuery(document).ready(function($) {
409
  e.preventDefault();
410
  methode.saveSort();
411
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
412
  };
413
 
414
  init();
@@ -540,6 +597,18 @@ jQuery(document).ready(function($) {
540
  }
541
 
542
  return true;
 
 
 
 
 
 
 
 
 
 
 
 
543
  }
544
 
545
  };
@@ -589,10 +658,180 @@ jQuery(document).ready(function($) {
589
  e.preventDefault();
590
  });
591
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
592
  $('#statistics_on').change();
593
  $('#wpProQuiz_resultGradeEnabled').change();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
594
  };
595
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
596
  init();
597
  };
598
 
@@ -612,4 +851,7 @@ jQuery(document).ready(function($) {
612
 
613
  if($('.wpProQuiz_questionOverall').length)
614
  $('.wpProQuiz_questionOverall').wpProQuiz_questionOverall();
 
 
 
615
  });
388
  $('.wpProQuiz_questionOverall tbody').children().each(function() {
389
  $t = $(this).children().first().text($(this).index() + 1);
390
  });
391
+ },
392
+
393
+ loadQuestionCopy: function() {
394
+ var list = $('#questionCopySelect');
395
+ var location = window.location.pathname + window.location.search;
396
+ var url = location.replace('admin.php', 'admin-ajax.php') + '&action=load_question';
397
+ var data = {
398
+ action: 'wp_pro_quiz_load_question',
399
+ excludeId: 1
400
+ };
401
+
402
+ list.hide();
403
+ list.empty();
404
+
405
+ $('#loadDataImg').show();
406
+
407
+ $.post(
408
+ url,
409
+ data,
410
+ function(json) {
411
+ $.each(json, function(i, v) {
412
+
413
+ var group = $(document.createElement('optgroup'));
414
+
415
+ group.attr('label', v.name);
416
+
417
+ $.each(v.question, function(qi, qv) {
418
+ $(document.createElement('option'))
419
+ .val(qv.id)
420
+ .text(qv.name)
421
+ .appendTo(group);
422
+
423
+
424
+ });
425
+
426
+ list.append(group);
427
+
428
+ });
429
+
430
+ $('#loadDataImg').hide();
431
+ list.show();
432
+ },
433
+ 'json'
434
+ );
435
  }
436
  };
437
 
453
  e.preventDefault();
454
  methode.saveSort();
455
  });
456
+
457
+ $('#wpProQuiz_questionCopy').click(function(e) {
458
+ var $this = $('.wpProQuiz_questionCopy');
459
+
460
+ if($this.is(':visible')) {
461
+ $this.hide();
462
+ } else {
463
+ $this.show();
464
+ methode.loadQuestionCopy();
465
+ }
466
+
467
+ e.preventDefault();
468
+ });
469
  };
470
 
471
  init();
597
  }
598
 
599
  return true;
600
+ },
601
+
602
+ resetLock: function() {
603
+ var location = window.location.pathname + window.location.search;
604
+ var url = location.replace('admin.php', 'admin-ajax.php');
605
+ url = url.replace('action=edit', 'action=reset_lock');
606
+
607
+ $.post(url, {
608
+ action: 'wp_pro_quiz_reset_lock'
609
+ }, function(data) {
610
+ $('#resetLockMsg').show('fast').delay(2000).hide('fast');
611
+ });
612
  }
613
 
614
  };
658
  e.preventDefault();
659
  });
660
 
661
+ $('input[name="quizRunOnce"]').change(function(e) {
662
+ if(this.checked) {
663
+ $('#wpProQuiz_quiz_run_once_type').show();
664
+ $('input[name="quizRunOnceType"]:checked').change();
665
+ } else {
666
+ $('#wpProQuiz_quiz_run_once_type').hide();
667
+ }
668
+ });
669
+
670
+ $('input[name="quizRunOnceType"]').change(function(e) {
671
+ if(this.checked && (this.value == "1" || this.value == "3")) {
672
+ $('#wpProQuiz_quiz_run_once_cookie').show();
673
+ } else {
674
+ $('#wpProQuiz_quiz_run_once_cookie').hide();
675
+ }
676
+ });
677
+
678
+ $('input[name="resetQuizLock"]').click(function(e) {
679
+ methode.resetLock();
680
+
681
+ return false;
682
+ });
683
+
684
  $('#statistics_on').change();
685
  $('#wpProQuiz_resultGradeEnabled').change();
686
+ $('input[name="quizRunOnce"]').change();
687
+ $('input[name="quizRunOnceType"]:checked').change();
688
+ };
689
+
690
+ init();
691
+ };
692
+
693
+ $.fn.wpProQuiz_statistics = function() {
694
+ var currectTab = 'wpProQuiz_typeAnonymeUser';
695
+
696
+ var methode = {
697
+ loadStatistics: function(userId) {
698
+ var location = window.location.pathname + window.location.search;
699
+ var url = location.replace('admin.php', 'admin-ajax.php') + '&action=load_statistics';
700
+ var data = {
701
+ action: 'wp_pro_quiz_load_statistics',
702
+ userId: userId
703
+ };
704
+
705
+ $('#wpProQuiz_loadData').show();
706
+ $('#wpProQuiz_statistics_content').hide();
707
+
708
+ $.post(
709
+ url,
710
+ data,
711
+ methode.setStatistics,
712
+ 'json'
713
+ );
714
+ },
715
+
716
+ setStatistics: function(json) {
717
+ var $table = $('.wpProQuiz_statistics_table');
718
+ var $tbody = $table.find('tbody');
719
+ var points = 0;
720
+
721
+ var setItem = function(i, j, r) {
722
+ i.find('.wpProQuiz_cCorrect').text(j.cCorrect + ' (' + j.pCorrect + '%)');;
723
+ i.find('.wpProQuiz_cIncorrect').text(j.cIncorrect + ' (' + j.pIncorrect + '%)');;
724
+ i.find('.wpProQuiz_cTip').text(j.cTip);
725
+
726
+ if(r == true) {
727
+ $table.find('.wpProQuiz_cResult').text(
728
+ (Math.round(points / i.find('.wpProQuiz_points').text() * 100 * 100) / 100)
729
+ + "%");
730
+ } else {
731
+ points += j.cCorrect * i.find('.wpProQuiz_points').text();
732
+ }
733
+ };
734
+
735
+ setItem($table, json.clear, false);
736
+
737
+ $.each(json.items, function(i, v) {
738
+ setItem($tbody.find('#wpProQuiz_tr_' + v.id), v, false);
739
+ });
740
+
741
+ setItem($table.find('tfoot'), json.global, true);
742
+
743
+ $('#wpProQuiz_loadData').hide();
744
+ $('#wpProQuiz_statistics_content').show();
745
+ },
746
+
747
+ changeTab: function(id) {
748
+ currectTab = id;
749
+
750
+ if(id == 'wpProQuiz_typeRegisteredUser') {
751
+ methode.loadStatistics($('#userSelect').val());
752
+ } else if( id == 'wpProQuiz_typeAnonymeUser') {
753
+ methode.loadStatistics(0);
754
+ } else {
755
+
756
+ }
757
+ },
758
+
759
+ resetStatistic: function(complete) {
760
+ var userId = (currectTab == 'wpProQuiz_typeRegisteredUser') ? $('#userSelect').val() : 0;
761
+ var location = window.location.pathname + window.location.search;
762
+ var url = location.replace('admin.php', 'admin-ajax.php') + '&action=reset';
763
+ var data = {
764
+ action: 'wp_pro_quiz_statistics',
765
+ userId: userId,
766
+ 'complete': complete
767
+ };
768
+
769
+ $.post(url, data, function(e) {
770
+ methode.changeTab(currectTab);
771
+ });
772
+ }
773
  };
774
 
775
+ var init = function() {
776
+ $('.wpProQuiz_tab').click(function(e) {
777
+ var $this = $(this);
778
+
779
+ if($this.hasClass('button-primary')) {
780
+ return false;
781
+ }
782
+
783
+ if($this.attr('id') == 'wpProQuiz_typeRegisteredUser') {
784
+ $('#wpProQuiz_userBox').show();
785
+ } else {
786
+ $('#wpProQuiz_userBox').hide();
787
+ }
788
+
789
+ $('.wpProQuiz_tab').removeClass('button-primary').addClass('button-secondary');
790
+ $this.removeClass('button-secondary').addClass('button-primary');
791
+
792
+ methode.changeTab($this.attr('id'));
793
+
794
+ return false;
795
+ });
796
+
797
+ $('#userSelect').change(function() {
798
+ methode.changeTab('wpProQuiz_typeRegisteredUser');
799
+ });
800
+
801
+ $('#wpProQuiz_update').click(function() {
802
+ methode.changeTab(currectTab);
803
+
804
+ return false;
805
+ });
806
+
807
+ $('#wpProQuiz_reset').click(function() {
808
+
809
+ var c =confirm(wpProQuizLocalize.reset_statistics_msg);
810
+
811
+ if(c) {
812
+ methode.resetStatistic(false);
813
+ }
814
+
815
+
816
+ return false;
817
+ });
818
+
819
+ $('#wpProQuiz_resetComplete').click(function() {
820
+
821
+ var c =confirm(wpProQuizLocalize.reset_statistics_msg);
822
+
823
+ if(c) {
824
+ methode.resetStatistic(true);
825
+ }
826
+
827
+ return false;
828
+ });
829
+
830
+
831
+
832
+ methode.changeTab('wpProQuiz_typeAnonymeUser');
833
+ };
834
+
835
  init();
836
  };
837
 
851
 
852
  if($('.wpProQuiz_questionOverall').length)
853
  $('.wpProQuiz_questionOverall').wpProQuiz_questionOverall();
854
+
855
+ if($('.wpProQuiz_statistics').length)
856
+ $('.wpProQuiz_statistics').wpProQuiz_statistics();
857
  });
js/wpProQuiz_admin.min.js CHANGED
@@ -1,19 +1,27 @@
1
- jQuery(document).ready(function(a){a.fn.wpProQuiz_preview=function(){var b={openPreview:function(d){window.open(a(d).attr("href"),"wpProQuizPreview","width=900,height=900")}};a(".wpProQuiz_prview").click(function(a){b.openPreview(this);a.preventDefault()})};a.fn.wpProQuiz_quizOverall=function(){var b={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 c=
2
- $this.parent().parent().find(".wpProQuiz_quizName").text();a("<li>"+c+"</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(b){b.preventDefault();a(".wpProQuiz_importList").toggle("fast");a(".wpProQuiz_exportList").hide();a(".wpProQuiz_exportCheck").hide()});a(".wpProQuiz_export").click(function(b){b.preventDefault();a(".wpProQuiz_exportList").toggle("fast");a(".wpProQuiz_exportCheck").toggle("fast");a(".wpProQuiz_importList").hide()});a('input[name="exportItems"]').change(function(){b.changeExport(this)});a('input[name="exportItemsAll"]').change(function(){var b=
4
- a('input[name="exportItems"]');this.checked?b.attr("checked",!0):b.attr("checked",!1);b.change()});a("#exportStart").click(function(a){b.startExport()||a.preventDefault()})};a.fn.wpProQuiz_questionEdit=function(){var b={setup:function(){a('input[name="answerType"]').click(function(){a(".answer_felder").children().css("display","none");switch(this.value){case "single":b.displaySingle("radio");break;case "multiple":b.displaySingle("checkbox");break;case "free_answer":b.displayFreeAnswer();break;case "sort_answer":b.displaySortAnswer();
5
- break;case "matrix_sort_answer":b.displayMatrixSortAnswer();break;case "cloze_answer":b.displayClozeAnswer()}});a(".addAnswer").click(function(){b.addAnswer(this)});a(".deleteAnswer").click(function(){b.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(){b.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(c){a(".classic_answer").find('input[name="answerJson[classic_answer][correct][]"]').each(function(){a("<input type="+c+" />").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(c){a(c).siblings("ul").children().first().clone().css("display","block").appendTo(a(c).siblings("ul"));b.setValueClassicAnswer();a(".deleteAnswer").click(function(){b.deleteAnswer(this)})},deleteAnswer:function(c){a(c).parent("li").remove();b.setValueClassicAnswer()},setValueClassicAnswer:function(){var c=
8
- 0;a('input[name="answerJson[classic_answer][correct][]"]').each(function(){this.value=c++});c=0;a('input[name="answerJson[answer_matrix_sort][sort_string_html][]"]').each(function(){this.value=c++});c=0;a('input[name="answerJson[answer_matrix_sort][answer_html][]"]').each(function(){this.value=c++})}},d=function(){var b="",d=a('input[name="answerType"]:checked'),f=a('input[name="points"]'),b=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(c(b))return alert(wpProQuizLocalize.no_question_msg),!1;if("single"==d.val()||"multiple"==d.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"==d.val()){if(e=!1,a('textarea[name="answerJson[answer_sort][answer][]"]').each(function(){e=c(a(this).val())?e|0:!0}),!e)return alert(wpProQuizLocalize.no_answer_msg),!1}else if("matrix_sort_answer"==d.val()){if(e=!1,a('textarea[name="answerJson[answer_matrix_sort][answer][]"]').each(function(){if(c(a(this).val()))e|=0;else{var b=a(this).parent().parent().find('textarea[name="answerJson[answer_matrix_sort][sort_string][]"]');e=c(b.val())?e|0:!0}}),!e)return alert(wpProQuizLocalize.no_answer_msg),
11
- !1}else if("cloze_answer"==d.val()){if(b="",b=void 0!=tinymce.editors.cloze&&!tinymce.editors.cloze.isHidden()?tinymce.editors.cloze.getContent():a('textarea[name="answerJson[answer_cloze][text]"]').val(),c(b))return alert(wpProQuizLocalize.no_answer_msg),!1}else if("free_answer"==d.val()&&(b=a('textarea[name="answerJson[free_answer][correct]"]').val(),c(b)))return alert(wpProQuizLocalize.no_answer_msg),!1;return!0},c=function(c){c=a.trim(c);return!c||0===c.length};b.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 b={saveSort:function(){var d={action:"wp_pro_quiz_update_sort",sort:b.parseSortArray()},c=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=save_sort";a.post(c,d,function(){a("#sortMsg").show(400).delay(1E3).hide(400)})},
13
- parseSortArray:function(){var b=[];a("tbody tr").each(function(){b.push(this.id.replace("wpProQuiz_questionId_",""))});return b},sortUpdate:function(){a(".wpProQuiz_questionOverall tbody").children().each(function(){$t=a(this).children().first().text(a(this).index()+1)})}};a(".wp-list-table tbody").sortable({handle:".wpProQuiz_move",update:b.sortUpdate});a(".wpProQuiz_delete").click(function(a){return!confirm(wpProQuizLocalize.delete_msg)?(a.preventDefault(),!1):!0});a("#wpProQuiz_saveSort").click(function(a){a.preventDefault();
14
- b.saveSort()})};a.fn.wpProQuiz_quizEdit=function(){var b={addResult:function(){a("#resultList").children().each(function(){if("none"==a(this).css("display")){var c=a(this),b=c.find('textarea[name="resultTextGrade[text][]"]'),d=b.attr("id"),f=!0;c.find('input[name="resultTextGrade[prozent][]"]').val("0");c.find('input[name="resultTextGrade[activ][]"]').val("1").keyup();void 0!=tinymce.editors[d]&&!tinymce.editors[d].isHidden()&&(f=!1);void 0!=switchEditors&&!f&&(switchEditors.go(d,"toggle"),switchEditors.go(d,
15
- "toggle"));void 0!=tinymce.editors[d]?tinymce.editors[d].setContent(""):b.val("");void 0!=tinymce.editors[d]&&!f&&tinyMCE.execCommand("mceRemoveControl",!1,d);c.parent().children(":visible").last().after(c);void 0!=tinymce.editors[d]&&!f&&tinyMCE.execCommand("mceAddControl",!1,d);a(this).show();void 0!=switchEditors&&!f&&switchEditors.go(d,"toggle");return!1}})},deleteResult:function(c){a(c).parent().parent().hide();a(c).siblings('input[name="resultTextGrade[activ][]"]').val("0")},changeResult:function(c){c=
16
- a(c);if(b.validResultInput(c.val()))return c.siblings(".resultProzent").text(c.val()),c.removeAttr("style"),!0;c.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),!1;var c="",c=void 0!=tinymce.editors.text&&!tinymce.editors.text.isHidden()?
17
- tinymce.editors.text.getContent():a('textarea[name="text"]').val();if(d(c))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")&&!b.validResultInput(a(this).find('input[name="resultTextGrade[prozent][]"]').val()))return g=!1});if(!g)return alert(wpProQuizLocalize.fail_grade_result),!1}return!0}},d=function(c){c=a.trim(c);return!c||0===c.length};a("#statistics_on").change(function(){this.checked?
18
- a("#statistics_ip_lock_tr").show():a("#statistics_ip_lock_tr").hide()});a(".addResult").click(function(){b.addResult()});a(".deleteResult").click(function(){b.deleteResult(this)});a('input[name="resultTextGrade[prozent][]"]').keyup(function(){b.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){b.validInput()||
19
- a.preventDefault()});a("#statistics_on").change();a("#wpProQuiz_resultGradeEnabled").change()};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()});
 
 
 
 
 
 
 
 
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("#statistics_on").change();a("#wpProQuiz_resultGradeEnabled").change();a('input[name="quizRunOnce"]').change();a('input[name="quizRunOnceType"]:checked').change()};a.fn.wpProQuiz_statistics=
22
+ 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=a(".wpProQuiz_statistics_table"),d=c.find("tbody"),f=0,e=function(a,b,d){a.find(".wpProQuiz_cCorrect").text(b.cCorrect+
23
+ " ("+b.pCorrect+"%)");a.find(".wpProQuiz_cIncorrect").text(b.cIncorrect+" ("+b.pIncorrect+"%)");a.find(".wpProQuiz_cTip").text(b.cTip);!0==d?c.find(".wpProQuiz_cResult").text(Math.round(1E4*(f/a.find(".wpProQuiz_points").text()))/100+"%"):f+=b.cCorrect*a.find(".wpProQuiz_points").text()};e(c,b.clear,!1);a.each(b.items,function(a,b){e(d.find("#wpProQuiz_tr_"+b.id),b,!1)});e(c.find("tfoot"),b.global,!0);a("#wpProQuiz_loadData").hide();a("#wpProQuiz_statistics_content").show()},changeTab:function(b){c=
24
+ 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,h=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=reset";a.post(h,{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;
25
+ "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")});a("#wpProQuiz_update").click(function(){d.changeTab(c);return!1});a("#wpProQuiz_reset").click(function(){confirm(wpProQuizLocalize.reset_statistics_msg)&&
26
+ 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();a(".wpProQuiz_quizEdit").length&&a(".wpProQuiz_quizEdit").wpProQuiz_quizEdit();a(".wpProQuiz_questionEdit").length&&a(".wpProQuiz_questionEdit").wpProQuiz_questionEdit();
27
+ a(".wpProQuiz_questionOverall").length&&a(".wpProQuiz_questionOverall").wpProQuiz_questionOverall();a(".wpProQuiz_statistics").length&&a(".wpProQuiz_statistics").wpProQuiz_statistics()});
js/wpProQuiz_front.js CHANGED
@@ -11,9 +11,14 @@
11
  var points = 0;
12
  var pointsTotal = 0;
13
 
 
 
 
 
 
14
  plugin.methode = {
15
- startQuiz: function() {
16
-
17
  statistics = new Object();
18
 
19
  if(config.questionRandom) {
@@ -28,22 +33,36 @@
28
 
29
  plugin.methode.answerRandom('.wpProQuiz_sortStringList');
30
 
31
- if(config.timeLimit) {
32
- plugin.methode.setTimeLimit();
33
- }
34
-
35
  correctAnswer = 0;
36
  points = 0;
37
 
38
- startTime = new Date();
39
-
40
  if(config.checkAnswer) {
41
  $element.find('input[name="check"]').show();
42
  } else {
43
  $element.find('input[name="next"]').show();
44
  }
45
-
 
 
 
 
 
 
 
 
46
  $element.find('.wpProQuiz_text').hide();
 
 
 
 
 
 
 
 
 
 
 
 
47
  $element.find('.wpProQuiz_quiz').show();
48
  $element.find('.wpProQuiz_listItem').first().fadeIn(200);
49
 
@@ -75,6 +94,8 @@
75
  $element.find('.wpProQuiz_cloze span').hide();
76
 
77
  plugin.methode.resetMatrix();
 
 
78
  },
79
 
80
  resetMatrix: function() {
@@ -185,6 +206,10 @@
185
 
186
  $question.find('input[name="tip"]').hide();
187
 
 
 
 
 
188
  if(type == 'multiple' || type == 'single') {
189
  var check = true;
190
 
@@ -227,7 +252,7 @@
227
 
228
  var list = $question.find('.wpProQuiz_sortable').parent().parent();
229
  var items = list.children('li');
230
-
231
  list.sortable("destroy");
232
 
233
  items.sort(function(a, b) {
@@ -325,6 +350,8 @@
325
  }
326
 
327
  $question.find('input[name="next"]').show();
 
 
328
  },
329
 
330
  nextQuestion: function(btn) {
@@ -376,7 +403,18 @@
376
  $element.find('.wpProQuiz_resultsList').children().eq(index).show();
377
  }
378
 
379
- plugin.methode.sendStatistics();
 
 
 
 
 
 
 
 
 
 
 
380
  },
381
 
382
  findResultIndex: function(p) {
@@ -406,19 +444,7 @@
406
 
407
  return str;
408
  },
409
-
410
- sendStatistics: function() {
411
- if(!config.statisticsOn)
412
- return;
413
-
414
- $.ajax({
415
- url: config.url,
416
- type: 'POST',
417
- cache: false,
418
- data: {action: 'wp_pro_quiz_statistics_save', 'results': statistics, 'quizId': config.quizId}
419
- });
420
- },
421
-
422
  reShowQuestion: function() {
423
  $element.find('input[name="next"], input[name="check"], input[name="back"]').hide();
424
  $element.find('.wpProQuiz_quiz').children().first().children().show();
@@ -483,12 +509,39 @@
483
 
484
  input.width(width + 10);
485
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
486
  }
487
  };
488
 
489
  plugin.init = function() {
490
  correctAnswer = 0;
491
 
 
 
 
 
 
492
  if(config.resultsGrade == undefined)
493
  config.resultsGrade = [0];
494
 
@@ -506,7 +559,7 @@
506
 
507
  $element.find('input[name="startQuiz"]').click(function(e) {
508
  e.preventDefault();
509
- plugin.methode.startQuiz();
510
  });
511
 
512
  $element.find('input[name="check"]').click(function(e) {
11
  var points = 0;
12
  var pointsTotal = 0;
13
 
14
+ var isLock = false;
15
+ var locked = false;
16
+ var loadLocked = false;
17
+ var startQuiz = false;
18
+
19
  plugin.methode = {
20
+
21
+ preStartQuiz: function() {
22
  statistics = new Object();
23
 
24
  if(config.questionRandom) {
33
 
34
  plugin.methode.answerRandom('.wpProQuiz_sortStringList');
35
 
 
 
 
 
36
  correctAnswer = 0;
37
  points = 0;
38
 
 
 
39
  if(config.checkAnswer) {
40
  $element.find('input[name="check"]').show();
41
  } else {
42
  $element.find('input[name="next"]').show();
43
  }
44
+
45
+ if(!isLock || !loadLocked) {
46
+ plugin.methode.startQuiz();
47
+ } else {
48
+ startQuiz = true;
49
+ }
50
+ },
51
+
52
+ startQuiz: function() {
53
  $element.find('.wpProQuiz_text').hide();
54
+
55
+ if(locked) {
56
+ $element.find('.wpProQuiz_lock').show();
57
+ return;
58
+ }
59
+
60
+ startTime = new Date();
61
+
62
+ if(config.timeLimit) {
63
+ plugin.methode.setTimeLimit();
64
+ }
65
+
66
  $element.find('.wpProQuiz_quiz').show();
67
  $element.find('.wpProQuiz_listItem').first().fadeIn(200);
68
 
94
  $element.find('.wpProQuiz_cloze span').hide();
95
 
96
  plugin.methode.resetMatrix();
97
+
98
+ $element.find('.wpProQuiz_listItem').data('isChecked', false);
99
  },
100
 
101
  resetMatrix: function() {
206
 
207
  $question.find('input[name="tip"]').hide();
208
 
209
+ if($question.data('isChecked')) {
210
+ return;
211
+ }
212
+
213
  if(type == 'multiple' || type == 'single') {
214
  var check = true;
215
 
252
 
253
  var list = $question.find('.wpProQuiz_sortable').parent().parent();
254
  var items = list.children('li');
255
+
256
  list.sortable("destroy");
257
 
258
  items.sort(function(a, b) {
350
  }
351
 
352
  $question.find('input[name="next"]').show();
353
+
354
+ $question.data('isChecked', true);
355
  },
356
 
357
  nextQuestion: function(btn) {
403
  $element.find('.wpProQuiz_resultsList').children().eq(index).show();
404
  }
405
 
406
+ plugin.methode.sendCompletedQuiz();
407
+ },
408
+
409
+ sendCompletedQuiz: function() {
410
+ if(config.preview)
411
+ return;
412
+
413
+ $.post(config.url, {
414
+ action : 'wp_pro_quiz_completed_quiz',
415
+ 'results' : statistics,
416
+ 'quizId' : config.quizId
417
+ });
418
  },
419
 
420
  findResultIndex: function(p) {
444
 
445
  return str;
446
  },
447
+
 
 
 
 
 
 
 
 
 
 
 
 
448
  reShowQuestion: function() {
449
  $element.find('input[name="next"], input[name="check"], input[name="back"]').hide();
450
  $element.find('.wpProQuiz_quiz').children().first().children().show();
509
 
510
  input.width(width + 10);
511
  });
512
+ },
513
+
514
+ checkLock: function() {
515
+
516
+ loadLocked = true;
517
+
518
+ $.post(config.url, {
519
+ action: 'wp_pro_quiz_check_lock',
520
+ quizId: config.quizId
521
+ }, function(json) {
522
+ locked = json.is;
523
+ loadLocked = false;
524
+
525
+ if(json.pre) {
526
+ $element.find('input[name="restartQuiz"]').hide();
527
+ }
528
+
529
+ if(startQuiz) {
530
+ startQuiz = false;
531
+ plugin.methode.startQuiz();
532
+ }
533
+ }, 'json');
534
  }
535
  };
536
 
537
  plugin.init = function() {
538
  correctAnswer = 0;
539
 
540
+ if(config.lock && !config.preview) {
541
+ isLock = true;
542
+ plugin.methode.checkLock();
543
+ }
544
+
545
  if(config.resultsGrade == undefined)
546
  config.resultsGrade = [0];
547
 
559
 
560
  $element.find('input[name="startQuiz"]').click(function(e) {
561
  e.preventDefault();
562
+ plugin.methode.preStartQuiz();
563
  });
564
 
565
  $element.find('input[name="check"]').click(function(e) {
js/wpProQuiz_front.min.js CHANGED
@@ -1,19 +1,20 @@
1
- (function(c){c.wpProQuizFront=function(n,f){var b=c(n),e=this,m=0,i=0,p=0,j={},l=0,k=0;e.methode={startQuiz:function(){j={};f.questionRandom&&e.methode.questionRandom();f.answerRandom?e.methode.answerRandom(".wpProQuiz_questionList"):e.methode.answerRandom(b.find(".wpProQuiz_sortable").parent().parent());e.methode.answerRandom(".wpProQuiz_sortStringList");f.timeLimit&&e.methode.setTimeLimit();l=m=0;p=new Date;f.checkAnswer?b.find('input[name="check"]').show():b.find('input[name="next"]').show();b.find(".wpProQuiz_text").hide();
2
- b.find(".wpProQuiz_quiz").show();b.find(".wpProQuiz_listItem").first().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",placeholder:"wpProQuiz_placehold"}).disableSelection()},reStartQuiz:function(){b.find(".wpProQuiz_answerCorrect").removeClass("wpProQuiz_answerCorrect");b.find(".wpProQuiz_answerIncorrect").removeClass("wpProQuiz_answerIncorrect");
3
- b.find('.wpProQuiz_text, input[name="tip"]').show();b.find(".wpProQuiz_quiz, .wpProQuiz_results, .wpProQuiz_response, .wpProQuiz_correct, .wpProQuiz_incorrect").hide();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");
4
- b.find('input.wpProQuiz_questionInput[type="text"]').removeAttr("value");b.find(".wpProQuiz_resultsList").children().hide();b.find(".wpProQuiz_cloze input").removeAttr("disabled").removeAttr("value").css("background-color","");b.find(".wpProQuiz_cloze span").hide();e.methode.resetMatrix()},resetMatrix:function(){b.find(".wpProQuiz_question").each(function(){var a=c(this),d=a.find(".wpProQuiz_sortStringList");a.find(".wpProQuiz_sortStringItem").each(function(){d.append(c(this))})})},setTimeLimit:function(){var a=
5
- b.find(".wpProQuiz_time_limit"),d=a.find("span"),c=f.timeLimit;a.css({width:"100%",display:"block"});d.html(e.methode.parseTime(c));a.find(".progress").css("width","100%").animate({width:"0%"},1E3*f.timeLimit);i=setInterval(function(){d.html(e.methode.parseTime(c--));0>c&&(clearInterval(i),i=0,a.find(".progress").clearQueue().stop(),b.find('input[name="check"]').click().parent().hide(),b.find(".wpProQuiz_time_limit_expired").show(),e.methode.showResult())},1E3)},parseTime:function(a){var d=parseInt(a%
6
- 60),c=parseInt(a/60%60),a=parseInt(a/3600%24);return(9<a?"":"0")+a+":"+((9<c?"":"0")+c)+":"+((9<d?"":"0")+d)},setQuizTime:function(){var a=((new Date).getTime()-p.getTime())/1E3;b.find(".wpProQuiz_quiz_time span").first().html(e.methode.parseTime(a))},setData:function(){var a=0;b.find(".wpProQuiz_questionList").each(function(){var d=f.json[a],b=0;k+=d.points;c(this).parent().parent().data("type",d.answer_type).data("questionId",d.id).data("points",d.points);c(this).find(".wpProQuiz_questionInput").each(function(){switch(d.answer_type){case "single":case "multiple":0<=
7
- c.inArray(this.value,d.correct)?c(this).data("correct","1"):c(this).data("correct","0");break;case "free_answer":c(this).data("correct",d.correct)}});b=0;c(this).find(".wpProQuiz_sortable").each(function(){c(this).data("correct",d.correct[b++])});b=0;c(this).parent().find(".wpProQuiz_sortStringList").children().each(function(){c(this).data("correct",d.correct[b++])});"matrix_sort_answer"==d.answer_type&&c(this).children().each(function(){c(this).data("correct",c(this).index())});a++})},checkAnswer:function(a){var d=
8
- c(a).parent(),b=!1,f=d.find(".wpProQuiz_questionInput"),h=d.data("type");d.find('input[name="tip"]').hide();if("multiple"==h||"single"==h){var g=!0;f.each(function(){"1"==c(this).data("correct")?(c(this).parent().parent().addClass("wpProQuiz_answerCorrect"),g=this.checked?g&1:g&0):this.checked&&(c(this).parent().parent().addClass("wpProQuiz_answerIncorrect"),g&=0)});b=g}else if("sort_answer"==h){g=!0;d.find(".wpProQuiz_sortable").each(function(){var a=c(this),b=a.parent().index();a.data("correct")==
9
- b?(a.parent().addClass("wpProQuiz_answerCorrect"),g&=1):(a.parent().addClass("wpProQuiz_answerIncorrect"),g=!1);a.css({"box-shadow":"0 0",cursor:"auto"})});var i=d.find(".wpProQuiz_sortable").parent().parent(),b=i.children("li");i.sortable("destroy");b.sort(function(a,b){return c(a).children("div").data("correct")-c(b).children("div").data("correct")});c.each(b,function(a,b){i.append(b)});b=g}else if("free_answer"==h)h=c.trim(f.val()).toLowerCase(),0<=c.inArray(h,f.data("correct"))?(b=!0,f.parent().parent().addClass("wpProQuiz_answerCorrect")):
10
- f.parent().parent().addClass("wpProQuiz_answerIncorrect");else if("matrix_sort_answer"==h){var g=!0,k={};d.find(".wpProQuiz_questionList").children().each(function(){var a=c(this).data("correct"),b=c(this).find(".wpProQuiz_maxtrixSortCriterion");b.children().first().data("correct")==a?(g&=1,b.addClass("wpProQuiz_answerCorrect")):(g=!1,b.addClass("wpProQuiz_answerIncorrect"));k[a]=c(this)});d.find(".wpProQuiz_sortStringItem").each(function(){k[c(this).data("correct")].find(".wpProQuiz_maxtrixSortCriterion").append(this)}).css({"box-shadow":"0 0",
11
- cursor:"auto"});d.find(".wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion").sortable("destroy");b=g}else"cloze_answer"==h&&(g=!0,d.find(".wpProQuiz_cloze").each(function(){var a=c(this).children(),b=a.first(),d=b.val().toLowerCase(),f=a.last().text().toLowerCase(),f=c.trim(f.substr(1,f.length-2)),f=e.methode.cleanupCurlyQuotes(f),d=e.methode.cleanupCurlyQuotes(c.trim(d));f==d?(g&=1,b.css("background-color","#B0DAB0")):(g=!1,b.css("background-color","#FFBABA"),a.last().show());b.attr("disabled",
12
- "disabled")}),b=g);c(a).hide();f.attr("disabled","disabled");void 0==j[d.data("questionId")]&&(j[d.data("questionId")]={});j[d.data("questionId")].correct=Number(b);d.find(".wpProQuiz_response").show();b?(d.find(".wpProQuiz_correct").show(),m++,l+=d.data("points")):d.find(".wpProQuiz_incorrect").show();d.find('input[name="next"]').show()},nextQuestion:function(a){var a=c(a).parent(),d=a.next();a.hide();d.length?(d.show(),f.backButton&&!f.checkAnswer&&d.find('input[name="back"]').show()):(f.checkAnswer||
13
- b.find('input[name="check"]').click(),e.methode.showResult())},backQuestion:function(a){var a=c(a).parent(),b=a.prev();a.hide();b.show()},showResult:function(){clearInterval(i);var a=b.find(".wpProQuiz_points span");b.find(".wpProQuiz_time_limit .progress").clearQueue().stop();b.find(".wpProQuiz_correct_answer").html(m);b.find(".wpProQuiz_results").show();b.find(".wpProQuiz_time_limit").hide();e.methode.setQuizTime();var d=Math.round(1E4*(l/k))/100;a.eq(0).text(l);a.eq(1).text(k);a.eq(2).text(d);
14
- a=e.methode.findResultIndex(d);-1<a&&b.find(".wpProQuiz_resultsList").children().eq(a).show();e.methode.sendStatistics()},findResultIndex:function(a){for(var b=f.resultsGrade,c=-1,e=999999,h=0;h<b.length;h++){var g=b[h];a>=g&&a-g<e&&(e=a-g,c=h)}return c},cleanupCurlyQuotes:function(a){a=a.replace(/\u2018/,"'");a=a.replace(/\u2019/,"'");a=a.replace(/\u201C/,'"');return a=a.replace(/\u201D/,'"')},sendStatistics:function(){f.statisticsOn&&c.ajax({url:f.url,type:"POST",cache:!1,data:{action:"wp_pro_quiz_statistics_save",
15
- results:j,quizId:f.quizId}})},reShowQuestion:function(){b.find('input[name="next"], input[name="check"], input[name="back"]').hide();b.find(".wpProQuiz_quiz").children().first().children().show()},answerRandom:function(a){b.find(a).each(function(){var a=c(this).children(),a=a.sort(function(){return Math.round(Math.random())-0.5}).slice(0,a.length);c(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())-
16
- 0.5}).slice(0,a.length);c(a).appendTo(a[0].parentNode);var d=1;c(a).each(function(){c(this).find(".wpProQuiz_question_page span").eq(0).html(d);c(this).find("h3 span").html(d++)})},showTip:function(a){$tip=c(a).siblings(".wpProQuiz_tipp");$par=c(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=c(this).children(),b=a.first(),a=a.last().clone();
17
- a.css("visibility","hidden");c("body").append(a);var e=a.width();a.remove();b.width(e+10)})}};e.init=function(){m=0;void 0==f.resultsGrade&&(f.resultsGrade=[0]);b.find(".wpProQuiz_quiz, .wpProQuiz_results").hide();b.find(".wpProQuiz_quiz").children().first().children().hide();e.methode.setData();e.methode.setClozeStyle();b.find('input[name="startQuiz"]').click(function(a){a.preventDefault();e.methode.startQuiz()});b.find('input[name="check"]').click(function(a){a.preventDefault();e.methode.checkAnswer(this)});
18
- b.find('input[name="next"]').click(function(a){a.preventDefault();e.methode.nextQuestion(this)});b.find('input[name="restartQuiz"]').click(function(a){a.preventDefault();e.methode.reStartQuiz()});b.find('input[name="reShowQuestion"]').click(function(a){a.preventDefault();e.methode.reShowQuestion(this)});b.find('input[name="back"]').click(function(){e.methode.backQuestion(this)});b.find('input[name="tip"]').click(function(){e.methode.showTip(this)});c(document).mouseup(function(a){var c=b.find(".wpProQuiz_tipp"),
19
- e=b.find('input[name="tip"]');!c.is(a.target)&&(0==c.has(a.target).length&&!e.is(a.target))&&c.hide("fast")})};e.init()};c.fn.wpProQuizFront=function(n){return this.each(function(){void 0==c(this).data("wpProQuizFront")&&c(this).data("wpProQuizFront",new c.wpProQuizFront(this,n))})}})(jQuery);
 
1
+ (function(c){c.wpProQuizFront=function(n,e){var b=c(n),f=this,m=0,i=0,r=0,j={},l=0,k=0,s=!1,t=!1,p=!1,q=!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");l=m=0;e.checkAnswer?b.find('input[name="check"]').show():b.find('input[name="next"]').show();!s||!p?f.methode.startQuiz():
2
+ q=!0},startQuiz:function(){b.find(".wpProQuiz_text").hide();t?b.find(".wpProQuiz_lock").show():(r=new Date,e.timeLimit&&f.methode.setTimeLimit(),b.find(".wpProQuiz_quiz").show(),b.find(".wpProQuiz_listItem").first().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",placeholder:"wpProQuiz_placehold"}).disableSelection())},
3
+ 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();b.find(".wpProQuiz_time_limit, .wpProQuiz_time_limit_expired, .wpProQuiz_sort_correct_answer").hide();b.find(".wpProQuiz_quiz").children().first().children().hide();
4
+ 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();b.find(".wpProQuiz_cloze input").removeAttr("disabled").removeAttr("value").css("background-color","");b.find(".wpProQuiz_cloze span").hide();f.methode.resetMatrix();
5
+ b.find(".wpProQuiz_listItem").data("isChecked",!1)},resetMatrix:function(){b.find(".wpProQuiz_question").each(function(){var a=c(this),d=a.find(".wpProQuiz_sortStringList");a.find(".wpProQuiz_sortStringItem").each(function(){d.append(c(this))})})},setTimeLimit:function(){var a=b.find(".wpProQuiz_time_limit"),d=a.find("span"),c=e.timeLimit;a.css({width:"100%",display:"block"});d.html(f.methode.parseTime(c));a.find(".progress").css("width","100%").animate({width:"0%"},1E3*e.timeLimit);i=setInterval(function(){d.html(f.methode.parseTime(c--));
6
+ 0>c&&(clearInterval(i),i=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 d=parseInt(a%60),c=parseInt(a/60%60),a=parseInt(a/3600%24);return(9<a?"":"0")+a+":"+((9<c?"":"0")+c)+":"+((9<d?"":"0")+d)},setQuizTime:function(){var a=((new Date).getTime()-r.getTime())/1E3;b.find(".wpProQuiz_quiz_time span").first().html(f.methode.parseTime(a))},setData:function(){var a=
7
+ 0;b.find(".wpProQuiz_questionList").each(function(){var d=e.json[a],b=0;k+=d.points;c(this).parent().parent().data("type",d.answer_type).data("questionId",d.id).data("points",d.points);c(this).find(".wpProQuiz_questionInput").each(function(){switch(d.answer_type){case "single":case "multiple":0<=c.inArray(this.value,d.correct)?c(this).data("correct","1"):c(this).data("correct","0");break;case "free_answer":c(this).data("correct",d.correct)}});b=0;c(this).find(".wpProQuiz_sortable").each(function(){c(this).data("correct",
8
+ d.correct[b++])});b=0;c(this).parent().find(".wpProQuiz_sortStringList").children().each(function(){c(this).data("correct",d.correct[b++])});"matrix_sort_answer"==d.answer_type&&c(this).children().each(function(){c(this).data("correct",c(this).index())});a++})},checkAnswer:function(a){var d=c(a).parent(),b=!1,e=d.find(".wpProQuiz_questionInput"),h=d.data("type");d.find('input[name="tip"]').hide();if(!d.data("isChecked")){if("multiple"==h||"single"==h){var g=!0;e.each(function(){"1"==c(this).data("correct")?
9
+ (c(this).parent().parent().addClass("wpProQuiz_answerCorrect"),g=this.checked?g&1:g&0):this.checked&&(c(this).parent().parent().addClass("wpProQuiz_answerIncorrect"),g&=0)});b=g}else if("sort_answer"==h){g=!0;d.find(".wpProQuiz_sortable").each(function(){var a=c(this),b=a.parent().index();a.data("correct")==b?(a.parent().addClass("wpProQuiz_answerCorrect"),g&=1):(a.parent().addClass("wpProQuiz_answerIncorrect"),g=!1);a.css({"box-shadow":"0 0",cursor:"auto"})});var i=d.find(".wpProQuiz_sortable").parent().parent(),
10
+ b=i.children("li");i.sortable("destroy");b.sort(function(a,b){return c(a).children("div").data("correct")-c(b).children("div").data("correct")});c.each(b,function(a,b){i.append(b)});b=g}else if("free_answer"==h)h=c.trim(e.val()).toLowerCase(),0<=c.inArray(h,e.data("correct"))?(b=!0,e.parent().parent().addClass("wpProQuiz_answerCorrect")):e.parent().parent().addClass("wpProQuiz_answerIncorrect");else if("matrix_sort_answer"==h){var g=!0,k={};d.find(".wpProQuiz_questionList").children().each(function(){var a=
11
+ c(this).data("correct"),b=c(this).find(".wpProQuiz_maxtrixSortCriterion");b.children().first().data("correct")==a?(g&=1,b.addClass("wpProQuiz_answerCorrect")):(g=!1,b.addClass("wpProQuiz_answerIncorrect"));k[a]=c(this)});d.find(".wpProQuiz_sortStringItem").each(function(){k[c(this).data("correct")].find(".wpProQuiz_maxtrixSortCriterion").append(this)}).css({"box-shadow":"0 0",cursor:"auto"});d.find(".wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion").sortable("destroy");b=g}else"cloze_answer"==
12
+ h&&(g=!0,d.find(".wpProQuiz_cloze").each(function(){var a=c(this).children(),b=a.first(),d=b.val().toLowerCase(),e=a.last().text().toLowerCase(),e=c.trim(e.substr(1,e.length-2)),e=f.methode.cleanupCurlyQuotes(e),d=f.methode.cleanupCurlyQuotes(c.trim(d));e==d?(g&=1,b.css("background-color","#B0DAB0")):(g=!1,b.css("background-color","#FFBABA"),a.last().show());b.attr("disabled","disabled")}),b=g);c(a).hide();e.attr("disabled","disabled");void 0==j[d.data("questionId")]&&(j[d.data("questionId")]={});
13
+ j[d.data("questionId")].correct=Number(b);d.find(".wpProQuiz_response").show();b?(d.find(".wpProQuiz_correct").show(),m++,l+=d.data("points")):d.find(".wpProQuiz_incorrect").show();d.find('input[name="next"]').show();d.data("isChecked",!0)}},nextQuestion:function(a){var a=c(a).parent(),d=a.next();a.hide();d.length?(d.show(),e.backButton&&!e.checkAnswer&&d.find('input[name="back"]').show()):(e.checkAnswer||b.find('input[name="check"]').click(),f.methode.showResult())},backQuestion:function(a){var a=
14
+ c(a).parent(),b=a.prev();a.hide();b.show()},showResult:function(){clearInterval(i);var a=b.find(".wpProQuiz_points span");b.find(".wpProQuiz_time_limit .progress").clearQueue().stop();b.find(".wpProQuiz_correct_answer").html(m);b.find(".wpProQuiz_results").show();b.find(".wpProQuiz_time_limit").hide();f.methode.setQuizTime();var d=Math.round(1E4*(l/k))/100;a.eq(0).text(l);a.eq(1).text(k);a.eq(2).text(d);a=f.methode.findResultIndex(d);-1<a&&b.find(".wpProQuiz_resultsList").children().eq(a).show();
15
+ f.methode.sendCompletedQuiz()},sendCompletedQuiz:function(){e.preview||c.post(e.url,{action:"wp_pro_quiz_completed_quiz",results:j,quizId:e.quizId})},findResultIndex:function(a){for(var b=e.resultsGrade,c=-1,f=999999,h=0;h<b.length;h++){var g=b[h];a>=g&&a-g<f&&(f=a-g,c=h)}return c},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"]').hide();
16
+ b.find(".wpProQuiz_quiz").children().first().children().show()},answerRandom:function(a){b.find(a).each(function(){var a=c(this).children(),a=a.sort(function(){return Math.round(Math.random())-0.5}).slice(0,a.length);c(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);c(a).appendTo(a[0].parentNode);var d=1;c(a).each(function(){c(this).find(".wpProQuiz_question_page span").eq(0).html(d);
17
+ c(this).find("h3 span").html(d++)})},showTip:function(a){$tip=c(a).siblings(".wpProQuiz_tipp");$par=c(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=c(this).children(),b=a.first(),a=a.last().clone();a.css("visibility","hidden");c("body").append(a);var e=a.width();a.remove();b.width(e+10)})},checkLock:function(){p=!0;c.post(e.url,{action:"wp_pro_quiz_check_lock",
18
+ quizId:e.quizId},function(a){t=a.is;p=!1;a.pre&&b.find('input[name="restartQuiz"]').hide();q&&(q=!1,f.methode.startQuiz())},"json")}};f.init=function(){m=0;e.lock&&!e.preview&&(s=!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();f.methode.setData();f.methode.setClozeStyle();b.find('input[name="startQuiz"]').click(function(a){a.preventDefault();f.methode.preStartQuiz()});
19
+ 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();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)});
20
+ c(document).mouseup(function(a){var c=b.find(".wpProQuiz_tipp"),e=b.find('input[name="tip"]');!c.is(a.target)&&(0==c.has(a.target).length&&!e.is(a.target))&&c.hide("fast")})};f.init()};c.fn.wpProQuizFront=function(n){return this.each(function(){void 0==c(this).data("wpProQuizFront")&&c(this).data("wpProQuizFront",new c.wpProQuizFront(this,n))})}})(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-13 14:11+0100\n"
5
- "PO-Revision-Date: 2012-12-13 14:11+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,42 +14,50 @@ msgstr ""
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
- #: lib/controller/WpProQuiz_Controller_Admin.php:35
18
  msgid "Do you really want to delete the quiz/question?"
19
  msgstr "هل تريد حقاً ان تحذف هذا الاختبار/السؤال؟"
20
 
21
- #: lib/controller/WpProQuiz_Controller_Admin.php:36
22
  msgid "Title is not filled!"
23
  msgstr "لم يتم تعبئة هذا!"
24
 
25
- #: lib/controller/WpProQuiz_Controller_Admin.php:37
26
  msgid "No question deposited!"
27
  msgstr "لم يتم وضع سؤال!"
28
 
29
- #: lib/controller/WpProQuiz_Controller_Admin.php:38
30
  msgid "Correct answer was not selected!"
31
  msgstr "لم يتم اختيار اجابة صحيحة!"
32
 
33
- #: lib/controller/WpProQuiz_Controller_Admin.php:39
34
  msgid "No answer deposited!"
35
  msgstr "لم يتم وضع اجابة!"
36
 
37
- #: lib/controller/WpProQuiz_Controller_Admin.php:40
38
  msgid "No quiz description filled!"
39
  msgstr "لم يتم تعبئة وصف للاختبار!"
40
 
41
- #: lib/controller/WpProQuiz_Controller_Admin.php:41
42
  msgid "The percent values in result text are incorrect."
43
  msgstr "النسبة المئوية في نص النتائج غير صحيحة."
44
 
45
- #: lib/controller/WpProQuiz_Controller_Admin.php:42
46
  msgid "No number in the field \"Points\" or less than 1"
47
  msgstr "لا يوجد رقم في حقل /\"النقاط/\" أو أقل من 1"
48
 
49
- #: lib/controller/WpProQuiz_Controller_Admin.php:43
50
  msgid "No quiz selected"
51
  msgstr "لم يتم اختيار اختبار"
52
 
 
 
 
 
 
 
 
 
53
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:70
54
  #: lib/helper/WpProQuiz_Helper_Import.php:54
55
  #: lib/helper/WpProQuiz_Helper_Import.php:63
@@ -59,55 +67,59 @@ msgstr "لا يمكن استكمال الملف"
59
 
60
  #: lib/controller/WpProQuiz_Controller_Question.php:9
61
  #: lib/controller/WpProQuiz_Controller_Question.php:19
62
- #: lib/controller/WpProQuiz_Controller_Quiz.php:42
63
  msgid "Quiz not found"
64
  msgstr "لم يتم العثور على الاختبار"
65
 
66
- #: lib/controller/WpProQuiz_Controller_Question.php:61
 
 
 
 
67
  msgid "Edit question"
68
  msgstr "تحرير السؤال"
69
 
70
- #: lib/controller/WpProQuiz_Controller_Question.php:65
71
  msgid "Question not found"
72
  msgstr "لم يتم العثور على السؤال"
73
 
74
- #: lib/controller/WpProQuiz_Controller_Question.php:78
75
- #: lib/controller/WpProQuiz_Controller_Question.php:104
76
  #, php-format
77
  msgid "Question: %d"
78
  msgstr "السؤال: %d"
79
 
80
- #: lib/controller/WpProQuiz_Controller_Question.php:82
81
  msgid "Question edited"
82
  msgstr "تم تحرير السؤال"
83
 
84
- #: lib/controller/WpProQuiz_Controller_Question.php:91
85
  msgid "New question"
86
  msgstr "سؤال جديد"
87
 
88
- #: lib/controller/WpProQuiz_Controller_Question.php:109
89
  msgid "Question added"
90
  msgstr "تم اضافة سؤال"
91
 
92
- #: lib/controller/WpProQuiz_Controller_Quiz.php:37
93
  msgid "Edit quiz"
94
  msgstr "تحرير الاختبار"
95
 
96
- #: lib/controller/WpProQuiz_Controller_Quiz.php:57
97
  msgid "Quiz edited"
98
  msgstr "تم تحرير الاختبار"
99
 
100
- #: lib/controller/WpProQuiz_Controller_Quiz.php:66
101
- #: lib/controller/WpProQuiz_Controller_Quiz.php:94
102
  msgid "Quiz title or quiz description are not filled"
103
  msgstr "لم يتم تعبئة عنوان او وصف الاختبار"
104
 
105
- #: lib/controller/WpProQuiz_Controller_Quiz.php:77
106
- #: lib/controller/WpProQuiz_Controller_Quiz.php:88
107
  msgid "Create quiz"
108
  msgstr "انشاء اختبار"
109
 
110
- #: lib/controller/WpProQuiz_Controller_Quiz.php:106
111
  msgid "Quiz deleted"
112
  msgstr "تم حذف الاختبار"
113
 
@@ -123,108 +135,228 @@ msgstr "صيغة الملف خاطئة"
123
  msgid "Start quiz"
124
  msgstr "بدأ الاختبار"
125
 
126
- #: lib/view/WpProQuiz_View_FrontQuiz.php:72
 
 
 
 
 
 
127
  msgid "Results"
128
  msgstr "النتائج"
129
 
130
- #: lib/view/WpProQuiz_View_FrontQuiz.php:74
131
  #, php-format
132
  msgid "%s of %s questions answered correctly"
133
  msgstr "تم اجابة %s من %s اسئلة بشكل صحيح"
134
 
135
- #: lib/view/WpProQuiz_View_FrontQuiz.php:77
136
  msgid "Your time: <span></span>"
137
  msgstr "وقتك: <span></span>"
138
 
139
- #: lib/view/WpProQuiz_View_FrontQuiz.php:80
140
  msgid "Time has elapsed"
141
  msgstr "مضى من الوقت"
142
 
143
- #: lib/view/WpProQuiz_View_FrontQuiz.php:83
144
  msgid ""
145
  "You have reached <span></span> of <span></span> points, (<span></span>%)"
146
  msgstr "لقد وصلت الي <span></span> من <span></span> لنقاط, (<span></span>%)"
147
 
148
- #: lib/view/WpProQuiz_View_FrontQuiz.php:98
149
  msgid "Restart quiz"
150
  msgstr "اعادة الاختبار"
151
 
152
- #: lib/view/WpProQuiz_View_FrontQuiz.php:100
153
- #, fuzzy
154
  msgid "View questions"
155
  msgstr "استعراض الاسئلة"
156
 
157
- #: lib/view/WpProQuiz_View_FrontQuiz.php:105
158
- #: lib/view/WpProQuiz_View_QuizEdit.php:126
159
- #: lib/view/WpProQuiz_View_QuizEdit.php:131
160
  msgid "Time limit"
161
  msgstr "الوقت المحدد"
162
 
163
- #: lib/view/WpProQuiz_View_FrontQuiz.php:118
164
  #, php-format
165
  msgid "Question %s of %s"
166
  msgstr "اسئلة %s من %s "
167
 
168
- #: lib/view/WpProQuiz_View_FrontQuiz.php:121
169
  #, php-format
170
  msgid "%d points"
171
  msgstr "%d درجات"
172
 
173
- #: lib/view/WpProQuiz_View_FrontQuiz.php:125
174
  #: lib/view/WpProQuiz_View_QuestionEdit.php:35
175
- #: lib/view/WpProQuiz_View_Statistics.php:19
176
  msgid "Question"
177
  msgstr "اسئلة"
178
 
179
- #: lib/view/WpProQuiz_View_FrontQuiz.php:132
180
  #: lib/view/WpProQuiz_View_QuestionEdit.php:235
181
  #: lib/view/WpProQuiz_View_QuestionEdit.php:273
182
  #: lib/view/WpProQuiz_View_QuestionEdit.php:308
183
  msgid "Sort elements"
184
  msgstr "ترتيب العناصر"
185
 
186
- #: lib/view/WpProQuiz_View_FrontQuiz.php:211
187
- #: lib/view/WpProQuiz_View_Statistics.php:21
188
  msgid "Correct"
189
  msgstr "صحيح"
190
 
191
- #: lib/view/WpProQuiz_View_FrontQuiz.php:219
192
- #: lib/view/WpProQuiz_View_Statistics.php:20
193
  msgid "Incorrect"
194
  msgstr "خطأ"
195
 
196
- #: lib/view/WpProQuiz_View_FrontQuiz.php:235
197
- #: lib/view/WpProQuiz_View_FrontQuiz.php:245
198
  #: lib/view/WpProQuiz_View_QuestionEdit.php:71
199
  msgid "Hint"
200
  msgstr "تلميح"
201
 
202
- #: lib/view/WpProQuiz_View_FrontQuiz.php:242
203
  msgid "Check"
204
  msgstr "التحقق"
205
 
206
- #: lib/view/WpProQuiz_View_FrontQuiz.php:243
207
  msgid "Back"
208
  msgstr "العودة"
209
 
210
- #: lib/view/WpProQuiz_View_FrontQuiz.php:247
211
  msgid "Next exercise"
212
  msgstr "التمرين التالي"
213
 
214
- #: lib/view/WpProQuiz_View_Import.php:21
215
- #: lib/view/WpProQuiz_View_QuizOverall.php:77
216
- #: lib/view/WpProQuiz_View_QuizOverall.php:92
217
- msgid "Import"
218
- msgstr "استيراد"
 
 
 
 
 
 
 
 
219
 
 
 
 
 
 
 
 
 
 
 
220
  #: lib/view/WpProQuiz_View_Import.php:22
221
  #: lib/view/WpProQuiz_View_QuestionEdit.php:13
222
- #: lib/view/WpProQuiz_View_QuestionOverall.php:9
223
  #: lib/view/WpProQuiz_View_QuizEdit.php:8
224
- #: lib/view/WpProQuiz_View_Statistics.php:8
225
  msgid "back to overview"
226
  msgstr "العودة للرئيسية"
227
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
228
  #: lib/view/WpProQuiz_View_Import.php:25
229
  msgid "Error"
230
  msgstr "خطأ"
@@ -242,12 +374,12 @@ msgid "Quiz name"
242
  msgstr "اسم الاختبار"
243
 
244
  #: lib/view/WpProQuiz_View_Import.php:44
245
- #: lib/view/WpProQuiz_View_QuizOverall.php:65
246
  msgid "Questions"
247
  msgstr "اسئلة"
248
 
249
  #: lib/view/WpProQuiz_View_Import.php:67
250
- #: lib/view/WpProQuiz_View_QuizOverall.php:103
251
  msgid "Start import"
252
  msgstr "ابدأ الاستيراد"
253
 
@@ -259,7 +391,7 @@ msgstr "العنوان"
259
  #: lib/view/WpProQuiz_View_QuestionEdit.php:43
260
  #: lib/view/WpProQuiz_View_QuestionEdit.php:60
261
  #: lib/view/WpProQuiz_View_QuestionEdit.php:71
262
- #: lib/view/WpProQuiz_View_QuizEdit.php:232
263
  msgid "(optional)"
264
  msgstr "(اختيار)"
265
 
@@ -273,6 +405,7 @@ msgstr ""
273
 
274
  #: lib/view/WpProQuiz_View_QuestionEdit.php:26
275
  #: lib/view/WpProQuiz_View_QuestionEdit.php:31
 
276
  msgid "Points"
277
  msgstr "درجات"
278
 
@@ -280,7 +413,7 @@ msgstr "درجات"
280
  #: lib/view/WpProQuiz_View_QuestionEdit.php:35
281
  #: lib/view/WpProQuiz_View_QuestionEdit.php:123
282
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
283
- #: lib/view/WpProQuiz_View_QuizEdit.php:221
284
  msgid "(required)"
285
  msgstr "(مطلوب)"
286
 
@@ -393,7 +526,7 @@ msgstr "حذف الاجابة"
393
  #: lib/view/WpProQuiz_View_QuestionEdit.php:262
394
  #: lib/view/WpProQuiz_View_QuestionEdit.php:300
395
  #: lib/view/WpProQuiz_View_QuestionEdit.php:335
396
- #: lib/view/WpProQuiz_View_QuestionOverall.php:29
397
  msgid "Move"
398
  msgstr "تحريك"
399
 
@@ -446,43 +579,58 @@ msgstr ""
446
  "لاحتوائه مع قاموس رواجا مثل {} \"{} I كرة القدم ألعاب \". يتم تجاهل الحروف "
447
  "الكبيرة والصغيرة."
448
 
449
- #: lib/view/WpProQuiz_View_QuestionEdit.php:353
450
- #: lib/view/WpProQuiz_View_QuizEdit.php:300
451
- msgid "Save"
452
- msgstr "حفظ"
453
-
454
- #: lib/view/WpProQuiz_View_QuestionOverall.php:8
455
  msgid "Questions sorted"
456
  msgstr "ترتيب الاسئلة"
457
 
458
- #: lib/view/WpProQuiz_View_QuestionOverall.php:14
459
- #: lib/view/WpProQuiz_View_QuizOverall.php:51
460
  msgid "Name"
461
  msgstr "الاسم"
462
 
463
- #: lib/view/WpProQuiz_View_QuestionOverall.php:15
464
- #: lib/view/WpProQuiz_View_QuizOverall.php:52
465
  msgid "Action"
466
  msgstr "الحدث"
467
 
468
- #: lib/view/WpProQuiz_View_QuestionOverall.php:27
469
- #: lib/view/WpProQuiz_View_QuizOverall.php:66
470
  msgid "Edit"
471
  msgstr "تحرير"
472
 
473
- #: lib/view/WpProQuiz_View_QuestionOverall.php:28
474
- #: lib/view/WpProQuiz_View_QuizOverall.php:67
475
  msgid "Delete"
476
  msgstr "حذف"
477
 
478
- #: lib/view/WpProQuiz_View_QuestionOverall.php:36
479
  msgid "Add question"
480
  msgstr "اضافة سؤال"
481
 
482
- #: lib/view/WpProQuiz_View_QuestionOverall.php:37
483
  msgid "Save order"
484
  msgstr "حفظ الترتيب"
485
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
486
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
487
  msgid "Quiz title"
488
  msgstr "عنوان الاختبار"
@@ -499,72 +647,72 @@ msgstr "اخفاء عنوان الاختبار"
499
  msgid "Hide title"
500
  msgstr "اخفاء العنوان"
501
 
502
- #: lib/view/WpProQuiz_View_QuizEdit.php:35
503
  msgid "The title serves as quiz heading."
504
  msgstr "العنوان يظهر كعنوانا من اجل الاختبار."
505
 
506
- #: lib/view/WpProQuiz_View_QuizEdit.php:42
507
- #: lib/view/WpProQuiz_View_QuizEdit.php:47
508
  msgid "Hide \"Restart quiz\" button"
509
- msgstr ""
510
 
511
- #: lib/view/WpProQuiz_View_QuizEdit.php:53
512
  msgid "Hide the \"Restart quiz\" button in the Frontend."
513
- msgstr ""
514
 
515
- #: lib/view/WpProQuiz_View_QuizEdit.php:60
516
- #: lib/view/WpProQuiz_View_QuizEdit.php:65
517
  msgid "Hide \"View question\" button"
518
- msgstr ""
519
 
520
- #: lib/view/WpProQuiz_View_QuizEdit.php:71
521
  msgid "Hide the \"View question\" button in the Frontend."
522
- msgstr ""
523
 
524
- #: lib/view/WpProQuiz_View_QuizEdit.php:78
525
- #: lib/view/WpProQuiz_View_QuizEdit.php:83
526
  msgid "Show points"
527
  msgstr "اعرض الدرجات"
528
 
529
- #: lib/view/WpProQuiz_View_QuizEdit.php:89
530
  msgid "Shows in quiz, how many points are reachable for respective question."
531
  msgstr "يظهر في الاختبار، كم عدد نقاط يمكن الوصول للأسئلة المعنية."
532
 
533
- #: lib/view/WpProQuiz_View_QuizEdit.php:96
534
- #: lib/view/WpProQuiz_View_QuizEdit.php:101
535
  msgid "Display question randomly"
536
  msgstr "اعرض الاسئلة عشوائياً"
537
 
538
- #: lib/view/WpProQuiz_View_QuizEdit.php:111
539
  #: lib/view/WpProQuiz_View_QuizEdit.php:116
 
540
  msgid "Display answers randomly"
541
  msgstr "اعرض الاجابات عشوائياً"
542
 
543
- #: lib/view/WpProQuiz_View_QuizEdit.php:134
544
  msgid "Seconds"
545
  msgstr "ثواني"
546
 
547
- #: lib/view/WpProQuiz_View_QuizEdit.php:137
548
  msgid "0 = no limit"
549
  msgstr "0 = بدون وقت محدد"
550
 
551
- #: lib/view/WpProQuiz_View_QuizEdit.php:144
552
- #: lib/view/WpProQuiz_View_QuizEdit.php:149
553
  msgid "Check -> continue"
554
  msgstr "فحص->استكمال"
555
 
556
- #: lib/view/WpProQuiz_View_QuizEdit.php:155
557
  msgid ""
558
  "Show \"right or wrong\" after the question. Otherwise the solutions will be "
559
  "displayed at the end."
560
  msgstr "عرض\"صواب أو خطأ\" بعد السؤال. وإلا يتم عرض الحلول في نهاية المطاف."
561
 
562
- #: lib/view/WpProQuiz_View_QuizEdit.php:162
563
- #: lib/view/WpProQuiz_View_QuizEdit.php:167
564
  msgid "Back button"
565
  msgstr "زر العودة"
566
 
567
- #: lib/view/WpProQuiz_View_QuizEdit.php:173
568
  msgid ""
569
  "Allow to use back button in a question. (Option will be ignored if \"Check -"
570
  "> Continue\" was used)"
@@ -572,17 +720,13 @@ msgstr ""
572
  "السماح لاستخدام زر العودة في سؤال. (سيتم تجاهل الخيار إذا\"تم تأشير زر -> "
573
  "متابعة \" مستخدماً)"
574
 
575
- #: lib/view/WpProQuiz_View_QuizEdit.php:180
576
- #: lib/view/WpProQuiz_View_QuizEdit.php:185
577
- #: lib/view/WpProQuiz_View_QuizOverall.php:69
578
  msgid "Statistics"
579
  msgstr "احصائيات"
580
 
581
- #: lib/view/WpProQuiz_View_QuizEdit.php:189
582
- msgid "activate"
583
- msgstr "تفعيل"
584
-
585
- #: lib/view/WpProQuiz_View_QuizEdit.php:192
586
  msgid ""
587
  "Statistics about right or wrong answers. Statistics will be saved by "
588
  "completed quiz, not after every question. The statistics is only visible "
@@ -592,16 +736,16 @@ msgstr ""
592
  "الاختبار، وليس بعد كل سؤال. الإحصاءات تظهر فقط خلال قائمة الإدارة. "
593
  "(الإحصاءات الداخلية)"
594
 
595
- #: lib/view/WpProQuiz_View_QuizEdit.php:199
596
- #: lib/view/WpProQuiz_View_QuizEdit.php:204
597
  msgid "Statistics IP-lock"
598
  msgstr "احصائيات قفل-اي بي"
599
 
600
- #: lib/view/WpProQuiz_View_QuizEdit.php:208
601
  msgid "in minutes (recommended 1440 minutes = 1 day)"
602
  msgstr "بالدقائق (مستحسن 1440 دقيقة = 1 يوم)"
603
 
604
- #: lib/view/WpProQuiz_View_QuizEdit.php:211
605
  msgid ""
606
  "Protect the statistics from spam. Result will only be saved every X minutes "
607
  "from same IP. (0 = deactivated)"
@@ -609,37 +753,87 @@ msgstr ""
609
  "حماية الإحصاءات من البريد المزعج. النتائج سوف تحفظ كل * دقيقة من نفي الاي "
610
  "بي. (0= غير مفعل)"
611
 
612
- #: lib/view/WpProQuiz_View_QuizEdit.php:221
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
613
  msgid "Quiz description"
614
  msgstr "وصف الاختبار"
615
 
616
- #: lib/view/WpProQuiz_View_QuizEdit.php:224
617
  msgid "This text will be displayed before start of the quiz."
618
  msgstr "سيتم عرض هذا النص قبل بدء الاختبار."
619
 
620
- #: lib/view/WpProQuiz_View_QuizEdit.php:232
621
  msgid "Results text"
622
  msgstr "نص النتائج"
623
 
624
- #: lib/view/WpProQuiz_View_QuizEdit.php:235
625
  msgid ""
626
  "This text will be displayed at the end of the quiz (in results). (this text "
627
  "is optional)"
628
  msgstr "سيتم عرض هذا النص في نهاية الاختبار (في النتائج). (هذا النص اختياري)"
629
 
630
- #: lib/view/WpProQuiz_View_QuizEdit.php:239
631
  msgid "Activate graduation"
632
  msgstr "تفعيل التقييم"
633
 
634
- #: lib/view/WpProQuiz_View_QuizEdit.php:245
635
  msgid "Hint:"
636
  msgstr "تلميح:"
637
 
638
- #: lib/view/WpProQuiz_View_QuizEdit.php:247
639
  msgid "Maximal 15 levels"
640
  msgstr "اقصى حد 15 مستوى"
641
 
642
- #: lib/view/WpProQuiz_View_QuizEdit.php:249
643
  #, php-format
644
  msgid ""
645
  "Percentages refer to the total score of the quiz. (Current total %d points "
@@ -648,26 +842,26 @@ msgstr ""
648
  "النسبة المئوية تشير الي الدرجة الكلية للأختبار.( المجموع الحالي %d درجة في "
649
  "%d سؤال"
650
 
651
- #: lib/view/WpProQuiz_View_QuizEdit.php:252
652
  msgid "Values can also be mixed up"
653
  msgstr "يمكن لخبطة القيم"
654
 
655
- #: lib/view/WpProQuiz_View_QuizEdit.php:253
656
  msgid "10,15% or 10.15% allowed (max. two digits after the decimal point)"
657
  msgstr "10.15% او 10.15% مسموح به (اقصى حد هو رقمين بعد النسبة المئوية)"
658
 
659
- #: lib/view/WpProQuiz_View_QuizEdit.php:269
660
- #: lib/view/WpProQuiz_View_QuizEdit.php:280
661
  msgid "from:"
662
  msgstr "من:"
663
 
664
- #: lib/view/WpProQuiz_View_QuizEdit.php:269
665
- #: lib/view/WpProQuiz_View_QuizEdit.php:280
666
  msgid "percent"
667
  msgstr "النسبة المئوية"
668
 
669
- #: lib/view/WpProQuiz_View_QuizEdit.php:269
670
- #: lib/view/WpProQuiz_View_QuizEdit.php:280
671
  #, php-format
672
  msgid ""
673
  "(Will be displayed, when result-percent is >= <span class=\"resultProzent\">"
@@ -676,12 +870,12 @@ msgstr ""
676
  "(سوف يتم عرضه، عندما تكون نسبة النتيجة>= <span class=\"resultProzent\">%s</"
677
  "span>%%)"
678
 
679
- #: lib/view/WpProQuiz_View_QuizEdit.php:270
680
- #: lib/view/WpProQuiz_View_QuizEdit.php:281
681
  msgid "Delete graduation"
682
  msgstr "حذف التقييم"
683
 
684
- #: lib/view/WpProQuiz_View_QuizEdit.php:288
685
  msgid "Add graduation"
686
  msgstr "اضافة تقييم"
687
 
@@ -697,79 +891,95 @@ msgstr "في حالة وجود مشاكل"
697
  msgid "If quiz doesn't work in front-end, please try following:"
698
  msgstr "إذا الاختبار لا يعمل في الواجهة الأمامية، يرجى تجربة التالي:"
699
 
700
- #: lib/view/WpProQuiz_View_QuizOverall.php:42
701
- msgid ""
702
- "Own themes changes internal order of filters, what causes the problems. "
703
- "With additional shortcode [raw] this is prevented."
704
- msgstr ""
705
- "الثيمات الخاصة تغير النظام الداخلي للمرشحات، مما يسبب المشاكل. مع الرمز "
706
- "القصير إضافية [الخام] يتم منع هذا. MIB"
707
-
708
- #: lib/view/WpProQuiz_View_QuizOverall.php:49
709
  msgid "ID"
710
  msgstr "الرقم"
711
 
712
- #: lib/view/WpProQuiz_View_QuizOverall.php:50
713
  msgid "Shortcode"
714
  msgstr "الكود"
715
 
716
- #: lib/view/WpProQuiz_View_QuizOverall.php:68
717
  msgid "Preview"
718
  msgstr "استعراض"
719
 
720
- #: lib/view/WpProQuiz_View_QuizOverall.php:76
721
  msgid "Add quiz"
722
  msgstr "اضف اختبار"
723
 
724
- #: lib/view/WpProQuiz_View_QuizOverall.php:78
725
- #: lib/view/WpProQuiz_View_QuizOverall.php:82
726
  msgid "Export"
727
  msgstr "تصدير"
728
 
729
- #: lib/view/WpProQuiz_View_QuizOverall.php:83
730
  msgid ""
731
  "Choose the respective question, which you would like to export and press on "
732
  "\"Start export\""
733
  msgstr "اختار سؤال، الذي تود أن تقوم بتصديره و اضغط على \"ابدأ التصدير\""
734
 
735
- #: lib/view/WpProQuiz_View_QuizOverall.php:87
736
  msgid "Start export"
737
  msgstr "ابدأ التصدير"
738
 
739
- #: lib/view/WpProQuiz_View_QuizOverall.php:93
740
  msgid "Import only *.wpq files from known and trusted sources."
741
  msgstr "استورد ملفات *.wpq فقط من مصدر معروف او موثوق به"
742
 
743
- #: lib/view/WpProQuiz_View_QuizOverall.php:101
744
  #, php-format
745
  msgid "Maximal %d MiB"
746
- msgstr ""
747
 
748
- #: lib/view/WpProQuiz_View_Statistics.php:7
749
  #, php-format
750
  msgid "Quiz: %s - Statistics"
751
  msgstr "احصائيات اختبار: %s "
752
 
753
- #: lib/view/WpProQuiz_View_Statistics.php:11
754
  msgid "Stats not enabled"
755
  msgstr "الاحصائيات غير مفعلة"
756
 
757
- #: lib/view/WpProQuiz_View_Statistics.php:12
758
  msgid "Activate statistics"
759
  msgstr "تفعيل الاحصائيات"
760
 
761
- #: lib/view/WpProQuiz_View_Statistics.php:22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
762
  msgid "Hints used"
763
  msgstr "التلميحات مستخدمة"
764
 
765
- #: lib/view/WpProQuiz_View_Statistics.php:59
766
  msgid "Total"
767
  msgstr "المجموع"
768
 
769
- #: lib/view/WpProQuiz_View_Statistics.php:66
770
  msgid "Reset statistics"
771
  msgstr "اعادة ضبط الاحصائيات"
772
 
 
 
 
 
 
 
 
 
773
  #~ msgid "One question is one point"
774
  #~ msgstr "سؤال واحد يعني درجة واحدة"
775
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
+ "POT-Creation-Date: 2012-12-22 15:43+0100\n"
5
+ "PO-Revision-Date: 2012-12-22 15:43+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:72
18
  msgid "Do you really want to delete the quiz/question?"
19
  msgstr "هل تريد حقاً ان تحذف هذا الاختبار/السؤال؟"
20
 
21
+ #: lib/controller/WpProQuiz_Controller_Admin.php:73
22
  msgid "Title is not filled!"
23
  msgstr "لم يتم تعبئة هذا!"
24
 
25
+ #: lib/controller/WpProQuiz_Controller_Admin.php:74
26
  msgid "No question deposited!"
27
  msgstr "لم يتم وضع سؤال!"
28
 
29
+ #: lib/controller/WpProQuiz_Controller_Admin.php:75
30
  msgid "Correct answer was not selected!"
31
  msgstr "لم يتم اختيار اجابة صحيحة!"
32
 
33
+ #: lib/controller/WpProQuiz_Controller_Admin.php:76
34
  msgid "No answer deposited!"
35
  msgstr "لم يتم وضع اجابة!"
36
 
37
+ #: lib/controller/WpProQuiz_Controller_Admin.php:77
38
  msgid "No quiz description filled!"
39
  msgstr "لم يتم تعبئة وصف للاختبار!"
40
 
41
+ #: lib/controller/WpProQuiz_Controller_Admin.php:78
42
  msgid "The percent values in result text are incorrect."
43
  msgstr "النسبة المئوية في نص النتائج غير صحيحة."
44
 
45
+ #: lib/controller/WpProQuiz_Controller_Admin.php:79
46
  msgid "No number in the field \"Points\" or less than 1"
47
  msgstr "لا يوجد رقم في حقل /\"النقاط/\" أو أقل من 1"
48
 
49
+ #: lib/controller/WpProQuiz_Controller_Admin.php:80
50
  msgid "No quiz selected"
51
  msgstr "لم يتم اختيار اختبار"
52
 
53
+ #: lib/controller/WpProQuiz_Controller_Admin.php:81
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
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
 
135
  msgid "Start quiz"
136
  msgstr "بدأ الاختبار"
137
 
138
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:73
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:77
144
+ #: lib/view/WpProQuiz_View_Statistics.php:58
145
  msgid "Results"
146
  msgstr "النتائج"
147
 
148
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:79
149
  #, php-format
150
  msgid "%s of %s questions answered correctly"
151
  msgstr "تم اجابة %s من %s اسئلة بشكل صحيح"
152
 
153
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:82
154
  msgid "Your time: <span></span>"
155
  msgstr "وقتك: <span></span>"
156
 
157
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:85
158
  msgid "Time has elapsed"
159
  msgstr "مضى من الوقت"
160
 
161
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:88
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:103
167
  msgid "Restart quiz"
168
  msgstr "اعادة الاختبار"
169
 
170
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:105
 
171
  msgid "View questions"
172
  msgstr "استعراض الاسئلة"
173
 
174
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:110
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:123
181
  #, php-format
182
  msgid "Question %s of %s"
183
  msgstr "اسئلة %s من %s "
184
 
185
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:126
186
  #, php-format
187
  msgid "%d points"
188
  msgstr "%d درجات"
189
 
190
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:130
191
  #: lib/view/WpProQuiz_View_QuestionEdit.php:35
192
+ #: lib/view/WpProQuiz_View_Statistics.php:53
193
  msgid "Question"
194
  msgstr "اسئلة"
195
 
196
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:137
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:216
204
+ #: lib/view/WpProQuiz_View_Statistics.php:55
205
  msgid "Correct"
206
  msgstr "صحيح"
207
 
208
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:224
209
+ #: lib/view/WpProQuiz_View_Statistics.php:56
210
  msgid "Incorrect"
211
  msgstr "خطأ"
212
 
213
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:240
214
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:250
215
  #: lib/view/WpProQuiz_View_QuestionEdit.php:71
216
  msgid "Hint"
217
  msgstr "تلميح"
218
 
219
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:247
220
  msgid "Check"
221
  msgstr "التحقق"
222
 
223
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:248
224
  msgid "Back"
225
  msgstr "العودة"
226
 
227
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:252
228
  msgid "Next exercise"
229
  msgstr "التمرين التالي"
230
 
231
+ #: lib/view/WpProQuiz_View_GobalSettings.php:7
232
+ msgid "to activate"
233
+ msgstr ""
234
+
235
+ #: lib/view/WpProQuiz_View_GobalSettings.php:9
236
+ msgid "not to activate"
237
+ msgstr ""
238
+
239
+ #: lib/view/WpProQuiz_View_GobalSettings.php:14
240
+ #: lib/view/WpProQuiz_View_GobalSettings.php:25
241
+ #: lib/view/WpProQuiz_View_QuizOverall.php:46
242
+ msgid "Settings in case of problems"
243
+ msgstr ""
244
 
245
+ #: lib/view/WpProQuiz_View_GobalSettings.php:16
246
+ msgid "Please note"
247
+ msgstr ""
248
+
249
+ #: lib/view/WpProQuiz_View_GobalSettings.php:18
250
+ msgid ""
251
+ "These settings should only be set in cases of problems with Wp-Pro-Quiz."
252
+ msgstr ""
253
+
254
+ #: lib/view/WpProQuiz_View_GobalSettings.php:21
255
  #: lib/view/WpProQuiz_View_Import.php:22
256
  #: lib/view/WpProQuiz_View_QuestionEdit.php:13
257
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:18
258
  #: lib/view/WpProQuiz_View_QuizEdit.php:8
259
+ #: lib/view/WpProQuiz_View_Statistics.php:18
260
  msgid "back to overview"
261
  msgstr "العودة للرئيسية"
262
 
263
+ #: lib/view/WpProQuiz_View_GobalSettings.php:31
264
+ #: lib/view/WpProQuiz_View_GobalSettings.php:36
265
+ msgid "Automatically add [raw] shortcode"
266
+ msgstr ""
267
+
268
+ #: lib/view/WpProQuiz_View_GobalSettings.php:40
269
+ #: lib/view/WpProQuiz_View_GobalSettings.php:62
270
+ #: lib/view/WpProQuiz_View_QuizEdit.php:33
271
+ #: lib/view/WpProQuiz_View_QuizEdit.php:52
272
+ #: lib/view/WpProQuiz_View_QuizEdit.php:71
273
+ #: lib/view/WpProQuiz_View_QuizEdit.php:90
274
+ #: lib/view/WpProQuiz_View_QuizEdit.php:109
275
+ #: lib/view/WpProQuiz_View_QuizEdit.php:125
276
+ #: lib/view/WpProQuiz_View_QuizEdit.php:159
277
+ #: lib/view/WpProQuiz_View_QuizEdit.php:178
278
+ #: lib/view/WpProQuiz_View_QuizEdit.php:197
279
+ #: lib/view/WpProQuiz_View_QuizEdit.php:237
280
+ msgid "Activate"
281
+ msgstr ""
282
+
283
+ #: lib/view/WpProQuiz_View_GobalSettings.php:40
284
+ #, php-format
285
+ msgid "It is recommended %s this option on your system."
286
+ msgstr ""
287
+
288
+ #: lib/view/WpProQuiz_View_GobalSettings.php:43
289
+ msgid ""
290
+ "If this option is activated, a [raw] shortcode is automatically set around "
291
+ "WpProQuiz shortcode ( [WpProQuiz X] ) into [raw] [WpProQuiz X] [/raw]"
292
+ msgstr ""
293
+
294
+ #: lib/view/WpProQuiz_View_GobalSettings.php:46
295
+ #: lib/view/WpProQuiz_View_QuizOverall.php:42
296
+ msgid ""
297
+ "Own themes changes internal order of filters, what causes the problems. "
298
+ "With additional shortcode [raw] this is prevented."
299
+ msgstr ""
300
+ "الثيمات الخاصة تغير النظام الداخلي للمرشحات، مما يسبب المشاكل. مع الرمز "
301
+ "القصير إضافية [الخام] يتم منع هذا. MIB"
302
+
303
+ #: lib/view/WpProQuiz_View_GobalSettings.php:53
304
+ #: lib/view/WpProQuiz_View_GobalSettings.php:58
305
+ msgid "Do not load the Javascript-files in the footer"
306
+ msgstr ""
307
+
308
+ #: lib/view/WpProQuiz_View_GobalSettings.php:65
309
+ msgid ""
310
+ "Generally all WpProQuiz-Javascript files are loaded in the footer and only "
311
+ "when they are really needed."
312
+ msgstr ""
313
+
314
+ #: lib/view/WpProQuiz_View_GobalSettings.php:68
315
+ msgid "In very old Wordpress themes this can lead to problems."
316
+ msgstr ""
317
+
318
+ #: lib/view/WpProQuiz_View_GobalSettings.php:71
319
+ msgid ""
320
+ "If you activate this option, all WpProQuiz-Javascript files are loaded in "
321
+ "the header even if they are not needed."
322
+ msgstr ""
323
+
324
+ #: lib/view/WpProQuiz_View_GobalSettings.php:74
325
+ #, php-format
326
+ msgid ""
327
+ "Anyone who wants to learn more about this topic should read through the "
328
+ "following websites %s and %s."
329
+ msgstr ""
330
+
331
+ #: lib/view/WpProQuiz_View_GobalSettings.php:83
332
+ #: lib/view/WpProQuiz_View_GobalSettings.php:88
333
+ msgid "Touch Library"
334
+ msgstr ""
335
+
336
+ #: lib/view/WpProQuiz_View_GobalSettings.php:92
337
+ msgid "Deactivate"
338
+ msgstr ""
339
+
340
+ #: lib/view/WpProQuiz_View_GobalSettings.php:95
341
+ msgid "In Version 0.13 a new Touch Library was added for mobile devices."
342
+ msgstr ""
343
+
344
+ #: lib/view/WpProQuiz_View_GobalSettings.php:98
345
+ msgid "If you have any problems with the Touch Library, please deactivate it."
346
+ msgstr ""
347
+
348
+ #: lib/view/WpProQuiz_View_GobalSettings.php:107
349
+ #: lib/view/WpProQuiz_View_QuestionEdit.php:353
350
+ #: lib/view/WpProQuiz_View_QuizEdit.php:368
351
+ msgid "Save"
352
+ msgstr "حفظ"
353
+
354
+ #: lib/view/WpProQuiz_View_Import.php:21
355
+ #: lib/view/WpProQuiz_View_QuizOverall.php:80
356
+ #: lib/view/WpProQuiz_View_QuizOverall.php:95
357
+ msgid "Import"
358
+ msgstr "استيراد"
359
+
360
  #: lib/view/WpProQuiz_View_Import.php:25
361
  msgid "Error"
362
  msgstr "خطأ"
374
  msgstr "اسم الاختبار"
375
 
376
  #: lib/view/WpProQuiz_View_Import.php:44
377
+ #: lib/view/WpProQuiz_View_QuizOverall.php:68
378
  msgid "Questions"
379
  msgstr "اسئلة"
380
 
381
  #: lib/view/WpProQuiz_View_Import.php:67
382
+ #: lib/view/WpProQuiz_View_QuizOverall.php:106
383
  msgid "Start import"
384
  msgstr "ابدأ الاستيراد"
385
 
391
  #: lib/view/WpProQuiz_View_QuestionEdit.php:43
392
  #: lib/view/WpProQuiz_View_QuestionEdit.php:60
393
  #: lib/view/WpProQuiz_View_QuestionEdit.php:71
394
+ #: lib/view/WpProQuiz_View_QuizEdit.php:300
395
  msgid "(optional)"
396
  msgstr "(اختيار)"
397
 
405
 
406
  #: lib/view/WpProQuiz_View_QuestionEdit.php:26
407
  #: lib/view/WpProQuiz_View_QuestionEdit.php:31
408
+ #: lib/view/WpProQuiz_View_Statistics.php:54
409
  msgid "Points"
410
  msgstr "درجات"
411
 
413
  #: lib/view/WpProQuiz_View_QuestionEdit.php:35
414
  #: lib/view/WpProQuiz_View_QuestionEdit.php:123
415
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
416
+ #: lib/view/WpProQuiz_View_QuizEdit.php:289
417
  msgid "(required)"
418
  msgstr "(مطلوب)"
419
 
526
  #: lib/view/WpProQuiz_View_QuestionEdit.php:262
527
  #: lib/view/WpProQuiz_View_QuestionEdit.php:300
528
  #: lib/view/WpProQuiz_View_QuestionEdit.php:335
529
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:38
530
  msgid "Move"
531
  msgstr "تحريك"
532
 
579
  "لاحتوائه مع قاموس رواجا مثل {} \"{} I كرة القدم ألعاب \". يتم تجاهل الحروف "
580
  "الكبيرة والصغيرة."
581
 
582
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:17
 
 
 
 
 
583
  msgid "Questions sorted"
584
  msgstr "ترتيب الاسئلة"
585
 
586
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:23
587
+ #: lib/view/WpProQuiz_View_QuizOverall.php:54
588
  msgid "Name"
589
  msgstr "الاسم"
590
 
591
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:24
592
+ #: lib/view/WpProQuiz_View_QuizOverall.php:55
593
  msgid "Action"
594
  msgstr "الحدث"
595
 
596
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:36
597
+ #: lib/view/WpProQuiz_View_QuizOverall.php:69
598
  msgid "Edit"
599
  msgstr "تحرير"
600
 
601
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:37
602
+ #: lib/view/WpProQuiz_View_QuizOverall.php:70
603
  msgid "Delete"
604
  msgstr "حذف"
605
 
606
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:45
607
  msgid "Add question"
608
  msgstr "اضافة سؤال"
609
 
610
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:46
611
  msgid "Save order"
612
  msgstr "حفظ الترتيب"
613
 
614
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:47
615
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:51
616
+ msgid "Copy questions from another Quiz"
617
+ msgstr ""
618
+
619
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:52
620
+ msgid ""
621
+ "Here you can copy questions from another quiz into this quiz. (Multiple "
622
+ "selection enabled)"
623
+ msgstr ""
624
+
625
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:56
626
+ #: lib/view/WpProQuiz_View_Statistics.php:45
627
+ msgid "Loading"
628
+ msgstr ""
629
+
630
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:64
631
+ msgid "Copy questions"
632
+ msgstr ""
633
+
634
  #: lib/view/WpProQuiz_View_QuizEdit.php:12
635
  msgid "Quiz title"
636
  msgstr "عنوان الاختبار"
647
  msgid "Hide title"
648
  msgstr "اخفاء العنوان"
649
 
650
+ #: lib/view/WpProQuiz_View_QuizEdit.php:36
651
  msgid "The title serves as quiz heading."
652
  msgstr "العنوان يظهر كعنوانا من اجل الاختبار."
653
 
654
+ #: lib/view/WpProQuiz_View_QuizEdit.php:43
655
+ #: lib/view/WpProQuiz_View_QuizEdit.php:48
656
  msgid "Hide \"Restart quiz\" button"
657
+ msgstr "اخفاء زر\"اعادة الاختبار\""
658
 
659
+ #: lib/view/WpProQuiz_View_QuizEdit.php:55
660
  msgid "Hide the \"Restart quiz\" button in the Frontend."
661
+ msgstr "اخفاء زر \"اعادة الاختبار\" في الواجهة"
662
 
663
+ #: lib/view/WpProQuiz_View_QuizEdit.php:62
664
+ #: lib/view/WpProQuiz_View_QuizEdit.php:67
665
  msgid "Hide \"View question\" button"
666
+ msgstr "اخفاء زر \"عرض السؤال\""
667
 
668
+ #: lib/view/WpProQuiz_View_QuizEdit.php:74
669
  msgid "Hide the \"View question\" button in the Frontend."
670
+ msgstr "اخفاء زر \"عرض السؤال\" في الواجهة"
671
 
672
+ #: lib/view/WpProQuiz_View_QuizEdit.php:81
673
+ #: lib/view/WpProQuiz_View_QuizEdit.php:86
674
  msgid "Show points"
675
  msgstr "اعرض الدرجات"
676
 
677
+ #: lib/view/WpProQuiz_View_QuizEdit.php:93
678
  msgid "Shows in quiz, how many points are reachable for respective question."
679
  msgstr "يظهر في الاختبار، كم عدد نقاط يمكن الوصول للأسئلة المعنية."
680
 
681
+ #: lib/view/WpProQuiz_View_QuizEdit.php:100
682
+ #: lib/view/WpProQuiz_View_QuizEdit.php:105
683
  msgid "Display question randomly"
684
  msgstr "اعرض الاسئلة عشوائياً"
685
 
 
686
  #: lib/view/WpProQuiz_View_QuizEdit.php:116
687
+ #: lib/view/WpProQuiz_View_QuizEdit.php:121
688
  msgid "Display answers randomly"
689
  msgstr "اعرض الاجابات عشوائياً"
690
 
691
+ #: lib/view/WpProQuiz_View_QuizEdit.php:140
692
  msgid "Seconds"
693
  msgstr "ثواني"
694
 
695
+ #: lib/view/WpProQuiz_View_QuizEdit.php:143
696
  msgid "0 = no limit"
697
  msgstr "0 = بدون وقت محدد"
698
 
699
+ #: lib/view/WpProQuiz_View_QuizEdit.php:150
700
+ #: lib/view/WpProQuiz_View_QuizEdit.php:155
701
  msgid "Check -> continue"
702
  msgstr "فحص->استكمال"
703
 
704
+ #: lib/view/WpProQuiz_View_QuizEdit.php:162
705
  msgid ""
706
  "Show \"right or wrong\" after the question. Otherwise the solutions will be "
707
  "displayed at the end."
708
  msgstr "عرض\"صواب أو خطأ\" بعد السؤال. وإلا يتم عرض الحلول في نهاية المطاف."
709
 
710
+ #: lib/view/WpProQuiz_View_QuizEdit.php:169
711
+ #: lib/view/WpProQuiz_View_QuizEdit.php:174
712
  msgid "Back button"
713
  msgstr "زر العودة"
714
 
715
+ #: lib/view/WpProQuiz_View_QuizEdit.php:181
716
  msgid ""
717
  "Allow to use back button in a question. (Option will be ignored if \"Check -"
718
  "> Continue\" was used)"
720
  "السماح لاستخدام زر العودة في سؤال. (سيتم تجاهل الخيار إذا\"تم تأشير زر -> "
721
  "متابعة \" مستخدماً)"
722
 
723
+ #: lib/view/WpProQuiz_View_QuizEdit.php:188
724
+ #: lib/view/WpProQuiz_View_QuizEdit.php:193
725
+ #: lib/view/WpProQuiz_View_QuizOverall.php:72
726
  msgid "Statistics"
727
  msgstr "احصائيات"
728
 
729
+ #: lib/view/WpProQuiz_View_QuizEdit.php:200
 
 
 
 
730
  msgid ""
731
  "Statistics about right or wrong answers. Statistics will be saved by "
732
  "completed quiz, not after every question. The statistics is only visible "
736
  "الاختبار، وليس بعد كل سؤال. الإحصاءات تظهر فقط خلال قائمة الإدارة. "
737
  "(الإحصاءات الداخلية)"
738
 
739
+ #: lib/view/WpProQuiz_View_QuizEdit.php:207
740
+ #: lib/view/WpProQuiz_View_QuizEdit.php:212
741
  msgid "Statistics IP-lock"
742
  msgstr "احصائيات قفل-اي بي"
743
 
744
+ #: lib/view/WpProQuiz_View_QuizEdit.php:216
745
  msgid "in minutes (recommended 1440 minutes = 1 day)"
746
  msgstr "بالدقائق (مستحسن 1440 دقيقة = 1 يوم)"
747
 
748
+ #: lib/view/WpProQuiz_View_QuizEdit.php:219
749
  msgid ""
750
  "Protect the statistics from spam. Result will only be saved every X minutes "
751
  "from same IP. (0 = deactivated)"
753
  "حماية الإحصاءات من البريد المزعج. النتائج سوف تحفظ كل * دقيقة من نفي الاي "
754
  "بي. (0= غير مفعل)"
755
 
756
+ #: lib/view/WpProQuiz_View_QuizEdit.php:226
757
+ #: lib/view/WpProQuiz_View_QuizEdit.php:232
758
+ msgid "Execute quiz only once"
759
+ msgstr ""
760
+
761
+ #: lib/view/WpProQuiz_View_QuizEdit.php:240
762
+ msgid ""
763
+ "If you activate this option, the user can complete the quiz only once. "
764
+ "Afterwards the quiz is blocked for this user."
765
+ msgstr ""
766
+
767
+ #: lib/view/WpProQuiz_View_QuizEdit.php:244
768
+ msgid "This option applies to:"
769
+ msgstr ""
770
+
771
+ #: lib/view/WpProQuiz_View_QuizEdit.php:252
772
+ msgid "all users"
773
+ msgstr ""
774
+
775
+ #: lib/view/WpProQuiz_View_QuizEdit.php:256
776
+ msgid "registered useres only"
777
+ msgstr ""
778
+
779
+ #: lib/view/WpProQuiz_View_QuizEdit.php:260
780
+ msgid "anonymous users only"
781
+ msgstr ""
782
+
783
+ #: lib/view/WpProQuiz_View_QuizEdit.php:266
784
+ msgid "user identification by cookie"
785
+ msgstr ""
786
+
787
+ #: lib/view/WpProQuiz_View_QuizEdit.php:269
788
+ msgid ""
789
+ "If you activate this option, a cookie is set additionally for unregistrated "
790
+ "(anonymous) users. This ensures a longer assignment of the user than the "
791
+ "simple assignment by the IP address."
792
+ msgstr ""
793
+
794
+ #: lib/view/WpProQuiz_View_QuizEdit.php:274
795
+ msgid "Reset the user identification"
796
+ msgstr ""
797
+
798
+ #: lib/view/WpProQuiz_View_QuizEdit.php:275
799
+ msgid "User identification has been reset."
800
+ msgstr ""
801
+
802
+ #: lib/view/WpProQuiz_View_QuizEdit.php:277
803
+ msgid "Resets user identification for all users."
804
+ msgstr ""
805
+
806
+ #: lib/view/WpProQuiz_View_QuizEdit.php:289
807
  msgid "Quiz description"
808
  msgstr "وصف الاختبار"
809
 
810
+ #: lib/view/WpProQuiz_View_QuizEdit.php:292
811
  msgid "This text will be displayed before start of the quiz."
812
  msgstr "سيتم عرض هذا النص قبل بدء الاختبار."
813
 
814
+ #: lib/view/WpProQuiz_View_QuizEdit.php:300
815
  msgid "Results text"
816
  msgstr "نص النتائج"
817
 
818
+ #: lib/view/WpProQuiz_View_QuizEdit.php:303
819
  msgid ""
820
  "This text will be displayed at the end of the quiz (in results). (this text "
821
  "is optional)"
822
  msgstr "سيتم عرض هذا النص في نهاية الاختبار (في النتائج). (هذا النص اختياري)"
823
 
824
+ #: lib/view/WpProQuiz_View_QuizEdit.php:307
825
  msgid "Activate graduation"
826
  msgstr "تفعيل التقييم"
827
 
828
+ #: lib/view/WpProQuiz_View_QuizEdit.php:313
829
  msgid "Hint:"
830
  msgstr "تلميح:"
831
 
832
+ #: lib/view/WpProQuiz_View_QuizEdit.php:315
833
  msgid "Maximal 15 levels"
834
  msgstr "اقصى حد 15 مستوى"
835
 
836
+ #: lib/view/WpProQuiz_View_QuizEdit.php:317
837
  #, php-format
838
  msgid ""
839
  "Percentages refer to the total score of the quiz. (Current total %d points "
842
  "النسبة المئوية تشير الي الدرجة الكلية للأختبار.( المجموع الحالي %d درجة في "
843
  "%d سؤال"
844
 
845
+ #: lib/view/WpProQuiz_View_QuizEdit.php:320
846
  msgid "Values can also be mixed up"
847
  msgstr "يمكن لخبطة القيم"
848
 
849
+ #: lib/view/WpProQuiz_View_QuizEdit.php:321
850
  msgid "10,15% or 10.15% allowed (max. two digits after the decimal point)"
851
  msgstr "10.15% او 10.15% مسموح به (اقصى حد هو رقمين بعد النسبة المئوية)"
852
 
853
+ #: lib/view/WpProQuiz_View_QuizEdit.php:337
854
+ #: lib/view/WpProQuiz_View_QuizEdit.php:348
855
  msgid "from:"
856
  msgstr "من:"
857
 
858
+ #: lib/view/WpProQuiz_View_QuizEdit.php:337
859
+ #: lib/view/WpProQuiz_View_QuizEdit.php:348
860
  msgid "percent"
861
  msgstr "النسبة المئوية"
862
 
863
+ #: lib/view/WpProQuiz_View_QuizEdit.php:337
864
+ #: lib/view/WpProQuiz_View_QuizEdit.php:348
865
  #, php-format
866
  msgid ""
867
  "(Will be displayed, when result-percent is >= <span class=\"resultProzent\">"
870
  "(سوف يتم عرضه، عندما تكون نسبة النتيجة>= <span class=\"resultProzent\">%s</"
871
  "span>%%)"
872
 
873
+ #: lib/view/WpProQuiz_View_QuizEdit.php:338
874
+ #: lib/view/WpProQuiz_View_QuizEdit.php:349
875
  msgid "Delete graduation"
876
  msgstr "حذف التقييم"
877
 
878
+ #: lib/view/WpProQuiz_View_QuizEdit.php:356
879
  msgid "Add graduation"
880
  msgstr "اضافة تقييم"
881
 
891
  msgid "If quiz doesn't work in front-end, please try following:"
892
  msgstr "إذا الاختبار لا يعمل في الواجهة الأمامية، يرجى تجربة التالي:"
893
 
894
+ #: lib/view/WpProQuiz_View_QuizOverall.php:52
 
 
 
 
 
 
 
 
895
  msgid "ID"
896
  msgstr "الرقم"
897
 
898
+ #: lib/view/WpProQuiz_View_QuizOverall.php:53
899
  msgid "Shortcode"
900
  msgstr "الكود"
901
 
902
+ #: lib/view/WpProQuiz_View_QuizOverall.php:71
903
  msgid "Preview"
904
  msgstr "استعراض"
905
 
906
+ #: lib/view/WpProQuiz_View_QuizOverall.php:79
907
  msgid "Add quiz"
908
  msgstr "اضف اختبار"
909
 
910
+ #: lib/view/WpProQuiz_View_QuizOverall.php:81
911
+ #: lib/view/WpProQuiz_View_QuizOverall.php:85
912
  msgid "Export"
913
  msgstr "تصدير"
914
 
915
+ #: lib/view/WpProQuiz_View_QuizOverall.php:86
916
  msgid ""
917
  "Choose the respective question, which you would like to export and press on "
918
  "\"Start export\""
919
  msgstr "اختار سؤال، الذي تود أن تقوم بتصديره و اضغط على \"ابدأ التصدير\""
920
 
921
+ #: lib/view/WpProQuiz_View_QuizOverall.php:90
922
  msgid "Start export"
923
  msgstr "ابدأ التصدير"
924
 
925
+ #: lib/view/WpProQuiz_View_QuizOverall.php:96
926
  msgid "Import only *.wpq files from known and trusted sources."
927
  msgstr "استورد ملفات *.wpq فقط من مصدر معروف او موثوق به"
928
 
929
+ #: lib/view/WpProQuiz_View_QuizOverall.php:104
930
  #, php-format
931
  msgid "Maximal %d MiB"
932
+ msgstr "الحد الاقصى من %d MIB"
933
 
934
+ #: lib/view/WpProQuiz_View_Statistics.php:17
935
  #, php-format
936
  msgid "Quiz: %s - Statistics"
937
  msgstr "احصائيات اختبار: %s "
938
 
939
+ #: lib/view/WpProQuiz_View_Statistics.php:21
940
  msgid "Stats not enabled"
941
  msgstr "الاحصائيات غير مفعلة"
942
 
943
+ #: lib/view/WpProQuiz_View_Statistics.php:22
944
  msgid "Activate statistics"
945
  msgstr "تفعيل الاحصائيات"
946
 
947
+ #: lib/view/WpProQuiz_View_Statistics.php:27
948
+ msgid "Anonymous users"
949
+ msgstr ""
950
+
951
+ #: lib/view/WpProQuiz_View_Statistics.php:28
952
+ msgid "Registered useres"
953
+ msgstr ""
954
+
955
+ #: lib/view/WpProQuiz_View_Statistics.php:29
956
+ msgid "Overview"
957
+ msgstr ""
958
+
959
+ #: lib/view/WpProQuiz_View_Statistics.php:34
960
+ msgid "Please select user name:"
961
+ msgstr ""
962
+
963
+ #: lib/view/WpProQuiz_View_Statistics.php:57
964
  msgid "Hints used"
965
  msgstr "التلميحات مستخدمة"
966
 
967
+ #: lib/view/WpProQuiz_View_Statistics.php:82
968
  msgid "Total"
969
  msgstr "المجموع